741c48d1905fae6fcd7a259019b5a41423c4eb02
[gnulib.git] / ChangeLog
1 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2
3         hash-pjw-bare: new module
4         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
5         * lib/hash-pjw-bare.h: Likewise.
6         * modules/hash-pjw-bare: New file.
7         * MODULES.html.sh (Misc): Add it.
8
9 2012-10-02  Eric Blake  <eblake@redhat.com>
10
11         manywarnings: cater to more gcc infelicities
12         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
13         -Wuninitialized without -O.
14
15 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
16
17         select, poll tests: Make setsockopt invocation effective.
18         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
19         the bind() call.
20         * tests/test-select.h (open_server_socket): Likewise.
21
22 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23
24         sockets, sys_stat: restore AC_C_INLINE
25         This undoes the 2012-09-22 patch.
26         * m4/sockets.m4 (gl_SOCKETS):
27         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
28         Restore AC_C_INLINE, since MSVC requires __inline or _inline
29         and does not support plain 'inline'.  Reported by Bruno Haible in
30         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
31
32 2012-09-30  Bruno Haible  <bruno@clisp.org>
33
34         localeconv tests: Avoid test failure on OpenIndiana.
35         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36         skip the 'grouping' and 'mon_grouping' tests.
37         Reported by Jim Meyering.
38
39 2012-09-30  Bruno Haible  <bruno@clisp.org>
40
41         havelib: Follow libtool developments.
42         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
43         Suggested by Simon Josefsson.
44
45 2012-09-29  Jim Meyering  <meyering@redhat.com>
46
47         fstatat.c: fix a compile-impeding typo
48         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
49         Introduced in commit v0.0-7636-gd202279.
50         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
51
52 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
53
54         extern-inline: provide a -Wundef safe config.h
55         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
56         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
57         to produce a -Wundef warning free config.h.
58
59 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60
61         hash-pjw: relax license to LGPLv2+
62         * modules/hash-pjw (License): Relax, with consent of author.
63
64 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
65
66         maint.mk: fix strict vs. lazy variable issues with RELEASE
67         * top/maint.mk (_equal): New function.
68         (member_check): Strip the result to avoid spurious spaces.
69         (url_dir_list): Do not use ifeq, which is strict, as it will
70         require RELEASE_TYPE to be defined.
71         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
72         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
73         (announcement_Cc_alpha,announcement_mail_headers_alpha)
74         (announcement_Cc_beta,announcement_mail_headers_beta)
75         (announcement_Cc_stable,announcement_mail_headers_stable): these.
76         (release): Do not depend on $(release-type), as it forces its
77         evaluation.  Bounce to it.
78
79 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
80
81         maint.mk: formatting changes
82         * top/maint.mk: Indent bodies of if's.
83
84 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
85
86         maint.mk: factor the validation of RELEASE_TYPE
87         With help from Jim Meyering.
88         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
89         * top/maint.mk (_empty, _sp): Move their definition earlier.
90         (member-check, release-type): New.
91         Use the latter instead of $(RELEASE_TYPE).
92         Remove now useless local checks.
93
94 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
95
96         maint.mk: provide "make upload" to ease uploading
97         See
98         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
99         Do not depend simply on the current $(VERSION), as there may have been
100         new commits since the tarball generation.  Rather, rely on $(RELEASE),
101         as "make release-commit" already does.
102
103         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
104         "make TYPE".
105
106         * top/maint.mk (upload_command, upload, release): New.
107         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
108         (VERSION): first word of $(RELEASE) is always right.
109         (emit_upload_commands): Adjust.
110         * top/README-release: Update.
111
112 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
113
114         maint.mk: silent rules
115         With help from Stefano Lattarini.
116         * top/maint.mk (writable-files): Use $(AM_V_GEN).
117         (announcement): Use $(AM_V_at).
118
119 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
120
121         localename: port gl_locale_name_thread_unsafe to FreeBSD
122         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
123         and use the simpler FreeBSD implementation on Mac OS X as well.
124         Original idea suggested by Ed Maste in
125         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
126
127 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
128
129         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
130         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
131         * lib/mbuiter.c, lib/xsize.c: New files.
132         * lib/binary-io.h (BINARY_IO_INLINE):
133         * lib/eealloc.h (EEALLOC_INLINE):
134         * lib/mbfile.h (MBFILE_INLINE):
135         * lib/mbiter.h (MBITER_INLINE):
136         * lib/mbuiter.h (MBUITER_INLINE):
137         * lib/xsize.h (XSIZE_INLINE):
138         New macros.
139         Replace all uses of 'static inline' with them.
140         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
141         * m4/eealloc.m4 (gl_EEALLOC):
142         * m4/mbfile.m4 (gl_MBFILE):
143         * m4/mbiter.m4 (gl_MBITER):
144         * m4/xsize.m4 (gl_XSIZE):
145         Do not require AC_C_INLINE.
146         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
147         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
148         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
149         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
150         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
151         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
152         * modules/binary-io, modules/eealloc, modules/mbfile:
153         * modules/mbiter, modules/mbuiter:
154         (Depends-on): Add extern-inline.
155
156         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
157         * lib/pipe-filter-aux.c: New file.
158         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
159         Replace all uses of 'static inline' with it.
160         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
161         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
162         (filter_retcode): No real need for inline here.
163         * modules/pipe-filter-gi, modules/pipe-filter-ii:
164         (Files): Add lib/pipe-filter-aux.c.
165         (Depends-on): Add extern-inline.
166         (configure.ac): Do not require AC_C_INLINE.
167         (lib_SOURCES): Add pipe-filter-aux.c.
168
169         fdutimensat: omit unnecessary AC_C_INLINE
170         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
171
172         fchmodat, fchownat, fstatat: use extern-inline
173         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
174         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
175         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
176         New macros.
177         * lib/openat.h:
178         Replace all uses of 'static inline' with them.
179         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
180         * modules/fchmodat, modules/fchownat, modules/fstatat:
181         * modules/openat-h:
182         (Depends-on):
183         Add extern-inline.
184         (configure.ac): Remove AC_C_INLINE.
185
186         acl, mbchar, priv-set: use extern-inline
187         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
188         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
189         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
190         New macros.
191         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
192         Replace all uses of 'static inline' with it.
193         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
194         * m4/acl.m4 (gl_FUNC_ACL):
195         * m4/mbchar.m4 (gl_MBCHAR):
196         * m4/priv-set.m4 (gl_PRIV_SET):
197         Remove AC_C_INLINE, since 'inline' is no longer used directly.
198         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
199         Add extern-inline.
200
201         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
202         * m4/sockets.m4 (gl_SOCKETS):
203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
204         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
205         environments where it's already guaranteed to work, so we needn't
206         check for it at 'configure'-time.
207
208         tls-tests: omit unnecessary 'inline'
209         * tests/test-tls.c (perhaps_yield): No longer inline.
210         Simplicity and portability trump efficiency in test cases.
211
212         utimens-tests: avoid unnecessary 'inline'
213         * modules/fdutimensat-tests (configure.ac):
214         * modules/futimens-tests (configure.ac):
215         * modules/utimens-tests (configure.ac):
216         * modules/utimensat-tests (configure.ac):
217         Remove AC_C_INLINE.
218         * tests/test-utimens-common.h (ctime_compare):
219         No longer inline.  Simplicity and portability trump efficiency here.
220
221         misc: don't limit commentary to inline functions
222         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
223         * lib/xalloc-oversized.h, lib/xsize.h:
224         Contrast macros to functions in general, not just to inline functions,
225         when the commentary does not apply only to inline functions.
226
227 2012-09-20  Jim Meyering  <meyering@redhat.com>
228
229         non-recursive-gnulib-prefix-hack: new module
230         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
231         the file that originated in Bison.
232         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
233         largely copied from a snippet that resided in bison's configure.ac.
234         * modules/non-recursive-gnulib-prefix-hack: New file.
235         * MODULES.html.sh (Support for maintaining and releasing projects):
236         Add it.
237
238 2012-09-18  Jim Meyering  <meyering@redhat.com>
239
240         maint.mk: generalize _gl_tight_scope for non-recursive make
241         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
242         that *.h would describe additional .h files in the directory
243         specified by $(_gl_TS_dir).  I.e., add this...
244         (_gl_TS_other_headers): New variable.
245
246         maint.mk: exempt trailing blanks found in "binary" files
247         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
248         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
249         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
250
251 2012-09-17  Jim Meyering  <meyering@redhat.com>
252
253         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
254         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
255         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
256         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
257
258 2012-09-17  Jim Meyering  <meyering@redhat.com>
259
260         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
261         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
262         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
263         It is not in the same category as "exit (0)" or "exit (1)", and
264         besides, I know of no symbolic name for that 77.  Reported by
265         Richard W.M. Jones in
266         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
267
268 2012-09-17  Jim Meyering  <meyering@redhat.com>
269
270         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
271         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
272         all uses of #define, not just those that start in column 1.
273         Richard W.M. Jones reported a false positive in
274         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
275
276 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
277
278         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
279         * lib/localcharset.c (locale_charset) [DARWIN7]:
280         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
281         as these two values are incompatible.  Problem reported by Max Horn.
282         For more discussion, please see
283         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
284
285         doc: document sticky-EOF issue
286         * doc/posix-functions/fgetc.texi (fgetc):
287         * doc/posix-functions/fgets.texi (fgets):
288         * doc/posix-functions/fread.texi (fread):
289         * doc/posix-functions/fscanf.texi (fscanf):
290         * doc/posix-functions/getc.texi (getc):
291         * doc/posix-functions/getchar.texi (getchar):
292         * doc/posix-functions/scanf.texi (scanf):
293         Mention that glibc and default Solaris do not conform to
294         C99 and POSIX-2001 or later, with respect to how getchar
295         etc. behave when feof reports nonzero.
296
297 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
298
299         poll: fix poll(0, NULL, msec)
300         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
301         but nfd is 0.  In that case poll should behave like select.
302
303 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
304             Paolo Bonzini <bonzini@gnu.org>
305
306         poll: fix for systems that can't recv() on a non-socket
307         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
308         is readable.  In this case POLLHUP will not be supported.
309         * doc/posix-functions/poll.texi: Document this.
310
311 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
312
313         poll/select: document portability problems not fixed by Gnulib.
314         * doc/posix-functions/poll.texi: poll does not work well on
315         pipes under Windows.  It has the same limitations as select on
316         BeOS.
317         * doc/posix-functions/select.texi: select does not work well
318         on pipes under Windows.
319
320 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
321
322         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
323         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
324         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
325         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
326
327 2012-09-06  Eric Blake  <eblake@redhat.com>
328
329         net_if: give more details about the bug being fixed
330         * doc/posix-headers/net_if.texi: Add clarification.
331
332 2012-09-05  Eric Blake  <eblake@redhat.com>
333
334         net_if: new module
335         * modules/net_if: New module, borrowing ideas from netinet_in.
336         * m4/net_if_h.m4: New file.
337         * lib/net_if.in.h: Likewise.
338         * doc/posix-headers/net_if.texi (net/if.h): Document it.
339         * MODULES.html.sh (lacking POSIX:2008): Likewise.
340         * tests/test-net_if.c: Make function checks conditional.
341         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
342
343 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
344
345         readutmp: fix non-portable UT_PID use
346         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
347         Use `UT_PID (u) > 0' as absolute condition.
348
349 2012-09-04  Jim Meyering  <meyering@redhat.com>
350
351         fts: reduce two or more trailing spaces to just one, usually
352         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
353         or more slashes, trim all but the final one.  But if a name consists
354         solely of two slashes, don't modify it.  If it consists solely of
355         three or more slashes, strip all but one.
356
357         This is part of the solution to a minor problem with rm:
358         it would print a bogus ELOOP diagnostic when failing to remove
359         the slash-decorated name of a symlink-to-directory:
360
361             $ mkdir d && ln -s d s && env rm -r s/
362             rm: cannot remove 's': Too many levels of symbolic links
363
364         With the change below and a trivial don't-trim-trailing-slashes
365         adjustment to remove.c, it does this:
366
367             $ env rm -r s/
368             rm: cannot remove 's/': Not a directory
369
370         Improved by: Eric Blake
371
372         fts: when there is no risk of overlap, use memcpy, not memmove
373         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
374
375 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
376
377         stdbool: be more compatible with mixed C/C++ compiles
378         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
379         Define to bool, true, false, respectively, as GCC's builtin
380         stdbool.h does.  Problem reported by Michael Goffioul in
381         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
382
383 2012-08-28  Jim Meyering  <meyering@redhat.com>
384
385         revert last change: it was not needed
386         * tests/test-vc-list-files-git.sh: There's already a test for
387         a working git, just below.
388
389 2012-08-28  Jim Meyering  <meyering@redhat.com>
390
391         tests: test-vc-list-files-git.sh: skip if git is not available
392         * tests/test-vc-list-files-git.sh: Skip this test when git is
393         not available.
394
395 2012-08-26  Bruno Haible  <bruno@clisp.org>
396
397         gnulib-tool: Remove no-op option --no-changelog.
398         * gnulib-tool (func_usage): Don't mention --no-changelog.
399         (do_changelog): Remove variable.
400         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
401
402 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
403
404         doc: remove fdl-1.2.texi
405         It is no longer used or maintained, and its use of @acronym
406         is problematic.  See the thread containing
407         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
408         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
409         * doc/old-licenses/fdl-1.2.texi: Remove.
410
411         execinfo: port to FreeBSD
412         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
413         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
414         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
415         * modules/execinfo (Link): Add $(LIB_EXECINFO).
416
417 2012-08-23  Jim Meyering  <meyering@redhat.com>
418
419         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
420         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
421         to placate gcc's -Wold-style-declaration.
422
423 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
424
425         doc: do not use @acronym
426         * doc/inet_ntoa.texi (inet_ntoa):
427         * doc/parse-datetime.texi (Seconds since the Epoch)
428         (Specifying time zone rules):
429         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
430         Don't use @acronym.  Problem reported by John Darlington in
431         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
432
433 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
434
435         stdnoreturn: port to newer GCCs
436         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
437         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
438         Problem reported by Jim Meyering in
439         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
440         Also, rename the 'test' function to a void a clash with the
441         already-supplied 'main' function; this fixes a bug that incorrectly
442         rejected GCC 4.7.1's <stdnoreturn.h>.
443         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
444         Document GCC problem.
445
446 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
447
448         pipe-filter: fix comment typo
449         * lib/pipe-filter.h: Mention correct function.
450
451 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
452
453         execinfo: new module
454         This is for Emacs.  Currently, it provides a no-effect stub
455         on all platforms where it does not already work.
456         It already works on glibc-based systems, and on Solaris 11.
457         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
458         New files.
459         * doc/glibc-headers/execinfo.texi (execinfo.h):
460         * MODULES.html.sh (Misc): Document it.
461
462 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
463
464         extern-inline: support old GCC 'inline'
465         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
466         if available.  This applies to GCC versions 2.7 through 4.2, or
467         when newer GCC is using -fgnu89-inline.  The goal is to address
468         some of the performance issues mentioned by Bruno Haible in
469         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
470
471 2012-08-20  Eric Blake  <eblake@redhat.com>
472
473         maint.mk: avoid redundant file name in message
474         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
475         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
476         (sc_makefile_path_separator_check): Remove bogus $(ME).
477
478 2012-08-20  Mike Frysinger <vapier@gentoo.org>
479
480         timer-time: fix link order when static linking on glibc
481         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
482         _after_ -lrt so that it's significant.
483
484 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
485
486         timespec: omit unnecessary AC_C_INLINE
487         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
488
489         stat-time: omit unnecessary AC_C_INLINE
490         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
491         Do not require AC_C_INLINE.
492
493         ignore-value: omit unnecessary AC_C_INLINE
494         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
495
496         sys_select: avoid 'static inline'
497         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
498
499         mktime: avoid 'static inline'
500         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
501         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
502
503 2012-08-19  Bruno Haible  <bruno@clisp.org>
504
505         gnulib-tool: Improve coding style.
506         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
507         func_emit_lib_Makefile_am.
508         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
509
510 2012-08-19  Bruno Haible  <bruno@clisp.org>
511
512         gnulib-tool: Fix indentation.
513         * gnulib-tool (func_import): Fix indentation.
514
515 2012-08-19  Bruno Haible  <bruno@clisp.org>
516
517         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
518         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
519         on the list of removed files.
520
521 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
522
523         test-parse-datetime: avoid glibc leap-second glitch
524         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
525         with the 2012 rules.  Problem reported by Bruce Dubbs in
526         <http://bugs.gnu.org/12206>.
527
528 2012-08-14  Bruno Haible  <bruno@clisp.org>
529
530         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
531         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
532         from argument.
533         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
534
535 2012-08-14  Eric Blake  <eblake@redhat.com>
536
537         ldexp: relax license
538         * modules/ldexp (License): Trivial relax, since the module only
539         provides a permissively licensed m4 file.
540
541 2012-08-13  Bruno Haible  <bruno@clisp.org>
542
543         gnulib-tool: Fix persistence of --witness-c-macro option.
544         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
545         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
546
547 2012-08-11  Eric Blake  <eblake@redhat.com>
548
549         count-leading-zeros: use a lookup table on non-gcc compilers
550         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
551         alternate implementation, suggested by Jim Meyering.
552
553 2012-08-10  Eric Blake  <eblake@redhat.com>
554
555         count-leading-zeros: new module
556         * modules/count-leading-zeros: New module.
557         * m4/count-leading-zeros.m4: New file.
558         * lib/count-leading-zeros.h: Likewise.
559         * modules/count-leading-zeros-tests: New test.
560         * tests/test-count-leading-zeros.c: New file.
561         * MODULES.html.sh (Integer arithmetic functions): Document it.
562
563 2012-08-07  Simon Josefsson  <simon@josefsson.org>
564             Jim Meyering  <meyering@redhat.com>
565
566         maintainer-makefile: Fix syntax error with dash.
567         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
568         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
569
570 2012-08-05  Jim Meyering  <meyering@redhat.com>
571
572         extern-inline: also ignore -Wmissing-declarations
573         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
574         required with gcc-4.8.0-to-be.
575
576         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
577         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
578         for /error ?([^,]*)/.  This avoids false-positives for strings like
579         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
580
581 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
582
583         gnumakefile: better interaction with Automake-NG
584         * modules/gnumakefile [Makefile.am]: The makefiles generated by
585         Automake-NG always contain a definition of VPATH, even in non-VPATH
586         builds (its value being simply '.' in that case).  So, in the
587         'clean-GNUmakefile' rule, to determine whether running under a
588         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
589         '$(VPATH)' expands to the empty string.
590
591 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
592
593         base64: Use extern C scope in header file, for C++.
594         * lib/base64.h: Add C++ namespace protection.
595
596 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
597
598         stat-time, timespec, u64: support naive out-of-dir builds
599         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
600         Use '#include "foo.h"', not '#include <foo.h>', when including
601         one's own interface.  This works better when configuring with
602         out-of-directory builds, since packages need not add an
603         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
604
605 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
606
607         utimens: use extern-inline
608         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
609         * lib/utimens.h: Add copyright notice, since this is now large enough
610         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
611         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
612         * modules/utimens (Depends-on): Add extern-inline.
613
614         u64: use extern-inline
615         * lib/u64.c: New file.
616         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
617         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
618         * modules/u64 (Files): Add lib/u64.c.
619         (Depends-on): Add extern-inline.
620         (configure.ac): No need to require AC_C_INLINE, since extern-inline
621         does that now.
622         (lib_SOURCES): Add u64.c.
623
624         timespec: use extern-inline
625         * lib/timespec.c: New file.
626         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
627         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
628         * modules/timespec (Files): Add lib/timespec.c.
629         (Depends-on): Add extern-inline.
630         (lib_SOURCES): Add timespec.c.
631
632         stat-time: use extern-inline
633         * lib/stat-time.c: New file.
634         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
635         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
636         * modules/stat-time (Files): Add lib/stat-time.c.
637         (Depends-on): Add extern-inline.
638         (lib_SOURCES): Add stat-time.c.
639
640         extern-inline: new module
641         * modules/extern-inline, m4/extern-inline.m4: New files.
642         This is for better support of 'extern inline' a la ISO C99,
643         with a portable alternative on compilers that do not support
644         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
645         of the Emacs executable, when compiled with debugging disabled,
646         which is a typical way that Emacs is built while developing.
647
648 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
649
650         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
651         * build-aux/do-release-commit-and-tag: Move variable definitions
652         together.
653         ($branch): Instead of defaulting to "master", default to the current
654         branch (as gnu-web-doc-update does).
655         (help): Display the current values of the option arguments.
656         * top/maint.mk (release-commit): New.
657         * top/README-release: Simplify the corresponding step.
658
659 2012-07-30  Eric Blake  <eblake@redhat.com>
660
661         passfd: fix comment on recvfd
662         * lib/passfd.c (recvfd): Fix comment.
663         Reported by Jann Horn <jannhorn@googlemail.com>.
664
665 2012-07-30  Jim Meyering  <meyering@redhat.com>
666
667         maint.mk: avoid a sub-shell
668         * top/maint.mk (release-prep): Remove unneeded sub-shell.
669
670 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
671
672         maint.mk: use silent-rules support from Automake
673         * top/maint.mk (news-check, vc-diff-check, announcement)
674         (no-submodule-changes, alpha beta stable, release-prep)
675         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
676
677 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
678
679         maint.mk: provide a web-manual-update target
680         * top/maint.mk: here.
681         * top/README-release: Use it to simplify the web manual update step.
682
683 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
684
685         README-release: shorten the circuit to post a news
686         * top/README-release: Point directly to the news submission form.
687
688 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
689
690         gnu-web-doc-update: fix --help
691         * build-aux/gnu-web-doc-update: The information "top level" was written
692         twice.
693
694 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
695
696         maint.mk: absolute VPATH issue
697         * top/maint.mk (release-prep): Help Git find .git/.
698         From Jim Meyering.
699
700 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
701
702         gitlog-to-changelog: fix previous change
703         * build-aux/gitlog-to-changelog: Fix condition.
704         Add missing ";".
705
706 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
707
708         gitlog-to-changelog: don't expect .git to be in $srcdir
709         Reported by Bruno Haible.
710         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
711         * build-aux/gitlog-to-changelog (&git_dir_option): New.
712         Use it.
713
714 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
715
716         maint.mk: absolute VPATH build fix
717         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
718         $(srcdir) is not a parent of $(builddir).
719
720 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
721
722         clean-temp: Fix memory leak.
723         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
724         'files' members of tmpdir.
725
726 2012-07-27  Jim Meyering  <meyering@redhat.com>
727
728         maint.mk: new rule: refresh-gnulib-patches
729         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
730         Use this rule to refresh them.
731         * top/maint.mk (refresh-gnulib-patches): New rule.
732
733 2012-07-24  Bruno Haible  <bruno@clisp.org>
734
735         gnulib-tool: Fix handling of inctests variable.
736         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
737         Reported by Nick Bowler <nbowler@elliptictech.com>.
738
739 2012-07-22  Bruno Haible  <bruno@clisp.org>
740
741         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
742         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
743         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
744         Remove exemption for getpass.h.
745         Suggested by Eric Blake.
746
747 2012-07-20  Eric Blake  <eblake@redhat.com>
748
749         verify: document conflict with -Wnested-externs
750         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
751
752         maint.mk: forbid exit(-1)
753         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
754
755 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
756
757         fsusage: port back to Solaris
758         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
759         error (fsd not declared) on Solaris 10.  Reported privately by
760         Andrew Borodin.
761
762 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
763
764         gnu-web-doc-update: fix error messages
765         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
766
767         gnu-web-doc-update: check the requirements.
768         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
769         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
770         * build-aux/bootstrap (find_tool): Comment change.
771
772 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
773
774         maint.mk: minor simplication.
775         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
776         for default values.
777
778 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
779
780         gitlog-to-changelog: VPATH build issues
781         If builddir is not a subdirectory of srcdir, running git from it will
782         fail.
783         * build-aux/gitlog-to-changelog (--srcdir): New option.
784
785 2012-07-15  Bruno Haible  <bruno@clisp.org>
786
787         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
788         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
789         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
790         Remove exemption for fpending.h.
791         Suggested by Eric Blake.
792
793 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
794
795         pthread_sigmask: fix bug on FreeBSD 9
796         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
797         Include string.h.
798         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
799         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
800         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
801         but pthread_sigmask (1729, NULL, NULL) returns zero.
802         See <http://bugs.gnu.org/11884>.
803         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
804         by inspecting whether the main call changed the old mask.
805
806 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
807
808         README-release: make it more legible
809         * top/README-release: Improve typography slightly.
810
811 2012-07-15  Jim Meyering  <meyering@redhat.com>
812
813         maint: require that each sc_... command start with "@"
814         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
815         "make sc_maint" helps us avoid this nit.
816
817 2012-07-15  Jim Meyering  <meyering@redhat.com>
818
819         maint.mk: add leading "@" to quiet new "make syntax-check" rule
820         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
821
822 2012-07-13  Eric Blake  <eblake@redhat.com>
823
824         maint.mk: new syntax check for HAVE_DECL checks
825         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
826         * cfg.mk
827         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
828         Exempt some false positives.
829         Based on a report by Karel Zak.
830
831         argp: make HAVE_DECL usage consistent
832         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
833         macros, not whether they are defined.
834         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
835         convention with other declaration checks.
836         Reported by Karel Zak, with suggestions from Paul Eggert.
837
838         stat-time: relax license to LGPLv2+
839         * modules/stat-time (License): Relax, with consent of all authors.
840
841         strndup: fix m4 usage error
842         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
843         defined, to either 0 or 1.
844         Reported by Karel Zak.
845
846 2012-07-11  Jim Meyering  <meyering@redhat.com>
847
848         maint: enable the sc_avoid_if_before_free syntax-check rule
849         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
850         (if_before_free_offenders_): Define.
851         (if_before_free_basename_re_): Define.
852         Exempt current files with useless if-before-free.
853
854 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
855
856         gettext: do not assume '#define ... defined ...' behavior
857         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
858         Do not use '#define FOO ... defined BAR ...', as the C standard says
859         it's not portable to expect that this works after macro expansion.
860         Problem reported for gzip by Steven M. Schweda in
861         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
862
863 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
864
865         getloadavg: clean out old Emacs and Autoconf cruft
866         See Glenn Morris in <http://bugs.gnu.org/11905>.
867         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
868         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
869         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
870         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
871
872 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
873
874         bootstrap: let warn be like tests/init.sh's warn_
875         Reported by Jim Meyering.
876         * build-aux/bootstrap (warn): Remove, replaced by...
877         (warnf_, warn_): these.
878         Adjust callers.
879         Shorten messages that no longer fit in 80 columns.
880
881 2012-07-09  Bruno Haible  <bruno@clisp.org>
882
883         getopt: Simplify after Emacs changed.
884         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
885         (gl_GETOPT_IFELSE): Remove macro.
886
887 2012-07-09  Jim Meyering  <meyering@redhat.com>
888
889         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
890         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
891
892         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
893         Bugs in both of those conspired to make the
894         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
895         _sc_search_regexp's handling of non-empty $in_files would filter
896         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
897         choice of in_files value meant there would be no match in most
898         projects, due to the presence of two or more Makefile.in files.
899         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
900         Fix a bug in how a non-empty $$in_files was processed:
901         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
902         in spite of the name, it's a regexp, not a list of file names.
903
904 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
905
906         getloadavg, getopt: fix commentary re configure.in
907         Autoconf is deprecating the name 'configure.in', so change it to
908         to the new name 'configure.ac' in a couple of places.
909         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
910         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
911         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
912         Emacs has renamed it to configure.ac, and it no longer refers
913         to these macros anyway.
914
915         timespec: mark functions with const attributes
916         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
917         Mark with _GL_ATTRIBUTE_CONST.
918
919 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
920
921         canonicalize[-lgpl]: handle "guessing" values when cross-building
922         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
923         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
924         matches "*yes" instead of just "yes".  Regression introduced in commit
925         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
926
927 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
928             Bruno Haible  <bruno@clisp.org>
929
930         canonicalize: make the right guess when cross-compiling to GNU
931         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
932         determine whether cross-compiling to glibc systems, so as to
933         include GNU/Hurd.
934
935 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
936
937         timespec-sub: avoid duplicate include
938         * lib/timespec-sub.c: Do not include <config.h> twice.
939         Reported by Juanma Barranquero.
940
941 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
942
943         bootstrap: use a more consistent error reporting scheme
944         * build-aux/bootstrap (warn, die): New.
945         Use them.
946
947 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
948
949         sys_time: allow too-wide tv_sec
950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
951         timeval even if tv_sec is wider than time_t.  This allows
952         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
953         as without this patch gnulib replaces struct timeval
954         and OpenBSD futimes therefore has a type mismatch.
955         * doc/posix-headers/sys_time.texi: Mention this.
956
957         pthread: check for both pthread_create and pthread_join
958         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
959         alter the check so that it tests for both pthread_create and
960         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
961         Suggested by Bruno Haible and Richard Yao in
962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
963
964         parse-datetime: doc tuneup
965         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
966         spacing issues.
967
968 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
969
970         do-release-commit-and-tag: fix the previous commit
971         * build-aux/do-release-commit-and-tag: Actually the test was right,
972         but the comment and the error message were misleading.
973         Fix comment, and improve error message.
974         Perform check first, so that NEWS is not modified uselessly.
975
976         do-release-commit-and-tag: fix typo
977         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
978         _not_ start with a stub.
979
980 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
981
982         pthread: check for pthread_create, not pthread_join
983         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
984         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
985         pthread_join in libc.  I hope this removes the need for all the
986         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
987         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
988
989 2012-07-04  Jim Meyering  <meyering@redhat.com>
990
991         parse-datetime: fix failure to diagnose invalid input
992         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
993         rather than diagnosing the invalid input.  Now it reports this:
994         date: invalid date '\260'
995         * lib/parse-datetime.y (to_uchar): Define.
996         (yylex): Don't sign-extend "other" bytes.
997         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
998         Thanks to Bruno Haible for the patch to this file.
999         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1000         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1001
1002 2012-07-03  Jim Meyering  <meyering@redhat.com>
1003
1004         bootstrap: do not require now-removed build-aux/missing
1005         Now that build-aux/missing is, er, missing, bootstrap would
1006         silently fail.
1007         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1008         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1009         no longer part of gnulib.
1010         Diagnose the failure.
1011
1012 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1013
1014         alloca: add support for HP NonStop TNS/E native
1015         * lib/alloca.in.h (alloca): Support the new host.
1016         From a suggestion by Joachim Schmitz in
1017         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1018
1019 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1020
1021         fsusage: remove code not needed on non GNU/Linux systems.
1022
1023         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1024         Don't include headers no longer needed in this case.
1025         * lib/fsusage.c [STAT_STATVFS &&
1026         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1027         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1028
1029 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1030
1031         fsusage: include files needed for glibc 2.6 fallback
1032         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1033         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1034         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1035         Problem reported by Ludovic Courtès in
1036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1037
1038         fsusage: avoid needless check on GNU/Linux
1039         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1040         on GNU/Linux systems, since it can't possibly work.
1041
1042 2012-07-01  Bruno Haible  <bruno@clisp.org>
1043
1044         log: Fix an autoconf >= 2.64 warning.
1045         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1046         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1047
1048 2012-06-28  Bruno Haible  <bruno@clisp.org>
1049
1050         log10f: Fix possible configuration problem.
1051         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1052         $LOGF_LIBM.
1053         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1054
1055 2012-06-28  Bruno Haible  <bruno@clisp.org>
1056
1057         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1058         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1059         not gl_cv_func_unlink_works.
1060         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1061
1062 2012-06-27  Eric Blake  <eblake@redhat.com>
1063
1064         config: drop scripts that automake says are not independent
1065         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1066         * build-aux/elisp-comp: Delete.
1067         * build-aux/missing: Likewise.
1068         * build-aux/ylwrap: Likewise.
1069         * modules/elisp-comp: Likewise.
1070         * MODULES.html.sh: Drop mention of elisp-comp.
1071         * NEWS: Mention this.
1072
1073 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1074
1075         root-uid: new module
1076         This is for portability to Tandem's NonStop Kernel.
1077         * lib/root-uid.h, modules/root-uid: New files.
1078         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1079         * lib/write-any-file.c, tests/test-sethostname2.c:
1080         Include "root-uid.h".
1081         * lib/euidaccess.c (euidaccess):
1082         * lib/pt_chown.c (main):
1083         * lib/unlinkdir.c (cannot_unlink_dir):
1084         * lib/write-any-file.c (can_write_any_file):
1085         * m4/mknod.m4 (gl_FUNC_MKNOD):
1086         * tests/test-sethostname2.c (geteuid, main):
1087         Don't assume ROOT_UID == 0.
1088         * modules/euidaccess (Depends-on):
1089         * modules/pt_chown (Depends-on):
1090         * modules/sethostname-tests (Depends-on):
1091         * modules/unlinkdir (Depends-on):
1092         * modules/write-any-file (Depends-on):
1093         Add root-uid.
1094
1095         regex: use locale-independent comparison for codeset name
1096         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1097         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1098         for codeset name.
1099         * lib/regex_internal.h: Do not include <strings.h>, since we
1100         no longer use strcasecmp.
1101         * modules/regex (Depends-on): Remove strcase.
1102
1103 2012-06-23  Bruno Haible  <bruno@clisp.org>
1104
1105         getopt-posix: No longer guarantee that option processing is resettable.
1106         * doc/posix-functions/getopt.texi: Drop description of problem with
1107         internal state. Fix info about mingw and msvc9.
1108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1109         option processing by getopt(). Run three test programs instead of one.
1110         Simplify cross-compilation guess.
1111         * NEWS: Mention the change.
1112         Reported by Rich Felker <dalias@aerifal.cx>.
1113
1114 2012-06-26  Bruno Haible  <bruno@clisp.org>
1115
1116         argp, regex: Ensure strcasecmp gets declared.
1117         * lib/argp-help.c: Include <strings.h>.
1118         * lib/regex_internal.h: Likewise.
1119         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1120
1121 2012-06-24  Bruno Haible  <bruno@clisp.org>
1122
1123         ptsname_r: Make it consistent with ptsname on AIX.
1124         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1125         implementation as for OSF/1.
1126         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1127         a pty master.
1128
1129         ptsname_r: Make it consistent with ptsname on OSF/1.
1130         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1131         OSF/1.
1132
1133 2012-06-24  Bruno Haible  <bruno@clisp.org>
1134
1135         ttyname_r: Fix result on OSF/1, Solaris.
1136         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1137
1138 2012-06-24  Bruno Haible  <bruno@clisp.org>
1139
1140         ptsname_r: Add support for Solaris.
1141         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1142         Solaris.
1143
1144         ptsname_r: Fix test failure on native Windows.
1145         * modules/ptsname_r (Depends-on): Add isatty.
1146
1147         ptsname_r: Fix test failures on IRIX, Solaris.
1148         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1149         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1150         accordingly.
1151         * lib/ptsname_r.c: Include <fcntl.h>.
1152         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1153         set errno if fd is invalid.
1154         * tests/test-isatty.c (main): Update comments.
1155
1156 2012-06-24  Bruno Haible  <bruno@clisp.org>
1157
1158         ptsname test: Extend test.
1159         * tests/test-ptsname.c: Include <errno.h>.
1160         (main): Test behaviour with invalid file descriptor.
1161
1162 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1163
1164         time: fix obsolete comment
1165         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1166         reference to HAVE_STRUCT_TIMESPEC in comment.
1167
1168 2012-06-23  Bruno Haible  <bruno@clisp.org>
1169
1170         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1172         does not handle abbreviated long options with equivalent
1173         disambiguations, set gl_replace_getopt to yes.
1174         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1175
1176 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1177
1178         time_r: fix typo that always overrode localtime_r decl
1179         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1180         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1181         not in a standard include.
1182
1183 2012-06-22  Bruno Haible  <bruno@clisp.org>
1184
1185         Write "Mac OS X" instead of "MacOS X".
1186         * README: Write "Mac OS X" instead of "MacOS X".
1187         * build-aux/bootstrap: Likewise.
1188         * build-aux/install-reloc: Likewise.
1189         * lib/acl-internal.h: Likewise.
1190         * lib/acl_entries.c: Likewise.
1191         * lib/argp-ba.c: Likewise.
1192         * lib/argp-pv.c: Likewise.
1193         * lib/config.charset: Likewise.
1194         * lib/copy-acl.c: Likewise.
1195         * lib/csharpexec.c: Likewise.
1196         * lib/euidaccess.c: Likewise.
1197         * lib/fbufmode.c: Likewise.
1198         * lib/fflush.c: Likewise.
1199         * lib/file-has-acl.c: Likewise.
1200         * lib/filemode.h: Likewise.
1201         * lib/fpurge.c: Likewise.
1202         * lib/freadable.c: Likewise.
1203         * lib/freadahead.c: Likewise.
1204         * lib/freading.c: Likewise.
1205         * lib/freadptr.c: Likewise.
1206         * lib/freadseek.c: Likewise.
1207         * lib/fseeko.c: Likewise.
1208         * lib/fseterr.c: Likewise.
1209         * lib/fsusage.c: Likewise.
1210         * lib/fwritable.c: Likewise.
1211         * lib/fwriting.c: Likewise.
1212         * lib/get-rusage-as.c: Likewise.
1213         * lib/get-rusage-data.c: Likewise.
1214         * lib/getdomainname.c: Likewise.
1215         * lib/idpriv-drop.c: Likewise.
1216         * lib/idpriv-droptemp.c: Likewise.
1217         * lib/localcharset.c: Likewise.
1218         * lib/locale.in.h: Likewise.
1219         * lib/localename.c: Likewise.
1220         * lib/mbsrtowcs-state.c: Likewise.
1221         * lib/nproc.c: Likewise.
1222         * lib/passfd.c: Likewise.
1223         * lib/posix_openpt.c: Likewise.
1224         * lib/printf-parse.c: Likewise.
1225         * lib/progreloc.c: Likewise.
1226         * lib/safe-read.h: Likewise.
1227         * lib/safe-write.h: Likewise.
1228         * lib/sched.in.h: Likewise.
1229         * lib/set-mode-acl.c: Likewise.
1230         * lib/signal.in.h: Likewise.
1231         * lib/stdint.in.h: Likewise.
1232         * lib/stdio-impl.h: Likewise.
1233         * lib/stdlib.in.h: Likewise.
1234         * lib/strtod.c: Likewise.
1235         * lib/sys_select.in.h: Likewise.
1236         * lib/tcgetsid.c: Likewise.
1237         * lib/unistd.in.h: Likewise.
1238         * lib/unlockpt.c: Likewise.
1239         * lib/vasnprintf.c: Likewise.
1240         * lib/vma-iter.c: Likewise.
1241         * lib/wcsrtombs-state.c: Likewise.
1242         * m4/acl.m4: Likewise.
1243         * m4/acosl.m4: Likewise.
1244         * m4/asinl.m4: Likewise.
1245         * m4/atanl.m4: Likewise.
1246         * m4/c-stack.m4: Likewise.
1247         * m4/cosl.m4: Likewise.
1248         * m4/expl.m4: Likewise.
1249         * m4/extensions.m4: Likewise.
1250         * m4/fdatasync.m4: Likewise.
1251         * m4/fmal.m4: Likewise.
1252         * m4/frexp.m4: Likewise.
1253         * m4/frexpf.m4: Likewise.
1254         * m4/frexpl.m4: Likewise.
1255         * m4/fsusage.m4: Likewise.
1256         * m4/getdomainname.m4: Likewise.
1257         * m4/getloadavg.m4: Likewise.
1258         * m4/getopt.m4: Likewise.
1259         * m4/gettext.m4: Likewise.
1260         * m4/gnulib-common.m4: Likewise.
1261         * m4/intdiv0.m4: Likewise.
1262         * m4/intlmacosx.m4: Likewise.
1263         * m4/largefile.m4: Likewise.
1264         * m4/ldexpl.m4: Likewise.
1265         * m4/link-follow.m4: Likewise.
1266         * m4/locale-ar.m4: Likewise.
1267         * m4/locale-fr.m4: Likewise.
1268         * m4/locale-ja.m4: Likewise.
1269         * m4/locale-tr.m4: Likewise.
1270         * m4/locale-zh.m4: Likewise.
1271         * m4/locale_h.m4: Likewise.
1272         * m4/lock.m4: Likewise.
1273         * m4/logl.m4: Likewise.
1274         * m4/mathfunc.m4: Likewise.
1275         * m4/minus-zero.m4: Likewise.
1276         * m4/mktime.m4: Likewise.
1277         * m4/mmap-anon.m4: Likewise.
1278         * m4/multiarch.m4: Likewise.
1279         * m4/nanosleep.m4: Likewise.
1280         * m4/nocrash.m4: Likewise.
1281         * m4/poll.m4: Likewise.
1282         * m4/printf-frexpl.m4: Likewise.
1283         * m4/printf.m4: Likewise.
1284         * m4/signbit.m4: Likewise.
1285         * m4/sinl.m4: Likewise.
1286         * m4/sqrtl.m4: Likewise.
1287         * m4/strerror_r.m4: Likewise.
1288         * m4/tanl.m4: Likewise.
1289         * m4/threadlib.m4: Likewise.
1290         * m4/ttyname_r.m4: Likewise.
1291         * m4/unlink.m4: Likewise.
1292         * m4/visibility.m4: Likewise.
1293         * m4/wcwidth.m4: Likewise.
1294         * tests/minus-zero.h: Likewise.
1295         * tests/test-alloca-opt.c: Likewise.
1296         * tests/test-copy-acl.sh: Likewise.
1297         * tests/test-copy-file.sh: Likewise.
1298         * tests/test-fdatasync.c: Likewise.
1299         * tests/test-file-has-acl.sh: Likewise.
1300         * tests/test-flock.c: Likewise.
1301         * tests/test-fsync.c: Likewise.
1302         * tests/test-localename.c: Likewise.
1303         * tests/test-malloca.c: Likewise.
1304         * tests/test-nonblocking-pipe.h: Likewise.
1305         * tests/test-nonblocking-socket.h: Likewise.
1306         * tests/test-openpty.c: Likewise.
1307         * tests/test-posix_openpt.c: Likewise.
1308         * tests/test-ptsname.c: Likewise.
1309         * tests/test-ptsname_r.c: Likewise.
1310         * tests/test-sameacls.c: Likewise.
1311         * tests/test-select.h: Likewise.
1312         * tests/test-set-mode-acl.sh: Likewise.
1313         * tests/test-snprintf-posix.h: Likewise.
1314         * tests/test-sprintf-posix.h: Likewise.
1315         * tests/test-strtod.c: Likewise.
1316         * tests/test-time.c: Likewise.
1317         * tests/test-vasnprintf-posix.c: Likewise.
1318         * tests/test-vasprintf-posix.c: Likewise.
1319         * doc/acl-resources.txt: Likewise.
1320         * doc/**/*.texi: Likewise.
1321         Reported by Max Horn <max@quendi.de>.
1322
1323 2012-06-22  Bruno Haible  <bruno@clisp.org>
1324
1325         grantpt: Relax requirement regarding invalid file descriptors.
1326         * lib/grantpt.c: Don't include <fcntl.h>.
1327         (grantpt): Don't verify the validity of the file descriptor.
1328         * modules/grantpt (Depends-on): Remove fcntl-h.
1329         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1330         file descriptors.
1331         * doc/posix-functions/grantpt.texi: Document more platforms on which
1332         grantpt succeeds for invalid file descriptors.
1333         Reported by Rich Felker <dalias@aerifal.cx>.
1334
1335 2012-06-22  Bruno Haible  <bruno@clisp.org>
1336
1337         fbufmode test: Don't test unportable behaviour.
1338         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1339         (main): Invoke it three times.
1340         Reported by Szabolcs Nagy <nsz@port70.net>
1341         and Rich Felker <dalias@aerifal.cx>.
1342
1343 2012-06-21  Bruno Haible  <bruno@clisp.org>
1344
1345         gnulib-tool: Refactor inctests variable.
1346         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1347         (func_modules_transitive_closure,
1348         func_modules_transitive_closure_separately,
1349         func_import, func_create_testdir): Update.
1350
1351         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1352         * gnulib-tool: Accept option --without-tests.
1353         (func_usage): Document --without-tests option. Rearrange.
1354         (inctests): Normalize according to the mode.
1355         * NEWS: Mention the change.
1356         Suggested by Simon Josefsson.
1357
1358 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1359
1360         parse-duration test: Avoid spurious output.
1361         * tests/test-parse-duration.sh: Reindent with leading tabs.
1362
1363 2012-06-21  Jim Meyering  <meyering@redhat.com>
1364
1365         maint: disable the strncpy prohibition
1366         * cfg.mk: Do not prohibit strncpy here.
1367
1368 2012-06-21  Bruno Haible  <bruno@clisp.org>
1369
1370         nonblocking: Avoid compilation error on mingw64.
1371         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1372         fscanf.
1373         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1374         * modules/vfscanf (configure.ac): Likewise.
1375         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1376         definition only if stdio.h has prepared it.
1377         Reported by Daniel P. Berrange <berrange@redhat.com>.
1378
1379 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1380
1381         gnulib-tool: Use readlink if it is available.
1382         * gnulib-tool (func_readlink): Choose function more appropriately.
1383
1384 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1385
1386         posixtm-tests: port to buggy compiler
1387         Problem reported by Simon Josefsson in
1388         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1389         * modules/posixtm-tests (Depends-on): Add stdint.
1390         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1391         Now of type int_least64_t, not int64_t, both because that's
1392         what INT64_C returns and because int_least64_t works even
1393         on 72-bit hosts.
1394         (T): Use INT64_C on constants outside the traditional int range,
1395         to work around compiler bug noted by Simon.
1396
1397         mktime: fix integer overflow in 'configure'-time test
1398         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1399         after integer overflow.  Problem reported by Rich Felker in
1400         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1401         Also, don't look for further instances of a bug if we've already
1402         found one instance; this helps 'configure' run faster.
1403
1404 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1405
1406         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1407         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1408         GetVersionEx correctly.
1409         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1410
1411 2012-06-20  Bruno Haible  <bruno@clisp.org>
1412
1413         fdopen: Allow implementations that don't reject invalid fd arguments.
1414         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1415         succeeds.
1416         Reported by Rich Felker <dalias@aerifal.cx>.
1417
1418 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1419
1420         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1421         bring in LIBINTL.
1422
1423 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1424
1425         init.sh: do not rely on autoupated PWD
1426         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1427         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1428         Although Nelson's bug was not necessarily fixed by this patch,
1429         it seems wise to make the change for safety.
1430         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1431         automagically after 'cd'; this is not reliable on older shells.
1432         (setup_): Fail if we cannot cd to temporary directory.
1433
1434 2012-06-19  Bruno Haible  <bruno@clisp.org>
1435
1436         stat, fstat: Avoid warnings on mingw64.
1437         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1438         redefining.
1439         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1440         Reported by Daniel P. Berrange <berrange@redhat.com>.
1441
1442 2012-06-19  Bruno Haible  <bruno@clisp.org>
1443
1444         stdioext: Add support for musl libc.
1445
1446         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1447         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1448
1449         * m4/fseterr.m4: New file.
1450         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1451         function exists.
1452         * modules/fseterr (Files): Add m4/fseterr.m4.
1453         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1454         __fseterr does not exist.
1455         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1456
1457         * lib/freadable.h: Update comment.
1458
1459         * lib/fwritable.h: Update comment.
1460
1461         * lib/freading.h: Update comment.
1462
1463         * lib/fwriting.h: Update comment.
1464
1465         * m4/freadahead.m4: New file.
1466         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1467         that function exists.
1468         * modules/freadahead (Files): Add m4/freadahead.m4.
1469         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1470         __freadahead does not exist.
1471         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1472
1473         * m4/freadptr.m4: New file.
1474         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1475         function exists.
1476         * modules/freadptr (Files): Add m4/freadptr.m4.
1477         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1478         __freadptr does not exist.
1479         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1480
1481         * m4/freadseek.m4: New file.
1482         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1483         exists.
1484         * modules/freadseek (Files): Add m4/freadseek.m4.
1485         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1486
1487         * lib/fpurge.c (fpurge): Update comment.
1488
1489         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1490
1491 2012-06-19  Bruno Haible  <bruno@clisp.org>
1492
1493         *printf-posix: Put more info into config.log.
1494         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1495         exit code into config.log.
1496
1497 2012-06-19  Bruno Haible  <bruno@clisp.org>
1498
1499         getopt-gnu: Fix exit code overflow in autoconf test.
1500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1501         to keep them below < 128.
1502
1503 2012-06-17  Jim Meyering  <meyering@redhat.com>
1504
1505         maint.mk: fix typo in code to derive GPG key at release time
1506         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1507
1508 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1509
1510         regex: avoid warning when pointers are not long
1511         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1512         and uintptr_t, not long, for portability to hosts where pointers and
1513         long have different sizes.  Issue noted by Daniel P. Berrange in
1514         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1515         and fix suggested by Bruno Haible in
1516         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1517
1518 2012-06-17  Bruno Haible  <bruno@clisp.org>
1519
1520         dummy: Relicense into the public domain.
1521         * modules/dummy (License): Set to "public domain".
1522         Suggested by Reuben Thomas.
1523
1524 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1525
1526         announce-gen: VPATH issues
1527         * build-aux/announce-gen (--srcdir): New option, used to trim the
1528         $srcdir part of the path from $builddir to NEWS.
1529         * top/maint.mk (announcement): Adjust.
1530
1531 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1532
1533         gnu-web-doc-update: VPATH builds
1534         * build-aux/gnu-web-doc-update (--builddir): New option.
1535         Revamp the handling of options.
1536         Prefer $(...) to `...`.
1537         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1538         the template, and it is GNU mktemp specific.
1539         Prefer set -e to long series of &&.
1540         Restore the initial git branch, not "master".
1541         Properly initialize submodules (don't rely only on bootstrap).
1542         Do not reconfigure blindly, use config.status.
1543         * top/README-release: Update instructions for gnu-web-doc-update.
1544
1545 2012-06-11  Jim Meyering  <meyering@redhat.com>
1546
1547         maint.mk: revert most of the previous change re "all these"
1548         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1549         For rationale, see the discussion at
1550         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1551
1552 2012-06-10  Karl Berry  <karl@gnu.org>
1553
1554         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1555
1556         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1557
1558 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1559
1560         parse-duration: Relicense under LGPLv2+.
1561         * modules/parse-duration (License): Change to LGPLv2+.
1562
1563 2012-06-10  Jim Meyering  <meyering@redhat.com>
1564
1565         maint.mk: prohibit common grammar error: "all these"
1566         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1567         the list of prohibited word sequences.  It should be "all of these".
1568         * lib/tempname.c (__gen_tempname): Fix one of them.
1569
1570 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1571
1572         do-release-commit-and-tag: support VPATH builds
1573         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1574         (noteworthy): Defined earlier to factor its value.
1575         (noteworthy_stub): New.
1576         Use it to factor.
1577         (help_version): Split into...
1578         (help, version): these.
1579         Adjust the option processing part.
1580         Support "--option=value" in addition to "--option value".
1581         (builddir): New.
1582         (--builddir): New option.
1583         * top/README-release: Document this.
1584         Reword slightly so that the reader cannot understand that he
1585         has to do these steps before calling do-release-commit-and-tag.
1586
1587 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1588
1589         readme-release: also require announce-gen and maintainer-makefile
1590         * modules/readme-release (Depends-on): here.
1591         * modules/announce-gen, modules/do-release-commit-and-tag,
1592         modules/gnu-web-doc-update, modules/maintainer-makefile
1593         (Description): Point to readme-release.
1594
1595 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1596
1597         maint.mk: fix VPATH issues.
1598         * top/maint.mk (news-check): GNU Make understand $< very well.
1599         (release-prep): NEWS is in $(srcdir).
1600
1601 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1602
1603         readme-release: require the promoted modules.
1604         * modules/readme-release (Depends-on): Add
1605         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1606         in this text.
1607
1608 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1609             Bruno Haible  <bruno@clisp.org>
1610
1611         error, strerror-override: Support mingw64 from Fedora 17.
1612         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1613         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1614         EINPROGRESS.
1615         * lib/strerror-override.h (strerror_override): Test it.
1616         * lib/strerror-override.c (strerror_override): Likewise.
1617         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1618
1619 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1620             Bruno Haible  <bruno@clisp.org>
1621
1622         error, strerror-override: Support mingw64 from Fedora 17.
1623         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1624         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1625         * lib/strerror-override.h (strerror_override): Test it.
1626         * lib/strerror-override.c (strerror_override): Likewise.
1627
1628 2012-06-03  Bruno Haible  <bruno@clisp.org>
1629
1630         error, strerror-override: Support new errno values from POSIX:2008.
1631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1632         ENOTRECOVERABLE.
1633         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1634         platforms.
1635         * lib/strerror-override.c (strerror_override): Conditionalize the
1636         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1637         * lib/strerror-override.h (strerror_override): Declare also if
1638         GNULIB_defined_EOWNERDEAD is defined.
1639         * tests/test-errno.c (e130, e131): New variables.
1640         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1641         ENOTRECOVERABLE.
1642         Reported by Paolo Bonzini.
1643
1644 2012-05-31  Jim Meyering  <meyering@redhat.com>
1645
1646         savewd: add missing dependency on sys_wait module
1647         * modules/savewd (Depends-on): Add sys_wait, needed at least
1648         for MSVC.  Report and suggested change by Michael Goffioul.
1649
1650 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         system-quote-tests: port to CentOS 5
1653         Problem reported by Tom G. Christensen in
1654         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1655         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1656
1657 2012-05-29  Jim Meyering  <meyering@redhat.com>
1658
1659         maint: fix typos in comments and ChangeLog
1660         Culprits identified and fixed mostly automatically using these commands:
1661         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1662         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1663         using http://github.com/lyda/misspell-check
1664         * ChangeLog: Fix typos.
1665         * doc/solaris-versions: Likewise.
1666         * lib/regexec.c (re_search_stub): Likewise.
1667         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1668
1669 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1670
1671         manywarnings: remove duplicate -Wmultichar entry
1672         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1673         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1674         so keep the entry marked as documented.
1675
1676 2012-05-27  Karl Berry  <karl@gnu.org>
1677
1678         * config/srclist.txt (mktime.c): remove last libc sync,
1679         perhaps just temporarily.
1680
1681 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1682
1683         regex: don't assume uint64_t or uint32_t
1684         * lib/regcomp.c (init_word_char): Don't assume that the types
1685         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1686         them, and on some 32-bit compilers there is no uint64_t.
1687         Problem reported by Gianluigi Tiesi in
1688         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1689
1690 2012-05-25  Jim Meyering  <meyering@redhat.com>
1691
1692         maint.mk: add strncpy-prohibiting syntax-check rule
1693         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1694
1695 2012-05-24  Jim Meyering  <meyering@redhat.com>
1696
1697         maint.mk: compute $(gpg_key_ID) more portably
1698         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1699         That use of sed is not portable to some fringe systems.
1700         Reported by Paul Eggert in
1701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1702
1703 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1704
1705         mktime: sync from glibc
1706         * config/srclist.txt: Uncomment mktime.c.
1707         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1708         First, indent with tabs, since glibc uses tabs and doesn't want to
1709         change and we'd rather be identical to glibc.  Also, two small
1710         coding changes:
1711         (isdst_differ): Use &&, not &, as && is the usual style.
1712         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1713         for clarity.
1714
1715 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1716
1717         announce-gen: du -h is more portable than du --human
1718         * build-aux/announce-gen (sizes): Invoke du with -h instead
1719         of --human.  Accept leading white space in its output.
1720
1721 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1722
1723         announce-gen: Improve diagnostics.
1724         * build-aux/announce-gen: When parsing command line options,
1725         prefer "announce-gen: option --release-type requires an argument"
1726         to "Option release-type requires an argument".
1727
1728 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1729
1730         maint.mk: gpg_key_ID: use sed more portably
1731         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1732         the closing brace.
1733         (refresh-po): Fuse two sed invocations into one.
1734
1735 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1736
1737         gitlog-to-changelog: support the log message format used in Bison.
1738         * build-aux/gitlog-to-changelog: Support --strip-tab and
1739         --strip-cherry-picked.
1740
1741 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1742
1743         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1744         the rest of the current time slice to another thread in the current
1745         process. So if the thread that feeds the file decscriptor we're
1746         polling is not in the current process, we get busy-waiting.
1747         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1748         Patch from Theodore Leblond.
1749         * lib/select.c: Split polling out of the loop that sets the output
1750         fd_sets.  Check for zero result and loop if the wait timeout is
1751         infinite.
1752
1753 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1754
1755         select: Fix build error on IRIX 6.5.
1756         * lib/select.c: Include stddef.h for NULL.
1757
1758 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1759
1760         gc: fix libgcrypt detection on older machines.
1761         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1762         copyright years because the file has been distributed every year
1763         since it was created.
1764
1765 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         crypto: fix bug in large buffer handling
1768         Problem reported by Serge Belyshev for glibc in
1769         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1771         * lib/md4.c (md4_process_block):
1772         * lib/md5.c (md5_process_block):
1773         * lib/sha1.c (sha1_process_block):
1774         * lib/sha256.c (sha256_process_block):
1775         Don't assume the buffer length is less than 2**32.
1776         * lib/sha512.c (sha512_process_block): Likewise.
1777         Here, the bug is present only in the rare case where the host does
1778         not support uint64_t or where size_t is wider than 64 bits.
1779         Use u64size to work around the problems.
1780         * lib/u64.h (u64size): New macro.
1781
1782 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1783
1784         fsusage: fix block size returned on older Linux 2.6
1785
1786         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1787         which is available since Linux 2.6.
1788         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1789         when the member is available so it can be used as a fallback.
1790         * doc/posix-functions/statvfs.texi: Mention the hang issue
1791         on Linux < 2.6.36.
1792
1793 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         bootstrap: suppress stderr chatter
1796         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1797         Omit unnecessary chatter to stderr.  The main program chatter
1798         was there only inadvertantly.
1799
1800         bootstrap: .gitignore files created by autopoint, libtool
1801         I ran into this problem when bootstrapping the latest diffutils.
1802         After './bootstrap', 'git status' reported lots of untracked files
1803         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1804         autopoint and do not need to be version-controlled.
1805         * build-aux/bootstrap: Put into .gitignore the files that
1806         autopoint and libtool create, by keeping track of files that exist
1807         after but not before these programs are run.
1808         (version_controlled_file): Move up.  2nd arg is now full file
1809         name, not base name; this is more convenient.  Put CVS at the end,
1810         as it's now somewhat deprecated.
1811
1812 2012-05-14  Jim Meyering  <meyering@redhat.com>
1813
1814         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1815         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1816         definition.  Reported by Bruno Haible.
1817
1818 2012-05-13  Bruno Haible  <bruno@clisp.org>
1819             Paul Eggert  <eggert@cs.ucla.edu>
1820
1821         binary-io: Define set_binary_mode function.
1822         * lib/binary-io.h (set_binary_mode): New function.
1823         (SET_BINARY): Define in terms of set_binary_mode.
1824         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1825         * tests/test-binary-io.c (main): Accept an argument, and test either
1826         set_binary_mode or SET_BINARY depending on the argument.
1827         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1828         argument. Clean up also t-bin-out0.tmp.
1829
1830 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1831
1832         bootstrap: take advantage of POSIX shell features
1833
1834         The 'bootstrap' script offered by Gnulib script already uses POSIX
1835         shell features (like $((...)) arithmetic expansions) that are not
1836         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1837         means that bootstrap must already be run using a proper POSIX shell,
1838         which will thus provide more features, like ${var#pattern} parameter
1839         expansion or inversion of a command exit status with '!'.  We can
1840         thus use these features to improve the clarity and the performances
1841         of the bootstrap script.
1842
1843         Suggested by Eric Blake.
1844
1845         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1846         of sed/expr plus command substitutions, to save some forks.  While
1847         we are at it, prefer the POSIX $(...) form of command substitution,
1848         rather than the legacy form `...` (since the former is visually
1849         clearer and interacts better with quoting), and prefer the idiom:
1850           "if ! CMD; then ACTION ..."
1851         over the idiom:
1852           "if CMD; then :; else ACTION ..."
1853         which was required by legacy Bourne shells not supporting '!'.
1854
1855 2012-05-12  Bruno Haible  <bruno@clisp.org>
1856
1857         system-quote: Add more comments.
1858         * lib/system-quote.h: Add more comments about wilcards and limitations.
1859         Suggested by Eli Zaretskii <eliz@gnu.org>.
1860
1861         sh-quote, system-quote: Add comments about wildcards.
1862         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1863         * lib/system-quote.h: Likewise.
1864         Reported by Eli Zaretskii <eliz@gnu.org>.
1865
1866 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         fsusage: check for GNU/Linux statvfs problem dynamically
1869         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1870         Define STAT_STATFS2_BSIZE too, since in this case the code now
1871         checks dynamically whether statvfs is reliable, falling back on
1872         Linux-style statfs otherwise.
1873         (statvfs_works): New function, for dynamically testing statvfs.
1874         (get_fs_usage) [STAT_STATVFS]: Use it.
1875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1876         statvfs on GNU/Linux hosts, since it's now done dynamically.
1877
1878 2012-05-10  Bruno Haible  <bruno@clisp.org>
1879
1880         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1881         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1882         '?' character.
1883         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1884         * tests/test-system-quote-main.c (check_all): Check also strings like
1885         "??????????".
1886         Reported by Eli Zaretskii <eliz@gnu.org>.
1887
1888 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         _Noreturn: port config.h to gcc -Wundef
1891         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1892         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1893         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1894
1895 2012-05-10  Bruno Haible  <bruno@clisp.org>
1896
1897         system-quote: Refactor.
1898         * lib/system-quote.h (system_quote_copy): Fix comment.
1899         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1900         New functions, extracted from system_quote_copy.
1901         (system_quote_length, system_quote_copy): Use these functions.
1902         Reported by Paul Eggert.
1903
1904 2012-05-08  Bruno Haible  <bruno@clisp.org>
1905
1906         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1907         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1908
1909 2012-05-08  Bruno Haible  <bruno@clisp.org>
1910
1911         Tests for module 'system-quote'.
1912         * modules/system-quote-tests: New file.
1913         * tests/test-system-quote.sh: New file.
1914         * tests/test-system-quote-main.c: New file.
1915         * tests/test-system-quote-child.c: New file.
1916
1917         New module 'system-quote'.
1918         * lib/system-quote.h: New file.
1919         * lib/system-quote.c: New file.
1920         * modules/system-quote: New file.
1921
1922 2012-05-08  Bruno Haible  <bruno@clisp.org>
1923
1924         sh-quote: Make C++ safe and allow multiple inclusion.
1925         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1926         declarations in extern "C".
1927
1928 2012-05-08  Bruno Haible  <bruno@clisp.org>
1929
1930         sh-quote tests: Make tests stricter.
1931         * tests/test-sh-quote.c (check_one): Check the return value of
1932         shell_quote_copy.
1933         (main): Check a string with a CR character. Check a string that
1934         contains UCHAR_MAX.
1935
1936 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1937
1938         warnings.m4: provide a means to specify the program to compile.
1939         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1940         (gl_WARN_ADD): here.
1941         Use gl_AS_VAR_APPEND.
1942         Support an argument to specify the program to compile.
1943         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1944         AC_SUBST the WARN_CFLAGS when they are used.
1945         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1946         leave this to gl_WARN_ADD.
1947
1948 2012-05-08  Eric Blake  <eblake@redhat.com>
1949
1950         doc: recommendations on gettext version
1951         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1952         choice between versions.
1953         * DEPENDENCIES (gettext): Cover both approaches.
1954
1955 2012-05-08  Jim Meyering  <meyering@redhat.com>
1956
1957         init.sh: explain why EXEEXT support uses aliases rather than functions
1958         * tests/init.sh: Add a comment.
1959
1960         init.sh: don't let bash aliases interfere with tests
1961         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1962         is bash.  This avoids problems for those who alias standard commands to
1963         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1964         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1965
1966 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1967
1968         stdint: be more consistent with glibc, SunOS libc
1969         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1970         (gl_int_fast16_t, gl_uint_fast16_t)
1971         (gl_int_fast32_t, gl_uint_fast32_t)
1972         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1973         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1974         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1975         Be consistent with glibc by default, and with SunOS 5.10 and later
1976         if __sun is defined.  This lessens the likelihood of clashes if
1977         code compiled for older hosts is combined with code compiled for
1978         newer ones.  Problem reported by Niels Möller in
1979         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1980
1981 2012-05-07  Eric Blake  <eblake@redhat.com>
1982
1983         isatty: relax license to LGPLv2+
1984         * modules/isatty (License): Relax license.
1985
1986 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1987
1988         stat-size: comment fix
1989         * lib/stat-size.h: Remove obsolete comment about indenting.
1990
1991 2012-05-06  Bruno Haible  <bruno@clisp.org>
1992
1993         Tests for module 'sh-quote'.
1994         * modules/sh-quote-tests: New file.
1995         * tests/test-sh-quote.c: New file.
1996
1997 2012-05-06  Bruno Haible  <bruno@clisp.org>
1998
1999         sh-quote: Improve shell_quote_argv's signature.
2000         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2001         * lib/sh-quote.c (shell_quote_argv): Likewise.
2002
2003 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         stdint: document issues with int_fast8_t etc.
2006         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2007         stdint.h substitutes may define these types differently.  See
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2009
2010 2012-05-05  Bruno Haible  <bruno@clisp.org>
2011
2012         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2013         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2014         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2015         or 'guessing no (mishandles large arguments)'.
2016
2017 2012-05-05  Bruno Haible  <bruno@clisp.org>
2018
2019         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2020         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2021         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2022         set gl_cv_func_link_follows_symlink to "guessing no".
2023
2024 2012-05-05  Bruno Haible  <bruno@clisp.org>
2025
2026         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2027         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2028         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2029         "guessing no".
2030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2031
2032 2012-05-05  Bruno Haible  <bruno@clisp.org>
2033
2034         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2035         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2036         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2037         set gl_cv_struct_dirent_d_ino to "guessing yes".
2038
2039 2012-05-05  Bruno Haible  <bruno@clisp.org>
2040
2041         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2042         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2043         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2044         "guessing yes".
2045
2046 2012-05-05  Bruno Haible  <bruno@clisp.org>
2047
2048         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2049         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2050         compiling to a glibc system, set gl_cv_func_signbit and
2051         gl_cv_func_signbit_gcc to "guessing yes".
2052
2053 2012-05-05  Bruno Haible  <bruno@clisp.org>
2054
2055         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2056         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2057         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2058         to "guessing yes".
2059         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2060         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2061
2062 2012-05-05  Bruno Haible  <bruno@clisp.org>
2063
2064         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2065         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2066         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2067         gl_cv_func_realpath_works to "guessing yes".
2068
2069 2012-05-05  Bruno Haible  <bruno@clisp.org>
2070
2071         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2073         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2074
2075 2012-05-04  Bruno Haible  <bruno@clisp.org>
2076
2077         Tweak last commit.
2078         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2079         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2080
2081 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         unistd_h: make it easier to avoid sys_types_h
2084         This is useful for Emacs, which has its own method of porting to
2085         Windows, and which therefore does not need the sys_types_h module.
2086         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2087         code moved here from gl_SYS_TYPES_H.
2088         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2089         using the code directly.
2090         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2091         gl_SYS_TYPES_H.
2092         * modules/sys_types (Files):
2093         * modules/unistd (Files): Add m4/off_t.m4.
2094
2095 2012-05-03  Bruno Haible  <bruno@clisp.org>
2096
2097         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2098         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2099         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2100         "guessing yes" or "guessing no".
2101         (gl_FUNC_LSTAT): Update.
2102         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2103         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2104         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2105
2106 2012-05-03  Bruno Haible  <bruno@clisp.org>
2107
2108         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2109         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2110         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2111         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2112         cross-compiling, choose the first alternative on glibc systems.
2113         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2114
2115 2012-05-03  Bruno Haible  <bruno@clisp.org>
2116
2117         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2118         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2119         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2120
2121 2012-05-03  Bruno Haible  <bruno@clisp.org>
2122
2123         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2124         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2125
2126 2012-05-03  Bruno Haible  <bruno@clisp.org>
2127
2128         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2129         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2130         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2131         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2132         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2133         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2134         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2135         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2136         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2137         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2138         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2139         gl_cv_func_chown_ctime_works to "guessing yes".
2140         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2141         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2142         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2143         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2144         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2146         compiling to glibc systems, set gl_cv_func_open_directory_works to
2147         "guessing yes".
2148         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2149         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2150         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2151         "guessing yes".
2152         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2153         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2154         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2155         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2156         "guessing yes".
2157         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2158         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2159         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2160         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2161         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2162         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2163         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2164         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2165         "guessing yes".
2166         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2167         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2168         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2169         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2170         "guessing yes".
2171         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2172         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2173         "guessing yes".
2174         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2175         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2176         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2177         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2178         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2179         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2180         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2181         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2182         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2183         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2184         "guessing yes".
2185         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2186         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2187         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2188         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2189         "guessing yes".
2190         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2191         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2192         "guessing yes".
2193         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2194         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2195         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2196         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2197         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2198         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2199         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2200         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2201         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2202         "guessing yes".
2203         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2204         compiling to glibc systems, set gl_cv_func_mknod_works to
2205         "guessing yes".
2206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2207         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2208         "guessing yes".
2209         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2210         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2211         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2212         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2213         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2214         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2215         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2216         compiling to glibc systems, set gl_cv_func_svid_putenv to
2217         "guessing yes".
2218         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2219         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2220         "guessing yes".
2221         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2222         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2223         "guessing yes".
2224         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2225         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2226         to "guessing yes".
2227         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2228         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2229         to "guessing yes".
2230         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2231         compiling to glibc systems, set gl_cv_func_rmdir_works to
2232         "guessing yes".
2233         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2234         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2235         gl_cv_func_unlink_parent_fails to "guessing yes".
2236         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2237         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2238         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2239         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2240         gl_cv_func_rename_dest_works to "guessing yes".
2241         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2242         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2243         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2244         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2245         "guessing yes".
2246         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2247         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2248         "guessing yes".
2249         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2250         compiling to glibc systems, set gl_cv_func_setenv_works to
2251         "guessing yes".
2252         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2253         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2254         "guessing yes".
2255         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2256         compiling to glibc systems, set gl_cv_func_sleep_works to
2257         "guessing yes".
2258         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2259         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2260         "guessing yes".
2261         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2262         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2263         "guessing yes".
2264         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2265         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2266         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2267         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2268         "guessing yes".
2269         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2270         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2271         "guessing yes".
2272         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2273         compiling to glibc systems, set gl_cv_func_usleep_works to
2274         "guessing yes".
2275         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2276         compiling to glibc systems, set gl_cv_func_futimesat_works to
2277         "guessing yes".
2278
2279 2012-05-03  Bruno Haible  <bruno@clisp.org>
2280
2281         Say "guessing yes" or "guessing no" when cross-compiling.
2282         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2283         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2285         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2286         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2287         am_cv_func_working_getline to "guessing yes" or "guessing no".
2288         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2289         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2290         (gl_FUNC_MEMMEM): When cross-compiling, set
2291         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2293         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2294         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2295         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2296         "guessing no".
2297         (gl_FUNC_STRCASESTR): When cross-compiling, set
2298         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2299         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2300         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2301         (gl_FUNC_STRSTR): When cross-compiling, set
2302         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2303         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2304         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2305         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2306         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2307
2308 2012-05-01  Bruno Haible  <bruno@clisp.org>
2309
2310         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2311         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2312         * build-aux/reloc-ldflags: Likewise.
2313         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2314
2315 2012-05-01  Bruno Haible  <bruno@clisp.org>
2316
2317         gnulib-tool: Remove transitional code.
2318         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2319         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2320
2321 2012-05-01  Bruno Haible  <bruno@clisp.org>
2322
2323         getcwd: Fix misindentation.
2324         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2325
2326 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2327
2328         exclude: process exclude and include directives in order
2329         This restores the pre-2009 behavior, and is part of a fix of a
2330         grep bug reported by Quentin Arce in
2331         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2332         * lib/exclude.c (struct exclude): Remove 'tail' member.
2333         (new_exclude_segment): Prepend the new segment instead of appending.
2334         Return void, since that's now more convenient.
2335         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2336         (file_name_matches): Renamed from excluded_file_name_p.
2337         (file_pattern_matches, file_name_matches):
2338         Return true if the pattern matches, not if it excludes.
2339         All callers changed.
2340         (excluded_file_name): Process the list in reverse order;
2341         since the list is now reversed this restores the pre-2009 behavior.
2342         (add_exclude): Adjust to new reversed-order list.  Use local var
2343         rather than macro, for clarity.
2344         * tests/test-exclude7.sh: Adjust to corrected behavior.
2345
2346         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2347         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2348         it's not possible here.  Handle the case of \ at end of pattern
2349         without dumping core.
2350         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2351
2352         _Noreturn: future-proof non-GNU and non-MSVC compilers
2353         * build-aux/snippet/_Noreturn.h (_Noreturn):
2354         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2355         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2356         C11 or later.  This is more likely to work with random future C
2357         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2359
2360         exclude: handle wildcards with FNM_EXTMATCH
2361         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2362         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2363         comment that "has wildcards" really means "has or may have
2364         wildcards".  Simplify by avoiding the need to call strcspn.
2365
2366 2012-04-29  Bruno Haible  <bruno@clisp.org>
2367
2368         gnulib-tool: Fix list of authors.
2369         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2370
2371 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2372
2373         bootstrap: support Automake-NG in $buildreq
2374         * bootstrap (check_versions): Handle automake and aclocal from
2375         Automake-NG specially.  They can be specified as respectively
2376         the "automake-ng" and "aclocal-ng" requirements.
2377
2378 2012-04-25  Eric Blake  <eblake@redhat.com>
2379
2380         bootstrap: only force latest Makefile.in.in for gettext module
2381         * build-aux/bootstrap (with_gettext): Only install latest
2382         Makefile.in.in for projects requesting bleeding edge gettext.
2383
2384 2012-04-22  Bruno Haible  <bruno@clisp.org>
2385
2386         doc: Mention reason for replacement on glibc/Linux systems.
2387         * doc/posix-functions/dprintf.texi: Mention the problem with special
2388         'long double' values.
2389         * doc/posix-functions/fprintf.texi: Likewise.
2390         * doc/posix-functions/printf.texi: Likewise.
2391         * doc/posix-functions/snprintf.texi: Likewise.
2392         * doc/posix-functions/sprintf.texi: Likewise.
2393         * doc/posix-functions/vdprintf.texi: Likewise.
2394         * doc/posix-functions/vfprintf.texi: Likewise.
2395         * doc/posix-functions/vprintf.texi: Likewise.
2396         * doc/posix-functions/vsnprintf.texi: Likewise.
2397         * doc/posix-functions/vsprintf.texi: Likewise.
2398         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2399         platforms with F_DUPFD_CLOEXEC problems.
2400         * doc/posix-functions/glob.texi: Mention which platforms are affected
2401         by the problem with symbolic links.
2402         * doc/posix-functions/linkat.texi: Mention the problem with
2403         AT_SYMLINK_FOLLOW on Linux.
2404
2405 2012-04-22  Bruno Haible  <bruno@clisp.org>
2406
2407         pwrite: Don't replace on all platforms.
2408         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2409
2410 2012-04-22  Bruno Haible  <bruno@clisp.org>
2411
2412         rint* tests: Avoid gcc warnings.
2413         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2414         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2415         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2416
2417 2012-04-21  Bruno Haible  <bruno@clisp.org>
2418
2419         users.txt: Update.
2420         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2421         switched from CVS to git, bzr, or svn.
2422
2423 2012-04-21  Bruno Haible  <bruno@clisp.org>
2424
2425         Large File Support for native Windows platforms.
2426
2427         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2428         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2429
2430         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2431         type.
2432         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2433         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2434         * doc/posix-headers/sys_types.texi: Mention the effect of the
2435         'largefile' module.
2436
2437         * lib/fcntl.in.h: Add comments about off_t.
2438         * modules/fcntl-h (Depends-on): Add sys_types.
2439
2440         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2441         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2442         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2443         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2444         * modules/unistd (Depends-on): Add sys_types.
2445         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2446
2447         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2448         instead of lseek.
2449         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2450         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2451         * modules/lseek (Depends-on): Add sys_types.
2452
2453         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2454         msvc-nothrow.h.
2455         (SetFileSize): New function.
2456         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2457         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2458         if Large File Support is requested.
2459         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2460         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2461
2462         * lib/stdio.in.h: Add comments about off_t.
2463         * modules/stdio (Depends-on): Add sys_types.
2464
2465         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2466         instead of ftello.
2467         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2468         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2469         (gl_PREREQ_FTELLO): New macro.
2470         * modules/ftello (Depends-on): Add sys_types.
2471         (configure.ac): Incoke gl_PREREQ_FTELLO.
2472
2473         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2474         instead of fseeko.
2475         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2476         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2477         (gl_PREREQ_FSEEKO): New macro.
2478         * modules/fseeko (Depends-on): Add sys_types.
2479         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2480
2481         * lib/sys_stat.in.h: Add comments about off_t.
2482         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2483         64-bit integer for st_size in 'struct stat'.
2484         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2485         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2486         * modules/sys_stat (Depends-on): Add sys_types.
2487         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2488
2489         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2490         instead of stat or _stat.
2491
2492         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2493         'struct _stati64' instead of fstat and 'struct stat'.
2494         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2495         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2496
2497         Reported by Ray Satiro <raysatiro@yahoo.com>.
2498
2499 2012-04-19  Eric Blake  <eblake@redhat.com>
2500
2501         bootstrap: accommodate older libtool
2502         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2503         Reported by Daniel P. Berrange.
2504
2505 2012-04-19  Jim Meyering  <meyering@redhat.com>
2506
2507         announce-gen: avoid failure due to lack of Digest::SHA1
2508         Even with the preferred Digest::SHA available, this script
2509         would fail when the backup module, Digest::SHA1, was not installed.
2510         * build-aux/announce-gen: Quote the conditional use of "use".
2511         Reported by Reuben Thomas in:
2512         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2513
2514         bootstrap: don't let a user's CDPATH setting affect this script
2515         When CDPATH is set, cd will sometimes generate output.
2516         When "cd" is run in a subshell whose output matters, that
2517         surprising-to-some output can cause malfunction.
2518         Unsetting CDPATH turns off this shell "feature."
2519         * build-aux/bootstrap (CDPATH): Unset.
2520         Reported by Reuben Thomas in:
2521         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2522         and inspired by his patch here:
2523         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2524
2525 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2526         and Jim Meyering  <meyering@redhat.com>
2527
2528         maint.mk: catch "see @xref{}" and similar
2529         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2530         prohibit "See also @xref{", "Also see @pxref{", and similar.
2531
2532 2012-04-16  Jim Meyering  <meyering@redhat.com>
2533
2534         bootstrap: really use gnulib's po/Makefile.in.in
2535         * build-aux/bootstrap: Correct the source file name in previous change.
2536         Reported by Akim Demaille.
2537
2538         configmake: correct minor inconsistency in Makefile rule
2539         * modules/configmake (Makefile.am): All other rules like this one
2540         run the final "mv -f ..." in the same backslash-continued command
2541         as the one that does everything else.  This one put the mv -f ...
2542         command on a separate, non-backslash-continued line.
2543         Make it like the others.
2544
2545         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2546         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2547         the one from gettext.  Reported by Akim Demaille.
2548
2549 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2550
2551         Fix recursion of install-* into po directories.
2552         Bison's install-pdf bug reported by Hans Aberg at
2553         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2554         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2555         (install-info, install-pdf, install-ps): New targets.
2556
2557 2012-04-16  Jim Meyering  <meyering@redhat.com>
2558
2559         maint: avoid spurious "make sc_maint" failure
2560         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2561         exempt all *.class file names, for lib/javaversion.class.
2562
2563 2012-04-15  Bruno Haible  <bruno@clisp.org>
2564
2565         lseek: Make configure test independent of environment.
2566         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2567         Windows, we know that lseek() on pipes is broken; skip the runtime
2568         test.
2569
2570 2012-04-14  Bruno Haible  <bruno@clisp.org>
2571
2572         stat: Bypass buggy override in mingw64.
2573         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2574         * lib/stat.c (stat) [mingw64]: Define to _stat.
2575         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2576
2577 2012-04-14  Bruno Haible  <bruno@clisp.org>
2578
2579         pathmax: Fix compilation error on MSVC 9.
2580         * modules/pathmax (Depends-on): Add unistd.
2581
2582 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2583
2584         README: document pointer comparison assumption
2585         * README (Portability guidelines): Document assumption about
2586         pointer comparisons, in response to a recent bug-gnulib comment by
2587         Jeffrey Kegler.
2588
2589 2012-04-12  Bruno Haible  <bruno@clisp.org>
2590
2591         Tests for module 'getrusage'.
2592         * modules/getrusage-tests: New file.
2593         * tests/test-getrusage.c: New file.
2594
2595         New module 'getrusage'.
2596         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2597         warn-on-use.h.
2598         (getrusage): New declaration.
2599         * lib/getrusage.c: New file.
2600         * m4/getrusage.m4: New file.
2601         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2602         is declared.
2603         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2604         HAVE_GETRUSAGE.
2605         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2606         snippet/c++defs, snippet/warn-on-use.
2607         (Makefile.am): Update generation of sys/resource.h. Substitute
2608         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2609         * modules/getrusage: New file.
2610         * doc/posix-functions/getrusage.texi: Mention the new module.
2611
2612 2012-04-12  Bruno Haible  <bruno@clisp.org>
2613
2614         Tests for module 'sys_resource'.
2615         * modules/sys_resource-tests: New file.
2616         * tests/test-sys_resource.c: New file.
2617
2618         New module 'sys_resource'.
2619         * lib/sys_resource.in.h: New file.
2620         * m4/sys_resource_h.m4: New file.
2621         * modules/sys_resource: New file.
2622         * doc/posix-headers/sys_resource.texi: Mention the new module.
2623
2624 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2625
2626         ioctl: Fix compilation error on mingw.
2627         * lib/ioctl.c: Include <windows.h>.
2628         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2629
2630 2012-04-04  Jim Meyering  <meyering@redhat.com>
2631
2632         regex: correct #pragma guard expression
2633         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2634         not 4.3.  Correct its cpp guard expression.
2635
2636 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2637
2638         regex: remove unnecessary type punning
2639         Problem reported by Vladimir Serbinenko in
2640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2641         * lib/regex.h (struct re_pattern_buffer): Change the type of
2642         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2643         Fix comment to match code.
2644         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2645         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2646         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2647         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2648         (set_regs):
2649         Omit no-longer-necessary casts.
2650
2651 2012-04-03  Bruno Haible  <bruno@clisp.org>
2652
2653         Tests for module 'ilogbl'.
2654         * modules/ilogbl-tests: New file.
2655         * tests/test-ilogbl.c: New file.
2656
2657         New module 'ilogbl'.
2658         * lib/math.in.h (ilogbl): New declaration.
2659         * lib/ilogbl.c: New file.
2660         * m4/ilogbl.m4: New file.
2661         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2663         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2664         Split sed invocation, to avoid the limit of 100 substitutions of
2665         HP-UX 'sed'.
2666         * modules/ilogbl: New file.
2667         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2668         * doc/posix-functions/ilogbl.texi: Mention the new module.
2669
2670 2012-04-03  Bruno Haible  <bruno@clisp.org>
2671
2672         Tests for module 'ilogbf'.
2673         * modules/ilogbf-tests: New file.
2674         * tests/test-ilogbf.c: New file.
2675
2676         New module 'ilogbf'.
2677         * lib/math.in.h (ilogbf): New declaration.
2678         * lib/ilogbf.c: New file.
2679         * m4/ilogbf.m4: New file.
2680         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2682         REPLACE_ILOGBF.
2683         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2684         REPLACE_ILOGBF.
2685         * modules/ilogbf: New file.
2686         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2687         * doc/posix-functions/ilogbf.texi: Mention the new module.
2688
2689 2012-04-03  Bruno Haible  <bruno@clisp.org>
2690
2691         Tests for module 'ilogb'.
2692         * modules/ilogb-tests: New file.
2693         * tests/test-ilogb.c: New file.
2694         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2695         tests/test-logb-ieee.h.
2696
2697         New module 'ilogb'.
2698         * lib/math.in.h (ilogb): New declaration.
2699         * lib/ilogb.c: New file.
2700         * m4/ilogb.m4: New file.
2701         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2703         REPLACE_ILOGB.
2704         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2705         REPLACE_ILOGB.
2706         * modules/ilogb: New file.
2707         * tests/test-math-c++.cc: Check the declaration of ilogb.
2708         * doc/posix-functions/ilogb.texi: Mention the new module.
2709
2710 2012-04-03  Bruno Haible  <bruno@clisp.org>
2711
2712         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2713         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2714         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2715         (main): Check their values.
2716         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2717         problem.
2718
2719 2012-04-03  Bruno Haible  <bruno@clisp.org>
2720
2721         Tests for module 'logbl-ieee'.
2722         * modules/logbl-ieee-tests: New file.
2723         * tests/test-logbl-ieee.c: New file.
2724
2725         New module 'logbl-ieee'.
2726         * modules/logbl-ieee: New file.
2727
2728         Tests for module 'logb-ieee'.
2729         * modules/logb-ieee-tests: New file.
2730         * tests/test-logb-ieee.c: New file.
2731
2732         New module 'logb-ieee'.
2733         * modules/logb-ieee: New file.
2734
2735         Tests for module 'logbf-ieee'.
2736         * modules/logbf-ieee-tests: New file.
2737         * tests/test-logbf-ieee.c: New file.
2738         * tests/test-logb-ieee.h: New file.
2739
2740         New module 'logbf-ieee'.
2741         * modules/logbf-ieee: New file.
2742
2743 2012-04-03  Bruno Haible  <bruno@clisp.org>
2744
2745         Tests for module 'logbl'.
2746         * modules/logbl-tests: New file.
2747         * tests/test-logbl.c: New file.
2748
2749         New module 'logbl'.
2750         * lib/math.in.h (logbl): New declaration.
2751         * lib/logbl.c: New file.
2752         * m4/logbl.m4: New file.
2753         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2755         REPLACE_LOGBL.
2756         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2757         REPLACE_LOGBL.
2758         * modules/logbl: New file.
2759         * tests/test-math-c++.cc: Check the declaration of logbl.
2760         * doc/posix-functions/logbl.texi: Mention the new module.
2761
2762 2012-04-02  Bruno Haible  <bruno@clisp.org>
2763
2764         Tests for module 'logbf'.
2765         * modules/logbf-tests: New file.
2766         * tests/test-logbf.c: New file.
2767
2768         New module 'logbf'.
2769         * lib/math.in.h (logbf): New declaration.
2770         * lib/logbf.c: New file.
2771         * m4/logbf.m4: New file.
2772         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2774         REPLACE_LOGBF.
2775         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2776         REPLACE_LOGBF.
2777         * modules/logbf: New file.
2778         * tests/test-math-c++.cc: Check the declaration of logbf.
2779         * doc/posix-functions/logbf.texi: Mention the new module.
2780
2781 2012-04-02  Bruno Haible  <bruno@clisp.org>
2782
2783         logb tests: More tests.
2784         * tests/test-logb.h: New file, based on tests/test-logb.c and
2785         tests/test-frexp.h.
2786         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2787         (main): Just invoke test_function.
2788         * modules/logb-tests (Files): Add tests/test-logb.h,
2789         tests/minus-zero.h, tests/randomd.c.
2790         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2791
2792         logb: Provide replacement and workarounds.
2793         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2794         is 1.
2795         * lib/logb.c: New file.
2796         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2797         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2799         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2800         * modules/logb (Files): Add lib/logb.c.
2801         (Depends-on): Add isfinite, frexp, isnand.
2802         (configure.ac): Compile the replacement code logb.c if needed.
2803         * tests/test-math-c++.cc: Check the declaration of logb.
2804         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2805         with subnormal numbers.
2806
2807 2012-04-02  Bruno Haible  <bruno@clisp.org>
2808
2809         log10* tests: Speed up.
2810         * tests/test-log10.h (test_function): Reduce amount of random numbers
2811         to test.
2812
2813 2012-04-01  Bruno Haible  <bruno@clisp.org>
2814
2815         logf-ieee: Fix test whether logf works.
2816         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2817
2818 2012-04-01  Bruno Haible  <bruno@clisp.org>
2819
2820         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2821         * lib/log10l.c: Include <float.h>
2822         (log10l): On IRIX, normalize the +Infinity value.
2823         * modules/log10l (Depends-on): Add 'float'.
2824         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2825         +Infinity.
2826
2827         log10f-ieee: Work around test failure on NetBSD 5.1.
2828         * m4/log10f-ieee.m4: New file.
2829         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2830         test whether log10f works with a negative argument. Replace it if not.
2831         * lib/log10f.c (log10f): For negative arguments, return NaN.
2832         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2833         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2834         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2835
2836         log10f-ieee: Work around test failure on Solaris 9.
2837         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2838         (configure.ac): Require gl_FUNC_LOG10F.
2839
2840         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2841         * m4/log10-ieee.m4: New file.
2842         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2843         whether log10 works with a negative argument. Replace it if not.
2844         * lib/log10.c (log10): For negative arguments, return NaN.
2845         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2846         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2847         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2848
2849         Tests for module 'log10l-ieee'.
2850         * modules/log10l-ieee-tests: New file.
2851         * tests/test-log10l-ieee.c: New file.
2852
2853         New module 'log10l-ieee'.
2854         * modules/log10l-ieee: New file.
2855
2856         Tests for module 'log10-ieee'.
2857         * modules/log10-ieee-tests: New file.
2858         * tests/test-log10-ieee.c: New file.
2859
2860         New module 'log10-ieee'.
2861         * modules/log10-ieee: New file.
2862
2863         Tests for module 'log10f-ieee'.
2864         * modules/log10f-ieee-tests: New file.
2865         * tests/test-log10f-ieee.c: New file.
2866         * tests/test-log10-ieee.h: New file.
2867
2868         New module 'log10f-ieee'.
2869         * modules/log10f-ieee: New file.
2870
2871 2012-04-01  Bruno Haible  <bruno@clisp.org>
2872
2873         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2874         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2875         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2876         workaround.
2877         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2878         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2880         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2881         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2882         (Depends-on): Update conditions.
2883         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2884         IRIX 6.5, OSF/1 5.1 problems.
2885
2886 2012-04-01  Bruno Haible  <bruno@clisp.org>
2887
2888         log10f: Work around OSF/1 5.1 bug.
2889         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2890         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2891         workaround.
2892         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2893         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2895         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2896         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2897         (Depends-on): Update conditions.
2898         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2899
2900 2012-04-01  Bruno Haible  <bruno@clisp.org>
2901
2902         log10: Work around OSF/1 5.1 bug.
2903         * lib/math.in.h (log10): New declaration.
2904         * lib/log10.c: New file.
2905         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2906         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2907         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2909         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2910         * modules/log10 (Files): Add lib/log10.c.
2911         (Depends-on): Add math.
2912         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2913         * tests/test-math-c++.cc: Check the declaration of log10.
2914         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2915
2916 2012-03-31  Bruno Haible  <bruno@clisp.org>
2917
2918         log10l tests: More tests.
2919         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2920         tests/minus-zero.h, tests/randoml.c.
2921         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2922         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2923         (main): Invoke test_function.
2924
2925         log10f tests: More tests.
2926         * modules/log10f-tests (Files): Add tests/test-log10.h,
2927         tests/minus-zero.h, tests/randomf.c.
2928         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2929         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2930         (main): Invoke test_function.
2931
2932         log10 tests: More tests.
2933         * tests/test-log10.h: New file.
2934         * modules/log10-tests (Files): Add tests/test-log10.h,
2935         tests/minus-zero.h, tests/randomd.c.
2936         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2937         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2938         (main): Invoke test_function.
2939
2940 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2941
2942         fflush: Fix syntax error.
2943         * lib/fflush.c: Include unused-parameter.h, needed for
2944         _GL_UNUSED_PARAMETER.
2945         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2946
2947 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2948
2949         regex: pacify GCC when compiling GRUB
2950         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2951         a diagnostic.  Reported by Vladimir Serbinenko in
2952         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2953
2954 2012-03-29  Eric Blake  <eblake@redhat.com>
2955
2956         stdio: don't assume gets any more
2957         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2958         support.
2959         * modules/stdio (Makefile.am): Likewise.
2960         * lib/stdio-read.c (gets): Likewise.
2961         * tests/test-stdio-c++.cc: Likewise.
2962         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2963         * lib/stdio.in.h (gets): Make warning occur in more places.
2964         * doc/posix-functions/gets.texi (gets): Update documentation.
2965         Reported by Christer Solskogen.
2966
2967         maint.mk: fix syntax checks without exclusions
2968         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2969         Reported by Daniel P. Berrange.
2970
2971         strerror_r: avoid compiler warning
2972         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2973         level.
2974
2975         fflush: avoid compiler warning
2976         * lib/fflush.c (update_fpos_cache): Mark variables that are
2977         potentially unused.
2978
2979 2012-03-25  Bruno Haible  <bruno@clisp.org>
2980
2981         Tests for module 'localeconv'.
2982         * modules/localeconv-tests: New file.
2983         * tests/test-localeconv.c: New file.
2984
2985         New module 'localeconv'.
2986         * lib/locale.in.h (localeconv): New declaration.
2987         * lib/localeconv.c: New file.
2988         * m4/localeconv.m4: New file.
2989         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2990         REPLACE_LOCALECONV.
2991         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2992         REPLACE_LOCALECONV.
2993         * modules/localeconv: New file.
2994         * modules/nl_langinfo (Depends-on): Add localeconv.
2995         * modules/human (Depends-on): Likewise.
2996         * doc/posix-functions/localeconv.texi: Mention the new module.
2997
2998 2012-03-25  Bruno Haible  <bruno@clisp.org>
2999
3000         locale: Provide a complete 'struct lconv'.
3001         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3002         'struct lconv' does not contain int_p_cs_precedes.
3003         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3004         * doc/posix-headers/locale.texi: Update.
3005
3006         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3007         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3008         * doc/posix-headers/locale.texi: Update.
3009
3010         locale: Provide a working 'struct lconv'.
3011         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3012         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3013         'struct lconv' does not even contain decimal_point.
3014         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3015         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3016         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3017         * doc/posix-headers/locale.texi: Mention the problems with
3018         'struct lconv'.
3019         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3020
3021 2012-03-24  Bruno Haible  <bruno@clisp.org>
3022
3023         Enable common subexpression optimization in GCC.
3024         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3025         macros.
3026         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3027         GCC attribute 'const'.
3028         (uc_locale_language): Declare with GCC attribute 'pure'.
3029         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3030         with GCC attribute 'const'.
3031         * lib/unictype.in.h (uc_is_general_category_withtable,
3032         uc_combining_class, uc_combining_class_name,
3033         uc_combining_class_long_name, uc_bidi_class_name,
3034         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3035         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3036         uc_decimal_value, uc_digit_value, uc_numeric_value,
3037         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3038         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3039         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3040         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3041         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3042         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3043         Declare with GCC attribute 'const'.
3044         (uc_general_category_name, uc_general_category_long_name,
3045         uc_general_category_byname, uc_general_category,
3046         uc_is_general_category, uc_combining_class_byname,
3047         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3048         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3049         Declare with GCC attribute 'pure'.
3050         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3051         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3052         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3053         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3054         with GCC attribute 'pure'.
3055         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3056         'const'.
3057         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3058         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3059         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3060         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3061         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3062         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3063         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3064         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3065         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3066         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3067         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3068         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3069         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3070         GCC attribute 'pure'.
3071         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3072         'const'.
3073         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3074         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3075         u32_strwidth): Declare with GCC attribute 'pure'.
3076
3077         Enable common subexpression optimization in GCC.
3078         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3079         (alphasort): Declare with GCC attribute 'pure'.
3080         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3081         (atoll): Declare with GCC attribute 'pure'.
3082         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3083         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3084         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3085         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3086         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3087         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3088         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3089
3090 2012-03-24  Bruno Haible  <bruno@clisp.org>
3091
3092         gnulib-tool: Avoid unintended error output from 'cmp'.
3093         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3094         "cmp -s", not "cmp > /dev/null".
3095
3096 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3097
3098         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3099
3100         It's not just Automake versions < 1.9b that creates an empty
3101         pkgdatadir at installation time if pkgdata_DATA is specified
3102         to empty; modern automake versions do this as well, at least
3103         until automake 1.11.4 (not yet released at the moment of writing,
3104         but soon to appear).  That behaviour was generally considered a
3105         feature rather than a bug, at least until this discussion:
3106         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3107
3108         See also automake bugs #10997 and #11030.
3109
3110         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3111         reference to relevant automake bug numbers.
3112         (func_emit_tests_Makefile_am): Likewise.
3113
3114 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3115
3116         announce-gen: use Digest::SHA when possible
3117         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3118         back to Digest::SHA1 if necessary.
3119
3120 2012-03-20  Jim Meyering  <meyering@redhat.com>
3121
3122         tests: avoid gcc warnings about argv vs. const initializers
3123         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3124         warnings about discarding 'const' qualifier from pointer target type.
3125         * tests/test-posix_spawn2.c (main): Likewise.
3126
3127 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3128
3129         README-release: simplify slightly
3130         * top/README-release: Run "git checkout master" only once.
3131
3132 2012-03-15  Mark Wielaard  <mark@klomp.org>
3133
3134         git-merge-changelog: add specific example on how to use with hg.
3135         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3136
3137 2012-03-18  Mark Wielaard  <mark@klomp.org>
3138
3139         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3140
3141 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3142
3143         git-version-gen: don't let "prefix" envvar cause trouble
3144         * build-aux/git-version-gen (prefix): Initialize properly,
3145         so as not to use a value specified via the environment.
3146         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3147
3148 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3149
3150         regex: diagnose too-large repeat counts in EREs
3151         Previously, the code did not diagnose the too-large repeat count
3152         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3153         as if it were 'b\{1000000000}', which is unexpected.
3154         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3155         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3156         is a reasonable one for this problem.  Another option would be to
3157         create a new REG_OVERFLOW error for repeat counts that are too large.
3158         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3159         count is too large, so that the caller can distinguish the two cases.
3160         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3161         "Too large" return code, and that repeat counts are one example of this.
3162
3163 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3164
3165         doc: some glibc x32 integer width issues
3166         * doc/posix-headers/sys_types.texi (sys/types.h):
3167         * doc/posix-headers/time.texi (time.h):
3168         Mention that glibc x32 does not conform to POSIX in a couple of
3169         areas related to integer widths.
3170
3171 2012-03-15  Bruno Haible  <bruno@clisp.org>
3172
3173         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3174         * lib/fma.c (VOLATILE): New macro.
3175         (FUNC): Use it to work around a GCC compiler bug.
3176
3177 2012-03-13  Bruno Haible  <bruno@clisp.org>
3178
3179         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3180         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3181         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3182         REPLACE_HYPOTL to 1.
3183         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3184
3185 2012-03-13  Bruno Haible  <bruno@clisp.org>
3186
3187         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3188         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3189         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3190         REPLACE_REMAINDERL to 1.
3191         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3192         bug.
3193
3194 2012-03-13  Bruno Haible  <bruno@clisp.org>
3195
3196         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3197         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3198         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3199         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3200         too big rounding errors.
3201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3202         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3203         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3204         (Depends-on): Update conditions.
3205         * tests/test-sqrtl.c (my_ldexpl): New function.
3206         (main): Add test of a particular value.
3207         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3208
3209 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3210
3211         doc: Update timer_* platform portability notes.
3212         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3213         that always return ENOSYS.
3214         * doc/posix-functions/timer_delete.texi: Likewise.
3215         * doc/posix-functions/timer_gettime.texi: Likewise.
3216         * doc/posix-functions/timer_settime.texi: Likewise.
3217
3218 2012-03-13  Bruno Haible  <bruno@clisp.org>
3219
3220         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3221         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3222         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3223         REPLACE_CBRTL to 1.
3224         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3225
3226 2012-03-13  Bruno Haible  <bruno@clisp.org>
3227
3228         remainderl: Avoid compilation error on AIX >= 5.2.
3229         * lib/math.in.h (remainderl): Undefine macro from the system header.
3230
3231 2012-03-13  Bruno Haible  <bruno@clisp.org>
3232
3233         Avoid compilation errors with MSVC option -fp:strict.
3234         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3235         * lib/cbrtf.c: Likewise.
3236         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3237
3238 2012-03-12  Bruno Haible  <bruno@clisp.org>
3239
3240         uninorm: Don't crash in out-of-memory conditions.
3241         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3242         gracefully.
3243         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3244         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3245
3246 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3247
3248         quote: fix syntax-check
3249         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3250         also exports quote_quoting_options.
3251
3252 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3253
3254         Collapse list of copyright years to ranges.  See
3255         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3256         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3257         build-aux/csharpexec.sh.in, build-aux/gnupload,
3258         build-aux/install-reloc, build-aux/javacomp.sh.in,
3259         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3260         build-aux/move-if-change, build-aux/reloc-ldflags,
3261         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3262
3263 2012-03-11  Bruno Haible  <bruno@clisp.org>
3264
3265         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3266         * m4/log2f-ieee.m4: New file.
3267         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3268         whether log2f works with a minus zero argument. Replace it if not.
3269         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3270         (Depends-on): Add log2-ieee.
3271         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3272         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3273
3274         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3275         * m4/log2-ieee.m4: New file.
3276         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3277         whether log2 works with a minus zero argument. Replace it if not.
3278         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3279         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3280         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3281
3282         Tests for module 'log2l-ieee'.
3283         * modules/log2l-ieee-tests: New file.
3284         * tests/test-log2l-ieee.c: New file.
3285
3286         New module 'log2l-ieee'.
3287         * modules/log2l-ieee: New file.
3288
3289         Tests for module 'log2-ieee'.
3290         * modules/log2-ieee-tests: New file.
3291         * tests/test-log2-ieee.c: New file.
3292
3293         New module 'log2-ieee'.
3294         * modules/log2-ieee: New file.
3295
3296         Tests for module 'log2f-ieee'.
3297         * modules/log2f-ieee-tests: New file.
3298         * tests/test-log2f-ieee.c: New file.
3299         * tests/test-log2-ieee.h: New file.
3300
3301         New module 'log2f-ieee'.
3302         * modules/log2f-ieee: New file.
3303
3304 2012-03-11  Bruno Haible  <bruno@clisp.org>
3305
3306         Tests for module 'log2l'.
3307         * modules/log2l-tests: New file.
3308         * tests/test-log2l.c: New file.
3309
3310         New module 'log2l'.
3311         * lib/math.in.h (log2l): New declaration.
3312         * lib/log2l.c: New file.
3313         * m4/log2l.m4: New file.
3314         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3316         REPLACE_LOG2L.
3317         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3318         REPLACE_LOG2L.
3319         * modules/log2l: New file.
3320         * tests/test-math-c++.cc: Check the declaration of log2l.
3321         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3322         and OSF/1 problems.
3323
3324 2012-03-11  Bruno Haible  <bruno@clisp.org>
3325
3326         Tests for module 'log2f'.
3327         * modules/log2f-tests: New file.
3328         * tests/test-log2f.c: New file.
3329
3330         New module 'log2f'.
3331         * lib/math.in.h (log2f): New declaration.
3332         * lib/log2f.c: New file.
3333         * m4/log2f.m4: New file.
3334         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3336         REPLACE_LOG2F.
3337         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3338         REPLACE_LOG2F.
3339         * modules/log2f: New file.
3340         * tests/test-math-c++.cc: Check the declaration of log2f.
3341         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3342         and OSF/1 and Cygwin problems.
3343
3344 2012-03-11  Bruno Haible  <bruno@clisp.org>
3345
3346         Tests for module 'log2'.
3347         * modules/log2-tests: New file.
3348         * tests/test-log2.c: New file.
3349         * tests/test-log2.h: New file.
3350
3351         New module 'log2'.
3352         * lib/math.in.h (log2): New declaration.
3353         * lib/log2.c: New file.
3354         * m4/log2.m4: New file.
3355         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3357         REPLACE_LOG2.
3358         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3359         REPLACE_LOG2.
3360         * modules/log2: New file.
3361         * tests/test-math-c++.cc: Check the declaration of log2.
3362         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3363         and OSF/1 and Cygwin problems.
3364
3365 2012-03-11  Bruno Haible  <bruno@clisp.org>
3366
3367         exp2* tests: More tests.
3368         * tests/test-exp2.h (test_function): Test all integral arguments that
3369         don't need to overflow or denormalized numbers.
3370         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3371         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3372         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3373
3374 2012-03-10  Bruno Haible  <bruno@clisp.org>
3375
3376         log1pl-ieee: Work around test failure on AIX 7.1.
3377         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3378
3379         log1pl-ieee: Work around test failure on IRIX 6.5.
3380         * m4/log1pl-ieee.m4: New file.
3381         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3382         test whether log1pl works with a minus zero argument. Replace it if
3383         not.
3384         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3386         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3387         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3388         (Depends-on): Update conditions.
3389         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3390         m4/signbit.m4.
3391         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3392         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3393
3394         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3395         * m4/log1pf-ieee.m4: New file.
3396         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3397         test whether log1pf works with a minus zero argument. Replace it if
3398         not.
3399         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3400         m4/signbit.m4.
3401         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3402         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3403
3404         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3405         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3406         (configure.ac): Require gl_FUNC_LOG1PF.
3407
3408         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3409         * m4/log1p-ieee.m4: New file.
3410         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3411         whether log1p works with a minus zero argument. Replace it if not.
3412         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3414         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3415         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3416         (Depends-on): Update conditions.
3417         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3418         m4/signbit.m4.
3419         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3420         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3421
3422         Tests for module 'log1pl-ieee'.
3423         * modules/log1pl-ieee-tests: New file.
3424         * tests/test-log1pl-ieee.c: New file.
3425
3426         New module 'log1pl-ieee'.
3427         * modules/log1pl-ieee: New file.
3428
3429         Tests for module 'log1p-ieee'.
3430         * modules/log1p-ieee-tests: New file.
3431         * tests/test-log1p-ieee.c: New file.
3432
3433         New module 'log1p-ieee'.
3434         * modules/log1p-ieee: New file.
3435
3436         Tests for module 'log1pf-ieee'.
3437         * modules/log1pf-ieee-tests: New file.
3438         * tests/test-log1pf-ieee.c: New file.
3439         * tests/test-log1p-ieee.h: New file.
3440
3441         New module 'log1pf-ieee'.
3442         * modules/log1pf-ieee: New file.
3443
3444 2012-03-10  Bruno Haible  <bruno@clisp.org>
3445
3446         Tests for module 'log1pl'.
3447         * modules/log1pl-tests: New file.
3448         * tests/test-log1pl.c: New file.
3449
3450         New module 'log1pl'.
3451         * lib/math.in.h (log1pl): New declaration.
3452         * lib/log1pl.c: New file.
3453         * m4/log1pl.m4: New file.
3454         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3456         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3457         * modules/log1pl: New file.
3458         * tests/test-math-c++.cc: Check the declaration of log1pl.
3459         * doc/posix-functions/log1pl.texi: Mention the new module.
3460
3461 2012-03-10  Bruno Haible  <bruno@clisp.org>
3462
3463         Tests for module 'log1pf'.
3464         * modules/log1pf-tests: New file.
3465         * tests/test-log1pf.c: New file.
3466
3467         New module 'log1pf'.
3468         * lib/math.in.h (log1pf): New declaration.
3469         * lib/log1pf.c: New file.
3470         * m4/log1pf.m4: New file.
3471         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3473         REPLACE_LOG1PF.
3474         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3475         REPLACE_LOG1PF.
3476         * modules/log1pf: New file.
3477         * tests/test-math-c++.cc: Check the declaration of log1pf.
3478         * doc/posix-functions/log1pf.texi: Mention the new module.
3479
3480 2012-03-10  Bruno Haible  <bruno@clisp.org>
3481
3482         log1p tests: More tests.
3483         * tests/test-log1p.h: New file.
3484         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3485         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3486         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3487         (main): Invoke test_function.
3488
3489         log1p: Provide replacement for Minix and MSVC.
3490         * lib/math.in.h (log1p): New declaration.
3491         * lib/log1p.c: New file.
3492         * m4/log1p.m4: New file.
3493         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3495         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3496         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3497         (Depends-on): Add math, isnand, log, round.
3498         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3499         HAVE_LOG1P is 0.
3500         * tests/test-math-c++.cc: Check the declaration of log1p.
3501         * doc/posix-functions/log1p.texi: Mention the replacement.
3502
3503 2012-03-10  Bruno Haible  <bruno@clisp.org>
3504
3505         math tests: Small simplification.
3506         * tests/test-exp.h (test_function): Use the same err_bound for
3507         'double' on platforms with sizeof (long double) == sizeof (double)
3508         than on platforms with sizeof (long double) > sizeof (double).
3509         * tests/test-exp2.h (test_function): Likewise.
3510         * tests/test-expm1.h (test_function): Likewise.
3511         * tests/test-log.h (test_function): Likewise.
3512
3513 2012-03-10  Bruno Haible  <bruno@clisp.org>
3514
3515         Fix some comments.
3516         * lib/expl.c: Fix an ambiguous comment.
3517         * lib/expm1.c: Likewise.
3518         * lib/expm1l.c: Likewise.
3519         * lib/exp2.c: Likewise.
3520         * lib/exp2l.c: Likewise.
3521
3522 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3523
3524         regex: allow inclusion of <regex.h> before <limits.h>
3525         Without this patch, portable programs had to include <limits.h> before
3526         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3527         I ran into this problem with a test version of GNU grep on Solaris 8.
3528         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3529         This is done conditionally so that this change can be merged
3530         back to glibc.
3531         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3532         using the included regex.
3533
3534         fts: depend on fdopendir
3535         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3536         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3537         problem was introduced when fdopendir was split out.
3538
3539 2012-03-10  Bruno Haible  <bruno@clisp.org>
3540
3541         Remove unused variables.
3542         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3543         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3544
3545 2012-03-10  Bruno Haible  <bruno@clisp.org>
3546
3547         isnanf-nolibm: Fix last commit.
3548         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3549
3550         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3551         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3552
3553 2012-03-10  Bruno Haible  <bruno@clisp.org>
3554
3555         logf-ieee: Work around test failure on NetBSD 5.1.
3556         * m4/logf-ieee.m4: New file.
3557         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3558         whether logf works with a negative argument. Replace it if not.
3559         * lib/logf.c (logf): For negative arguments, return NaN.
3560         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3561         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3562         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3563
3564         logf-ieee: Work around test failure on Solaris 9.
3565         * modules/logf-ieee (Depends-on): Add log-ieee.
3566         (configure.ac): Require gl_FUNC_LOGF.
3567
3568         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3569         * m4/log-ieee.m4: New file.
3570         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3571         log works with a negative argument. Replace it if not.
3572         * lib/log.c (log): For negative arguments, return NaN.
3573         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3574         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3575         * doc/posix-functions/log.texi: Mention the log-ieee module.
3576
3577         Tests for module 'logl-ieee'.
3578         * modules/logl-ieee-tests: New file.
3579         * tests/test-logl-ieee.c: New file.
3580
3581         New module 'logl-ieee'.
3582         * modules/logl-ieee: New file.
3583
3584         Tests for module 'log-ieee'.
3585         * modules/log-ieee-tests: New file.
3586         * tests/test-log-ieee.c: New file.
3587
3588         New module 'log-ieee'.
3589         * modules/log-ieee: New file.
3590
3591         Tests for module 'logf-ieee'.
3592         * modules/logf-ieee-tests: New file.
3593         * tests/test-logf-ieee.c: New file.
3594         * tests/test-log-ieee.h: New file.
3595
3596         New module 'logf-ieee'.
3597         * modules/logf-ieee: New file.
3598
3599 2012-03-10  Bruno Haible  <bruno@clisp.org>
3600
3601         log: Fix bug introduced on 2012-03-09.
3602         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3603
3604 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3605
3606         timer-time: link explicitly with pthreads on glibc
3607         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3608         to support static linking, when newer glibc is
3609         detected, as that contains pthread emulation of
3610         POSIX timer functions where required.
3611         * modules/timer-time: Depend on threadlib to
3612         pull in the appropriate library to link.
3613
3614 2012-03-10  Bruno Haible  <bruno@clisp.org>
3615
3616         log* tests: More tests.
3617         * tests/test-log.h: New file.
3618         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3619         (main): Invoke test_function.
3620         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3621         (main): Invoke test_function.
3622         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3623         (main): Invoke test_function.
3624         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3625         tests/randomd.c.
3626         (Makefile.am): Add randomd.c to test_log_SOURCES.
3627         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3628         tests/randomf.c.
3629         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3630         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3631         tests/randoml.c.
3632         (Depends-on): Add 'float'.
3633         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3634
3635 2012-03-09  Bruno Haible  <bruno@clisp.org>
3636
3637         logl: Work around OSF/1 5.1 bug.
3638         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3639         * lib/logl.c (logl): If logl exists, use it and provide just the
3640         workaround.
3641         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3642         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3644         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3645         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3646         (Depends-on): Update conditions.
3647         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3648
3649 2012-03-09  Bruno Haible  <bruno@clisp.org>
3650
3651         logf: Work around OSF/1 5.1 bug.
3652         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3653         * lib/logf.c (logf): If logf exists, use it and provide just the
3654         workaround.
3655         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3656         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3658         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3659         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3660         (Depends-on): Update conditions.
3661         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3662
3663 2012-03-09  Bruno Haible  <bruno@clisp.org>
3664
3665         log: Work around OSF/1 5.1 bug.
3666         * lib/math.in.h (log): New declaration.
3667         * lib/log.c: New file.
3668         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3669         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3670         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3672         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3673         * modules/log (Files): Add lib/log.c.
3674         (Depends-on): Add math.
3675         (configure.ac): If REPLACE_LOG is 1, compile an override.
3676         * tests/test-math-c++.cc: Check the declaration of log.
3677         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3678
3679 2012-03-09  Jim Meyering  <meyering@redhat.com>
3680
3681         readtokens.c: adjust wording in a comment
3682         * lib/readtokens.c: Insert omitted "that" in a comment.
3683
3684 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3685
3686         modechange: add notations +40, 00440, etc.
3687         * lib/modechange.c (mode_compile): Support new notations
3688         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3689
3690 2012-03-08  Bruno Haible  <bruno@clisp.org>
3691
3692         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3693         * m4/exp2l-ieee.m4: New file.
3694         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3695         test whether exp2l works with a NaN argument and with a negative
3696         infinity argument. Replace it if not.
3697         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3699         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3700         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3701         (Depends-on): Update conditions.
3702         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3703         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3704         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3705
3706         Tests for module 'exp2l-ieee'.
3707         * modules/exp2l-ieee-tests: New file.
3708         * tests/test-exp2l-ieee.c: New file.
3709
3710         New module 'exp2l-ieee'.
3711         * modules/exp2l-ieee: New file.
3712
3713         Tests for module 'exp2-ieee'.
3714         * modules/exp2-ieee-tests: New file.
3715         * tests/test-exp2-ieee.c: New file.
3716
3717         New module 'exp2-ieee'.
3718         * modules/exp2-ieee: New file.
3719
3720         Tests for module 'exp2f-ieee'.
3721         * modules/exp2f-ieee-tests: New file.
3722         * tests/test-exp2f-ieee.c: New file.
3723         * tests/test-exp2-ieee.h: New file.
3724
3725         New module 'exp2f-ieee'.
3726         * modules/exp2f-ieee: New file.
3727
3728 2012-03-08  Bruno Haible  <bruno@clisp.org>
3729
3730         Tests for module 'exp2l'.
3731         * modules/exp2l-tests: New file.
3732         * tests/test-exp2l.c: New file.
3733
3734         New module 'exp2l'.
3735         * lib/math.in.h (exp2l): New declaration.
3736         * lib/exp2l.c: New file.
3737         * lib/expl-table.c: New file, extracted from lib/expl.c.
3738         * lib/expl.c (gl_expl_table): New declaration.
3739         (expl): Remove expl_table. Update reference.
3740         * m4/exp2l.m4: New file.
3741         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3743         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3744         * modules/exp2l: New file.
3745         * modules/expl (Files): Add lib/expl-table.c.
3746         (configure.ac): Compile also expl-table.c.
3747         * tests/test-math-c++.cc: Check the declaration of exp2l.
3748         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3749         problem.
3750
3751 2012-03-08  Bruno Haible  <bruno@clisp.org>
3752
3753         Tests for module 'exp2f'.
3754         * modules/exp2f-tests: New file.
3755         * tests/test-exp2f.c: New file.
3756
3757         New module 'exp2f'.
3758         * lib/math.in.h (exp2f): New declaration.
3759         * lib/exp2f.c: New file.
3760         * m4/exp2f.m4: New file.
3761         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3763         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3764         * modules/exp2f: New file.
3765         * tests/test-math-c++.cc: Check the declaration of exp2f.
3766         * doc/posix-functions/exp2f.texi: Mention the new module and the
3767         IRIX problem.
3768
3769 2012-03-08  Bruno Haible  <bruno@clisp.org>
3770
3771         Tests for module 'exp2'.
3772         * modules/exp2-tests: New file.
3773         * tests/test-exp2.c: New file.
3774         * tests/test-exp2.h: New file.
3775
3776         New module 'exp2'.
3777         * lib/math.in.h (exp2): New declaration.
3778         * lib/exp2.c: New file.
3779         * m4/exp2.m4: New file.
3780         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3782         REPLACE_EXP2.
3783         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3784         REPLACE_EXP2.
3785         * modules/exp2: New file.
3786         * tests/test-math-c++.cc: Check the declaration of exp2.
3787         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3788         and OpenBSD problems.
3789
3790 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3791
3792         savedir: fix comment typo
3793         * lib/savedir.c (savedirstream): Fix typo in comment.
3794
3795 2012-03-08  Bruno Haible  <bruno@clisp.org>
3796
3797         test-readtokens.c: use const; remove unwarranted cast
3798         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3799
3800 2012-03-08  Bruno Haible  <bruno@clisp.org>
3801
3802         fmal: Avoid compilation error on AIX.
3803         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3804         AIX 5.2..7.1.
3805
3806 2012-03-08  Bruno Haible  <bruno@clisp.org>
3807
3808         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3809         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3810         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3811         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3812         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3813         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3814         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3815
3816 2012-03-08  Bruno Haible  <bruno@clisp.org>
3817
3818         remainderf: Override buggy system function on IRIX 6.5.
3819         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3820         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3821         when it exists.
3822         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3823
3824 2012-03-08  Jim Meyering  <meyering@redhat.com>
3825
3826         test-readtokens.c: avoid const-related compilation warnings
3827         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3828
3829 2012-03-07  Jim Meyering  <meyering@redhat.com>
3830             Bruno Haible  <bruno@clisp.org>
3831
3832         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3833         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3834         tests/randomd.c.
3835         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3836         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3837         tests/randoml.c.
3838         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3839
3840 2012-03-07  Bruno Haible  <bruno@clisp.org>
3841
3842         expm1l: Avoid compilation error on AIX.
3843         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3844         AIX 5.2..7.1.
3845
3846 2012-03-07  Bruno Haible  <bruno@clisp.org>
3847
3848         expm1l: Don't override undeclared system function on IRIX 6.5.
3849         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3850         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3851         it exists. Set HAVE_DECL_EXPM1L.
3852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3853         HAVE_EXPM1L.
3854         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3855         HAVE_EXPM1L.
3856         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3857
3858 2012-03-07  Bruno Haible  <bruno@clisp.org>
3859
3860         remainderl: Don't override undeclared system function on IRIX 6.5.
3861         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3862         HAVE_REMAINDERL.
3863         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3864         declared when it exists. Set HAVE_DECL_REMAINDERL.
3865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3866         not HAVE_REMAINDERL.
3867         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3868         HAVE_REMAINDERL.
3869         * doc/posix-functions/remainderl.texi: Mention missing declaration
3870         problem.
3871
3872 2012-03-07  Bruno Haible  <bruno@clisp.org>
3873
3874         rintf: Don't override undeclared system function on IRIX 6.5.
3875         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3876         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3877         exists. Set HAVE_DECL_RINTF.
3878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3879         HAVE_RINTF.
3880         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3881         HAVE_RINTF.
3882         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3883
3884 2012-03-07  Bruno Haible  <bruno@clisp.org>
3885
3886         roundl: Avoid compilation error on AIX.
3887         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3888         AIX 5.2..7.1.
3889
3890 2012-03-07  Bruno Haible  <bruno@clisp.org>
3891
3892         roundl: Don't override undeclared system function on IRIX 6.5.
3893         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3894         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3895         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3896         * modules/roundl (configure.ac): For replacement code, test
3897         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3898         (Depends-on): Update conditions.
3899         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3900
3901 2012-03-07  Bruno Haible  <bruno@clisp.org>
3902
3903         roundf: Don't override undeclared system function on IRIX 6.5.
3904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3905         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3906         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3907         * modules/roundf (configure.ac): For replacement code, test
3908         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3909         (Depends-on): Update conditions.
3910         * modules/roundf-ieee (Depends-on): Update conditions.
3911         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3912
3913 2012-03-07  Bruno Haible  <bruno@clisp.org>
3914
3915         round: Don't override undeclared system function on IRIX 6.5.
3916         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3917         argument.
3918         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3919         also when it is not declared. Set HAVE_ROUND. For replacement code,
3920         test HAVE_ROUND, not HAVE_DECL_ROUND.
3921         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3922         not HAVE_DECL_ROUND.
3923         (Depends-on): Update conditions.
3924         * modules/round-ieee (Depends-on): Update conditions.
3925         * doc/posix-functions/round.texi: Mention the IRIX problem.
3926
3927 2012-03-07  Bruno Haible  <bruno@clisp.org>
3928
3929         copysignf: Don't override undeclared system function on IRIX 6.5.
3930         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3931         HAVE_COPYSIGNF.
3932         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3933         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3934         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3935         not HAVE_COPYSIGNF.
3936         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3937         HAVE_COPYSIGNF.
3938         * doc/posix-functions/copysignf.texi: Mention missing declaration
3939         problem.
3940
3941 2012-03-07  Jim Meyering  <meyering@redhat.com>
3942
3943         readtokens: add tests
3944         * modules/readtokens-tests: New file.
3945         * tests/test-readtokens.c: New file.
3946
3947 2012-03-07  Jim Meyering  <meyering@redhat.com>
3948
3949         quotearg: the module must now include quote.h
3950         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3951         So must the module.
3952         * modules/quotearg (Files): Add quote.h.
3953
3954 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3955
3956         readtokens: avoid core dumps with unusual calling patterns
3957         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3958         * lib/readtokens.c: Include limits.h.
3959         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3960         (readtoken): Don't cache the delimiters; the cache code was buggy
3961         if !delim && saved_delim, or if the new n_delim differs from the old.
3962         Also, it wasn't thread-safe.
3963
3964 2012-03-07  Bruno Haible  <bruno@clisp.org>
3965
3966         quote: Adhere to common module description layout.
3967         * modules/quote (Makefile.am): Add back empty section.
3968
3969 2012-03-06  Akim Demaille  <demaille@gostai.com>
3970
3971         quote: fuse into quotearg
3972         This patch is made for the benefit of Bison.
3973         quote does not leave the choice of the quoting style to the user.
3974         quoting_style provides poor customizability, yet quoting_options,
3975         which is very rich, is hidden inside quotearg.c.  So in order to
3976         allow quote customization, move its implementation to quotearg.c.
3977         * lib/quote.c: Remove.
3978         * modules/quote: Adjust.
3979         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3980         warning: provide all the members of literal structs.
3981         (quote_quoting_options): New.
3982         (quote, quote_n): Import implementation from quote.c.
3983         * lib/quote.h: Import the comments from quote.c.
3984         (quote_quoting_options): New.
3985
3986 2012-03-06  Bruno Haible  <bruno@clisp.org>
3987
3988         Tests for module 'expm1l-ieee'.
3989         * modules/expm1l-ieee-tests: New file.
3990         * tests/test-expm1l-ieee.c: New file.
3991
3992         New module 'expm1l-ieee'.
3993         * modules/expm1l-ieee: New file.
3994
3995         Tests for module 'expm1f-ieee'.
3996         * modules/expm1f-ieee-tests: New file.
3997         * tests/test-expm1f-ieee.c: New file.
3998
3999         New module 'expm1f-ieee'.
4000         * modules/expm1f-ieee: New file.
4001
4002         Tests for module 'expm1-ieee'.
4003         * modules/expm1-ieee-tests: New file.
4004         * tests/test-expm1-ieee.c: New file.
4005         * tests/test-expm1-ieee.h: New file.
4006
4007         New module 'expm1-ieee'.
4008         * modules/expm1-ieee: New file.
4009         * m4/expm1-ieee.m4: New file.
4010         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4011         whether expm1 works with a minus zero argument. Replace it if not.
4012         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4014         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4015         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4016         (Depends-on): Update conditions.
4017         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4018         AIX problem.
4019
4020 2012-03-06  Bruno Haible  <bruno@clisp.org>
4021
4022         Work around expm1f bug on IRIX 6.5.
4023         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4024         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4025         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4026         not work.
4027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4028         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4029         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4030         (Depends-on): Update conditions.
4031         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4032
4033 2012-03-06  Bruno Haible  <bruno@clisp.org>
4034
4035         Tests for module 'expm1l'.
4036         * modules/expm1l-tests: New file.
4037         * tests/test-expm1l.c: New file.
4038
4039         New module 'expm1l'.
4040         * lib/math.in.h (expm1l): New declaration.
4041         * lib/expm1l.c: New file.
4042         * m4/expm1l.m4: New file.
4043         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4045         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4046         * modules/expm1l: New file.
4047         * tests/test-math-c++.cc: Check the declaration of expm1l.
4048         * doc/posix-functions/expm1l.texi: Mention the new module.
4049
4050 2012-03-06  Bruno Haible  <bruno@clisp.org>
4051
4052         Tests for module 'expm1f'.
4053         * modules/expm1f-tests: New file.
4054         * tests/test-expm1f.c: New file.
4055
4056         New module 'expm1f'.
4057         * lib/math.in.h (expm1f): New declaration.
4058         * lib/expm1f.c: New file.
4059         * m4/expm1f.m4: New file.
4060         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4062         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4063         * modules/expm1f: New file.
4064         * tests/test-math-c++.cc: Check the declaration of expm1f.
4065         * doc/posix-functions/expm1f.texi: Mention the new module.
4066
4067 2012-03-06  Bruno Haible  <bruno@clisp.org>
4068
4069         Tests for module 'expm1'.
4070         * modules/expm1-tests: New file.
4071         * tests/test-expm1.c: New file.
4072         * tests/test-expm1.h: New file.
4073
4074         New module 'expm1'.
4075         * lib/math.in.h (expm1): New declaration.
4076         * lib/expm1.c: New file.
4077         * m4/expm1.m4: New file.
4078         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4080         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4081         * modules/expm1: New file.
4082         * tests/test-math-c++.cc: Check the declaration of expm1.
4083         * doc/posix-functions/expm1.texi: Mention the new module.
4084
4085 2012-03-06  Bruno Haible  <bruno@clisp.org>
4086
4087         math: Ensure declarations of math functions.
4088         * modules/acosf (Depends-on): Add 'extensions'.
4089         * modules/asinf (Depends-on): Likewise.
4090         * modules/atan2f (Depends-on): Likewise.
4091         * modules/atanf (Depends-on): Likewise.
4092         * modules/cbrt (Depends-on): Likewise.
4093         * modules/cbrtf (Depends-on): Likewise.
4094         * modules/cbrtl (Depends-on): Likewise.
4095         * modules/copysignf (Depends-on): Likewise.
4096         * modules/copysignl (Depends-on): Likewise.
4097         * modules/cosf (Depends-on): Likewise.
4098         * modules/coshf (Depends-on): Likewise.
4099         * modules/expf (Depends-on): Likewise.
4100         * modules/fabsf (Depends-on): Likewise.
4101         * modules/fabsl (Depends-on): Likewise.
4102         * modules/fmaf (Depends-on): Likewise.
4103         * modules/fmal (Depends-on): Likewise.
4104         * modules/fmodf (Depends-on): Likewise.
4105         * modules/fmodl (Depends-on): Likewise.
4106         * modules/frexpf (Depends-on): Likewise.
4107         * modules/frexpl (Depends-on): Likewise.
4108         * modules/hypot (Depends-on): Likewise.
4109         * modules/hypotf (Depends-on): Likewise.
4110         * modules/hypotl (Depends-on): Likewise.
4111         * modules/ldexpf (Depends-on): Likewise.
4112         * modules/ldexpl (Depends-on): Likewise.
4113         * modules/log10f (Depends-on): Likewise.
4114         * modules/log10l (Depends-on): Likewise.
4115         * modules/log1p (Depends-on): Likewise.
4116         * modules/logb (Depends-on): Likewise.
4117         * modules/logf (Depends-on): Likewise.
4118         * modules/modff (Depends-on): Likewise.
4119         * modules/modfl (Depends-on): Likewise.
4120         * modules/powf (Depends-on): Likewise.
4121         * modules/remainderf (Depends-on): Likewise.
4122         * modules/remainderl (Depends-on): Likewise.
4123         * modules/rintf (Depends-on): Likewise.
4124         * modules/rintl (Depends-on): Likewise.
4125         * modules/sinf (Depends-on): Likewise.
4126         * modules/sinhf (Depends-on): Likewise.
4127         * modules/sqrtf (Depends-on): Likewise.
4128         * modules/tanf (Depends-on): Likewise.
4129         * modules/tanhf (Depends-on): Likewise.
4130         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4131         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4132         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4133         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4134         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4135         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4136         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4137         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4138         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4139         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4140         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4141         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4142         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4143         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4144         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4145         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4146         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4147         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4148         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4149         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4150         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4151         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4152         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4153         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4155         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4156         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4157         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4158         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4159         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4160         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4161         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4162         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4163         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4164         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4165         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4166         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4167         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4168         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4169         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4170         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4171
4172 2012-03-06  Bruno Haible  <bruno@clisp.org>
4173
4174         math: Update module names in warnings.
4175         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4176         tanl): Use specific module name in warn-on-use warning.
4177
4178 2012-03-06  Bruno Haible  <bruno@clisp.org>
4179
4180         expl: Simplify computation.
4181         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4182
4183 2012-03-05  Bruno Haible  <bruno@clisp.org>
4184
4185         exp* tests: More tests.
4186         * tests/test-exp.h: New file.
4187         * tests/test-exp.c: Include <float.h> and test-exp.h.
4188         (main): Invoke test_function.
4189         * tests/test-expf.c: Include <float.h> and test-exp.h.
4190         (main): Invoke test_function.
4191         * tests/test-expl.c: Include <float.h> and test-exp.h.
4192         (main): Invoke test_function.
4193         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4194         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4195         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4196         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4197         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4198         (Depends-on): Add 'float'.
4199         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4200
4201         expl: Fix precision of computed result.
4202         * lib/expl.c: Completely rewritten.
4203         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4204         (Maintainer): Add me.
4205         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4206
4207 2012-03-05  Bruno Haible  <bruno@clisp.org>
4208
4209         cbrt* tests: More tests.
4210         * tests/test-cbrt.h: New file.
4211         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4212         (main): Invoke test_function.
4213         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4214         (main): Invoke test_function.
4215         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4216         (main): Invoke test_function.
4217         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4218         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4219         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4220         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4221         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4222         (Depends-on): Add 'float'.
4223         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4224
4225 2012-03-05  Bruno Haible  <bruno@clisp.org>
4226
4227         hypot* tests: More tests.
4228         * tests/test-hypot.h: New file, partially extracted from
4229         tests/test-hypotl.c.
4230         * tests/test-hypot.c: Include test-hypot.h.
4231         (main): Invoke test_function.
4232         * tests/test-hypotf.c: Include test-hypot.h.
4233         (main): Invoke test_function.
4234         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4235         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4236         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4237         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4238         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4239         tests/randomf.c.
4240         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4241         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4242         tests/randoml.c.
4243         (Depends-on): Add 'fpucw', 'float'.
4244         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4245
4246 2012-03-05  Bruno Haible  <bruno@clisp.org>
4247
4248         fpucw: Doc about FreeBSD.
4249         * lib/fpucw.h: Mention FreeBSD in comments.
4250
4251 2012-03-04  Bruno Haible  <bruno@clisp.org>
4252
4253         sqrt* tests: More tests.
4254         * tests/test-sqrt.h: New file.
4255         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4256         (main): Invoke test_function.
4257         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4258         (main): Invoke test_function.
4259         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4260         (main): Invoke test_function.
4261         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4262         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4263         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4264         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4265         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4266         (Depends-on): Add 'float'.
4267         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4268
4269 2012-03-04  Bruno Haible  <bruno@clisp.org>
4270
4271         remainder* tests: More tests.
4272         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4273         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4274         (main): Invoke test_function.
4275         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4276         (main): Invoke test_function.
4277         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4278         (main): Invoke test_function.
4279         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4280         tests/randomd.c.
4281         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4282         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4283         tests/randomf.c.
4284         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4285         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4286         tests/randoml.c.
4287         (Depends-on): Add 'float'.
4288         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4289
4290 2012-03-04  Bruno Haible  <bruno@clisp.org>
4291
4292         remainder, remainderf, remainderl: Fix computation for large quotients.
4293         * lib/remainder.c: Completely rewritten.
4294         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4295         USE_FLOAT.
4296         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4297         USE_LONG_DOUBLE.
4298         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4299         isnand, isinf. Remove round, fma.
4300         * modules/remainderf (Files): Add lib/remainder.c.
4301         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4302         Remove roundf, fmaf.
4303         * modules/remainderl (Files): Add lib/remainder.c.
4304         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4305         isinf. Remove roundl, fmal.
4306         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4307         REMAINDER_LIBM.
4308         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4309         REMAINDERF_LIBM.
4310         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4311         REMAINDERL_LIBM.
4312
4313 2012-03-04  Bruno Haible  <bruno@clisp.org>
4314
4315         fmod* tests: More tests.
4316         * tests/test-fmod.h (my_ldexp): New function.
4317         (test_function): Reduce amount of random numbers to test. Add tests
4318         of very large quotients x / y.
4319         * tests/test-fmod.c (MAX_EXP): New macro.
4320         * tests/test-fmodf.c (MAX_EXP): Likewise.
4321         * tests/test-fmodl.c (MAX_EXP): Likewise.
4322
4323 2012-03-04  Bruno Haible  <bruno@clisp.org>
4324
4325         fmod, fmodl: Fix computation for large quotients x / y.
4326         * lib/fmod.c: Completely rewritten.
4327         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4328         USE_LONG_DOUBLE.
4329         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4330         isnand. Remove fma.
4331         * modules/fmodl (Files): Add lib/fmod.c.
4332         (Depends-on): Add float, isfinite, signbit, fabsl,
4333         frexpl, ldexpl, isnanl. Remove fma.
4334         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4335         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4336
4337 2012-03-03  Bruno Haible  <bruno@clisp.org>
4338
4339         fmod* tests: More tests.
4340         * tests/test-fmod.h: New file.
4341         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4342         (main): Invoke test_function.
4343         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4344         (main): Invoke test_function.
4345         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4346         (main): Invoke test_function.
4347         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4348         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4349         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4350         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4351         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4352         (Depends-on): Add 'float'.
4353         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4354
4355 2012-03-03  Bruno Haible  <bruno@clisp.org>
4356
4357         rint* tests: More tests.
4358         * tests/test-rint.h: New file, partially extracted from
4359         tests/test-rintl.c.
4360         * tests/test-rint.c: Include test-rint.h.
4361         (main): Invoke test_function.
4362         * tests/test-rintf.c: Include test-rint.h.
4363         (main): Invoke test_function.
4364         * tests/test-rintl.c: Include test-rint.h.
4365         (main): Invoke test_function.
4366         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4367         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4368         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4369         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4370         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4371         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4372
4373 2012-03-03  Bruno Haible  <bruno@clisp.org>
4374
4375         modf* tests: More tests.
4376         * tests/test-modf.h: New file.
4377         * tests/test-modf.c: Include <float.h> and test-modf.h.
4378         (main): Invoke test_function.
4379         * tests/test-modff.c: Include <float.h> and test-modf.h.
4380         (main): Invoke test_function.
4381         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4382         (main): Invoke test_function.
4383         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4384         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4385         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4386         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4387         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4388         (Depends-on): Add 'float'.
4389         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4390
4391 2012-03-03  Bruno Haible  <bruno@clisp.org>
4392
4393         fabs* tests: More tests.
4394         * tests/test-fabs.h: New file, partially extracted from
4395         tests/test-fabsl.c.
4396         * tests/test-fabs.c (RANDOM): New macro.
4397         * tests/test-fabsf.c (RANDOM): New macro.
4398         * tests/test-fabsl.c (RANDOM): New macro.
4399         * modules/fabs-tests (Files): Add tests/randomd.c.
4400         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4401         * modules/fabsf-tests (Files): Add tests/randomf.c.
4402         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4403         * modules/fabsl-tests (Files): Add tests/randoml.c.
4404         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4405
4406 2012-03-03  Bruno Haible  <bruno@clisp.org>
4407
4408         ldexp* tests: More tests.
4409         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4410         * tests/test-ldexp.c (RANDOM): New macro.
4411         * tests/test-ldexpf.c (RANDOM): New macro.
4412         * tests/test-ldexpl.c (RANDOM): New macro.
4413         * modules/ldexp-tests (Files): Add tests/randomd.c.
4414         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4415         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4416         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4417         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4418         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4419
4420 2012-03-03  Bruno Haible  <bruno@clisp.org>
4421
4422         frexp* tests: More tests.
4423         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4424         * tests/test-frexp.c (RANDOM): New macro.
4425         * tests/test-frexpf.c (RANDOM): New macro.
4426         * tests/test-frexpl.c (RANDOM): New macro.
4427         * modules/frexp-tests (Files): Add tests/randomd.c.
4428         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4429         * modules/frexpf-tests (Files): Add tests/randomf.c.
4430         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4431         * modules/frexpl-tests (Files): Add tests/randoml.c.
4432         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4433
4434 2012-03-03  Bruno Haible  <bruno@clisp.org>
4435
4436         Support for pseudo-random numbers in tests.
4437         * tests/randomf.c: New file.
4438         * tests/randomd.c: New file.
4439         * tests/randoml.c: New file.
4440         * tests/macros.h (randomf, randomd, randoml): New declarations.
4441
4442 2012-03-03  Bruno Haible  <bruno@clisp.org>
4443
4444         frexp* tests: Refactor.
4445         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4446         * tests/test-frexp.c: Include and use it.
4447         * tests/test-frexpf.c: Likewise.
4448         * tests/test-frexpl.c: Likewise.
4449         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4450         * modules/frexpf-tests (Files): Likewise.
4451         * modules/frexpl-tests (Files): Likewise.
4452
4453 2012-03-02  Jim Meyering  <meyering@redhat.com>
4454
4455         maint: don't specify XZ_OPT=-9ev in dist-related rule
4456         Using xz's -9 option is warranted only if you have a very large
4457         tarball (see xz's documentation for the sizes vs. presets), and
4458         requires 64MiB of memory at decompression time.
4459         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4460         Automake's default of just "-e" is fine.  Override on a
4461         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4462
4463 2012-03-01  Eric Blake  <eblake@redhat.com>
4464
4465         maint.mk: allow announcement for non-gnulib project
4466         * maint.mk (announcement): Skip gnulib version if not used.
4467
4468 2012-03-01  Jim Meyering  <meyering@redhat.com>
4469
4470         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4471         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4472         envvar settings cannot interfere.  Otherwise, setting envvars like
4473         prohibit=foo require=bar, etc. would cause spurious test failures.
4474
4475 2012-03-01  Eric Blake  <eblake@redhat.com>
4476
4477         maint.mk: add per-line exclusions to prohibitions
4478         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4479         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4480         (sc_const_long_option): Use it.
4481
4482 2012-03-01  Bruno Haible  <bruno@clisp.org>
4483
4484         Tests for module 'expl-ieee'.
4485         * modules/expl-ieee-tests: New file.
4486         * tests/test-expl-ieee.c: New file.
4487
4488         New module 'expl-ieee'.
4489         * modules/expl-ieee: New file.
4490
4491         Tests for module 'exp-ieee'.
4492         * modules/exp-ieee-tests: New file.
4493         * tests/test-exp-ieee.c: New file.
4494
4495         New module 'exp-ieee'.
4496         * modules/exp-ieee: New file.
4497
4498         Tests for module 'expf-ieee'.
4499         * modules/expf-ieee-tests: New file.
4500         * tests/test-expf-ieee.c: New file.
4501         * tests/test-exp-ieee.h: New file.
4502
4503         New module 'expf-ieee'.
4504         * modules/expf-ieee: New file.
4505
4506 2012-02-29  Bruno Haible  <bruno@clisp.org>
4507
4508         cbrtl-ieee: Work around test failure on IRIX 6.5.
4509         * m4/cbrtl-ieee.m4: New file.
4510         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4511         test whether cbrtl works with a minus zero argument. Replace it if not.
4512         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4514         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4515         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4516         (Depends-on): Update conditions.
4517         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4518         m4/signbit.m4.
4519         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4520         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4521         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4522
4523         Tests for module 'cbrtl-ieee'.
4524         * modules/cbrtl-ieee-tests: New file.
4525         * tests/test-cbrtl-ieee.c: New file.
4526
4527         New module 'cbrtl-ieee'.
4528         * modules/cbrtl-ieee: New file.
4529
4530         Tests for module 'cbrt-ieee'.
4531         * modules/cbrt-ieee-tests: New file.
4532         * tests/test-cbrt-ieee.c: New file.
4533
4534         New module 'cbrt-ieee'.
4535         * modules/cbrt-ieee: New file.
4536
4537         Tests for module 'cbrtf-ieee'.
4538         * modules/cbrtf-ieee-tests: New file.
4539         * tests/test-cbrtf-ieee.c: New file.
4540         * tests/test-cbrt-ieee.h: New file.
4541
4542         New module 'cbrtf-ieee'.
4543         * modules/cbrtf-ieee: New file.
4544
4545 2012-02-29  Bruno Haible  <bruno@clisp.org>
4546
4547         cbrtf: Work around bug in IRIX 6.5 system function.
4548         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4549         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4550         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4551         work.
4552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4553         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4554         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4555         (Depends-on): Update conditions.
4556         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4557
4558 2012-02-29  Bruno Haible  <bruno@clisp.org>
4559
4560         Tests for module 'cbrtl'.
4561         * modules/cbrtl-tests: New file.
4562         * tests/test-cbrtl.c: New file.
4563
4564         New module 'cbrtl'.
4565         * lib/math.in.h (cbrtl): New declaration.
4566         * lib/cbrtl.c: New file.
4567         * m4/cbrtl.m4: New file.
4568         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4570         HAVE_DECL_CBRTL.
4571         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4572         HAVE_DECL_CBRTL.
4573         * modules/cbrtl: New file.
4574         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4575         * doc/posix-functions/cbrtl.texi: Mention the new module.
4576
4577 2012-02-29  Bruno Haible  <bruno@clisp.org>
4578
4579         Tests for module 'cbrtf'.
4580         * modules/cbrtf-tests: New file.
4581         * tests/test-cbrtf.c: New file.
4582
4583         New module 'cbrtf'.
4584         * lib/math.in.h (cbrtf): New declaration.
4585         * lib/cbrtf.c: New file.
4586         * m4/cbrtf.m4: New file.
4587         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4589         HAVE_DECL_CBRTF.
4590         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4591         HAVE_DECL_CBRTF.
4592         * modules/cbrtf: New file.
4593         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4594         * doc/posix-functions/cbrtf.texi: Mention the new module.
4595
4596 2012-02-29  Bruno Haible  <bruno@clisp.org>
4597
4598         cbrt: Provide replacement on MSVC and Minix.
4599         * lib/math.in.h (cbrt): New declaration.
4600         * lib/cbrt.c: New file.
4601         * m4/cbrt.m4: New file.
4602         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4604         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4605         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4606         (Depends-on): Add dependencies.
4607         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4608         * tests/test-math-c++.cc: Check the declaration of cbrt.
4609         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4610         replacement.
4611
4612 2012-02-29  Bruno Haible  <bruno@clisp.org>
4613
4614         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4615         * m4/hypotl-ieee.m4: New file.
4616         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4617         test whether hypotl works with mixed NaN and Infinity arguments.
4618         Replace it if not.
4619         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4621         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4622         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4623         (Depends-on): Update conditions.
4624         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4625         (Depends-on): Add hypot-ieee.
4626         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4627         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4628
4629         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4630         * m4/hypotf-ieee.m4: New file.
4631         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4632         test whether hypotf works with mixed NaN and Infinity arguments.
4633         Replace it if not.
4634         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4635         (Depends-on): Add hypot-ieee.
4636         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4637         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4638
4639         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4640         * lib/math.in.h (hypot): New declaration.
4641         * lib/hypot.c: New file.
4642         * m4/hypot-ieee.m4: New file.
4643         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4644         whether hypot works with mixed NaN and Infinity arguments. Replace it
4645         if not.
4646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4647         REPLACE_HYPOT.
4648         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4649         * modules/hypot (Files): Add lib/hypot.c.
4650         (Depends-on): Add dependencies.
4651         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4652         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4653         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4654         * tests/test-math-c++.cc: Check the declaration of hypot.
4655         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4656
4657         Tests for module 'hypotl-ieee'.
4658         * modules/hypotl-ieee-tests: New file.
4659         * tests/test-hypotl-ieee.c: New file.
4660
4661         New module 'hypotl-ieee'.
4662         * modules/hypotl-ieee: New file.
4663
4664         Tests for module 'hypot-ieee'.
4665         * modules/hypot-ieee-tests: New file.
4666         * tests/test-hypot-ieee.c: New file.
4667
4668         New module 'hypot-ieee'.
4669         * modules/hypot-ieee: New file.
4670
4671         Tests for module 'hypotf-ieee'.
4672         * modules/hypotf-ieee-tests: New file.
4673         * tests/test-hypotf-ieee.c: New file.
4674         * tests/test-hypot-ieee.h: New file.
4675
4676         New module 'hypotf-ieee'.
4677         * modules/hypotf-ieee: New file.
4678
4679 2012-02-29  Bruno Haible  <bruno@clisp.org>
4680
4681         Remove unused variables.
4682         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4683         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4684         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4685         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4686
4687 2012-02-29  Eric Blake  <eblake@redhat.com>
4688
4689         termios: fix pid_t always, not just for tcgetsid
4690         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4691         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4692         just when building tcgetsid.
4693
4694 2012-02-29  Bruno Haible  <bruno@clisp.org>
4695
4696         Tests for module 'hypotl'.
4697         * modules/hypotl-tests: New file.
4698         * tests/test-hypotl.c: New file.
4699
4700         New module 'hypotl'.
4701         * lib/math.in.h (hypotl): New declaration.
4702         * lib/hypotl.c: New file.
4703         * m4/hypotl.m4: New file.
4704         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4706         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4707         * modules/hypotl: New file.
4708         * tests/test-math-c++.cc: Check the hypotl declaration.
4709         * doc/posix-functions/hypotl.texi: Mention the new module.
4710
4711 2012-02-29  Eric Blake  <eblake@redhat.com>
4712
4713         tcgetsid: fix cygwin header bug
4714         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4715
4716         docs: update cygwin progress
4717         * doc/posix-functions/llround.texi (llround): Added in cygwin
4718         1.7.8.
4719         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4720         * doc/glibc-functions/program_invocation_name.texi
4721         (program_invocation_name): Likewise.
4722         * doc/glibc-functions/program_invocation_short_name.texi
4723         (program_invocation_short_name): Likewise.
4724         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4725         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4726         Likewise.
4727         * doc/posix-functions/pthread_spin_destroy.texi
4728         (pthread_spin_destroy): Added in cygwin 1.7.10.
4729         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4730         Likewise.
4731         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4732         Likewise.
4733         * doc/posix-functions/pthread_spin_trylock.texi
4734         (pthread_spin_trylock): Likewise.
4735         * doc/posix-functions/pthread_spin_unlock.texi
4736         (pthread_spin_unlock): Likewise.
4737         * doc/posix-functions/pthread_setschedprio.texi
4738         (pthread_setschedprio): Likewise.
4739         * doc/posix-functions/pthread_attr_getstack.texi
4740         (pthread_attr_getstack): Likewise.
4741         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4742         (pthread_attr_getstackaddr): Likewise.
4743         * doc/glibc-functions/pthread_getattr_np.texi
4744         (pthread_getattr_np): Likewise.
4745         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4746         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4747         * doc/posix-functions/clock_settime.texi (clock_settime):
4748         Likewise.
4749         * doc/posix-functions/pthread_attr_getguardsize.texi
4750         (pthread_attr_getguardsize): Likewise.
4751         * doc/posix-functions/pthread_attr_setguardsize.texi
4752         (pthread_attr_setguardsize): Likewise.
4753         * doc/posix-functions/pthread_attr_setstack.texi
4754         (pthread_attr_setstack): Likewise.
4755         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4756         (pthread_attr_setstackaddr): Likewise.
4757         * doc/posix-functions/clock_getcpuclockid.texi
4758         (clock_getcpuclockid): Likewise.
4759         * doc/posix-functions/pthread_getcpuclockid.texi
4760         (pthread_getcpuclockid): Likewise.
4761         * doc/glibc-functions/error.texi (error): Likewise.
4762         * doc/glibc-functions/error_at_line.texi (error_at_line):
4763         Likewise.
4764         * doc/glibc-functions/error_message_count.texi
4765         (error_message_count): Likewise.
4766         * doc/glibc-functions/error_one_per_line.texi
4767         (error_one_per_line): Likewise.
4768         * doc/glibc-functions/error_print_progname.texi
4769         (error_print_progname): Likewise.
4770         * doc/posix-functions/pthread_condattr_getclock.texi
4771         (pthread_condattr_getclock): Likewise.
4772         * doc/posix-functions/pthread_condattr_setclock.texi
4773         (pthread_condattr_setclock): Likewise.
4774         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4775         Likewise.
4776         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4777         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4778         * doc/glibc-functions/get_current_dir_name.texi
4779         (get_current_dir_name): Likewise.
4780         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4781         Likewise.
4782         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4783         wrong return type.
4784         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4785         1.7.11.
4786
4787 2012-02-29  Bruno Haible  <bruno@clisp.org>
4788
4789         Tests for module 'hypotf'.
4790         * modules/hypotf-tests: New file.
4791         * tests/test-hypotf.c: New file.
4792
4793         New module 'hypotf'.
4794         * lib/math.in.h (hypotf): New declaration.
4795         * lib/hypotf.c: New file.
4796         * m4/hypotf.m4: New file.
4797         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4799         REPLACE_HYPOTF.
4800         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4801         REPLACE_HYPOTF.
4802         * modules/hypotf: New file.
4803         * tests/test-math-c++.cc: Check the hypotf declaration.
4804         * doc/posix-functions/hypotf.texi: Mention the new module.
4805
4806         hypot: Prepare for hypotf module.
4807         * m4/hypot.m4: New file.
4808         * modules/hypot (Files): Add m4/hypot.m4.
4809         (configure.ac): Invoke gl_FUNC_HYPOT.
4810
4811 2012-02-29  Bruno Haible  <bruno@clisp.org>
4812
4813         hypot tests: More tests.
4814         * tests/test-hypot.c: Include <float.h>.
4815         (main): Add tests about overflow and underflow.
4816
4817 2012-02-29  Bruno Haible  <bruno@clisp.org>
4818
4819         math code: Add comments.
4820         * lib/acosl.c: Add comment about related glibc source files.
4821         * lib/asinl.c: Likewise.
4822         * lib/atanl.c: Likewise.
4823         * lib/expl.c: Likewise.
4824         * lib/logl.c: Likewise.
4825         * lib/sincosl.c: Likewise.
4826         * lib/sinl.c: Likewise.
4827         * lib/tanl.c: Likewise.
4828         * lib/trigl.c: Likewise.
4829         * lib/cosl.c: Likewise. Fix comments.
4830
4831 2012-02-28  Bruno Haible  <bruno@clisp.org>
4832
4833         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4834         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4835         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4836         HUGE_VALL are defined.
4837         (numeric_equald): Renamed from numeric_equal.
4838         (numeric_equalf, numeric_equall): New functions.
4839         (main): Check also HUGE_VALF, HUGE_VALL.
4840         * modules/math-tests (Files): Add tests/macros.h.
4841         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4842         HUGE_VALL.
4843
4844 2012-02-28  Bruno Haible  <bruno@clisp.org>
4845
4846         doc: Move ISO C11 feature notes into POSIX chapters.
4847         * doc/posix-functions/aligned_alloc.texi: Renamed from
4848         doc/glibc-functions/aligned_alloc.texi.
4849         * doc/posix-functions/quick_exit.texi: Renamed from
4850         doc/glibc-functions/quick_exit.texi.
4851         * doc/posix-headers/uchar.texi: Renamed from
4852         doc/glibc-headers/uchar.texi.
4853         * doc/posix-functions/c16rtomb.texi: Renamed from
4854         doc/glibc-functions/c16rtomb.texi.
4855         * doc/posix-functions/c32rtomb.texi: Renamed from
4856         doc/glibc-functions/c32rtomb.texi.
4857         * doc/posix-functions/mbrtoc16.texi: Renamed from
4858         doc/glibc-functions/mbrtoc16.texi.
4859         * doc/posix-functions/mbrtoc32.texi: Renamed from
4860         doc/glibc-functions/mbrtoc32.texi.
4861         * doc/gnulib.texi: Update.
4862         (Glibc uchar.h): Remove section.
4863         Suggested by Eric Blake.
4864
4865 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         stdnoreturn: port to MSVC better
4868         MSVC standard headers use __declspec(noreturn), so #define noreturn
4869         to empty on that platform.  Reported by Bruno Haible in
4870         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4871         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4872         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4873
4874 2012-02-28  Bruno Haible  <bruno@clisp.org>
4875
4876         doc: Mention new glibc headers and functions.
4877         * doc/glibc-headers/uchar.texi: New file.
4878         * doc/glibc-functions/aligned_alloc.texi: New file.
4879         * doc/glibc-functions/c16rtomb.texi: New file.
4880         * doc/glibc-functions/c32rtomb.texi: New file.
4881         * doc/glibc-functions/clock_adjtime.texi: New file.
4882         * doc/glibc-functions/fanotify_init.texi: New file.
4883         * doc/glibc-functions/fanotify_mark.texi: New file.
4884         * doc/glibc-functions/inet6_opt_append.texi: New file.
4885         * doc/glibc-functions/inet6_opt_find.texi: New file.
4886         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4887         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4888         * doc/glibc-functions/inet6_opt_init.texi: New file.
4889         * doc/glibc-functions/inet6_opt_next.texi: New file.
4890         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4891         * doc/glibc-functions/inet6_rth_add.texi: New file.
4892         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4893         * doc/glibc-functions/inet6_rth_init.texi: New file.
4894         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4895         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4896         * doc/glibc-functions/inet6_rth_space.texi: New file.
4897         * doc/glibc-functions/login.texi: New file.
4898         * doc/glibc-functions/mbrtoc16.texi: New file.
4899         * doc/glibc-functions/mbrtoc32.texi: New file.
4900         * doc/glibc-functions/name_to_handle_at.texi: New file.
4901         * doc/glibc-functions/ntp_gettimex.texi: New file.
4902         * doc/glibc-functions/open_by_handle_at.texi: New file.
4903         * doc/glibc-functions/prlimit.texi: New file.
4904         * doc/glibc-functions/process_vm_readv.texi: New file.
4905         * doc/glibc-functions/process_vm_writev.texi: New file.
4906         * doc/glibc-functions/recvmmsg.texi: New file.
4907         * doc/glibc-functions/scandirat.texi: New file.
4908         * doc/glibc-functions/sendmmsg.texi: New file.
4909         * doc/glibc-functions/setns.texi: New file.
4910         * doc/glibc-functions/timespec_get.texi: New file.
4911         * doc/gnulib.texi: Include them.
4912         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4913         sections.
4914         Reported by Eric Blake.
4915
4916 2012-02-28  Bruno Haible  <bruno@clisp.org>
4917
4918         Avoid compilation errors with MSVC option -fp:strict.
4919         * lib/floor.c: Use MSVC specific pragma fenv_access.
4920         * lib/ceil.c: Likewise.
4921         * lib/trunc.c: Likewise.
4922         * lib/round.c: Likewise.
4923         * lib/rint.c: Likewise.
4924         * lib/fma.c: Likewise.
4925         * lib/integer_length.c: Likewise.
4926         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4927         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4928         * tests/test-floor2.c: Likewise.
4929         * tests/test-floorf2.c: Likewise.
4930         * tests/test-ceil2.c: Likewise.
4931         * tests/test-ceilf2.c: Likewise.
4932         * tests/test-trunc2.c: Likewise.
4933         * tests/test-truncf2.c: Likewise.
4934         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4935
4936 2012-02-27  Bruno Haible  <bruno@clisp.org>
4937
4938         Tests for module 'sqrtl-ieee'.
4939         * modules/sqrtl-ieee-tests: New file.
4940         * tests/test-sqrtl-ieee.c: New file.
4941
4942         New module 'sqrtl-ieee'.
4943         * modules/sqrtl-ieee: New file.
4944
4945         Tests for module 'sqrt-ieee'.
4946         * modules/sqrt-ieee-tests: New file.
4947         * tests/test-sqrt-ieee.c: New file.
4948
4949         New module 'sqrt-ieee'.
4950         * modules/sqrt-ieee: New file.
4951
4952         Tests for module 'sqrtf-ieee'.
4953         * modules/sqrtf-ieee-tests: New file.
4954         * tests/test-sqrtf-ieee.c: New file.
4955         * tests/test-sqrt-ieee.h: New file.
4956
4957         New module 'sqrtf-ieee'.
4958         * modules/sqrtf-ieee: New file.
4959
4960 2012-02-27  Bruno Haible  <bruno@clisp.org>
4961
4962         remainderl-ieee: Work around test failure on OSF/1.
4963         * m4/remainderl-ieee.m4: New file.
4964         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4965         present, test whether remainderl works with a zero second argument.
4966         Replace it if not.
4967         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4969         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4970         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4971         (Depends-on): Update conditions.
4972         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4973         (Depends-on): Add remainder-ieee.
4974         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4975         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4976         module.
4977
4978         remainderf-ieee: Work around test failure on OSF/1.
4979         * m4/remainderf-ieee.m4: New file.
4980         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4981         present, test whether remainderf works with a zero second argument.
4982         Replace it if not.
4983         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4985         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4986         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4987         (Depends-on): Update conditions.
4988         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4989         (Depends-on): Add remainder-ieee.
4990         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4991         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4992         module.
4993
4994         remainder-ieee: Work around test failure on OSF/1.
4995         * m4/remainder-ieee.m4: New file.
4996         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4997         present, test whether remainder works with a zero second argument.
4998         Replace it if not.
4999         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5001         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5002         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5003         (Depends-on): Update dependencies.
5004         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5005         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5006         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5007
5008         Tests for module 'remainderl-ieee'.
5009         * modules/remainderl-ieee-tests: New file.
5010         * tests/test-remainderl-ieee.c: New file.
5011
5012         New module 'remainderl-ieee'.
5013         * modules/remainderl-ieee: New file.
5014
5015         Tests for module 'remainder-ieee'.
5016         * modules/remainder-ieee-tests: New file.
5017         * tests/test-remainder-ieee.c: New file.
5018
5019         New module 'remainder-ieee'.
5020         * modules/remainder-ieee: New file.
5021
5022         Tests for module 'remainderf-ieee'.
5023         * modules/remainderf-ieee-tests: New file.
5024         * tests/test-remainderf-ieee.c: New file.
5025         * tests/test-remainder-ieee.h: New file.
5026
5027         New module 'remainderf-ieee'.
5028         * modules/remainderf-ieee: New file.
5029
5030 2012-02-27  Bruno Haible  <bruno@clisp.org>
5031
5032         modff, modfl: Fix configure syntax error.
5033         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5034         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5035
5036 2012-02-27  Bruno Haible  <bruno@clisp.org>
5037
5038         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5039         * m4/fmodl-ieee.m4: New file.
5040         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5041         whether fmodl works with zero arguments. Replace it if not.
5042         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5043         (Depends-on): Add fmod-ieee.
5044         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5045         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5046
5047         fmodf-ieee: Work around test failure on OSF/1.
5048         * m4/fmodf-ieee.m4: New file.
5049         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5050         whether fmodf works with zero arguments. Replace it if not.
5051         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5053         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5054         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5055         (Depends-on): Update dependencies.
5056         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5057         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5058         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5059
5060         fmodf-ieee: Work around test failure on MSVC 9.
5061         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5062         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5063
5064         fmod-ieee: Work around test failures on OSF/1, mingw.
5065         * m4/fmod-ieee.m4: New file.
5066         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5067         whether fmod works with zero arguments. Replace it if not.
5068         * lib/math.in.h (fmod): New declaration.
5069         * lib/fmod.c: New file.
5070         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5072         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5073         * modules/fmod (Files): Add lib/fmod.c.
5074         (Depends-on): Add math, isinf, trunc, fma.
5075         (configure.ac): Arrange to compile lib/fmod.c if needed.
5076         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5077         m4/signbit.m4.
5078         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5079         * tests/test-math-c++.cc: Check the declaration of fmod.
5080         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5081
5082         fmodl-ieee: Fix test failures.
5083         * lib/fmodl.c (fmodl): Treat Inf specially.
5084         * modules/fmodl (Depends-on): Add isinf.
5085
5086         Tests for module 'fmodl-ieee'.
5087         * modules/fmodl-ieee-tests: New file.
5088         * tests/test-fmodl-ieee.c: New file.
5089
5090         New module 'fmodl-ieee'.
5091         * modules/fmodl-ieee: New file.
5092
5093         Tests for module 'fmod-ieee'.
5094         * modules/fmod-ieee-tests: New file.
5095         * tests/test-fmod-ieee.c: New file.
5096
5097         New module 'fmod-ieee'.
5098         * modules/fmod-ieee: New file.
5099
5100         Tests for module 'fmodf-ieee'.
5101         * modules/fmodf-ieee-tests: New file.
5102         * tests/test-fmodf-ieee.c: New file.
5103         * tests/test-fmod-ieee.h: New file.
5104
5105         New module 'fmodf-ieee'.
5106         * modules/fmodf-ieee: New file.
5107
5108 2012-02-27  Bruno Haible  <bruno@clisp.org>
5109
5110         Tests for module 'rintl-ieee'.
5111         * modules/rintl-ieee-tests: New file.
5112         * tests/test-rintl-ieee.c: New file.
5113
5114         New module 'rintl-ieee'.
5115         * modules/rintl-ieee: New file.
5116
5117         Tests for module 'rint-ieee'.
5118         * modules/rint-ieee-tests: New file.
5119         * tests/test-rint-ieee.c: New file.
5120
5121         New module 'rint-ieee'.
5122         * modules/rint-ieee: New file.
5123
5124         Tests for module 'rintf-ieee'.
5125         * modules/rintf-ieee-tests: New file.
5126         * tests/test-rintf-ieee.c: New file.
5127         * tests/test-rint-ieee.h: New file.
5128
5129         New module 'rintf-ieee'.
5130         * modules/rintf-ieee: New file.
5131
5132 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5133
5134         regex: re_search etc. should return -2 when memory exhausted
5135         This bug was uncovered when testing 'grep'.  Without the fix,
5136         re_search and friends return -1 when memory is exhausted, but -1
5137         means no match, and this causes grep to falsely report no-match
5138         instead of memory-exhaustion.  See
5139         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5140         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5141         trouble; this can occur if re_search_internal ran out of memory.
5142
5143 2012-02-26  Bruno Haible  <bruno@clisp.org>
5144
5145         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5146         * m4/modfl-ieee.m4: New file.
5147         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5148         whether modfl works with Inf. Replace it if not.
5149         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5151         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5152         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5153         (Depends-on): Update dependencies.
5154         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5155         m4/signbit.m4.
5156         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5157         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5158
5159         modfl-ieee: Fix dependencies.
5160         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5161
5162         modfl-ieee: Fix test failures.
5163         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5164         * modules/modfl (Depends-on): Add isfinite, isinf.
5165
5166         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5167         * m4/modff-ieee.m4: New file.
5168         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5169         whether modff works with NaN and Inf. Replace it if not.
5170         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5172         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5173         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5174         (Depends-on): Update dependencies.
5175         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5176         m4/signbit.m4.
5177         (Depends-on): Add modf-ieee.
5178         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5179         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5180
5181         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5182         * m4/modf-ieee.m4: New file.
5183         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5184         whether modf works with NaN and Inf. Replace it if not.
5185         * lib/math.in.h (modf): New declaration.
5186         * lib/modf.c: New file.
5187         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5189         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5190         * modules/modf (Files): Add lib/modf.c.
5191         (Depends-on): Add math, isfinite, trunc, isinf.
5192         (configure.ac): Addrange to compile lib/modf.c if needed.
5193         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5194         m4/signbit.m4.
5195         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5196         * tests/test-math-c++.cc: Check the declaration of modf.
5197         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5198
5199         Tests for module 'modfl-ieee'.
5200         * modules/modfl-ieee-tests: New file.
5201         * tests/test-modfl-ieee.c: New file.
5202
5203         New module 'modfl-ieee'.
5204         * modules/modfl-ieee: New file.
5205
5206         Tests for module 'modf-ieee'.
5207         * modules/modf-ieee-tests: New file.
5208         * tests/test-modf-ieee.c: New file.
5209
5210         New module 'modf-ieee'.
5211         * modules/modf-ieee: New file.
5212
5213         Tests for module 'modff-ieee'.
5214         * modules/modff-ieee-tests: New file.
5215         * tests/test-modff-ieee.c: New file.
5216         * tests/test-modf-ieee.h: New file.
5217
5218         New module 'modff-ieee'.
5219         * modules/modff-ieee: New file.
5220
5221 2012-02-26  Bruno Haible  <bruno@clisp.org>
5222
5223         Tests for module 'fabsl-ieee'.
5224         * modules/fabsl-ieee-tests: New file.
5225         * tests/test-fabsl-ieee.c: New file.
5226
5227         New module 'fabsl-ieee'.
5228         * modules/fabsl-ieee: New file.
5229
5230         Tests for module 'fabs-ieee'.
5231         * modules/fabs-ieee-tests: New file.
5232         * tests/test-fabs-ieee.c: New file.
5233
5234         New module 'fabs-ieee'.
5235         * modules/fabs-ieee: New file.
5236
5237         Tests for module 'fabsf-ieee'.
5238         * modules/fabsf-ieee-tests: New file.
5239         * tests/test-fabsf-ieee.c: New file.
5240         * tests/test-fabs-ieee.h: New file.
5241
5242         New module 'fabsf-ieee'.
5243         * modules/fabsf-ieee: New file.
5244
5245 2012-02-26  Bruno Haible  <bruno@clisp.org>
5246
5247         Tests for module 'fmal-ieee'.
5248         * modules/fmal-ieee-tests: New file.
5249         * tests/test-fmal-ieee.c: New file.
5250
5251         New module 'fmal-ieee'.
5252         * modules/fmal-ieee: New file.
5253
5254         Tests for module 'fma-ieee'.
5255         * modules/fma-ieee-tests: New file.
5256         * tests/test-fma-ieee.c: New file.
5257
5258         New module 'fma-ieee'.
5259         * modules/fma-ieee: New file.
5260
5261         Tests for module 'fmaf-ieee'.
5262         * modules/fmaf-ieee-tests: New file.
5263         * tests/test-fmaf-ieee.c: New file.
5264         * tests/test-fma-ieee.h: New file.
5265
5266         New module 'fmaf-ieee'.
5267         * modules/fmaf-ieee: New file.
5268
5269 2012-02-26  Bruno Haible  <bruno@clisp.org>
5270
5271         Tests for module 'ldexpl-ieee'.
5272         * modules/ldexpl-ieee-tests: New file.
5273         * tests/test-ldexpl-ieee.c: New file.
5274
5275         New module 'ldexpl-ieee'.
5276         * modules/ldexpl-ieee: New file.
5277
5278         Tests for module 'ldexp-ieee'.
5279         * modules/ldexp-ieee-tests: New file.
5280         * tests/test-ldexp-ieee.c: New file.
5281
5282         New module 'ldexp-ieee'.
5283         * modules/ldexp-ieee: New file.
5284
5285         Tests for module 'ldexpf-ieee'.
5286         * modules/ldexpf-ieee-tests: New file.
5287         * tests/test-ldexpf-ieee.c: New file.
5288         * tests/test-ldexp-ieee.h: New file.
5289
5290         New module 'ldexpf-ieee'.
5291         * modules/ldexpf-ieee: New file.
5292
5293 2012-02-26  Bruno Haible  <bruno@clisp.org>
5294
5295         Refactor frexp*-ieee tests.
5296         * tests/test-frexp-ieee.h: New file.
5297         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5298         (main): Just call test_function.
5299         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5300         (main): Just call test_function.
5301         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5302         (main): Just call test_function.
5303         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5304         * modules/frexp-ieee-tests (Files): Likewise.
5305         * modules/frexpl-ieee-tests (Files): Likewise.
5306
5307         Tests for module 'frexpl-ieee'.
5308         * modules/frexpl-ieee-tests: New file.
5309         * tests/test-frexpl-ieee.c: New file.
5310
5311         New module 'frexpl-ieee'.
5312         * modules/frexpl-ieee: New file.
5313
5314         Tests for module 'frexp-ieee'.
5315         * modules/frexp-ieee-tests: New file.
5316         * tests/test-frexp-ieee.c: New file.
5317
5318         New module 'frexp-ieee'.
5319         * modules/frexp-ieee: New file.
5320
5321         Tests for module 'frexpf-ieee'.
5322         * modules/frexpf-ieee-tests: New file.
5323         * tests/test-frexpf-ieee.c: New file.
5324
5325         New module 'frexpf-ieee'.
5326         * modules/frexpf-ieee: New file.
5327
5328 2012-02-26  Bruno Haible  <bruno@clisp.org>
5329
5330         roundl-ieee tests: More tests.
5331         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5332         (main): Add tests for [MX] shaded specification in POSIX.
5333         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5334         (Depends-on): Add isnanl-nolibm.
5335
5336         round-ieee tests: More tests.
5337         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5338         (main): Add tests for [MX] shaded specification in POSIX.
5339         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5340         (Depends-on): Add isnand-nolibm.
5341
5342         roundf-ieee tests: More tests.
5343         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5344         (main): Add tests for [MX] shaded specification in POSIX.
5345         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5346         (Depends-on): Add isnanf-nolibm.
5347
5348         truncl-ieee tests: More tests.
5349         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5350         (main): Add tests for [MX] shaded specification in POSIX.
5351         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5352         (Depends-on): Add isnanl-nolibm.
5353
5354         trunc-ieee tests: More tests.
5355         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5356         (main): Add tests for [MX] shaded specification in POSIX.
5357         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5358         (Depends-on): Add isnand-nolibm.
5359
5360         truncf-ieee tests: More tests.
5361         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5362         (main): Add tests for [MX] shaded specification in POSIX.
5363         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5364         (Depends-on): Add isnanf-nolibm.
5365
5366         ceill-ieee tests: More tests.
5367         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5368         (main): Add tests for [MX] shaded specification in POSIX.
5369         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5370         (Depends-on): Add isnanl-nolibm.
5371
5372         ceil-ieee tests: More tests.
5373         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5374         (main): Add tests for [MX] shaded specification in POSIX.
5375         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5376         (Depends-on): Add isnand-nolibm.
5377
5378         ceilf-ieee tests: More tests.
5379         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5380         (main): Add tests for [MX] shaded specification in POSIX.
5381         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5382         (Depends-on): Add isnanf-nolibm.
5383
5384         floorl-ieee tests: More tests.
5385         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5386         (main): Add tests for [MX] shaded specification in POSIX.
5387         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5388         (Depends-on): Add isnanl-nolibm.
5389
5390         floor-ieee tests: More tests.
5391         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5392         (main): Add tests for [MX] shaded specification in POSIX.
5393         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5394         (Depends-on): Add isnand-nolibm.
5395
5396         floorf-ieee tests: More tests.
5397         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5398         (main): Add tests for [MX] shaded specification in POSIX.
5399         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5400         (Depends-on): Add isnanf-nolibm.
5401
5402 2012-02-26  Bruno Haible  <bruno@clisp.org>
5403
5404         fpieee: More comments.
5405         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5406
5407 2012-02-25  Bruno Haible  <bruno@clisp.org>
5408
5409         Tests for module 'log10l'.
5410         * modules/log10l-tests: New file.
5411         * tests/test-log10l.c: New file.
5412         * tests/test-math-c++.cc: Check the declaration of log10l.
5413
5414         New module 'log10l'.
5415         * lib/math.in.h (log10l): New declaration.
5416         * lib/log10l.c: New file.
5417         * m4/log10l.m4: New file.
5418         * modules/log10l: New file.
5419         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5421         HAVE_DECL_LOG10L.
5422         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5423         HAVE_DECL_LOG10L.
5424         * doc/posix-functions/log10l.texi: Mention the new module.
5425
5426 2012-02-25  Bruno Haible  <bruno@clisp.org>
5427
5428         fmodl, remainder*: Avoid wrong results due to rounding errors.
5429         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5430         expected bounds.
5431         * lib/remainderf.c (remainderf): Likewise.
5432         * lib/remainder.c (remainder): Likewise.
5433         * lib/remainderl.c (remainderl): Likewise.
5434
5435 2012-02-25  Bruno Haible  <bruno@clisp.org>
5436
5437         Tests for module 'remainderl'.
5438         * modules/remainderl-tests: New file.
5439         * tests/test-remainderl.c: New file.
5440         * tests/test-math-c++.cc: Check the declaration of remainderl.
5441
5442         New module 'remainderl'.
5443         * lib/math.in.h (remainderl): New declaration.
5444         * lib/remainderl.c: New file.
5445         * m4/remainderl.m4: New file.
5446         * modules/remainderl: New file.
5447         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5449         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5450         HAVE_REMAINDERL.
5451         * doc/posix-functions/remainderl.texi: Mention the new module.
5452
5453 2012-02-25  Bruno Haible  <bruno@clisp.org>
5454
5455         Tests for module 'remainderf'.
5456         * modules/remainderf-tests: New file.
5457         * tests/test-remainderf.c: New file.
5458         * tests/test-math-c++.cc: Check the declaration of remainderf.
5459
5460         New module 'remainderf'.
5461         * lib/math.in.h (remainderf): New declaration.
5462         * lib/remainderf.c: New file.
5463         * m4/remainderf.m4: New file.
5464         * modules/remainderf: New file.
5465         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5467         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5468         HAVE_REMAINDERF.
5469         * doc/posix-functions/remainderf.texi: Mention the new module.
5470
5471 2012-02-25  Bruno Haible  <bruno@clisp.org>
5472
5473         remainder: Support for MSVC.
5474         * lib/math.in.h (remainder): New declaration.
5475         * lib/remainder.c: New file.
5476         * m4/remainder.m4: New file.
5477         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5478         (Depends-on): Add math, round, fma.
5479         (configure.ac): Use results of gl_FUNC_REMAINDER.
5480         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5482         HAVE_DECL_REMAINDER.
5483         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5484         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5485         * tests/test-math-c++.cc: Check the declaration of remainder.
5486         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5487         problems are fixed.
5488
5489 2012-02-25  Bruno Haible  <bruno@clisp.org>
5490
5491         Tests for module 'fmodl'.
5492         * modules/fmodl-tests: New file.
5493         * tests/test-fmodl.c: New file.
5494         * tests/test-math-c++.cc: Check the declaration of fmodl.
5495
5496         New module 'fmodl'.
5497         * lib/math.in.h (fmodl): New declaration.
5498         * lib/fmodl.c: New file.
5499         * m4/fmodl.m4: New file.
5500         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5502         REPLACE_FMODL.
5503         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5504         REPLACE_FMODL.
5505         * modules/fmodl: New file.
5506         * doc/posix-functions/fmodl.texi: Mention the new module.
5507
5508 2012-02-25  Bruno Haible  <bruno@clisp.org>
5509
5510         Tests for module 'modfl'.
5511         * modules/modfl-tests: New file.
5512         * tests/test-modfl.c: New file.
5513         * tests/test-math-c++.cc: Check the declaration of modfl.
5514
5515         New module 'modfl'.
5516         * lib/math.in.h (modfl): New declaration.
5517         * lib/modfl.c: New file.
5518         * m4/modfl.m4: New file.
5519         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5520         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5521         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5522         * modules/modfl: New file.
5523         * doc/posix-functions/modfl.texi: Mention the new module.
5524
5525 2012-02-25  Bruno Haible  <bruno@clisp.org>
5526
5527         Tests for module 'fabsl'.
5528         * modules/fabsl-tests: New file.
5529         * tests/test-fabsl.c: New file.
5530         * tests/test-math-c++.cc: Check the declaration of fabsl.
5531
5532         New module 'fabsl'.
5533         * lib/math.in.h (fabsl): New declaration.
5534         * lib/fabsl.c: New file.
5535         * m4/fabsl.m4: New file.
5536         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5538         REPLACE_FABSL.
5539         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5540         REPLACE_FABSL.
5541         * modules/fabsl: New file.
5542         * doc/posix-functions/fabsl.texi: Mention the new module.
5543
5544 2012-02-25  Bruno Haible  <bruno@clisp.org>
5545
5546         fabs tests: More tests.
5547         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5548         (zero): New variable.
5549         (main): Add tests for signed zero.
5550         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5551
5552         fabsf tests: More tests.
5553         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5554         (zero): New variable.
5555         (main): Add tests for signed zero.
5556         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5557
5558 2012-02-24  Bruno Haible  <bruno@clisp.org>
5559
5560         atanl: Provide function definition on MSVC.
5561         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5562         function pointer.
5563         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5564
5565 2012-02-24  Bruno Haible  <bruno@clisp.org>
5566
5567         acosl: Provide function definition on MSVC.
5568         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5569         function pointer.
5570         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5571
5572 2012-02-24  Bruno Haible  <bruno@clisp.org>
5573
5574         asinl: Provide function definition on MSVC.
5575         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5576         function pointer.
5577         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5578
5579 2012-02-24  Bruno Haible  <bruno@clisp.org>
5580
5581         tanl: Provide function definition on MSVC.
5582         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5583         function pointer.
5584         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5585
5586 2012-02-24  Bruno Haible  <bruno@clisp.org>
5587
5588         cosl: Provide function definition on MSVC.
5589         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5590         function pointer.
5591         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5592
5593 2012-02-24  Bruno Haible  <bruno@clisp.org>
5594
5595         sinl: Provide function definition on MSVC.
5596         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5597         function pointer.
5598         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5599
5600 2012-02-24  Bruno Haible  <bruno@clisp.org>
5601
5602         logl: Provide function definition on MSVC.
5603         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5604         function pointer.
5605         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5606
5607 2012-02-24  Bruno Haible  <bruno@clisp.org>
5608
5609         expl: Provide function definition on MSVC.
5610         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5611         function pointer.
5612         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5613
5614 2012-02-24  Bruno Haible  <bruno@clisp.org>
5615
5616         sqrtl: Provide function definition on MSVC.
5617         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5618         a function pointer.
5619         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5620
5621 2012-02-24  Bruno Haible  <bruno@clisp.org>
5622
5623         ceill: Provide function definition on MSVC.
5624         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5625         used as a function pointer.
5626         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5627
5628 2012-02-24  Bruno Haible  <bruno@clisp.org>
5629
5630         floorl: Provide function definition on MSVC.
5631         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5632         used as a function pointer.
5633         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5634
5635 2012-02-24  Bruno Haible  <bruno@clisp.org>
5636
5637         ceilf: Provide function definition on MSVC.
5638         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5639         used as a function pointer.
5640         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5641
5642 2012-02-24  Bruno Haible  <bruno@clisp.org>
5643
5644         floorf: Provide function definition on MSVC.
5645         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5646         used as a function pointer.
5647         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5648
5649 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5650
5651         stdnoreturn: new module
5652         This implements a replacement for C11's <stdnoreturn.h>.
5653         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5654         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5655         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5656         * tests/test-stdnoreturn.c: New files.
5657
5658 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5659
5660         regex: fix false multibyte matches in some regular expressions
5661         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5662         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5663         * lib/regex_internal.c (re_string_skip_chars):
5664         Fix miscomputation of remain_len that may cause incomplete
5665         multi-byte character and false match.
5666
5667 2012-02-24  Jim Meyering  <meyering@redhat.com>
5668
5669         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5670         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5671         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5672         Remove now-unnecessary str''cmp obfuscation.
5673         Suggested by Akim Demaille.
5674
5675 2012-02-24  Bruno Haible  <bruno@clisp.org>
5676
5677         streq: Rename macro.
5678         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5679         * NEWS: Mention the change.
5680         * lib/mbrtowc.c (mbrtowc): Update.
5681         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5682         * lib/wcwidth.c (wcwidth): Update.
5683         Suggested by Akim Demaille and Jim Meyering.
5684
5685 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5686
5687         regex: fix typo in definition of MIN
5688         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5689         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5690
5691 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5692             Bruno Haible  <bruno@clisp.org>
5693
5694         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5695         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5696         entries into a stack-allocated buffer directly.
5697         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5698
5699 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5700             Bruno Haible  <bruno@clisp.org>
5701
5702         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5703
5704          - There were several instances of this pattern:
5705
5706              for (;;) {
5707                n = acl (f, GETACLCNT, 0, NULL);
5708                [ allocate an array A of size N ]
5709                if (acl (f, GETACL, n, a) == n)
5710                  break;
5711              }
5712
5713            This loop might never terminate if some other process is constantly
5714            manipulating the file's ACL.  The loop should be rewritten to
5715            terminate.
5716
5717          - The acl (... GETACLNT ...) call is merely an optimization; its value
5718            is merely a hint as to how big to make the array.  A better
5719            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5720            and just guess a reasonably-big size, growing the size and trying
5721            again if it's not large enough.  This guarantees termination, and
5722            saves a system call.
5723
5724         * lib/acl-internal.h: Include <limits.h>.
5725         (MIN, SIZE_MAX): New macros.
5726         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5727         a stack-allocated buffer, and use malloc if it does not fit. Don't
5728         use GETACLCNT.
5729         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5730
5731 2012-02-19  Bruno Haible  <bruno@clisp.org>
5732
5733         acl: Fix endless loop on Solaris with vxfs.
5734         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5735         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5736         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5737         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5738         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5739         Reported by Bill Jones in
5740         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5741
5742 2012-02-19  Bruno Haible  <bruno@clisp.org>
5743
5744         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5745         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5746         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5747         that this function returns 0 in some more cases.
5748
5749 2012-02-19  Bruno Haible  <bruno@clisp.org>
5750
5751         acl: Update doc references.
5752         * doc/acl-resources.txt: Update links to Solaris documentation.
5753
5754 2012-02-19  Bruno Haible  <bruno@clisp.org>
5755
5756         Fix test failure in many locales on Solaris 11.
5757         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5758         'tr' arguments.
5759         * tests/test-pipe-filter-ii1.c (main): Likewise.
5760         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5761         expressions in the C locale.
5762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5763         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5764
5765 2012-02-19  Bruno Haible  <bruno@clisp.org>
5766
5767         gnulib-tool: Improve usage message.
5768         * gnulib-tool (func_usage): Move doc of --help and --version to the
5769         section "Operation modes".
5770
5771 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5772
5773         README-release: make it easier to execute commands
5774         * top/README-release: break commands out on to separate lines.
5775
5776 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5777
5778         GNUmakefile: simplify detection of unconfigured trees
5779         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5780         whether the tree make is being run from is already configured or
5781         not.  Related simplifications.
5782
5783 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5784
5785         * gnulib-tool (func_usage): Document --help and --version.
5786
5787 2012-02-11  Jim Meyering  <meyering@redhat.com>
5788
5789         bootstrap: don't exit 0 upon gnulib-tool failure
5790         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5791         its exit status, not 0.
5792
5793 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5794
5795         README-release: various improvements
5796         * top/README-release: Give a command to push changes for the
5797         release.  Add "distcheck" to list of other pre-release checks.
5798         Fix instance of "make stable" which should be "make TYPE".
5799
5800 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5801
5802         maint: replace FSF snail-mail addresses with URLs
5803         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5804         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5805         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5806         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5807         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5808         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5809         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5810         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5811         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5812         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5813         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5814         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5815         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5816         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5817         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5818         * lib/glthread/thread.c, lib/glthread/thread.h:
5819         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5820         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5821         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5822         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5823         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5824         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5825         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5826         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5827         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5828         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5829         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5830         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5831         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5832         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5833         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5834         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5835         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5836         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5837         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5838         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5839         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5840         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5841         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5842         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5843         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5844         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5845         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5846         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5847         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5848         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5849         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5850         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5851         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5852         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5853         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5854         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5855         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5856         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5857         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5858         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5859         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5860         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5861         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5862         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5863         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5864         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5865         * tests/test-poll.c, tests/test-quotearg-simple.c:
5866         * tests/test-quotearg.c, tests/test-quotearg.h:
5867         * tests/test-round-ieee.c, tests/test-round1.c:
5868         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5869         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5870         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5871         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5872         * tests/test-strerror.c, tests/test-strerror_r.c:
5873         * tests/test-strsignal.c, tests/test-strverscmp.c:
5874         * tests/test-xmemdup0.c:
5875         Replace FSF snail mail addresses with URLs, as per GNU coding
5876         standards.  See glibc bug
5877         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5878
5879 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5880
5881         README-release: capitalize a word and split a line
5882         * top/README-release: Fix punctuation and spacing.
5883
5884 2012-02-08  Akim Demaille  <demaille@gostai.com>
5885
5886         fatal-signal: use C prototypes (with explicit void).
5887         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5888         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5889
5890 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5891
5892         regex: spelling fix
5893         * lib/regexec.c: spelling fix
5894
5895         regex: rely on stdint.h for SIZE_MAX
5896         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5897
5898 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5899
5900         regex: merge glibc changes
5901
5902         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5903         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5904         (init_word_char): Work even if bitset words are not exactly 32 or
5905         64 bits wide.  Don't assume there are no padding bits.
5906         * lib/regex.c [_LIBC]: Do not include <config.h>.
5907         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5908         and -Wtype-limits.
5909         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5910         needless disagreement with glibc.  All uses changed.  Define it to
5911         1 only if _GNU_SOURCE, to match glibc.
5912         (_REG_RM_NAME): Remove; no longer needed, since the names in
5913         question are now all protected by __USE_GNU.
5914         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5915         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5916         * lib/regex_internal.h (MIN): New macro.
5917
5918         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5919         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5920
5921         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5922         * lib/regex_internal.c (re_string_fetch_byte_case):
5923         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5924         is miscompiled, and it turns out it is because of an incorrect
5925         attribute on re_string_fetch_byte_case.  Unlike
5926         re_string_peek_byte_case, this one is really not pure, it modifies
5927         memory (increments pstr->cur_idx), and with the pure attribute GCC
5928         assumed it doesn't and it cached the presumed value of
5929         regexp->cur_idx in a variable across the
5930          for (;; ++i)
5931            {
5932              if (i >= BRACKET_NAME_BUF_SIZE)
5933                return REG_EBRACK;
5934              if (token->type == OP_OPEN_CHAR_CLASS)
5935                ch = re_string_fetch_byte_case (regexp);
5936              else
5937                ch = re_string_fetch_byte (regexp);
5938              if (re_string_eoi(regexp))
5939                return REG_EBRACK;
5940              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5941                break;
5942              elem->opr.name[i] = ch;
5943            }
5944
5945         2011-11-29 Andreas Schwab <schwab@redhat.com>
5946         * lib/regcomp.c (build_equiv_class):
5947         Fix access after end of search string in regex matcher.
5948
5949         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5950         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5951
5952         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5953         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5954
5955         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5956         * lib/regcomp.c (parse_branch, parse_sub_exp):
5957         More regex memory leak fixes and tests.
5958         (parse_sub_exp, parse_bracket_exp):
5959         Fix memory leak for some invalid regular expressions.
5960
5961         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5962         * lib/regex_internal.c, lib/regexec.c:
5963         Fix unnecessary overallocation due to incomplete character.  When
5964         incomplete characters are found at the end of a string the code
5965         ran amok and allocated lots of memory.  Stricter limits are now in
5966         place.
5967
5968         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5969         * lib/regex.h: Update documentation.
5970
5971         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5972         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5973
5974         2010-05-05 Andreas Schwab <schwab@redhat.com>
5975         * lib/regexec.c (find_collation_sequence_value):
5976         Fix lookup of collation sequence value during regexp matching.
5977
5978         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5979         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5980
5981         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5982         * lib/regex.h: Cleanup namespace.
5983
5984         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5985         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5986
5987         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5988         * lib/regex_internal.h: Prevent some declarations and definitions
5989         to be seen when used in tests.
5990
5991         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5992         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5993         __libc_lock_* macros if not _LIBC.
5994         (struct re_dfa_t): Add lock.
5995
5996 2012-02-07  Eric Blake  <eblake@redhat.com>
5997
5998         maint.mk: also prohibit lower-case @var@
5999         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6000         lower case, like @top_srcdir@.
6001
6002 2012-02-04  Eric Blake  <eblake@redhat.com>
6003
6004         canonicalize: avoid uninitialized memory use
6005         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6006         random '/' left in dest.
6007         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6008
6009 2012-02-04  Bruno Haible  <bruno@clisp.org>
6010
6011         isatty: Fix test failure of ptsname_r on native Windows.
6012         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6013         and don't set errno.
6014         (isatty): Test first whether fd is valid. Set errno when returning 0.
6015
6016 2012-02-04  Bruno Haible  <bruno@clisp.org>
6017
6018         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6019         * tests/test-spawn-pipe-main.c: Include progname.h.
6020         (main): Invoke set_program_name.
6021         * modules/spawn-pipe-tests (Depends-on): Add progname.
6022
6023         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6024         * tests/test-nonblocking-socket-main.c: Include progname.h.
6025         (main): Invoke set_program_name.
6026         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6027
6028         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6029         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6030         (main): Invoke set_program_name.
6031         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6032
6033 2012-02-04  Eric Blake  <eblake@redhat.com>
6034
6035         canonicalize-lgpl: fix // handling
6036         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6037
6038         canonicalize: fix // handling
6039         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6040         /// to //, since only // is special.
6041
6042 2012-02-04  Bruno Haible  <bruno@clisp.org>
6043
6044         ioctl: Fix test failure on native Windows.
6045         * lib/ioctl.c: Include msvc-nothrow.h.
6046         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6047
6048 2012-02-04  Bruno Haible  <bruno@clisp.org>
6049
6050         fsync: Avoid test failure on native Windows.
6051         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6052         read-only.
6053
6054 2012-02-04  Bruno Haible  <bruno@clisp.org>
6055
6056         sys_select: Avoid syntax error on OpenBSD 5.0.
6057         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6058         currently being included, just include the system's <sys/select.h>.
6059
6060 2012-02-04  Bruno Haible  <bruno@clisp.org>
6061
6062         sys_select: Avoid syntax error on OpenBSD 5.0.
6063         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6064         <sys/select.h>, not before.
6065         Reported by Jiri B <jirib@devio.us>.
6066
6067 2012-02-04  Bruno Haible  <bruno@clisp.org>
6068
6069         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6070         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6071         global variables.
6072         * tests/test-get-rusage-data.c (main): Likewise.
6073         Reported by Jim Meyering.
6074
6075 2012-02-04  Bruno Haible  <bruno@clisp.org>
6076
6077         stdioext: Fix last commit.
6078         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6079
6080 2012-02-03  Bruno Haible  <bruno@clisp.org>
6081
6082         stdioext: Add tentative support for Plan9.
6083         * lib/stdio-impl.h: Include <errno.h>.
6084         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6085         * lib/freadable.c (freadable): Likewise.
6086         * lib/fwritable.c (fwritable): Likewise.
6087         * lib/fbufmode.c (fbufmode): Likewise.
6088         * lib/freading.c (freading): Likewise.
6089         * lib/fwriting.c (fwriting): Likewise.
6090         * lib/freadptr.c (freadptr): Likewise.
6091         * lib/freadseek.c (freadptrinc): Likewise.
6092         * lib/freadahead.c (freadahead): Likewise.
6093         * lib/fpurge.c (fpurge): Likewise.
6094         * lib/fseeko.c (rpl_fseeko): Likewise.
6095         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6096         Reported by Jens Staal <staal1978@gmail.com>.
6097
6098 2012-02-02  Jim Meyering  <meyering@redhat.com>
6099
6100         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6101         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6102         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6103         not even to try to add the attribute.  Instead, add a pragma to suppress
6104         the suggestion/warning.
6105
6106 2012-01-31  Karl Berry  <karl@gnu.org>
6107
6108         setstate doc: typo.
6109         * doc/posix-functions/setstate.texi (setstate): { not (.
6110
6111 2012-01-31  Bruno Haible  <bruno@clisp.org>
6112
6113         popen: Make more robust on Windows.
6114         * lib/popen.c: On native Windows, use the _popen based code even if
6115         HAVE_POPEN is set.
6116         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6117         environment variable on native Windows.
6118
6119 2012-01-30  Bruno Haible  <bruno@clisp.org>
6120
6121         pclose: Fix typo.
6122         * lib/stdio.in.h (pclose): Fix typo in warning message.
6123
6124 2012-01-30  Bruno Haible  <bruno@clisp.org>
6125
6126         doc about getlogin_r, setstate.
6127         * doc/posix-functions/getlogin_r.texi: List the incompatible
6128         declaration problem under "not fixed by gnulib".
6129         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6130         problem on Solaris 11 and other platforms.
6131
6132 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6133             Bruno Haible  <bruno@clisp.org>
6134
6135         poll tests: Make test more robust.
6136         * tests/test-poll.c: Include macros.h.
6137         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6138         return value of various I/O operations.
6139         * modules/poll-tests (Files): Add tests/macros.h.
6140
6141 2012-01-30  Bruno Haible  <bruno@clisp.org>
6142
6143         sys_stat: Fix support for mingw64 and MSVC.
6144         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6145         header files already do it.
6146         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6147         stat itself.
6148         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6149
6150 2012-01-30  Bruno Haible  <bruno@clisp.org>
6151
6152         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6154         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6155
6156 2012-01-29  Bruno Haible  <bruno@clisp.org>
6157
6158         quotearg: Fix test failure on MacOS X 10.5.
6159         * tests/test-quotearg-simple.c: Include localcharset.h.
6160         (main): If the locale encoding is not ASCII, bypass the tests of
6161         locale_quoting_style and clocale_quoting_style.
6162         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6163
6164 2012-01-29  Jim Meyering  <meyering@redhat.com>
6165
6166         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6167         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6168         detect uses of canonicalize_file_name.
6169
6170 2012-01-28  Bruno Haible  <bruno@clisp.org>
6171
6172         test-framework-sh: Fix test failure with AIX 7.1 diff.
6173         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6174         in column 1, like 'diff -c' does.
6175         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6176         whether 'diff -u' is used. Instead, test whether the output contains
6177         some '@' character.
6178
6179 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6180
6181         strtoimax: eliminate need for stdint.h, inttypes.h checks
6182         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6183         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6184         the prerequisites for a recently-introduced strtoimax test.
6185         I guess this might cause strtoimax to be replaced when not
6186         strictly necessary on older hosts, but this shouldn't introduce
6187         any bugs and it should make Emacs 'configure' faster on typical
6188         modern hosts.  Problem discovered when importing the latest gnulib
6189         to an Emacs test version.
6190         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6191
6192 2012-01-28  Bruno Haible  <bruno@clisp.org>
6193
6194         sys_time: Override 'struct timeval' on some native Windows platforms.
6195         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6196         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6197         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6198         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6199         needs to be overridden.
6200         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6201         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6202         * tests/test-sys_select.c: Check that the tv_sec member has the same
6203         size as a 'time_t'.
6204         * tests/test-sys_time.c: Likewise.
6205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6206         is set, set also REPLACE_GETTIMEOFDAY.
6207         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6208         convert the resulting 'struct timeval' before returning.
6209         * lib/select.c: Include <sys/time.h>.
6210         (select, timeval): Undefine at the right place.
6211         * modules/select (Depends-on): Add sys_time.
6212         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6213         some Windows platforms.
6214         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6215
6216 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6217
6218         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6219         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6220         an integer.
6221         * lib/fcntl.c (dupfd): Likewise.
6222         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6223
6224 2012-01-28  Bruno Haible  <bruno@clisp.org>
6225
6226         fcntl: Avoid compilation error on native Windows.
6227         * modules/fcntl (Depends-on): Add 'close'.
6228
6229 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6230
6231         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6232         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6233         pointer to an integer.
6234         * lib/poll.c (IsConsoleHandle): Likewise.
6235         * lib/isatty.c (IsConsoleHandle): Likewise.
6236
6237 2012-01-28  Jim Meyering  <meyering@redhat.com>
6238
6239         doc: clarify README-release
6240         * top/README-release: Clarify: you should make a point to have
6241         the latest stable versions of build tools in your PATH, and the
6242         reference to buildreq is solely for its list of tool names, not
6243         for its minimal-functional version numbers.
6244         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6245
6246         maint.mk: use more readable (yet functionally equivalent) quoting
6247         It is common to quote a single quote in a single quoted string like
6248         this:  '...'\''...'.  Unless you know the idiom, that looks like
6249         gibberish, so prefer to double-quote the string when possible.
6250         Then you can use a more readable, lone single quote: "...'..."
6251         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6252         "don't" is more readable than the equivalent 'don'\''t'.
6253         (sc_cast_of_x_alloc_return_value): Likewise.
6254         (sc_cast_of_alloca_return_value): Likewise.
6255         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6256         rather than '\'':'\''.
6257
6258 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         stdalign: relax _Alignof and tighten _Alignas test
6261         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6262         as it was too strict: alignof must divide offsetof, but it need
6263         not equal offsetof.  Inspired by Joseph S. Myers's comment
6264         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6265         Conversely, tighten the _Alignas test a bit, as the resulting
6266         alignment must be exactly 8.
6267
6268 2012-01-27  Bruno Haible  <bruno@clisp.org>
6269
6270         stdalign: Document the last change.
6271         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6272
6273 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6274
6275         stdalign: check that alignof and offsetof are consistent
6276         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6277         Problem reported for gnulib by Richard W.M. Jones in
6278         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6279
6280 2012-01-27  Jim Meyering  <meyering@redhat.com>
6281
6282         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6283         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6284         convert a sequence with gaps to the minimal containing range.
6285         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6286         * tests/test-update-copyright.sh: Test for this.
6287         The FSF confirmed it is ok to do this, assuming there is at
6288         least one significant change per year in the affected range:
6289         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6290
6291 2012-01-26  Bruno Haible  <bruno@clisp.org>
6292
6293         pipe2: refine doc about thread-safety
6294         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6295         multithread-safety problem.
6296         * doc/glibc-functions/accept4.texi: Likewise.
6297
6298 2012-01-26  Bruno Haible  <bruno@clisp.org>
6299
6300         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6301         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6302         In the test program, include <fcntl.h>, for O_RDONLY.
6303
6304 2012-01-26  Eric Blake  <eblake@redhat.com>
6305
6306         pipe2: document lack of thread-safety in replacement
6307         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6308         issue in replacement.
6309         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6310         Based on a report by Eric Wong.
6311
6312 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6313             Bruno Haible  <bruno@clisp.org>
6314
6315         malloca: Avoid warnings on x86_64 mingw64.
6316         * lib/malloca.c: Include <stdint.h>.
6317         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6318         * modules/malloca (Depends-on): Add stdint.
6319         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6320
6321 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6322
6323         obstack: remove __STDC__ conditionals
6324         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6325         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6326         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6327         m4/include_next.m4 as the only gnulib-maintained places that still
6328         refer to __STDC__.
6329
6330 2012-01-24  Bruno Haible  <bruno@clisp.org>
6331
6332         havelib: Modern quoting.
6333         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6334         the recent change to the GNU coding standards.
6335
6336 2012-01-24  Bruno Haible  <bruno@clisp.org>
6337
6338         stdint: Improve support for Android.
6339         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6340         Reported by Simon Josefsson <simon@josefsson.org>.
6341
6342 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6343
6344         doc: omit trailing empty lines from INSTALL etc.
6345         * doc/Makefile (INSTALL): Omit trailing empty lines.
6346         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6347         omit trailing empty lines.  This simplifies the build procedure.
6348
6349 2012-01-23  Jim Meyering  <meyering@redhat.com>
6350
6351         tests: avoid spurious warnings about gl_sockets_startup
6352         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6353         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6354         reporting a "statement with no effect".
6355         * tests/test-accept.c (main): Mark as "(void)".
6356         * tests/test-accept4.c (main): Likewise.
6357         * tests/test-bind.c (main): Likewise.
6358         * tests/test-connect.c (main): Likewise.
6359         * tests/test-getpeername.c (main): Likewise.
6360         * tests/test-getsockname.c (main): Likewise.
6361         * tests/test-getsockopt.c (main): Likewise.
6362         * tests/test-listen.c (main): Likewise.
6363         * tests/test-recv.c (main): Likewise.
6364         * tests/test-recvfrom.c (main): Likewise.
6365         * tests/test-send.c (main): Likewise.
6366         * tests/test-sendto.c (main): Likewise.
6367         * tests/test-setsockopt.c (main): Likewise.
6368         * tests/test-shutdown.c (main): Likewise.
6369
6370 2012-01-21  Bruno Haible  <bruno@clisp.org>
6371
6372         locale-fr.m4: Fix for Android.
6373         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6374         failure of the test program on Bionic libc.
6375
6376 2012-01-21  Jim Meyering  <meyering@redhat.com>
6377
6378         bootstrap: fail when bootstrap_post_import_hook fails
6379         Otherwise, it's far too easy to miss diagnostics emitted
6380         between gnulib-tool's output and that of running configure.
6381         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6382
6383 2012-01-17  Jim Meyering  <meyering@redhat.com>
6384
6385         maint: enable sc_trailing_blank
6386         * build-aux/pmccabe.css: Remove trailing blanks.
6387         * doc/acl-cygwin.txt: Likewise.
6388         * doc/gnu-oids.texi: Likewise
6389         * cfg.mk: Enable sc_trailing_blank.
6390         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6391
6392 2012-01-17  Jim Meyering  <meyering@redhat.com>
6393
6394         maint: enable sc_prohibit_openat_without_use
6395         * cfg.mk: Enable sc_prohibit_openat_without_use.
6396         Exempt lib/selinux-at.c.
6397
6398 2012-01-17  Jim Meyering  <meyering@redhat.com>
6399
6400         maint: enable sc_prohibit_cloexec_without_use
6401         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6402         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6403
6404 2012-01-17  Jim Meyering  <meyering@redhat.com>
6405
6406         maint: enable sc_prohibit_intprops_without_use
6407         * cfg.mk: Enable sc_prohibit_intprops_without_use
6408         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6409
6410 2012-01-17  Jim Meyering  <meyering@redhat.com>
6411
6412         maint: enable sc_prohibit_hash_pjw_without_use
6413         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6414         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6415         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6416         following " (".
6417
6418 2012-01-17  Jim Meyering  <meyering@redhat.com>
6419
6420         maint: enable double-word-prohibiting rule
6421         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6422         Exempt three files.
6423
6424 2012-01-17  Jim Meyering  <meyering@redhat.com>
6425
6426         maint: remove empty lines at EOF, but excluding modules/*
6427         Apply syntax rules at home as well as abroad.  Most changes
6428         were induced by running this:
6429           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6430             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6431             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6432         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6433         Exempt modules/* and two binary files.
6434         Also exempt doc/INSTALL*, per request from Bruno Haible.
6435         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6436         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6437         * doc/Copyright/request-assign.future: Likewise.
6438         * doc/Copyright/request-disclaim.changes: Likewise.
6439         * doc/INSTALL: Likewise.
6440         * doc/INSTALL.ISO: Likewise.
6441         * doc/INSTALL.UTF-8: Likewise.
6442         * doc/acl-cygwin.txt: Likewise.
6443         * doc/acl-resources.txt: Likewise.
6444         * doc/fdl-1.2.texi: Likewise.
6445         * doc/fdl-1.3.texi: Likewise.
6446         * doc/fdl.texi: Likewise.
6447         * lib/argp-pin.c: Likewise.
6448         * lib/round.c: Likewise.
6449         * lib/unicase/u16-totitle.c: Likewise.
6450         * lib/unictype/block_test.c: Likewise.
6451         * lib/uninorm/canonical-decomposition.c: Likewise.
6452         * m4/README: Likewise.
6453         * m4/relocatable-lib.m4: Likewise.
6454         * tests/test-isnand-nolibm.c: Likewise.
6455         * tests/test-isnand.c: Likewise.
6456         * tests/uninorm/NormalizationTest.txt: Likewise.
6457
6458 2012-01-17  Jim Meyering  <meyering@redhat.com>
6459
6460         maint: add framework to run syntax-check rules against gnulib sources
6461         * cfg.mk: New file, to disable all currently-failing tests.
6462         We'll enable them one by one, as they are made to pass.
6463         * Makefile (sc_maint): New rule.
6464
6465 2012-01-21  Bruno Haible  <bruno@clisp.org>
6466
6467         stdint: Add support for Android.
6468         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6469         include the system's <stdint.h>.
6470         Reported by Simon Josefsson <simon@josefsson.org>.
6471
6472 2012-01-19  Jim Meyering  <meyering@redhat.com>
6473
6474         bootstrap: add bootstrap_post_import_hook
6475         Bison does still need something like the gnulib_mk_hook whose
6476         invocation I had to remove along with slurp in commit 767ccd40.
6477         Technically, we could get along without it, but doing so would
6478         have required living with a warning and a mandatory post-bootstrap
6479         automake rerun.
6480         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6481         (bootstrap_post_import_hook): New function.
6482         Invoke it after gnulib-tool --import and before autoreconf.
6483
6484 2012-01-18  Jim Meyering  <meyering@redhat.com>
6485
6486         gitlog-to-changelog: don't use "no_"-prefixed variable name
6487         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6488         to enable both --cluster and --no-cluster.  Change variable name,
6489         s/\$no_cluster/$cluster/, and reverse usage to match.
6490
6491         gitlog-to-changelog: use "||", not "or" in expressions
6492         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6493         expressions.
6494
6495 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6496
6497         gitlog-to-changelog: new option --no-cluster
6498         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6499         clustering of adjacent commit messages.
6500
6501 2012-01-17  Jim Meyering  <meyering@redhat.com>
6502
6503         maint: spell file systems with two words, not one
6504         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6505         two words, not one.
6506
6507 2012-01-16  Jim Meyering  <meyering@redhat.com>
6508
6509         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6510         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6511
6512 2012-01-16  Eric Blake  <eblake@redhat.com>
6513
6514         bootstrap: cater to autoconf 2.59
6515         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6516         is not available.
6517
6518         bootstrap: properly check for libtool
6519         * build-aux/bootstrap (libtoolize): Also run libtool when older
6520         usage is detected.
6521
6522 2012-01-15  Bruno Haible  <bruno@clisp.org>
6523
6524         Improve support for MSVC 9.
6525         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6526         clashes on MSVC.
6527         * lib/fcntl.in.h: Likewise.
6528         * lib/stdlib.in.h: Likewise.
6529         * lib/sys_stat.in.h: Likewise.
6530
6531 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6532
6533         gnupload: we hold the master copy of this script now
6534         For motivation and more information, see:
6535         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6536         * build-aux/gnupload: Make it clear in the heading comments that the
6537         master copy of this file is maintained by gnulib.  Since we are at
6538         it, bump its copyright year and ...
6539         ($scriptversion): ... the date in its version.
6540         ($usage): Patches and bug reports should be sent to the gnulib list,
6541         not the automake one.
6542         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6543         anymore.
6544
6545 2012-01-15  Bruno Haible  <bruno@clisp.org>
6546
6547         Fix module 'random'.
6548         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6549         initstate, setstate are declared.
6550
6551 2012-01-14  Bruno Haible  <bruno@clisp.org>
6552
6553         Tests for module 'random'.
6554         * modules/random-tests: New file.
6555         * tests/test-random.c: New file, based on tests/test-random_r.c.
6556
6557         New module 'random'.
6558         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6559         declarations.
6560         * lib/random.c: New file, based on glibc/stdlib/random.c.
6561         * m4/random.m4: New file.
6562         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6563         HAVE_RANDOM.
6564         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6565         * modules/random: New file.
6566         * config/srclist.txt: Add an entry for random.c.
6567         * doc/posix-functions/random.texi: Mention the 'random' module.
6568         * doc/posix-functions/initstate.texi: Likewise.
6569         * doc/posix-functions/setstate.texi: Likewise.
6570         * doc/posix-functions/srandom.texi: Likewise.
6571
6572 2012-01-12  Bruno Haible  <bruno@clisp.org>
6573
6574         random_r: Use common idioms.
6575         * lib/random_r.c: Include <stdlib.h> first.
6576
6577         random_r: Override incompatible API on AIX, OSF/1.
6578         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6579         Override the system function if REPLACE_RANDOM_R is 1.
6580         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6581         and OSF/1, set REPLACE_RANDOM_R.
6582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6583         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6584         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6585         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6586         * doc/glibc-functions/random_r.texi: Likewise.
6587         * doc/glibc-functions/setstate_r.texi: Likewise.
6588
6589         random_r: Support for MSVC 9.
6590         * lib/random_r.c: Include stdint.h, not inttypes.h.
6591
6592 2012-01-12  Eric Blake  <eblake@redhat.com>
6593
6594         inet_ntop: guard extra work by IF_LINT
6595         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6596         better code generation when not checking for warnings.
6597         Suggested by Paul Eggert and Jim Meyering.
6598
6599         strptime: fix regression on mingw
6600         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6601         Fix regression.  Reported by Bruno Haible.
6602
6603 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6604             Bruno Haible  <bruno@clisp.org>
6605
6606         copy-file: add error-code-returning variant.
6607         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6608         (qcopy_file_preserving): New declaration.
6609         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6610         copy_file_preserving. Change return type to 'int'. Don't emit an error
6611         message here.
6612         (copy_file_preserving): New function.
6613         * tests/test-copy-file.c: Include <stdlib.h>.
6614         (main): Test qcopy_file_preserving if the environment variable
6615         NO_STDERR_OUTPUT is set.
6616         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6617         with NO_STDERR_OUTPUT
6618         * tests/test-copy-file-2.sh: Likewise.
6619
6620 2012-01-10  Bruno Haible  <bruno@clisp.org>
6621
6622         copy-file: Use 'quote' module consistently.
6623         * lib/copy-file.c (copy_file_preserving): Use quote().
6624
6625         copy-file: Refactor.
6626         * lib/copy-file.c: Include quote.h.
6627         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6628         message here.
6629         * modules/copy-file (Depends-on): Add quote.
6630
6631         acl: Export qcopy_acl.
6632         * lib/acl.h (qcopy_acl): New declaration.
6633         * lib/copy-acl.c (qcopy_acl): Make non-static.
6634
6635         acl: Rename a local variable.
6636         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6637
6638         acl: Align return values of copy_acl and qcopy_acl.
6639         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6640         maybe < -1.
6641
6642 2012-01-11  Eric Blake  <eblake@redhat.com>
6643
6644         strptime: silence gcc warnings
6645         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6646         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6647         Reported by Daniel P. Berrange.
6648
6649         inet_ntop: silence gcc warning
6650         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6651         Reported by Daniel P. Berrange.
6652
6653 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6654
6655         getloadavg test: skip the test on GNU/Linux without /proc mounted
6656         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6657         file.  When /proc is not mounted, it always fails with ENOENT.
6658         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6659         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6660
6661 2012-01-10  Bruno Haible  <bruno@clisp.org>
6662
6663         regex: Avoid link error on MSVC 9.
6664         * modules/regex (Depends-on): Add wctype.
6665
6666 2012-01-10  Bruno Haible  <bruno@clisp.org>
6667
6668         doc: Mention --with-tests option.
6669         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6670         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6671         --with-tests.
6672         Reported by Reuben Thomas.
6673
6674 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6675
6676         users.txt: order package names lexicographically.
6677         * users.txt: Order package names lexicographically.
6678
6679 2012-01-10  Jim Meyering  <meyering@redhat.com>
6680
6681         maint.mk: fix description in comment
6682         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6683
6684         ignore-value: remove deprecated ignore_ptr function
6685         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6686         * NEWS: Note this.
6687
6688 2012-01-09  Jim Meyering  <meyering@redhat.com>
6689
6690         test-init.sh: avoid a subshell
6691         * tests/test-init.sh: Remove protective subshell.
6692         Suggested by Bernhard Voelker.  While a subshell is normally
6693         required to protect against older shells (Solaris, FreeBSD) that
6694         warn about a missing program before performing redirection, the
6695         shell-selection tests performed by init.sh probably exclude any
6696         offending shell.
6697
6698 2012-01-08  Bruno Haible  <bruno@clisp.org>
6699
6700         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6701         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6702         variable.
6703
6704 2012-01-08  Bruno Haible  <bruno@clisp.org>
6705
6706         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6707         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6708         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6709         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6710         macro.
6711         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6712         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6713         * lib/spawn_faction_addopen.c: Add workaround implementation if
6714         HAVE_WORKING_POSIX_SPAWN.
6715         * modules/spawn (Makefile): Substitute
6716         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6717         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6718         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6719         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6720         (Depends-on): Update conditions.
6721         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6722         the Solaris 11 bug.
6723
6724 2012-01-08  Bruno Haible  <bruno@clisp.org>
6725
6726         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6727         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6728         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6729         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6730         macro.
6731         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6732         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6733         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6734         HAVE_WORKING_POSIX_SPAWN.
6735         * modules/spawn (Makefile): Substitute
6736         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6737         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6738         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6739         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6740         (Depends-on): Update conditions.
6741         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6742         the Solaris 11 bug.
6743
6744 2012-01-08  Bruno Haible  <bruno@clisp.org>
6745
6746         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6747         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6748         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6749         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6750         HAVE_WORKING_POSIX_SPAWN.
6751         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6752         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6753         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6754         * lib/spawn_faction_addclose.c: Add workaround implementation if
6755         HAVE_WORKING_POSIX_SPAWN.
6756         * modules/spawn (Makefile): Substitute
6757         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6758         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6759         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6760         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6761         (Depends-on): Update conditions.
6762         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6763         the Solaris 11 bug.
6764
6765 2012-01-08  Bruno Haible  <bruno@clisp.org>
6766
6767         doc: Update for Solaris 11 2011-11.
6768         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6769         * m4/printf.m4: Update comments.
6770
6771 2012-01-08  Bruno Haible  <bruno@clisp.org>
6772
6773         mktime: Avoid compilation error on Solaris 11.
6774         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6775
6776 2012-01-08  Bruno Haible  <bruno@clisp.org>
6777
6778         doc: Small fix.
6779         * doc/posix-headers/nl_types.texi: Correct platforms list.
6780
6781 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6782
6783         Add lgpl-3.0 module.
6784         * MODULES.html.sh (Support for building documentation): Add
6785         lgpl-3.0.
6786         * modules/lgpl-3.0: New file.
6787
6788 2012-01-08  Jim Meyering  <meyering@redhat.com>
6789
6790         select.c: indent with spaces, not TABs
6791         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6792
6793 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6794
6795         quotearg: do not use grave accent for left quote
6796         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6797         locale_quoting_style.
6798         (quotearg_buffer_restyled): Fix example.
6799         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6800
6801 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6802
6803         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6804         Most programs do not have translation catalogs for English and much
6805         less separate catalogs for British and American English.  Drop the
6806         suggestion to translators about these two, and provide it
6807         automatically for Unicode locales.  Like most programs, even those
6808         using American English, we use single quotation marks.  This conflicts
6809         with the American typographic convention, but works better when you
6810         cite the entire error message within double quotes.  It also tries not
6811         to clash with established practice and with what non-gnulib programs
6812         will usually do.
6813         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6814         using an UTF-8 or GB-18030 locale.  The list of other locales with
6815         quotes was provided by Bruno Haible.
6816         (quotearg_buffer_restyled): Adjust instructions to translators.
6817         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6818         text, since this would be wrong when using Unicode.
6819         * modules/quotearg: Depend on c-strcaseeq.
6820
6821 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6822
6823         quotearg: fix Wikipedia link
6824         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6825
6826 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6827
6828         Fix for mingw with MSVC9.
6829         * m4/ld-version-script.m4: Check that compiler rejects version
6830         scripts with syntax errors.  Reported by Bruno Haible
6831         <bruno@clisp.org>.
6832
6833 2012-01-06  Bruno Haible  <bruno@clisp.org>
6834
6835         Talk about "native Windows API", not "Woe32".
6836         * lib/accept4.c: Update comments to mention native Windows.
6837         * lib/execute.c: Likewise.
6838         * lib/fatal-signal.c: Likewise.
6839         * lib/localcharset.c: Likewise.
6840         * lib/nanosleep.c: Likewise.
6841         * lib/nl_langinfo.c: Likewise.
6842         * lib/pclose.c: Likewise.
6843         * lib/pipe-filter-gi.c: Likewise.
6844         * lib/pipe-filter-ii.c: Likewise.
6845         * lib/pipe.c: Likewise.
6846         * lib/pipe2.c: Likewise.
6847         * lib/popen.c: Likewise.
6848         * lib/progreloc.c: Likewise.
6849         * lib/relocatable.c: Likewise.
6850         * lib/sigaction.c: Likewise.
6851         * lib/sigprocmask.c: Likewise.
6852         * lib/spawn-pipe.h: Likewise.
6853         * lib/spawn-pipe.c: Likewise.
6854         * lib/spawni.c: Likewise.
6855         * lib/stat-time.h: Likewise.
6856         * lib/w32spawn.h: Likewise.
6857         * tests/test-isatty.c: Likewise.
6858         * lib/config.charset: More comments.
6859         * doc/gnulib-intro.texi: Mention native Windows.
6860         * doc/posix-functions/_Exit_C99.texi: Likewise.
6861         * doc/posix-headers/fcntl.texi: Likewise.
6862
6863 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6864
6865         argp: Avoid crash if translator uses % characters in a translation.
6866         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6867         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6868
6869 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6870
6871         doc: C11 and C++11 are now official
6872         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6873         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6874         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6875         * modules/stdalign:
6876         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6877
6878 2012-01-06  Bruno Haible  <bruno@clisp.org>
6879
6880         uc-is-grapheme-break tests: Tweak.
6881         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6882         message.
6883
6884 2012-01-06  Bruno Haible  <bruno@clisp.org>
6885
6886         test-init.sh: correct the test for diff -u
6887         * tests/test-init.sh: Also redirect stdout to /dev/null.
6888
6889 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6890
6891         Use ', not `, for quoting output.
6892         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6893         (print_changelog_deltas, get_tool_versions, main program):
6894         * build-aux/git-version-gen:
6895         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6896         * build-aux/move-if-change (help):
6897         * build-aux/useless-if-before-free (usage, main program):
6898         * check-module (parse_module_file, usage)
6899         (find_included_lib_files, check_module):
6900         * lib/argmatch.c (main) [TEST]:
6901         * lib/argp-help.c (_help):
6902         * lib/getopt1.c (main) [TEST]:
6903         * lib/git-merge-changelog.c (usage):
6904         * lib/xstrtol-error.c (xstrtol_error):
6905         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6906         * m4/argz.m4 (gl_FUNC_ARGZ):
6907         * m4/bison.m4 (gl_BISON):
6908         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6909         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6910         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6911         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6912         * m4/gc-random.m4 (gl_GC_RANDOM):
6913         * m4/intl.m4 (gt_CHECK_DECL):
6914         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6915         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6916         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6918         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6919         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6920         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6921         * tests/test-dirname.c (main):
6922         * tests/test-getpass.c (main):
6923         * tests/test-iconvme.c (main):
6924         * tests/test-parse-datetime.c (LOG):
6925         * tests/test-xstrtoimax.sh:
6926         * tests/test-xstrtol.sh:
6927         * tests/test-xstrtoll.sh:
6928         * tests/test-xstrtoumax.sh:
6929         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6930         * top/GNUmakefile (abort-due-to-no-makefile):
6931         Quote 'like this', not `like this', as per the recent change to
6932         the GNU coding standards.
6933
6934 2012-01-05  Bruno Haible  <bruno@clisp.org>
6935
6936         strtoimax: Don't force a replacement on systems where intmax_t is int.
6937         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6938         'intmax_t' is not larger than 'int'.
6939         Reported by Pádraig Brady <P@draigBrady.com>.
6940
6941 2012-01-05  Bruno Haible  <bruno@clisp.org>
6942
6943         doc: Mention NetBSD bugs.
6944         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6945         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6946
6947 2012-01-05  Bruno Haible  <bruno@clisp.org>
6948
6949         strtoumax tests: Enhance tests.
6950         * tests/test-strtoumax.c (main): Add tests for large values.
6951
6952 2012-01-05  Bruno Haible  <bruno@clisp.org>
6953
6954         strtoimax: Work around AIX 5.1 bug.
6955         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6956         definition.
6957         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6958         Set HAVE_STRTOIMAX.
6959         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6960         REPLACE_STRTOIMAX.
6961         * modules/inttypes-incomplete (Makefile.am): Substitute
6962         REPLACE_STRTOIMAX.
6963         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6964         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6965         (Depends-on): Update conditions.
6966         * tests/test-strtoimax.c (main): Add tests for large values.
6967         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6968
6969 2012-01-05  Bruno Haible  <bruno@clisp.org>
6970
6971         inttypes: Modernize.
6972         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6973         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6974         (Makefile.am): Update inttypes.h rule.
6975
6976 2012-01-05  Jim Meyering  <meyering@redhat.com>
6977
6978         init.sh: don't waste a subshell just to redirect stderr
6979         * tests/init.sh: In testing for diff -u and diff -c, use a
6980         stderr-redirecting exec inside `...` rather than a subshell.
6981
6982         test-init.sh: avoid failure on HP-UX 11.00
6983         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6984         resolves to diff -c or cmp.  Reported by Bruno Haible.
6985
6986 2012-01-05  Bruno Haible  <bruno@clisp.org>
6987
6988         Tests for module 'strtoull'.
6989         * modules/strtoull-tests: New file.
6990         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6991
6992 2012-01-05  Bruno Haible  <bruno@clisp.org>
6993
6994         Tests for module 'strtoll'.
6995         * modules/strtoll-tests: New file.
6996         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6997
6998 2012-01-05  Bruno Haible  <bruno@clisp.org>
6999
7000         Tests for module 'strtoul'.
7001         * modules/strtoul-tests: New file.
7002         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7003
7004 2012-01-05  Bruno Haible  <bruno@clisp.org>
7005
7006         Tests for module 'strtol'.
7007         * modules/strtol-tests: New file.
7008         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7009
7010 2012-01-04  Jim Meyering  <meyering@redhat.com>
7011
7012         test-init.sh: accommodate Solaris 5.10's different diff -u output
7013         * tests/test-init.sh: Also exempt @@ lines from the comparison
7014         of diff output, since Solaris 5.10 and GNU diff formats differ.
7015         Reported by Stefano Lattarini.
7016
7017 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7018
7019         test-posixtm: don't assume signed integer wraparound
7020         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7021         after signed integer overflow.  Inspired by (though it may not
7022         fix) Bruno Haible's bug report in
7023         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7024
7025         Spell out "Windows 9x" and "Windows XP".
7026         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7027         "Windows 9x" and "WinXP" with "Windows XP".
7028
7029 2012-01-04  Jim Meyering  <meyering@redhat.com>
7030
7031         test-vc-list-files-cvs.sh: remove obsolete comment
7032         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7033         double exit.  Now that's all encapsulated via skip_ and Exit.
7034
7035 2012-01-04  Bruno Haible  <bruno@clisp.org>
7036
7037         Talk about "native Windows API", not "Win32".
7038         * lib/classpath.c: Update comments to mention native Windows.
7039         * lib/csharpexec.c: Likewise.
7040         * lib/dup2.c: Likewise.
7041         * lib/error.c: Likewise.
7042         * lib/fcntl.c: Likewise.
7043         * lib/filename.h: Likewise.
7044         * lib/findprog.c: Likewise.
7045         * lib/get-rusage-as.c: Likewise.
7046         * lib/get-rusage-data.c: Likewise.
7047         * lib/getpagesize.c: Likewise.
7048         * lib/javaexec.c: Likewise.
7049         * lib/msvc-inval.c: Likewise.
7050         * lib/msvc-nothrow.c: Likewise.
7051         * lib/nanosleep.c: Likewise.
7052         * lib/nonblocking.c: Likewise.
7053         * lib/printf-parse.c: Likewise.
7054         * lib/setlocale.c: Likewise.
7055         * lib/sigaction.c: Likewise.
7056         * lib/strerror_r.c: Likewise.
7057         * lib/tmpdir.c: Likewise.
7058         * lib/vasnprintf.c: Likewise.
7059         * lib/w32spawn.h: Likewise.
7060         * lib/waitpid.c: Likewise.
7061         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7062         * m4/locale-ar.m4: Likewise.
7063         * m4/locale-fr.m4: Likewise.
7064         * m4/locale-ja.m4: Likewise.
7065         * m4/locale-tr.m4: Likewise.
7066         * m4/locale-zh.m4: Likewise.
7067         * m4/printf.m4: Likewise.
7068         * tests/test-cloexec.c: Likewise.
7069         * tests/test-copy-acl.sh: Likewise.
7070         * tests/test-copy-file.sh: Likewise.
7071         * tests/test-file-has-acl.sh: Likewise.
7072         * tests/test-set-mode-acl.sh: Likewise.
7073         * tests/test-dup-safer.c: Likewise.
7074         * tests/test-dup2.c: Likewise.
7075         * tests/test-dup3.c: Likewise.
7076         * tests/test-fcntl.c: Likewise.
7077         * tests/test-nonblocking-pipe.h: Likewise.
7078         * tests/test-nonblocking-socket.h: Likewise.
7079         * tests/test-pipe.c: Likewise.
7080         * tests/test-pipe2.c: Likewise.
7081         * tests/test-spawn-pipe-child.c: Likewise.
7082         * doc/acl-resources.txt: Likewise.
7083         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7084         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7085         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7086         * lib/localcharset.c: Update comments to mention native Windows.
7087         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7088         * lib/localename.c: Likewise.
7089         * lib/progreloc.c: Likewise.
7090         * lib/relocatable.c: Likewise.
7091         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7092         (windows_compute_revents): Renamed from win32_compute_revents.
7093         (windows_compute_revents_socket): Renamed from
7094         win32_compute_revents_socket.
7095         * lib/select.c: Update comments to mention native Windows.
7096         (windows_poll_handle): Renamed from win32_poll_handle.
7097         * m4/threadlib.m4: Update comments to mention native Windows.
7098         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7099         --enable-threads=windows instead of --enable-threads=win32. Set
7100         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7101         * lib/glthread/lock.h: Update comments to mention native Windows.
7102         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7103         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7104         USE_WIN32_THREADS.
7105         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7106         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7107         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7108         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7109         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7110         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7111         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7112         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7113         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7114         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7115         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7116         * tests/test-tls.c: Likewise.
7117         Rationale:
7118         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7119         on both 32-bit and 64-bit Windows systems.
7120         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7121         line of distinction is between "native Windows" on one side and Unix/
7122         POSIX systems on the other side. More details in
7123         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7124         Suggested by Paul Eggert.
7125
7126 2012-01-03  Bruno Haible  <bruno@clisp.org>
7127
7128         isatty: Support for MSVC 9.
7129         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7130         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7131         (_isatty_nothrow): New function.
7132         (isatty): Use it instead of _isatty.
7133         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7134         * lib/poll.c (IsConsoleHandle): Likewise.
7135         * lib/select.c (IsConsoleHandle): Likewise.
7136         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7137         (gl_PREREQ_ISATTY): New macro.
7138         * modules/isatty (Depends-on): Add msvc-inval.
7139         (configure.ac): Invoke gl_PREREQ_ISATTY.
7140
7141 2012-01-03  Jim Meyering  <meyering@redhat.com>
7142
7143         maint.mk: remove temporary transition aid from over 1.5 years ago
7144         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7145         purpose was to aid in the transition (avoiding silent malfunction)
7146         from that old name to the new _sc_search_regexp.  This shim was
7147         added by commit 219c504b.
7148
7149         init.sh: do not try to accommodate compare arguments starting with "-"
7150         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7151         compare arguments that start with "-".  Besides, we do not worry
7152         about this when invoking diff or cmp; why start now with sed?
7153         Using "--" to separate options from argument would trigger sed
7154         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7155         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7156
7157 2012-01-02  Bruno Haible  <bruno@clisp.org>
7158
7159         Enhance tests for module 'isatty'.
7160         * modules/isatty-tests (Depends-on): Add pipe-posix.
7161         * tests/test-isatty.c: Include <fcntl.h>.
7162         (DEV_NULL): New macro.
7163         (main): Test the resut of isatty() also on regular files, pipes, and
7164         /dev/null.
7165
7166         New module 'isatty'.
7167         * lib/unistd.in.h (isatty): New declaration.
7168         * lib/isatty.c: New file, based on an idea of
7169         Bastien Roucariès <roucaries.bastien@gmail.com>.
7170         * m4/isatty.m4: New file.
7171         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7172         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7173         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7174         REPLACE_ISATTY.
7175         * modules/isatty: New file.
7176         * doc/posix-functions/isatty.texi: Mention the new module.
7177         Suggested by Paolo Bonzini.
7178
7179 2012-01-02  Bruno Haible  <bruno@clisp.org>
7180
7181         canonicalize: Tweak 2011-12-29 commit.
7182         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7183         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7184
7185 2012-01-02  Jim Meyering  <meyering@redhat.com>
7186
7187         gitlog-to-changelog: describe input syntax in --help output
7188         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7189
7190         gitlog-to-changelog: fix typo in --help: show backslash before email @
7191         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7192         in sources, but not in actual output.
7193
7194 2011-12-30  Jim Meyering  <meyering@redhat.com>
7195
7196         gitlog-to-changelog: don't malfunction when name contains %-directive
7197         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7198         in a name string cause trouble.  E.g., with a user name of "%s",
7199         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7200
7201 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7202
7203         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7204         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7205         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7206         the "  (tiny change)" notation that is appended to the standard
7207         ChangeLog "date  name  email" header line.
7208
7209 2012-01-01  Jim Meyering  <meyering@redhat.com>
7210
7211         test-framework-sh: init.sh: fix "make dist" failure
7212         When using gnulib-tool's --with-tests option and any module that
7213         depends on test-framework-sh, "make dist" would fail due to the
7214         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7215         in the gltests directory, and not in the gllib/ directory.
7216         One way to work around that is to move the EXTRA_DIST += init.sh
7217         from the primary module to the -tests one:
7218         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7219         * modules/test-framework-sh (Makefile.am): ...not here.
7220         Reported by Tom G. Christensen in
7221         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7222
7223         version-etc: update copyright year reported by --version
7224         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7225
7226 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7227
7228         canonicalize: only stat() if required
7229         * lib/canonicalize.c (canonicalize_filename_mode):
7230         Avoid calling l?stat() when both CAN_MISSING,
7231         and CAN_NOLINKS are set, as we neither need
7232         to resolve symlinks or test component existence.
7233
7234 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7235
7236         doc: cover st_ino issues once; add OpenVMS etc.
7237         * doc/posix-functions/stat.texi (stat):
7238         * doc/posix-functions/lstat.texi (lstat):
7239         * doc/posix-functions/fstatat.texi (fstatat):
7240         * doc/posix-functions/fstat.texi (fstat):
7241         Move general 'struct stat' stuff to sys_stat.texi,
7242         leaving behind a pointer.
7243         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7244         Merge duplicate info about 'struct stat' problems into here.
7245         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7246         and suggest partial workarounds.
7247
7248         same-inode: port to OpenVMS
7249         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7250         three st_ino values.
7251
7252 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7253
7254         canonicalize: fix references to stat() and lstat()
7255         * lib/canonicalize.c (canonicalize_filename_mode):
7256         Ensure references always resolve to a replacement
7257         function if required (even via a macro).
7258
7259 2011-12-30  Jim Meyering  <meyering@redhat.com>
7260
7261         gitlog-to-changelog: remove a little duplication
7262         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7263         rather than twice.
7264
7265 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7266
7267         canonicalize: add support for not resolving symlinks
7268         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7269         indicate we don't want to follow symlinks.  Also
7270         provide CAN_MODE_MASK to aid setting these existing
7271         mutually exclusive values.
7272         * lib/canonicalize.c (canonicalize_filename_mode):
7273         Extract the flags from can_mode parameter, which
7274         are currently just used to select between stat()
7275         and lstat().  Also ensure that mutually exclusive
7276         values are flagged immediately as invalid.
7277         * tests/test-canonicalize.c: Verify symlinks are
7278         not followed, and that invalid flag combinations
7279         are diagnosed.
7280
7281 2011-12-25  Jim Meyering  <meyering@redhat.com>
7282
7283         gitlog-to-changelog: do not clump multi-paragraph entries
7284         Identical header lines (date,name,email+coauthors) are suppressed,
7285         thus putting all entries with those same characteristics under
7286         a single header.  However, when a log entry consists of two or
7287         more paragraphs, it may not be clear where it starts and ends.
7288         This change makes it so that such an entry is always separated
7289         from others by a header line, even when that header would
7290         otherwise be suppressed.
7291         * build-aux/gitlog-to-changelog: Implement the above.
7292         Inspired by a related request from Stefano Lattarini in
7293         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7294
7295 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         announce-gen: fix `cmd' typo in diagnostic
7298         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7299         diagnostic: a missing '$' meant that the command was not output.
7300
7301 2011-12-23  Jim Meyering  <meyering@redhat.com>
7302
7303         test-framework-sh: distribute init.sh
7304         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7305         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7306         fail due to the lack of init.sh.
7307
7308         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7309         * modules/atexit-tests: Rather than listing tests/init.sh,
7310         now that there's a module for it, simply depend on that new module.
7311         * modules/closein-tests: Likewise.
7312         * modules/exclude-tests: Likewise.
7313         * modules/getcwd-tests: Likewise.
7314         * modules/perror-tests: Likewise.
7315         * modules/pread-tests: Likewise.
7316         * modules/pwrite-tests: Likewise.
7317         * modules/vc-list-files-tests: Likewise.
7318         * modules/verify-tests: Likewise.
7319         * modules/xalloc-die-tests: Likewise.
7320         * modules/xstrtoimax-tests: Likewise.
7321         * modules/xstrtol-tests: Likewise.
7322         * modules/xstrtoll-tests: Likewise.
7323         * modules/xstrtoumax-tests: Likewise.
7324         * modules/yesno-tests: Likewise.
7325
7326 2011-12-22  Jim Meyering  <meyering@redhat.com>
7327
7328         test-framework-sh: add minimal tests of init.sh's compare function
7329         * modules/test-framework-sh-tests: New file.
7330         * tests/test-init.sh: New file.
7331
7332         test-framework-sh: new module
7333         * modules/test-framework-sh: New file.
7334         * MODULES.html.sh (Support for maintaining and releasing projects):
7335         List it.
7336
7337         init.sh: do not emit simulated diff output to stderr
7338         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7339
7340 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7341
7342         .gitignore: ignore gnulib.dvi and regex.info
7343         * doc/.gitignore:add gnulib.dvi and regex.info
7344
7345 2011-12-22  Jim Meyering  <meyering@redhat.com>
7346
7347         init.sh: correct previous change
7348         * tests/init.sh (compare): My previous change was wrong.
7349         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7350
7351         init.sh: avoid unwarranted test failure when using "set -e"
7352         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7353         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7354         a use like "compare exp out" would get evoke an unconditional failure.
7355
7356 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7357
7358         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7359         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7360         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7361         autoreconf that did not.
7362         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7363         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7364
7365 2011-12-17  Jim Meyering  <meyering@redhat.com>
7366
7367         bootstrap: remove some now-unneeded code
7368         This script arose back when gnulib-tool was young.
7369         Since then, it has seen improvements that render much of this
7370         script unnecessary.  In particular, it can now make symlinks
7371         to the files it uses.  Also, I no longer see as much value in
7372         marking files as read-only via comments.
7373         If you relied on the symlink-creation feature of the preceding
7374         version of this script, you can get most of that functionality
7375         by adding the --symlink option to the definition of
7376         gnulib_tool_option_extras in your bootstrap.conf file.
7377         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7378         Run autopoint and libtoolize *before* gnulib-tool.
7379         After it, run an abbreviated autoreconf, rather than a loop around
7380         all tools.
7381         (slirp, bt_mark_as_generated): Remove functions.
7382
7383 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7384
7385         ftoastr: fix typo
7386         * lib/ftoastr.h: Fix misspelling in comment.
7387
7388 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7389
7390         * top/README-release: fix punctuation.
7391
7392 2011-12-17  Jim Meyering  <meyering@redhat.com>
7393
7394         bootstrap: correct the recent buildreq change
7395         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7396         had no effect.
7397         * build-aux/bootstrap (buildreq): Bracket each search term with
7398         "*...*", so that the shell "case" statement works as intended.
7399         Add comments.
7400
7401 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7402
7403         build: let bootstrap resort to wget when downloading .po files
7404         * build-aux/bootstrap (download_po_files): Fallback to wget when
7405         downloading the .po files via rsync fails.  This is necessary to
7406         bootstrap from behind a strict firewall.
7407
7408 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7409
7410         stdint: don't assume C++11 when compiling with g++
7411         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7413         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7414         work also in C++ before C++11, as that improperly inhibits
7415         generating a substitute stdint.h for that case.
7416
7417 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         alloca: protect comment from gnulib-tool
7420         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7421         that gnulib-tool doesn't think it's a license, and munge it to
7422         say "GCC version 3".
7423
7424 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7425
7426         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7427         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7428         $(abs_top_builddir) instead of $(top_builddir).
7429
7430 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7431
7432         strftime-tests: also test nanoseconds
7433         * tests/test-strftime.c (T): Add a test of %N.
7434
7435 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7436
7437         inttypes, stdint: add C++11 support
7438         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7439         when including inttypes.h and stdint.h.  Support this change to
7440         the standard.
7441         * doc/posix-headers/inttypes.texi (inttypes.h):
7442         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7443         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7444         Define if not defined already, for the benefit of pre-C++11 hosts.
7445         Define the standard format macros (e.g., PRId8) always.
7446         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7447         Likewise, if __cpluspus.  Define the standard constant and limit
7448         macros (e.g., INT8_C, INT8_MAX) always.
7449         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7450         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7451         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7452         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7453         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7454         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7455         Likewise.
7456
7457 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7458
7459         nonblocking tests: Fix test failure on Linux/PPC.
7460         Suggested by Prerna Saxena in
7461         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7462         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7463         Set to 1100000.
7464
7465 2011-12-12  Jim Meyering  <meyering@redhat.com>
7466
7467         argmatch: don't hard-code `' when listing valid option arguments
7468         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7469         use the quote function to add quotes.  Use fputs rather than
7470         fprintf for the format string with no format directive.
7471
7472 2011-12-07  Eric Blake  <eblake@redhat.com>
7473
7474         bootstrap: detect tools required by gnulib-tool
7475         * build-aux/bootstrap (buildreq): Provide minimum implicit
7476         dependencies.
7477         * DEPENDENCIES: Mention patch as a prereq.
7478
7479 2011-12-04  Bruno Haible  <bruno@clisp.org>
7480
7481         sethostname: Port to Windows platforms.
7482         * lib/sethostname.c: Provide an alternate implementation for Windows
7483         platforms.
7484         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7485         (main): Skip the test if sethostname() fails with EPERM. On Windows
7486         platforms, don't check the result of gethostname().
7487
7488 2011-12-04  Bruno Haible  <bruno@clisp.org>
7489             Jim Meyering  <meyering@redhat.com>
7490
7491         tests: Avoid spurious error message on platforms without mktemp program.
7492         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7493
7494 2011-12-04  Bruno Haible  <bruno@clisp.org>
7495
7496         sethostname: Fix documentation.
7497         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7498         "not fixed" section.
7499
7500 2011-12-03  Bruno Haible  <bruno@clisp.org>
7501
7502         gnulib-tool: Verify that the License field is present and non-empty.
7503         * gnulib-tool (func_get_license_raw): New function, extracted from
7504         func_get_license.
7505         (func_get_license): Use it. Warn if the module is not a test module and
7506         has no license.
7507         Suggested by Jim Meyering.
7508
7509 2011-12-03  Bruno Haible  <bruno@clisp.org>
7510
7511         sethostname tests: Fix link error on mingw.
7512         * tests/test-sethostname1.c: New file, extracted from
7513         tests/test-sethostname.c.
7514         * tests/test-sethostname2.c: New file, extracted from
7515         tests/test-sethostname.c.
7516         * tests/test-sethostname.c: Remove file.
7517         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7518         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7519         (Depends-on): Add gethostname.
7520         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7521         Link the latter with $(GETHOSTNAME_LIB).
7522
7523         sethostname tests: Fix compilation error on mingw.
7524         * tests/test-sethostname.c: Don't include <sys/types.h>.
7525         (geteuid): Use a dummy value without uid_t.
7526         * modules/sethostname-tests (Depends-on): Remove sys_types.
7527
7528         sethostname tests: Avoid a gcc warning.
7529         * tests/test-sethostname.c (main): Remove an unused variable.
7530
7531         Tweak last commit.
7532         * modules/sethostname-tests (Files): Sort by decreasing importance.
7533         (configure.ac): Check for geteuid.
7534         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7535         the test when there's nothing to test. Drop an unnecessary cast.
7536         Improve an error message. Verify that the final sethostname() call
7537         succeeds.
7538
7539 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7540
7541         Add a test suite for the sethostname module.
7542         * modules/sethostname-tests: New file.  A test program
7543         for the sethostname module.
7544         * tests/test-sethostname.c: Likewise.
7545
7546 2011-12-03  Bruno Haible  <bruno@clisp.org>
7547
7548         Tweak last commit.
7549         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7550         Fix preprocessor directives indentation. Fix typos.
7551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7552         * modules/unistd (Makefile): Likewise.
7553
7554 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7555
7556         Integrate the sethostname module into unistd.
7557         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7558         into the unistd.h header.
7559         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7560         preprocessor directives.
7561         * modules/unistd: Setup the Makefile substitutions of the
7562         SETHOSTNAME preprocessor directives.
7563
7564 2011-12-03  Bruno Haible  <bruno@clisp.org>
7565
7566         Tweak last commit.
7567         * lib/sethostname.c: Don't include <string.h>.
7568         (sethostname): No need to copy the argument string to the stack. Don't
7569         call clearerr. Preserve errno when fprintf failed.
7570         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7571         Don't invoke AC_REPLACE_FUNCS.
7572         * modules/sethostname (Link): Remove empty section.
7573         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7574         failure problem.
7575
7576 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7577
7578         New module 'sethostname'.
7579         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7580         for systems that lack it.
7581         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7582         sethostname declaration and function.
7583         * modules/sethostname: New file.  Define the sethostname module.
7584
7585 2011-12-03  Bruno Haible  <bruno@clisp.org>
7586
7587         Tweak last commit.
7588         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7589
7590 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7591
7592         Split the HOST_NAME_MAX detection into a separate m4 macro.
7593         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7594         macro so it can be used by the pending sethostname module.
7595
7596 2011-12-03  Bruno Haible  <bruno@clisp.org>
7597
7598         Fix module descriptions syntax.
7599         * modules/argv-iter (License): Fix syntax.
7600         * modules/di-set (License): Likewise.
7601         * modules/ino-map (License): Likewise.
7602         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7603
7604 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7605
7606         stdalign: port to Clang 3.0
7607         Problem reported by Simon Josefsson in
7608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7609         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7610         which has <stdalign.h> but which does not define alignof.
7611         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7612
7613 2011-12-01  Eric Blake  <eblake@redhat.com>
7614
7615         mktempd: silence dd usage
7616         * build-aux/mktempd (rand_bytes): Silence dd.
7617
7618 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7619
7620         manywarnings: Don't mention gcc version in docstring.
7621         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7622         Jim Meyering <meyering@redhat.com>.
7623
7624 2011-11-30  Jim Meyering  <meyering@redhat.com>
7625
7626         hash: mark a few floating point constants with "f" suffix
7627         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7628         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7629         floating point constants with "f", since they're destined to be
7630         saved/used as "float"s.
7631
7632 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7633
7634         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7635         * tests/test-float.c (test_long_double): Correct and re-enable the
7636         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7637
7638 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7639
7640         Avoid subtracting two pointers that don't point into the same block.
7641         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7642         only pointers into the same memory block are subtracted. We cannot
7643         assume that sizeof (ptrdiff_t) == sizeof (void *).
7644
7645 2011-11-29  Eric Blake  <eblake@redhat.com>
7646
7647         maint.mk: add syntax check for use of compare from init.sh
7648         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7649         moved here from coreutils.
7650
7651         manywarnings: drop -Wunsuffixed-float-constants
7652         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7653         '1.0D', which is the only way to silence this warning for 'double'.
7654
7655 2011-11-29  Jim Meyering  <meyering@redhat.com>
7656
7657         hash: mark compute_bucket_size with the pure attribute
7658         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7659
7660         quotearg, propername: correct pragma guard expression
7661         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7662         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7663
7664 2011-11-28  Jim Meyering  <meyering@redhat.com>
7665
7666         propername: do not mark proper_name with the const attribute
7667         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7668         since it examines data pointed to by its parameter.
7669         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7670         the suggestion from -Wsuggest-attribute=const.
7671
7672         propername: mark one more function as const
7673         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7674
7675 2011-11-27  Jim Meyering  <meyering@redhat.com>
7676
7677         mark functions with const and pure attributes
7678
7679         Mark functions per suggestions from gcc-4.6 when using these options:
7680         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7681         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7682         Follow these guidelines: when possible, apply the attribute to
7683         an extern declaration, not to its definition.  Apply it to the
7684         definition only when the definition is static.
7685         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7686         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7687         * lib/base64.h (isbase64): Likewise.
7688         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7689         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7690         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7691         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7692         (c_tolower, c_toupper): Likewise.
7693         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7694         * lib/chdir-long.c (find_non_slash): Likewise.
7695         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7696         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7697         * lib/file-type.h (file_type): Likewise.
7698         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7699         * lib/filevercmp.c (verrevcmp): Likewise.
7700         * lib/freadahead.h (freadahead): Likewise.
7701         * lib/fts.c (fts_maxarglen): Likewise.
7702         * lib/hash-pjw.h (hash_pjw): Likewise.
7703         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7704         * lib/hash.c (is_prime, next_prime): Likewise.
7705         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7706         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7707         (hash_table_ok, hash_get_first, hash_string): Likewise.
7708         (compute_bucket_size): Likewise.
7709         * lib/i-ring.h (i_ring_empty): Likewise.
7710         * lib/isnan.c (isnanl): Likewise.
7711         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7712         * lib/memcasecmp.h (memcasecmp): Likewise.
7713         * lib/memchr2.h (memchr2): Likewise.
7714         * lib/memcmp2.h (memcmp2): Likewise.
7715         * lib/parse-datetime.y (lookup_zone): Likewise.
7716         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7717         [!WINDOWS_SOCKETS]: Likewise.
7718         * lib/strnlen1.h (strnlen1): Likewise.
7719         * lib/uniwidth.in.h (uc_width): Likewise.
7720         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7721         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7722         (quoting_options_from_style): Add a comment.
7723         * lib/propername.h (proper_name): Add a comment.
7724
7725 2011-11-27  Bruno Haible  <bruno@clisp.org>
7726
7727         Remove unused macros from !_LIBC code in glibc-borrowed files.
7728         * lib/fnmatch.c (STRCOLL): Remove macro.
7729         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7730         * lib/glob.c (__stat, __readdir64): Remove macros.
7731         * lib/tempname.c (__open64, __xstat64): Remove macros.
7732         Suggested by Paul Eggert.
7733
7734 2011-11-27  Bruno Haible  <bruno@clisp.org>
7735
7736         getcwd: Fix link error on MSVC 9.
7737         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7738
7739 2011-11-27  Bruno Haible  <bruno@clisp.org>
7740
7741         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7742         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7743         HAVE_OPENDIR is 0.
7744         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7745         HAVE_CLOSEDIR is 0.
7746         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7747         is 0.
7748         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7749
7750 2011-11-27  Bruno Haible  <bruno@clisp.org>
7751
7752         getcwd: Fix bug from 2011-08-17.
7753         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7754         platforms that need it.
7755         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7756         code of 4 to be a failure, not a success. This ensures that
7757         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7758
7759 2011-11-27  Bruno Haible  <bruno@clisp.org>
7760
7761         binary-io tests: Avoid test failure on mingw when libtool is used.
7762         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7763         Don't verify the size of t-bin-out1.tmp here.
7764         * tests/test-binary-io.sh: Verify it here.
7765         Reported by Simon Josefsson.
7766
7767 2011-11-26  Bruno Haible  <bruno@clisp.org>
7768
7769         Fix conflict between two instantiations of module 'unistd'.
7770         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7771         ${include_guard_prefix} also in the autoconf snippet.
7772         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7774         GNULIB_UNISTD_H_GETOPT.
7775         * modules/getopt-posix (configure.ac): Set the
7776         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7777         * modules/getopt-gnu (configure.ac): Likewise.
7778         * modules/unistd (Makefile.am): Change the substitution value of
7779         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7780         Reported by Simon Josefsson.
7781
7782 2011-11-25  Bruno Haible  <bruno@clisp.org>
7783
7784         pagealign_alloc: Doc and comments.
7785         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7786         module.
7787         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7788
7789 2011-11-25  Jim Meyering  <meyering@redhat.com>
7790
7791         test-update-copyright.sh: avoid false-positive failure
7792         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7793         around false positive failure on Cygwin/Windows.  The latter was
7794         matching erroneously-created files with names like
7795         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7796
7797 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7798
7799         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7800         * m4/valgrind-tests.m4: Check that the parameters that will be
7801         used works, not just a subset of them.  Reported by Bruno Haible
7802         <bruno@clisp.org>.
7803
7804 2011-11-24  Jim Meyering  <meyering@redhat.com>
7805
7806         test-stdalign.c: comment out long double tests
7807         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7808         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7809         error: '_Alignas' specifiers cannot reduce alignment of \
7810         'static_longdouble_alignas'.
7811
7812 2011-11-22  Jim Meyering  <meyering@redhat.com>
7813
7814         init.sh: make "compare /dev/null FILE" output more readable
7815         * tests/init.sh (compare_): Document the preferred order of arguments.
7816         (emit_diff_u_header_): New function.
7817         (compare_dev_null_): Emit a simulated diff, rather than just the
7818         contents of the unexpected file.  Suggestion from Bruno Haible.
7819
7820 2011-11-21  Jim Meyering  <meyering@redhat.com>
7821             Eric Blake  <eblake@redhat.com>
7822
7823         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7824         * tests/init.sh: Make our compare function slightly more portable.
7825         Reported by Bruno Haible in
7826         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7827
7828 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7829
7830         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7831         before using it, in code that ends up in config.h.
7832
7833 2011-11-20  Bruno Haible  <bruno@clisp.org>
7834
7835         getcwd: Work around getcwd bug on AIX 5..7.
7836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7837         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7838         Use a different value for gl_cv_func_getcwd_path_max. Move the
7839         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7840         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7841         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7842         Define HAVE_MINIMALLY_WORKING_GETCWD.
7843         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7844         where it is not even minimally working, that is, on AIX.
7845         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7846         m4/getcwd-path-max.m4.
7847         (main): Update exit code computation.
7848         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7849         getcwd does not handle long file names.
7850
7851 2011-11-20  Bruno Haible  <bruno@clisp.org>
7852
7853         getcwd: Fix bug from 2009-09-10.
7854         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7855         like "no".
7856
7857 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7858
7859         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7860
7861 2011-11-20  Bruno Haible  <bruno@clisp.org>
7862
7863         fma tests: Avoid shadowing local variables.
7864         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7865         expected.
7866
7867 2011-11-20  Bruno Haible  <bruno@clisp.org>
7868
7869         copysignf tests: Fix.
7870         * tests/test-copysignf.c: Fix signature check.
7871
7872 2011-11-20  Bruno Haible  <bruno@clisp.org>
7873
7874         fma: Remove unused code.
7875         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7876         unused macros.
7877
7878 2011-11-20  Bruno Haible  <bruno@clisp.org>
7879
7880         sethostname: Fix doc about AIX.
7881         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7882         sethostname; it has it.
7883
7884         sethostname: Mention more portability problems.
7885         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7886         problem.
7887         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7888
7889 2011-11-19  Bruno Haible  <bruno@clisp.org>
7890
7891         Depend on module fcntl-h when AT_FDCWD is used.
7892         * modules/utimens (Depends-on): Add fcntl-h.
7893         * modules/areadlinkat (Depends-on): Likewise.
7894         * modules/areadlinkat-with-size (Depends-on): Likewise.
7895         * modules/faccessat (Depends-on): Likewise.
7896         * modules/fchmodat (Depends-on): Likewise.
7897         * modules/fchownat (Depends-on): Likewise.
7898         * modules/getcwd (Depends-on): Likewise.
7899         * modules/mkdirat (Depends-on): Likewise.
7900         * modules/mkfifoat (Depends-on): Likewise.
7901         * modules/readlinkat (Depends-on): Likewise.
7902         * modules/symlinkat (Depends-on): Likewise.
7903         * modules/dup2-tests (Depends-on): Likewise.
7904         * modules/fdutimensat-tests (Depends-on): Likewise.
7905         * modules/futimens-tests (Depends-on): Likewise.
7906
7907 2011-11-19  Bruno Haible  <bruno@clisp.org>
7908
7909         euidaccess: Update a comment.
7910         * lib/euidaccess.c: Update comment about platforms with faccessat.
7911
7912 2011-11-19  Bruno Haible  <bruno@clisp.org>
7913
7914         openat: Fix file list.
7915         * modules/openat (Files): Remove lib/at-func.c.
7916
7917 2011-11-19  Bruno Haible  <bruno@clisp.org>
7918
7919         fstatat: Simplify.
7920         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7921         gnulib should define rpl_fstatat, there is a
7922         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7923
7924 2011-11-19  Bruno Haible  <bruno@clisp.org>
7925
7926         Ensure 'inline' can be used in tests/test-utimens-common.h.
7927         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7928         * modules/futimens-tests (configure.ac): Likewise.
7929         * modules/utimens-tests (configure.ac): Likewise.
7930         * modules/utimensat-tests (configure.ac): Likewise.
7931
7932 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7933
7934         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7935         not hash_insert0.
7936         (hash_insert_if_absent): Doc fix.
7937
7938 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7939
7940         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7941
7942 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7943
7944         test-getcwd: disambiguate exit status
7945         * tests/test-getcwd.c (test_long_name): Return 0..7.
7946         (main): Exit with an unambiguous exit status.  The old
7947         code yielded a mysterious mixture of two failure codes.
7948
7949         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7950         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7951         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7952         rpl_fstatat or fstatat.  This should fix the other problem
7953         reported by Kai Habel in
7954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7955         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7957         and I reproduced it on a Solaris 8 host we still have in production.
7958
7959 2011-11-18  Jim Meyering  <meyering@redhat.com>
7960
7961         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7962         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7963         Add a sentence to the comment.
7964         (hash_insert0): New function that simply calls hash_insert_if_absent.
7965         * lib/hash.h (hash_insert_if_absent): Declare it.
7966         (hash_insert0): Add deprecation attribute.
7967         (_GL_ATTRIBUTE_DEPRECATED): Define.
7968         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7969         not hash_insert0.
7970         * NEWS: Mention it, even though it's not really an incompatible change.
7971
7972 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7973
7974         openat: avoid compilation failure due to lack of <errno.h> inclusion
7975         * lib/openat.c: Include <errno.h>.
7976
7977 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7978
7979         * modules/getcwd (Depends-on): Add fdopendir.
7980         This fixes one of the two problems reported by Kai Habel in
7981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7982
7983         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7984         stdalign problem reported by Ian Beckwith in
7985         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7986         * modules/crypto/gc-arcfour (Depends-on):
7987         Depend conditionally on crypto/arcfour.
7988         * modules/crypto/gc-arctwo (Depends-on):
7989         Depend conditionally on crypto/arctwo.
7990         * modules/crypto/gc-des (Depends-on):
7991         Depend conditionally on crypto/des.
7992         * modules/crypto/gc-hmac-md5 (Depends-on):
7993         Depend conditionally on crypto/hmac-md5.
7994         * modules/crypto/gc-hmac-sha1 (Depends-on):
7995         Depend conditionally on crypto/hmac-sha1.
7996         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7997         * modules/crypto/gc-md4 (Depends-on):
7998         Depend conditionally on crypto/md4.
7999         * modules/crypto/gc-md5 (Depends-on):
8000         Depend conditionally on crypto/md5.
8001         * modules/crypto/gc-rijndael (Depends-on):
8002         Depend conditionally on crypto/rijndael.
8003         * modules/crypto/gc-sha1 (Depends-on):
8004         Depend conditionally on crypto/sha1.
8005         * modules/crypto/gc-arcfour:
8006         * modules/crypto/gc-arctwo:
8007         * modules/crypto/gc-des:
8008         * modules/crypto/gc-hmac-md5:
8009         * modules/crypto/gc-hmac-sha1:
8010         * modules/crypto/gc-md2:
8011         * modules/crypto/gc-md4:
8012         * modules/crypto/gc-md5:
8013         * modules/crypto/gc-rijndael:
8014         * modules/crypto/gc-sha1:
8015         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8016         now that the conditional dependencies do the work for us.
8017
8018 2011-11-17  Jim Meyering  <meyering@redhat.com>
8019
8020         tests: factor st_ctime-comparison out of two headers
8021         * tests/test-utimens-common.h (ctime_compare): Define.
8022         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8023         * tests/test-lutimens.h (test_lutimens): Likewise.
8024         * tests/test-utimens.h (test_utimens): Likewise.
8025
8026         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8027         Invoke the test program via an init.sh-using wrapper.
8028         * tests/test-getcwd.sh: New file.
8029         * modules/getcwd-tests (Files): Add it.
8030         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8031
8032 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8033
8034         gitlog-to-changelog: support multi-author commits.
8035         The FSF cares about keeping track of all authors of patches to its
8036         projects, but Git doesn't provide obvious support for multi-author
8037         changesets. Consensus seems to be forming around the use of extra
8038         Signed-off-by inspired lines in the log message formatted as
8039         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8040         multi-author commits between version control systems.
8041         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8042         log message and output in standard ChangeLog multi-author format.
8043         Reported by Peter Rosin <peda@lysator.liu.se>
8044
8045 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8046             Bruno Haible  <bruno@clisp.org>
8047
8048         Fix some modules' file list.
8049         * modules/fstatat (Files): Add m4/lstat.m4.
8050         * modules/openat (Files): Likewise.
8051         * modules/unlinkat (Files): Likewise.
8052
8053 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8054
8055         maint.mk: fix tight-scope.mk generation in VPATH builds.
8056         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8057         reference with $(srcdir) so that the file is found correctly even
8058         when running `make syntax-check' in a VPATH build.
8059
8060 2011-11-13  Bruno Haible  <bruno@clisp.org>
8061             Jim Meyering  <meyering@redhat.com>
8062
8063         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8064         * tests/init.sh (compare): Remove "No differences encountered" or
8065         synonymous output from the 'diff' program.
8066
8067 2011-11-13  Bruno Haible  <bruno@clisp.org>
8068
8069         Makefile: Tweak indentation.
8070         * Makefile: Use tab as first character in every line that contains rule
8071         commands.
8072
8073 2011-11-13  Bruno Haible  <bruno@clisp.org>
8074
8075         Syntax check for copyright statements.
8076         * check-copyright: New file.
8077         * Makefile (sc_check_copyright): New rule.
8078
8079 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8080
8081         * build-aux/git-version-gen: Add --prefix to configure the tag
8082         match string.
8083
8084 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8085
8086         * build-aux/git-version-gen: Add --help and --version.
8087
8088 2011-11-12  Jim Meyering  <meyering@redhat.com>
8089
8090         revamp the other test-exclude?.sh scripts to use init.sh, too
8091         * tests/test-exclude1.sh: Use init.sh.
8092         * tests/test-exclude2.sh: Likewise.
8093         * tests/test-exclude3.sh: Likewise.
8094         * tests/test-exclude4.sh: Likewise.
8095         * tests/test-exclude5.sh: Likewise.
8096         * tests/test-exclude6.sh: Likewise.
8097         * tests/test-exclude7.sh: Likewise.
8098         * tests/test-exclude8.sh: Likewise.
8099         * modules/exclude-tests (Files): List init.sh.
8100
8101         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8102         These shell scripts ignored failure of the binary test-exclude,
8103         so making the latter return 77 didn't cause them to be skipped.
8104         * tests/test-exclude5.sh: Exit with test-exclude's error status
8105         when that program fails.  Revamp to use init.sh.
8106         * tests/test-exclude2.sh: Likewise.
8107
8108         test-exclude: fix a typo
8109         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8110
8111 2011-11-11  Bruno Haible  <bruno@clisp.org>
8112
8113         obstack: Fix compilation error on MSVC 9.
8114         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8115
8116 2011-11-11  Jim Meyering  <meyering@redhat.com>
8117
8118         test-exclude: skip tests rather than failing on deficient systems
8119         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8120         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8121         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8122         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8123
8124 2011-11-10  Bruno Haible  <bruno@clisp.org>
8125
8126         ptsname_r test: Avoid gcc warning on glibc systems.
8127         * tests/test-ptsname_r.c (null_ptr): New function.
8128         (test_errors): Use it.
8129
8130 2011-11-10  Bruno Haible  <bruno@clisp.org>
8131
8132         ptsname_r: Avoid compilation error on OSF/1 5.1.
8133         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8135         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8136         function is not declared or incompatibly declared.
8137         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8138         * modules/ptsname_r (Depends-on, configure.ac): Update.
8139         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8140
8141 2011-11-10  Bruno Haible  <bruno@clisp.org>
8142
8143         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8144         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8145         When cross-compiling, guess yes on all platforms except AIX.
8146         Reported by Ludovic Courtès <ludo@gnu.org>.
8147
8148 2011-11-09  Bruno Haible  <bruno@clisp.org>
8149
8150         ptsname_r tests: Fix bugs.
8151         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8152         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8153
8154 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8155
8156         fstatat: work with cross-compilation
8157         Problem reported by Ludovic Courtès in
8158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8159         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8160         "cross-compiling" and assume the bug is present.  Replace
8161         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8162         an inverted sense, to be more conservative about our assumptions.
8163         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8164
8165 2011-11-09  Bruno Haible  <bruno@clisp.org>
8166
8167         Improve MODULES.html output.
8168         * modules/mkfifoat (Description): Use the word "function".
8169         * modules/readlinkat (Description): Likewise.
8170         * modules/symlinkat (Description): Likewise.
8171
8172 2011-11-09  Eric Blake  <eblake@redhat.com>
8173
8174         ptsname_r-tests: new test module
8175         * modules/ptsname_r-tests: New module.
8176         * tests/test-ptsname_r.c: New file.
8177
8178         ptsname_r: new module
8179         * modules/ptsname_r: New module.
8180         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8181         * lib/ptsname.c (__ptsname_r): Split...
8182         * lib/ptsname_r.c: ...into new file.
8183         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8184         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8185         * modules/stdlib (Makefile.am): Substitute witnesses.
8186         * lib/stdlib.in.h (ptsname_r): Declare it.
8187         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8188         * MODULES.html.sh (Misc): Likewise.
8189         * modules/ptsname (Depends-on): Alter dependency.
8190         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8191
8192 2011-11-09  Jim Meyering  <meyering@redhat.com>
8193
8194         announce-gen: be more concise when there's only one URL+tarball
8195         * build-aux/announce-gen (get_tool_versions): When you distribute
8196         only one type of tarball, combine the first two "Here are..."
8197         sections and make the key-checking grammar independent of
8198         how many tarballs there are.
8199
8200 2011-11-09  Eric Blake  <eblake@redhat.com>
8201
8202         openpty: provide a stub on mingw
8203         * lib/pty.in.h (includes): Provide forward declarations.
8204         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8205
8206         raise: fix mingw handling of SIGPIPE
8207         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8208
8209 2011-11-08  Bruno Haible  <bruno@clisp.org>
8210
8211         More conditional dependencies.
8212         * modules/faccessat (Depends-on): Add conditions.
8213         * modules/fchmodat (Depends-on): Likewise.
8214         * modules/fchownat (Depends-on): Likewise.
8215         * modules/fstatat (Depends-on): Likewise.
8216         * modules/mkfifoat (Depends-on): Likewise.
8217         * modules/readlinkat (Depends-on): Likewise.
8218         * modules/symlinkat (Depends-on): Likewise.
8219         * modules/unlinkat (Depends-on): Likewise.
8220         * modules/utimensat (Depends-on): Likewise.
8221         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8222         * modules/linkat (Depends-on): Refine the conditions.
8223         * modules/renameat (Depends-on): Likewise.
8224
8225 2011-11-08  Bruno Haible  <bruno@clisp.org>
8226
8227         faccessat: Move AC_LIBOBJ invocation to module description.
8228         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8229         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8230         invocation from here...
8231         * modules/faccessat (configure.ac): ... to here. Invoke
8232         gl_PREREQ_FACCESSAT.
8233
8234 2011-11-08  Bruno Haible  <bruno@clisp.org>
8235
8236         faccessat: Simplify autoconf macro.
8237         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8238         gl_FUNC_EUIDACCESS.
8239
8240 2011-11-08  Bruno Haible  <bruno@clisp.org>
8241
8242         renameat: Fix dependencies.
8243         * modules/renameat (Depends-on): Add stdbool.
8244
8245 2011-11-08  Bruno Haible  <bruno@clisp.org>
8246
8247         mkfifoat: Fix module description.
8248         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8249         not gl_UNISTD_MODULE_INDICATOR.
8250
8251 2011-11-08  Bruno Haible  <bruno@clisp.org>
8252
8253         fstatat: Remove unused dependency.
8254         * modules/fstatat (Depends-on): Remove fstat.
8255
8256 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8257
8258         GNUmakefile: behave when Makefile is missing.
8259         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8260
8261 2011-11-08  Bruno Haible  <bruno@clisp.org>
8262
8263         openat: Conditionalize dependencies.
8264         * lib/openat.c: Reduce the scope of some #includes.
8265         * modules/openat (Depends-on): Add conditions.
8266
8267 2011-11-07  Jim Meyering  <meyering@redhat.com>
8268
8269         maint.mk: extract GPG key ID without using a temporary file
8270         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8271         without using a temporary file.  Based on a suggestion from Werner Koch
8272         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8273
8274 2011-11-07  Eric Blake  <eblake@redhat.com>
8275
8276         grantpt: fix typo
8277         * lib/stdlib.in.h (grantpt): Check correct function.
8278
8279         maint.mk: silence new syntax check
8280         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8281
8282 2011-11-06  Bruno Haible  <bruno@clisp.org>
8283
8284         Doc about floating-point and math API.
8285         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8286         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8287
8288 2011-11-06  Bruno Haible  <bruno@clisp.org>
8289
8290         stdalign tests: Skip the test when compiled by Sun C.
8291         * tests/test-stdalign.c (main): Skip the test on Sun C.
8292
8293 2011-11-06  Bruno Haible  <bruno@clisp.org>
8294
8295         ansi-c++-opt: Complete the 2011-06-05 change.
8296         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8297         does not support namespaces, set the variable to "no", not to ":".
8298
8299 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8300
8301         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8302
8303 2011-11-06  Bruno Haible  <bruno@clisp.org>
8304
8305         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8306         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8307         (minus_zerol) [HP-UX]: New macro.
8308         (unary_minus) [HP-UX]: New function.
8309         (copysignl) [HP-UX]: Use unary_minus function.
8310
8311 2011-11-06  Bruno Haible  <bruno@clisp.org>
8312
8313         ldexp, ldexpf, ldexpl: Enhance tests.
8314         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8315         and tests/test-ldexpl.c.
8316         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8317         LDEXP, MIN_EXP, MAX_EXP): New macros.
8318         Include test-ldexp.h.
8319         (main): Just call test_function.
8320         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8321         infinity.h, nan.h.
8322         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8323         MAX_EXP): New macros.
8324         Include test-ldexp.h.
8325         (x, y): Remove variables.
8326         (main): Just call test_function.
8327         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8328         infinity.h, nan.h.
8329         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8330         MAX_EXP): New macros.
8331         Include test-ldexp.h.
8332         (x, y): Remove variables.
8333         (main): Just call test_function.
8334         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8335         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8336         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8337         (Depends-on): Add isnand-nolibm, signbit, float.
8338         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8339         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8340         (Depends-on): Add isnanf-nolibm, signbit, float.
8341
8342 2011-11-06  Bruno Haible  <bruno@clisp.org>
8343
8344         math tests: Cosmetics.
8345         * tests/test-math-c++.cc: Reorder declarations.
8346
8347 2011-11-05  Bruno Haible  <bruno@clisp.org>
8348
8349         fma*: Simplify test.
8350         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8351         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8352
8353         Tests for module 'fmal'.
8354         * modules/fmal-tests: New file.
8355         * tests/test-fmal1.c: New file.
8356         * tests/test-fmal2.c: New file.
8357
8358         New module 'fmal'.
8359         * lib/math.in.h (fmal): New declaration.
8360         * lib/fmal.c: New file.
8361         * m4/fmal.m4: New file.
8362         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8364         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8365         REPLACE_FMAL.
8366         * modules/fmal: New file.
8367         * doc/posix-functions/fmal.texi: Mention the new module and the various
8368         bugs.
8369
8370         Tests for module 'fmaf'.
8371         * modules/fmaf-tests: New file.
8372         * tests/test-fmaf1.c: New file.
8373         * tests/test-fmaf2.c: New file.
8374
8375         New module 'fmaf'.
8376         * lib/math.in.h (fmaf): New declaration.
8377         * lib/fmaf.c: New file.
8378         * m4/fmaf.m4: New file.
8379         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8381         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8382         REPLACE_FMAF.
8383         * modules/fmaf: New file.
8384         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8385         bugs.
8386
8387         Tests for module 'fma'.
8388         * modules/fma-tests: New file.
8389         * tests/test-fma1.c: New file.
8390         * tests/test-fma1.h: New file.
8391         * tests/test-fma2.c: New file.
8392         * tests/test-fma2.h: New file.
8393
8394         New module 'fma'.
8395         * lib/math.in.h (fma): New declaration.
8396         * lib/fma.c: New file.
8397         * m4/fma.m4: New file.
8398         * m4/fegetround.m4: New file.
8399         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8401         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8402         REPLACE_FMA.
8403         * modules/fma: New file.
8404         * doc/posix-functions/fma.texi: Mention the new module and the various
8405         bugs.
8406
8407         Extend gl_MATHFUNC.
8408         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8409         Support 'void' as argument type.
8410         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8411
8412 2011-11-05  Jim Meyering  <meyering@redhat.com>
8413
8414         maint.mk: also prohibit inclusion of dirent.h without use
8415         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8416
8417 2011-11-05  Bruno Haible  <bruno@clisp.org>
8418
8419         ldexpl tests: Avoid test failure on MSVC 9.
8420         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8421         value. Needed in order to enforce the conversion from a value greater
8422         than LDBL_MAX to Infinity.
8423
8424 2011-11-05  Bruno Haible  <bruno@clisp.org>
8425
8426         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8427         * modules/at-internal: New file, extracted from modules/openat.
8428         * modules/openat-h: New file.
8429         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8430         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8431         * modules/openat (Description): Add reference to POSIX function.
8432         (Files): Remove lib/openat.h, lib/openat-proc.c.
8433         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8434         intprops, unistd.
8435         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8436         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8437         gl_FCNTL_MODULE_INDICATOR.
8438         (Include): Remove unistd.h, openat.h.
8439         * modules/areadlinkat (Files): Add lib/at-func.c.
8440         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8441         openat-die, openat-h, save-cwd.
8442         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8443         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8444         openat-die, openat-h, save-cwd, unistd.
8445         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8446         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8447         openat-h, save-cwd. Remove fcntl-h, openat.
8448         * modules/fchmodat (Files): Remove lib/openat.h.
8449         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8450         openat, stdbool, unistd.
8451         * modules/fchownat (Files): Remove lib/openat.h.
8452         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8453         openat, stdbool, sys_stat.
8454         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8455         lib/openat-proc.c.
8456         (Depends-on): Add at-internal.
8457         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8458         * modules/fstatat (Files): Remove lib/openat.h.
8459         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8460         stdbool, unistd.
8461         * modules/fts (Depends-on): Add openat-h.
8462         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8463         openat.
8464         * modules/mkdirat (Files): Remove lib/openat.h.
8465         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8466         openat, stdbool, sys_stat.
8467         * modules/mkfifoat (Files): Add lib/at-func.c.
8468         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8469         openat-h, save-cwd. Remove fcntl-h, openat.
8470         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8471         * modules/readlinkat (Files): Add lib/at-func.c.
8472         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8473         openat-h, save-cwd. Remove fcntl-h, openat.
8474         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8475         openat.
8476         * modules/selinux-at (Files): Add lib/at-func.c.
8477         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8478         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8479         * modules/symlinkat (Files): Add lib/at-func.c.
8480         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8481         openat-h, save-cwd. Remove fcntl-h, openat.
8482         * modules/unlinkat (Files): Remove lib/openat.h.
8483         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8484         stdbool.
8485         * modules/utimensat (Files): Add lib/at-func.c.
8486         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8487         openat-die, openat-h, save-cwd.
8488         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8489         * modules/fdutimensat-tests (Depends-on): Add openat.
8490         * modules/fstatat-tests (Depends-on): Add openat-h.
8491         * modules/readlinkat-tests (Depends-on): Add openat.
8492         * modules/symlinkat-tests (Depends-on): Add openat.
8493
8494 2011-11-05  Bruno Haible  <bruno@clisp.org>
8495
8496         openat: Include <stdbool.h>.
8497         * lib/openat.c: Include <stdbool.h>.
8498
8499 2011-11-04  Bruno Haible  <bruno@clisp.org>
8500
8501         fchownat, renameat, unlinkat: Fix dependencies.
8502         * modules/fchownat (Depends-on): Add fstatat.
8503         * modules/renameat (Depends-on): Likewise.
8504         * modules/unlinkat (Depends-on): Likewise.
8505
8506 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         openat: remove direct dependency on dirent
8509         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8510         and hasn't been needed ever since fdopendir was split into its own
8511         module on 2009-08-31.
8512         * modules/openat (Depends-on): Remove dirent.
8513
8514 2011-11-04  Bruno Haible  <bruno@clisp.org>
8515
8516         renameat: Optimize code size.
8517         * modules/renameat (configure.ac): Don't compile at-func2.c if
8518         REPLACE_RENAMEAT is 1.
8519
8520 2011-11-04  Bruno Haible  <bruno@clisp.org>
8521
8522         openat tests: Fix file list.
8523         * modules/openat-tests (Files): Add tests/test-open.h.
8524
8525 2011-11-04  Bruno Haible  <bruno@clisp.org>
8526
8527         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8528         * modules/fchmodat (Depends-on): Add openat-die.
8529         * modules/fchownat (Depends-on): Likewise.
8530         * modules/linkat (Depends-on): Likewise.
8531         * modules/renameat (Depends-on): Likewise.
8532         * modules/openat (Depends-on): Add dirent.
8533
8534 2011-11-04  Jim Meyering  <meyering@redhat.com>
8535
8536         at-func*.c: fix comments
8537         * lib/at-func2.c: Correct/improve first-line comment.
8538         * lib/at-func.c: Correct grammar in first-line comment.
8539
8540 2011-11-04  Bruno Haible  <bruno@clisp.org>
8541
8542         New module 'mkdirat', split off from module 'openat'.
8543         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8544         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8545         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8546         * modules/mkdirat: New file, extracted from modules/openat.
8547         * modules/openat (Files): Remove lib/mkdirat.c.
8548         (Depends-on): Remove mkdir.
8549         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8550         (Include): Remove <sys/stat.h>.
8551         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8552         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8553         tests/test-mkdir.h.
8554         (Depends-on): Remove ignore-value.
8555         (Makefile.am): Remove rules for test-mkdirat.
8556         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8557         of module 'openat'.
8558         * NEWS: Mention the change.
8559
8560 2011-11-04  Bruno Haible  <bruno@clisp.org>
8561
8562         closedir: Avoid warning on mingw.
8563         * lib/closedir.c: Include <unistd.h>.
8564
8565 2011-11-04  Bruno Haible  <bruno@clisp.org>
8566
8567         New module 'fstatat', split off from module 'openat'.
8568         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8569         defined.
8570         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8571         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8572         gl_FUNC_FSTATAT.
8573         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8574         * modules/fstatat: New file, extracted from modules/openat.
8575         * modules/openat (Files): Remove lib/fstatat.c.
8576         (Depends-on): Remove lstat.
8577         (configure.ac): Remove AC_LIBOBJ of fstatat.
8578         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8579         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8580         tests/test-lstat.h, tests/test-stat.h.
8581         (Depends-on): Remove getcwd-lgpl.
8582         (Makefile.am): Remove rules for test-fstatat.
8583         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8584         of module 'openat'.
8585         * NEWS: Mention the change.
8586         * modules/getcwd (Depends-on): Add fstatat.
8587         * modules/linkat (Depends-on): Likewise.
8588         * modules/mkfifoat-tests (Depends-on): Likewise.
8589         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8590
8591 2011-11-03  Bruno Haible  <bruno@clisp.org>
8592
8593         New module 'unlinkat', split off from module 'openat'.
8594         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8595         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8596         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8597         * modules/unlinkat: New file, extracted from modules/openat. Correct
8598         the dependency conditions.
8599         * modules/openat (Files): Remove lib/unlinkat.c.
8600         (Depends-on): Remove rmdir, unlink.
8601         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8602         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8603         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8604         tests/test-rmdir.h, tests/test-unlink.h.
8605         (Depends-on): Remove unlinkdir.
8606         (Makefile.am): Remove rules for test-unlinkat.
8607         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8608         of module 'openat'.
8609         * NEWS: Mention the change.
8610         * modules/linkat-tests (Depends-on): Add unlinkat.
8611         * modules/mkfifoat-tests (Depends-on): Likewise.
8612         * modules/readlinkat-tests (Depends-on): Likewise.
8613
8614 2011-11-02  Bruno Haible  <bruno@clisp.org>
8615
8616         New module 'fchmodat', split off from module 'openat'.
8617         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8618         defined.
8619         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8620         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8621         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8622         * modules/fchmodat: New file, extracted from modules/openat.
8623         * modules/openat (Files): Remove lib/fchmodat.c.
8624         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8625         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8626         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8627         (Makefile.am): Remove rules for test-fchmodat.
8628         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8629         of module 'openat'.
8630         * NEWS: Mention the change.
8631
8632 2011-11-02  Jim Meyering  <meyering@redhat.com>
8633
8634         putenv: indent #definition of "environ" to placate cppi
8635         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8636
8637         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8638         Git logs are often treated as immutable, because editing them
8639         changes the SHA1 checksums of all descendants.  Thus, errors in
8640         git logs tend to stay there forever.  However, when we generate
8641         a ChangeLog file -- typically for distribution -- from that git log,
8642         we can actually make corrections in the generated file.  The key
8643         lies in recording in machine-readable/applicable form the desired
8644         corrections.  See --help for description and an example.
8645         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8646         (usage): Describe it; alphabetize option descriptions.
8647         (main): Honor the new option, carefully.
8648
8649 2011-11-01  Jim Meyering  <meyering@redhat.com>
8650
8651         gitlog-to-changelog: avoid an infloop
8652         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8653         that ends up being empty.
8654
8655 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8656
8657         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8658         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8659         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8660         contains (possibly-quoted) backslashes.  This should avoid
8661         all-too-common shell bugs if COMPLICATED contains backslashes in
8662         the "wrong" places.  Reported by David Evans in
8663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8664         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8665         because we want ASCII ranges.  Is there some reason we don't use
8666         the C locale everywhere in this script?
8667         (func_module, top level): Avoid unwanted pathname expansion when
8668         $repo_url_prefix or $repo_url_suffix_repl contain shell
8669         metacharacters like '?' and '*'.
8670
8671 2011-11-01  Bruno Haible  <bruno@clisp.org>
8672
8673         fchownat: Improve description.
8674         * modules/fchownat (Description): Add link to function.
8675
8676 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8677
8678         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8679         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8681         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8682
8683 2011-11-01  Bruno Haible  <bruno@clisp.org>
8684
8685         alignof: Avoid collision with stdalign module.
8686         * lib/alignof.h (alignof): Remove macro.
8687         * NEWS: Mention the change.
8688         Reported by Paul Eggert.
8689
8690 2011-11-01  Bruno Haible  <bruno@clisp.org>
8691
8692         New module 'fchownat', split off from module 'openat'.
8693         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8694         defined.
8695         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8697         invoke gl_FUNC_FCHOWNAT.
8698         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8699         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8700         * modules/fchownat: New file, extracted from modules/openat.
8701         * modules/openat (Files): Remove lib/fchownat.c.
8702         (Depends-on): Remove lchown.
8703         (configure.ac): Remove AC_LIBOBJ of fchownat.
8704         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8705         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8706         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8707         (Depends-on): Remove mgetgroups, usleep, stat-time.
8708         (configure.ac): Remove test for getegid.
8709         (Makefile.am): Remove rules for test-fchownat.
8710         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8711         of module 'openat'.
8712         * NEWS: Mention the change.
8713
8714 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8715
8716         stdalign: port better to MSVC and to Sun C 5.11
8717         This fixes some of the problems reported by Bruno Haible in
8718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8719         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8720         shortcomings of MSVC and of Sun C 5.11.
8721         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8722         around __declspec arg.
8723         * modules/stdalign-tests (Files): Add tests/macros.h.
8724         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8725         Include macros.h, for ASSERT.
8726         (DECLARE_ALIGNED): Remove.
8727         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8728         to catch bug), and to 1 if not (simplifies the rest of the code).
8729         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8730         (CHECK_AUTO): Remove.
8731         (CHECK_ALIGNED): Check only the alignment of the static vars,
8732         since auto var alignment isn't supported by Sun C 5.11.
8733         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8734         ASSERT failures are easier to diagnose.
8735
8736 2011-10-31  Bruno Haible  <bruno@clisp.org>
8737
8738         doc about some IRIX 5.3 problems.
8739         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8740         on IRIX 5.3.
8741         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8742         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8743         5.3.
8744         * doc/posix-functions/grantpt.texi: Likewise.
8745         * doc/posix-functions/unlockpt.texi: Likewise.
8746         * doc/posix-functions/lgamma.texi: Likewise.
8747         * doc/posix-functions/nextafter.texi: Likewise.
8748         * doc/posix-functions/remainder.texi: Likewise.
8749         * doc/posix-functions/select.texi: Mention misplaced declaration on
8750         IRIX 5.3.
8751         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8752
8753 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8754
8755         gitlog-to-changelog: fix git-log invocation.
8756         git-log mishandles date strings before 1970-01-01 UTC, and there is
8757         no use to specify --since=1970-01-01 by default anyway.
8758         * build-aux/gitlog-to-changelog: By default, when no --since option
8759         was given, do not specify explicit --since option to git-log.
8760
8761 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8762
8763         gitlog-to-changelog: new option --append-dot.
8764         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8765         first non-blank line of each commit message terminated with a dot.
8766
8767 2011-10-30  Bruno Haible  <bruno@clisp.org>
8768
8769         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8770         * lib/ffsl.h: Include <config.h>.
8771         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8772
8773 2011-10-30  Jim Meyering  <meyering@redhat.com>
8774
8775         GNUmakefile: reenable "make syntax-check" for most projects
8776         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8777         build-aux variable", "syntax-check" would do nothing but succeed with
8778         the "No version control files detected..." diagnostic (unless you
8779         happened to override _build-aux via cfg.mk).
8780         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8781         to precede inclusion of maint.mk.  Otherwise, these variables would
8782         be used undefined in any project that does not override the default.
8783
8784 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8785
8786         gitlog-to-changelog: treat a message with only blank lines as empty.
8787         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8788         trailing blank lines before the code that issues a warning about an
8789         empty commit message.
8790
8791 2011-10-30  Jim Meyering  <meyering@redhat.com>
8792
8793         test-parse-datetime.c: avoid new DST-related false positive test failure
8794         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8795         based on the time/date we'll convert, not the current time.
8796         Otherwise, the moment we cross a DST boundary like today's in
8797         Europe, (CEST to CET), that offset ends up being one hour off.
8798
8799 2011-10-27  Bruno Haible  <bruno@clisp.org>
8800
8801         fstat: Tweak documentation.
8802         * modules/fstat (Description): More precise description.
8803
8804 2011-10-27  Bruno Haible  <bruno@clisp.org>
8805
8806         Update documentation regarding 'largefile' module.
8807         * doc/posix-functions/fstat.texi: Tweak wording.
8808         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8809         problems with huge directories and/or small ino_t types.
8810         * doc/posix-functions/readdir.texi: Likewise.
8811         * doc/posix-functions/rewinddir.texi: Likewise.
8812
8813 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8814
8815         maint.mk: don't maintain a second build-aux variable.
8816         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8817         depends on GNUmakefile, which already maintains a cfg.mk
8818         overridable $(_build-aux) for projects with a non-standard
8819         build-aux directory location, although without the $(srcdir)
8820         prefix.  Use that variable consistently instead of introducing a
8821         second one.  Adjust all call sites.
8822
8823 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8824
8825         Add stdalign module and use it in other modules.
8826         This is based on a previous proposal by Bruno Haible
8827         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8828
8829         stdalign: new module
8830         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8831         * modules/stdalign: New files.
8832         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8833         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8834
8835         stdalign-tests: new module
8836         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8837
8838         argp: use stdalign
8839         * lib/argp-parse.c: Include <stdalign.h>.
8840         (alignof): Remove.
8841         * modules/argp (Depends-on): Add stdalign.
8842
8843         crypto libraries: use stdalign
8844         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8845         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8846         Do not include <stdlib.h> twice, in md4.c.
8847         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8848         because we are accessing a pointer's bit-pattern, not a size.
8849         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8850         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8851         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8852         * modules/crypto/sha512: Likewise.
8853
8854         sys_socket: use stdalign, not alignof
8855         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8856         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8857
8858 2011-10-27  Bruno Haible  <bruno@clisp.org>
8859
8860         raise test: Avoid a test failure on Linux/MIPS.
8861         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8862         because 99 is a valid signal on Linux/MIPS.
8863
8864 2011-10-27  Bruno Haible  <bruno@clisp.org>
8865
8866         nonblocking tests: Fix test failure on Linux/MIPS.
8867         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8868         Set to 270000.
8869
8870 2011-10-27  Bruno Haible  <bruno@clisp.org>
8871
8872         utimensat: Work around problem on Linux/hppa.
8873         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8874         values.
8875         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8876
8877 2011-10-25  Jim Meyering  <meyering@redhat.com>
8878
8879         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8880         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8881         after symbols like NULL, size_t, etc.
8882         Reported by Alfred M. Szmidt.
8883
8884         maint.mk: exempt ENODATA from a syntax-check rule
8885         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8886         from the sc_prohibit_always-defined_macros syntax-check rule.
8887         Add a comment.  See this for more details:
8888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8889
8890 2011-10-23  Jim Meyering  <meyering@redhat.com>
8891
8892         fts: close parent dir FD before returning from post-traversal fts_read
8893         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8894         unlink A, even though an FD open on A remained.  This is suboptimal
8895         (holding a file descriptor open longer than needed), but otherwise not
8896         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8897         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8898         that represents a real problem: it causes the removal of A to fail
8899         with e.g., "rm: cannot remove `A': Device or resource busy"
8900
8901         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8902         directory file descriptors.  After completing the final, FTS_DP,
8903         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8904         cache, but then proceeded to add a new FD to it via the subsequent
8905         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8906         final file descriptor would be closed only via fts_close's call to
8907         fd_ring_clear.  Now, it is usually closed earlier, via the final
8908         FTS_DP-returning fts_read call.
8909         * lib/fts.c (restore_initial_cwd): New function, converted from
8910         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8911         Update callers.
8912         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8913         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8914
8915 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8916             Bruno Haible  <bruno@clisp.org>
8917             Jim Meyering  <jim@meyering.net>
8918
8919         readme-release: improve safety of release prep instructions.
8920         * README-release: Don't git pull all branches when only master
8921         is needed for the release process.
8922         Run make maintainer-clean before changing trees and merging.
8923         Don't try to run ./configure right after git pull in case files
8924         that influence the bootstrap process have changed, move the
8925         ./configure step to after running ./bootstrap.
8926         Don't bootstrap "one last time"... it's the first time!
8927
8928 2011-10-22  Bruno Haible  <bruno@clisp.org>
8929
8930         errno, strerror-override: Support for MSVC 10.
8931         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8932         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8933         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8934         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8935         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8936         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8937         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8938         Assign values compatible with MSVC 10.
8939         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8940         New macros.
8941         (GNULIB_defined_EWINSOCK): New macro.
8942         * lib/strerror-override.c (strerror_override): Update accordingly.
8943         * lib/strerror-override.h: Likewise.
8944         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8945         longer equal to the corresponding errno value.
8946         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8947
8948 2011-10-22  Bruno Haible  <bruno@clisp.org>
8949
8950         perror: Recognize when test program crashes.
8951         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8952         strerror, set gl_cv_func_perror_works to no.
8953         Reported by Daniel Richard G. <skunk@iskunk.org>.
8954
8955         perror: Fix indentation.
8956         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8957
8958 2011-10-22  Bruno Haible  <bruno@clisp.org>
8959
8960         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8961         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8962         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8963         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8964         functions, not as a macro.
8965         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8966         macros.
8967         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8968         absence of macro.
8969         Suggested by Eric Blake.
8970         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8971
8972 2011-10-21  Bruno Haible  <bruno@clisp.org>
8973
8974         relocatable-prog-wrapper: Don't leave object files behind.
8975         * build-aux/install-reloc: Re-synchronize list of .o files to be
8976         removed with list of compilation units.
8977
8978 2011-10-20  Bruno Haible  <bruno@clisp.org>
8979
8980         openpty, posix_openpt: Remove code duplication.
8981         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8982         * lib/openpty.c: Include <stdlib.h>.
8983         (openpty): Use posix_openpt on all platforms except IRIX.
8984         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8985
8986 2011-10-20  Bruno Haible  <bruno@clisp.org>
8987
8988         unlockpt: Detect invalid argument.
8989         * lib/unlockpt.c: Include <fcntl.h>.
8990         (unlockpt): Check whether fd is valid, using fcntl().
8991         * modules/unlockpt (Depends-on): Add fcntl-h.
8992
8993 2011-10-20  Bruno Haible  <bruno@clisp.org>
8994
8995         openpty: Avoid compilation error on AIX 6.1.
8996         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8997
8998 2011-10-20  Bruno Haible  <bruno@clisp.org>
8999
9000         posix_openpt: Support for OpenBSD.
9001         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9002         (posix_openpt) [OpenBSD]: New code.
9003         * lib/grantpt.c: Include <fcntl.h>.
9004         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9005         * modules/grantpt (Depends-on): Add fcntl-h.
9006
9007 2011-10-20  Bruno Haible  <bruno@clisp.org>
9008
9009         posix_openpt test: Coding style.
9010         * tests/test-posix_openpt.c: Use GNU coding style.
9011
9012 2011-10-20  Bruno Haible  <bruno@clisp.org>
9013
9014         grantpt: Support --avoid=pt_chown.
9015         * modules/grantpt (Files): Add lib/pty-private.h.
9016
9017 2011-10-20  Bruno Haible  <bruno@clisp.org>
9018
9019         posix_openpt: Fix autoconf macro.
9020         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9021         unneeded check for _getpty.
9022
9023 2011-10-20  Bruno Haible  <bruno@clisp.org>
9024
9025         openpty: Update comments.
9026         * lib/openpty.c: Add comments about Minix.
9027
9028 2011-10-19  Eric Blake  <eblake@redhat.com>
9029
9030         openpty: relax license
9031         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9032
9033         pt_chown: use configmake to simplify build
9034         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9035
9036         ptsname and others: relax license
9037         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9038         * modules/unlockpt (License): Likewise.
9039         * modules/pt_chown (License): Likewise.
9040         * modules/ptsname (License): Likewise.
9041         * modules/ttyname_r (License): Likewise.
9042
9043 2011-10-19  Jim Meyering  <meyering@redhat.com>
9044
9045         posix_openpt: remove spurious #endif
9046         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9047
9048 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9049
9050         maint.mk: Respect $(build_aux) in web-manual rule.
9051         * top/maint.mk (web-manual): Find gen-announce script in user's
9052         $(build_aux) directory instead of hard-coding 'build-aux'.
9053
9054 2011-10-19  Bruno Haible  <bruno@clisp.org>
9055
9056         posix_openpt: Fix compilation error.
9057         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9058         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9059         Mention the openpty module as an alternative.
9060
9061 2011-10-19  Bruno Haible  <bruno@clisp.org>
9062
9063         Support for old NeXTstep 3.3 frexp().
9064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9065         execution time of the test to 5 seconds.
9066         Reported by Daniel Richard G. <skunk@iskunk.org>.
9067
9068 2011-10-19  Bruno Haible  <bruno@clisp.org>
9069
9070         Support for old NeXTstep 3.3 sed.
9071         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9072         part, use /.../, not \|...|. Escape periods in the header file name.
9073         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9074         Reported by Daniel Richard G. <skunk@iskunk.org>.
9075
9076 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9077
9078         Support for old NeXTstep 3.3 gcc.
9079         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9080         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9081         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9082         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9083         * lib/regex.h (_Restrict_arr_): Likewise.
9084         * lib/regex_internal.h (re_token_t): Likewise.
9085         * lib/regexec.c (check_node_accept_bytes): Likewise.
9086         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9087
9088 2011-10-18  Eric Blake  <eblake@redhat.com>
9089
9090         posix_openpt: new module
9091         * modules/posix_openpt: New module.
9092         * m4/posix_openpt.m4: New file.
9093         * lib/posix_openpt.c: Likewise.
9094         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9095         (gl_STDLIB_H_DEFAULTS): Set defaults.
9096         * modules/stdlib (Makefile.am): Substitute macros.
9097         * lib/stdlib.in.h (posix_openpt): Declare.
9098         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9099         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9100         * modules/posix_openpt-tests: New test module.
9101         * tests/test-posix_openpt.c: New test.
9102
9103 2011-10-15  Bruno Haible  <bruno@clisp.org>
9104
9105         xstrtoll: Fix compilation failure.
9106         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9107         from lib/strtol.c.
9108         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9109         some platforms.
9110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9111
9112 2011-10-15  Bruno Haible  <bruno@clisp.org>
9113
9114         vasnprintf: Optimize bit search operation.
9115         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9117         gl_DOUBLE_EXPONENT_LOCATION.
9118         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9119         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9120         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9121         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9122         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9123         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9124         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9125         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9126         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9127
9128 2011-10-15  Bruno Haible  <bruno@clisp.org>
9129
9130         vasnprintf: Fix comments.
9131         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9132
9133 2011-10-14  Bruno Haible  <bruno@clisp.org>
9134
9135         Tests for module 'integer_length_ll'.
9136         * modules/integer_length_ll-tests: New file.
9137         * tests/test-integer_length_ll.c: New file.
9138
9139         New module 'integer_length_ll'.
9140         * lib/integer_length_ll.c: New file.
9141         * modules/integer_length_ll: New file.
9142
9143 2011-10-14  Bruno Haible  <bruno@clisp.org>
9144
9145         Tests for module 'integer_length_l'.
9146         * modules/integer_length_l-tests: New file.
9147         * tests/test-integer_length_l.c: New file.
9148
9149         New module 'integer_length_l'.
9150         * lib/integer_length_l.c: New file.
9151         * modules/integer_length_l: New file.
9152
9153 2011-10-14  Bruno Haible  <bruno@clisp.org>
9154
9155         Tests for module 'integer_length'.
9156         * modules/integer_length-tests: New file.
9157         * tests/test-integer_length.c: New file.
9158
9159         New module 'integer_length'.
9160         * lib/integer_length.h: New file.
9161         * lib/integer_length.c: New file.
9162         * modules/integer_length: New file.
9163
9164 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9165
9166         popen: Fix dependency conditions.
9167         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9168
9169 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9170
9171         perror: Fix autoconf test.
9172         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9173         <stdlib.h> and <string.h>.
9174
9175 2011-10-14  Bruno Haible  <bruno@clisp.org>
9176
9177         ffsl: Optimize on 64-bit platforms.
9178         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9179         unrolling.
9180
9181 2011-10-13  Bruno Haible  <bruno@clisp.org>
9182
9183         ffsl: Optimize on 32-bit platforms.
9184         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9185         use ffs() without a loop.
9186
9187         ffsl, ffsll: Optimize for GCC.
9188         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9189         * lib/ffsl.c (GCC_BUILTIN): New macro.
9190         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9191
9192 2011-10-13  Bruno Haible  <bruno@clisp.org>
9193
9194         ffs, bcopy, memset: Support symbol renaming via config.h.
9195         * lib/ffs.c: Include <config.h>.
9196         * lib/bcopy.c: Likewise.
9197         * lib/memset.c: Likewise.
9198
9199 2011-10-10  Bruno Haible  <bruno@clisp.org>
9200
9201         atanl: Simplify for platforms where 'long double' == 'double'.
9202         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9203         alternative implementation.
9204         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9205         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9206         * modules/atanl (Depends-on): Add atan. Update conditions.
9207
9208 2011-10-10  Bruno Haible  <bruno@clisp.org>
9209
9210         acosl: Simplify for platforms where 'long double' == 'double'.
9211         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9212         alternative implementation.
9213         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9214         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9215         * modules/acosl (Depends-on): Add acos. Update conditions.
9216
9217 2011-10-10  Bruno Haible  <bruno@clisp.org>
9218
9219         asinl: Simplify for platforms where 'long double' == 'double'.
9220         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9221         alternative implementation.
9222         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9223         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9224         * modules/asinl (Depends-on): Add asin. Update conditions.
9225
9226 2011-10-10  Bruno Haible  <bruno@clisp.org>
9227
9228         tanl: Simplify for platforms where 'long double' == 'double'.
9229         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9230         implementation.
9231         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9232         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9233         * modules/tanl (Depends-on): Add tan. Update conditions.
9234         (configure.ac): Don't compile trigl.c if
9235         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9236
9237 2011-10-10  Bruno Haible  <bruno@clisp.org>
9238
9239         cosl: Simplify for platforms where 'long double' == 'double'.
9240         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9241         implementation.
9242         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9243         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9244         * modules/cosl (Depends-on): Add cos. Update conditions.
9245         (configure.ac): Don't compile sincosl.c and trigl.c if
9246         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9247
9248 2011-10-10  Bruno Haible  <bruno@clisp.org>
9249
9250         sinl: Simplify for platforms where 'long double' == 'double'.
9251         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9252         implementation.
9253         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9254         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9255         * modules/sinl (Depends-on): Add sin. Update conditions.
9256         (configure.ac): Don't compile sincosl.c and trigl.c if
9257         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9258
9259 2011-10-10  Bruno Haible  <bruno@clisp.org>
9260
9261         logl: Simplify for platforms where 'long double' == 'double'.
9262         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9263         implementation.
9264         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9265         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9266         * modules/logl (Depends-on): Add log. Update conditions.
9267
9268 2011-10-10  Bruno Haible  <bruno@clisp.org>
9269
9270         expl: Simplify for platforms where 'long double' == 'double'.
9271         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9272         implementation.
9273         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9274         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9275         * modules/expl (Depends-on): Add exp. Update conditions.
9276
9277 2011-10-10  Bruno Haible  <bruno@clisp.org>
9278
9279         sqrtl: Simplify for platforms where 'long double' == 'double'.
9280         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9281         alternative implementation.
9282         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9283         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9284         * modules/sqrtl (Depends-on): Update conditions.
9285
9286 2011-10-10  Bruno Haible  <bruno@clisp.org>
9287
9288         ldexpl: Simplify for platforms where 'long double' == 'double'.
9289         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9290         alternative implementation.
9291         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9292         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9293         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9294
9295 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9296
9297         ffsll: set correct witness
9298         * modules/ffsll (configure.ac): Fix typo.
9299
9300 2011-10-10  Bruno Haible  <bruno@clisp.org>
9301
9302         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9303         * lib/printf-frexpl.c: Include <config.h>.
9304         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9305         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9306         second time.
9307         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9308         gl_LONG_DOUBLE_VS_DOUBLE.
9309         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9310         conditions.
9311
9312 2011-10-10  Bruno Haible  <bruno@clisp.org>
9313
9314         frexpl: Simplify for platforms where 'long double' == 'double'.
9315         * lib/frexpl.c: Include <config.h>.
9316         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9317         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9318         time.
9319         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9320         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9321         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9322         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9323         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9324         conditions.
9325
9326 2011-10-10  Jim Meyering  <meyering@redhat.com>
9327
9328         test-renameat: don't leave behind a temporary file
9329         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9330           ERROR: files left in build directory after distclean:
9331           ./gltests/test-renameat.too
9332           make[1]: *** [distcleancheck] Error 1
9333         Reported by Tom G. Christensen.
9334
9335 2011-10-09  Bruno Haible  <bruno@clisp.org>
9336
9337         rint: Determine RINT_LIBM correctly on AIX 7.
9338         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9339         directly, not only through a function pointer. Also accept an optional
9340         4th argument with extra code.
9341         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9342         rintf() call by gcc when optimizing.
9343
9344         mathfunc.m4: Refactor.
9345         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9346         m4 variable.
9347
9348 2011-10-09  Bruno Haible  <bruno@clisp.org>
9349
9350         rintl: Simplify for platforms where 'long double' == 'double'.
9351         * lib/rintl.c: Include <config.h>.
9352         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9353         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9354         time.
9355         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9356         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9357         * modules/rintl (Depends-on): Add rint. Update conditions.
9358
9359 2011-10-09  Bruno Haible  <bruno@clisp.org>
9360
9361         roundl: Simplify for platforms where 'long double' == 'double'.
9362         * lib/roundl.c: Include <config.h>.
9363         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9364         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9365         time.
9366         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9367         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9368         * modules/roundl (Depends-on): Add round. Update conditions.
9369
9370 2011-10-09  Bruno Haible  <bruno@clisp.org>
9371
9372         truncl: Simplify for platforms where 'long double' == 'double'.
9373         * lib/truncl.c: Include <config.h>.
9374         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9375         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9376         time.
9377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9378         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9379         * modules/truncl (Depends-on): Add trunc. Update conditions.
9380
9381 2011-10-09  Bruno Haible  <bruno@clisp.org>
9382
9383         ceill: Simplify for platforms where 'long double' == 'double'.
9384         * lib/ceill.c: Include <config.h>.
9385         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9386         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9387         time.
9388         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9389         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9390         * modules/ceill (Depends-on): Add ceil. Update conditions.
9391
9392 2011-10-09  Bruno Haible  <bruno@clisp.org>
9393
9394         floorl: Simplify for platforms where 'long double' == 'double'.
9395         * lib/floorl.c: Include <config.h>.
9396         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9397         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9398         time.
9399         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9400         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9401         * modules/floorl (Depends-on): Add floor. Update conditions.
9402
9403 2011-10-09  Bruno Haible  <bruno@clisp.org>
9404
9405         rint: Fix ordering constraints.
9406         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9407         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9408         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9409
9410 2011-10-09  Bruno Haible  <bruno@clisp.org>
9411
9412         copysignl: Simplify for platforms where 'long double' == 'double'.
9413         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9414         alternative.
9415         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9416         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9417         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9418
9419 2011-10-09  Bruno Haible  <bruno@clisp.org>
9420
9421         Tests for module 'rintl'.
9422         * modules/rintl-tests: New file.
9423         * tests/test-rintl.c: New file.
9424
9425         New module 'rintl'.
9426         * lib/math.in.h (rintl): New declaration.
9427         * lib/rintl.c: New file.
9428         * m4/rintl.m4: New file.
9429         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9431         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9432         * modules/rintl: New file.
9433         * tests/test-math-c++.cc: Check the declaration of rintl.
9434         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9435         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9436         * doc/posix-functions/rintl.texi: Mention the new module.
9437
9438 2011-10-09  Bruno Haible  <bruno@clisp.org>
9439
9440         Tests for module 'rintf'.
9441         * modules/rintf-tests: New file.
9442         * tests/test-rintf.c: New file.
9443
9444         New module 'rintf'.
9445         * lib/math.in.h (rintf): New declaration.
9446         * lib/rintf.c: New file.
9447         * m4/rintf.m4: New file.
9448         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9450         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9451         * modules/rintf: New file.
9452         * tests/test-math-c++.cc: Check the declaration of rintf.
9453         * doc/posix-functions/rintf.texi: Mention the new module.
9454
9455 2011-10-09  Bruno Haible  <bruno@clisp.org>
9456
9457         rint: Support for MSVC.
9458         * lib/math.in.h (rint): New declaration.
9459         * lib/rint.c: New file.
9460         * m4/rint.m4: New file.
9461         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9463         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9464         * modules/rint (Description): Fix.
9465         (Files): Add lib/rint.c, m4/rint.m4.
9466         (Depends-on): Add math.
9467         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9468         gl_MATH_MODULE_INDICATOR.
9469         * tests/test-math-c++.cc: Check the declaration of rint.
9470         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9471         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9472         * doc/posix-functions/rint.texi: Mention the replacement provided by
9473         the module.
9474
9475         rint tests: More tests.
9476         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9477         minus-zero.h, infinity.h, nan.h.
9478         (main): Skip the test if the current rounding mode is not standard. Add
9479         tests for negative numbers, minus zero, infinity, NaN.
9480         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9481         tests/nan.h.
9482         (Depends-on): Add isnand-nolibm.
9483
9484 2011-10-09  Bruno Haible  <bruno@clisp.org>
9485
9486         Tests for module 'copysignl'.
9487         * modules/copysignl-tests: New file.
9488         * tests/test-copysignl.c: New file.
9489
9490         New module 'copysignl'.
9491         * lib/math.in.h (copysignl): New declaration.
9492         * lib/copysignl.c: New file.
9493         * m4/copysignl.m4: New file.
9494         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9496         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9497         HAVE_COPYSIGNL.
9498         * modules/copysignl: New file.
9499         * tests/test-math-c++.cc: Check the declaration of copysignl.
9500         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9501         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9502         * doc/posix-functions/copysignl.texi: Mention the new module.
9503
9504 2011-10-09  Bruno Haible  <bruno@clisp.org>
9505
9506         Tests for module 'copysignf'.
9507         * modules/copysignf-tests: New file.
9508         * tests/test-copysignf.c: New file.
9509
9510         New module 'copysignf'.
9511         * lib/math.in.h (copysignf): New declaration.
9512         * lib/copysignf.c: New file.
9513         * m4/copysignf.m4: New file.
9514         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9516         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9517         HAVE_COPYSIGNF.
9518         * modules/copysignf: New file.
9519         * tests/test-math-c++.cc: Check the declaration of copysignf.
9520         * doc/posix-functions/copysignf.texi: Mention the new module.
9521
9522 2011-10-09  Bruno Haible  <bruno@clisp.org>
9523
9524         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9526         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9528         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9529         gl_SIGNAL_H_DEFAULTS.
9530
9531 2011-10-09  Bruno Haible  <bruno@clisp.org>
9532
9533         poll: Make macro safer.
9534         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9535         ac_cv_header_poll_h is not set.
9536
9537 2011-10-09  Bruno Haible  <bruno@clisp.org>
9538
9539         copysign: Provide replacement.
9540         * lib/math.in.h (copysign): New declaration.
9541         * lib/copysign.c: New file.
9542         * m4/copysign.m4: New file.
9543         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9545         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9546         HAVE_COPYSIGN.
9547         * modules/copysign (Description): Clarify.
9548         (Files): Add lib/copysign.c, m4/copysign.m4.
9549         (Depends-on): Add math, signbit.
9550         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9551         gl_MATH_MODULE_INDICATOR.
9552         * tests/test-math-c++.cc: Check the declaration of copysign.
9553         * doc/posix-functions/copysign.texi: Mention the effects of the module
9554         on Minix and MSVC.
9555
9556 2011-10-09  Bruno Haible  <bruno@clisp.org>
9557
9558         isinf: Ensure macro on AIX 5.1.
9559         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9560         macro.
9561         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9562
9563 2011-10-09  Bruno Haible  <bruno@clisp.org>
9564
9565         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9566         * modules/snprintf-posix-tests (configure.ac): Require
9567         gl_LONG_DOUBLE_VS_DOUBLE.
9568         * modules/sprintf-posix-tests (configure.ac): Likewise.
9569         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9570         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9571         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9572         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9573         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9574         tests on platforms where 'long double' is the same as 'double'.
9575         * tests/test-sprintf-posix.h (test_function): Likewise.
9576         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9577         * tests/test-vasprintf-posix.c (test_function): Likewise.
9578
9579         *printf: Fix for platforms where 'long double' == 'double'.
9580         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9581         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9582         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9583         * modules/fprintf-posix (Files): Likewise.
9584         * modules/obstack-printf-posix (Files): Likewise.
9585         * modules/snprintf-posix (Files): Likewise.
9586         * modules/sprintf-posix (Files): Likewise.
9587         * modules/vasnprintf (Files): Likewise.
9588         * modules/vasnprintf-posix (Files): Likewise.
9589         * modules/vasprintf-posix (Files): Likewise.
9590         * modules/vdprintf-posix (Files): Likewise.
9591         * modules/vfprintf-posix (Files): Likewise.
9592         * modules/vsnprintf-posix (Files): Likewise.
9593         * modules/vsprintf-posix (Files): Likewise.
9594         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9595         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9596         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9597         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9598         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9599         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9600         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9601
9602         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9603         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9604         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9605         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9606         'long double'.
9607         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9608
9609         isinf: Fix for platforms where 'long double' == 'double'.
9610         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9611         Don't blindly assume 80-bit 'long double'.
9612
9613         isfinite: Fix for platforms where 'long double' == 'double'.
9614         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9615         Don't blindly assume 80-bit 'long double'.
9616
9617         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9618         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9619         * modules/isfinite-tests (configure.ac): Require
9620         gl_LONG_DOUBLE_VS_DOUBLE.
9621         * modules/isinf-tests (configure.ac): Likewise.
9622         * modules/isnan-tests (configure.ac): Likewise.
9623         * modules/isnanl-tests (configure.ac): Likewise.
9624         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9625         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9626         tests on platforms where 'long double' is the same as 'double'.
9627         * tests/test-isinf.c (test_isinfl): Likewise.
9628         * tests/test-isnan.c (test_long_double): Likewise.
9629         * tests/test-isnanl.h (main): Likewise.
9630
9631 2011-10-08  Bruno Haible  <bruno@clisp.org>
9632
9633         Tests for module 'tanhf'.
9634         * modules/tanhf-tests: New file.
9635         * tests/test-tanhf.c: New file.
9636
9637         New module 'tanhf'.
9638         * lib/math.in.h (tanhf): New declaration.
9639         * lib/tanhf.c: New file.
9640         * m4/tanhf.m4: New file.
9641         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9643         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9644         * modules/tanhf: New file.
9645         * tests/test-math-c++.cc: Check the declaration of tanhf.
9646         * doc/posix-functions/tanhf.texi: Mention the new module.
9647
9648         tanh: Use a .m4 file.
9649         * m4/tanh.m4: New file.
9650         * modules/tanh (Files): Add it.
9651         (configure.ac): Just invoke gl_FUNC_TANH.
9652
9653 2011-10-08  Bruno Haible  <bruno@clisp.org>
9654
9655         Tests for module 'coshf'.
9656         * modules/coshf-tests: New file.
9657         * tests/test-coshf.c: New file.
9658
9659         New module 'coshf'.
9660         * lib/math.in.h (coshf): New declaration.
9661         * lib/coshf.c: New file.
9662         * m4/coshf.m4: New file.
9663         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9665         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9666         * modules/coshf: New file.
9667         * tests/test-math-c++.cc: Check the declaration of coshf.
9668         * doc/posix-functions/coshf.texi: Mention the new module.
9669
9670         cosh: Use a .m4 file.
9671         * m4/cosh.m4: New file.
9672         * modules/cosh (Files): Add it.
9673         (configure.ac): Just invoke gl_FUNC_COSH.
9674
9675 2011-10-08  Bruno Haible  <bruno@clisp.org>
9676
9677         Tests for module 'sinhf'.
9678         * modules/sinhf-tests: New file.
9679         * tests/test-sinhf.c: New file.
9680
9681         New module 'sinhf'.
9682         * lib/math.in.h (sinhf): New declaration.
9683         * lib/sinhf.c: New file.
9684         * m4/sinhf.m4: New file.
9685         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9687         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9688         * modules/sinhf: New file.
9689         * tests/test-math-c++.cc: Check the declaration of sinhf.
9690         * doc/posix-functions/sinhf.texi: Mention the new module.
9691
9692         sinh: Use a .m4 file.
9693         * m4/sinh.m4: New file.
9694         * modules/sinh (Files): Add it.
9695         (configure.ac): Just invoke gl_FUNC_SINH.
9696
9697 2011-10-08  Bruno Haible  <bruno@clisp.org>
9698
9699         Tests for module 'atan2f'.
9700         * modules/atan2f-tests: New file.
9701         * tests/test-atan2f.c: New file.
9702
9703         New module 'atan2f'.
9704         * lib/math.in.h (atan2f): New declaration.
9705         * lib/atan2f.c: New file.
9706         * m4/atan2f.m4: New file.
9707         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9709         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9710         * modules/atan2f: New file.
9711         * tests/test-math-c++.cc: Check the declaration of atan2f.
9712         * doc/posix-functions/atan2f.texi: Mention the new module.
9713
9714         atan2: Use a .m4 file.
9715         * m4/atan2.m4: New file.
9716         * modules/atan2 (Files): Add it.
9717         (configure.ac): Just invoke gl_FUNC_ATAN2.
9718
9719 2011-10-08  Bruno Haible  <bruno@clisp.org>
9720
9721         Tests for module 'atanf'.
9722         * modules/atanf-tests: New file.
9723         * tests/test-atanf.c: New file.
9724
9725         New module 'atanf'.
9726         * lib/math.in.h (atanf): New declaration.
9727         * lib/atanf.c: New file.
9728         * m4/atanf.m4: New file.
9729         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9731         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9732         * modules/atanf: New file.
9733         * tests/test-math-c++.cc: Check the declaration of atanf.
9734         * doc/posix-functions/atanf.texi: Mention the new module.
9735
9736         atan: Use a .m4 file.
9737         * m4/atan.m4: New file.
9738         * modules/atan (Files): Add it.
9739         (configure.ac): Just invoke gl_FUNC_ATAN.
9740
9741 2011-10-08  Bruno Haible  <bruno@clisp.org>
9742
9743         Tests for module 'acosf'.
9744         * modules/acosf-tests: New file.
9745         * tests/test-acosf.c: New file.
9746
9747         New module 'acosf'.
9748         * lib/math.in.h (acosf): New declaration.
9749         * lib/acosf.c: New file.
9750         * m4/acosf.m4: New file.
9751         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9753         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9754         * modules/acosf: New file.
9755         * tests/test-math-c++.cc: Check the declaration of acosf.
9756         * doc/posix-functions/acosf.texi: Mention the new module.
9757
9758         acos: Use a .m4 file.
9759         * m4/acos.m4: New file.
9760         * modules/acos (Files): Add it.
9761         (configure.ac): Just invoke gl_FUNC_ACOS.
9762
9763 2011-10-08  Bruno Haible  <bruno@clisp.org>
9764
9765         Tests for module 'asinf'.
9766         * modules/asinf-tests: New file.
9767         * tests/test-asinf.c: New file.
9768
9769         New module 'asinf'.
9770         * lib/math.in.h (asinf): New declaration.
9771         * lib/asinf.c: New file.
9772         * m4/asinf.m4: New file.
9773         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9775         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9776         * modules/asinf: New file.
9777         * tests/test-math-c++.cc: Check the declaration of asinf.
9778         * doc/posix-functions/asinf.texi: Mention the new module.
9779
9780         asin: Use a .m4 file.
9781         * m4/asin.m4: New file.
9782         * modules/asin (Files): Add it.
9783         (configure.ac): Just invoke gl_FUNC_ASIN.
9784
9785 2011-10-08  Bruno Haible  <bruno@clisp.org>
9786
9787         Tests for module 'tanf'.
9788         * modules/tanf-tests: New file.
9789         * tests/test-tanf.c: New file.
9790
9791         New module 'tanf'.
9792         * lib/math.in.h (tanf): New declaration.
9793         * lib/tanf.c: New file.
9794         * m4/tanf.m4: New file.
9795         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9797         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9798         * modules/tanf: New file.
9799         * tests/test-math-c++.cc: Check the declaration of tanf.
9800         * doc/posix-functions/tanf.texi: Mention the new module.
9801
9802         tan: Use a .m4 file.
9803         * m4/tan.m4: New file.
9804         * modules/tan (Files): Add it.
9805         (configure.ac): Just invoke gl_FUNC_TAN.
9806
9807 2011-10-08  Bruno Haible  <bruno@clisp.org>
9808
9809         Tests for module 'cosf'.
9810         * modules/cosf-tests: New file.
9811         * tests/test-cosf.c: New file.
9812
9813         New module 'cosf'.
9814         * lib/math.in.h (cosf): New declaration.
9815         * lib/cosf.c: New file.
9816         * m4/cosf.m4: New file.
9817         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9819         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9820         * modules/cosf: New file.
9821         * tests/test-math-c++.cc: Check the declaration of cosf.
9822         * doc/posix-functions/cosf.texi: Mention the new module.
9823
9824         cos: Use a .m4 file.
9825         * m4/cos.m4: New file.
9826         * modules/cos (Files): Add it.
9827         (configure.ac): Just invoke gl_FUNC_COS.
9828
9829 2011-10-08  Bruno Haible  <bruno@clisp.org>
9830
9831         Tests for module 'sinf'.
9832         * modules/sinf-tests: New file.
9833         * tests/test-sinf.c: New file.
9834
9835         New module 'sinf'.
9836         * lib/math.in.h (sinf): New declaration.
9837         * lib/sinf.c: New file.
9838         * m4/sinf.m4: New file.
9839         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9841         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9842         * modules/sinf: New file.
9843         * tests/test-math-c++.cc: Check the declaration of sinf.
9844         * doc/posix-functions/sinf.texi: Mention the new module.
9845
9846         sin: Use a .m4 file.
9847         * m4/sin.m4: New file.
9848         * modules/sin (Files): Add it.
9849         (configure.ac): Just invoke gl_FUNC_SIN.
9850
9851 2011-10-08  Bruno Haible  <bruno@clisp.org>
9852
9853         Tests for module 'powf'.
9854         * modules/powf-tests: New file.
9855         * tests/test-powf.c: New file.
9856
9857         New module 'powf'.
9858         * lib/math.in.h (powf): New declaration.
9859         * lib/powf.c: New file.
9860         * m4/powf.m4: New file.
9861         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9863         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9864         * modules/powf: New file.
9865         * tests/test-math-c++.cc: Check the declaration of powf.
9866         * doc/posix-functions/powf.texi: Mention the new module.
9867
9868         pow: Use a .m4 file.
9869         * m4/pow.m4: New file.
9870         * modules/pow (Files): Add it.
9871         (configure.ac): Just invoke gl_FUNC_POW.
9872
9873 2011-10-08  Bruno Haible  <bruno@clisp.org>
9874
9875         Tests for module 'log10f'.
9876         * modules/log10f-tests: New file.
9877         * tests/test-log10f.c: New file.
9878
9879         New module 'log10f'.
9880         * lib/math.in.h (log10f): New declaration.
9881         * lib/log10f.c: New file.
9882         * m4/log10f.m4: New file.
9883         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9885         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9886         * modules/log10f: New file.
9887         * tests/test-math-c++.cc: Check the declaration of log10f.
9888         * doc/posix-functions/log10f.texi: Mention the new module.
9889
9890         log10: Use a .m4 file.
9891         * m4/log10.m4: New file.
9892         * modules/log10 (Files): Add it.
9893         (configure.ac): Just invoke gl_FUNC_LOG10.
9894
9895 2011-10-08  Bruno Haible  <bruno@clisp.org>
9896
9897         Tests for module 'logf'.
9898         * modules/logf-tests: New file.
9899         * tests/test-logf.c: New file.
9900
9901         New module 'logf'.
9902         * lib/math.in.h (logf): New declaration.
9903         * lib/logf.c: New file.
9904         * m4/logf.m4: New file.
9905         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9907         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9908         * modules/logf: New file.
9909         * tests/test-math-c++.cc: Check the declaration of logf.
9910         * doc/posix-functions/logf.texi: Mention the new module.
9911
9912         log: Use a .m4 file.
9913         * m4/log.m4: New file.
9914         * modules/log (Files): Add it.
9915         (configure.ac): Just invoke gl_FUNC_LOG.
9916
9917 2011-10-08  Bruno Haible  <bruno@clisp.org>
9918
9919         Tests for module 'expf'.
9920         * modules/expf-tests: New file.
9921         * tests/test-expf.c: New file.
9922
9923         New module 'expf'.
9924         * lib/math.in.h (expf): New declaration.
9925         * lib/expf.c: New file.
9926         * m4/expf.m4: New file.
9927         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9929         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9930         * modules/expf: New file.
9931         * tests/test-math-c++.cc: Check the declaration of expf.
9932         * doc/posix-functions/expf.texi: Mention the new module.
9933
9934         exp: Use a .m4 file.
9935         * m4/exp.m4: New file.
9936         * modules/exp (Files): Add it.
9937         (configure.ac): Just invoke gl_FUNC_EXP.
9938
9939 2011-10-08  Bruno Haible  <bruno@clisp.org>
9940
9941         Tests for module 'sqrtf'.
9942         * modules/sqrtf-tests: New file.
9943         * tests/test-sqrtf.c: New file.
9944
9945         New module 'sqrtf'.
9946         * lib/math.in.h (sqrtf): New declaration.
9947         * lib/sqrtf.c: New file.
9948         * m4/sqrtf.m4: New file.
9949         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9951         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9952         * modules/sqrtf: New file.
9953         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9954         * doc/posix-functions/sqrtf.texi: Mention the new module.
9955
9956 2011-10-08  Bruno Haible  <bruno@clisp.org>
9957
9958         Tests: Avoid link failures w.r.t. libintl.
9959         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9960         $(LIBINTL).
9961         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9962         $(LIBINTL).
9963         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9964         against $(LIBINTL).
9965         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9966         $(LIBINTL).
9967         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9968         $(LIBINTL).
9969         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9970
9971 2011-10-08  Bruno Haible  <bruno@clisp.org>
9972
9973         pow tests: Defeat compiler optimizations.
9974         * tests/test-pow.c (main): Assign arguments to x and y before use.
9975
9976 2011-10-08  Bruno Haible  <bruno@clisp.org>
9977
9978         gnulib-tool: Improve last commit.
9979         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9980         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9981         ignore dependencies that are not among the modules list.
9982
9983 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9984
9985         gnulib-tool: don't follow dependencies to avoided modules
9986         This fixes a bug that is related to the previous one.
9987         * gnulib-tool (func_modules_transitive_closure)
9988         (func_emit_autoconf_snippets):
9989         Check whether a dependency is acceptable before using it.
9990         (--extract-dependencies): Report an error if --avoid is also used,
9991         since this combination of options is not yet supported.
9992
9993         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9994         Problem reported by Peter Dyballa in
9995         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9996         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9997         when echoing "$condition".
9998
9999 2011-10-07  Bruno Haible  <bruno@clisp.org>
10000
10001         Fix documentation about math functions on MacOS X.
10002         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10003         MacOS X 10.5.
10004         * doc/posix-functions/fdim.texi: Likewise.
10005         * doc/posix-functions/feclearexcept.texi: Likewise.
10006         * doc/posix-functions/fegetenv.texi: Likewise.
10007         * doc/posix-functions/fegetround.texi: Likewise.
10008         * doc/posix-functions/feholdexcept.texi: Likewise.
10009         * doc/posix-functions/feraiseexcept.texi: Likewise.
10010         * doc/posix-functions/fesetenv.texi: Likewise.
10011         * doc/posix-functions/fesetround.texi: Likewise.
10012         * doc/posix-functions/fetestexcept.texi: Likewise.
10013         * doc/posix-functions/feupdateenv.texi: Likewise.
10014         * doc/posix-functions/fmax.texi: Likewise.
10015         * doc/posix-functions/fmin.texi: Likewise.
10016         * doc/posix-functions/log2.texi: Likewise.
10017         * doc/posix-functions/modff.texi: Likewise.
10018         * doc/posix-functions/nan.texi: Likewise.
10019         * doc/posix-functions/nanf.texi: Likewise.
10020         * doc/posix-functions/nextafterf.texi: Likewise.
10021         * doc/posix-functions/remquo.texi: Likewise.
10022
10023 2011-10-07  Bruno Haible  <bruno@clisp.org>
10024
10025         modff: Drop assumption about library that defines modff.
10026         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10027         AC_CHECK_FUNCS.
10028         * modules/modff (Files): Add m4/mathfunc.m4.
10029
10030 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10031
10032         raise tests: Avoid a GCC warning.
10033         * tests/test-raise.c (handler): Use _Noreturn.
10034
10035 2011-10-07  Bruno Haible  <bruno@clisp.org>
10036
10037         Tests for module 'ldexpf'.
10038         * modules/ldexpf-tests: New file.
10039         * tests/test-ldexpf.c: New file.
10040
10041         New module 'ldexpf'.
10042         * lib/math.in.h (ldexpf): New declaration.
10043         * lib/ldexpf.c: New file.
10044         * m4/ldexpf.m4: New file.
10045         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10047         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10048         * modules/ldexpf: New file.
10049         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10050         * doc/posix-functions/ldexpf.texi: Mention the new module.
10051
10052 2011-10-06  Bruno Haible  <bruno@clisp.org>
10053
10054         frexpf: Work around problems on IRIX and mingw.
10055         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10057         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10058         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10059         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10060         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10061         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10062
10063 2011-10-06  Bruno Haible  <bruno@clisp.org>
10064
10065         fabsf: Drop assumption about library that defines fabsf.
10066         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10067         AC_CHECK_FUNCS.
10068         * modules/fabsf (Files): Add m4/mathfunc.m4.
10069
10070 2011-10-06  Bruno Haible  <bruno@clisp.org>
10071
10072         frexpf: Drop assumption about library that defines frexpf.
10073         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10074         'int *', 'float *', 'long double *', 'float', 'long double'.
10075         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10076         AC_CHECK_FUNCS.
10077         * modules/frexpf (Files): Add m4/mathfunc.m4.
10078
10079         Tests for module 'frexpf'.
10080         * modules/frexpf-tests: New file.
10081         * tests/test-frexpf.c: New file.
10082
10083         New module 'frexpf'.
10084         * lib/math.in.h (frexpf): New declaration.
10085         * lib/frexpf.c: New file.
10086         * m4/frexpf.m4: New file.
10087         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10089         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10090         * modules/frexpf: New file.
10091         * tests/test-math-c++.cc: Check the declaration of frexpf.
10092         * doc/posix-functions/frexpf.texi: Mention the new module.
10093
10094 2011-10-06  Bruno Haible  <bruno@clisp.org>
10095
10096         math: Sort function declarations of math.in.h.
10097         * lib/math.in.h (frexp, logb): Move declarations.
10098
10099 2011-10-05  Bruno Haible  <bruno@clisp.org>
10100
10101         Tests for module 'modff'.
10102         * modules/modff-tests: New file.
10103         * tests/test-modff.c: New file.
10104
10105         New module 'modff'.
10106         * lib/math.in.h (modff): New declaration.
10107         * lib/modff.c: New file.
10108         * m4/modff.m4: New file.
10109         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10111         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10112         * modules/modff: New file.
10113         * tests/test-math-c++.cc: Check the declaration of modff.
10114         * doc/posix-functions/modff.texi: Mention the new module.
10115
10116         modf tests: Make test sharper.
10117         * tests/test-modf.c (main): Strengthen upper bound.
10118
10119         modf: Use a .m4 file.
10120         * m4/modf.m4: New file.
10121         * modules/modf (Files): Add it.
10122         (configure.ac): Just invoke gl_FUNC_MODF.
10123
10124 2011-10-05  Bruno Haible  <bruno@clisp.org>
10125
10126         Tests for module 'fmodf'.
10127         * modules/fmodf-tests: New file.
10128         * tests/test-fmodf.c: New file.
10129
10130         New module 'fmodf'.
10131         * lib/math.in.h (fmodf): New declaration.
10132         * lib/fmodf.c: New file.
10133         * m4/fmodf.m4: New file.
10134         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10136         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10137         * modules/fmodf: New file.
10138         * tests/test-math-c++.cc: Check the declaration of fmodf.
10139         * doc/posix-functions/fmodf.texi: Mention the new module.
10140
10141         fmod: Use a .m4 file.
10142         * m4/fmod.m4: New file.
10143         * modules/fmod (Files): Add it.
10144         (configure.ac): Just invoke gl_FUNC_FMOD.
10145
10146 2011-10-05  Bruno Haible  <bruno@clisp.org>
10147
10148         Tests for module 'fabsf'.
10149         * modules/fabsf-tests: New file.
10150         * tests/test-fabsf.c: New file.
10151
10152         New module 'fabsf'.
10153         * lib/math.in.h (fabsf): New declaration.
10154         * lib/fabsf.c: New file.
10155         * m4/fabsf.m4: New file.
10156         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10158         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10159         * modules/fabsf: New file.
10160         * tests/test-math-c++.cc: Check the declaration of fabsf.
10161         * doc/posix-functions/fabsf.texi: Mention the new module.
10162
10163         fabs: Use a .m4 file.
10164         * m4/fabs.m4: New file.
10165         * modules/fabs (Files): Add it.
10166         (configure.ac): Just invoke gl_FUNC_FABS.
10167
10168 2011-10-05  Jim Meyering  <meyering@redhat.com>
10169
10170         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10171         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10172         ls -lL regression introduced in coreutils-8.12, it does so at the
10173         cost of an additional stat call in the common case.  Besides, now
10174         that the kernel change that prompted commit 95f7c57f has been reverted
10175         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10176         we have no use for commit 95f7c57f, "file-has-acl: use
10177         acl_extended_file_nofollow if available".
10178
10179 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10180
10181         file-has-acl: revert unintended change in behavior of ls -L
10182         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10183         derived from...
10184         (file_has_acl): ...code here.  Call it.
10185         This problem was introduced with 2011-07-22 commit 95f7c57f,
10186         "file-has-acl: use acl_extended_file_nofollow if available".
10187         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10188
10189 2011-10-03  Bruno Haible  <bruno@clisp.org>
10190
10191         poll: Avoid link errors on MSVC.
10192         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10193         * modules/poll (Depends-on): Add sockets.
10194         (Link): New section.
10195         * NEWS: Mention the change.
10196         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10197         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10198         $(LIB_POLL) instead of $(LIBSOCKET).
10199
10200 2011-10-03  Bruno Haible  <bruno@clisp.org>
10201
10202         sys_select tests: Fix link error on MSVC 9.
10203         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10204         with $(LIB_SELECT) instead of $(LIBSOCKET).
10205
10206 2011-10-03  Bruno Haible  <bruno@clisp.org>
10207
10208         sys_select: Fix compilation error on mingw.
10209         * lib/sys_select.in.h: On native Windows, include <io.h>.
10210
10211 2011-10-03  Bruno Haible  <bruno@clisp.org>
10212
10213         wmemset: Support for MSVC.
10214         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10215         whether wmemset() exists.
10216
10217 2011-10-03  Bruno Haible  <bruno@clisp.org>
10218
10219         wmemmove: Support for MSVC.
10220         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10221         whether wmemmove() exists.
10222
10223 2011-10-03  Bruno Haible  <bruno@clisp.org>
10224
10225         wmemcpy: Support for MSVC.
10226         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10227         whether wmemcpy() exists.
10228
10229 2011-10-03  Bruno Haible  <bruno@clisp.org>
10230
10231         wmemcmp: Support for MSVC.
10232         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10233         whether wmemcmp() exists.
10234
10235 2011-10-03  Bruno Haible  <bruno@clisp.org>
10236
10237         wmemchr: Support for MSVC.
10238         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10239         whether wmemchr() exists.
10240
10241 2011-10-03  Bruno Haible  <bruno@clisp.org>
10242
10243         glthread/*, strsignal: Support for MSVC.
10244         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10245         including <winsock.h> on MSVC 9.
10246         * lib/glthread/lock.h: Likewise.
10247         * lib/glthread/thread.h: Likewise.
10248         * lib/glthread/tls.h: Likewise.
10249         * lib/glthread/yield.h: Likewise.
10250         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10251         if HAVE_UNISTD_H is false.
10252         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10253
10254 2011-10-03  Bruno Haible  <bruno@clisp.org>
10255
10256         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10257         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10258         Set to 100000.
10259
10260 2011-10-03  Bruno Haible  <bruno@clisp.org>
10261
10262         acl: Fix specification.
10263         * lib/file-has-acl.c (file_has_acl): Fix specification.
10264
10265 2011-10-03  Bruno Haible  <bruno@clisp.org>
10266
10267         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10268         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10269         (compute_curr_prefix, shared_library_fullname,
10270         find_shared_library_fullname, get_shared_library_fullname, relocate):
10271         Use it together with PIC && INSTALLDIR.
10272         Reported by <jojelino@gmail.com>
10273         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10274
10275 2011-10-01  Jim Meyering  <meyering@redhat.com>
10276
10277         maint.mk: adjust a release-related rule not to require use of gzip
10278         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10279         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10280         projects that build only .tar.xz files.  Also fix an erroneous test.
10281
10282         test-linkat: don't leave behind a temporary file
10283         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10284         Otherwise, coreutils' "make distcheck" would fail with this:
10285           Only in /c/cu/tests/torture/coreutils/test/\
10286             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10287           make[2]: *** [my-distcheck] Error 1
10288
10289         float, math: add omitted file
10290         * lib/itold.c: Add file, required for yesterday's float change.
10291
10292 2011-10-01  Bruno Haible  <bruno@clisp.org>
10293
10294         isinf: Fix for OpenBSD/x86.
10295         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10296         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10297         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10298
10299 2011-10-01  Bruno Haible  <bruno@clisp.org>
10300
10301         isfinite: Fix syntax error in configure test.
10302         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10303
10304         isfinite: Fix typo.
10305         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10306         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10307
10308 2011-10-01  Bruno Haible  <bruno@clisp.org>
10309
10310         nonblocking tests: Fix test failure on Linux/IA-64.
10311         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10312         Set to 270000.
10313
10314 2011-10-01  Bruno Haible  <bruno@clisp.org>
10315
10316         mkfifoat tests: Fix a test failure on mingw.
10317         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10318         with error ENOSYS.
10319
10320 2011-09-30  Bruno Haible  <bruno@clisp.org>
10321
10322         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10323         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10324         'long double'. Set REPLACE_ITOLD.
10325         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10326         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10327         * lib/itold.c: New file.
10328         * modules/float (Files): Add lib/itold.c.
10329         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10330         (Makefile.am): Substitute REPLACE_ITOLD.
10331         * modules/math (Depends-on): Add float.
10332         (Makefile.am): Substitute REPLACE_ITOLD.
10333         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10334         * doc/posix-headers/math.texi: Likewise.
10335         * doc/posix-functions/logl.texi: Likewise.
10336
10337 2011-09-30  Bruno Haible  <bruno@clisp.org>
10338
10339         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10340         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10341         Set to 140000.
10342
10343 2011-09-30  Bruno Haible  <bruno@clisp.org>
10344
10345         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10346         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10347         invocation, say "right after AC_PROG_CC_STDC", not "right after
10348         AC_PROG_CC".
10349         Reported by Gary V. Vaughan <gary@gnu.org>.
10350
10351 2011-09-30  Bruno Haible  <bruno@clisp.org>
10352
10353         Centralize C99 requirement.
10354         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10355         * modules/stdarg (configure.ac-early): Invoke it instead of
10356         AC_PROG_CC_STDC.
10357         Reported by Gary V. Vaughan and Paul Eggert.
10358
10359 2011-09-29  Bruno Haible  <bruno@clisp.org>
10360
10361         float: Fix LDBL_MAX value on Linux/PowerPC.
10362         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10363         on Linux/PowerPC.
10364         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10365         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10366         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10367         platform.
10368         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10369
10370 2011-09-29  Bruno Haible  <bruno@clisp.org>
10371
10372         doc: Improve doc about gl_EARLY.
10373         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10374         AC_PROG_CC_STDC invocation.
10375         Reported by Gary V. Vaughan <gary@gnu.org>.
10376
10377 2011-09-28  Bruno Haible  <bruno@clisp.org>
10378
10379         fgetc, fputc, fread, fwrite tests: Fix link error.
10380         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10381         on non-MSVC platforms.
10382         * tests/test-fputc.c (main): Likewise.
10383         * tests/test-fread.c (main): Likewise.
10384         * tests/test-fwrite.c (main): Likewise.
10385         Reported by Jim Meyering.
10386
10387 2011-09-27  Bruno Haible  <bruno@clisp.org>
10388
10389         fputc, fwrite tests: Avoid test failure on MSVC.
10390         * tests/test-fgetc.c: Include msvc-inval.h.
10391         (main): Invoke gl_msvc_inval_ensure_handler.
10392         * tests/test-fputc.c: Include msvc-inval.h.
10393         (main): Invoke gl_msvc_inval_ensure_handler.
10394         * tests/test-fread.c: Include msvc-inval.h.
10395         (main): Invoke gl_msvc_inval_ensure_handler.
10396         * tests/test-fwrite.c: Include msvc-inval.h.
10397         (main): Invoke gl_msvc_inval_ensure_handler.
10398         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10399         * modules/fputc-tests (Depends-on): Likewise.
10400         * modules/fread-tests (Depends-on): Likewise.
10401         * modules/fwrite-tests (Depends-on): Likewise.
10402
10403 2011-09-27  Bruno Haible  <bruno@clisp.org>
10404
10405         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10406         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10407         (raise): Remove older, duplicated declaration.
10408         (_gl_raise_SIGPIPE): New declaration.
10409         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10410         (rpl_raise): Remove function.
10411         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10412         a gnulib-defined SIGPIPE here.
10413         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10414         'sigprocmask' has detected missing signal-blocking and the module
10415         'sigpipe' is enabled.
10416         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10417
10418 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10419
10420         base64-tests: avoid memory leak
10421         * tests/test-base64.c (main): Plug memory leak.
10422
10423         base32: new module
10424         * modules/base32: New module.
10425         * lib/base32.c: New file.
10426         * lib/base32.h: Likewise.
10427         * m4/base32.m4: Likewise.
10428         * modules/base32-tests: New test.
10429         * tests/test-base32.c: Likewise.
10430         * MODULES.html.sh (Misc): Mention it.
10431
10432 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10433
10434         gnulib: use more-standard license notice wording
10435         * gnulib-tool (func_emit_copyright_notice): When emitting a
10436         license notice into a file, use the standard wording as suggested
10437         by the current information for GNU maintainers, except say "file"
10438         rather than "program".  The new wording gives a license version
10439         number, which addresses an issue raised by Glenn Morris in
10440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10441         * m4/onceonly.m4: Use that same wording here, too.
10442
10443         dup2: minor simplification
10444         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10445         as lib/dup2.c no longer uses 'inline'.
10446
10447 2011-09-25  Bruno Haible  <bruno@clisp.org>
10448
10449         strings: Fix compilation error on MSVC.
10450         * lib/strings.in.h: Include <stddef.h> for size_t.
10451
10452 2011-09-25  Bruno Haible  <bruno@clisp.org>
10453
10454         fflush et al.: Document limitation on MSVC.
10455         * doc/posix-functions/fflush.texi: Document possible crash in handling
10456         mode other than DEFAULT_HANDLING.
10457         * doc/posix-functions/fgetc.texi: Likewise.
10458         * doc/posix-functions/fputc.texi: Likewise.
10459         * doc/posix-functions/fread.texi: Likewise.
10460         * doc/posix-functions/fwrite.texi: Likewise.
10461
10462 2011-09-25  Bruno Haible  <bruno@clisp.org>
10463
10464         msvc-inval: Allow three invalid parameter handling modes.
10465         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10466         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10467         macros.
10468         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10469         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10470         SANE_LIBRARY_HANDLING as a no-op.
10471         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10472         <stdlib.h>.
10473         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10474
10475 2011-09-25  Bruno Haible  <bruno@clisp.org>
10476
10477         msvc-inval: Make handler multithread-safe.
10478         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10479         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10480         declarations.
10481         (gl_msvc_inval_current): New declaration.
10482         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10483         Operate on the structure returned by gl_msvc_inval_current().
10484         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10485         Remove varaiables.
10486         (tls_index, tls_initialized): New variables.
10487         (not_per_thread): New variable.
10488         (gl_msvc_inval_current): New function.
10489         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10490         returned by gl_msvc_inval_current().
10491
10492 2011-09-25  Bruno Haible  <bruno@clisp.org>
10493
10494         msvc-inval: Install handler globally.
10495         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10496         !_MSC_VER.
10497         (gl_msvc_invalid_parameter_handler): Remove declaration.
10498         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10499         declarations.
10500         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10501         Install the handler globally, don't uninstall it.
10502         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10503         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10504         currently valid, call RaiseException instead.
10505         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10506         for !_MSC_VER.
10507
10508 2011-09-25  Bruno Haible  <bruno@clisp.org>
10509
10510         strerror_r-posix: Fix for MSVC 9.
10511         * lib/strerror_r.c (local_snprintf): New function.
10512         (snprintf): Define to local_snprintf, not to _snprintf.
10513
10514 2011-09-25  Bruno Haible  <bruno@clisp.org>
10515
10516         ftruncate: Support for MSVC 9.
10517         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10518         (chsize_nothrow): New function.
10519         (chsize): Redefine as a macro.
10520         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10521         * modules/ftruncate (Depends-on): Add msvc-inval.
10522
10523 2011-09-25  Bruno Haible  <bruno@clisp.org>
10524
10525         New module 'fstat'.
10526         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10527         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10528         * lib/fchdir.c (rpl_fstat): Remove function.
10529         * m4/fstat.m4: New file.
10530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10532         declared.
10533         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10534         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10535         * modules/fstat: New file.
10536         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10537         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10538         is set.
10539         * doc/posix-functions/fstat.texi: Mention the new module and the
10540         problem on MSVC.
10541         * NEWS: Mention the change.
10542         * modules/acl (Depends-on): Add fstat.
10543         * modules/chdir-safer (Depends-on): Likewise.
10544         * modules/chown (Depends-on): Likewise.
10545         * modules/copy-file (Depends-on): Likewise.
10546         * modules/fchdir (Depends-on): Likewise.
10547         * modules/fdopendir (Depends-on): Likewise.
10548         * modules/fopen (Depends-on): Likewise.
10549         * modules/fts (Depends-on): Likewise.
10550         * modules/getcwd (Depends-on): Likewise.
10551         * modules/isapipe (Depends-on): Likewise.
10552         * modules/linkat (Depends-on): Likewise.
10553         * modules/lseek (Depends-on): Likewise.
10554         * modules/mkdir-p (Depends-on): Likewise.
10555         * modules/open (Depends-on): Likewise.
10556         * modules/openat (Depends-on): Likewise.
10557         * modules/read-file (Depends-on): Likewise.
10558         * modules/renameat (Depends-on): Likewise.
10559         * modules/utimens (Depends-on): Likewise.
10560
10561 2011-09-25  Bruno Haible  <bruno@clisp.org>
10562
10563         linkat: Fix compilation on MSVC 9.
10564         * lib/linkat.c: Don't include <stdint.h>.
10565
10566 2011-09-25  Bruno Haible  <bruno@clisp.org>
10567
10568         fclose: Support for MSVC 9.
10569         * lib/fclose.c: Include msvc-inval.h.
10570         (fclose_nothrow): New function.
10571         (rpl_fclose): Use it.
10572         * modules/fclose (Depends-on): Add msvc-inval.
10573         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10574
10575 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         dup2: minor simplifications
10578         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10579         that it's a performance win.
10580         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10581         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10582
10583 2011-09-24  Jim Meyering  <meyering@redhat.com>
10584
10585         test-futimens: avoid a warning from gcc -Wshadow
10586         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10587         to avoid a shadowing warning.
10588
10589 2011-09-24  Bruno Haible  <bruno@clisp.org>
10590
10591         fdopen: Support for MSVC 9.
10592         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10593         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10594         * lib/fdopen.c: Include msvc-inval.h.
10595         (fdopen_nothrow): New function.
10596         (rpl_fdopen): Use it.
10597         * modules/fdopen (Depends-on): Add msvc-inval.
10598         * modules/fclose-tests (Depends-on): Add fdopen.
10599         * modules/fflush-tests (Depends-on): Likewise.
10600         * modules/fgetc-tests (Depends-on): Likewise.
10601         * modules/fputc-tests (Depends-on): Likewise.
10602         * modules/fread-tests (Depends-on): Likewise.
10603         * modules/freopen-tests (Depends-on): Likewise.
10604         * modules/fseeko-tests (Depends-on): Likewise.
10605         * modules/ftello-tests (Depends-on): Likewise.
10606         * modules/fwrite-tests  (Depends-on): Likewise.
10607         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10608
10609 2011-09-24  Bruno Haible  <bruno@clisp.org>
10610
10611         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10612         * modules/fgetc-tests (Depends-on): Add unistd.
10613         * modules/fputc-tests (Depends-on): Likewise.
10614         * modules/fread-tests (Depends-on): Likewise.
10615         * modules/fwrite-tests (Depends-on): Likewise.
10616
10617 2011-09-24  Bruno Haible  <bruno@clisp.org>
10618
10619         dup: Simplify autoconf test.
10620         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10621         on gl_MSVC_INVAL's result.
10622
10623 2011-09-24  Bruno Haible  <bruno@clisp.org>
10624
10625         Tests for function fwrite().
10626         * modules/fwrite-tests: New file.
10627         * tests/test-fwrite.c: New file.
10628         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10629
10630         Tests for function fread().
10631         * modules/fread-tests: New file.
10632         * tests/test-fread.c: New file.
10633         * modules/stdio-tests (Depends-on): Add fread-tests.
10634
10635         Activate fputc tests.
10636         * modules/stdio-tests (Depends-on): Add fputc-tests.
10637
10638         Enhance fgetc, fputc tests.
10639         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10640         * tests/test-fputc.c (main): Likewise.
10641
10642 2011-09-24  Bruno Haible  <bruno@clisp.org>
10643
10644         write: Support for MSVC 9.
10645         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10646         is not 1.
10647         * lib/write.c (write_nothrow): New function.
10648         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10649         not 1. Use write_nothrow.
10650         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10651         invalid parameter handler.
10652         (gl_PREREQ_WRITE): New macro.
10653         * modules/write (Depends-on): Add msvc-inval.
10654         (configure.ac): Invoke gl_PREREQ_WRITE.
10655         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10656
10657 2011-09-24  Bruno Haible  <bruno@clisp.org>
10658
10659         read: Fix last commit.
10660         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10661
10662 2011-09-24  Bruno Haible  <bruno@clisp.org>
10663
10664         dup2: Fix last commit.
10665         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10666         (rpl_dup2): Disable fcntl workaround on native Windows.
10667
10668         sigprocmask: Make code safer.
10669         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10670         section that changes macro definitions for this compilation unit.
10671
10672 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10673
10674         dup2: clarify by coalescing Windows-specific material
10675         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10676         "msvc-nothrow.h"' to the Windows-specific section, so that the
10677         Emacs source need not contain these include files.
10678         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10679         Windows-specific fixes into this function rather than just the
10680         nothrow fix, as this shortens and clarifies the code.  Always
10681         define as a function, as that's a bit cleaner than having it be
10682         sometimes a function and sometimes a macro.
10683         (rpl_dup2): Move the Windows-specific stuff out of here and into
10684         ms_windows_dup2.  Don't protect the Haiku-related fix with
10685         "#if !defined __linux__", as the same code also works around
10686         a Linux kernel bug, and it doesn't add any system calls on any
10687         platform.  Add comment about FreeBSD 6.1.
10688
10689         sigprocmask: move #include directive
10690         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10691         Windows-specific section, so that the Emacs source need not
10692         contain msvc-inval.h.
10693
10694 2011-09-23  Bruno Haible  <bruno@clisp.org>
10695
10696         read: Support for MSVC 9.
10697         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10698         is not 1.
10699         * lib/read.c (read_nothrow): New function.
10700         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10701         read_nothrow.
10702         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10703         invalid parameter handler.
10704         (gl_PREREQ_READ): New macro.
10705         * modules/read (Depends-on): Add msvc-inval.
10706         (configure.ac): Invoke gl_PREREQ_READ.
10707         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10708
10709 2011-09-23  Bruno Haible  <bruno@clisp.org>
10710
10711         close: Support for MSVC 9.
10712         * lib/close.c: Include <errno.h>, msvc-inval.h.
10713         (close_nothrow): New function.
10714         (rpl_close): Use it.
10715         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10716         invalid parameter handler.
10717         * modules/close (Depends-on): Add msvc-inval.
10718         * modules/dup2-tests (Depends-on): Add close.
10719         * modules/dup3-tests (Depends-on): Likewise.
10720         * modules/fcntl-tests (Depends-on): Likewise.
10721         * modules/spawn-pipe-tests (Depends-on): Likewise.
10722         * modules/unistd-safer-tests (Depends-on): Likewise.
10723         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10724
10725 2011-09-23  Bruno Haible  <bruno@clisp.org>
10726
10727         New module 'dup'.
10728         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10729         Allow replacement.
10730         * lib/dup.c: New file.
10731         * lib/fchdir.c (rpl_dup): Remove function.
10732         * m4/dup.m4: New file.
10733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10734         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10735         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10736         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10737         * modules/dup: New file.
10738         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10739         'dup' module is in use.
10740         * modules/fdopendir (Depends-on): Add dup.
10741         * modules/fdutimensat-tests (Depends-on): Likewise.
10742         * modules/fts (Depends-on): Likewise.
10743         * modules/futimens-tests (Depends-on): Likewise.
10744         * modules/posix_spawnp-tests (Depends-on): Likewise.
10745         * modules/unistd-safer-tests (Depends-on): Likewise.
10746         * modules/utimens-tests (Depends-on): Likewise.
10747         * doc/posix-functions/dup.texi: Mention the new module and the problem
10748         on MSVC.
10749
10750 2011-09-23  Bruno Haible  <bruno@clisp.org>
10751
10752         getdtablesize: Support for MSVC 9.
10753         * lib/getdtablesize.c: Include msvc-inval.h.
10754         (_setmaxstdio_nothrow): New function.
10755         (_setmaxstdio): Redefine it.
10756         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10757         * modules/getdtablesize (Depends-on): Add msvc-inval.
10758         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10759
10760 2011-09-23  Bruno Haible  <bruno@clisp.org>
10761
10762         signal-h: Rename from signal.
10763         * modules/signal-h: Renamed from modules/signal.
10764         * modules/pthread_sigmask (Depends-on): Update.
10765         * modules/raise (Depends-on): Likewise.
10766         * modules/sigaction (Depends-on): Likewise.
10767         * modules/sigpipe (Depends-on): Likewise.
10768         * modules/sigprocmask (Depends-on): Likewise.
10769         * modules/sys_select (Depends-on): Likewise.
10770         * modules/signal-h-tests: Renamed from modules/signal-tests.
10771         (Files, Depends-on, Makefile.am): Update.
10772         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10773         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10774         (Files, Makefile.am): Update.
10775         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10776         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10777         * modules/signal: New placeholder file.
10778         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10779         * doc/posix-headers/signal.texi: Update.
10780         * NEWS: Mention the change.
10781
10782 2011-09-23  Bruno Haible  <bruno@clisp.org>
10783
10784         sigprocmask: Avoid crashes through signal() on MSVC 9.
10785         * lib/sigprocmask.c: Include msvc-inval.h.
10786         (signal_nothrow): New function.
10787         (signal): Redefine it.
10788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10789         * modules/sigprocmask (Depends-on): Add msvc-inval.
10790         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10791
10792 2011-09-23  Bruno Haible  <bruno@clisp.org>
10793
10794         Tests for module 'raise'.
10795         * modules/raise-tests: New file.
10796         * tests/test-raise.c: New file.
10797
10798         raise: Support for MSVC.
10799         * lib/signal.in.h (raise): New declaration.
10800         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10801         for native Windows platforms.
10802         * m4/raise.m4: New file.
10803         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10804         HAVE_RAISE, REPLACE_RAISE.
10805         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10806         REPLACE_RAISE.
10807         * modules/raise (Status, Notice): Remove fields.
10808         (Files): Add m4/raise.m4.
10809         (Depends-on): Add signal, msvc-inval.
10810         (configure.ac): Use the common idioms.
10811         (Maintainer): Add me.
10812         * tests/test-signal-c++.cc: Check the signature of raise.
10813         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10814
10815 2011-09-23  Bruno Haible  <bruno@clisp.org>
10816
10817         pipe2: Fix compilation on pre-C99 compilers.
10818         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10819
10820 2011-09-23  Bruno Haible  <bruno@clisp.org>
10821
10822         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10823         * lib/msvc-nothrow.h: New file.
10824         * lib/msvc-nothrow.c: New file.
10825         * m4/msvc-nothrow.m4: New file.
10826         * modules/msvc-nothrow: New file.
10827         * lib/dup2.c: Include msvc-nothrow.h.
10828         (rpl_dup2): No need to protect _get_osfhandle call here.
10829         * lib/accept4.c: Include msvc-nothrow.h.
10830         * lib/error.c: Likewise.
10831         * lib/fcntl.c: Likewise.
10832         * lib/lseek.c: Likewise.
10833         * lib/nonblocking.c: Likewise.
10834         * lib/poll.c: Likewise.
10835         * lib/read.c: Likewise.
10836         * lib/select.c: Likewise.
10837         * lib/sockets.h: Likewise.
10838         * lib/sockets.c: Likewise.
10839         * lib/stdio-read.c: Likewise.
10840         * lib/stdio-write.c: Likewise.
10841         * lib/write.c: Likewise.
10842         * lib/w32sock.h: Likewise.
10843         * lib/w32spawn.h: Likewise.
10844         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10845         * lib/fsync.c: Likewise.
10846         * lib/isapipe.c: Likewise.
10847         * modules/dup2 (Depends-on): Add msvc-nothrow.
10848         * modules/accept4 (Depends-on): Likewise.
10849         * modules/error (Depends-on): Likewise.
10850         * modules/fcntl (Depends-on): Likewise.
10851         * modules/lseek (Depends-on): Likewise.
10852         * modules/nonblocking (Depends-on): Likewise.
10853         * modules/poll (Depends-on): Likewise.
10854         * modules/read (Depends-on): Likewise.
10855         * modules/select (Depends-on): Likewise.
10856         * modules/sockets (Depends-on): Likewise.
10857         * modules/sigpipe (Depends-on): Likewise.
10858         * modules/write (Depends-on): Likewise.
10859         * modules/accept (Depends-on): Likewise.
10860         * modules/bind (Depends-on): Likewise.
10861         * modules/connect (Depends-on): Likewise.
10862         * modules/gethostname (Depends-on): Likewise.
10863         * modules/getpeername (Depends-on): Likewise.
10864         * modules/getsockname (Depends-on): Likewise.
10865         * modules/getsockopt (Depends-on): Likewise.
10866         * modules/ioctl (Depends-on): Likewise.
10867         * modules/listen (Depends-on): Likewise.
10868         * modules/recv (Depends-on): Likewise.
10869         * modules/recvfrom (Depends-on): Likewise.
10870         * modules/send (Depends-on): Likewise.
10871         * modules/sendto (Depends-on): Likewise.
10872         * modules/setsockopt (Depends-on): Likewise.
10873         * modules/shutdown (Depends-on): Likewise.
10874         * modules/socket (Depends-on): Likewise.
10875         * modules/execute (Depends-on): Likewise.
10876         * modules/spawn-pipe (Depends-on): Likewise.
10877         * modules/flock (Depends-on): Likewise.
10878         * modules/fsync (Depends-on): Likewise.
10879         * modules/isapipe (Depends-on): Likewise.
10880         * tests/test-cloexec.c: Include msvc-nothrow.h.
10881         * tests/test-dup-safer.c: Likewise.
10882         * tests/test-dup2.c: Likewise.
10883         * tests/test-dup3.c: Likewise.
10884         * tests/test-fcntl.c: Likewise.
10885         * tests/test-pipe.c: Likewise.
10886         * tests/test-pipe2.c: Likewise.
10887         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10888         * modules/unistd-safer-tests (Depends-on): Likewise.
10889         * modules/dup2-tests (Depends-on): Likewise.
10890         * modules/dup3-tests (Depends-on): Likewise.
10891         * modules/fcntl-tests (Depends-on): Likewise.
10892         * modules/pipe-posix-tests (Depends-on): Likewise.
10893         * modules/pipe2-tests (Depends-on): Likewise.
10894
10895 2011-09-23  Bruno Haible  <bruno@clisp.org>
10896
10897         dup2: Make code more maintainable.
10898         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10899         (rpl_dup2): Use it.
10900         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10901         * modules/dup2 (configure.ac): Invoke it.
10902         Reported by Paul Eggert.
10903
10904 2011-09-23  Bruno Haible  <bruno@clisp.org>
10905
10906         msvc-inval: Fix compilation error.
10907         * lib/msvc-inval.h: Include <excpt.h>.
10908
10909 2011-09-23  Bruno Haible  <bruno@clisp.org>
10910
10911         mkdir: Tweak for MSVC 9.
10912         * lib/sys_stat.in.h: Update comments.
10913         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10914
10915         Tests for module 'chdir'.
10916         * modules/chdir-tests: New file.
10917         * tests/test-chdir.c: New file.
10918
10919         New module 'chdir'.
10920         * modules/chdir: New file.
10921         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10922         (chdir): New declaration.
10923         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10924         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10925         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10926         * tests/test-unistd-c++.cc: Check signature of chdir.
10927         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10928         * modules/chdir-long (Depends-on): Add chdir.
10929         * modules/fchdir (Depends-on): Likewise.
10930         * modules/rename (Depends-on): Likewise.
10931         * modules/savewd (Depends-on): Likewise.
10932
10933         rmdir: Support for mingw, MSVC 9.
10934         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10935         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10936
10937         getcwd: Tweak for MSVC 9.
10938         * lib/unistd.in.h: Update comments.
10939         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10940
10941 2011-09-22  Bruno Haible  <bruno@clisp.org>
10942
10943         strerror_r-posix: Avoid a link error on MSVC.
10944         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10945         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10946
10947 2011-09-22  Bruno Haible  <bruno@clisp.org>
10948
10949         select: Avoid link errors on MSVC.
10950         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10951         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10952         * modules/pselect (Link): Likewise.
10953         * NEWS: Mention the change.
10954         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10955         test-select-stdin against $(LIB_SELECT).
10956         * modules/pselect-tests (Makefile.am): Link test-pselect against
10957         $(LIB_SELECT).
10958
10959 2011-09-22  Bruno Haible  <bruno@clisp.org>
10960
10961         select: Avoid compilation error on MSVC.
10962         * lib/select.c: Don't include <stdbool.h>.
10963
10964 2011-09-21  Bruno Haible  <bruno@clisp.org>
10965
10966         Consolidate all uses of PATH_MAX in *.m4 files.
10967         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10968         macros.
10969         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10970         and gl_PATHMAX_SNIPPET.
10971         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10972         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10973         * modules/chdir-long (Files): Add m4/pathmax.m4.
10974         * modules/getcwd (Files): Likewise.
10975
10976 2011-09-21  Bruno Haible  <bruno@clisp.org>
10977
10978         ftruncate: Un-deprecate, concentrate on Win32 support.
10979         * modules/ftruncate (Status, Notice): Remove sections.
10980         (Depends-on): Add largefile.
10981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10982         non-mingw platforms.
10983         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10984         include <io.h>.
10985         * modules/perror-tests (Depends-on): Add ftruncate.
10986         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10987         'ftruncate' module.
10988
10989 2011-09-21  Bruno Haible  <bruno@clisp.org>
10990
10991         Add dependencies to new dirent related modules.
10992         * modules/opendir (Depends-on): Add closedir.
10993         * modules/getcwd (Depends-on): Add opendir, closedir.
10994         * modules/dirent-safer-tests (Depends-on): Likewise.
10995         * modules/fdopendir-tests (Depends-on): Likewise.
10996         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10997         * modules/renameat-tests (Depends-on): Likewise.
10998
10999 2011-09-21  Bruno Haible  <bruno@clisp.org>
11000
11001         opendir: Avoid compilation error on mingw.
11002         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11003         * modules/opendir (Depends-on): Add unistd.
11004
11005 2011-09-21  Bruno Haible  <bruno@clisp.org>
11006
11007         ftruncate tests: Avoid a test failure on mingw.
11008         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11009
11010 2011-09-21  Bruno Haible  <bruno@clisp.org>
11011
11012         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11013         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11014         native Windows.
11015
11016 2011-09-21  Bruno Haible  <bruno@clisp.org>
11017
11018         New module 'fdopen'.
11019         * lib/stdio.in.h (fdopen): New declaration.
11020         * lib/fdopen.c: New file.
11021         * m4/fdopen.m4: New file.
11022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11023         REPLACE_FDOPEN.
11024         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11025         REPLACE_FDOPEN.
11026         * modules/fdopen: New file.
11027         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11028         * tests/test-stdio-c++.cc: Check signature of fdopen.
11029         * doc/posix-functions/fdopen.texi: Mention the new module.
11030
11031 2011-09-21  Bruno Haible  <bruno@clisp.org>
11032
11033         unlockpt tests: Avoid test failure on NetBSD 5.1.
11034         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11035         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11036
11037 2011-09-21  Bruno Haible  <bruno@clisp.org>
11038
11039         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11040         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11041         * tests/test-getlogin_r.c (main): Likewise.
11042
11043 2011-09-20  Bruno Haible  <bruno@clisp.org>
11044
11045         time tests: Don't require pid_t.
11046         * doc/posix-headers/time.texi: Revert last change.
11047         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11048         * tests/test-time.c: Comment out the check for pid_t.
11049
11050 2011-09-20  Bruno Haible  <bruno@clisp.org>
11051
11052         fsync tests: Avoid a test failure on mingw.
11053         * tests/test-fsync.c (main): Allow a failure with EIO.
11054
11055 2011-09-20  Bruno Haible  <bruno@clisp.org>
11056
11057         euidaccess: Update comments.
11058         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11059
11060 2011-09-20  Bruno Haible  <bruno@clisp.org>
11061
11062         Ensure EBADF returns for socket functions on mingw.
11063         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11064         descriptor is invalid.
11065         * lib/bind.c (rpl_bind): Likewise.
11066         * lib/connect.c (rpl_connect): Likewise.
11067         * lib/getpeername.c (rpl_getpeername): Likewise.
11068         * lib/getsockname.c (rpl_getsockname): Likewise.
11069         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11070         * lib/listen.c (rpl_listen): Likewise.
11071         * lib/recv.c (rpl_recv): Likewise.
11072         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11073         * lib/send.c (rpl_send): Likewise.
11074         * lib/sendto.c (rpl_sendto): Likewise.
11075         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11076         * lib/shutdown.c (rpl_shutdown): Likewise.
11077
11078 2011-09-20  Bruno Haible  <bruno@clisp.org>
11079
11080         select tests: EBADF tests.
11081         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11082         test_bad_fd): New functions.
11083         (test_function): Invoke also test_bad_fd.
11084
11085 2011-09-20  Bruno Haible  <bruno@clisp.org>
11086
11087         Tests for module 'posix_spawn_file_actions_addopen.
11088         * modules/posix_spawn_file_actions_addopen-tests: New file.
11089         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11090
11091         Tests for module 'posix_spawn_file_actions_adddup2'.
11092         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11093         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11094
11095         Tests for module 'posix_spawn_file_actions_addclose'.
11096         * modules/posix_spawn_file_actions_addclose-tests: New file.
11097         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11098
11099 2011-09-20  Bruno Haible  <bruno@clisp.org>
11100
11101         Tests for module 'unlockpt'.
11102         * modules/unlockpt-tests: New file.
11103         * tests/test-unlockpt.c: New file.
11104         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11105
11106         Tests for module 'grantpt'.
11107         * modules/grantpt-tests: New file.
11108         * tests/test-grantpt.c: New file.
11109         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11110
11111 2011-09-20  Bruno Haible  <bruno@clisp.org>
11112
11113         freopen tests: EBADF tests.
11114         * tests/test-freopen.c: Include errno.h, unistd.h.
11115         (main): Add tests for EBADF, commented out for the moment.
11116
11117         fclose tests: EBADF tests.
11118         * tests/test-fclose.c (main): Add tests for EBADF.
11119
11120         fflush tests: EBADF tests.
11121         * tests/test-fflush.c: Include errno.h, macros.h.
11122         (main): Add tests for EBADF.
11123
11124         ftello tests: EBADF tests.
11125         * tests/test-ftello4.sh: New file.
11126         * tests/test-ftello4.c: New file.
11127         * modules/ftello-tests (Files): Add them.
11128         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11129
11130         fseeko tests: EBADF tests.
11131         * tests/test-fseeko4.sh: New file.
11132         * tests/test-fseeko4.c: New file.
11133         * modules/fseeko-tests (Files): Add them.
11134         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11135
11136         Tests for function fputc().
11137         * modules/fputc-tests: New file.
11138         * tests/test-fputc.c: New file.
11139         * modules/stdio-tests (Depends-on): Add fputc-tests.
11140
11141         Tests for function fgetc().
11142         * modules/fgetc-tests: New file.
11143         * tests/test-fgetc.c: New file.
11144         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11145
11146         Tests for function fdopen().
11147         * modules/fdopen-tests: New file.
11148         * tests/test-fdopen.c: New file.
11149         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11150
11151         Tests for module 'vdprintf'.
11152         * modules/vdprintf-tests: New file.
11153         * tests/test-vdprintf.c: New file.
11154
11155         Tests for module 'dprintf'.
11156         * modules/dprintf-tests: New file.
11157         * tests/test-dprintf.c: New file.
11158
11159 2011-09-20  Bruno Haible  <bruno@clisp.org>
11160
11161         Tests for module 'ioctl'.
11162         * modules/ioctl-tests: New file.
11163         * tests/test-ioctl.c: New file.
11164
11165 2011-09-20  Bruno Haible  <bruno@clisp.org>
11166
11167         fcntl tests: EBADF tests.
11168         * tests/test-fcntl.c (main): Add more tests for EBADF.
11169
11170 2011-09-20  Bruno Haible  <bruno@clisp.org>
11171
11172         utimensat tests: EBADF tests.
11173         * tests/test-utimensat.c (main): Add tests for EBADF.
11174
11175         renameat tests: EBADF tests.
11176         * tests/test-renameat.c (main): Add tests for EBADF.
11177
11178         mkfifoat tests: EBADF tests.
11179         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11180
11181         readlinkat tests: EBADF tests.
11182         * tests/test-readlinkat.c (main): Add tests for EBADF.
11183
11184         symlinkat tests: EBADF tests.
11185         * tests/test-symlinkat.c (main): Add tests for EBADF.
11186
11187         linkat tests: EBADF tests.
11188         * tests/test-linkat.c (main): Add tests for EBADF.
11189
11190         Tests for module 'faccessat'.
11191         * modules/faccessat-tests: New file.
11192         * tests/test-faccessat.c: New file.
11193
11194         fdopendir tests: EBADF tests.
11195         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11196
11197         openat tests: EBADF tests.
11198         * tests/test-fchownat.c (main): Add tests for EBADF.
11199         * tests/test-fstatat.c (main): Likewise.
11200         * tests/test-mkdirat.c (main): Likewise.
11201         * tests/test-openat.c (main): Likewise.
11202         * tests/test-unlinkat.c (main): Likewise.
11203         * tests/test-fchmodat.c: New file.
11204         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11205         (Makefile.am): Also run 'test-fchmodat'.
11206
11207 2011-09-20  Bruno Haible  <bruno@clisp.org>
11208
11209         utimens, futimens, fdutimensat tests: EBADF tests.
11210         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11211
11212         Tests for function fstat().
11213         * modules/fstat-tests: New file.
11214         * tests/test-fstat.c: New file.
11215         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11216
11217 2011-09-20  Bruno Haible  <bruno@clisp.org>
11218
11219         test-ttyname_r tests: EBADF tests.
11220         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11221
11222         Tests for module 'isatty'.
11223         * modules/isatty-tests: New file.
11224         * tests/test-isatty.c: New file.
11225
11226         Tests for module 'write'.
11227         * modules/write-tests: New file.
11228         * tests/test-write.c: New file.
11229
11230         Tests for module 'read'.
11231         * modules/read-tests: New file.
11232         * tests/test-read.c: New file.
11233
11234         pwrite tests: EBADF tests.
11235         * tests/test-pwrite.c (main): Add tests for EBADF.
11236
11237         pread tests: EBADF tests.
11238         * tests/test-pread.c (main): Add tests for EBADF.
11239
11240         lseek tests: EBADF tests.
11241         * tests/test-lseek.c (main): Add more tests for EBADF.
11242
11243         Tests for module 'ftruncate'.
11244         * modules/ftruncate-tests: New file.
11245         * tests/test-ftruncate.sh: New file.
11246         * tests/test-ftruncate.c: New file.
11247
11248         fsync tests: EBADF tests.
11249         * tests/test-fsync.c (main): Add more tests for EBADF.
11250
11251         fdatasync tests: EBADF tests.
11252         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11253
11254         Tests for module 'fchown'.
11255         * modules/fchown-tests: New file.
11256         * tests/test-fchown.c: New file.
11257
11258         Tests for module 'fchmod'.
11259         * modules/fchmod-tests: New file.
11260         * tests/test-fchmod.c: New file.
11261
11262         fchdir tests: EBADF tests.
11263         * tests/test-fchdir.c (main): Add more tests for EBADF.
11264
11265         dup2 tests: EBADF tests.
11266         * tests/test-dup2.c (main): Add more tests for EBADF.
11267
11268         Tests for module 'dup'.
11269         * modules/dup-tests: New file.
11270         * tests/test-dup.c: New file.
11271
11272         Tests for module 'close'.
11273         * modules/close-tests: New file.
11274         * tests/test-close.c: New file.
11275
11276 2011-09-20  Bruno Haible  <bruno@clisp.org>
11277
11278         Tests for module 'shutdown'.
11279         * modules/shutdown-tests: New file.
11280         * tests/test-shutdown.c: New file.
11281
11282         Tests for module 'setsockopt'.
11283         * modules/setsockopt-tests: New file.
11284         * tests/test-setsockopt.c: New file.
11285
11286         Tests for module 'sendto'.
11287         * modules/sendto-tests: New file.
11288         * tests/test-sendto.c: New file.
11289
11290         Tests for module 'send'.
11291         * modules/send-tests: New file.
11292         * tests/test-send.c: New file.
11293
11294         Tests for module 'recvfrom'.
11295         * modules/recvfrom-tests: New file.
11296         * tests/test-recvfrom.c: New file.
11297
11298         Tests for module 'recv'.
11299         * modules/recv-tests: New file.
11300         * tests/test-recv.c: New file.
11301
11302         Tests for module 'listen'.
11303         * modules/listen-tests: New file.
11304         * tests/test-listen.c: New file.
11305
11306         Tests for module 'getsockopt'.
11307         * modules/getsockopt-tests: New file.
11308         * tests/test-getsockopt.c: New file.
11309
11310         Tests for module 'getsockname'.
11311         * modules/getsockname-tests: New file.
11312         * tests/test-getsockname.c: New file.
11313
11314         Tests for module 'getpeername'.
11315         * modules/getpeername-tests: New file.
11316         * tests/test-getpeername.c: New file.
11317
11318         Tests for module 'connect'.
11319         * modules/connect-tests: New file.
11320         * tests/test-connect.c: New file.
11321
11322         Tests for module 'bind'.
11323         * modules/bind-tests: New file.
11324         * tests/test-bind.c: New file.
11325
11326         accept4 tests: Fix for native Windows.
11327         * tests/test-accept4.c: Include sockets.h.
11328         (main): Invoke gl_sockets_startup.
11329         * modules/accept4-tests (Depends-on): Add sockets.
11330
11331         accept tests: Fix for native Windows.
11332         * tests/test-accept.c: Include sockets.h.
11333         (main): Invoke gl_sockets_startup.
11334         * modules/accept-tests (Depends-on): Add sockets.
11335
11336 2011-09-19  Bruno Haible  <bruno@clisp.org>
11337
11338         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11339         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11340         do...while(0).
11341         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11342         Suggested by Paul Eggert.
11343
11344 2011-09-19  Bruno Haible  <bruno@clisp.org>
11345
11346         sched: Ensure pid_t is defined.
11347         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11348         not define pid_t.
11349         * lib/sched.in.h: Include <sys/types.h>.
11350         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11352
11353 2011-09-19  Bruno Haible  <bruno@clisp.org>
11354
11355         msvc-inval: Ensure the entire expansion is a single statement.
11356         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11357         of braces.
11358
11359 2011-09-19  Jim Meyering  <meyering@redhat.com>
11360
11361         tests: use printf, not echo in init.sh's warn_ function
11362         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11363         misbehave when given strings containing a backslash or starting
11364         with e.g., -n.  James Youngman suggested setting IFS.
11365
11366 2011-09-19  Eric Blake  <eblake@redhat.com>
11367
11368         futimens: enhance test
11369         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11370         closed non-negative fd.
11371
11372         date: accept 'hence' as opposite of 'ago'
11373         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11374         * tests/test-parse-datetime.c (main): Enhance test.
11375         Suggested by Jesse Wilson.
11376
11377 2011-09-19  Jim Meyering  <meyering@redhat.com>
11378
11379         getcwd: don't fail in a deep directory on a system without openat
11380         Before this change, getcwd would fail when called from a directory
11381         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11382         the non-openat implementation used "..", "../..", "../../..", etc.
11383         to access ancestor directories.  With too many, that string would
11384         be longer than PATH_MAX.
11385         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11386         using gnulib's openat replacement.
11387         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11388         we're using the replacement function.
11389
11390 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11391
11392         maint.mk: avoid warnings from perl about missing files
11393         * top/maint.mk (def_sym_regex): Ignore files listed in
11394         $(gl_other_headers_) that do not exist, say because a project
11395         does not use a corresponding module.
11396
11397 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11398
11399         stat: use pathmax.h only if needed
11400         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11401         This is better for Emacs, which does not have a mingw port and
11402         therefore can avoid the pathmax module.
11403
11404         utimens: remove dependency on dup2
11405         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11406         to work around the Linux kernel bug.
11407         * modules/utimens (Depends-on): Remove dup2.
11408
11409 2011-09-18  Bruno Haible  <bruno@clisp.org>
11410
11411         inet_ntop, inet_pton: Look for it also in libresolv.
11412         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11413         libnsl, search for it in libresolv.
11414         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11415         Needed on Solaris 7.
11416
11417 2011-09-18  Bruno Haible  <bruno@clisp.org>
11418
11419         accept, accept4 tests: Avoid link error on Solaris.
11420         * modules/accept-tests (Makefile.am): Link test-accept against
11421         $(LIBSOCKET).
11422         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11423         $(LIBSOCKET).
11424
11425         accept4: Avoid link error on Solaris.
11426         * modules/accept4 (Link): New section.
11427
11428         socket functions: Avoid link errors on Solaris.
11429         * modules/accept (Depends-on): Add socketlib.
11430         (Link): New section.
11431         * modules/bind (Depends-on): Add socketlib.
11432         (Link): New section.
11433         * modules/connect (Depends-on): Add socketlib.
11434         (Link): New section.
11435         * modules/getpeername (Depends-on): Add socketlib.
11436         (Link): New section.
11437         * modules/getsockname (Depends-on): Add socketlib.
11438         (Link): New section.
11439         * modules/getsockopt (Depends-on): Add socketlib.
11440         (Link): New section.
11441         * modules/listen (Depends-on): Add socketlib.
11442         (Link): New section.
11443         * modules/recv (Depends-on): Add socketlib.
11444         (Link): New section.
11445         * modules/recvfrom (Depends-on): Add socketlib.
11446         (Link): New section.
11447         * modules/send (Depends-on): Add socketlib.
11448         (Link): New section.
11449         * modules/sendto (Depends-on): Add socketlib.
11450         (Link): New section.
11451         * modules/setsockopt (Depends-on): Add socketlib.
11452         (Link): New section.
11453         * modules/shutdown (Depends-on): Add socketlib.
11454         (Link): New section.
11455         * modules/socket (Depends-on): Add socketlib.
11456         (Link): New section.
11457
11458 2011-09-18  Bruno Haible  <bruno@clisp.org>
11459
11460         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11461         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11462         than 5 seconds.
11463         * modules/ptsname-tests (configure.ac): Test for alarm.
11464
11465 2011-09-18  Bruno Haible  <bruno@clisp.org>
11466
11467         posix_spawn_file_actions_add*: Fix module dependencies.
11468         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11469         posix_spawn_file_actions_init.
11470         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11471         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11472
11473 2011-09-18  Bruno Haible  <bruno@clisp.org>
11474
11475         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11476         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11477         * tests/test-renameat.c (main): Likewise.
11478
11479 2011-09-18  Bruno Haible  <bruno@clisp.org>
11480
11481         Tests for module 'accept4'.
11482         * modules/accept4-tests: New file.
11483         * tests/test-accept4.c: New file.
11484
11485 2011-09-18  Bruno Haible  <bruno@clisp.org>
11486
11487         Tests for module 'accept'.
11488         * modules/accept-tests: New file.
11489         * tests/test-accept.c: New file.
11490
11491 2011-09-18  Bruno Haible  <bruno@clisp.org>
11492
11493         dup2: Support for MSVC.
11494         * lib/dup2.c: Include msvc-inval.h.
11495         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11496         _get_osfhandle calls.
11497         * modules/dup2 (Depends-on): Add msvc-inval.
11498         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11499
11500         New module 'msvc-inval'.
11501         * lib/msvc-inval.h: New file.
11502         * lib/msvc-inval.c: New file.
11503         * m4/msvc-inval.m4: New file.
11504         * modules/msvc-inval: New file.
11505
11506 2011-09-17  Bruno Haible  <bruno@clisp.org>
11507
11508         Tests for module 'pclose'.
11509         * modules/pclose-tests: New file.
11510
11511         New module 'pclose'.
11512         * lib/stdio.in.h (pclose): New declaration.
11513         * lib/pclose.c: New file.
11514         * m4/pclose.m4: New file.
11515         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11516         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11517         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11518         * modules/pclose: New file.
11519         * modules/popen-tests (Depends-on): Add pclose.
11520         * modules/popen-safer-tests (Depends-on): Likewise.
11521         * doc/posix-functions/pclose.texi: Mention the new module.
11522
11523 2011-09-17  Bruno Haible  <bruno@clisp.org>
11524
11525         popen: Support for MSVC.
11526         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11527         * lib/popen.c (popen): Provide alternate definition for native Windows.
11528         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11530         * modules/popen (Depends-on, configure.ac): Update condition.
11531         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11532         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11533         fixed.
11534
11535 2011-09-17  Bruno Haible  <bruno@clisp.org>
11536
11537         isnanl, isnand, isnanf: Work around MSVC bug.
11538         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11539
11540 2011-09-17  Bruno Haible  <bruno@clisp.org>
11541
11542         sys_socket tests: Fix recent mistake.
11543         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11544
11545 2011-09-17  Bruno Haible  <bruno@clisp.org>
11546
11547         putenv: Support for MSVC.
11548         * modules/putenv (Depends-on): Add environ.
11549         * lib/putenv.c (environ): Disable declaration.
11550         * lib/unistd.in.h: Update comment.
11551
11552 2011-09-17  Bruno Haible  <bruno@clisp.org>
11553
11554         math: Avoid macro redefinition warnings on MSVC.
11555         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11556         Undefine before redefining.
11557
11558 2011-09-17  Bruno Haible  <bruno@clisp.org>
11559
11560         doc: Mention functions which are declared as macros.
11561         * doc/posix-functions/*[fl].texi: Mention that some functions are
11562         defined as macros with arguments only.
11563
11564 2011-09-17  Bruno Haible  <bruno@clisp.org>
11565
11566         Add dependencies to new dirent related modules.
11567         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11568         * modules/fts (Depends-on): Likewise.
11569         * modules/glob (Depends-on): Likewise.
11570         * modules/savedir (Depends-on): Likewise.
11571         * modules/scandir (Depends-on): Likewise.
11572         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11573         * modules/fdopendir (Depends-on): Add opendir.
11574
11575 2011-09-17  Bruno Haible  <bruno@clisp.org>
11576
11577         inet_pton: Support for MSVC on Windows Vista or newer.
11578         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11579         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11580         HAVE_DECL_INET_PTON is defined.
11581         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11582         On platforms with <winsock2.h>, test whether inet_pton is declared in
11583         <ws2tcpip.h>. If so, arrange to replace it.
11584         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11585         REPLACE_INET_PTON.
11586         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11587         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11588         (Depends-on, configure.ac): Update condition.
11589         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11590
11591 2011-09-17  Bruno Haible  <bruno@clisp.org>
11592
11593         inet_ntop: Support for MSVC on Windows Vista or newer.
11594         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11595         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11596         HAVE_DECL_INET_NTOP is defined.
11597         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11598         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11599         <ws2tcpip.h>. If so, arrange to replace it.
11600         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11601         REPLACE_INET_NTOP.
11602         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11603         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11604         (Depends-on, configure.ac): Update condition.
11605         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11606
11607 2011-09-16  Eric Blake  <eblake@redhat.com>
11608
11609         test-fsync: yet another enhancement
11610         * tests/test-fsync.c (main): Also test behavior on read-only text
11611         file.
11612
11613 2011-09-16  Bruno Haible  <bruno@clisp.org>
11614
11615         Enhance fsync, fdatasync tests.
11616         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11617         * tests/test-fdatasync.c (main): Likewise.
11618
11619 2011-09-16  Bruno Haible  <bruno@clisp.org>
11620
11621         Support for MSVC compiler: Ensure mode_t gets defined.
11622         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11623         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11625         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11626         * tests/test-fcntl-h.c: Check that mode_t is defined.
11627         * tests/test-sys_stat.c: Likewise.
11628         * tests/test-sys_types.c: Likewise.
11629         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11630         * doc/posix-headers/sys_stat.texi: Likewise.
11631         * doc/posix-headers/sys_types.texi: Likewise.
11632
11633 2011-09-16  Bruno Haible  <bruno@clisp.org>
11634
11635         sys_stat: Support for MSVC.
11636         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11637         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11638         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11639         MSVC.
11640
11641 2011-09-16  Bruno Haible  <bruno@clisp.org>
11642
11643         Support for MSVC compiler: Ensure off_t gets defined.
11644         * lib/unistd.in.h: Include <sys/types.h>.
11645         * tests/test-fcntl-h.c: Check that off_t is defined.
11646         * tests/test-sys_stat.c: Likewise.
11647         * tests/test-sys_types.c: Likewise.
11648
11649 2011-09-16  Eric Blake  <eblake@redhat.com>
11650
11651         fdatasync: port to Solaris
11652         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11653         * modules/fdatasync (Link): Document it.
11654         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11655
11656         fdatasync: port to MacOS X 10.7
11657         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11658         declared.
11659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11660         * modules/unistd (Makefile.am): Substitute it.
11661         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11662         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11663
11664         fdatasync: minor improvements
11665         * modules/fdatasync (Depends-on): Add condition for fsync.
11666         * lib/fdatasync.c (fdatasync): Add comment.
11667         * tests/test-unistd-c++.cc: Test fdatasync.
11668
11669         unistd: update refs to newer POSIX
11670         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11671         Suggested by Bruno Haible.
11672
11673         fdatasync: new module
11674         * modules/fsync (Description): Document difference to fdatasync.
11675         * modules/fdatasync: New module.
11676         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11677         * lib/fdatasync.c (fdatasync): Likewise.
11678         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11679         defaults.
11680         * modules/unistd (Makefile.am): Set witnesses.
11681         * lib/unistd.in.h (fdatasync): Declare.
11682         * MODULES.html.sh: Document it.
11683         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11684         * modules/fdatasync-tests: New test.
11685         * tests/test-fdatasync.c: Likewise.
11686
11687 2011-09-16  Eric Blake  <eblake@redhat.com>
11688
11689         test-fsync: enhance tests
11690         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11691         * tests/test-fsync.c (main): Enhance test.
11692
11693 2011-09-15  Bruno Haible  <bruno@clisp.org>
11694
11695         Support for MSVC compiler: Ensure ssize_t gets defined.
11696         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11697         * doc/posix-headers/stdio.texi: Likewise.
11698         * modules/stdio (Depends-on): Add ssize_t.
11699         * modules/sys_socket (Depends-on): Likewise.
11700         * modules/sys_types (Depends-on): Likewise.
11701         * modules/sys_uio (Depends-on): Likewise.
11702         * modules/unistd (Depends-on): Likewise.
11703         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11704         * tests/test-sys_types.c: Check that ssize_t is defined.
11705
11706 2011-09-14  Bruno Haible  <bruno@clisp.org>
11707
11708         Avoid using #, the m4 comment starter character, near brackets.
11709         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11710         delimiter character in sed expressions.
11711         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11712         Suggested by Eric Blake.
11713
11714         Properly quote AC_CHECK_DECLS' 4th argument.
11715         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11716         argument.
11717         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11718         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11719         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11720         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11721         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11722         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11723         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11724         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11725         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11727         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11728         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11729         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11730         * m4/isinf.m4 (gl_ISINF): Likewise.
11731         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11732         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11733         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11734         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11737         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11738         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11739         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11740         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11741         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11742         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11744         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11745         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11746         Reported by Eric Blake.
11747
11748         Properly quote AC_CHECK_DECL's 4th argument.
11749         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11750         argument.
11751         * m4/argp.m4 (gl_ARGP): Likewise.
11752         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11753         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11754         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11755         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11756         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11757         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11759         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11761         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11762         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11763         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11764         Reported by Eric Blake.
11765
11766 2011-09-14  Eric Blake  <eblake@redhat.com>
11767
11768         opendir: avoid compile warning
11769         * lib/opendir.c (includes): Always include errno.h.
11770         Reported by Tatsuro MATSUOKA.
11771
11772 2011-09-14  Jim Meyering  <meyering@redhat.com>
11773
11774         maint.mk: sc_tight_scope: propagate failure from sub-make
11775         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11776         Reported by Martin von Gagern.
11777
11778 2011-09-13  Bruno Haible  <bruno@clisp.org>
11779
11780         tempname: Support for MSVC.
11781         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11782         MSVC.
11783         * modules/tempname (Depends-on): Add fcntl-h.
11784
11785 2011-09-13  Bruno Haible  <bruno@clisp.org>
11786
11787         sys_time: Support for MSVC.
11788         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11789         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11790         include <winsock2.h>.
11791         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11792         function declarations that collide with POSIX.
11793         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11794         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11795
11796 2011-09-13  Bruno Haible  <bruno@clisp.org>
11797
11798         stat: Support for MSVC.
11799         * lib/stat.c: Include pathmax.h.
11800         * modules/stat (Depends-on): Add pathmax.
11801
11802         pathmax: Support for native Windows.
11803         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11804
11805 2011-09-12  Bruno Haible  <bruno@clisp.org>
11806
11807         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11808         * lib/dirent.in.h (struct dirent): New type.
11809         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11810         DT_WHT): New macros.
11811         (DIR): New type.
11812         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11813         (readdir, rewinddir): New declarations.
11814         * lib/dirent-private.h: New file.
11815         * lib/opendir.c: New file.
11816         * lib/readdir.c: New file.
11817         * lib/rewinddir.c: New file.
11818         * lib/closedir.c: New file.
11819         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11820         * m4/opendir.m4: New file.
11821         * m4/readdir.m4: New file.
11822         * m4/rewinddir.m4: New file.
11823         * m4/closedir.m4: New file.
11824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11825         REPLACE_CLOSEDIR here.
11826         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11827         readdir, rewinddir are declared.
11828         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11829         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11830         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11831         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11832         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11833         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11834         * modules/opendir: New file.
11835         * modules/readdir: New file.
11836         * modules/rewinddir: New file.
11837         * modules/closedir: New file.
11838         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11839         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11840         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11841         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11842         * NEWS: Mention the 'fchdir' change.
11843
11844 2011-09-11  Bruno Haible  <bruno@clisp.org>
11845
11846         asm-underscore.m4: Support for MSVC.
11847         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11848         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11849
11850 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11851
11852         Doc about crypt functions.
11853         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11854         needing for _GNU_SOURCE to get crypt.
11855         * doc/posix-functions/encrypt.texi: Likewise.
11856         * doc/posix-functions/setkey.texi: Likewise.
11857
11858 2011-09-11  Bruno Haible  <bruno@clisp.org>
11859
11860         doc: Update regarding MSVC 9.
11861         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11862         tested".
11863         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11864         * doc/posix-headers/*.texi: Likewise.
11865         * doc/pastposix-functions/*.texi: Likewise.
11866         * doc/glibc-functions/*.texi: Likewise.
11867         * doc/glibc-headers/*.texi: Likewise.
11868
11869 2011-09-11  Bruno Haible  <bruno@clisp.org>
11870
11871         unistd et al.: Don't assume <unistd.h> exists.
11872         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11873         does not exist.
11874         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11875         exist. But include <stdlib.h>.
11876         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11877         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11878         symlink() does not exist.
11879         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11880         include <io.h> instead.
11881         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11882         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11883         include <direct.h> instead.
11884         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11885         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11886         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11887         <io.h> instead.
11888         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11889         correctly if the system does not have hard links.
11890         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11891         <direct.h> instead.
11892         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11893         it when looking for function declarations.
11894         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11895         <direct.h> and <io.h> instead.
11896         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11897
11898 2011-09-11  Bruno Haible  <bruno@clisp.org>
11899
11900         strcase: Support for MSVC.
11901         * modules/strcase (Status, Notice): Remove obsoletion mark.
11902         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11903         * doc/posix-functions/strncasecmp.texi: Likewise.
11904
11905         strings: Don't assume <strings.h> exists.
11906         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11907         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11908         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11909         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11910
11911 2011-09-11  Bruno Haible  <bruno@clisp.org>
11912
11913         dirent: Don't assume <dirent.h> exists.
11914         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11915         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11916         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11917         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11918
11919 2011-09-11  Bruno Haible  <bruno@clisp.org>
11920
11921         Fix wint_t on MSVC.
11922         * lib/wchar.in.h (wint_t): On MSVC, override it.
11923         * lib/wctype.in.h (wint_t): Likewise.
11924         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11925         MSVC.
11926         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11927         * doc/posix-headers/wctype.texi: Likewise.
11928
11929 2011-09-11  Bruno Haible  <bruno@clisp.org>
11930
11931         sys_types: Fix typo.
11932         * lib/sys_types.in.h: Fix typo in comment.
11933         Reported by Paul Eggert.
11934
11935         Support for MSVC compiler: Ensure size_t gets defined.
11936         * modules/strings (Depends-on): Add 'sys_types'.
11937         * modules/sys_uio (Depends-on): Likewise.
11938         * lib/sys_uio.in.h: Update comment.
11939
11940         C++ tests for module 'sys_types'.
11941         * modules/sys_types-c++-tests: New file.
11942         * tests/test-sys_types-c++.cc: New file.
11943
11944         Tests for module 'sys_types'.
11945         * modules/sys_types-tests: New file.
11946         * tests/test-sys_types.c: New file.
11947
11948         New module 'sys_types'.
11949         * lib/sys_types.in.h: New file.
11950         * m4/sys_types_h.m4: New file.
11951         * modules/sys_types: New file.
11952         * doc/posix-headers/sys_types.texi: Mention the new module and the
11953         size_t problem on MSVC 9.
11954
11955 2011-09-11  Bruno Haible  <bruno@clisp.org>
11956
11957         Support for MSVC compiler: Avoid division by a literal 0.
11958         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11960         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11961         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11962         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11963         * tests/infinity.h: New file.
11964         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11965         on MSVC.
11966         * tests/test-ceilf1.c: Include infinity.h.
11967         (main): Use Infinityf.
11968         * tests/test-ceil1.c: Include infinity.h.
11969         (main): Use Infinityd.
11970         * tests/test-ceill.c: Include infinity.h.
11971         (main): Use Infinityl.
11972         * tests/test-dprintf-posix.c: Include infinity.h.
11973         (test_function): Use Infinityd.
11974         * tests/test-floorf1.c: Include infinity.h.
11975         (main): Use Infinityf.
11976         * tests/test-floor1.c: Include infinity.h.
11977         (main): Use Infinityd.
11978         * tests/test-floorl.c: Include infinity.h.
11979         (main): Use Infinityl.
11980         * tests/test-fprintf-posix.c: Include infinity.h.
11981         (test_function): Use Infinityd.
11982         * tests/test-frexp.c: Include infinity.h.
11983         (main): Use Infinityd.
11984         * tests/test-frexpl.c: Include infinity.h.
11985         (main): Use Infinityl.
11986         * tests/test-isfinite.c: Include infinity.h.
11987         (test_isfinitef): Use Infinityf.
11988         (test_isfinited): Use Infinityd.
11989         (test_isfinitel): Use Infinityl.
11990         * tests/test-isinf.c: Include infinity.h.
11991         (test_isinff): Use Infinityf.
11992         (test_isinfd): Use Infinityd.
11993         (test_isinfl): Use Infinityl.
11994         * tests/test-isnan.c: Include infinity.h.
11995         (test_float): Use Infinityf.
11996         (test_double): Use Infinityd.
11997         (test_long_double): Use Infinityl.
11998         * tests/test-isnanf.h: Include infinity.h.
11999         (main): Use Infinityf.
12000         * tests/test-isnand.h: Include infinity.h.
12001         (main): Use Infinityd.
12002         * tests/test-isnanl.h: Include infinity.h.
12003         (main): Use Infinityl.
12004         * tests/test-ldexpl.c: Include infinity.h.
12005         (main): Use Infinityl.
12006         * tests/test-printf-posix.h: Include infinity.h.
12007         (test_function): Use Infinityd.
12008         * tests/test-roundf1.c: Include infinity.h.
12009         (main): Use Infinityf.
12010         * tests/test-round1.c: Include infinity.h.
12011         (main): Use Infinityd.
12012         * tests/test-roundl.c: Include infinity.h.
12013         (main): Use Infinityl.
12014         * tests/test-signbit.c: Include infinity.h.
12015         (test_signbitf): Use Infinityf.
12016         (test_signbitd): Use Infinityd.
12017         (test_signbitl): Use Infinityl.
12018         * tests/test-snprintf-posix.h: Include infinity.h.
12019         (test_function): Use Infinityd, Infinityl.
12020         * tests/test-sprintf-posix.h: Include infinity.h.
12021         (test_function): Use Infinityd, Infinityl.
12022         * tests/test-truncf1.c: Include infinity.h.
12023         (main): Use Infinityf.
12024         * tests/test-trunc1.c: Include infinity.h.
12025         (main): Use Infinityd.
12026         * tests/test-truncl.c: Include infinity.h.
12027         (main): Use Infinityl.
12028         * tests/test-vasnprintf-posix.c: Include infinity.h.
12029         (test_function): Use Infinityd, Infinityl.
12030         * tests/test-vasprintf-posix.c: Include infinity.h.
12031         (test_function): Use Infinityd, Infinityl.
12032         * modules/ceilf-tests (Files): Add tests/infinity.h.
12033         * modules/ceil-tests (Files): Likewise.
12034         * modules/ceill-tests (Files): Likewise.
12035         * modules/dprintf-posix-tests (Files): Likewise.
12036         * modules/floorf-tests (Files): Likewise.
12037         * modules/floor-tests (Files): Likewise.
12038         * modules/floorl-tests (Files): Likewise.
12039         * modules/fprintf-posix-tests (Files): Likewise.
12040         * modules/frexp-tests (Files): Likewise.
12041         * modules/frexp-nolibm-tests (Files): Likewise.
12042         * modules/frexpl-tests (Files): Likewise.
12043         * modules/frexpl-nolibm-tests (Files): Likewise.
12044         * modules/isfinite-tests (Files): Likewise.
12045         * modules/isinf-tests (Files): Likewise.
12046         * modules/isnan-tests (Files): Likewise.
12047         * modules/isnanf-tests (Files): Likewise.
12048         * modules/isnanf-nolibm-tests (Files): Likewise.
12049         * modules/isnand-tests (Files): Likewise.
12050         * modules/isnand-nolibm-tests (Files): Likewise.
12051         * modules/isnanl-tests (Files): Likewise.
12052         * modules/isnanl-nolibm-tests (Files): Likewise.
12053         * modules/ldexpl-tests (Files): Likewise.
12054         * modules/printf-posix-tests (Files): Likewise.
12055         * modules/roundf-tests (Files): Likewise.
12056         * modules/round-tests (Files): Likewise.
12057         * modules/roundl-tests (Files): Likewise.
12058         * modules/signbit-tests (Files): Likewise.
12059         * modules/snprintf-posix-tests (Files): Likewise.
12060         * modules/sprintf-posix-tests (Files): Likewise.
12061         * modules/truncf-tests (Files): Likewise.
12062         * modules/trunc-tests (Files): Likewise.
12063         * modules/truncl-tests (Files): Likewise.
12064         * modules/vasnprintf-posix-tests (Files): Likewise.
12065         * modules/vasprintf-posix-tests (Files): Likewise.
12066         * modules/vdprintf-posix-tests (Files): Likewise.
12067         * modules/vfprintf-posix-tests (Files): Likewise.
12068         * modules/vprintf-posix-tests (Files): Likewise.
12069         * modules/vsnprintf-posix-tests (Files): Likewise.
12070         * modules/vsprintf-posix-tests (Files): Likewise.
12071         * modules/xprintf-posix-tests (Files): Likewise.
12072
12073 2011-09-11  Bruno Haible  <bruno@clisp.org>
12074
12075         Ensure pid_t gets defined.
12076         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12077         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12078         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12079         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12080         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12081         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12082         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12083         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12084         * tests/test-fcntl-h.c: Check that pid_t is defined.
12085         * tests/test-sched.c: Likewise.
12086         * tests/test-termios.c: Likewise.
12087         * tests/test-time.c: Likewise.
12088         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12089         * doc/posix-headers/signal.texi: Likewise.
12090         * doc/posix-headers/sys_types.texi: Likewise.
12091         * doc/posix-headers/time.texi: Likewise.
12092
12093 2011-09-11  Bruno Haible  <bruno@clisp.org>
12094
12095         acl: Fix compilation on Solaris 10 (older version).
12096         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12097         of ACE_EVERYONE.
12098         * lib/set-mode-acl.c (qset_acl): Likewise.
12099         Reported by Christian Jullien <eligis@orange.fr>.
12100
12101 2011-09-10  Bruno Haible  <bruno@clisp.org>
12102
12103         iconv, unsetenv: Add support for MSVC compiler.
12104         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12105         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12106
12107 2011-09-10  Bruno Haible  <bruno@clisp.org>
12108
12109         *printf: Add support for MSVC compiler.
12110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12111         handles the exception caused by the %n directive. When cross-compiling,
12112         guess no on native Windows.
12113         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12114         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12115         emulate it through vsnprintf.
12116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12117         * doc/posix-functions/dprintf.texi: Update documentation regarding
12118         MSVC 9.
12119         * doc/posix-functions/fprintf.texi: Likewise.
12120         * doc/posix-functions/printf.texi: Likewise.
12121         * doc/posix-functions/snprintf.texi: Likewise.
12122         * doc/posix-functions/sprintf.texi: Likewise.
12123         * doc/posix-functions/swprintf.texi: Likewise.
12124         * doc/posix-functions/vdprintf.texi: Likewise.
12125         * doc/posix-functions/vfprintf.texi: Likewise.
12126         * doc/posix-functions/vprintf.texi: Likewise.
12127         * doc/posix-functions/vsnprintf.texi: Likewise.
12128         * doc/posix-functions/vsprintf.texi: Likewise.
12129         * doc/glibc-functions/asprintf.texi: Likewise.
12130         * doc/glibc-functions/obstack_printf.texi: Likewise.
12131         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12132         * doc/glibc-functions/vasprintf.texi: Likewise.
12133
12134 2011-09-10  Bruno Haible  <bruno@clisp.org>
12135
12136         nocrash: Add support for native Windows.
12137         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12138
12139 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12140             Bruno Haible  <bruno@clisp.org>
12141
12142         absolute-header, include-next: Add support for MSVC compiler.
12143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12144         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12145         directory separator in #line directives.
12146         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12147         recognize also backslash as directory separator in #line directives.
12148
12149 2011-09-08  Jim Meyering  <meyering@redhat.com>
12150
12151         maint.mk: mark the post-release commit log with "maint: " prefix
12152         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12153         one-line commit-log summary.
12154
12155 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12156             Bruno Haible  <bruno@clisp.org>
12157
12158         Doc about crypt functions.
12159         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12160         systems.
12161         * doc/posix-functions/encrypt.texi: Likewise.
12162         * doc/posix-functions/setkey.texi: Likewise.
12163
12164 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12165
12166         * lib/gc.h: Fix copyright header.
12167
12168 2011-09-07  Bruno Haible  <bruno@clisp.org>
12169
12170         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12171         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12172         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12173
12174 2011-09-07  Bruno Haible  <bruno@clisp.org>
12175
12176         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12177         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12178         * lib/freopen.c: Likewise.
12179         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12180         * lib/lstat.c: Likewise.
12181         * lib/stat.c: Likewise.
12182         * lib/open.c: Use different syntax for include of <fcntl.h>.
12183         * lib/openat.c: Include fcntl.h again, explicitly.
12184
12185 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12186
12187         parse-datetime: document the newly accepted format
12188         * doc/parse-datetime.texi (Combined date and time of day items):
12189         New section.
12190
12191 2011-09-06  Bruno Haible  <bruno@clisp.org>
12192
12193         acl: Fix a test failure on newer Solaris 10 with ZFS.
12194         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12195         ENOSYS as no ACL.
12196         Reported by Jim Meyering.
12197
12198 2011-09-06  Bruno Haible  <bruno@clisp.org>
12199
12200         acl: Update for AIX >= 5.3 with NFS.
12201         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12202         ENOSYS as no ACL.
12203
12204         acl: Fix a test failure on AIX >= 5.3 with NFS.
12205         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12206         as no ACL.
12207
12208 2011-09-06  Bruno Haible  <bruno@clisp.org>
12209
12210         acl: Fix a test failure on IRIX 6.5 with NFS.
12211         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12212         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12213         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12214         * lib/copy-acl.c (qcopy_acl): Likewise.
12215
12216 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         openat: port to AIX 7.1 with large files
12219         AIX 7.1 does a "#define openat open64at" if large files are in use,
12220         so we can't simply #undef openat.  Use the orig_openat trick (similar
12221         to orig_open in lib/open.c) to work around the problem.  Problem
12222         reported by Kevin Brott for GNU tar, in the thread containing
12223         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12224         * lib/openat.c (__need_system_fcntl_h): Define first.
12225         Include <fcntl.h> and <sys/types.h> before undefining.
12226         (orig_openat) [HAVE_OPENAT]: New inline function.
12227         (openat) [HAVE_OPENAT]: Do not undef.
12228         (rpl_openat): Use orig_openat, not openat.
12229
12230 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12231             Bruno Haible  <bruno@clisp.org>
12232
12233         acl: Avoid errors on NonStop Kernel.
12234         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12235         ENOTSUP errors.
12236
12237 2011-09-05  Bruno Haible  <bruno@clisp.org>
12238
12239         acl: Clean up Solaris code.
12240         * lib/acl-internal.h: Remove no-op #if.
12241         * lib/file-has-acl.c: Likewise.
12242         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12243         * lib/copy-acl.c (qcopy_acl): Likewise.
12244
12245 2011-09-05  Bruno Haible  <bruno@clisp.org>
12246
12247         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12248         binaries built on the original Solaris 10.
12249         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12250         trivial.
12251
12252 2011-09-05  Bruno Haible  <bruno@clisp.org>
12253
12254         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12255         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12256         10.
12257         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12258         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12259         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12260         instead of acl_get, facl_get, acl_set, facl_set.
12261
12262 2011-09-05  Bruno Haible  <bruno@clisp.org>
12263
12264         copy-file: Try unit tests on more file systems.
12265         * tests/test-copy-file-1.sh: New file.
12266         * tests/test-copy-file-2.sh: New file.
12267         * modules/copy-file-tests (Files): Add them.
12268         (Makefile.am): Add them to TESTS.
12269
12270         acl: Try unit tests on more file systems.
12271         * tests/test-file-has-acl-1.sh: New file.
12272         * tests/test-file-has-acl-2.sh: New file.
12273         * tests/test-set-mode-acl-1.sh: New file.
12274         * tests/test-set-mode-acl-2.sh: New file.
12275         * tests/test-copy-acl-1.sh: New file.
12276         * tests/test-copy-acl-2.sh: New file.
12277         * modules/acl-tests (Files): Add them.
12278         (Makefile.am): Add them to TESTS.
12279
12280 2011-09-04  Bruno Haible  <bruno@clisp.org>
12281
12282         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12283         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12284         10.
12285         (OLD_ALLOW, OLD_DENY): New macros.
12286         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12287         ACE_ACCESS_ALLOWED_ACE_TYPE.
12288         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12289         ACE_ACCESS_DENIED_ACE_TYPE.
12290         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12291         (NEW_ACE_EXECUTE): Fix value.
12292         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12293         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12294         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12295         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12296         NEW_ACE_SYNCHRONIZE): New macros.
12297         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12298         instead of acl_fromtext, acl_set, facl_set.
12299         Fixes a coreutils/tests/cp/perm failure.
12300
12301 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12302
12303         openat: test for fstatat (..., 0) bug
12304         Further testing with tar suggests that fstatat (..., 0)
12305         does not work in general, on AIX 7.1; see
12306         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12307         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12308         replacement fstatat (which is what older AIX releases were using
12309         anyway).
12310         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12311         use is now changed to orig_fstatat.  This was probably the right
12312         thing to do anyway.
12313         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12314         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12315         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12316         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12317         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12318         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12319         if the bug is found.
12320
12321         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12322         This tests for another fstatat bug on AIX 7.1:
12323         fstatat (AT_FDCWD, ..., 0) does not work.  See
12324         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12325         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12326         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12327         (rpl_fstatat): Adjust so that it works around either (or both)
12328         bugs if present.
12329         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12330
12331 2011-09-03  Karl Berry  <karl@gnu.org>
12332
12333         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12334         in index entries.
12335
12336 2011-09-02  Bruno Haible  <bruno@clisp.org>
12337
12338         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12339         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12340         values of AR, ARFLAGS, RANLIB.
12341         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12342
12343 2011-09-02  Bruno Haible  <bruno@clisp.org>
12344
12345         Find 'ar' program that fits with --host argument.
12346         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12347
12348 2011-09-02  Bruno Haible  <bruno@clisp.org>
12349
12350         tests: init.sh: Support any non-GNU diff.
12351         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12352         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12353         Solaris 8.
12354
12355 2011-09-02  Bruno Haible  <bruno@clisp.org>
12356
12357         tests: init.sh: work also with any non-GNU diff that supports -u
12358         * tests/init.sh: Relax check for diff -u support.
12359         Rather than checking for GNU diff via --version, simply check
12360         for support for -u itself.  Useful at least on OpenBSD 4.9,
12361         AIX 7.1, IRIX 6.5, and Solaris 10.
12362
12363 2011-09-01  Bruno Haible  <bruno@clisp.org>
12364
12365         strtoimax, strtoumax: Document problem on HP-UX 11.
12366         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12367         * doc/posix-functions/strtoumax.texi: Likewise.
12368
12369 2011-09-01  Bruno Haible  <bruno@clisp.org>
12370
12371         strtoumax: Avoid link error on OSF/1 with DTK cc.
12372         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12373         defined as a function.
12374         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12375         strtoumax is defined, not whether it is declared.
12376
12377 2011-09-01  Bruno Haible  <bruno@clisp.org>
12378
12379         strtoimax: Avoid link error on OSF/1 with DTK cc.
12380         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12381         defined as a function.
12382         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12383         strtoimax is defined, not whether it is declared.
12384
12385 2011-09-01  Bruno Haible  <bruno@clisp.org>
12386
12387         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12388         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12389         as a function.
12390         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12391         whether it is declared.
12392
12393 2011-09-01  Bruno Haible  <bruno@clisp.org>
12394
12395         imaxabs: Avoid link error on OSF/1 with DTK cc.
12396         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12397         as a function.
12398         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12399         whether it is declared.
12400
12401 2011-09-01  Bruno Haible  <bruno@clisp.org>
12402
12403         Tests for module 'strtoumax'.
12404         * modules/strtoumax-tests: New file.
12405         * tests/test-strtoumax.c: New file.
12406
12407         Tests for module 'strtoimax'.
12408         * modules/strtoimax-tests: New file.
12409         * tests/test-strtoimax.c: New file.
12410
12411         Tests for module 'imaxdiv'.
12412         * modules/imaxdiv-tests: New file.
12413         * tests/test-imaxdiv.c: New file.
12414
12415         Tests for module 'imaxabs'.
12416         * modules/imaxabs-tests: New file.
12417         * tests/test-imaxabs.c: New file.
12418
12419 2011-09-01  Bruno Haible  <bruno@clisp.org>
12420
12421         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12422         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12423         pthread_create.
12424
12425 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12426
12427         openat: work around AIX 7.1 fstatat issue
12428         This should fix the problem that was not properly fixed
12429         in the previous change, dated 2011-08-30.
12430         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12431         __need_system_stat_h defined.
12432         (orig_fstatat) [HAVE_FSTATAT]: New function.
12433         (rpl_fstatat): Go back to the old way of doing things,
12434         except call orig_fstatat instead of fstatat.
12435         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12436         Remove unnecessary check whether fstatat fills in st_size etc.
12437
12438 2011-09-01  Bruno Haible  <bruno@clisp.org>
12439
12440         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12441         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12442         just include the system's header.
12443
12444 2011-08-31  Jim Meyering  <meyering@redhat.com>
12445
12446         tests: avoid spurious assertion failure in test-float.c on ppc64
12447         * tests/test-float.c (test_long_double): Comment out an assertion,
12448         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12449         with gcc-4.4.4.
12450
12451         maint: indent with spaces, not TABs
12452         I need to get in the habit of running gnulib's "make check".
12453         Both of these would have been caught.
12454         * m4/largefile.m4: Indent with spaces, not TABs.
12455         * lib/parse-datetime.y (iso_8601_time): Likewise.
12456         Spotted by Pádraig Brady.
12457
12458         test-parse-datetime.c: accommodate a relatively strict gcc warning
12459         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12460         to avoid a warning from gcc's -Werror=missing-declarations.
12461         Insert a few spaces-before-funcall-parenthesis.
12462
12463 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12464
12465         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12466         The parser now accepts ISO 8601 date-time strings with "T" as the
12467         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12468         with a space between the date and time strings.  Now it also parses
12469         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12470         variants like "2004-02-29T16:21:42.333-07:00"
12471         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12472         of day representation using the 'T' separator character.
12473         * doc/parse-datetime.texi (General date syntax): replace use of
12474         deprecated --iso-8601 option with --rfc-3339 in example of date
12475         command output formats that can be parsed.
12476         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12477         lib/parse-datetime.y.
12478         (gmt_offset): New function.
12479         (main): Add additional test cases to validate ISO8601 extended
12480         date and time of day parsing.
12481
12482 2011-08-31  Bruno Haible  <bruno@clisp.org>
12483
12484         freopen: Documentation.
12485         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12486         name.
12487         Reported by Claudio Bley <claudio.bley@gmail.com>.
12488
12489 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12490
12491         freopen: Don't crash if the filename argument is NULL.
12492         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12493         NULL.
12494
12495 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12496
12497         openat: work around AIX 7.1 fstatat bug
12498         Problem reported by Kevin Brott for GNU tar, in the thread containing
12499         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12500         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12501         FSTATAT_ST_SIZE_ETC_BROKEN.
12502         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12503         rpl_fstatat.
12504         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12505         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12506         AC_CHECK_FUNCS_ONCE for fstatat.
12507         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12508         fchmodat, mkdirat, openat and unlinkat.
12509
12510 2011-08-30  Bruno Haible  <bruno@clisp.org>
12511
12512         Avoid endless recursions if config.h includes some header files.
12513         * lib/fopen.c (__need_FILE): Define already before including config.h.
12514         * lib/freopen.c (__need_FILE): Likewise.
12515         * lib/open.c (__need_system_fcntl_h): Likewise.
12516         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12517         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12518         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12519
12520 2011-08-25  Karl Berry  <karl@gnu.org>
12521
12522         * config/srclist.txt (ylwrap): new try.
12523         * build-aux/ylwrap: new file.
12524
12525 2011-08-23  Bruno Haible  <bruno@clisp.org>
12526
12527         tmpdir: Use a good default directory on native Windows.
12528         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12529         (P_tmpdir): Default to _P_tmpdir on native Windows.
12530         (path_search): On native Windows, try the value returned by GetTempPath
12531         before trying P_tmpdir.
12532         * modules/tmpdir (Depends-on): Add pathmax.
12533         Suggested by John Darrington <john@darrington.wattle.id.au>.
12534
12535 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12536
12537         doc: fix typo in README-release
12538         * top/README-release: Capitalize first word of a sentence.
12539
12540 2011-08-19  Jim Meyering  <meyering@redhat.com>
12541
12542         fts: do not exhaust memory when processing million-entry directories
12543         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12544         directory would require about 256*N bytes of memory.  Thus, it was
12545         easy to construct a directory too large to be processed by any of
12546         those tools.  With this change, fts' maximum memory utilization is
12547         now limited to around 30MB.
12548         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12549         (fts_read): When we've processed the final entry (i.e., when
12550         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12551         using the parent entry to read any remaining entries.  Dispatch
12552         depending on what fts_build returns:
12553         - NULL+stop, aka failure: stop
12554         - NULL otherwise: move up in the dir hierarchy
12555         - non-NULL: handle this new entry
12556         (fts_build): Declare and use new local, continue_readdir.
12557         Prepare to be called from fts_read, when the entries
12558         from a partially-read directory have just been exhausted.
12559         In that case, we'll skip the opendir and instead use the parent's
12560         fts_dirp and derive dir_fd from that.
12561         Finally, in the readdir loop, if we read max_entries entries,
12562         exit the loop ensuring *not* to call closedir.  This is required
12563         so that fts_dirp can be reused on a subsequent call.
12564         Prompted by Ben England's report of memory exhaustion in find
12565         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12566
12567         maint: fts: move decl of `dp' down into while loop; split a long line
12568         * lib/fts.c (fts_build): No semantic change.
12569
12570         fts: add/use new struct member, fts_dirp
12571         We are about to use this to manage any directory with
12572         too many entries to read all of them into memory at once.
12573         To do that, we'll need to save the DIR* pointer in each
12574         affected FTSENT struct.
12575         * lib/fts_.h: Include <dirent.h>.
12576         (struct FTSENT) [fts_dirp]: New member.
12577         * lib/fts.c (closedir_and_clear): Define.
12578         Use it in place of closedir so that we are sure to
12579         clear the new fts_dirp member when done with it.
12580         (fts_alloc): Initialize the new member.
12581         (fts_lfree): Free, if needed.
12582
12583         maint: fts: give __opendir2 a new parameter and rename
12584         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12585         than surreptitiously using sole caller's "dir_fd".
12586         (fts_opendir): Rename from __opendir2.
12587
12588         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12589         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12590
12591         maint: fts.c: correct off-by-one indentation
12592         * lib/fts.c (fts_build): Correct indentation, change style
12593         of a couple of block comments, and bracing style.
12594
12595         maint: fts.c: move __opendir2 #define "up" out of function body
12596         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12597
12598         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12599         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12600         out for a long time and besides was useful only on BSD systems.
12601
12602 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         regex: port to Stratus OpenVOS
12605         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12606         define to empty, rather than attempting nonportable optimizations.
12607         Problem reported by Paul Green in:
12608         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12609         and fix suggested by Eric Blake in:
12610         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12611
12612 2011-08-17  Eric Blake  <eblake@redhat.com>
12613
12614         getcwd: fix test failures on mingw
12615         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12616         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12617         test if long directory cannot be created, and allow mingw errno.
12618
12619         getcwd-lgpl: fix m4 to match relaxed test for BSD
12620         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12621         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12622         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12623         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12624         signature problem.
12625
12626         getcwd: fix compilation on mingw64
12627         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12628         getcwd.
12629         Reported by Marc-André Lureau.
12630
12631         pipe2: silence compiler warning
12632         * lib/pipe2.c (pipe2): Hide label if it is not used.
12633
12634 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12635
12636         relocatable-prog: fix link error
12637         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12638         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12639         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12640         into modules/relocatable-lib without noticing that
12641         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12642         also needs to build relocatable.c.
12643
12644 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12645
12646         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12648         shell code: it contained a 'break' that was not in a loop.
12649         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12650         via a shell-language loop; this may have been true in old Autoconf
12651         versions, but it's not true in Autoconf 2.68.  I found this bug
12652         when testing coreutils git on Solaris 8, whose shell complains
12653         about the syntax error.
12654
12655 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12656
12657         * lib/base64.c: Fix comment to reference RFC 4648.
12658         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12659         <gvtulder@gmail.com>.
12660
12661 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12662
12663         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12664
12665         po/Makefile.in.in: fix make -q problem
12666         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12667         rule, since there's no file named 'check-macro-version' and its
12668         use as a file breaks make -q.
12669         (all): Don't depend on check-macro-version.
12670         (CHECK_MACRO_VERSION): New macro.
12671         (stamp-po): Use it.
12672
12673         configmake: fix make -q problem
12674         * modules/configmake (configmake.h): Update configmake.h's time stamp
12675         even if the file does not change.  Otherwise, 'make -q' fails.
12676         Problem reported by Simon Josefsson in
12677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12678
12679 2011-08-11  Jim Meyering  <meyering@redhat.com>
12680
12681         git-version-gen: correct the advice in a comment
12682         * build-aux/git-version-gen: Correct comment.
12683         Don't recommend to list .tarball-version in .gitignore.
12684
12685 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12686
12687         base64: fix off-by-one buffer size bug
12688         Problem and (trivial) fix reported by Gijs van Tulder in
12689         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12690         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12691         * tests/test-base64.c (main): Catch the bug.
12692
12693 2011-08-10  Eric Blake  <eblake@redhat.com>
12694
12695         closein: correct comments
12696         * lib/closein.c (close_stdin): Improve comments.
12697
12698 2011-08-09  Bruno Haible  <bruno@clisp.org>
12699
12700         More tests for 'fseeko'.
12701         * tests/test-fseeko3.c: New file, from Eric Blake.
12702         * tests/test-fseeko3.sh: New file.
12703         * modules/fseeko-tests (Files): Add them.
12704         (TESTS): Add test-fseeko3.sh.
12705         (check_PROGRAMS): Add test-fseeko3.
12706
12707 2011-08-09  Eric Blake  <eblake@redhat.com>
12708
12709         fseeko: remove unneeded hack
12710         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12711
12712         fseeko: fix bug on glibc
12713         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12714         Reported by John W. Eaton.
12715
12716 2011-08-08  Bruno Haible  <bruno@clisp.org>
12717
12718         unictype/base: Fix interoperability with preinstalled libunistring.
12719         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12720         Reported by Simon Josefsson.
12721
12722 2011-08-08  Bruno Haible  <bruno@clisp.org>
12723
12724         iswblank: Detect declaration correctly.
12725         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12726         AC_CHECK_DECLS invocation.
12727
12728 2011-08-08  Bruno Haible  <bruno@clisp.org>
12729
12730         tcgetsid: Detect declaration correctly.
12731         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12732         AC_CHECK_DECLS invocation.
12733         Reported by Simon Josefsson.
12734
12735 2011-08-08  Eric Blake  <eblake@redhat.com>
12736
12737         largefile: fix typo that regressed large file support
12738         * modules/largefile (configure.ac-early): Fix section name.
12739
12740 2011-08-06  Karl Berry  <karl@gnu.org>
12741
12742         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12743         a separate module.
12744
12745 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12746
12747         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12748         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12749         get prototype for free.
12750
12751 2011-08-04  Bruno Haible  <bruno@clisp.org>
12752
12753         Tests for module 'pathmax'.
12754         * modules/pathmax-tests: New file.
12755         * tests/test-pathmax.c: New file.
12756
12757         canonicalize-lgpl: Support larger filenames on the Hurd.
12758         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12759         Reported by Paul Eggert.
12760
12761         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12762         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12763         * lib/chdir-long.h: Include pathmax.h.
12764         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12765         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12766         (PATH_MAX): Remove code that is done by pathmax.h.
12767         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12768         * lib/tmpfile.c: Add a comment.
12769         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12770         * modules/chdir-long (Depends-on): Add pathmax.
12771         * modules/getcwd (Depends-on): Add pathmax.
12772         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12773         is not defined.
12774         * doc/posix-headers/limits.texi: Mention the pathmax module.
12775         * NEWS: Mention the change.
12776
12777 2011-08-02  Bruno Haible  <bruno@clisp.org>
12778
12779         pthread_sigmask: Actually use results of gl_THREADLIB.
12780         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12781         gl_THREADLIB, not gl_[]THREADLIB.
12782         Reported by Eric Blake.
12783
12784 2011-08-02  Jim Meyering  <meyering@redhat.com>
12785
12786         maint.mk: relax the default _gl_TS_function_match regexp
12787         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12788         space between function name and "(" in an "extern" declaration.
12789         That would fail to match a decl with no space there: extern void foo();
12790
12791 2011-07-31  Iain Nicol  <iain@thenicols.net>
12792
12793         git-version-gen: document that EXTRA_DIST must include .version
12794         * build-aux/git-version-gen: In the how-to-use comment, document
12795         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12796         will fail when run from an unpacked distribution tarball.
12797
12798 2011-08-01  Bruno Haible  <bruno@clisp.org>
12799
12800         wctype-h: Fix last change.
12801         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12802         REPLACE_TOWLOWER to 0.
12803         Reported by Sam Steingold <sds@gnu.org>.
12804
12805 2011-07-31  Bruno Haible  <bruno@clisp.org>
12806
12807         frexpl: Update autoconf test.
12808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12809         according to changes of 2011-06-20.
12810
12811 2011-07-31  Bruno Haible  <bruno@clisp.org>
12812
12813         sys_utsname: Add support for Minix.
12814         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12815         <sys/utsname.h>.
12816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12817         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12818
12819 2011-07-31  Bruno Haible  <bruno@clisp.org>
12820
12821         strings: Add support for Minix.
12822         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12823         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12824         * doc/posix-headers/strings.texi: Document the Minix problem.
12825
12826 2011-07-31  Bruno Haible  <bruno@clisp.org>
12827
12828         wctype-h: Add support for Minix.
12829         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12830         REPLACE_TOWLOWER.
12831         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12832         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12833         REPLACE_ISWCNTRL.
12834
12835 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12836
12837         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12838         This is a performance improvement for 64-bit hosts: it causes the
12839         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12840
12841 2011-07-31  Bruno Haible  <bruno@clisp.org>
12842
12843         stdioext: Add support for Minix.
12844         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12845         * lib/fpurge.c (fpurge): Likewise.
12846         * lib/freadahead.c (freadahead): Likewise.
12847         * lib/freadable.c (freadable): Likewise.
12848         * lib/freading.c (freading): Likewise.
12849         * lib/freadptr.c (freadptr): Likewise.
12850         * lib/freadseek.c (freadptrinc): Likewise.
12851         * lib/fseeko.c (rpl_fseeko): Likewise.
12852         * lib/fseterr.c (fseterr): Likewise.
12853         * lib/fwritable.c (fwritable): Likewise.
12854         * lib/fwriting.c (fwriting): Likewise.
12855         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12856         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12857
12858 2011-07-31  Bruno Haible  <bruno@clisp.org>
12859
12860         errno: Port to Minix.
12861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12862         ECONNABORTED are defined.
12863         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12864         GNULIB_defined_ECONNABORTED): New macros.
12865         * lib/strerror-override.h (strerror_override): Test also
12866         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12867         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12868         ECONNABORTED.
12869         * doc/posix-headers/errno.texi: Mention the Minix problem.
12870
12871 2011-07-31  Bruno Haible  <bruno@clisp.org>
12872
12873         Work around declaration collisions on Minix.
12874         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12875         defined, set REPLACE_MBSINIT.
12876         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12877         defined, set REPLACE_MBRTOWC.
12878         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12879         set REPLACE_MBRLEN.
12880         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12881         defined, set REPLACE_MBSRTOWCS.
12882         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12883         defined, set REPLACE_WCRTOMB.
12884         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12885         defined, set REPLACE_WCSRTOMBS.
12886
12887 2011-07-31  Bruno Haible  <bruno@clisp.org>
12888
12889         Add support for Minix with ACK compiler.
12890         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12891         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12892         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12893
12894 2011-07-31  Bruno Haible  <bruno@clisp.org>
12895
12896         Documentation about Minix.
12897         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12898         * doc/glibc-headers/*.texi: Likewise.
12899         * doc/posix-functions/*.texi: Likewise.
12900         * doc/glibc-functions/*.texi: Likewise.
12901
12902 2011-07-31  Bruno Haible  <bruno@clisp.org>
12903
12904         snippet/warn-on-use: Fix indentation.
12905         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12906
12907 2011-07-25  Jim Meyering  <meyering@redhat.com>
12908
12909         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12910         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12911         commands.
12912
12913 2011-07-27  Jim Meyering  <meyering@redhat.com>
12914
12915         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12916         * top/maint.mk (gl_extract_significant_defines_): Now that
12917         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12918         gnulib/lib/signal.in.h, and now that we recommend to
12919         define-if-undefined those two symbols in application code,
12920         we must filter them out of the "significant" list.
12921         This avoids a "make syntax-check" failure in coreutils.
12922
12923 2011-07-26  Eric Blake  <eblake@redhat.com>
12924
12925         warnings: add comments about previous patch
12926         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12927         * m4/include_next.m4: Likewise.
12928         * m4/warn-on-use.m4: Likewise.
12929         * m4/warnings.m4: Likewise, and simplify use.
12930         Suggested by Stefano Lattarini.
12931
12932         include-next, warnings: support older autoconf
12933         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12934         AS_VAR_PUSHDEF in a way that works with older autoconf.
12935         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12936         Reported by Daniel P. Berrange.
12937
12938 2011-07-25  Bruno Haible  <bruno@clisp.org>
12939
12940         fseek, ftell: Fix doc.
12941         * doc/posix-functions/fseek.texi: Reword statement about
12942         AC_SYS_LARGEFILE.
12943         * doc/posix-functions/ftell.texi: Likewise.
12944
12945 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12946             Bruno Haible  <bruno@clisp.org>
12947
12948         Add dependencies to the 'largefile' module.
12949         * modules/fopen (Depends-on): Add 'largefile'.
12950         * modules/freopen (Depends-on): Likewise.
12951         * modules/fseeko (Depends-on): Likewise.
12952         * modules/ftello (Depends-on): Likewise.
12953         * modules/glob (Depends-on): Likewise.
12954         * modules/lseek (Depends-on): Likewise.
12955         * modules/lstat (Depends-on): Likewise.
12956         * modules/mkostemp (Depends-on): Likewise.
12957         * modules/mkostemps (Depends-on): Likewise.
12958         * modules/mkstemp (Depends-on): Likewise.
12959         * modules/mkstemps (Depends-on): Likewise.
12960         * modules/open (Depends-on): Likewise.
12961         * modules/openat (Depends-on): Likewise.
12962         * modules/pread (Depends-on): Likewise.
12963         * modules/pwrite (Depends-on): Likewise.
12964         * modules/scandir (Depends-on): Likewise.
12965         * modules/stat (Depends-on): Likewise.
12966         * modules/tmpfile (Depends-on): Likewise.
12967         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12968         since the containing module now depends on the largefile module.
12969         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12970         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12971         off_t is fixed by gnulib.
12972         * doc/posix-functions/freopen.texi: Likewise.
12973         * doc/posix-functions/fseeko.texi: Likewise.
12974         * doc/posix-functions/fstatat.texi: Likewise.
12975         * doc/posix-functions/ftello.texi: Likewise.
12976         * doc/posix-functions/glob.texi: Likewise.
12977         * doc/posix-functions/lseek.texi: Likewise.
12978         * doc/posix-functions/lstat.texi: Likewise.
12979         * doc/posix-functions/mkstemp.texi: Likewise.
12980         * doc/posix-functions/open.texi: Likewise.
12981         * doc/posix-functions/openat.texi: Likewise.
12982         * doc/posix-functions/pread.texi: Likewise.
12983         * doc/posix-functions/pwrite.texi: Likewise.
12984         * doc/posix-functions/scandir.texi: Likewise.
12985         * doc/posix-functions/stat.texi: Likewise.
12986         * doc/posix-functions/tmpfile.texi: Likewise.
12987         * doc/glibc-functions/mkostemp.texi: Likewise.
12988         * doc/glibc-functions/mkostemps.texi: Likewise.
12989         * doc/glibc-functions/mkstemps.texi: Likewise.
12990
12991 2011-07-25  Bruno Haible  <bruno@clisp.org>
12992
12993         fcntl: Move AC_LIBOBJ invocation to module description.
12994         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12995         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12996
12997         fcntl: Remove call-in from fchdir.m4.
12998         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13000
13001         dup3: Remove potential call-in from fchdir.m4.
13002         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13004
13005         dup2: Move AC_LIBOBJ invocation to module description.
13006         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13007         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13008         Don't invoke AC_LIBOBJ.
13009         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13010
13011         dup2: Remove call-in from fchdir.m4.
13012         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13014
13015         fclose: Move AC_LIBOBJ invocation to module description.
13016         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13017         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13018         to 1.
13019         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13020
13021         fclose: Remove call-in from close.m4.
13022         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13023         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13024
13025         close: Move AC_LIBOBJ invocation to module description.
13026         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13027         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13028         1.
13029         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13030
13031         close: Remove call-in from fchdir.m4.
13032         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13034
13035         open: Move AC_LIBOBJ invocation to module description.
13036         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13037         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13038         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13039
13040         open: Remove call-in from fchdir.m4.
13041         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13043
13044         fchdir: Start to remove gl_REPLACE_* idiom.
13045         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13046         (gl_FUNC_FCHDIR): Invoke it.
13047
13048 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13049
13050         * lib/ftell.c (ftell): Comment out cast.
13051
13052         close: use gl_REPLACE_FCLOSE only if defined
13053         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13054         is defined.  The close module doesn't depend on the fclose module
13055         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13057         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13058
13059 2011-07-24  Jim Meyering  <meyering@redhat.com>
13060
13061         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13062         * tests/test-select.h (test_function): Declare as "static".
13063
13064 2011-07-24  Bruno Haible  <bruno@clisp.org>
13065
13066         doc: Mention the effects of AC_SYS_LARGEFILE.
13067         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13068         on this function.
13069         * doc/posix-functions/aio_error.texi: Likewise.
13070         * doc/posix-functions/aio_fsync.texi: Likewise.
13071         * doc/posix-functions/aio_read.texi: Likewise.
13072         * doc/posix-functions/aio_return.texi: Likewise.
13073         * doc/posix-functions/aio_suspend.texi: Likewise.
13074         * doc/posix-functions/aio_write.texi: Likewise.
13075         * doc/posix-functions/fgetpos.texi: Likewise.
13076         * doc/posix-functions/fopen.texi: Likewise.
13077         * doc/posix-functions/freopen.texi: Likewise.
13078         * doc/posix-functions/fsetpos.texi: Likewise.
13079         * doc/posix-functions/fstatvfs.texi: Likewise.
13080         * doc/posix-functions/ftruncate.texi: Likewise.
13081         * doc/posix-functions/ftw.texi: Likewise.
13082         * doc/posix-functions/getrlimit.texi: Likewise.
13083         * doc/posix-functions/glob.texi: Likewise.
13084         * doc/posix-functions/lio_listio.texi: Likewise.
13085         * doc/posix-functions/lockf.texi: Likewise.
13086         * doc/posix-functions/mkstemp.texi: Likewise.
13087         * doc/posix-functions/mmap.texi: Likewise.
13088         * doc/posix-functions/nftw.texi: Likewise.
13089         * doc/posix-functions/openat.texi: Likewise.
13090         * doc/posix-functions/opendir.texi: Likewise.
13091         * doc/posix-functions/posix_fadvise.texi: Likewise.
13092         * doc/posix-functions/posix_fallocate.texi: Likewise.
13093         * doc/posix-functions/pread.texi: Likewise.
13094         * doc/posix-functions/pwrite.texi: Likewise.
13095         * doc/posix-functions/readdir.texi: Likewise.
13096         * doc/posix-functions/readdir_r.texi: Likewise.
13097         * doc/posix-functions/rewinddir.texi: Likewise.
13098         * doc/posix-functions/scandir.texi: Likewise.
13099         * doc/posix-functions/seekdir.texi: Likewise.
13100         * doc/posix-functions/setrlimit.texi: Likewise.
13101         * doc/posix-functions/statvfs.texi: Likewise.
13102         * doc/posix-functions/telldir.texi: Likewise.
13103         * doc/posix-functions/tmpfile.texi: Likewise.
13104         * doc/posix-functions/truncate.texi: Likewise.
13105         * doc/glibc-functions/fallocate.texi: Likewise.
13106         * doc/glibc-functions/fstatfs.texi: Likewise.
13107         * doc/glibc-functions/fts_children.texi: Likewise.
13108         * doc/glibc-functions/fts_read.texi: Likewise.
13109         * doc/glibc-functions/getdirentries.texi: Likewise.
13110         * doc/glibc-functions/mkostemp.texi: Likewise.
13111         * doc/glibc-functions/mkostemps.texi: Likewise.
13112         * doc/glibc-functions/mkstemps.texi: Likewise.
13113         * doc/glibc-functions/preadv.texi: Likewise.
13114         * doc/glibc-functions/pwritev.texi: Likewise.
13115         * doc/glibc-functions/sendfile.texi: Likewise.
13116         * doc/glibc-functions/statfs.texi: Likewise.
13117
13118 2011-07-24  Bruno Haible  <bruno@clisp.org>
13119
13120         doc: Fix typo.
13121         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13122
13123 2011-07-24  Bruno Haible  <bruno@clisp.org>
13124
13125         doc: Mention fsusage.
13126         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13127
13128 2011-07-24  Bruno Haible  <bruno@clisp.org>
13129
13130         doc: Mention new glibc headers and functions.
13131         * doc/glibc-headers/gshadow.texi: New file.
13132         * doc/glibc-functions/endsgent.texi: New file.
13133         * doc/glibc-functions/fgetsgent.texi: New file.
13134         * doc/glibc-functions/fgetsgent_r.texi: New file.
13135         * doc/glibc-functions/getsgent.texi: New file.
13136         * doc/glibc-functions/getsgent_r.texi: New file.
13137         * doc/glibc-functions/getsgnam.texi: New file.
13138         * doc/glibc-functions/getsgnam_r.texi: New file.
13139         * doc/glibc-functions/putsgent.texi: New file.
13140         * doc/glibc-functions/setsgent.texi: New file.
13141         * doc/glibc-functions/sgetsgent.texi: New file.
13142         * doc/glibc-functions/sgetsgent_r.texi: New file.
13143         * doc/glibc-functions/malloc_info.texi: New file.
13144         * doc/glibc-functions/preadv.texi: New file.
13145         * doc/glibc-functions/pwritev.texi: New file.
13146         * doc/glibc-functions/register_printf_modifier.texi: New file.
13147         * doc/glibc-functions/register_printf_specifier.texi: New file.
13148         * doc/glibc-functions/register_printf_type.texi: New file.
13149         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13150         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13151         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13152         * doc/glibc-functions/pthread_getname_np.texi: New file.
13153         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13154         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13155         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13156         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13157         * doc/glibc-functions/pthread_setname_np.texi: New file.
13158         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13159         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13160         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13161         * doc/glibc-functions/qsort_r.texi: New file.
13162         * doc/glibc-functions/quick_exit.texi: New file.
13163         * doc/glibc-functions/syncfs.texi: New file.
13164         * doc/gnulib.texi: Include them.
13165         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13166         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13167         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13168         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13169         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13170         * doc/glibc-functions/execvpe.texi: Likewise.
13171
13172 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13173
13174         ftell: don't include <unistd.h>
13175         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13176         guaranteed to define off_t, and the ftell module depends on the
13177         stdio module.
13178
13179         ftell: do not assume wraparound signed arithmetic
13180         * lib/ftell.c: Include <limits.h>.
13181         (ftell): Don't assume wraparound signed arithmetic.
13182
13183 2011-07-24  Bruno Haible  <bruno@clisp.org>
13184
13185         close: No longer depend on module 'fclose'.
13186         * modules/close (Depends-on): Remove fclose.
13187         * NEWS: Mention the change.
13188         Suggested by Sam Steingold <sds@gnu.org>.
13189
13190 2011-07-24  Bruno Haible  <bruno@clisp.org>
13191
13192         fsusage: Enable large volume support on AIX >= 5.2.
13193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13194         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13195         instead of STAT_STATVFS.
13196         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13197
13198         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13199         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13200         f_blocks field only on MacOS X.
13201
13202         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13204         * modules/fsusage (Depends-on): Add largefile.
13205
13206 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13207
13208         * README: Modernize discussion of signed integers.
13209         Assuming overflow wraparound is no longer safe.
13210         Mention ones' complement and signed magnitude.
13211
13212 2011-07-22  Bruno Haible  <bruno@clisp.org>
13213
13214         select tests, pselect tests: Refactor.
13215         * tests/test-select.h: New file, extracted from tests/test-select.c.
13216         (select_fn): New type.
13217         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13218         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13219         test_pipe): Add my_select argument.
13220         (test_function): Renamed from main. Add my_select argument.
13221         * tests/test-select.c: Move most code to tests/test-select.h. Include
13222         test-select.h.
13223         * modules/select-tests (Files): Add tests/test-select.h.
13224         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13225         (my_select, main): New functions.
13226         * modules/pselect-tests (Files): Add tests/test-select.h,
13227         tests/macros.h, tests/signature.h.
13228         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13229         (configure.ac): Check for <sys/wait.h>.
13230
13231 2011-07-22  Bruno Haible  <bruno@clisp.org>
13232
13233         sys_select tests: Check the signature of FD_*.
13234         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13235         signature tests from here...
13236         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13237         here.
13238         * modules/sys_select-tests (Files): Add tests/signature.h.
13239
13240 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13241
13242         largefile: new module, replacing large-inode
13243         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13244         * MODULES.html.sh: Add largefile, remove large-inode.
13245         * modules/largefile, m4/largefile.m4: New files.
13246         * modules/large-inode, m4/large-inode.m4: Remove.
13247
13248         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13249         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13250         implementations that use only 32 bits to count blocks.
13251         On typical hosts with 1024-byte blocks, this fails with file
13252         systems as small as 4 TiB.  Problem reported by Herb Wartens
13253         <http://debbugs.gnu.org/9140> and this should also fix a similar
13254         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13255
13256         large-inode: New module
13257         * MODULES.html.sh: Add it.
13258         * modules/large-inode, m4/large-inode.m4: New files.
13259
13260         extensions: Enable extensions on MacOS X 10.5 and later.
13261         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13262
13263 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13264
13265         file-has-acl: use acl_extended_file_nofollow if available
13266         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13267         (acl_extended_file): New macro.
13268         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13269         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13270
13271 2011-07-21  Bruno Haible  <bruno@clisp.org>
13272
13273         Declare system functions in a way that works with C++.
13274         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13275         declare fdopendir as extern "C".
13276         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13277         declare frexpl as extern "C".
13278         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13279         declare gai_strerror as extern "C".
13280         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13281         programs, declare gai_strerror as extern "C".
13282         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13283         declare getlogin_r as extern "C".
13284         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13285         as extern "C".
13286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13287         declare ldexpl as extern "C".
13288         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13289         as extern "C".
13290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13291         program, declare getmntinfo as extern "C".
13292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13293         stpncpy as extern "C".
13294         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13295         program, declare __xpg_strerror_r as extern "C".
13296         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13297         strndup as extern "C".
13298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13299         declare memset and bzero as extern "C".
13300         Reported by Sam Steingold <sds@gnu.org>.
13301
13302 2011-07-12  Jim Meyering  <meyering@redhat.com>
13303
13304         maint.mk: prohibit inclusion of "verify.h" without use
13305         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13306
13307 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13308
13309         timer-time: A new module to check for timer_settime()
13310         * m4/timer_time.m4: Check for the posix function.
13311         * modules/timer-time: Add the new module.
13312         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13313         Mention it.
13314
13315 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13316             Bruno Haible  <bruno@clisp.org>
13317
13318         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13320         not defined, assume POSIX threads and look for pthread_sigmask in
13321         $LIBS, without changing $CPPFLAGS.
13322
13323 2011-07-19  Bruno Haible  <bruno@clisp.org>
13324
13325         strstr: Update cross-compilation guess.
13326         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13327         CPUs, guess no, in view of glibc
13328         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13329         Suggested by Eric Blake. Reported by Reuben Thomas.
13330
13331 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13332
13333         getopt-gnu: suppress core dumps from detection code
13334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13335         to suppress core dumps that may well occur on glibc systems.
13336         * modules/getopt-gnu: Depend on nocrash.
13337
13338 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         pthread_sigmask: ensure usleep is declared
13341         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13342         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13343
13344 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13345
13346         doc: Document NonStop portability issues.
13347         * doc/posix-functions/sigaction.texi (sigaction):
13348         * doc/posix-headers/signal.texi (signal.h):
13349         Document NonStop.  See Joachim Schmitz in
13350         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13351
13352 2011-07-15  Bruno Haible  <bruno@clisp.org>
13353
13354         ffsl, ffsll: Avoid unportable behaviour.
13355         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13356
13357 2011-07-15  Bruno Haible  <bruno@clisp.org>
13358
13359         ffs: More tests.
13360         * tests/test-ffs.c (NBITS): New macro.
13361         (main): Add more tests.
13362         * tests/test-ffsl.c (NBITS): New macro.
13363         (main): Add more tests.
13364         * tests/test-ffsll.c (NBITS): New macro.
13365         (main): Add more tests.
13366
13367 2011-07-15  Eric Blake  <eblake@redhat.com>
13368
13369         ffsl, ffsll: new modules
13370         * modules/ffsl: New file.
13371         * modules/ffsll: Likewise.
13372         * m4/ffsl.m4: Likewise.
13373         * m4/ffsll.m4: Likewise.
13374         * lib/ffsl.c: Likewise.
13375         * lib/ffsl.h: Likewise.
13376         * lib/ffsll.c: Likewise.
13377         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13378         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13379         * modules/string (Makefile.am): Substitute witnesses.
13380         * lib/strings.in.h (ffsl, ffsll): Declare.
13381         * modules/ffsl-tests: New test file.
13382         * modules/ffsll-tests: Likewise.
13383         * tests/test-ffsl.c: Likewise.
13384         * tests/test-ffsll.c: Likewise.
13385         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13386         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13387         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13388
13389         ffs: fix m4 prerequisite
13390         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13391
13392         ffs: avoid undefined behavior
13393         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13394         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13395         Reported by Bruno Haible.
13396
13397 2011-07-12  Bruno Haible  <bruno@clisp.org>
13398
13399         pthread_sigmask: Rely on module 'threadlib'.
13400         * modules/pthread_sigmask (Depends-on): Add threadlib.
13401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13402         is defined.
13403
13404 2011-07-12  Bruno Haible  <bruno@clisp.org>
13405
13406         regex: Depend on module 'strcase'.
13407         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13408
13409 2011-07-12  Jim Meyering  <meyering@redhat.com>
13410
13411         warn-on-use: fix typo in file name
13412         * modules/snippet/warn-on-use (Files): Correct file name:
13413         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13414
13415 2011-07-12  Bruno Haible  <bruno@clisp.org>
13416
13417         strings: Document module.
13418         * doc/posix-headers/strings.texi: Mention module 'strings'.
13419
13420 2011-07-12  Bruno Haible  <bruno@clisp.org>
13421
13422         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13423         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13424         (Files, Makefile.am): Update.
13425         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13426         * modules/stdlib (Depends-on): Update.
13427
13428 2011-07-12  Bruno Haible  <bruno@clisp.org>
13429
13430         * NEWS: Mention the changes.
13431
13432         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13433         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13434         (Files, Makefile.am): Update.
13435         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13436         * modules/arpa_inet (Depends-on): Update.
13437         * modules/ctype (Depends-on): Update.
13438         * modules/dirent (Depends-on): Update.
13439         * modules/fcntl-h (Depends-on): Update.
13440         * modules/glob (Depends-on): Update.
13441         * modules/iconv-h (Depends-on): Update.
13442         * modules/inttypes-incomplete (Depends-on): Update.
13443         * modules/langinfo (Depends-on): Update.
13444         * modules/locale (Depends-on): Update.
13445         * modules/math (Depends-on): Update.
13446         * modules/netdb (Depends-on): Update.
13447         * modules/poll-h (Depends-on): Update.
13448         * modules/pty (Depends-on): Update.
13449         * modules/search (Depends-on): Update.
13450         * modules/signal (Depends-on): Update.
13451         * modules/spawn (Depends-on): Update.
13452         * modules/stdio (Depends-on): Update.
13453         * modules/stdlib (Depends-on): Update.
13454         * modules/string (Depends-on): Update.
13455         * modules/strings (Depends-on): Update.
13456         * modules/sys_file (Depends-on): Update.
13457         * modules/sys_ioctl (Depends-on): Update.
13458         * modules/sys_select (Depends-on): Update.
13459         * modules/sys_socket (Depends-on): Update.
13460         * modules/sys_stat (Depends-on): Update.
13461         * modules/sys_time (Depends-on): Update.
13462         * modules/sys_times (Depends-on): Update.
13463         * modules/sys_utsname (Depends-on): Update.
13464         * modules/sys_wait (Depends-on): Update.
13465         * modules/termios (Depends-on): Update.
13466         * modules/time (Depends-on): Update.
13467         * modules/unistd (Depends-on): Update.
13468         * modules/wchar (Depends-on): Update.
13469         * modules/wctype-h (Depends-on): Update.
13470         * MODULES.html.sh (Support for building libraries and executables):
13471         Update.
13472
13473         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13474         * modules/snippet/unused-parameter: Renamed from
13475         modules/unused-parameter.
13476         (Files, Makefile.am): Update.
13477         * build-aux/snippet/unused-parameter.h: Renamed from
13478         build-aux/unused-parameter.h.
13479         * modules/selinux-h (Depends-on): Update.
13480         * modules/unistr/base (Depends-on): Update.
13481         * MODULES.html.sh (Core language properties): Update.
13482
13483         Rename module 'link-warning' to 'snippet/link-warning'.
13484         * modules/snippet/link-warning: Renamed from modules/link-warning.
13485         (Files, Makefile.am): Update.
13486         * build-aux/snippet/link-warning.h: Renamed from
13487         build-aux/link-warning.h.
13488         * MODULES.html.sh (Support for building libraries and executables):
13489         Update.
13490
13491         Rename module 'c++defs' to 'snippet/c++defs'.
13492         * modules/snippet/c++defs: Renamed from modules/c++defs.
13493         (Files, Makefile.am): Update.
13494         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13495         * modules/arpa_inet (Depends-on): Update.
13496         * modules/ctype (Depends-on): Update.
13497         * modules/dirent (Depends-on): Update.
13498         * modules/fcntl-h (Depends-on): Update.
13499         * modules/glob (Depends-on): Update.
13500         * modules/iconv-h (Depends-on): Update.
13501         * modules/langinfo (Depends-on): Update.
13502         * modules/locale (Depends-on): Update.
13503         * modules/math (Depends-on): Update.
13504         * modules/netdb (Depends-on): Update.
13505         * modules/poll-h (Depends-on): Update.
13506         * modules/pty (Depends-on): Update.
13507         * modules/search (Depends-on): Update.
13508         * modules/signal (Depends-on): Update.
13509         * modules/spawn (Depends-on): Update.
13510         * modules/stdio (Depends-on): Update.
13511         * modules/stdlib (Depends-on): Update.
13512         * modules/string (Depends-on): Update.
13513         * modules/strings (Depends-on): Update.
13514         * modules/sys_ioctl (Depends-on): Update.
13515         * modules/sys_select (Depends-on): Update.
13516         * modules/sys_socket (Depends-on): Update.
13517         * modules/sys_stat (Depends-on): Update.
13518         * modules/sys_time (Depends-on): Update.
13519         * modules/sys_wait (Depends-on): Update.
13520         * modules/termios (Depends-on): Update.
13521         * modules/time (Depends-on): Update.
13522         * modules/unistd (Depends-on): Update.
13523         * modules/wchar (Depends-on): Update.
13524         * modules/wctype-h (Depends-on): Update.
13525
13526         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13527         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13528         (Files, Makefile.am): Update.
13529         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13530         * modules/argv-iter (Depends-on): Update.
13531         * modules/arpa_inet (Depends-on): Update.
13532         * modules/dirent (Depends-on): Update.
13533         * modules/fcntl-h (Depends-on): Update.
13534         * modules/fnmatch (Depends-on): Update.
13535         * modules/getopt-posix (Depends-on): Update.
13536         * modules/glob (Depends-on): Update.
13537         * modules/iconv-h (Depends-on): Update.
13538         * modules/inttypes-incomplete (Depends-on): Update.
13539         * modules/locale (Depends-on): Update.
13540         * modules/math (Depends-on): Update.
13541         * modules/netdb (Depends-on): Update.
13542         * modules/search (Depends-on): Update.
13543         * modules/signal (Depends-on): Update.
13544         * modules/spawn (Depends-on): Update.
13545         * modules/stdio (Depends-on): Update.
13546         * modules/stdlib (Depends-on): Update.
13547         * modules/string (Depends-on): Update.
13548         * modules/strings (Depends-on): Update.
13549         * modules/sys_socket (Depends-on): Update.
13550         * modules/sys_stat (Depends-on): Update.
13551         * modules/sys_time (Depends-on): Update.
13552         * modules/sys_times (Depends-on): Update.
13553         * modules/sys_utsname (Depends-on): Update.
13554         * modules/time (Depends-on): Update.
13555         * modules/unistd (Depends-on): Update.
13556         * modules/wchar (Depends-on): Update.
13557         * MODULES.html.sh (Support for building libraries and executables):
13558         Update.
13559
13560 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13561
13562         Improvements on _Noreturn and related modules.
13563
13564         modules/_Exit-tests: test _Noreturn too
13565         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13566         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13567         (main): Use them.
13568
13569         stdnoreturn, stdnoreturn-tests: remove modules
13570         They're not needed here and a bit premature for use elsewhere.  See
13571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13572         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13573         * tests/test-stdnoreturn.c: Remove files.
13574         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13575         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13576         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13577         and using noreturn.
13578         * modules/openat, modules/sigpipe-die, modules/xalloc:
13579         * modules/xmemdup0, modules/xstrtol:
13580         Remove dependency on stdnoreturn.
13581
13582         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13583         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13584         Reparenthesize to avoid GCC warning.
13585         Support Microsoft's syntax.
13586         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13587
13588         _Noreturn-tests: remove module
13589         * modules/_Noreturn-tests: Remove.
13590         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13591         * tests/test-_Noreturn.c: Remove.
13592         * tests/test-stdnoreturn.c: Merge from the old
13593         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13594
13595 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13596
13597         _Noreturn, stdnoreturn, and related modules.
13598
13599         * top/maint.mk: Adjust to new noreturn support.
13600         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13601         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13602
13603         xalloc: use stdnoreturn.h
13604         * lib/xalloc.h: Include <stdnoreturn.h>.
13605         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13606         * modules/xalloc (Depends-on): Add stdnoreturn.
13607
13608         xstrtol: use stdnoreturn.h
13609         * lib/xstrtol.h: Include <stdnoreturn.h>.
13610         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13611         * modules/xstrtol (Depends-on): Add stdnoreturn.
13612
13613         xmemdup0: use stdnoreturn.h
13614         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13615         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13616         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13617
13618         sigpipe-die: use stdnoreturn.h
13619         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13620         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13621         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13622
13623         openat: use stdnoreturn.h
13624         * lib/openat.h: Include <stdnoreturn.h>.
13625         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13626         * modules/openat (Depends-on): Add stdnoreturn.
13627
13628         * lib/openat-die.c (openat_save_fail): Modernize comment.
13629
13630         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13631
13632         * lib/glthread/thread.h: Modernize comment.
13633
13634         obstack: use _Noreturn
13635         * lib/obstack.c (__attribute__): Remove macro.
13636         (print_and_abort): Use _Noreturn.
13637
13638         c-stack: use _Noreturn
13639         * lib/c-stack.c (die, overflow_handler, segv_handler):
13640         Use _Noreturn rather than __attribute__((noreturn)).
13641
13642         argmatch-tests, exclude_tests: use _Noreturn
13643         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13644         Remove.
13645         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13646
13647         stdlib: use _Noreturn
13648         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13649         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13650         * modules/stdlib (Depends-on): Add _Noreturn.
13651         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13652
13653         stdnoreturn-tests: new module
13654         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13655
13656         stdnoreturn: new module
13657         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13658         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13659
13660         _Noreturn-tests: new module
13661         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13662
13663         _Noreturn: new module
13664         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13665         New section, mentioning it.
13666         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13667
13668         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13669
13670 2011-07-11  Eric Blake  <eblake@redhat.com>
13671
13672         ffs: new module
13673         * modules/ffs: New file.
13674         * m4/ffs.m4: Likewise.
13675         * lib/ffs.c: Likewise.
13676         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13677         * modules/strings (Makefile.am): Substitute witness.
13678         (Depends-on): Add c++defs.
13679         * lib/strings.in.h (ffs): Declare.
13680         * modules/ffs-tests: New test file.
13681         * tests/test-ffs.c: Test new module.
13682         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13683         * doc/posix-functions/ffs.texi (ffs): Likewise.
13684
13685         regex: avoid compiler warning
13686         * lib/regex.c (includes): Include <strings.h>, for use of
13687         strcasecmp in regcomp.c.
13688         Reported by Joachim Schmitz.
13689
13690 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13691
13692         stdint: respect system's intmax_t if INTMAX_MAX
13693         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13694         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13695         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13696         long but int64_t is long long, and where we will clash with the
13697         system intmax_t if we override it.  See
13698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13699         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13700         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13701         similarly for UINTMAX_C.
13702
13703 2011-07-08  Bruno Haible  <bruno@clisp.org>
13704
13705         pthread_sigmask tests: Avoid a compiler warning.
13706         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13707         non-zero.
13708
13709         sigprocmask tests: A better way to avoid a compiler warning.
13710         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13711         (main): Complain if system() returns non-zero.
13712         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13713
13714 2011-07-08  Bruno Haible  <bruno@clisp.org>
13715
13716         pthread_sigmask: Work around IRIX bug.
13717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13718         bug.
13719         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13720         there may be unblocked pending signals.
13721         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13722
13723 2011-07-08  Bruno Haible  <bruno@clisp.org>
13724
13725         pthread_sigmask: Work around Cygwin bug.
13726         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13727         bug.
13728         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13729         the system's pthread_sigmask function.
13730         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13731
13732 2011-07-08  Bruno Haible  <bruno@clisp.org>
13733
13734         pthread_sigmask: Work around bug in single-threaded implementation.
13735         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13736         FreeBSD, HP-UX, Solaris bug.
13737         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13738         * lib/pthread_sigmask.c: Include <stddef.h>.
13739         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13740         the system's pthread_sigmask function.
13741         * modules/pthread_sigmask (configure.ac): Invoke
13742         gl_PREREQ_PTHREAD_SIGMASK.
13743         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13744         HP-UX, Solaris.
13745
13746 2011-07-08  Eric Blake  <eblake@redhat.com>
13747
13748         test-sigprocmask: avoid compiler warning
13749         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13750         * tests/test-sigprocmask.c (main): Use it to silence warning.
13751         Reported by Jim Meyering.
13752
13753         test-snprintf: avoid compiler warning
13754         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13755         * tests/test-vsnprintf.c (main): Likewise.
13756         Reported by Jim Meyering.
13757
13758 2011-07-08  Bruno Haible  <bruno@clisp.org>
13759
13760         Tests for module 'pthread_sigmask'.
13761         * modules/pthread_sigmask-tests: New file.
13762         * tests/test-pthread_sigmask1.c: New file, based on
13763         tests/test-sigprocmask.c.
13764         * tests/test-pthread_sigmask2.c: New file.
13765
13766 2011-07-08  Jim Meyering  <meyering@redhat.com>
13767
13768         test-getopt.h: avoid warning about an unused variable
13769         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13770
13771 2011-07-07  Jim Meyering  <meyering@redhat.com>
13772
13773         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13774         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13775         now that it no longer contains leading TABs.
13776         Remove unused "url=FIXME" statement.
13777
13778 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13779
13780         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13782         When gl_THREADLIB is not in use, assume that the POSIX sematics
13783         are desired.  This is better for Emacs, which uses POSIX semantics
13784         on GNUish and/or POSIXish platforms, and does not use threads at
13785         all otherwise.
13786
13787         pthread_sigmask: fix typo when testing for libraries
13788         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13789         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13790
13791 2011-07-08  Eric Blake  <eblake@redhat.com>
13792
13793         fts: introduce FTS_NOATIME
13794         * lib/fts_.h (FTS_NOATIME): New bit flag.
13795         (FTS_OPTIONMASK): Adjust.
13796         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13797         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13798
13799 2011-07-08  Bruno Haible  <bruno@clisp.org>
13800
13801         Tests for module 'thread'.
13802         * modules/thread-tests: New file.
13803         * tests/test-thread_self.c: New file.
13804         * tests/test-thread_create.cc: New file.
13805
13806 2011-07-08  Bruno Haible  <bruno@clisp.org>
13807
13808         thread: Avoid gcc warnings when using gl_thread_self().
13809         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13810         'void *'.
13811         (gl_thread_self_pointer): Update.
13812
13813 2011-07-07  Bruno Haible  <bruno@clisp.org>
13814
13815         signal-c++-tests: Check declaration of pthread_sigmask.
13816         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13817         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13818         $(LIB_PTHREAD_SIGMASK).
13819
13820 2011-07-07  Bruno Haible  <bruno@clisp.org>
13821
13822         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13823         * lib/signal.in.h (pthread_sigmask): Override if
13824         REPLACE_PTHREAD_SIGMASK is 1.
13825         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13826         REPLACE_PTHREAD_SIGMASK.
13827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13828         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13829         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13830         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13831         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13832
13833 2011-07-07  Bruno Haible  <bruno@clisp.org>
13834
13835         pthread_sigmask: Ensure declaration in <signal.h>.
13836         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13837         include <pthread.h>.
13838         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13839         problem.
13840
13841 2011-07-07  Bruno Haible  <bruno@clisp.org>
13842
13843         pthread_sigmask: Document the module.
13844         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13845
13846 2011-07-07  Bruno Haible  <bruno@clisp.org>
13847
13848         pthread_sigmask: Follow gnulib conventions.
13849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13850         gl_PTHREAD_SIGMASK.
13851         * modules/pthread_sigmask (configure.ac): Update.
13852
13853 2011-07-07  Bruno Haible  <bruno@clisp.org>
13854
13855         pthread_sigmask: Make declaration C++ safe.
13856         * lib/signal.in.h: In two special conditions, just do an #include_next.
13857         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13858         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13859         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13860         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13861         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13862         not REPLACE_PTHREAD_MASK.
13863         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13864         not REPLACE_PTHREAD_MASK.
13865         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13866
13867 2011-07-07  Bruno Haible  <bruno@clisp.org>
13868
13869         pthread_sigmask: Fix return value.
13870         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13871         * lib/pthread_sigmask.c: New file.
13872         * modules/pthread_sigmask (Files): Add it.
13873         (configure.ac): Invoke AC_LIBOBJ.
13874
13875 2011-07-07  Eric Blake  <eblake@redhat.com>
13876
13877         getopt: more portable argv creation
13878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13879         const, use char arrays rather than strings.
13880         Suggested by Paul Eggert.
13881
13882 2011-07-07  Bruno Haible  <bruno@clisp.org>
13883
13884         Tests for module 'sigprocmask'.
13885         * modules/sigprocmask-tests: New file.
13886         * tests/test-sigprocmask.c: New file.
13887
13888 2011-07-07  Bruno Haible  <bruno@clisp.org>
13889
13890         float tests: Tweak.
13891         * tests/test-float.c (main): Tweak skip message.
13892
13893 2011-07-07  Eric Blake  <eblake@redhat.com>
13894
13895         getopt: avoid compiler warning during configure
13896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13897         assigning string literals to non-const pointer.
13898
13899         getopt-gnu: avoid crash in glibc getopt
13900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13901         * tests/test-getopt.h (test_getopt): Enhance test.
13902         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13903         * doc/posix-functions/getopt.texi (getopt): Document it.
13904         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13905         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13906         Likewise.
13907
13908 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13909
13910         getopt: handle W; without long options in getopt [BZ #12922]
13911         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13912         but no long options are defined, just return 'W'.
13913
13914 2011-07-07  Bruno Haible  <bruno@clisp.org>
13915
13916         Avoid literal tabs.
13917         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13918         variable containing a tab instead of a literal tab.
13919         Reported by Jim Meyering.
13920
13921 2011-07-07  Bruno Haible  <bruno@clisp.org>
13922
13923         Comments.
13924         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13925
13926 2011-07-06  Bruno Haible  <bruno@clisp.org>
13927
13928         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13929         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13930         <winsock2.h>.
13931         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13932         lib/sys_socket.in.h.
13933         (close, gethostname): Hide declarations from <winsock2.h>.
13934         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13935         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13936         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13937         (select): Don't override if gnulib's <sys/select.h> was already
13938         included.
13939         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13940         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13941         setsockopt, shutdown, select): Tweak indentation.
13942
13943 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13944
13945         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13946         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13947         in an application that does not use the sys_select module.
13948
13949 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13950
13951         poll: do not return 0 on timeout=-1
13952         * lib/poll.c: Loop with yield if no events occured
13953
13954 2011-07-06  Eric Blake  <eblake@redhat.com>
13955
13956         pthread_sigmask: always replace when not using pthread
13957         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13958         replacement when using some threading other than pthread.  Fix
13959         logic bug.
13960
13961 2011-07-06  Bruno Haible  <bruno@clisp.org>
13962
13963         Comments.
13964         * m4/printf.m4: Update comments about mingw.
13965
13966 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13967
13968         sys_select: define sigset_t more portably
13969         * lib/sys_select.in.h: Always include <sys/types.h>, since
13970         we now need sigset_t and mingw defines it there.
13971         Include <signal.h> before split inclusion guard, to avoid
13972         mishaps on Solaris, whose <signal.h> eventually includes us.
13973         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13974         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13975         which come from ...
13976         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13977         gl_CHECK_TYPE_SIGSET_T.
13978         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13979         does the real work.
13980         * modules/sys_select (Depends-on): Add 'signal'.
13981
13982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13983         Suggested by Bruno Haible.
13984
13985         pselect: Use pthread_sigmask, not sigprocmask.
13986         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13987         multithreaded apps better than sigprocmask does.
13988         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13989         sigprocmask directly.
13990
13991 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13992
13993         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13994         Don't #undef,  since we don't need any underlying pselect.
13995         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13996         (Depends-on): Add select.
13997         (Link): Add $(LIBSOCKET).
13998         These changes suggested by Bruno Haible.
13999
14000         pselect: document better
14001         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14002         * doc/posix-functions/pselect.texi (pselect): Document new module.
14003
14004         pthread_sigmask: new module
14005         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14006         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14007         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14008         This is done only as a macro; I don't know how well that'll
14009         work for C++.  Move <sys/types.h> include before the include_next,
14010         to avoid mishap on Solaris.
14011         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14012         * modules/signal (Makefile.am): Substitute the check's results.
14013         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14014
14015         test-pselect: new module
14016         * modules/pselect-tests, tests/test-pselect.c: New files.
14017         * tests/test-select.c, tests/test-sys_select-c++.cc:
14018         If TEST_PSELECT is defined, test pselect instead of testing select.
14019
14020         * tests/test-sys_select.c (sigset_t): Test for it, too.
14021         Suggested by Bruno Haible.
14022
14023 2011-07-05  Eric Blake  <eblake@redhat.com>
14024
14025         snprintf: guarantee %1$d, for libintl
14026         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14027         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14028         * doc/posix-functions/snprintf.texi (snprintf): Update.
14029         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14030         * tests/test-snprintf.c (main): Enhance test.
14031         * tests/test-vsnprintf.c (main): Likewise.
14032
14033 2011-07-05  Jim Meyering  <meyering@redhat.com>
14034
14035         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14036         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14037         per Bruno's request, to accommodate this idiom (no space after "#")
14038         even when the function is inside an #if block:
14039         char *
14040         gets (char *s)
14041         #undef gets
14042         {
14043           ...
14044         }
14045
14046 2011-07-04  Jim Meyering  <meyering@redhat.com>
14047
14048         maint: indent with spaces, not TABs, and add a rule to check this
14049         * tests/test-userspec.c: Indent with spaces, not TABs.
14050         * tests/test-argp.c: Likewise.
14051         * tests/test-c-stack2.sh: Likewise.
14052         * tests/test-parse-duration.sh: Likewise
14053         * m4/strtod.m4: Likewise.
14054         * m4/alloca.m4: Likewise.
14055         * m4/pselect.m4: Likewise.
14056         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14057
14058 2011-07-03  Jim Meyering  <meyering@redhat.com>
14059
14060         maint.mk: correct omissions in prohibit_argmatch_without_use check
14061         This rule would mistakenly report that argmatch.h is included without
14062         use even when both the argmatch and invalid_arg macro were used.
14063         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14064         of argmatch and invalid_arg.
14065
14066 2011-07-03  Bruno Haible  <bruno@clisp.org>
14067
14068         Comments about EINTR.
14069         * lib/safe-read.h: Explain the purpose of this module.
14070         * lib/safe-write.h: Likewise.
14071         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14072         module.
14073         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14074         module.
14075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14076
14077 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         xnanosleep: Rewrite to use new dtotimespec module.
14080         It has the conversion code that used to be in xnanosleep.
14081         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14082         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14083         (TIME_T_MAX): Remove.
14084         (xnanosleep): Rewrite in terms of dtotimespec.
14085         * modules/xnanosleep (Depends-on): Add dtotimespec.
14086         Remove intprops, stdbool.
14087
14088         timespec-add, timespec-sub: new modules
14089         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14090         * lib/timespec-add.c, lib/timespec-sub.c:
14091         * modules/timespec-add, modules/timespec-sub: New files.
14092
14093         dtotimespec: new module
14094         * lib/timespec.h (dtotimespec): New decl.
14095         * lib/dtotimespec.c, modules/dtotimespec: New files.
14096
14097         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14098
14099         pselect: new module
14100         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14101         (pselect): New decls.
14102         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14103         since the standard pselect decl uses 'restrict'.
14104         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14105         HAVE_PSELECT, REPLACE_PSELECT.
14106         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14107         HAVE_PSELECT, REPLACE_PSELECT.
14108         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14109
14110         sys_select: don't depend on sys_socket
14111         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14113         This fix works on GNU and GNU-like platforms, but has not been tested
14114         on native Windows.
14115         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14116         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14117         gl_HEADER_SYS_SOCKET.
14118         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14119         gl_PREREQ_SYS_H_WINSOCK2.
14120
14121 2011-06-29  Eric Blake  <eblake@redhat.com>
14122
14123         pipe2: fix C89 compile problem
14124         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14125         Reported by Bruno Haible.
14126
14127         pipe, pipe2: don't corrupt fd on error
14128         * lib/pipe.c (pipe): Leave fd unchanged on error.
14129         * lib/pipe2.c (pipe2): Likewise.
14130         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14131         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14132
14133 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14134
14135         mmap-anon: do not use regular expressions inadvertently
14136         * m4/mmap-anon.m4: Remove trailing period from strings sought
14137         in the output.
14138
14139 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14140
14141         nanosleep: fix integer overflow problem
14142         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14143         arithmetic wraps around on overflow.
14144
14145         nanosleep: simplify carrying
14146         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14147         first call to the underyling nanosleep, not for the last one.
14148         This doesn't fix any bugs, but it simplifies the computation of
14149         the remaining delay.  Found while auditing integer overflow issues.
14150
14151         dup2: remove test for existence of fcntl
14152         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14153         "#if HAVE_FCNTL", in the configure-time test program.
14154         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14155         and therefore speeds up "configure" a bit.  Found while
14156         adding the dup2 module to Emacs.
14157
14158 2011-06-24  Eric Blake  <eblake@redhat.com>
14159
14160         maint.mk: enhance useless header checks
14161         * top/maint.mk (_sc_header_without_use): Check both include
14162         styles.
14163         (sc_prohibit_assert_without_use)
14164         (sc_prohibit_close_stream_without_use)
14165         (sc_prohibit_getopt_without_use)
14166         (sc_prohibit_quotearg_without_use)
14167         (sc_prohibit_quote_without_use)
14168         (sc_prohibit_long_options_without_use)
14169         (sc_prohibit_inttostr_without_use)
14170         (sc_prohibit_ignore_value_without_use)
14171         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14172         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14173         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14174         (sc_prohibit_hash_pjw_without_use)
14175         (sc_prohibit_safe_read_without_use)
14176         (sc_prohibit_argmatch_without_use)
14177         (sc_prohibit_canonicalize_without_use)
14178         (sc_prohibit_root_dev_ino_without_use)
14179         (sc_prohibit_openat_without_use)
14180         (sc_prohibit_c_ctype_without_use)
14181         (sc_prohibit_signal_without_use)
14182         (sc_prohibit_stdio--_without_use)
14183         (sc_prohibit_stdio-safer_without_use)
14184         (sc_prohibit_strings_without_use)
14185         (sc_prohibit_intprops_without_use)
14186         (sc_prohibit_stddef_without_use)
14187         (sc_prohibit_xfreopen_without_use): Update clients.
14188
14189 2011-06-24  Jim Meyering  <meyering@redhat.com>
14190
14191         syntax-check: keep one maint.mk rule in sync with its header
14192         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14193         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14194         I prefer to avoid temporary files here, so use <(...), but that
14195         is not supported by /bin/sh, so...
14196         (SHELL): Define to /bin/bash.
14197
14198 2011-06-24  Eric Blake  <eblake@redhat.com>
14199
14200         maint.mk: update sc_prohibit_intprops_without_use
14201         * top/maint.mk (_intprops_names): Match recent changes.
14202
14203 2011-06-24  Bruno Haible  <bruno@clisp.org>
14204
14205         strerror-override: No-op tweak.
14206         * lib/strerror-override.h (strerror_override): Reorder conditions,
14207         for consistency with lib/strerror-override.c.
14208
14209 2011-06-23  Eric Blake  <eblake@redhat.com>
14210
14211         maint.mk: test further PATH_MAX issues
14212         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14213         (sc_prohibit_path_max_allocation): ...and also test alloca.
14214         Suggested by Jim Meyering.
14215
14216 2011-06-22  Eric Blake  <eblake@redhat.com>
14217
14218         maint.mk: add syntax-check to avoid char[PATH_MAX]
14219         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14220
14221         stat: be robust to PATH_MAX definition
14222         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14223         * modules/stat (Depends-on): Add verify.
14224
14225         link: work around IRIX bug
14226         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14227         * lib/link.c (rpl_link): Work around it.
14228         * tests/test-link.h (test_link): Enhance test.
14229         * doc/posix-functions/link.texi (link): Document the bug.
14230
14231         getopt: silence clang warning
14232         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14233         dereference.
14234         Reported by Gustavo Martin Domato.
14235
14236 2011-06-22  Jim Meyering  <meyering@redhat.com>
14237
14238         bootstrap: do not insert a blank line into each .gitignore file
14239         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14240
14241 2011-06-21  Eric Blake  <eblake@redhat.com>
14242
14243         perror: test for output mismatch
14244         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14245         perror on IRIX.
14246
14247         strerror_r: fix OpenBSD behavior on out-of-range
14248         * lib/strerror_r.c (strerror_r): Always use maximal string.
14249         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14250
14251         strerror_r: fix OpenBSD behavior on 0
14252         * lib/strerror-override.c (strerror_override): Also override 0
14253         when needed.
14254         * lib/strerror-override.h (strerror_override): Likewise.
14255         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14256         earlier.
14257         * lib/strerror_r.c (strerror_r): Likewise.
14258         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14259         behavior...
14260         (gl_FUNC_STRERROR_0): ...into new macro.
14261         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14262         is overridden.
14263         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14264         * modules/strerror-override (Files): Add strerror.m4.
14265         (configure.ac): Also provide override for 0 when needed.
14266         * doc/posix-functions/strerror.texi (strerror): Document this.
14267         * doc/posix-functions/perror.texi (perror): Likewise.
14268
14269         perror: adjust array size
14270         * modules/perror (Depends-on): Add strerror-override.
14271         * lib/perror.c (perror): Use it to avoid magic number.
14272
14273         strerror-override: reduce size
14274         * lib/strerror-override.c (strerror_override): Use fewer lines.
14275
14276 2011-06-20  Bruno Haible  <bruno@clisp.org>
14277
14278         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14279         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14280
14281 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14282
14283         alloca: port to compilers that can optimize like GCC 4.6.0
14284         * lib/alloca.c (find_stack_direction): New signature, taken from
14285         Autoconf git.  This works with GCC 4.6.0.  This code should never
14286         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14287         be used with other compilers that optimize as well as GCC 4.6.0 does.
14288         (alloca): Adjust to new signature.
14289         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14290         New macro, which patches Autoconf in a similar way.
14291
14292         c-stack: stop worrying about stack direction
14293         * lib/c-stack.c (find_stack_direction): Remove.
14294         (segv_handler): Don't worry about stack direction growth, as it's
14295         too much of a pain to configure this correctly, given how compilers
14296         are optimizing-away our stack-growth detection code.  Instead, assume
14297         that any access to just before or just after the stack is OK.
14298         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14299         Don't require AC_FUNC_ALLOCA; no longer needed.
14300
14301 2011-06-20  Eric Blake  <eblake@redhat.com>
14302
14303         test-stat: don't allocate PATH_MAX bytes
14304         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14305         PATH_MAX-sized buffer.
14306         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14307         * modules/stat-tests (Depends-on): Likewise.
14308         * tests/test-fstatat.c (includes): Drop pathmax.h.
14309         * tests/test-stat.c (includes): Likewise.
14310         Reported by Bruno Haible.
14311
14312 2011-06-20  Bruno Haible  <bruno@clisp.org>
14313
14314         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14315         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14316         * lib/float.c: New file.
14317         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14318         REPLACE_FLOAT_LDBL.
14319         * modules/float (Files): Add lib/float.c.
14320         (configure.ac): Invoke AC_LIBOBJ.
14321         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14322
14323 2011-06-20  Bruno Haible  <bruno@clisp.org>
14324
14325         Tests for module 'float'.
14326         * modules/float-tests: New file.
14327         * tests/test-float.c: New file.
14328
14329 2011-06-19  Bruno Haible  <bruno@clisp.org>
14330
14331         isinf: Coding style.
14332         * lib/isinf.c: Use GNU coding style.
14333
14334 2011-06-19  Bruno Haible  <bruno@clisp.org>
14335
14336         linkat test: Avoid test failure on AIX 7.1.
14337         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14338         * tests/test-link.h (test_link): Likewise.
14339
14340 2011-06-19  Bruno Haible  <bruno@clisp.org>
14341
14342         pread test: Avoid test failure on OpenBSD 4.9.
14343         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14344
14345 2011-06-19  Bruno Haible  <bruno@clisp.org>
14346
14347         sprintf-posix: Fix test failure on AIX 7.1.
14348         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14349         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14350         on AIX.
14351         * doc/posix-functions/fprintf.texi: Likewise.
14352         * doc/posix-functions/printf.texi: Likewise.
14353         * doc/posix-functions/snprintf.texi: Likewise.
14354         * doc/posix-functions/sprintf.texi: Likewise.
14355         * doc/posix-functions/vdprintf.texi: Likewise.
14356         * doc/posix-functions/vfprintf.texi: Likewise.
14357         * doc/posix-functions/vprintf.texi: Likewise.
14358         * doc/posix-functions/vsnprintf.texi: Likewise.
14359         * doc/posix-functions/vsprintf.texi: Likewise.
14360
14361 2011-06-19  Bruno Haible  <bruno@clisp.org>
14362
14363         roundl-ieee: Fix test failure on AIX 7.1.
14364         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14365         * doc/posix-functions/roundl.texi: Mention problem with negative
14366         arguments.
14367
14368 2011-06-19  Bruno Haible  <bruno@clisp.org>
14369
14370         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14371         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14372         * doc/posix-functions/round.texi: Mention problem with negative
14373         arguments.
14374         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14375
14376 2011-06-19  Bruno Haible  <bruno@clisp.org>
14377
14378         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14380         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14381         * doc/posix-functions/roundf.texi: Mention problem with negative
14382         arguments.
14383         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14384
14385 2011-06-19  Bruno Haible  <bruno@clisp.org>
14386
14387         ceilf-ieee: Work around bug on MacOS X 10.5.
14388         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14389
14390         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14391         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14392         IEEE compliant, avoid compiler optimizations.
14393         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14394         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14395         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14396         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14397         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14398         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14399         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14400         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14401         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14403
14404 2011-06-19  Bruno Haible  <bruno@clisp.org>
14405
14406         ceilf-ieee: Work around bug on AIX 7.1.
14407         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14408         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14409
14410 2011-06-19  Bruno Haible  <bruno@clisp.org>
14411
14412         ceil-ieee: Work around bug on AIX 7.1.
14413         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14414         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14415
14416 2011-06-18  Bruno Haible  <bruno@clisp.org>
14417
14418         fsync test: Avoid test failure on MacOS X and AIX.
14419         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14420         EINVAL.
14421
14422 2011-06-18  Bruno Haible  <bruno@clisp.org>
14423
14424         openat, fdopendir tests: Fix link errors.
14425         * modules/openat-tests (Depends-on): Add progname.
14426         * modules/fdopendir-tests (Depends-on): Likewise.
14427         * tests/test-fchownat.c: Include progname.h.
14428         (main): Call set_program_name.
14429         * tests/test-fstatat.c: Include progname.h.
14430         (main): Call set_program_name.
14431         * tests/test-mkdirat.c: Include progname.h.
14432         (main): Call set_program_name.
14433         * tests/test-openat.c: Include progname.h.
14434         (main): Call set_program_name.
14435         * tests/test-unlinkat.c: Include progname.h.
14436         (main): Call set_program_name.
14437         * tests/test-fdopendir.c: Include progname.h.
14438         (main): Call set_program_name.
14439
14440 2011-06-18  Bruno Haible  <bruno@clisp.org>
14441
14442         Doc update.
14443         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14444         HP-UX.
14445         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14446
14447 2011-06-18  Bruno Haible  <bruno@clisp.org>
14448
14449         getcwd tests: Avoid compilation error on HP-UX 11.31.
14450         * modules/getcwd-tests (Depends-on): Add pathmax.
14451         * tests/test-getcwd.c: Include pathmax.h.
14452
14453 2011-06-18  Bruno Haible  <bruno@clisp.org>
14454
14455         isfinite, isinf: Fix link error on AIX 6 and 7.
14456         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14457         needed, also test the macro with a 'float' argument.
14458         * m4/isinf.m4 (gl_ISINF): Likewise.
14459
14460 2011-06-18  Bruno Haible  <bruno@clisp.org>
14461
14462         getloadavg: Don't clobber LIBS. Regression from previous commit.
14463         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14464         AC_CHECK_LIB from here...
14465         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14466         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14467         gl_func_getloadavg_done.
14468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14469
14470 2011-06-18  Bruno Haible  <bruno@clisp.org>
14471
14472         clean-temp: Improve documentation.
14473         * lib/clean-temp.h: Explain better how to use this module.
14474         Reported by John Darrington <john@darrington.wattle.id.au>.
14475
14476 2011-06-17  Bruno Haible  <bruno@clisp.org>
14477
14478         pread, pwrite: Avoid cc warning on AIX.
14479         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14480         (pwrite): Likewise.
14481
14482 2011-06-17  Bruno Haible  <bruno@clisp.org>
14483
14484         spawn-pipe tests: Fix link error.
14485         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14487
14488 2011-06-17  Bruno Haible  <bruno@clisp.org>
14489
14490         Tests: Remove unnecessary dependency.
14491         * modules/canonicalize-tests (Depends-on): Remove progname.
14492         * modules/chown-tests (Depends-on): Likewise.
14493         * modules/dirname-tests (Depends-on): Likewise.
14494         * modules/fdopendir-tests (Depends-on): Likewise.
14495         * modules/fdutimensat-tests (Depends-on): Likewise.
14496         * modules/hash-tests (Depends-on): Likewise.
14497         * modules/lchown-tests (Depends-on): Likewise.
14498         * modules/linkat-tests (Depends-on): Likewise.
14499         * modules/renameat-tests (Depends-on): Likewise.
14500         * modules/spawn-pipe-tests (Depends-on): Likewise.
14501         * modules/utimensat-tests (Depends-on): Likewise.
14502
14503 2011-06-17  Bruno Haible  <bruno@clisp.org>
14504
14505         spawn-pipe tests: Fix link error.
14506         * tests/test-spawn-pipe-child.c: Undefine fflush.
14507
14508 2011-06-17  Bruno Haible  <bruno@clisp.org>
14509
14510         Fix tests link errors.
14511         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14512         * modules/chown-tests (Makefile.am): Don't link test-chown with
14513         LIBINTL.
14514         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14515         LIBINTL.
14516         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14517         LIBINTL.
14518         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14519         LIBINTL.
14520
14521 2011-06-16  Bruno Haible  <bruno@clisp.org>
14522
14523         crypto/gc-sha1: Fix recent regression.
14524         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14525         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14526
14527         crypto/gc-md5: Fix recent regression.
14528         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14529
14530         crypto/gc-md4: Fix recent regression.
14531         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14532         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14533
14534         crypto/gc-arctwo: Fix recent regression.
14535         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14536         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14537
14538         crypto/gc-rijndael: Fix recent regression.
14539         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14540         (configure.ac): Invoke AC_LIBOBJ here.
14541         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14543
14544         crypto/gc-hmac-sha1: Fix recent regression.
14545         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14546         (configure.ac): Invoke AC_LIBOBJ here.
14547         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14549
14550         crypto/gc-hmac-md5: Fix recent regression.
14551         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14552         (configure.ac): Invoke AC_LIBOBJ here.
14553         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14555
14556         crypto/gc-des: Fix recent regression.
14557         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14558         (configure.ac): Invoke AC_LIBOBJ here.
14559         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14560         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14561
14562         crypto/gc-arcfour: Fix recent regression.
14563         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14564         (configure.ac): Invoke AC_LIBOBJ here.
14565         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14567
14568 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14569
14570         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14571         After the 2011-05-21 change, this macro requires
14572         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14573         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14574
14575 2011-06-16  Bruno Haible  <bruno@clisp.org>
14576
14577         fprintftime: Move AC_LIBOBJ invocations to module description.
14578         * m4/fprintftime.m4: Remove file.
14579         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14580         (configure.ac): Remove gl_FPRINTFTIME call.
14581         (Makefile.am): Augment lib_SOURCES.
14582         Reported by Jim Meyering.
14583
14584 2011-06-16  Bruno Haible  <bruno@clisp.org>
14585
14586         tmpfile-safer: Finish 2011-05-23 commit.
14587         * m4/stdio-safer.m4: Really remove file.
14588         Reported by Jim Meyering.
14589
14590 2011-06-16  Bruno Haible  <bruno@clisp.org>
14591
14592         syntax-check: Fix typo.
14593         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14594         printf-posix.m4.
14595         Reported by Jim Meyering.
14596
14597 2011-06-13  Jim Meyering  <meyering@redhat.com>
14598
14599         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14600         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14601
14602 2011-05-23  Bruno Haible  <bruno@clisp.org>
14603
14604         yesno: Move AC_LIBOBJ invocations to module description.
14605         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14606         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14607
14608 2011-05-23  Bruno Haible  <bruno@clisp.org>
14609
14610         xstrtol: Move AC_LIBOBJ invocations to module description.
14611         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14612         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14613
14614 2011-05-23  Bruno Haible  <bruno@clisp.org>
14615
14616         xstrtold: Move AC_LIBOBJ invocations to module description.
14617         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14618         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14619
14620 2011-05-23  Bruno Haible  <bruno@clisp.org>
14621
14622         xstrtod: Move AC_LIBOBJ invocations to module description.
14623         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14624         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14625
14626 2011-05-23  Bruno Haible  <bruno@clisp.org>
14627
14628         xnanosleep: Move AC_LIBOBJ invocations to module description.
14629         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14630         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14631
14632 2011-05-23  Bruno Haible  <bruno@clisp.org>
14633
14634         xgetcwd: Move AC_LIBOBJ invocations to module description.
14635         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14636         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14637
14638 2011-05-23  Bruno Haible  <bruno@clisp.org>
14639
14640         xalloc: Move AC_LIBOBJ invocations to module description.
14641         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14642         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14643
14644 2011-05-23  Bruno Haible  <bruno@clisp.org>
14645
14646         write-any-file: Move AC_LIBOBJ invocations to module description.
14647         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14648         invocation.
14649         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14650
14651 2011-05-23  Bruno Haible  <bruno@clisp.org>
14652
14653         utimens: Move AC_LIBOBJ invocations to module description.
14654         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14655         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14656
14657 2011-05-23  Bruno Haible  <bruno@clisp.org>
14658
14659         utimecmp: Move AC_LIBOBJ invocations to module description.
14660         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14661         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14662
14663 2011-05-23  Bruno Haible  <bruno@clisp.org>
14664
14665         userspec: Move AC_LIBOBJ invocations to module description.
14666         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14667         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14668
14669 2011-05-23  Bruno Haible  <bruno@clisp.org>
14670
14671         unlinkdir: Move AC_LIBOBJ invocations to module description.
14672         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14673         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14674
14675 2011-05-23  Bruno Haible  <bruno@clisp.org>
14676
14677         unistd-safer: Move AC_LIBOBJ invocations to module description.
14678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14679         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14680
14681 2011-05-23  Bruno Haible  <bruno@clisp.org>
14682
14683         tempname: Move AC_LIBOBJ invocations to module description.
14684         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14685         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14686
14687 2011-05-23  Bruno Haible  <bruno@clisp.org>
14688
14689         strftime: Move AC_LIBOBJ invocations to module description.
14690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14691         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14692
14693 2011-05-23  Bruno Haible  <bruno@clisp.org>
14694
14695         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14696         * m4/stdlib-safer.m4: Remove file.
14697         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14698         (configure.ac): Remove gl_STDLIB_SAFER call.
14699         (Makefile.am): Augment lib_SOURCES.
14700
14701 2011-05-23  Bruno Haible  <bruno@clisp.org>
14702
14703         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14704         * m4/stdio-safer.m4: Remove file.
14705         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14706         (configure.ac): Remove gl_TMPFILE_SAFER call.
14707         (Makefile.am): Augment lib_SOURCES.
14708
14709 2011-05-23  Bruno Haible  <bruno@clisp.org>
14710
14711         popen-safer: Move AC_LIBOBJ invocations to module description.
14712         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14713         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14714         (configure.ac): Remove gl_POPEN_SAFER call.
14715         (Makefile.am): Augment lib_SOURCES.
14716
14717 2011-05-23  Bruno Haible  <bruno@clisp.org>
14718
14719         freopen-safer: Move AC_LIBOBJ invocations to module description.
14720         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14721         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14722         (configure.ac): Remove gl_FREOPEN_SAFER call.
14723         (Makefile.am): Augment lib_SOURCES.
14724
14725 2011-05-23  Bruno Haible  <bruno@clisp.org>
14726
14727         fopen-safer: Move AC_LIBOBJ invocations to module description.
14728         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14729         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14730         (configure.ac): Remove gl_FOPEN_SAFER call.
14731         (Makefile.am): Augment lib_SOURCES.
14732
14733 2011-05-23  Bruno Haible  <bruno@clisp.org>
14734
14735         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14736         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14737         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14738
14739 2011-05-23  Bruno Haible  <bruno@clisp.org>
14740
14741         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14742         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14743         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14744
14745 2011-05-23  Bruno Haible  <bruno@clisp.org>
14746
14747         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14748         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14749         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14750
14751 2011-05-23  Bruno Haible  <bruno@clisp.org>
14752
14753         settime: Move AC_LIBOBJ invocations to module description.
14754         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14755         * modules/settime (Makefile.am): Augment lib_SOURCES.
14756
14757 2011-05-23  Bruno Haible  <bruno@clisp.org>
14758
14759         savedir: Move AC_LIBOBJ invocations to module description.
14760         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14761         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14762
14763 2011-05-23  Bruno Haible  <bruno@clisp.org>
14764
14765         save-cwd: Move AC_LIBOBJ invocations to module description.
14766         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14767         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14768
14769 2011-05-23  Bruno Haible  <bruno@clisp.org>
14770
14771         same: Move AC_LIBOBJ invocations to module description.
14772         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14773         * modules/same (Makefile.am): Augment lib_SOURCES.
14774
14775 2011-05-23  Bruno Haible  <bruno@clisp.org>
14776
14777         safe-write: Move AC_LIBOBJ invocations to module description.
14778         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14779         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14780         instead of gl_SAFE_WRITE.
14781         (Makefile.am): Augment lib_SOURCES.
14782
14783 2011-05-23  Bruno Haible  <bruno@clisp.org>
14784
14785         safe-read: Move AC_LIBOBJ invocations to module description.
14786         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14787         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14788         of gl_SAFE_READ.
14789         (Makefile.am): Augment lib_SOURCES.
14790
14791 2011-05-23  Bruno Haible  <bruno@clisp.org>
14792
14793         safe-alloc: Move AC_LIBOBJ invocations to module description.
14794         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14795         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14796
14797 2011-05-23  Bruno Haible  <bruno@clisp.org>
14798
14799         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14800         * m4/rijndael.m4: Remove file.
14801         * modules/crypto/rijndael (Files): Remove it.
14802         (configure.ac): Remove gl_RIJNDAEL call.
14803         (Makefile.am): Augment lib_SOURCES.
14804
14805 2011-05-23  Bruno Haible  <bruno@clisp.org>
14806
14807         readtokens: Move AC_LIBOBJ invocations to module description.
14808         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14809         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14810
14811 2011-05-23  Bruno Haible  <bruno@clisp.org>
14812
14813         read-file: Move AC_LIBOBJ invocations to module description.
14814         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14815         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14816         of gl_FUNC_READ_FILE.
14817         (Makefile.am): Augment lib_SOURCES.
14818
14819 2011-05-23  Bruno Haible  <bruno@clisp.org>
14820
14821         quotearg: Move AC_LIBOBJ invocations to module description.
14822         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14823         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14824
14825 2011-05-23  Bruno Haible  <bruno@clisp.org>
14826
14827         quote: Move AC_LIBOBJ invocations to module description.
14828         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14829         * modules/quote (Makefile.am): Augment lib_SOURCES.
14830
14831 2011-05-23  Bruno Haible  <bruno@clisp.org>
14832
14833         posixver: Move AC_LIBOBJ invocations to module description.
14834         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14835         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14836
14837 2011-05-23  Bruno Haible  <bruno@clisp.org>
14838
14839         posixtm: Move AC_LIBOBJ invocations to module description.
14840         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14841         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14842
14843 2011-05-23  Bruno Haible  <bruno@clisp.org>
14844
14845         physmem: Move AC_LIBOBJ invocations to module description.
14846         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14847         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14848
14849 2011-05-23  Bruno Haible  <bruno@clisp.org>
14850
14851         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14852         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14853         invocation.
14854         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14855
14856 2011-05-23  Bruno Haible  <bruno@clisp.org>
14857
14858         mpsort: Move AC_LIBOBJ invocations to module description.
14859         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14860         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14861
14862 2011-05-23  Bruno Haible  <bruno@clisp.org>
14863
14864         modechange: Move AC_LIBOBJ invocations to module description.
14865         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14866         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14867
14868 2011-05-23  Bruno Haible  <bruno@clisp.org>
14869
14870         mkdir-p: Move AC_LIBOBJ invocations to module description.
14871         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14872         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14873
14874 2011-05-23  Bruno Haible  <bruno@clisp.org>
14875
14876         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14877         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14878         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14879
14880 2011-05-23  Bruno Haible  <bruno@clisp.org>
14881
14882         mgetgroups: Move AC_LIBOBJ invocations to module description.
14883         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14884         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14885
14886 2011-05-23  Bruno Haible  <bruno@clisp.org>
14887
14888         memxor: Move AC_LIBOBJ invocations to module description.
14889         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14890         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14891
14892 2011-05-23  Bruno Haible  <bruno@clisp.org>
14893
14894         memcoll: Move AC_LIBOBJ invocations to module description.
14895         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14896         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14897
14898 2011-05-23  Bruno Haible  <bruno@clisp.org>
14899
14900         memcasecmp: Move AC_LIBOBJ invocations to module description.
14901         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14902         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14903
14904 2011-05-23  Bruno Haible  <bruno@clisp.org>
14905
14906         crypto/md5: Move AC_LIBOBJ invocations to module description.
14907         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14908         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14909
14910 2011-05-23  Bruno Haible  <bruno@clisp.org>
14911
14912         crypto/md4: Move AC_LIBOBJ invocations to module description.
14913         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14914         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14915
14916 2011-05-23  Bruno Haible  <bruno@clisp.org>
14917
14918         crypto/md2: Move AC_LIBOBJ invocations to module description.
14919         * m4/md2.m4: Remove file.
14920         * modules/crypto/md2 (Files): Remove it.
14921         (configure.ac): Remove gl_MD2 call.
14922         (Makefile.am): Augment lib_SOURCES.
14923
14924 2011-05-23  Bruno Haible  <bruno@clisp.org>
14925
14926         long-options: Move AC_LIBOBJ invocations to module description.
14927         * m4/long-options.m4: Remove file.
14928         * modules/long-options (Files): Remove it.
14929         (configure.ac): Remove gl_LONG_OPTIONS call.
14930         (Makefile.am): Augment lib_SOURCES.
14931
14932 2011-05-23  Bruno Haible  <bruno@clisp.org>
14933
14934         i-ring: Move AC_LIBOBJ invocations to module description.
14935         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14936         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14937
14938 2011-05-23  Bruno Haible  <bruno@clisp.org>
14939
14940         idcache: Move AC_LIBOBJ invocations to module description.
14941         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14942         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14943
14944 2011-05-23  Bruno Haible  <bruno@clisp.org>
14945
14946         human: Move AC_LIBOBJ invocations to module description.
14947         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14948         * modules/human (Makefile.am): Augment lib_SOURCES.
14949
14950 2011-05-23  Bruno Haible  <bruno@clisp.org>
14951
14952         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14953         * m4/hmac-sha1.m4: Remove file.
14954         * modules/crypto/hmac-sha1 (Files): Remove it.
14955         (configure.ac): Remove gl_HMAC_SHA1 call.
14956         (Makefile.am): Augment lib_SOURCES.
14957
14958 2011-05-23  Bruno Haible  <bruno@clisp.org>
14959
14960         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14961         * m4/hmac-md5.m4: Remove file.
14962         * modules/crypto/hmac-md5 (Files): Remove it.
14963         (configure.ac): Remove gl_HMAC_MD5 call.
14964         (Makefile.am): Augment lib_SOURCES.
14965
14966 2011-05-23  Bruno Haible  <bruno@clisp.org>
14967
14968         hash: Move AC_LIBOBJ invocations to module description.
14969         * m4/hash.m4: Remove file.
14970         * modules/hash (Files): Remove it.
14971         (configure.ac): Remove gl_HASH call.
14972         (Makefile.am): Augment lib_SOURCES.
14973
14974 2011-05-23  Bruno Haible  <bruno@clisp.org>
14975
14976         hard-locale: Move AC_LIBOBJ invocations to module description.
14977         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14978         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14979
14980 2011-05-23  Bruno Haible  <bruno@clisp.org>
14981
14982         getugroups: Move AC_LIBOBJ invocations to module description.
14983         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14984         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14985
14986 2011-05-23  Bruno Haible  <bruno@clisp.org>
14987
14988         gettime: Move AC_LIBOBJ invocations to module description.
14989         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14990         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14991
14992 2011-05-23  Bruno Haible  <bruno@clisp.org>
14993
14994         getndelim2: Move AC_LIBOBJ invocations to module description.
14995         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14996         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14997
14998 2011-05-23  Bruno Haible  <bruno@clisp.org>
14999
15000         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15001         * m4/gc-pbkdf2-sha1.m4: Remove file.
15002         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15003         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15004         (Makefile.am): Augment lib_SOURCES.
15005
15006 2011-05-23  Bruno Haible  <bruno@clisp.org>
15007
15008         fts: Move AC_LIBOBJ invocations to module description.
15009         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15010         * modules/fts (configure.ac): ... to here.
15011
15012 2011-05-23  Bruno Haible  <bruno@clisp.org>
15013
15014         file-type: Move AC_LIBOBJ invocations to module description.
15015         * m4/file-type.m4: Remove file.
15016         * modules/file-type (Files): Remove it.
15017         (configure.ac): Remove gl_FILE_TYPE call.
15018         (Makefile.am): Augment lib_SOURCES.
15019
15020 2011-05-23  Bruno Haible  <bruno@clisp.org>
15021
15022         filenamecat*: Respect rules for use of AC_LIBOBJ.
15023         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15024         Remove AC_LIBOBJ invocation.
15025         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15026         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15027
15028 2011-05-23  Bruno Haible  <bruno@clisp.org>
15029
15030         filemode: Move AC_LIBOBJ invocations to module description.
15031         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15032         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15033
15034 2011-05-23  Bruno Haible  <bruno@clisp.org>
15035
15036         openat-safer: Move AC_LIBOBJ invocations to module description.
15037         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15038         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15039
15040 2011-05-23  Bruno Haible  <bruno@clisp.org>
15041
15042         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15043         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15044         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15045
15046 2011-05-23  Bruno Haible  <bruno@clisp.org>
15047
15048         exclude: Move AC_LIBOBJ invocations to module description.
15049         * m4/exclude.m4: Remove file.
15050         * modules/exclude (Files): Remove it.
15051         (configure.ac): Remove gl_EXCLUDE call.
15052         (Makefile.am): Augment lib_SOURCES.
15053
15054 2011-05-23  Bruno Haible  <bruno@clisp.org>
15055
15056         dirname*: Respect rules for use of AC_LIBOBJ.
15057         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15058         invocations.
15059         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15060         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15061
15062 2011-05-23  Bruno Haible  <bruno@clisp.org>
15063
15064         dirent-safer: Move AC_LIBOBJ invocations to module description.
15065         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15066         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15067
15068 2011-05-23  Bruno Haible  <bruno@clisp.org>
15069
15070         crypto/des: Move AC_LIBOBJ invocations to module description.
15071         * m4/des.m4: Remove file.
15072         * modules/crypto/des (Files): Remove it.
15073         (configure.ac): Remove gl_DES call.
15074         (Makefile.am): Augment lib_SOURCES.
15075
15076 2011-05-23  Bruno Haible  <bruno@clisp.org>
15077
15078         cycle-check: Move AC_LIBOBJ invocations to module description.
15079         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15080         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15081
15082 2011-05-23  Bruno Haible  <bruno@clisp.org>
15083
15084         c-strtold: Move AC_LIBOBJ invocations to module description.
15085         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15086         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15087
15088 2011-05-23  Bruno Haible  <bruno@clisp.org>
15089
15090         c-strtod: Move AC_LIBOBJ invocations to module description.
15091         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15092         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15093
15094 2011-05-23  Bruno Haible  <bruno@clisp.org>
15095
15096         crc: Move AC_LIBOBJ invocations to module description.
15097         * m4/crc.m4: Remove file.
15098         * modules/crc (Files): Remove it.
15099         (configure.ac): Remove gl_CRC call.
15100         (Makefile.am): Augment lib_SOURCES.
15101
15102 2011-05-23  Bruno Haible  <bruno@clisp.org>
15103
15104         close-stream: Move AC_LIBOBJ invocations to module description.
15105         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15106         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15107
15108 2011-05-23  Bruno Haible  <bruno@clisp.org>
15109
15110         closeout: Move AC_LIBOBJ invocations to module description.
15111         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15112         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15113
15114 2011-05-23  Bruno Haible  <bruno@clisp.org>
15115
15116         closein: Move AC_LIBOBJ invocations to module description.
15117         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15118         * modules/closein (Makefile.am): Augment lib_SOURCES.
15119
15120 2011-05-23  Bruno Haible  <bruno@clisp.org>
15121
15122         cloexec: Move AC_LIBOBJ invocations to module description.
15123         * m4/cloexec.m4: Remove file.
15124         * modules/cloexec (Files): Remove it.
15125         (configure.ac): Remove gl_CLOEXEC call.
15126         (Makefile.am): Augment lib_SOURCES.
15127
15128 2011-05-23  Bruno Haible  <bruno@clisp.org>
15129
15130         check-version: Move AC_LIBOBJ invocations to module description.
15131         * m4/check-version.m4: Remove file.
15132         * modules/check-version (Files): Remove it.
15133         (configure.ac): Remove gl_CHECK_VERSION call.
15134         (Makefile.am): Augment lib_SOURCES.
15135
15136 2011-05-23  Bruno Haible  <bruno@clisp.org>
15137
15138         chdir-safer: Move AC_LIBOBJ invocations to module description.
15139         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15140         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15141
15142 2011-05-23  Bruno Haible  <bruno@clisp.org>
15143
15144         canonicalize: Move AC_LIBOBJ invocations to module description.
15145         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15146         AC_LIBOBJ invocation.
15147         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15148
15149 2011-05-23  Bruno Haible  <bruno@clisp.org>
15150
15151         canon-host: Move AC_LIBOBJ invocations to module description.
15152         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15153         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15154         instead of gl_CANON_HOST.
15155         (Makefile.am): Augment lib_SOURCES.
15156
15157 2011-05-23  Bruno Haible  <bruno@clisp.org>
15158
15159         backupfile: Move AC_LIBOBJ invocations to module description.
15160         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15161         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15162
15163 2011-05-23  Bruno Haible  <bruno@clisp.org>
15164
15165         argmatch: Move AC_LIBOBJ invocations to module description.
15166         * m4/argmatch.m4: Remove file.
15167         * modules/argmatch (Files): Remove it.
15168         (configure.ac): Remove gl_ARGMATCH call.
15169         (Makefile.am): Augment lib_SOURCES.
15170
15171 2011-05-23  Bruno Haible  <bruno@clisp.org>
15172
15173         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15174         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15175         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15176
15177 2011-05-23  Bruno Haible  <bruno@clisp.org>
15178
15179         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15180         * m4/arcfour.m4: Remove file.
15181         * modules/crypto/arcfour (Files): Remove it.
15182         (configure.ac): Remove gl_ARCFOUR call.
15183         (Makefile.am): Augment lib_SOURCES.
15184
15185 2011-05-22  Bruno Haible  <bruno@clisp.org>
15186
15187         write: Move AC_LIBOBJ invocations to module description.
15188         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15189         * modules/write (configure.ac): ... to here.
15190
15191 2011-05-22  Bruno Haible  <bruno@clisp.org>
15192
15193         wmemset: Move AC_LIBOBJ invocations to module description.
15194         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15195         here...
15196         * modules/wmemset (configure.ac): ... to here.
15197
15198 2011-05-22  Bruno Haible  <bruno@clisp.org>
15199
15200         wmemmove: Move AC_LIBOBJ invocations to module description.
15201         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15202         here...
15203         * modules/wmemmove (configure.ac): ... to here.
15204
15205 2011-05-22  Bruno Haible  <bruno@clisp.org>
15206
15207         wmemcpy: Move AC_LIBOBJ invocations to module description.
15208         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15209         here...
15210         * modules/wmemcpy (configure.ac): ... to here.
15211
15212 2011-05-22  Bruno Haible  <bruno@clisp.org>
15213
15214         wmemcmp: Move AC_LIBOBJ invocations to module description.
15215         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15216         here...
15217         * modules/wmemcmp (configure.ac): ... to here.
15218
15219 2011-05-22  Bruno Haible  <bruno@clisp.org>
15220
15221         wmemchr: Move AC_LIBOBJ invocations to module description.
15222         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15223         here...
15224         * modules/wmemchr (configure.ac): ... to here.
15225
15226 2011-05-22  Bruno Haible  <bruno@clisp.org>
15227
15228         wcswidth: Move AC_LIBOBJ invocations to module description.
15229         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15230         here...
15231         * modules/wcswidth (configure.ac): ... to here.
15232
15233 2011-05-22  Bruno Haible  <bruno@clisp.org>
15234
15235         wcwidth: Respect rules for use of AC_LIBOBJ.
15236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15237         invocation from here...
15238         * modules/wcwidth (configure.ac): ... to here.
15239         (Depends-on): Update conditions.
15240
15241 2011-05-22  Bruno Haible  <bruno@clisp.org>
15242
15243         wctype: Move AC_LIBOBJ invocations to module description.
15244         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15245         invocation from here...
15246         * modules/wctype (configure.ac): ... to here.
15247         (Depends-on): Update conditions.
15248
15249 2011-05-22  Bruno Haible  <bruno@clisp.org>
15250
15251         wctrans: Move AC_LIBOBJ invocations to module description.
15252         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15253         invocation from here...
15254         * modules/wctrans (configure.ac): ... to here.
15255
15256 2011-05-22  Bruno Haible  <bruno@clisp.org>
15257
15258         wctomb: Move AC_LIBOBJ invocations to module description.
15259         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15260         invocations from here...
15261         * modules/wctomb (configure.ac): ... to here.
15262
15263 2011-05-22  Bruno Haible  <bruno@clisp.org>
15264
15265         wctob: Move AC_LIBOBJ invocations to module description.
15266         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15267         gl_PREREQ_WCTOB invocations from here...
15268         * modules/wctob (configure.ac): ... to here.
15269         (Depends-on): Update conditions.
15270
15271 2011-05-22  Bruno Haible  <bruno@clisp.org>
15272
15273         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15274         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15275         here...
15276         * modules/wcsxfrm (configure.ac): ... to here.
15277
15278 2011-05-22  Bruno Haible  <bruno@clisp.org>
15279
15280         wcstok: Move AC_LIBOBJ invocations to module description.
15281         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15282         * modules/wcstok (configure.ac): ... to here.
15283
15284 2011-05-22  Bruno Haible  <bruno@clisp.org>
15285
15286         wcsstr: Move AC_LIBOBJ invocations to module description.
15287         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15288         * modules/wcsstr (configure.ac): ... to here.
15289
15290 2011-05-22  Bruno Haible  <bruno@clisp.org>
15291
15292         wcsspn: Move AC_LIBOBJ invocations to module description.
15293         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15294         * modules/wcsspn (configure.ac): ... to here.
15295
15296 2011-05-22  Bruno Haible  <bruno@clisp.org>
15297
15298         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15299         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15300         gl_PREREQ_WCSRTOMBS invocations from here...
15301         * modules/wcsrtombs (configure.ac): ... to here.
15302
15303 2011-05-22  Bruno Haible  <bruno@clisp.org>
15304
15305         wcsrchr: Move AC_LIBOBJ invocations to module description.
15306         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15307         here...
15308         * modules/wcsrchr (configure.ac): ... to here.
15309
15310 2011-05-22  Bruno Haible  <bruno@clisp.org>
15311
15312         wcspbrk: Move AC_LIBOBJ invocations to module description.
15313         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15314         here...
15315         * modules/wcspbrk (configure.ac): ... to here.
15316
15317 2011-05-22  Bruno Haible  <bruno@clisp.org>
15318
15319         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15320         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15321         gl_PREREQ_WCSNRTOMBS invocations from here...
15322         * modules/wcsnrtombs (configure.ac): ... to here.
15323
15324 2011-05-22  Bruno Haible  <bruno@clisp.org>
15325
15326         wcsnlen: Move AC_LIBOBJ invocations to module description.
15327         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15328         here...
15329         * modules/wcsnlen (configure.ac): ... to here.
15330
15331 2011-05-22  Bruno Haible  <bruno@clisp.org>
15332
15333         wcsncpy: Move AC_LIBOBJ invocations to module description.
15334         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15335         here...
15336         * modules/wcsncpy (configure.ac): ... to here.
15337
15338 2011-05-22  Bruno Haible  <bruno@clisp.org>
15339
15340         wcsncmp: Move AC_LIBOBJ invocations to module description.
15341         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15342         here...
15343         * modules/wcsncmp (configure.ac): ... to here.
15344
15345 2011-05-22  Bruno Haible  <bruno@clisp.org>
15346
15347         wcsncat: Move AC_LIBOBJ invocations to module description.
15348         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15349         here...
15350         * modules/wcsncat (configure.ac): ... to here.
15351
15352 2011-05-22  Bruno Haible  <bruno@clisp.org>
15353
15354         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15355         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15356         from here...
15357         * modules/wcsncasecmp (configure.ac): ... to here.
15358
15359 2011-05-22  Bruno Haible  <bruno@clisp.org>
15360
15361         wcslen: Move AC_LIBOBJ invocations to module description.
15362         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15363         * modules/wcslen (configure.ac): ... to here.
15364
15365 2011-05-22  Bruno Haible  <bruno@clisp.org>
15366
15367         wcsdup: Move AC_LIBOBJ invocations to module description.
15368         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15369         * modules/wcsdup (configure.ac): ... to here.
15370
15371 2011-05-22  Bruno Haible  <bruno@clisp.org>
15372
15373         wcscspn: Move AC_LIBOBJ invocations to module description.
15374         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15375         here...
15376         * modules/wcscspn (configure.ac): ... to here.
15377
15378 2011-05-22  Bruno Haible  <bruno@clisp.org>
15379
15380         wcscpy: Move AC_LIBOBJ invocations to module description.
15381         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15382         * modules/wcscpy (configure.ac): ... to here.
15383
15384 2011-05-22  Bruno Haible  <bruno@clisp.org>
15385
15386         wcscoll: Move AC_LIBOBJ invocations to module description.
15387         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15388         here...
15389         * modules/wcscoll (configure.ac): ... to here.
15390
15391 2011-05-22  Bruno Haible  <bruno@clisp.org>
15392
15393         wcscmp: Move AC_LIBOBJ invocations to module description.
15394         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15395         * modules/wcscmp (configure.ac): ... to here.
15396
15397 2011-05-22  Bruno Haible  <bruno@clisp.org>
15398
15399         wcschr: Move AC_LIBOBJ invocations to module description.
15400         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15401         * modules/wcschr (configure.ac): ... to here.
15402
15403 2011-05-22  Bruno Haible  <bruno@clisp.org>
15404
15405         wcscat: Move AC_LIBOBJ invocations to module description.
15406         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15407         * modules/wcscat (configure.ac): ... to here.
15408
15409 2011-05-22  Bruno Haible  <bruno@clisp.org>
15410
15411         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15412         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15413         here...
15414         * modules/wcscasecmp (configure.ac): ... to here.
15415
15416 2011-05-22  Bruno Haible  <bruno@clisp.org>
15417
15418         wcrtomb: Move AC_LIBOBJ invocations to module description.
15419         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15420         invocations from here...
15421         * modules/wcrtomb (configure.ac): ... to here.
15422
15423 2011-05-22  Bruno Haible  <bruno@clisp.org>
15424
15425         wcpncpy: Move AC_LIBOBJ invocations to module description.
15426         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15427         here...
15428         * modules/wcpncpy (configure.ac): ... to here.
15429
15430 2011-05-22  Bruno Haible  <bruno@clisp.org>
15431
15432         wcpcpy: Move AC_LIBOBJ invocations to module description.
15433         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15434         * modules/wcpcpy (configure.ac): ... to here.
15435
15436 2011-05-22  Bruno Haible  <bruno@clisp.org>
15437
15438         waitpid: Move AC_LIBOBJ invocations to module description.
15439         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15440         invocation from here...
15441         * modules/waitpid (configure.ac): ... to here.
15442
15443 2011-05-22  Bruno Haible  <bruno@clisp.org>
15444
15445         utimensat: Move AC_LIBOBJ invocations to module description.
15446         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15447         here...
15448         * modules/utimensat (configure.ac): ... to here.
15449
15450 2011-05-22  Bruno Haible  <bruno@clisp.org>
15451
15452         usleep: Move AC_LIBOBJ invocations to module description.
15453         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15454         here...
15455         * modules/usleep (configure.ac): ... to here.
15456
15457 2011-05-22  Bruno Haible  <bruno@clisp.org>
15458
15459         unlockpt: Move AC_LIBOBJ invocations to module description.
15460         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15461         gl_PREREQ_UNLOCKPT invocations from here...
15462         * modules/unlockpt (configure.ac): ... to here.
15463
15464 2011-05-22  Bruno Haible  <bruno@clisp.org>
15465
15466         unlink: Respect rules for use of AC_LIBOBJ.
15467         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15468         * modules/unlink (configure.ac): ... to here.
15469
15470 2011-05-22  Bruno Haible  <bruno@clisp.org>
15471
15472         uname: Move AC_LIBOBJ invocations to module description.
15473         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15475         here...
15476         * modules/uname (configure.ac): ... to here.
15477
15478 2011-05-22  Bruno Haible  <bruno@clisp.org>
15479
15480         ttyname_r: Move AC_LIBOBJ invocations to module description.
15481         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15482         gl_PREREQ_TTYNAME_R invocations from here...
15483         * modules/ttyname_r (configure.ac): ... to here.
15484
15485 2011-05-22  Bruno Haible  <bruno@clisp.org>
15486
15487         tsearch: Move AC_LIBOBJ invocations to module description.
15488         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15489         invocations from here...
15490         * modules/tsearch (configure.ac): ... to here.
15491
15492 2011-05-22  Bruno Haible  <bruno@clisp.org>
15493
15494         towctrans: Move AC_LIBOBJ invocations to module description.
15495         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15496         AC_LIBOBJ invocation from here...
15497         * modules/towctrans (configure.ac): ... to here.
15498
15499 2011-05-22  Bruno Haible  <bruno@clisp.org>
15500
15501         tmpfile: Move AC_LIBOBJ invocations to module description.
15502         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15503         invocations from here...
15504         * modules/tmpfile (configure.ac): ... to here.
15505
15506 2011-05-22  Bruno Haible  <bruno@clisp.org>
15507
15508         times: Move AC_LIBOBJ invocations to module description.
15509         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15510         * modules/times (configure.ac): ... to here.
15511
15512 2011-05-22  Bruno Haible  <bruno@clisp.org>
15513
15514         time_r: Move AC_LIBOBJ invocations to module description.
15515         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15516         invocations from here...
15517         * modules/time_r (configure.ac): ... to here.
15518
15519 2011-05-22  Bruno Haible  <bruno@clisp.org>
15520
15521         timegm: Move AC_LIBOBJ invocations to module description.
15522         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15523         invocations from here...
15524         * modules/timegm (configure.ac): ... to here.
15525
15526 2011-05-22  Bruno Haible  <bruno@clisp.org>
15527
15528         tcgetsid: Move AC_LIBOBJ invocations to module description.
15529         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15530         and gl_PREREQ_TCGETSID invocations from here...
15531         * modules/tcgetsid (configure.ac): ... to here.
15532         (Depends-on): Update conditions.
15533
15534 2011-05-22  Bruno Haible  <bruno@clisp.org>
15535
15536         symlinkat: Move AC_LIBOBJ invocations to module description.
15537         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15538         here...
15539         * modules/symlinkat (configure.ac): ... to here.
15540
15541 2011-05-22  Bruno Haible  <bruno@clisp.org>
15542
15543         symlink: Move AC_LIBOBJ invocations to module description.
15544         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15545         here...
15546         * modules/symlink (configure.ac): ... to here.
15547
15548 2011-05-22  Bruno Haible  <bruno@clisp.org>
15549
15550         strverscmp: Move AC_LIBOBJ invocations to module description.
15551         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15553         from here...
15554         * modules/strverscmp (configure.ac): ... to here.
15555
15556 2011-05-22  Bruno Haible  <bruno@clisp.org>
15557
15558         strtok_r: Move AC_LIBOBJ invocations to module description.
15559         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15560         and gl_PREREQ_STRTOK_R invocations from here...
15561         * modules/strtok_r (configure.ac): ... to here.
15562         (Depends-on): Update conditions.
15563
15564 2011-05-22  Bruno Haible  <bruno@clisp.org>
15565
15566         strtoumax: Move AC_LIBOBJ invocations to module description.
15567         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15569         from here...
15570         * modules/strtoumax (configure.ac): ... to here.
15571
15572 2011-05-22  Bruno Haible  <bruno@clisp.org>
15573
15574         strtoimax: Move AC_LIBOBJ invocations to module description.
15575         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15577         from here...
15578         * modules/strtoimax (configure.ac): ... to here.
15579
15580 2011-05-22  Bruno Haible  <bruno@clisp.org>
15581
15582         strtoull: Move AC_LIBOBJ invocations to module description.
15583         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15584         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15585         from here...
15586         * modules/strtoull (configure.ac): ... to here.
15587
15588 2011-05-22  Bruno Haible  <bruno@clisp.org>
15589
15590         strtoll: Move AC_LIBOBJ invocations to module description.
15591         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15593         here...
15594         * modules/strtoll (configure.ac): ... to here.
15595
15596 2011-05-22  Bruno Haible  <bruno@clisp.org>
15597
15598         strtoul: Move AC_LIBOBJ invocations to module description.
15599         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15600         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15601         * modules/strtoul (configure.ac): ... to here.
15602
15603 2011-05-22  Bruno Haible  <bruno@clisp.org>
15604
15605         strtol: Move AC_LIBOBJ invocations to module description.
15606         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15607         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15608         * modules/strtol (configure.ac): ... to here.
15609
15610 2011-05-22  Bruno Haible  <bruno@clisp.org>
15611
15612         strtod: Move AC_LIBOBJ invocations to module description.
15613         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15614         invocations from here...
15615         * modules/strtod (configure.ac): ... to here.
15616
15617 2011-05-22  Bruno Haible  <bruno@clisp.org>
15618
15619         strstr*: Move AC_LIBOBJ invocations to module description.
15620         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15621         invocations from here...
15622         * modules/strstr-simple (configure.ac): ... to here.
15623         * modules/strstr (configure.ac): ... and here.
15624
15625 2011-05-22  Bruno Haible  <bruno@clisp.org>
15626
15627         strsignal: Move AC_LIBOBJ invocations to module description.
15628         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15629         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15630         * modules/strsignal (configure.ac): ... to here.
15631         (Depends-on): Update conditions.
15632
15633 2011-05-22  Bruno Haible  <bruno@clisp.org>
15634
15635         strsep: Move AC_LIBOBJ invocations to module description.
15636         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15638         here...
15639         * modules/strsep (configure.ac): ... to here.
15640
15641 2011-05-22  Bruno Haible  <bruno@clisp.org>
15642
15643         strptime: Move AC_LIBOBJ invocations to module description.
15644         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15645         gl_PREREQ_STRPTIME invocations from here...
15646         * modules/strptime (configure.ac): ... to here.
15647
15648 2011-05-22  Bruno Haible  <bruno@clisp.org>
15649
15650         strpbrk: Move AC_LIBOBJ invocations to module description.
15651         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15652         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15653         here...
15654         * modules/strpbrk (configure.ac): ... to here.
15655
15656 2011-05-22  Bruno Haible  <bruno@clisp.org>
15657
15658         strnlen: Move AC_LIBOBJ invocations to module description.
15659         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15660         invocations from here...
15661         * modules/strnlen (configure.ac): ... to here.
15662
15663 2011-05-22  Bruno Haible  <bruno@clisp.org>
15664
15665         strndup: Move AC_LIBOBJ invocations to module description.
15666         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15667         invocations from here...
15668         * modules/strndup (configure.ac): ... to here.
15669         (Depends-on): Update conditions.
15670
15671 2011-05-22  Bruno Haible  <bruno@clisp.org>
15672
15673         strncat: Move AC_LIBOBJ invocations to module description.
15674         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15675         invocations from here...
15676         * modules/strncat (configure.ac): ... to here.
15677
15678 2011-05-22  Bruno Haible  <bruno@clisp.org>
15679
15680         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15681         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15682         invocations from here...
15683         * modules/strdup (configure.ac): ... to here.
15684         * modules/strdup-posix (configure.ac): ... and here.
15685
15686 2011-05-22  Bruno Haible  <bruno@clisp.org>
15687
15688         strcspn: Move AC_LIBOBJ invocations to module description.
15689         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15691         here...
15692         * modules/strcspn (configure.ac): ... to here.
15693
15694 2011-05-22  Bruno Haible  <bruno@clisp.org>
15695
15696         strchrnul: Move AC_LIBOBJ invocations to module description.
15697         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15698         gl_PREREQ_STRCHRNUL invocations from here...
15699         * modules/strchrnul (configure.ac): ... to here.
15700
15701 2011-05-22  Bruno Haible  <bruno@clisp.org>
15702
15703         strcasestr*: Move AC_LIBOBJ invocations to module description.
15704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15705         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15706         * modules/strcasestr-simple (configure.ac): ... to here.
15707         * modules/strcasestr (configure.ac): ... and here.
15708
15709 2011-05-22  Bruno Haible  <bruno@clisp.org>
15710
15711         strcase: Move AC_LIBOBJ invocations to module description.
15712         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15713         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15714         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15715         gl_PREREQ_STRNCASECMP invocations from here...
15716         * modules/strcase (configure.ac): ... to here.
15717
15718 2011-05-22  Bruno Haible  <bruno@clisp.org>
15719
15720         stpncpy: Move AC_LIBOBJ invocations to module description.
15721         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15722         here...
15723         * modules/stpncpy (configure.ac): ... to here.
15724
15725 2011-05-22  Bruno Haible  <bruno@clisp.org>
15726
15727         stpcpy: Move AC_LIBOBJ invocations to module description.
15728         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15729         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15730         here...
15731         * modules/stpcpy (configure.ac): ... to here.
15732
15733 2011-05-21  Bruno Haible  <bruno@clisp.org>
15734
15735         stat: Move AC_LIBOBJ invocations to module description.
15736         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15737         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15738         here...
15739         * modules/stat (configure.ac): ... to here.
15740
15741 2011-05-21  Bruno Haible  <bruno@clisp.org>
15742
15743         sleep: Move AC_LIBOBJ invocations to module description.
15744         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15745         * modules/sleep (configure.ac): ... to here.
15746
15747 2011-05-21  Bruno Haible  <bruno@clisp.org>
15748
15749         signbit: Move AC_LIBOBJ invocations to module description.
15750         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15751         * modules/signbit (configure.ac): ... to here.
15752
15753 2011-05-21  Bruno Haible  <bruno@clisp.org>
15754
15755         sigprocmask: Move AC_LIBOBJ invocations to module description.
15756         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15757         gl_PREREQ_SIGPROMASK invocations from here...
15758         * modules/sigprocmask (configure.ac): ... to here.
15759
15760 2011-05-21  Bruno Haible  <bruno@clisp.org>
15761
15762         sigaction: Move AC_LIBOBJ invocations to module description.
15763         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15764         gl_PREREQ_SIGACTION invocations from here...
15765         * modules/sigaction (configure.ac): ... to here.
15766
15767 2011-05-21  Bruno Haible  <bruno@clisp.org>
15768
15769         sig2str: Move AC_LIBOBJ invocations to module description.
15770         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15771         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15772         here...
15773         * modules/sig2str (configure.ac): ... to here.
15774
15775 2011-05-21  Bruno Haible  <bruno@clisp.org>
15776
15777         setlocale: Move AC_LIBOBJ invocations to module description.
15778         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15779         gl_PREREQ_SETLOCALE invocations from here...
15780         * modules/setlocale (configure.ac): ... to here.
15781
15782 2011-05-21  Bruno Haible  <bruno@clisp.org>
15783
15784         unsetenv: Move AC_LIBOBJ invocations to module description.
15785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15786         and gl_PREREQ_UNSETENV invocations from here...
15787         * modules/unsetenv (configure.ac): ... to here.
15788         (Depends-on): Update.
15789
15790 2011-05-21  Bruno Haible  <bruno@clisp.org>
15791
15792         setenv: Move AC_LIBOBJ invocations to module description.
15793         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15794         here...
15795         * modules/setenv (configure.ac): ... to here.
15796
15797 2011-05-21  Bruno Haible  <bruno@clisp.org>
15798
15799         selinux-h: Move AC_LIBOBJ invocations to module description.
15800         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15801         AC_LIBOBJ invocation from here...
15802         * modules/selinux-h (configure.ac): ... to here.
15803
15804 2011-05-21  Bruno Haible  <bruno@clisp.org>
15805
15806         select: Respect rules for use of AC_LIBOBJ.
15807         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15808         here...
15809         * modules/select (configure.ac): ... to here.
15810
15811 2011-05-21  Bruno Haible  <bruno@clisp.org>
15812
15813         scandir: Move AC_LIBOBJ invocations to module description.
15814         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15815         invocations from here...
15816         * modules/scandir (configure.ac): ... to here.
15817
15818 2011-05-21  Bruno Haible  <bruno@clisp.org>
15819
15820         rpmatch: Move AC_LIBOBJ invocations to module description.
15821         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15823         here...
15824         * modules/rpmatch (configure.ac): ... to here.
15825
15826 2011-05-21  Bruno Haible  <bruno@clisp.org>
15827
15828         rmdir: Respect rules for use of AC_LIBOBJ.
15829         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15830         * modules/rmdir (configure.ac): ... to here.
15831
15832 2011-05-21  Bruno Haible  <bruno@clisp.org>
15833
15834         renameat: Move AC_LIBOBJ invocations to module description.
15835         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15836         here...
15837         * modules/renameat (configure.ac): ... to here.
15838
15839 2011-05-21  Bruno Haible  <bruno@clisp.org>
15840
15841         rename: Respect rules for use of AC_LIBOBJ.
15842         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15843         here...
15844         * modules/rename (configure.ac): ... to here.
15845
15846 2011-05-21  Bruno Haible  <bruno@clisp.org>
15847
15848         remove: Move AC_LIBOBJ invocations to module description.
15849         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15850         here...
15851         * modules/remove (configure.ac): ... to here.
15852
15853 2011-05-21  Bruno Haible  <bruno@clisp.org>
15854
15855         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15856         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15857         macro.
15858         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15859         * modules/relocatable-lib (configure.ac): ... to here.
15860         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15861         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15862
15863 2011-05-21  Bruno Haible  <bruno@clisp.org>
15864
15865         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15866         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15867         here...
15868         * modules/relocatable-prog (configure.ac): ... to here.
15869
15870 2011-05-21  Bruno Haible  <bruno@clisp.org>
15871
15872         regex: Move AC_LIBOBJ invocations to module description.
15873         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15874         invocations from here...
15875         * modules/regex (configure.ac): ... to here.
15876
15877 2011-05-21  Bruno Haible  <bruno@clisp.org>
15878
15879         realloc-*: Move AC_LIBOBJ invocations to module description.
15880         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15881         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15882         AC_LIBOBJ invocations from here...
15883         * modules/realloc-gnu (configure.ac): ... to here.
15884         * modules/realloc-posix (configure.ac): ... and here.
15885
15886 2011-05-21  Bruno Haible  <bruno@clisp.org>
15887
15888         readutmp: Move AC_LIBOBJ invocations to module description.
15889         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15890         * modules/readutmp (configure.ac): ... to here.
15891
15892 2011-05-21  Bruno Haible  <bruno@clisp.org>
15893
15894         readlinkat: Move AC_LIBOBJ invocations to module description.
15895         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15896         here...
15897         * modules/readlinkat (configure.ac): ... to here.
15898
15899 2011-05-21  Bruno Haible  <bruno@clisp.org>
15900
15901         readlink: Move AC_LIBOBJ invocations to module description.
15902         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15903         gl_PREREQ_READLINK invocations from here...
15904         * modules/readlink (configure.ac): ... to here.
15905
15906 2011-05-21  Bruno Haible  <bruno@clisp.org>
15907
15908         readline: Move AC_LIBOBJ invocations to module description.
15909         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15910         gl_PREREQ_READLINE invocations from here...
15911         * modules/readline (configure.ac): ... to here.
15912
15913 2011-05-21  Bruno Haible  <bruno@clisp.org>
15914
15915         read: Move AC_LIBOBJ invocations to module description.
15916         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15917         * modules/read (configure.ac): ... to here.
15918
15919 2011-05-21  Bruno Haible  <bruno@clisp.org>
15920
15921         rawmemchr: Move AC_LIBOBJ invocations to module description.
15922         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15923         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15924         from here...
15925         * modules/rawmemchr (configure.ac): ... to here.
15926
15927 2011-05-21  Bruno Haible  <bruno@clisp.org>
15928
15929         random_r: Move AC_LIBOBJ invocations to module description.
15930         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15931         gl_PREREQ_RANDOM_R invocations from here...
15932         * modules/random_r (configure.ac): ... to here.
15933
15934 2011-05-21  Bruno Haible  <bruno@clisp.org>
15935
15936         pwrite: Move AC_LIBOBJ invocations to module description.
15937         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15938         * modules/pwrite (configure.ac): ... to here.
15939
15940 2011-05-21  Bruno Haible  <bruno@clisp.org>
15941
15942         putenv: Move AC_LIBOBJ invocations to module description.
15943         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15944         * modules/putenv (configure.ac): ... to here.
15945
15946 2011-05-21  Bruno Haible  <bruno@clisp.org>
15947
15948         login_tty: Move AC_LIBOBJ invocations to module description.
15949         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15950         * modules/login_tty (configure.ac): ... to here.
15951
15952 2011-05-21  Bruno Haible  <bruno@clisp.org>
15953
15954         openpty: Move AC_LIBOBJ invocations to module description.
15955         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15956         * modules/openpty (configure.ac): ... to here.
15957
15958 2011-05-21  Bruno Haible  <bruno@clisp.org>
15959
15960         forkpty: Move AC_LIBOBJ invocations to module description.
15961         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15962         * modules/forkpty (configure.ac): ... to here.
15963
15964 2011-05-21  Bruno Haible  <bruno@clisp.org>
15965
15966         ptsname: Move AC_LIBOBJ invocations to module description.
15967         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15968         invocations from here...
15969         * modules/ptsname (configure.ac): ... to here.
15970
15971 2011-05-21  Bruno Haible  <bruno@clisp.org>
15972
15973         pread: Move AC_LIBOBJ invocations to module description.
15974         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15975         * modules/pread (configure.ac): ... to here.
15976
15977 2011-05-21  Bruno Haible  <bruno@clisp.org>
15978
15979         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15980         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15981         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15982         * modules/posix_spawn (configure.ac): ... to here.
15983         * modules/posix_spawnp (configure.ac): ... and here.
15984
15985 2011-05-21  Bruno Haible  <bruno@clisp.org>
15986
15987         popen: Move AC_LIBOBJ invocations to module description.
15988         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15989         invocations from here...
15990         * modules/popen (configure.ac): ... to here.
15991
15992 2011-05-21  Bruno Haible  <bruno@clisp.org>
15993
15994         poll: Move AC_LIBOBJ invocations to module description.
15995         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15996         invocations from here...
15997         * modules/poll (configure.ac): ... to here.
15998
15999 2011-05-21  Bruno Haible  <bruno@clisp.org>
16000
16001         pipe-posix: Move AC_LIBOBJ invocations to module description.
16002         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16003         * modules/pipe-posix (configure.ac): ... to here.
16004
16005 2011-05-21  Bruno Haible  <bruno@clisp.org>
16006
16007         openat: Respect rules for use of AC_LIBOBJ.
16008         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16009         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16010         * modules/openat (configure.ac): ... to here.
16011
16012 2011-05-21  Bruno Haible  <bruno@clisp.org>
16013
16014         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16015         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16016         invocation from here...
16017         * modules/obstack-printf (configure.ac): ... to here.
16018         * modules/obstack-printf-posix (configure.ac): ... and here.
16019
16020 2011-05-21  Bruno Haible  <bruno@clisp.org>
16021
16022         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16023         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16024         from here...
16025         * modules/nl_langinfo (configure.ac): ... to here.
16026
16027 2011-05-21  Bruno Haible  <bruno@clisp.org>
16028
16029         nanosleep: Move AC_LIBOBJ invocations to module description.
16030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16031         gl_PREREQ_NANOSLEEP invocations from here...
16032         * modules/nanosleep (configure.ac): ... to here.
16033
16034 2011-05-21  Bruno Haible  <bruno@clisp.org>
16035
16036         mountlist: Move AC_LIBOBJ invocations to module description.
16037         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16038         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16039         * modules/mountlist (configure.ac): ... to here.
16040
16041 2011-05-21  Bruno Haible  <bruno@clisp.org>
16042
16043         mktime: Respect rules for use of AC_LIBOBJ.
16044         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16045         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16046         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16047         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16048         * modules/mktime (configure.ac): ... to here.
16049         * modules/mktime-internal (configure.ac): ... and here.
16050         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16051
16052 2011-05-21  Bruno Haible  <bruno@clisp.org>
16053
16054         mkstemps: Move AC_LIBOBJ invocations to module description.
16055         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16056         here...
16057         * modules/mkstemps (configure.ac): ... to here.
16058
16059 2011-05-21  Bruno Haible  <bruno@clisp.org>
16060
16061         mkstemp: Move AC_LIBOBJ invocations to module description.
16062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16063         gl_PREREQ_MKSTEMP invocations from here...
16064         * modules/mkstemp (configure.ac): ... to here.
16065
16066 2011-05-21  Bruno Haible  <bruno@clisp.org>
16067
16068         mkostemps: Move AC_LIBOBJ invocations to module description.
16069         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16070         here...
16071         * modules/mkostemps (configure.ac): ... to here.
16072
16073 2011-05-21  Bruno Haible  <bruno@clisp.org>
16074
16075         mkostemp: Move AC_LIBOBJ invocations to module description.
16076         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16077         gl_PREREQ_MKOSTEMP invocations from here...
16078         * modules/mkostemp (configure.ac): ... to here.
16079
16080 2011-05-21  Bruno Haible  <bruno@clisp.org>
16081
16082         mknod: Move AC_LIBOBJ invocations to module description.
16083         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16084         * modules/mknod (configure.ac): ... to here.
16085
16086 2011-05-21  Bruno Haible  <bruno@clisp.org>
16087
16088         mkfifoat: Move AC_LIBOBJ invocations to module description.
16089         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16090         here...
16091         * modules/mkfifoat (configure.ac): ... to here.
16092
16093 2011-05-21  Bruno Haible  <bruno@clisp.org>
16094
16095         mkfifo: Respect rules for use of AC_LIBOBJ.
16096         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16097         here...
16098         * modules/mkfifo (configure.ac): ... to here.
16099
16100 2011-05-21  Bruno Haible  <bruno@clisp.org>
16101
16102         mkdtemp: Move AC_LIBOBJ invocations to module description.
16103         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16104         invocations from here...
16105         * modules/mkdtemp (configure.ac): ... to here.
16106
16107 2011-05-21  Bruno Haible  <bruno@clisp.org>
16108
16109         mkdir: Move AC_LIBOBJ invocations to module description.
16110         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16111         * modules/mkdir (configure.ac): ... to here.
16112
16113 2011-05-21  Bruno Haible  <bruno@clisp.org>
16114
16115         memset: Move AC_LIBOBJ invocations to module description.
16116         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16117         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16118         here...
16119         * modules/memset (configure.ac): ... to here.
16120
16121 2011-05-21  Bruno Haible  <bruno@clisp.org>
16122
16123         memrchr: Move AC_LIBOBJ invocations to module description.
16124         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16126         here...
16127         * modules/memrchr (configure.ac): ... to here.
16128
16129 2011-05-21  Bruno Haible  <bruno@clisp.org>
16130
16131         mempcpy: Move AC_LIBOBJ invocations to module description.
16132         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16134         here...
16135         * modules/mempcpy (configure.ac): ... to here.
16136
16137 2011-05-21  Bruno Haible  <bruno@clisp.org>
16138
16139         memmove: Move AC_LIBOBJ invocations to module description.
16140         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16142         here...
16143         * modules/memmove (configure.ac): ... to here.
16144
16145 2011-05-21  Bruno Haible  <bruno@clisp.org>
16146
16147         memmem*: Move AC_LIBOBJ invocations to module description.
16148         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16149         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16150         here...
16151         (gl_FUNC_MEMMEM): ... and here...
16152         * modules/memmem-simple (configure.ac): ... to here.
16153         * modules/memmem (configure.ac): ... and here.
16154
16155 2011-05-21  Bruno Haible  <bruno@clisp.org>
16156
16157         memcpy: Move AC_LIBOBJ invocations to module description.
16158         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16160         here...
16161         * modules/memcpy (configure.ac): ... to here.
16162
16163 2011-05-21  Bruno Haible  <bruno@clisp.org>
16164
16165         memcmp: Simplify autoconf macro.
16166         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16167         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16168         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16169
16170 2011-05-21  Bruno Haible  <bruno@clisp.org>
16171
16172         memcmp: Move AC_LIBOBJ invocations to module description.
16173         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16174         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16175         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16176         * modules/memcmp (configure.ac): ... to here.
16177         (Depends-on): Update conditions.
16178
16179 2011-05-21  Bruno Haible  <bruno@clisp.org>
16180
16181         memchr: Respect rules for use of AC_LIBOBJ.
16182         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16183         invocations from here...
16184         * modules/memchr (configure.ac): ... to here.
16185
16186 2011-05-21  Bruno Haible  <bruno@clisp.org>
16187
16188         mbtowc: Move AC_LIBOBJ invocations to module description.
16189         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16190         invocations from here...
16191         * modules/mbtowc (configure.ac): ... to here.
16192
16193 2011-05-21  Bruno Haible  <bruno@clisp.org>
16194
16195         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16196         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16197         gl_PREREQ_MBSRTOWCS invocations from here...
16198         * modules/mbsrtowcs (configure.ac): ... to here.
16199
16200 2011-05-21  Bruno Haible  <bruno@clisp.org>
16201
16202         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16203         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16204         gl_PREREQ_MBSNRTOWCS invocations from here...
16205         * modules/mbsnrtowcs (configure.ac): ... to here.
16206
16207 2011-05-21  Bruno Haible  <bruno@clisp.org>
16208
16209         mbsinit: Move AC_LIBOBJ invocations to module description.
16210         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16211         invocations from here...
16212         * modules/mbsinit (configure.ac): ... to here.
16213
16214 2011-05-21  Bruno Haible  <bruno@clisp.org>
16215
16216         mbrlen: Move AC_LIBOBJ invocations to module description.
16217         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16218         invocations from here...
16219         * modules/mbrlen (configure.ac): ... to here.
16220
16221 2011-05-21  Bruno Haible  <bruno@clisp.org>
16222
16223         mbrtowc: Respect rules for use of AC_LIBOBJ.
16224         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16225         invocations from here...
16226         * modules/mbrtowc (configure.ac): ... to here.
16227
16228 2011-05-21  Bruno Haible  <bruno@clisp.org>
16229
16230         malloc-*: Move AC_LIBOBJ invocations to module description.
16231         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16232         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16233         AC_LIBOBJ invocations from here...
16234         * modules/malloc-gnu (configure.ac): ... to here.
16235         * modules/malloc-posix (configure.ac): ... and here.
16236
16237 2011-05-21  Bruno Haible  <bruno@clisp.org>
16238
16239         lstat, openat: Respect rules for use of AC_LIBOBJ.
16240         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16241         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16242         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16243         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16244         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16245         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16246         here.
16247         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16248
16249 2011-05-21  Bruno Haible  <bruno@clisp.org>
16250
16251         lseek: Move AC_LIBOBJ invocations to module description.
16252         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16253         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16254         * modules/lseek (configure.ac): ... to here.
16255
16256 2011-05-21  Bruno Haible  <bruno@clisp.org>
16257
16258         linkat: Move AC_LIBOBJ invocations to module description.
16259         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16260         here...
16261         * modules/linkat (configure.ac): ... to here.
16262
16263 2011-05-21  Bruno Haible  <bruno@clisp.org>
16264
16265         link: Respect rules for use of AC_LIBOBJ.
16266         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16267         * modules/link (configure.ac): ... to here.
16268
16269 2011-05-21  Bruno Haible  <bruno@clisp.org>
16270
16271         lchown: Move AC_LIBOBJ invocations to module description.
16272         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16273         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16274         * modules/lchown (configure.ac): ... to here.
16275
16276 2011-05-21  Bruno Haible  <bruno@clisp.org>
16277
16278         iswctype: Move AC_LIBOBJ invocations to module description.
16279         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16280         here...
16281         * modules/iswctype (configure.ac): ... to here.
16282
16283 2011-05-21  Bruno Haible  <bruno@clisp.org>
16284
16285         iswblank: Move AC_LIBOBJ invocations to module description.
16286         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16287         here...
16288         * modules/iswblank (configure.ac): ... to here.
16289
16290 2011-05-21  Bruno Haible  <bruno@clisp.org>
16291
16292         atanl: Move AC_LIBOBJ invocations to module description.
16293         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16294         * modules/atanl (configure.ac): ... to here.
16295
16296 2011-05-21  Bruno Haible  <bruno@clisp.org>
16297
16298         acosl: Move AC_LIBOBJ invocations to module description.
16299         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16300         * modules/acosl (configure.ac): ... to here.
16301
16302 2011-05-21  Bruno Haible  <bruno@clisp.org>
16303
16304         asinl: Respect rules for use of AC_LIBOBJ.
16305         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16306         * modules/asinl (configure.ac): ... to here.
16307
16308 2011-05-21  Bruno Haible  <bruno@clisp.org>
16309
16310         tanl: Move AC_LIBOBJ invocations to module description.
16311         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16312         * modules/tanl (configure.ac): ... to here.
16313
16314 2011-05-21  Bruno Haible  <bruno@clisp.org>
16315
16316         cosl: Move AC_LIBOBJ invocations to module description.
16317         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16318         * modules/cosl (configure.ac): ... to here.
16319
16320 2011-05-21  Bruno Haible  <bruno@clisp.org>
16321
16322         sinl: Move AC_LIBOBJ invocations to module description.
16323         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16324         * modules/sinl (configure.ac): ... to here.
16325
16326 2011-05-21  Bruno Haible  <bruno@clisp.org>
16327
16328         logl: Move AC_LIBOBJ invocations to module description.
16329         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16330         * modules/logl (configure.ac): ... to here.
16331
16332 2011-05-21  Bruno Haible  <bruno@clisp.org>
16333
16334         expl: Move AC_LIBOBJ invocations to module description.
16335         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16336         * modules/expl (configure.ac): ... to here.
16337
16338 2011-05-21  Bruno Haible  <bruno@clisp.org>
16339
16340         roundl: Move AC_LIBOBJ invocations to module description.
16341         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16342         * modules/roundl (configure.ac): ... to here.
16343
16344 2011-05-21  Bruno Haible  <bruno@clisp.org>
16345
16346         round: Move AC_LIBOBJ invocations to module description.
16347         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16348         * modules/round (configure.ac): ... to here.
16349
16350 2011-05-21  Bruno Haible  <bruno@clisp.org>
16351
16352         roundf: Move AC_LIBOBJ invocations to module description.
16353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16354         * modules/roundf (configure.ac): ... to here.
16355
16356 2011-05-21  Bruno Haible  <bruno@clisp.org>
16357
16358         truncl: Move AC_LIBOBJ invocations to module description.
16359         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16360         * modules/truncl (configure.ac): ... to here.
16361
16362 2011-05-21  Bruno Haible  <bruno@clisp.org>
16363
16364         trunc: Move AC_LIBOBJ invocations to module description.
16365         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16366         * modules/trunc (configure.ac): ... to here.
16367
16368 2011-05-21  Bruno Haible  <bruno@clisp.org>
16369
16370         truncf: Move AC_LIBOBJ invocations to module description.
16371         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16372         * modules/truncf (configure.ac): ... to here.
16373
16374 2011-05-21  Bruno Haible  <bruno@clisp.org>
16375
16376         ceill: Move AC_LIBOBJ invocations to module description.
16377         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16378         * modules/ceill (configure.ac): ... to here.
16379
16380 2011-05-21  Bruno Haible  <bruno@clisp.org>
16381
16382         ceil: Move AC_LIBOBJ invocations to module description.
16383         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16384         * modules/ceil (configure.ac): ... to here.
16385
16386 2011-05-21  Bruno Haible  <bruno@clisp.org>
16387
16388         ceilf: Move AC_LIBOBJ invocations to module description.
16389         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16390         * modules/ceilf (configure.ac): ... to here.
16391
16392 2011-05-21  Bruno Haible  <bruno@clisp.org>
16393
16394         floorl: Respect rules for use of AC_LIBOBJ.
16395         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16396         * modules/floorl (configure.ac): ... to here.
16397
16398 2011-05-21  Bruno Haible  <bruno@clisp.org>
16399
16400         floor: Respect rules for use of AC_LIBOBJ.
16401         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16402         * modules/floor (configure.ac): ... to here.
16403
16404 2011-05-21  Bruno Haible  <bruno@clisp.org>
16405
16406         floorf: Move AC_LIBOBJ invocations to module description.
16407         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16408         * modules/floorf (configure.ac): ... to here.
16409
16410 2011-05-20  Bruno Haible  <bruno@clisp.org>
16411
16412         sqrtl: Respect rules for use of AC_LIBOBJ.
16413         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16414         * modules/sqrtl (configure.ac): ... to here.
16415
16416 2011-05-20  Bruno Haible  <bruno@clisp.org>
16417
16418         ldexpl: Respect rules for use of AC_LIBOBJ.
16419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16420         * modules/ldexpl (configure.ac): ... to here.
16421
16422 2011-05-20  Bruno Haible  <bruno@clisp.org>
16423
16424         frexpl*: Respect rules for use of AC_LIBOBJ.
16425         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16426         invocation from here...
16427         * modules/frexpl (configure.ac): ... to here.
16428         * modules/frexpl-nolibm (configure.ac): ... and here.
16429
16430 2011-05-20  Bruno Haible  <bruno@clisp.org>
16431
16432         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16433         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16434         invocation from here...
16435         * modules/frexp (configure.ac): ... to here.
16436         * modules/frexp-nolibm (configure.ac): ... and here.
16437
16438 2011-05-20  Bruno Haible  <bruno@clisp.org>
16439
16440         isnan: Respect rules for use of AC_LIBOBJ.
16441         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16442         invocations here.
16443         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16444         REPLACE_ISNAN.
16445         * modules/isnand (configure.ac): Likewise.
16446         * modules/isnanl (configure.ac): Likewise.
16447
16448 2011-05-20  Bruno Haible  <bruno@clisp.org>
16449
16450         isnanl*: Respect rules for use of AC_LIBOBJ.
16451         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16452         invocation from here...
16453         * modules/isnanl (configure.ac): ... to here.
16454         * modules/isnanl-nolibm (configure.ac): ... and here.
16455
16456 2011-05-20  Bruno Haible  <bruno@clisp.org>
16457
16458         isnand*: Move AC_LIBOBJ invocations to module description.
16459         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16460         invocation from here...
16461         * modules/isnand (configure.ac): ... to here.
16462         * modules/isnand-nolibm (configure.ac): ... and here.
16463
16464 2011-05-20  Bruno Haible  <bruno@clisp.org>
16465
16466         isnanf*: Move AC_LIBOBJ invocations to module description.
16467         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16468         invocation from here...
16469         * modules/isnanf (configure.ac): ... to here.
16470         * modules/isnanf-nolibm (configure.ac): ... and here.
16471
16472 2011-05-20  Bruno Haible  <bruno@clisp.org>
16473
16474         isnan*: Separate the AC_LIBOBJ invocations.
16475         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16476         AC_LIBOBJ invocation.
16477         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16478         here.
16479         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16480         AC_LIBOBJ invocation.
16481         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16482         here.
16483         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16484         AC_LIBOBJ invocation.
16485         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16486         here.
16487         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16488
16489 2011-05-08  Bruno Haible  <bruno@clisp.org>
16490
16491         isinf: Move AC_LIBOBJ invocations to module description.
16492         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16493         * modules/isinf (configure.ac): ... to here.
16494
16495 2011-05-08  Bruno Haible  <bruno@clisp.org>
16496
16497         isfinite: Move AC_LIBOBJ invocations to module description.
16498         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16499         * modules/isfinite (configure.ac): ... to here.
16500
16501 2011-05-08  Bruno Haible  <bruno@clisp.org>
16502
16503         isblank: Move AC_LIBOBJ invocations to module description.
16504         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16505         here...
16506         * modules/isblank (configure.ac): ... to here.
16507
16508 2011-05-08  Bruno Haible  <bruno@clisp.org>
16509
16510         isapipe: Move AC_LIBOBJ invocations to module description.
16511         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16512         gl_PREREQ_ISAPIPE invocations from here...
16513         * modules/isapipe (configure.ac): ... to here.
16514         (Depends-on): Update condition.
16515
16516 2011-05-08  Bruno Haible  <bruno@clisp.org>
16517
16518         ioctl: Move AC_LIBOBJ invocations to module description.
16519         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16520         invocations from here...
16521         * modules/ioctl (configure.ac): ... to here.
16522         (Depends-on): Update condition.
16523
16524 2011-05-08  Bruno Haible  <bruno@clisp.org>
16525
16526         imaxdiv: Move AC_LIBOBJ invocations to module description.
16527         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16528         invocations from here...
16529         * modules/imaxdiv (configure.ac): ... to here.
16530
16531 2011-05-08  Bruno Haible  <bruno@clisp.org>
16532
16533         imaxabs: Move AC_LIBOBJ invocations to module description.
16534         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16535         invocations from here...
16536         * modules/imaxabs (configure.ac): ... to here.
16537
16538 2011-05-08  Bruno Haible  <bruno@clisp.org>
16539
16540         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16542         AC_LIBOBJ invocations from here...
16543         * modules/getaddrinfo (configure.ac): ... to here.
16544         (Depends-on): Add conditions.
16545
16546 2011-05-08  Bruno Haible  <bruno@clisp.org>
16547
16548         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16549         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16550         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16551         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16552         (gl_PREREQ_INET_PTON): ... from here.
16553         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16554         gl_PREREQ_INET_PTON here.
16555         (Depends-on): Update condition.
16556
16557 2011-05-08  Bruno Haible  <bruno@clisp.org>
16558
16559         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16560         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16561         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16562         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16563         (gl_PREREQ_INET_NTOP): ... from here.
16564         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16565         gl_PREREQ_INET_NTOP here.
16566         (Depends-on): Update condition.
16567
16568 2011-05-08  Bruno Haible  <bruno@clisp.org>
16569
16570         iconv_open: Move AC_LIBOBJ invocations to module description.
16571         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16572         AC_LIBOBJ invocations from here...
16573         * modules/iconv_open (configure.ac): ... to here.
16574
16575 2011-05-08  Bruno Haible  <bruno@clisp.org>
16576
16577         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16578         If module 'iconv_open' is among the main modules and module
16579         'iconv_open-utf' is among the tests dependencies, then
16580         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16581         return the special iconv_t values. Therefore iconv() and iconv_close()
16582         must support these special iconv_t values, already in lib, not only in
16583         tests.
16584         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16585         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16586         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16587         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16588         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16589         (Depends-on): Add the dependencies of iconv_open-utf.
16590         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16591         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16592         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16593
16594 2011-05-08  Bruno Haible  <bruno@clisp.org>
16595
16596         group-member: Move AC_LIBOBJ invocations to module description.
16597         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16598         gl_PREREQ_GROUP_MEMBER invocations from here...
16599         * modules/group-member (configure.ac): ... to here.
16600
16601 2011-05-08  Bruno Haible  <bruno@clisp.org>
16602
16603         grantpt: Move AC_LIBOBJ invocations to module description.
16604         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16605         invocations from here...
16606         * modules/grantpt (configure.ac): ... to here.
16607
16608 2011-05-08  Bruno Haible  <bruno@clisp.org>
16609
16610         glob: Move AC_LIBOBJ invocations to module description.
16611         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16612         from here...
16613         * modules/glob (configure.ac): ... to here.
16614
16615 2011-05-08  Bruno Haible  <bruno@clisp.org>
16616
16617         getusershell: Move AC_LIBOBJ invocations to module description.
16618         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16619         Move AC_LIBOBJ invocation from here...
16620         * modules/getusershell (configure.ac): ... to here.
16621         (Depends-on): Update condition.
16622
16623 2011-05-08  Bruno Haible  <bruno@clisp.org>
16624
16625         gettimeofday: Move AC_LIBOBJ invocations to module description.
16626         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16627         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16628         gl_PREREQ_GETTIMEOFDAY invocations from here...
16629         * modules/gettimeofday (configure.ac): ... to here.
16630
16631 2011-05-08  Bruno Haible  <bruno@clisp.org>
16632
16633         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16634         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16635         just gl_FUNC_TZSET.
16636         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16637         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16639         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16640
16641 2011-05-08  Bruno Haible  <bruno@clisp.org>
16642
16643         getsubopt: Move AC_LIBOBJ invocations to module description.
16644         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16645         gl_PREREQ_GETSUBOPT invocations from here...
16646         * modules/getsubopt (configure.ac): ... to here.
16647
16648 2011-05-08  Bruno Haible  <bruno@clisp.org>
16649
16650         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16651         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16652         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16653         * modules/getpass-gnu (configure.ac): ... to here.
16654
16655 2011-05-08  Bruno Haible  <bruno@clisp.org>
16656
16657         getpass: Move AC_LIBOBJ invocations to module description.
16658         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16659         gl_PREREQ_GETPASS invocations from here...
16660         * modules/getpass (configure.ac): ... to here.
16661
16662 2011-05-08  Bruno Haible  <bruno@clisp.org>
16663
16664         getpagesize: Move AC_LIBOBJ invocations to module description.
16665         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16666         from here...
16667         * modules/getpagesize (configure.ac): ... to here.
16668
16669 2011-05-08  Bruno Haible  <bruno@clisp.org>
16670
16671         getopt: Move AC_LIBOBJ invocations to module description.
16672         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16673         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16674         invocations from here...
16675         * modules/getopt-gnu (configure.ac): ... to here.
16676         * modules/getopt-posix (configure.ac): ... and here.
16677         (Depends-on): Update condition.
16678
16679 2011-05-08  Bruno Haible  <bruno@clisp.org>
16680
16681         getopt, argp: Respect rules for use of AC_LIBOBJ.
16682         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16683         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16684         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16685         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16686
16687 2011-05-08  Bruno Haible  <bruno@clisp.org>
16688
16689         getlogin_r: Move AC_LIBOBJ invocations to module description.
16690         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16691         gl_PREREQ_GETLOGIN_R invocations from here...
16692         * modules/getlogin_r (configure.ac): ... to here.
16693
16694 2011-05-08  Bruno Haible  <bruno@clisp.org>
16695
16696         getlogin: Move AC_LIBOBJ invocations to module description.
16697         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16698         here...
16699         * modules/getlogin (configure.ac): ... to here.
16700
16701 2011-05-08  Bruno Haible  <bruno@clisp.org>
16702
16703         getloadavg: Move AC_LIBOBJ invocations to module description.
16704         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16705         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16706         * modules/getloadavg (configure.ac): ... to here.
16707
16708 2011-05-08  Bruno Haible  <bruno@clisp.org>
16709
16710         gethrxtime: Move AC_LIBOBJ invocations to module description.
16711         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16712         LIB_GETHRXTIME from here...
16713         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16714         invocations from here...
16715         * modules/gethrxtime (configure.ac): ... to here.
16716
16717 2011-05-08  Bruno Haible  <bruno@clisp.org>
16718
16719         gethostname: Move AC_LIBOBJ invocations to module description.
16720         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16721         gl_PREREQ_GETHOSTNAME invocations from here...
16722         * modules/gethostname (configure.ac): ... to here.
16723
16724 2011-05-08  Bruno Haible  <bruno@clisp.org>
16725
16726         getgroups: Move AC_LIBOBJ invocations to module description.
16727         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16728         here...
16729         * modules/getgroups (configure.ac): ... to here.
16730
16731 2011-05-08  Bruno Haible  <bruno@clisp.org>
16732
16733         getdtablesize: Move AC_LIBOBJ invocations to module description.
16734         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16735         invocation from here...
16736         * modules/getdtablesize (configure.ac): ... to here.
16737
16738 2011-05-08  Bruno Haible  <bruno@clisp.org>
16739
16740         getdomainname: Move AC_LIBOBJ invocations to module description.
16741         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16742         gl_PREREQ_GETDOMAINNAME invocations from here...
16743         * modules/getdomainname (configure.ac): ... to here.
16744
16745 2011-05-08  Bruno Haible  <bruno@clisp.org>
16746
16747         getline: Move AC_LIBOBJ invocations to module description.
16748         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16749         invocations from here...
16750         * modules/getline (configure.ac): ... to here.
16751
16752 2011-05-08  Bruno Haible  <bruno@clisp.org>
16753
16754         getline: Simplify.
16755         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16756         It's already handled through the module dependency.
16757
16758 2011-05-08  Bruno Haible  <bruno@clisp.org>
16759
16760         getdelim: Move AC_LIBOBJ invocations to module description.
16761         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16762         and gl_PREREQ_GETDELIM invocations from here...
16763         * modules/getdelim (configure.ac): ... to here.
16764         (Depends-on): Fix condition.
16765
16766 2011-05-08  Bruno Haible  <bruno@clisp.org>
16767
16768         getcwd: Move AC_LIBOBJ invocations to module description.
16769         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16770         invocations from here...
16771         * modules/getcwd (configure.ac): ... to here.
16772
16773 2011-05-08  Bruno Haible  <bruno@clisp.org>
16774
16775         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16776         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16777         here...
16778         * modules/getcwd-lgpl (configure.ac): ... to here.
16779
16780 2011-05-07  Bruno Haible  <bruno@clisp.org>
16781
16782         crypto/gc: Move AC_LIBOBJ invocations to module description.
16783         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16784         * modules/crypto/gc (configure.ac): ... to here.
16785
16786 2011-05-07  Bruno Haible  <bruno@clisp.org>
16787
16788         fwriting: Move AC_LIBOBJ invocations to module description.
16789         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16790         here...
16791         * modules/fwriting (configure.ac): ... to here.
16792
16793 2011-05-07  Bruno Haible  <bruno@clisp.org>
16794
16795         fwritable: Move AC_LIBOBJ invocations to module description.
16796         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16797         here...
16798         * modules/fwritable (configure.ac): ... to here.
16799
16800 2011-05-07  Bruno Haible  <bruno@clisp.org>
16801
16802         futimens: Move AC_LIBOBJ invocations to module description.
16803         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16804         here...
16805         * modules/futimens (configure.ac): ... to here.
16806
16807 2011-05-07  Bruno Haible  <bruno@clisp.org>
16808
16809         ftruncate: Move AC_LIBOBJ invocations to module description.
16810         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16811         gl_PREREQ_FTRUNCATE invocations from here...
16812         * modules/ftruncate (configure.ac): ... to here.
16813
16814 2011-05-07  Bruno Haible  <bruno@clisp.org>
16815
16816         fsync: Move AC_LIBOBJ invocations to module description.
16817         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16818         invocations from here...
16819         * modules/fsync (configure.ac): ... to here.
16820
16821 2011-05-07  Bruno Haible  <bruno@clisp.org>
16822
16823         fsusage: Move AC_LIBOBJ invocations to module description.
16824         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16825         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16826         * modules/fsusage (configure.ac): ... to here.
16827
16828 2011-05-07  Bruno Haible  <bruno@clisp.org>
16829
16830         freopen: Move AC_LIBOBJ invocations to module description.
16831         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16832         invocations from here...
16833         * modules/freopen (configure.ac): ... to here.
16834
16835 2011-05-07  Bruno Haible  <bruno@clisp.org>
16836
16837         free: Move AC_LIBOBJ invocations to module description.
16838         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16839         invocations from here...
16840         * modules/free (configure.ac): ... to here.
16841
16842 2011-05-07  Bruno Haible  <bruno@clisp.org>
16843
16844         freadable: Move AC_LIBOBJ invocations to module description.
16845         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16846         here...
16847         * modules/freadable (configure.ac): ... to here.
16848
16849 2011-05-07  Bruno Haible  <bruno@clisp.org>
16850
16851         fpurge: Move AC_LIBOBJ invocations to module description.
16852         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16853         invocations from here...
16854         * modules/fpurge (configure.ac): ... to here.
16855
16856 2011-05-07  Bruno Haible  <bruno@clisp.org>
16857
16858         fpending: Move AC_LIBOBJ invocations to module description.
16859         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16860         gl_FUNC_FPENDING.
16861         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16862         invocations from here...
16863         * modules/fpending (configure.ac): ... to here.
16864
16865 2011-05-07  Bruno Haible  <bruno@clisp.org>
16866
16867         fopen: Move AC_LIBOBJ invocations to module description.
16868         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16869         invocations from here...
16870         * modules/fopen (configure.ac): ... to here.
16871
16872 2011-05-07  Bruno Haible  <bruno@clisp.org>
16873
16874         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16875         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16876         gl_FUNC_FNMATCH_POSIX.
16877         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16878         invocations from here...
16879         * modules/fnmatch (configure.ac): ... to here.
16880         * modules/fnmatch-gnu (configure.ac): ... and here.
16881
16882 2011-05-07  Bruno Haible  <bruno@clisp.org>
16883
16884         flock: Move AC_LIBOBJ invocations to module description.
16885         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16886         invocations from here...
16887         * modules/flock (configure.ac): ... to here.
16888
16889 2011-05-07  Bruno Haible  <bruno@clisp.org>
16890
16891         fileblocks: Move AC_LIBOBJ invocations to module description.
16892         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16893         gl_PREREQ_FILEBLOCKS invocations from here...
16894         * modules/fileblocks (configure.ac): ... to here.
16895
16896 2011-05-06  Bruno Haible  <bruno@clisp.org>
16897
16898         fflush: Move AC_LIBOBJ invocations to module description.
16899         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16900         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16901         invocations from here...
16902         * modules/fflush (configure.ac): ... to here.
16903
16904 2011-05-06  Bruno Haible  <bruno@clisp.org>
16905
16906         fdopendir: Move AC_LIBOBJ invocations to module description.
16907         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16908         here...
16909         * modules/fdopendir (configure.ac): ... to here.
16910         (Depends-on): Improve conditions.
16911
16912 2011-05-06  Bruno Haible  <bruno@clisp.org>
16913
16914         _Exit: Move AC_LIBOBJ invocations to module description.
16915         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16916         invocations from here...
16917         * modules/_Exit (configure.ac): ... to here.
16918
16919 2011-05-21  Bruno Haible  <bruno@clisp.org>
16920
16921         euidaccess: Respect rules for use of AC_LIBOBJ.
16922         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16923         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16924         from here...
16925         * modules/euidaccess (configure.ac): ... to here.
16926
16927 2011-05-06  Bruno Haible  <bruno@clisp.org>
16928
16929         error: Move AC_LIBOBJ invocations to module description.
16930         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16931         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16932         invocations from here...
16933         * modules/error (configure.ac): ... to here.
16934
16935 2011-05-06  Bruno Haible  <bruno@clisp.org>
16936
16937         duplocale: Move AC_LIBOBJ invocations to module description.
16938         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16939         gl_PREREQ_DUPLOCALE invocations from here...
16940         * modules/duplocale (configure.ac): ... to here.
16941
16942 2011-05-05  Bruno Haible  <bruno@clisp.org>
16943
16944         dirfd: Move AC_LIBOBJ invocations to module description.
16945         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16946         gl_FUNC_DIRFD.
16947         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16948         here...
16949         * modules/dirfd (configure.ac): ... to here.
16950         (Depends-on): Fix condition.
16951
16952 2011-05-05  Bruno Haible  <bruno@clisp.org>
16953
16954         chown: Respect rules for use of AC_LIBOBJ.
16955         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16956         * modules/chown (configure.ac): ... to here.
16957
16958 2011-05-05  Bruno Haible  <bruno@clisp.org>
16959
16960         chdir-long: Move AC_LIBOBJ invocations to module description.
16961         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16962         gl_PREREQ_CHDIR_LONG invocations from here...
16963         * modules/chdir-long (configure.ac): ... to here.
16964
16965 2011-05-05  Bruno Haible  <bruno@clisp.org>
16966
16967         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16968         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16969         from here...
16970         * modules/canonicalize-lgpl (configure.ac): ... to here.
16971
16972 2011-05-05  Bruno Haible  <bruno@clisp.org>
16973
16974         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16975         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16976         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16977         REPLACE_CALLOC.
16978         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16979         * modules/calloc-gnu (configure.ac): Likewise.
16980
16981 2011-05-05  Bruno Haible  <bruno@clisp.org>
16982
16983         btowc: Move AC_LIBOBJ invocations to module description.
16984         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16985         invocations from here...
16986         * modules/btowc (configure.ac): ... to here.
16987
16988 2011-05-21  Bruno Haible  <bruno@clisp.org>
16989
16990         atexit: Move AC_LIBOBJ invocations to module description.
16991         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16993         here...
16994         * modules/atexit (configure.ac): ... to here.
16995
16996 2011-05-05  Bruno Haible  <bruno@clisp.org>
16997
16998         atoll: Move AC_LIBOBJ invocations to module description.
16999         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17000         invocations from here...
17001         * modules/atoll (configure.ac): ... to here.
17002
17003 2011-05-05  Bruno Haible  <bruno@clisp.org>
17004
17005         argz: Move AC_LIBOBJ invocations to module description.
17006         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17007         * modules/argz (configure.ac): ... to here.
17008
17009 2011-05-05  Bruno Haible  <bruno@clisp.org>
17010
17011         alphasort: Move AC_LIBOBJ invocations to module description.
17012         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17013         gl_PREREQ_ALPHASORT invocations from here...
17014         * modules/alphasort (configure.ac): ... to here.
17015
17016 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17017
17018         verify: new macro verify_expr; verify_true deprecated
17019         * NEWS: Mention this.
17020         * doc/verify.texi (Compile-time Assertions): Document this.
17021         * lib/verify.h (verify_true): Deprecate.
17022         (verify_expr): New macro.
17023         * tests/test-verify.c (function): Test verify_expr.
17024
17025 2011-06-14  Jim Meyering  <meyering@redhat.com>
17026
17027         init.sh: give more portable redirection-related advice in a comment
17028         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17029         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17030         for lots of discussion.  Stefano Lattarini suggested the solution
17031         of putting "9>&2" after the command.  Reported by Bruno Haible.
17032
17033 2011-06-13  Bruno Haible  <bruno@clisp.org>
17034
17035         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17037         'none'.
17038
17039 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17040
17041         ftoastr: use strtof only if HAVE_STRTOF
17042         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17044         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17045         * modules/ftoastr (configure.ac): Check for strtof.
17046
17047 2011-06-13  Bruno Haible  <bruno@clisp.org>
17048
17049         gnulib-tool: Addendum to 2011-06-08 commit.
17050         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17051         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17052
17053 2011-06-13  Bruno Haible  <bruno@clisp.org>
17054
17055         fseeko: Provide a non-inline replacement of fseek().
17056         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17057         * modules/fseeko (Depends-on): Add fseek.
17058         * modules/fseek (License): Change to LGPLv2+.
17059
17060 2011-06-13  Bruno Haible  <bruno@clisp.org>
17061
17062         ftello: Provide a non-inline replacement of ftell().
17063         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17064         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17065         not have ftello() (such as on mingw).
17066         * modules/ftello (Depends-on): Add ftell.
17067         * modules/ftell (License): Change to LGPLv2+.
17068
17069 2011-05-07  Bruno Haible  <bruno@clisp.org>
17070
17071         ftell: Move AC_LIBOBJ invocations to module description.
17072         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17073         * modules/ftell (configure.ac): ... to here.
17074
17075 2011-05-07  Bruno Haible  <bruno@clisp.org>
17076
17077         ftello: Respect rules for use of AC_LIBOBJ.
17078         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17079         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17080         here...
17081         * modules/ftello (configure.ac): ... to here.
17082
17083 2011-05-07  Bruno Haible  <bruno@clisp.org>
17084
17085         fseeko: Simplify.
17086         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17087         (gl_FUNC_FSEEKO): Inline it here.
17088
17089 2011-05-07  Bruno Haible  <bruno@clisp.org>
17090
17091         fseek: Move AC_LIBOBJ invocations to module description.
17092         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17093         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17094         * modules/fseek (configure.ac): ... to here.
17095
17096 2011-05-07  Bruno Haible  <bruno@clisp.org>
17097
17098         fseek: Respect rules for use of AC_LIBOBJ.
17099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17100         here...
17101         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17102
17103 2011-05-07  Bruno Haible  <bruno@clisp.org>
17104
17105         fseeko: Respect rules for use of AC_LIBOBJ.
17106         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17107         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17108         here...
17109         * modules/fseeko (configure.ac): ... to here.
17110
17111 2011-06-13  Bruno Haible  <bruno@clisp.org>
17112
17113         gnulib-tool: Allow comments in the 'Depends-on' section.
17114         * doc/gnulib.texi (Module description): Mention comment syntax in the
17115         Depends-on section.
17116         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17117
17118 2011-06-13  Bruno Haible  <bruno@clisp.org>
17119
17120         file-set.h: guard __attibute__ use, now that it's not always defined
17121         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17122         versions that support it.  This fixes a coreutils build failure with
17123         the vendor cc on HP-UX 11.31.
17124
17125 2011-06-12  Bruno Haible  <bruno@clisp.org>
17126
17127         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17128         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17129         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17130         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17131         (acl, aclsort): New declarations.
17132         (aclv_nontrivial): New declaration.
17133         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17134         (file_has_acl): Read also the second kind of HP-UX ACLs.
17135         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17136         kind of HP-UX ACLs if the first kind fails.
17137         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17138         second kind of HP-UX ACLs.
17139         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17140         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17141         agree.
17142         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17143         hpuxjfs.
17144         Handle hpuxjfs.
17145         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17146         hpuxjfs.
17147         Handle hpuxjfs.
17148         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17149         (func_test_same_acls): Use both lsacl and getacl.
17150         Handle hpuxjfs.
17151         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17152         (func_test_same_acls): Use both lsacl and getacl.
17153         Handle hpuxjfs.
17154
17155 2011-06-12  Bruno Haible  <bruno@clisp.org>
17156
17157         acl: Complete the 2010-08-10 fix.
17158         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17159         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17160         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17161         explicitly.
17162         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17163         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17164
17165 2011-06-12  Bruno Haible  <bruno@clisp.org>
17166
17167         spawn-pipe tests: Comments.
17168         * tests/test-spawn-pipe-child.c (main): Update comment.
17169         Reported by James Youngman <jay@gnu.org>.
17170
17171 2011-06-11  James Youngman  <jay@gnu.org>
17172
17173         New module 'stat-size'.
17174         * modules/stat-size: New module.  Provides macros for accessing
17175         file size information in instances of struct stat.  Depends on the
17176         fileblocks module because it calls st_blocks.
17177         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17178         * doc/gnulib.texi: Include stat-size.texi.
17179         * doc/stat-size.texi: Documentation for this module.
17180         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17181         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17182         AC_STRUCT_ST_BLOCKS.
17183
17184 2011-06-09  Bruno Haible  <bruno@clisp.org>
17185
17186         thread: Support pthreads-win32.
17187         * lib/glthread/thread.h (gl_thread_self): Define differently on
17188         pthreads-win32.
17189         (gl_null_thread): New declaration.
17190         (gl_thread_self_pointer): New macro.
17191         * lib/glthread/thread.c (gl_null_thread): New constant.
17192         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17193         gl_thread_self.
17194         * tests/test-tls.c: Likewise.
17195         Suggested by Paul Eggert. Reported by Eric Blake.
17196
17197 2011-06-09  Bruno Haible  <bruno@clisp.org>
17198
17199         thread: Fix confusion between NULL and 0.
17200         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17201         Reported by Paul Eggert.
17202
17203 2011-06-09  Bruno Haible  <bruno@clisp.org>
17204
17205         spawn-pipe tests: Avoid test failure on HP-UX 11.
17206         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17207         is closed.
17208
17209 2011-06-09  Bruno Haible  <bruno@clisp.org>
17210
17211         acl tests: Fix compilation error on HP-UX 11.
17212         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17213
17214 2011-06-09  Bruno Haible  <bruno@clisp.org>
17215
17216         rmdir: Avoid test failure on HP-UX 10.20.
17217         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17218         EEXIST.
17219
17220 2011-06-08  Eric Blake  <eblake@redhat.com>
17221
17222         perror: fix test on mingw
17223         * modules/perror-tests (Depends-on): Add dup2.
17224
17225         strerror_r-posix: fix on MacOS
17226         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17227         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17228         logic bug.
17229         * lib/strerror_r.c (strerror_r): Fix the bug.
17230         * lib/strerror.c (strerror): Likewise.
17231         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17232         problem.
17233         * doc/posix-functions/strerror.texi (strerror): Likewise.
17234         * doc/posix-functions/perror.texi (perror): Likewise.
17235         * tests/test-strerror.c (main): Enhance test.
17236         * tests/test-strerror_r.c (main): Likewise.
17237
17238 2011-06-08  Bruno Haible  <bruno@clisp.org>
17239
17240         gnulib-tool: Better isolation between different gnulib-tool invocations.
17241         * gnulib-tool: New option --witness-c-macro.
17242         (witness_c_macro): New variable.
17243         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17244         AM_CPPFLAGS define it as a C macro.
17245         (func_emit_tests_Makefile_am): Likewise.
17246         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17247         read it from there.
17248         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17249         m4_define, not AC_DEFUN.
17250         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17251         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17252         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17253         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17254         s|...|...|, to substitute the values of the GNULIB_* module indicator
17255         variables.
17256         * modules/dirent (Makefile.am): Likewise.
17257         * modules/fcntl-h (Makefile.am): Likewise.
17258         * modules/iconv-h (Makefile.am): Likewise.
17259         * modules/langinfo (Makefile.am): Likewise.
17260         * modules/locale (Makefile.am): Likewise.
17261         * modules/math (Makefile.am): Likewise.
17262         * modules/netdb (Makefile.am): Likewise.
17263         * modules/poll-h (Makefile.am): Likewise.
17264         * modules/pty (Makefile.am): Likewise.
17265         * modules/search (Makefile.am): Likewise.
17266         * modules/signal (Makefile.am): Likewise.
17267         * modules/spawn (Makefile.am): Likewise.
17268         * modules/stdio (Makefile.am): Likewise.
17269         * modules/stdlib (Makefile.am): Likewise.
17270         * modules/string (Makefile.am): Likewise.
17271         * modules/sys_ioctl (Makefile.am): Likewise.
17272         * modules/sys_select (Makefile.am): Likewise.
17273         * modules/sys_socket (Makefile.am): Likewise.
17274         * modules/sys_stat (Makefile.am): Likewise.
17275         * modules/sys_times (Makefile.am): Likewise.
17276         * modules/sys_utsname (Makefile.am): Likewise.
17277         * modules/sys_wait (Makefile.am): Likewise.
17278         * modules/termios (Makefile.am): Likewise.
17279         * modules/time (Makefile.am): Likewise.
17280         * modules/unistd (Makefile.am): Likewise.
17281         * modules/wchar (Makefile.am): Likewise.
17282
17283 2011-06-08  Eric Blake  <eblake@redhat.com>
17284
17285         strerror: simplify replacement
17286         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17287         * modules/strerror (configure.ac): No prereqs needed here...
17288         * modules/strerror-override (configure.ac): ...but this needs it.
17289         (Files): Add file for needed prereq macro.
17290
17291 2011-06-08  Bruno Haible  <bruno@clisp.org>
17292
17293         strerror_r-posix: Tweaks.
17294         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17295         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17297         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17298         (gl_FUNC_STRERROR_R): ... to here.
17299         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17300
17301 2011-06-07  Eric Blake  <eblake@redhat.com>
17302
17303         perror: document fixed bugs
17304         * doc/posix-functions/perror.texi (perror): Document recent
17305         patches.
17306
17307 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17308
17309         stat-time: get_stat_birthtime failure is better-defined
17310         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17311         return a timestamp whose tv_sec and tv_nsec values are both -1.
17312         Previously, the spec said only that the tv_nsec value was negative.
17313         This upward-compatible change simplifies GNU tar a bit.
17314
17315 2011-06-07  Eric Blake  <eblake@redhat.com>
17316
17317         strerror_r-posix: work around cygwin 1.7.9
17318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17319         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17320         bug without replacing strerror_r.
17321         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17322         strerror_r is buggy, but without requiring strerror_r compilation.
17323         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17324
17325         test-perror: relax test to ignore cygwin bug
17326         * tests/test-perror2.c (main): Relax test on requiring detection
17327         of stream errors, and use unbuffered stream.
17328         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17329         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17330         * doc/posix-functions/fputc.texi (fputc): Likewise.
17331         * doc/posix-functions/fputs.texi (fputs): Likewise.
17332         * doc/posix-functions/fputws.texi (fputws): Likewise.
17333         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17334         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17335         * doc/posix-functions/getopt.texi (getopt): Likewise.
17336         * doc/posix-functions/perror.texi (perror): Likewise.
17337         * doc/posix-functions/printf.texi (printf): Likewise.
17338         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17339         * doc/posix-functions/psignal.texi (psignal): Likewise.
17340         * doc/posix-functions/putc.texi (putc): Likewise.
17341         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17342         Likewise.
17343         * doc/posix-functions/putchar.texi (putchar): Likewise.
17344         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17345         Likewise.
17346         * doc/posix-functions/puts.texi (puts): Likewise.
17347         * doc/posix-functions/putwc.texi (putwc): Likewise.
17348         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17349         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17350         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17351         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17352         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17353         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17354         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17355         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17356
17357 2011-05-22  Bruno Haible  <bruno@clisp.org>
17358
17359         strerror: Move AC_LIBOBJ invocations to module description.
17360         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17361         gl_PREREQ_STRERROR invocations from here...
17362         * modules/strerror (configure.ac): ... to here.
17363
17364 2011-05-21  Bruno Haible  <bruno@clisp.org>
17365
17366         perror: Use common idiom.
17367         * modules/perror (configure.ac): Reorder statements.
17368
17369 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17370
17371         tests: fix usage message in 'mktempd_'
17372         * tests/init.sh (mktempd_): In the usage message, use literal
17373         'mktempd_', not '$ME' (which is even undefined), as the name of
17374         the subroutine.
17375
17376 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17377
17378         tests init: new function 'fatal_', for hard errors
17379         Before this patch, the only way offered by tests/init.sh to
17380         properly signal a hard error was the `framework_failure_'
17381         function.  But the error message issued by that function,
17382         as its name would suggest, refers to a set-up failure in the
17383         testsuite, while hard errors can obviously also be due to
17384         other reasons.  The best way to fix this inconsistency is to
17385         introduce a new function with a more general error message.
17386         * tests/init.sh (fatal_): New function.
17387
17388 2011-06-06  Eric Blake  <eblake@redhat.com>
17389
17390         canonicalize-lgpl: use common idiom
17391         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17392         over newer POSIX -Rf.
17393         Reported by Bruno Haible.
17394
17395         canonicalize-lgpl: work around AIX realpath bug
17396         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17397         * doc/posix-functions/realpath.texi (realpath): Document it.
17398         Reported by Bruno Haible.
17399
17400         strerror: work around FreeBSD bug
17401         * lib/strerror.c (strerror): Special case 0.
17402         Reported by Bruno Haible.
17403
17404         strerror-override: avoid bloating errno module
17405         * modules/errno (Files, configure.ac): Move replacement strings...
17406         * modules/strerror-override: ...to new module.
17407         * modules/strerror (Depends-on): Add strerror-override.
17408         * modules/strerror_r-posix (Depends-on): Likewise.
17409         * MODULES.html.sh: Document new module.
17410         Reported by Bruno Haible.
17411
17412 2011-06-06  Bruno Haible  <bruno@clisp.org>
17413
17414         spawn-pipe tests: Rename program.
17415         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17416         * tests/test-spawn-pipe-child.c: Update comment.
17417         * tests/test-spawn-pipe.sh: Update.
17418         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17419
17420         spawn-pipe tests: Link the child program only against libc.
17421         * tests/test-spawn-pipe-child.c: New file, extracted from
17422         tests/test-spawn-pipe.c.
17423         (main): Expect only one argument.
17424         (is_open): New function, copied from tests/test-pipe.c.
17425         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17426         (child_main): Remove function.
17427         (test_pipe): Pass only one argument to the child program.
17428         (main): Remove child process code. Expect the child program's name as
17429         first argument.
17430         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17431         argument.
17432         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17433         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17434         test-spawn-pipe-child against no libraries.
17435
17436 2011-06-06  Bruno Haible  <bruno@clisp.org>
17437
17438         careadlinkat: Avoid mismatch between ssize_t and int.
17439         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17440         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17441
17442 2011-06-06  Jim Meyering  <meyering@redhat.com>
17443
17444         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17445         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17446         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17447
17448 2011-06-05  Bruno Haible  <bruno@clisp.org>
17449
17450         ansi-c++-opt: Interoperability with libtool.
17451         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17452         set the variable to "no", not to ":".
17453         * NEWS: Mention the change.
17454
17455 2011-06-05  Bruno Haible  <bruno@clisp.org>
17456
17457         acl: Fix test failure on AIX 7.
17458         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17459         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17460
17461 2011-06-05  Bruno Haible  <bruno@clisp.org>
17462
17463         pipe-filter-ii: Fix test failure on AIX and IRIX.
17464         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17465         with EAGAIN, retry with a smaller buffer size.
17466
17467 2011-06-05  Bruno Haible  <bruno@clisp.org>
17468
17469         localename: Fix link dependencies.
17470         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17471         * modules/localename-tests (Makefile.am): Link test-localename with
17472         $(LIBTHREAD).
17473
17474 2011-06-05  Bruno Haible  <bruno@clisp.org>
17475
17476         error: Avoid gcc warning.
17477         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17478
17479 2011-06-05  Bruno Haible  <bruno@clisp.org>
17480
17481         unsetenv: Avoid gcc warning.
17482         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17483
17484 2011-06-05  Bruno Haible  <bruno@clisp.org>
17485
17486         setenv: Avoid gcc warning.
17487         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17488
17489 2011-06-05  Bruno Haible  <bruno@clisp.org>
17490
17491         sys_select: Ensure memset is declared also on AIX 7.
17492         * lib/sys_select.in.h: Include <string.h> also on AIX.
17493         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17494         self-contained also on AIX 7.1.
17495
17496 2011-06-04  Jim Meyering  <meyering@redhat.com>
17497
17498         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17499         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17500         function name, "error".
17501         (_gl_translatable_diag_func_re): New configurable variable.
17502
17503 2011-06-04  Bruno Haible  <bruno@clisp.org>
17504
17505         getopt: Avoid gcc warning.
17506         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17507
17508 2011-06-04  Bruno Haible  <bruno@clisp.org>
17509
17510         strerror_r: Fix comments.
17511         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17512         commit.
17513
17514 2011-06-04  Bruno Haible  <bruno@clisp.org>
17515
17516         perror: Fix compilation error.
17517         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17518         Undefine fprintf, not sprintf.
17519         * modules/perror (Depends-on): Remove intprops, verify.
17520
17521 2011-06-04  Bruno Haible  <bruno@clisp.org>
17522
17523         setlocale: Enable replacement on Cygwin 1.5.
17524         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17525         Cygwin 1.5.x.
17526         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17527         LC_CTYPE category also exists on Cygwin 1.5.x.
17528
17529 2011-06-04  Bruno Haible  <bruno@clisp.org>
17530
17531         strerror-override: Don't disable symbol renamings.
17532         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17533         * lib/strerror-override.c: Include config.h.
17534         (strerror_override): Don't undefine.
17535
17536 2011-06-03  Bruno Haible  <bruno@clisp.org>
17537
17538         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17539         * lib/localename.h: Update copyright header.
17540         * lib/localename.c: Likewise.
17541         * lib/relocatable.h: Likewise.
17542         * lib/relocatable.c: Likewise.
17543
17544 2011-06-02  Bruno Haible  <bruno@clisp.org>
17545
17546         doc: Fix a module name.
17547         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17548
17549 2011-06-02  Bruno Haible  <bruno@clisp.org>
17550
17551         pipe2: Remove dependency on 'nonblocking' module.
17552         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17553         O_NONBLOCK is defined by gnulib.
17554         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17555         is zero.
17556         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17557         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17558         defined by gnulib.
17559         (get_nonblocking_flag): New function.
17560         (main): Test O_NONBLOCK flag only if it is nonzero.
17561         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17562
17563 2011-06-03  Jim Meyering  <meyering@redhat.com>
17564
17565         maint: three new prohibit-header-without-use rules
17566         Prohibit use of cloexec.h, posixver.h, same.h without use.
17567         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17568         (sc_prohibit_posixver_without_use): Likewise.
17569         (sc_prohibit_same_without_use): Likewise.
17570
17571 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17572
17573         allocator: 'die' routine is now given requested size
17574         * lib/allocator.h (struct allocator.die): New size arg.
17575         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17576         If the actual problem is an ssize_t limitation, not a size_t or
17577         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17578
17579 2011-06-01  Eric Blake  <eblake@redhat.com>
17580
17581         strerror: drop strerror_r dependency
17582         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17583         * lib/strerror-override.c (strerror_override): ...to new file.
17584         * lib/strerror-override.h: Add prototype.
17585         * lib/strerror-impl.h: Delete.
17586         * lib/strerror.c (strerror): New implementation.
17587         * modules/errno (Files): Add new files.
17588         (configure.ac): Compile new file as appropriate.
17589         * modules/strerror (Files): Drop unused file.
17590         (Depends-on): Drop strerror_r-posix.
17591         * MODULES.html.sh: Document strerror_r-posix.
17592         Requested by Sam Steingold.
17593
17594         perror: call strerror_r directly
17595         * modules/perror (Files): Drop strerror-impl.h.
17596         * lib/perror.c (perror): Use our own stack buffer, rather than
17597         calling a wrapper that uses static storage.
17598         * doc/posix-functions/perror.texi (perror): Document a limitation
17599         of our replacement.
17600
17601         strerror_r: fix includes for FreeBSD
17602         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17603         since we use abort on some platforms.
17604         Reported by Matthias Bolte.
17605
17606 2011-05-31  Bruno Haible  <bruno@clisp.org>
17607
17608         Fix link errors in tests: openat-die uses gettext-h.
17609         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17610         against $(LIBINTL).
17611         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17612         against $(LIBINTL).
17613         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17614         $(LIBINTL).
17615         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17616         against $(LIBINTL).
17617         * modules/linkat-tests (Makefile.am): Link test-linkat against
17618         $(LIBINTL).
17619         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17620         $(LIBINTL).
17621         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17622         against $(LIBINTL).
17623         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17624         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17625         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17626         $(LIBINTL).
17627         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17628         $(LIBINTL).
17629         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17630         $(LIBINTL).
17631         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17632
17633 2011-05-31  Bruno Haible  <bruno@clisp.org>
17634
17635         Fix link errors in tests: wait-process uses gettext-h.
17636         * modules/nonblocking-pipe-tests (Makefile.am): Set
17637         test_nonblocking_pipe_main_LDADD.
17638         * modules/nonblocking-socket-tests (Makefile.am): Link
17639         test-nonblocking-socket-main against $(LIBINTL).
17640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17641
17642 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17643
17644         assert-h: work around 'verify' incompatibility
17645         * lib/verify.h: Use @...@ directives, not ifdef.
17646         * modules/assert-h (assert.h): Implement the directives.
17647         (assert.h): Substitute the symbol-prefix more consistently.
17648
17649 2011-05-29  Jim Meyering  <meyering@redhat.com>
17650
17651         trim: remove three superfluous assignments
17652         * lib/trim.c (trim2): Remove three superfluous assignments
17653         and correct brace positioning.
17654
17655 2011-05-29  Bruno Haible  <bruno@clisp.org>
17656
17657         wctype-h: Avoid namespace pollution on Solaris 2.6.
17658         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17659         identifiers.
17660         * doc/posix-headers/wctype.texi: Mention the problem.
17661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17662
17663 2011-05-28  Jim Meyering  <meyering@redhat.com>
17664
17665         parse-datetime.y: accommodate -Wstrict-overflow
17666         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17667         placate -Wstrict-overflow.
17668
17669         trim: avoid a warning from -O2 -Wstrict-overflow
17670         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17671
17672 2011-05-29  Bruno Haible  <bruno@clisp.org>
17673
17674         gnulib-tool: Fix bug in yesterday's commit.
17675         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17676         twice.
17677
17678 2011-05-29  Bruno Haible  <bruno@clisp.org>
17679
17680         Allow multiple gnulib generated include files to be combined.
17681         * gnulib-tool (func_compute_include_guard_prefix): New function.
17682         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17683         ${gl_include_guard_prefix} references.
17684         (func_import, func_create_testdir): Invoke
17685         func_compute_include_guard_prefix.
17686         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17687         * lib/ctype.in.h: Likewise.
17688         * lib/dirent.in.h: Likewise.
17689         * lib/errno.in.h: Likewise.
17690         * lib/fcntl.in.h: Likewise.
17691         * lib/float.in.h: Likewise.
17692         * lib/getopt.in.h: Likewise.
17693         * lib/iconv.in.h: Likewise.
17694         * lib/langinfo.in.h: Likewise.
17695         * lib/locale.in.h: Likewise.
17696         * lib/math.in.h: Likewise.
17697         * lib/netdb.in.h: Likewise.
17698         * lib/netinet_in.in.h: Likewise.
17699         * lib/poll.in.h: Likewise.
17700         * lib/pthread.in.h: Likewise.
17701         * lib/pty.in.h: Likewise.
17702         * lib/sched.in.h: Likewise.
17703         * lib/se-selinux.in.h: Likewise.
17704         * lib/search.in.h: Likewise.
17705         * lib/signal.in.h: Likewise.
17706         * lib/spawn.in.h: Likewise.
17707         * lib/stdarg.in.h: Likewise.
17708         * lib/stddef.in.h: Likewise.
17709         * lib/stdint.in.h: Likewise.
17710         * lib/stdio.in.h: Likewise.
17711         * lib/stdlib.in.h: Likewise.
17712         * lib/string.in.h: Likewise.
17713         * lib/strings.in.h: Likewise.
17714         * lib/sys_file.in.h: Likewise.
17715         * lib/sys_ioctl.in.h: Likewise.
17716         * lib/sys_select.in.h: Likewise.
17717         * lib/sys_socket.in.h: Likewise.
17718         * lib/sys_stat.in.h: Likewise.
17719         * lib/sys_time.in.h: Likewise.
17720         * lib/sys_times.in.h: Likewise.
17721         * lib/sys_uio.in.h: Likewise.
17722         * lib/sys_utsname.in.h: Likewise.
17723         * lib/sys_wait.in.h: Likewise.
17724         * lib/sysexits.in.h: Likewise.
17725         * lib/termios.in.h: Likewise.
17726         * lib/time.in.h: Likewise.
17727         * lib/unistd.in.h: Likewise.
17728         * lib/wchar.in.h: Likewise.
17729         * lib/wctype.in.h: Likewise.
17730         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17731         * modules/ctype (Makefile.am): Likewise.
17732         * modules/dirent (Makefile.am): Likewise.
17733         * modules/errno (Makefile.am): Likewise.
17734         * modules/fcntl-h (Makefile.am): Likewise.
17735         * modules/float (Makefile.am): Likewise.
17736         * modules/getopt-posix (Makefile.am): Likewise.
17737         * modules/iconv-h (Makefile.am): Likewise.
17738         * modules/langinfo (Makefile.am): Likewise.
17739         * modules/locale (Makefile.am): Likewise.
17740         * modules/math (Makefile.am): Likewise.
17741         * modules/netdb (Makefile.am): Likewise.
17742         * modules/netinet_in (Makefile.am): Likewise.
17743         * modules/poll-h (Makefile.am): Likewise.
17744         * modules/pthread (Makefile.am): Likewise.
17745         * modules/pty (Makefile.am): Likewise.
17746         * modules/sched (Makefile.am): Likewise.
17747         * modules/search (Makefile.am): Likewise.
17748         * modules/selinux-h (Makefile.am): Likewise.
17749         * modules/signal (Makefile.am): Likewise.
17750         * modules/spawn (Makefile.am): Likewise.
17751         * modules/stdarg (Makefile.am): Likewise.
17752         * modules/stddef (Makefile.am): Likewise.
17753         * modules/stdint (Makefile.am): Likewise.
17754         * modules/stdio (Makefile.am): Likewise.
17755         * modules/stdlib (Makefile.am): Likewise.
17756         * modules/string (Makefile.am): Likewise.
17757         * modules/strings (Makefile.am): Likewise.
17758         * modules/sys_file (Makefile.am): Likewise.
17759         * modules/sys_ioctl (Makefile.am): Likewise.
17760         * modules/sys_select (Makefile.am): Likewise.
17761         * modules/sys_socket (Makefile.am): Likewise.
17762         * modules/sys_stat (Makefile.am): Likewise.
17763         * modules/sys_time (Makefile.am): Likewise.
17764         * modules/sys_times (Makefile.am): Likewise.
17765         * modules/sys_uio (Makefile.am): Likewise.
17766         * modules/sys_utsname (Makefile.am): Likewise.
17767         * modules/sys_wait (Makefile.am): Likewise.
17768         * modules/sysexits (Makefile.am): Likewise.
17769         * modules/termios (Makefile.am): Likewise.
17770         * modules/time (Makefile.am): Likewise.
17771         * modules/unistd (Makefile.am): Likewise.
17772         * modules/wchar (Makefile.am): Likewise.
17773         * modules/wctype-h (Makefile.am): Likewise.
17774         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17775
17776 2011-05-29  Bruno Haible  <bruno@clisp.org>
17777
17778         assert-h: Allow multiple gnulib generated replacements to coexist.
17779         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17780
17781 2011-05-29  Bruno Haible  <bruno@clisp.org>
17782
17783         argp: Allow coexistence with strerror_r-posix module.
17784         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17785         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17786         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17787         not the glibc signature.
17788
17789 2011-05-28  Bruno Haible  <bruno@clisp.org>
17790
17791         gnulib-tool: Alternative structure of testdirs, similar to --import.
17792         * gnulib-tool: New option --single-configure.
17793         (func_usage): Document it.
17794         (single_configure): New variable.
17795         (func_modules_transitive_closure_separately,
17796         func_modules_transitive_closure_separately,
17797         func_determine_use_libtests, func_modules_add_dummy_separately,
17798         func_modules_to_filelist_separately): New functions, extracted from
17799         func_import.
17800         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17801         (func_import): Use the new functions.
17802         (func_create_testdir): Set final_modules. Handle $single_configure =
17803         true case.
17804
17805 2011-05-28  Bruno Haible  <bruno@clisp.org>
17806
17807         getloadavg: Remove an unreliable safety check.
17808         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17809         getloadavg.c is in place.
17810         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17811         Reported by Sam Steingold <sds@gnu.org>.
17812
17813 2011-05-28  Bruno Haible  <bruno@clisp.org>
17814
17815         doc: Cleanup yet another file produced by texinfo.tex.
17816         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17817
17818 2011-05-28  Bruno Haible  <bruno@clisp.org>
17819
17820         Finish the conditional dependencies mechanism.
17821         * gnulib-tool: New option --no-conditional-dependencies.
17822         (func_usage): Document it. Don't mark --conditional-dependencies as
17823         experimental.
17824         (cond_dependencies): The possible values can now be true, false, empty.
17825         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17826         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17827         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17828
17829 2011-05-28  Bruno Haible  <bruno@clisp.org>
17830
17831         doc: Use a recent texinfo.tex.
17832         * doc/Makefile (tex_opts): New variable.
17833         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17834
17835 2011-05-28  Jim Meyering  <meyering@redhat.com>
17836
17837         intprops.h: adjust comment to match code change
17838         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17839         only once, it *may* have side effects.  Also fix an unrelated typo.
17840         (_GL_INT_SIGNED): Likewise.
17841
17842 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17843
17844         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17845
17846 2011-05-26  Bruno Haible  <bruno@clisp.org>
17847
17848         mbsrchr: Avoid collision with system function on Interix.
17849         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17850         Reported by Markus Duft <mduft@gentoo.org>.
17851
17852 2011-05-15  James Youngman  <jay@gnu.org>
17853
17854         getopt: for ambiguous options, enumerate the possibilities.
17855         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17856         the ambiguous options when an ambiguous prefix is given. This was
17857         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17858         glibc change was
17859         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17860
17861 2011-05-25  Eric Blake  <eblake@redhat.com>
17862
17863         getcwd: work around mingw bug
17864         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17865         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17866         Reported by Matthias Bolte.
17867
17868 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17869
17870         test-intprops: disable -Wtype-limits diagnostics
17871         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17872         diagnostics.  Otherwise, the integer overflow macros generate many
17873         diagnostics.  Reported by Jim Meyering in
17874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17875
17876         intprops: shorten, to pacify gcc -Woverlength-strings
17877         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17878         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17879         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17880         likely to run afoul of C compiler limits for string constant lengths.
17881         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17882
17883 2011-05-24  Eric Blake  <eblake@redhat.com>
17884
17885         docs: document recently fixed glibc printf bug
17886         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17887         * doc/posix-functions/printf.texi (printf): Likewise.
17888         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17889         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17890
17891         closein-tests: convert to init.sh
17892         * modules/closein-tests (Files): Add init.sh
17893         * tests/test-closein.sh Use it.
17894
17895         yesno-tests: convert to init.sh
17896         * modules/yesno-tests (Files): Add init.sh.
17897         * tests/test-yesno.sh: Use it.
17898
17899         atexit-tests: ensure reliable exit status
17900         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17901         Reported by Bruno Haible.
17902
17903 2011-05-24  Bruno Haible  <bruno@clisp.org>
17904
17905         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17906         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17907         gl_PREREQ_STRERROR_R invocations from here...
17908         * modules/strerror_r-posix (configure.ac): ... to here.
17909
17910 2011-05-24  Eric Blake  <eblake@redhat.com>
17911
17912         strerror_r: fix missing header
17913         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17914
17915         strerror_r: fix AIX test failures
17916         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17917         ERANGE failure.
17918
17919         strerror_r: fix Solaris test failures
17920         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17921         failures.
17922         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17923
17924         strerror_r: enforce POSIX recommendations
17925         * lib/strerror_r.c (safe_copy): New helper method.
17926         (strerror_r): Guarantee a non-empty string.
17927         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17928         recent POSIX rulings and to match our strerror guarantees.
17929         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17930
17931 2011-05-24  Jim Meyering  <meyering@redhat.com>
17932
17933         test-perror2.c: avoid warning about unused variable
17934         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17935
17936 2011-05-24  Eric Blake  <eblake@redhat.com>
17937
17938         perror: avoid spurious test failure on HP-UX
17939         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17940
17941         tests: fix logic bug in init.sh
17942         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17943         shell.
17944
17945 2011-05-24  Jim Meyering  <meyering@redhat.com>
17946
17947         utimensat: do not reference an out-of-scope buffer
17948         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17949         declared in an inner scope, yet "times" would be dereferenced outside
17950         the scope in which "ts" was valid.
17951         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17952         of ts[2] "out/up", so that the use of aliased "times" (via
17953         "times = ts;") does not end up referencing an out-of-scope "ts"
17954
17955         opendir-safer.c: don't clobber errno; don't close negative FD
17956         * lib/opendir-safer.c (opendir_safer):
17957         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17958         file descriptor, and more importantly, don't clobber the
17959         offending errno value with EINVAL.  Before, upon failure
17960         of dup_safer, we would pass the negative file descriptor to
17961         fdopendir, which would clobber errno.
17962
17963 2011-05-23  Bruno Haible  <bruno@clisp.org>
17964
17965         idcache: Fix module description.
17966         * modules/idcache (Include): Set to "idcache.h".
17967
17968 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17969
17970         gnulib-tool: fix portability problem with MacOS sed
17971         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17972         before the "}".  Problem reported by Leo in
17973         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17974         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17975         sed_extract_condition1, sed_extract_condition2.
17976
17977 2011-05-23  Bruno Haible  <bruno@clisp.org>
17978
17979         hash: Simplify autoconf macro.
17980         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17981
17982 2011-05-23  Bruno Haible  <bruno@clisp.org>
17983
17984         getugroups: Fix module description.
17985         * modules/getugroups (Include): Set to "getugroups.h".
17986
17987 2011-05-23  Bruno Haible  <bruno@clisp.org>
17988
17989         linkat: Simplify autoconf macro.
17990         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17991
17992 2011-05-23  Bruno Haible  <bruno@clisp.org>
17993             Eric Blake  <eblake@redhat.com>
17994
17995         linkat, renameat: Update dependencies.
17996         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17997         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17998         symlinkat.
17999
18000 2011-05-23  Jim Meyering  <meyering@redhat.com>
18001
18002         maint.mk: more tight_scope improvements
18003         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18004         (_gl_TS_headers): Define only in if-0'd block.
18005         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18006         sometimes we must *not* use it.  Adjust uses accordingly.
18007         (sc_tight_scope): Use much simpler grep-based test to determine
18008         whether we skip this rule.
18009
18010         maint.mk: generalize/improve the tight-scope rule
18011         * top/maint.mk: Emit a warning when the test is skipped.
18012         (_gl_TS_dir): Add $(srcdir)/ prefix.
18013         (_gl_TS_function_match): Simplify, rather than trying
18014         to enumerate common types.  Otherwise, it would fail to match an
18015         "extern unsigned char const *" declaration in idutils.
18016         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18017         a way to support use of that type of macro.
18018         (_gl_TS_var_match): Simplify regexp.
18019         (_gl_TS_obj_files): New configurable variable.
18020         (_gl_TS_headers): Likewise.
18021
18022 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18023
18024         verify: fix bug when gnulib <assert.h> is also included
18025         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18026         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18027         Perhaps there's a better way, but this fixes the immediate problem.
18028         Problem reported by Bruno Haible in
18029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18030
18031 2011-05-22  Bruno Haible  <bruno@clisp.org>
18032
18033         xgetcwd: Simplify autoconf macro.
18034         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18035
18036 2011-05-22  Bruno Haible  <bruno@clisp.org>
18037
18038         New module 'mktime-internal'.
18039         * modules/mktime-internal: New file.
18040         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18041         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18042         mktime_internal as a C macro if libc has __mktime_internal.
18043         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18044         conditions.
18045         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18046
18047 2011-05-22  Bruno Haible  <bruno@clisp.org>
18048
18049         timegm: Correct mktime replacement statements.
18050         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18051         defining mktime as a C macro. This completes a 2009-07-28 commit.
18052
18053 2011-05-22  Bruno Haible  <bruno@clisp.org>
18054
18055         timegm: Simplify autoconf macro.
18056         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18057
18058 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18059
18060         clock-time: change to LGPLv2+.
18061         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18062         BSD-like but we have no mark for that; this is good enough for now.
18063
18064 2011-05-21  Bruno Haible  <bruno@clisp.org>
18065
18066         strerror_r: Fix comments.
18067         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18068
18069 2011-05-21  Bruno Haible  <bruno@clisp.org>
18070
18071         relocatable-prog-wrapper: Fix possible link error.
18072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18073         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18074         (gl_FUNC_SETENV): ... to here.
18075         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18076         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18077
18078 2011-05-21  Bruno Haible  <bruno@clisp.org>
18079
18080         relocatable-prog-wrapper: Assume strerror() exists.
18081         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18082         m4/strerror.m4.
18083         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18084         * lib/relocwrapper.c: Remove mention of strerror module.
18085         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18087         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18088         C macro.
18089
18090 2011-05-21  Bruno Haible  <bruno@clisp.org>
18091
18092         select: Simplify replacement idiom.
18093         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18094         Win32 platforms.
18095         * lib/sys_select.in.h (select): Simplify accordingly.
18096         * modules/select (Depends-on): Likewise.
18097
18098 2011-05-21  Bruno Haible  <bruno@clisp.org>
18099
18100         mkdir-p: Simplify autoconf macro.
18101         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18102         gl_FUNC_LCHOWN.
18103
18104 2011-05-21  Eric Blake  <eblake@redhat.com>
18105
18106         strerror_r: avoid clobbering strerror on cygwin
18107         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18108         fall back instead to sys_errlist.
18109         * modules/strerror (configure.ac): Add witness.
18110         * tests/test-strerror_r.c (main): Enhance test.
18111         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18112         * tests/test-perror2.c (main): Free memory before exit.
18113
18114 2011-05-21  Bruno Haible  <bruno@clisp.org>
18115
18116         mkdtemp: Use gnulib naming conventions.
18117         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18118         * modules/mkdtemp (configure.ac): Update.
18119
18120 2011-05-20  Eric Blake  <eblake@redhat.com>
18121
18122         strerror_r: avoid corrupting errno on Solaris
18123         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18124         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18125
18126         strerror_r: avoid compiler warning
18127         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18128
18129         strerror_r: simplify AIX code
18130         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18131
18132         test-perror: avoid spurious failure on FreeBSD
18133         * modules/perror-tests (Depends-on): Add strerror, now that
18134         strerror_r no longer pulls it in.
18135
18136 2011-05-20  Bruno Haible  <bruno@clisp.org>
18137
18138         strerror_r-posix: Remove unused dependencies.
18139         * modules/strerror_r-posix (Depends-on): Remove strerror.
18140         Reported by Eric Blake.
18141
18142 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18143
18144         intprops: remove assumption about A|B representation
18145         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18146         is a valid integer if both A and B are.  Although this is true for
18147         all known practical hosts, the C standard doesn't guarantee it,
18148         and the code need not assume it.  Also, this change may work around
18149         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18151
18152 2011-05-20  Eric Blake  <eblake@redhat.com>
18153
18154         perror: work around FreeBSD bug
18155         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18156         is broken.  Move AC_LIBOBJ...
18157         * modules/perror (configure.ac): Here.
18158         * doc/posix-functions/perror.texi (perror): Document this.
18159         * tests/test-perror2.c (main): Enhance test.
18160
18161         test-perror: check for strerror interactions
18162         * tests/macros.h (STREQ): Add macro.
18163         * modules/perror-tests (Files): Add second test.
18164         * tests/test-perror2.c (main): New file.
18165         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18166
18167         test-perror: rewrite to use init script
18168         * modules/perror-tests (Files): Add init.sh.
18169         * tests/test-perror.sh: Use temporary directory.
18170
18171 2011-05-20  Jim Meyering  <meyering@redhat.com>
18172
18173         maint: replace misused "a" with "an"
18174         * doc/intprops.texi: "a integer"
18175         * doc/regex.texi: "a explanation"
18176         * lib/alignof.h: "a object"
18177         * lib/argmatch.h: "a explanation"
18178         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18179         * lib/stdint.in.h: "a integer"
18180         * lib/userspec.c: "a owner"
18181         * doc/gnulib.texi: Fix "a idea", and reword.
18182
18183 2011-05-19  Jim Meyering  <meyering@redhat.com>
18184
18185         maint: correct misuse of "a" and "an"
18186         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18187         * lib/argp-help.c: "an docum...": s/an/a/
18188         * lib/argp-parse.c: "An vector": s/An/A/
18189         * lib/execute.c: "an native": s/an/a/
18190         * lib/spawn-pipe.c: Likewise.
18191         * lib/gc.h: "an Gc_rc": s/an/a/
18192         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18193         * lib/fts.c: "an stat.st_dev": s/an/a/
18194
18195 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18196
18197         intprops-tests: work around HP-UX 11.23 cc bug with constants
18198         * tests/test-intprops.c (VERIFY): New macro.
18199         (main): Use it, instead of verify, to work around the compiler bug; see
18200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18201
18202         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18203         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18204         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18205         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18206         (_GL_REMAINDER_OVERFLOW): Use it.
18207
18208         intprops-tests: revert unsigned part of previous change
18209         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18210         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18211         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18213
18214 2011-05-19  Bruno Haible  <bruno@clisp.org>
18215
18216         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18217         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18218         strerror_r() returned without filling the buffer.
18219         Reported by Eric Blake.
18220
18221 2011-05-19  Eric Blake  <eblake@redhat.com>
18222
18223         strerror_r: guarantee unchanged errno
18224         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18225         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18226         failure.
18227         * tests/test-strerror_r.c (main): Enhance test.
18228
18229 2011-05-19  Bruno Haible  <bruno@clisp.org>
18230
18231         strerror_r: Reorder #if blocks.
18232         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18233         for consistency with the previous commit.
18234
18235 2011-05-19  Bruno Haible  <bruno@clisp.org>
18236
18237         perror: Avoid clobbering the strerror buffer when possible.
18238         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18239         * lib/strerror.c: Include it.
18240         * modules/strerror (Files): Add lib/strerror-impl.h.
18241         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18242         (my_strerror): New function, defined through lib/strerror-impl.h.
18243         (perror): Use it instead of strerror.
18244         * modules/perror (Files): Add lib/strerror-impl.h.
18245         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18246
18247 2011-05-19  Eric Blake  <eblake@redhat.com>
18248
18249         strerror_r: fix on newer cygwin
18250         * lib/strerror_r.c (strerror_r): Cygwin now has
18251         __xpg_strerror_r, use it.
18252
18253 2011-05-19  Bruno Haible  <bruno@clisp.org>
18254
18255         strerror_r: Avoid clobbering the strerror buffer when possible.
18256         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18257         (sys_nerr, sys_errlist): New declarations.
18258         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18259         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18260         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18261
18262 2011-05-19  Bruno Haible  <bruno@clisp.org>
18263
18264         strerror_r: Fix test failure on mingw.
18265         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18266         EXTEND_STRERROR_R.
18267         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18268         macros from errno.in.h instead.
18269
18270 2011-05-19  Eric Blake  <eblake@redhat.com>
18271
18272         strerror: relax test for Solaris
18273         * tests/test-strerror.c (main): Permit Solaris behavior.
18274         * tests/test-strerror_r.c (main): Likewise.
18275
18276         strerror: enforce POSIX ruling on strerror(0)
18277         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18279         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18280         * doc/posix-functions/strerror.texi (strerror): Document it.
18281         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18282         * tests/test-strerror.c (main): Strengthen test.
18283         * tests/test-strerror_r.c (main): Likewise.
18284
18285 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18286
18287         intprop-tests: port to older and more-pedantic compilers
18288         * modules/intprops-tests (Files): Add tests/macros.h.
18289         * tests/test-intprops.c: Include macros.h.
18290         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18291         it's no longer documented to expand to an integer constant expression.
18292         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18293         argument is floating point, as it's no longer documented to expand
18294         to an integer constant expression in that case.
18295         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18296         compiler bugs reported by Bruno Haible.  See
18297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18298         (U0, U1): New constants, to work around the same bugs.  Also,
18299         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18300
18301         intprops: work around C compiler bugs
18302         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18303         bug in Sun C 5.11 2010/08/13 and other compilers; see
18304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18305
18306         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18307         * doc/intprops.texi (Integer Type Determination): Fix
18308         documentation for TYPE_IS_INTEGER: it returns an constant
18309         expression, not an integer constant expression.  Fix doc for
18310         TYPE_SIGNED: it returns an integer constant expression only if its
18311         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18312         hardly worth documented that way....)
18313
18314 2011-05-18  Bruno Haible  <bruno@clisp.org>
18315
18316         strerror_r: Avoid clobbering the strerror buffer when possible.
18317         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18318         Handle gnulib defined errno values here. When strerror() returns NULL
18319         or an empty string, return EINVAL.
18320         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18321         gnulib defined errno values here.
18322         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18323
18324 2011-05-18  Eric Blake  <eblake@redhat.com>
18325
18326         fnmatch: avoid compiler warning
18327         * lib/fnmatch_loop.c (FCT): Use correct type.
18328         Reported by Matthias Bolte.
18329
18330 2011-05-13  Jim Meyering  <meyering@redhat.com>
18331
18332         maint.mk: three new prohibit_<HDR>_without_use rules
18333         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18334         (sc_prohibit_stdio-safer_without_use): Likewise.
18335         (sc_prohibit_xfreopen_without_use): Likewise.
18336
18337 2011-05-17  Jim Meyering  <meyering@redhat.com>
18338
18339         announce-gen: fail if the NEWS delta is empty
18340         If there's nothing noteworthy in NEWS, then either you forgot
18341         or you shouldn't be releasing.
18342         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18343
18344 2011-05-17  Pádraig Brady <P@draigBrady.com>
18345
18346         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18347         reserved symbols starting with double underscore from the check.
18348
18349 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18350
18351         intprops: add doc
18352         * doc/intprops.texi: New file, documenting intprops.
18353         * doc/gnulib.texi (Particular Modules): Include it.
18354
18355         verify: add doc to gnulib manual and fix example
18356         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18357         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18358         (Compile-time Assertions): Fix example so it can't overflow.
18359
18360 2011-05-17  Jim Meyering  <meyering@redhat.com>
18361
18362         warnings.m4: don't usurp save_CPPFLAGS variable name
18363         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18364
18365         doc: fix typo
18366         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18367
18368 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18369             Bruno Haible  <bruno@clisp.org>
18370
18371         doc: Tweak recent change.
18372         * README (Portability guidelines): Tweak new text.
18373         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18374         Interix 6.1.
18375
18376 2011-05-16  Eric Blake  <eblake@redhat.com>
18377
18378         inttypes: avoid autoconf warning
18379         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18380         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18381
18382 2011-05-16  Sam Steingold <sds@gnu.org>
18383         and Eric Blake  <eblake@redhat.com>
18384
18385         vc-list-files: accept multiple directory operands
18386         * build-aux/vc-list-files: Iterate over all remaining operands.
18387
18388 2011-05-16  Bruno Haible  <bruno@clisp.org>
18389
18390         Fix confusion regarding deprecated modules.
18391         * modules/calloc (Status, Notice): Mark module as deprecated, not
18392         obsolete.
18393         * modules/fnmatch-posix (Status, Notice): Likewise.
18394         * modules/getdate (Status, Notice): Likewise.
18395         * modules/getopt (Status, Notice): Likewise.
18396         * modules/malloc (Status, Notice): Likewise.
18397         * modules/pipe (Status, Notice): Likewise.
18398         * modules/realloc (Status, Notice): Likewise.
18399         * modules/rename-dest-slash (Status, Notice): Likewise.
18400         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18401         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18402         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18403         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18404         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18405
18406 2011-05-16  Bruno Haible  <bruno@clisp.org>
18407
18408         doc: List the target platforms.
18409         * doc/gnulib-intro.texi (Target Platforms): New section.
18410         * doc/gnulib.texi (Introduction): Update menu.
18411         * README (Portability guidelines): Refer to the new section. Update
18412         statement about oldest supported environment. Remove rationale why
18413         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18414         unportable C89 function.
18415         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18416         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18417
18418 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18419
18420         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18421
18422 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18423
18424         intprops-tests: new module
18425         * modules/intprops-tests, tests/test-intprops.c: New files.
18426
18427         intprops: add safe, portable integer overflow checking
18428         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18429         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18430         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18431         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18432         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18433         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18434         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18435         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18436         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18437         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18438         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18439
18440 2011-05-12  James Youngman  <jay@gnu.org>
18441
18442         Add a test for glibc's Bugzilla bug #12378.
18443         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18444         doesn't allow the literal matching of a lone "[" (which is
18445         required by POSIX).
18446         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18447
18448 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18449
18450         Sync glibc change fixing Bugzilla bug #12378.
18451         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18452         beginning and fall back to matching as normal character if the
18453         string ends before the matching ']' is found.  This is what POSIX
18454         requires.
18455
18456 2011-05-13  Eric Blake  <eblake@redhat.com>
18457
18458         getcwd-lgpl: relax test for FreeBSD
18459         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18460         issue.
18461         * tests/test-getcwd-lgpl.c (main): Relax test.
18462         Reported by Matthias Bolte.
18463
18464 2011-05-11  Eric Blake  <eblake@redhat.com>
18465
18466         test-fflush: silence compiler warning
18467         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18468
18469 2011-05-11  Bruno Haible  <bruno@clisp.org>
18470
18471         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18472         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18473         * modules/canonicalize (Depends-on): Add 'nocrash'.
18474         * modules/canonicalize-lgpl (Depends-on): Likewise.
18475         * doc/posix-functions/realpath.texi: Update platforms list.
18476         Reported by Ryan Schmidt <ryandesign@macports.org>.
18477
18478 2011-05-11  Bruno Haible  <bruno@clisp.org>
18479
18480         group-member: Declare function in <unistd.h>.
18481         * lib/unistd.in.h (group_member): New declaration.
18482         * lib/group-member.h: Remove file.
18483         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18484         * tests/test-unistd-c++.cc: Check signature of group_member.
18485         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18486         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18487         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18488         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18489         HAVE_GROUP_MEMBER.
18490         * modules/group-member (Files): Remove lib/group-member.h.
18491         (Depends-on): Add unistd. Specify conditions.
18492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18493         (Include): Change to <unistd.h>.
18494         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18495         HAVE_GROUP_MEMBER.
18496         * NEWS: Mention the change.
18497         * lib/euidaccess.c: Don't include group-member.h.
18498
18499 2011-05-11  Bruno Haible  <bruno@clisp.org>
18500
18501         group-member: Document module.
18502         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18503         module.
18504
18505 2011-05-11  Bruno Haible  <bruno@clisp.org>
18506
18507         fclose: Fix mistake earlier today.
18508         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18509
18510 2011-05-11  Eric Blake  <eblake@redhat.com>
18511
18512         fclose: preserve fflush errors
18513         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18514         Reported by Jim Meyering.
18515
18516         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18517         * build-aux/bootstrap (check_versions): When no specific version
18518         is required, merely check that the app produces an exit status
18519         that indicates its existence.
18520
18521         maint.mk: drop redundant check
18522         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18523         the same but better.
18524
18525 2011-05-11  Bruno Haible  <bruno@clisp.org>
18526
18527         fclose: Fix possible link error.
18528         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18529         unregister_shadow_fd. Improve comments.
18530         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18531         Eric Blake.
18532
18533 2011-05-11  Jim Meyering  <meyering@redhat.com>
18534
18535         maint.mk: improve "can not" detection and generalize rule name
18536         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18537         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18538         Use the same technique as in sc_prohibit_doubled_word, so that
18539         we recognize "can not" also when the words are separated by a newline.
18540         Suggested by Eric Blake.
18541         (perl_filename_lineno_text_): Define.  Factored out of...
18542         (prohibit_doubled_word_): ...here.  Use the new definition.
18543         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18544         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18545         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18546
18547 2011-05-10  Eric Blake  <eblake@redhat.com>
18548
18549         fclose: avoid double close race when possible
18550         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18551         all but WINDOWS_SOCKETS.
18552
18553 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18554
18555         openat: correct new comment
18556         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18557
18558 2011-05-10  Jim Meyering  <meyering@redhat.com>
18559
18560         openat: add comments
18561         * lib/openat-proc.c (openat_proc_name): Add comments,
18562         mostly from Eric Blake.
18563
18564 2011-05-09  Eric Blake  <eblake@redhat.com>
18565
18566         openat: reduce syscalls in first probe of /proc
18567         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18568         be a directory.  Simplify the probe for .. bugs.
18569         * modules/openat (Depends-on): Drop same-inode.
18570         Reported by Bastien ROUCARIES.
18571
18572 2011-05-09  Jim Meyering  <meyering@redhat.com>
18573
18574         maint.mk: change semantics/name of tight_scope variables
18575         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18576         Rename variables to align with semantics that make them more useful.
18577
18578         maint.mk: tweak new rule's name not to impinge
18579         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18580         (sc_tight_scope): Use new rule name rather than $@-0.
18581
18582         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18583         * top/maint.mk (sc_tight_scope): New rule.
18584         (sc_tight_scope-0): New rule, ifdef'd out.
18585         (_gl_TS_dir): Default.
18586         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18587         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18588
18589 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18590
18591         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18592         Haible <bruno@clisp.org>.
18593
18594 2011-05-08  Bruno Haible  <bruno@clisp.org>
18595
18596         Comments.
18597         * m4/isnanf.m4: Add comment.
18598         * m4/isnanl.m4: Likewise.
18599
18600 2011-05-08  Bruno Haible  <bruno@clisp.org>
18601
18602         glob: Remove obsolete macro.
18603         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18604
18605 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         intprops: Sun C 5.11 supports __typeof__
18608         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18609         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18610         which is new.
18611         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18612
18613         intprops: switch to usual gnulib indenting and naming
18614         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18615         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18616
18617         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18618
18619 2011-05-08  Jim Meyering  <meyering@redhat.com>
18620
18621         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18622         * top/maint.mk (release-prep): Use make's --no-print-directory
18623         option when generating the announcement.  This eliminates the
18624         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18625         generated announcement template.
18626
18627 2011-05-08  Bruno Haible  <bruno@clisp.org>
18628
18629         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18630         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18631         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18632
18633 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18634
18635         ignore-value, verify: Omit include files from lib_SOURCES.
18636         * modules/ignore-value, modules/verify (Makefile.am):
18637         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18638         that leads Automake to duplicate use of am__objects_... variables
18639         in Makefile.in.  See
18640         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18641
18642 2011-05-07  Bruno Haible  <bruno@clisp.org>
18643
18644         fclose: Simplify autoconf macro.
18645         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18646         defined.
18647
18648 2011-05-07  Bruno Haible  <bruno@clisp.org>
18649
18650         canonicalize-lgpl: Fix autoconf macro ordering bug.
18651         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18652         gl_STDLIB_H_DEFAULTS.
18653
18654 2011-05-06  Eric Blake  <eblake@redhat.com>
18655
18656         maintainer-makefile: make sc_po_check easier to tune
18657         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18658         to probe for strings, such as an alternate location for gnulib.
18659
18660         fclose: guarantee behavior on seekable stdin
18661         * modules/fclose (Depends-on): Add fflush.
18662         * doc/posix-functions/fclose.texi (fclose): Document this.
18663         * tests/test-fclose.c (main): Make test for this unconditional.
18664
18665 2011-05-06  Bruno Haible  <bruno@clisp.org>
18666
18667         fflush, fpurge: Relicense under LGPLv2+.
18668         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18669         * modules/fpurge (License): Likewise.
18670         With permission from Eric Blake and Jim Meyering.
18671         Suggested by Eric Blake.
18672
18673 2011-05-06  Karl Berry  <karl@gnu.org>
18674
18675         * MODULES.html.sh (func_all_modules): remove exit.
18676
18677 2011-05-06  Jim Meyering  <meyering@redhat.com>
18678
18679         maint.mk: use info-gnu@ as the default only for a stable release
18680         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18681         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18682         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18683         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18684
18685 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18686
18687         assert-h: new module, which supports C1X-style static_assert
18688         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18689         * lib/verify.h: Revamp so that this can be copied into assert.h,
18690         while retaining the ability to use it standalone as before.
18691         Rename private identifiers so as not to encroach on the
18692         standard C namespace, since this is now used by assert.h.
18693         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18694         the old verify_true.
18695         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18696         the old verify_true.  Use _GL_VERIFY_TYPE.
18697         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18698         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18699         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18700         defined when this file is copied into the replacement assert.h.
18701         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18702         and _Static_assert is not built in.
18703         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18704         defined, and use the new macros mentioned above.
18705         * doc/posix-headers/assert.texi: Document this.
18706
18707 2011-05-05  Bruno Haible  <bruno@clisp.org>
18708
18709         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18711         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18712         gl_REPLACE_FCLOSE here.
18713         * modules/fflush (Depends-on): Remove fclose.
18714         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18715         combination with module 'fclose'.
18716
18717 2011-05-05  Bruno Haible  <bruno@clisp.org>
18718
18719         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18720         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18721         gl_FUNC_FFLUSH.
18722         (gl_FUNC_FFLUSH): Use it.
18723         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18725         gl_REPLACE_FSEEKO here.
18726
18727 2011-05-05  Bruno Haible  <bruno@clisp.org>
18728
18729         tzset: Relicense under LGPL.
18730         * modules/tzset (License): Change to LGPL.
18731         No agreement needed; it's a no-op.
18732
18733         strtoimax, strtoumax: Relicense under LGPL.
18734         * modules/strtoimax (License): Change to LGPL.
18735         * modules/strtoumax (License): Likewise.
18736         With permission from Jim Meyering, Paul Eggert:
18737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18739
18740         getgroups: Relicense under LGPL.
18741         * modules/getgroups (License): Change to LGPL.
18742         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18746
18747         nanosleep: Relicense under LGPL.
18748         * modules/nanosleep (License): Change to LGPL.
18749         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18750         Haible:
18751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18755
18756         futimens: Relicense under LGPL.
18757         * modules/futimens (License): Change to LGPL.
18758         With permission from Eric Blake:
18759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18760
18761         fflush: Relicense under LGPL.
18762         * modules/fflush (License): Change to LGPL.
18763         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18767
18768         tmpfile: Relicense under LGPL.
18769         * modules/tmpfile (License): Change to LGPL.
18770         With permission from Ben Pfaff:
18771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18772
18773         isfinite: Relicense under LGPL.
18774         * modules/isfinite (License): Change to LGPL.
18775         With permission from Ben Pfaff, Bruno Haible:
18776         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18778
18779         acosl..tanl: Relicense under LGPL.
18780         * modules/acosl (License): Change to LGPL.
18781         * modules/asinl (License): Likewise.
18782         * modules/atanl (License): Likewise.
18783         * modules/cosl (License): Likewise.
18784         * modules/expl (License): Likewise.
18785         * modules/logl (License): Likewise.
18786         * modules/sinl (License): Likewise.
18787         * modules/sqrtl (License): Likewise.
18788         * modules/tanl (License): Likewise.
18789         Source code originally from glibc and Paolo Bonzini. Agreements:
18790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18792
18793 2011-05-05  Bruno Haible  <bruno@clisp.org>
18794
18795         signal: Define sighandler_t.
18796         * lib/signal.in.h (sighandler_t): New type.
18797         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18798         whether sighandler_t is defined.
18799         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18800         * modules/signal (Depends-on): Add extensions.
18801         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18802         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18803         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18804
18805 2011-05-05  Eric Blake  <eblake@redhat.com>
18806
18807         maint: remove useless REPLACE_*_H macros
18808         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18809         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18810         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18811         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18812         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18813         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18814         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18815         * m4/btowc.m4: Update callers.
18816         * m4/dirfd.m4: Likewise.
18817         * m4/duplocale.m4: Likewise.
18818         * m4/fchdir.m4: Likewise.
18819         * m4/fdopendir.m4: Likewise.
18820         * m4/inet_ntop.m4: Likewise.
18821         * m4/inet_pton.m4: Likewise.
18822         * m4/ioctl.m4: Likewise.
18823         * m4/mbrlen.m4: Likewise.
18824         * m4/mbrtowc.m4: Likewise.
18825         * m4/mbsinit.m4: Likewise.
18826         * m4/mbsnrtowcs.m4: Likewise.
18827         * m4/mbsrtowcs.m4: Likewise.
18828         * m4/poll.m4: Likewise.
18829         * m4/setlocale.m4: Likewise.
18830         * m4/wcrtomb.m4: Likewise.
18831         * m4/wcsnrtombs.m4: Likewise.
18832         * m4/wcsrtombs.m4: Likewise.
18833         * m4/wctob.m4: Likewise.
18834         * m4/wcwidth.m4: Likewise.
18835         * modules/posix_spawn: Likewise.
18836         * modules/posix_spawn_file_actions_addclose: Likewise.
18837         * modules/posix_spawn_file_actions_adddup2: Likewise.
18838         * modules/posix_spawn_file_actions_addopen: Likewise.
18839         * modules/posix_spawn_file_actions_destroy: Likewise.
18840         * modules/posix_spawn_file_actions_init: Likewise.
18841         * modules/posix_spawnattr_destroy: Likewise.
18842         * modules/posix_spawnattr_getflags: Likewise.
18843         * modules/posix_spawnattr_getpgroup: Likewise.
18844         * modules/posix_spawnattr_getschedparam: Likewise.
18845         * modules/posix_spawnattr_getschedpolicy: Likewise.
18846         * modules/posix_spawnattr_getsigdefault: Likewise.
18847         * modules/posix_spawnattr_getsigmask: Likewise.
18848         * modules/posix_spawnattr_init: Likewise.
18849         * modules/posix_spawnattr_setflags: Likewise.
18850         * modules/posix_spawnattr_setpgroup: Likewise.
18851         * modules/posix_spawnattr_setschedparam: Likewise.
18852         * modules/posix_spawnattr_setschedpolicy: Likewise.
18853         * modules/posix_spawnattr_setsigdefault: Likewise.
18854         * modules/posix_spawnattr_setsigmask: Likewise.
18855         * modules/posix_spawnp: Likewise.
18856
18857 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18858
18859         Add option to do-release-commit-and-tag to specify branch.
18860         * build-aux/do-release-commit-and-tag: Add --branch.
18861
18862 2011-05-03  Bruno Haible  <bruno@clisp.org>
18863
18864         Avoid unnecessary compilation units, through conditional dependencies.
18865         * modules/accept (Depends-on): Add conditions to the dependencies.
18866         * modules/acosl (Depends-on): Likewise.
18867         * modules/argz (Depends-on): Likewise.
18868         * modules/asinl (Depends-on): Likewise.
18869         * modules/atanl (Depends-on): Likewise.
18870         * modules/atoll (Depends-on): Likewise.
18871         * modules/bind (Depends-on): Likewise.
18872         * modules/btowc (Depends-on): Likewise.
18873         * modules/canonicalize-lgpl (Depends-on): Likewise.
18874         * modules/ceil (Depends-on): Likewise.
18875         * modules/ceilf (Depends-on): Likewise.
18876         * modules/ceill (Depends-on): Likewise.
18877         * modules/chdir-long (Depends-on): Likewise.
18878         * modules/chown (Depends-on): Likewise.
18879         * modules/close (Depends-on): Likewise.
18880         * modules/connect (Depends-on): Likewise.
18881         * modules/cosl (Depends-on): Likewise.
18882         * modules/dirfd (Depends-on): Likewise.
18883         * modules/dprintf (Depends-on): Likewise.
18884         * modules/dprintf-posix (Depends-on): Likewise.
18885         * modules/error (Depends-on): Likewise.
18886         * modules/euidaccess (Depends-on): Likewise.
18887         * modules/expl (Depends-on): Likewise.
18888         * modules/faccessat (Depends-on): Likewise.
18889         * modules/fchdir (Depends-on): Likewise.
18890         * modules/fclose (Depends-on): Likewise.
18891         * modules/fcntl (Depends-on): Likewise.
18892         * modules/fdopendir (Depends-on): Likewise.
18893         * modules/fflush (Depends-on): Likewise.
18894         * modules/floor (Depends-on): Likewise.
18895         * modules/floorf (Depends-on): Likewise.
18896         * modules/floorl (Depends-on): Likewise.
18897         * modules/fnmatch (Depends-on): Likewise.
18898         * modules/fopen (Depends-on): Likewise.
18899         * modules/fprintf-posix (Depends-on): Likewise.
18900         * modules/frexp (Depends-on): Likewise.
18901         * modules/frexp-nolibm (Depends-on): Likewise.
18902         * modules/frexpl (Depends-on): Likewise.
18903         * modules/frexpl-nolibm (Depends-on): Likewise.
18904         * modules/fseek (Depends-on): Likewise.
18905         * modules/fsusage (Depends-on): Likewise.
18906         * modules/ftell (Depends-on): Likewise.
18907         * modules/ftello (Depends-on): Likewise.
18908         * modules/futimens (Depends-on): Likewise.
18909         * modules/getcwd (Depends-on): Likewise.
18910         * modules/getcwd-lgpl (Depends-on): Likewise.
18911         * modules/getdelim (Depends-on): Likewise.
18912         * modules/getdomainname (Depends-on): Likewise.
18913         * modules/getgroups (Depends-on): Likewise.
18914         * modules/gethostname (Depends-on): Likewise.
18915         * modules/getline (Depends-on): Likewise.
18916         * modules/getlogin_r (Depends-on): Likewise.
18917         * modules/getopt-posix (Depends-on): Likewise.
18918         * modules/getpeername (Depends-on): Likewise.
18919         * modules/getsockname (Depends-on): Likewise.
18920         * modules/getsockopt (Depends-on): Likewise.
18921         * modules/getsubopt (Depends-on): Likewise.
18922         * modules/getusershell (Depends-on): Likewise.
18923         * modules/glob (Depends-on): Likewise.
18924         * modules/grantpt (Depends-on): Likewise.
18925         * modules/iconv_open (Depends-on): Likewise.
18926         * modules/iconv_open-utf (Depends-on): Likewise.
18927         * modules/inet_ntop (Depends-on): Likewise.
18928         * modules/inet_pton (Depends-on): Likewise.
18929         * modules/ioctl (Depends-on): Likewise.
18930         * modules/isapipe (Depends-on): Likewise.
18931         * modules/isfinite (Depends-on): Likewise.
18932         * modules/isinf (Depends-on): Likewise.
18933         * modules/lchown (Depends-on): Likewise.
18934         * modules/ldexpl (Depends-on): Likewise.
18935         * modules/link (Depends-on): Likewise.
18936         * modules/linkat (Depends-on): Likewise.
18937         * modules/listen (Depends-on): Likewise.
18938         * modules/logl (Depends-on): Likewise.
18939         * modules/lstat (Depends-on): Likewise.
18940         * modules/mbrlen (Depends-on): Likewise.
18941         * modules/mbrtowc (Depends-on): Likewise.
18942         * modules/mbsinit (Depends-on): Likewise.
18943         * modules/mbsnrtowcs (Depends-on): Likewise.
18944         * modules/mbsrtowcs (Depends-on): Likewise.
18945         * modules/mbtowc (Depends-on): Likewise.
18946         * modules/memcmp (Depends-on): Likewise.
18947         * modules/mkdir (Depends-on): Likewise.
18948         * modules/mkdtemp (Depends-on): Likewise.
18949         * modules/mkfifo (Depends-on): Likewise.
18950         * modules/mkfifoat (Depends-on): Likewise.
18951         * modules/mknod (Depends-on): Likewise.
18952         * modules/mkostemp (Depends-on): Likewise.
18953         * modules/mkostemps (Depends-on): Likewise.
18954         * modules/mkstemp (Depends-on): Likewise.
18955         * modules/mkstemps (Depends-on): Likewise.
18956         * modules/mktime (Depends-on): Likewise.
18957         * modules/nanosleep (Depends-on): Likewise.
18958         * modules/open (Depends-on): Likewise.
18959         * modules/openat (Depends-on): Likewise.
18960         * modules/perror (Depends-on): Likewise.
18961         * modules/poll (Depends-on): Likewise.
18962         * modules/popen (Depends-on): Likewise.
18963         * modules/posix_spawn (Depends-on): Likewise.
18964         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18965         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18966         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18967         * modules/posix_spawnp (Depends-on): Likewise.
18968         * modules/pread (Depends-on): Likewise.
18969         * modules/printf-posix (Depends-on): Likewise.
18970         * modules/ptsname (Depends-on): Likewise.
18971         * modules/putenv (Depends-on): Likewise.
18972         * modules/pwrite (Depends-on): Likewise.
18973         * modules/readline (Depends-on): Likewise.
18974         * modules/readlink (Depends-on): Likewise.
18975         * modules/readlinkat (Depends-on): Likewise.
18976         * modules/recv (Depends-on): Likewise.
18977         * modules/recvfrom (Depends-on): Likewise.
18978         * modules/regex (Depends-on): Likewise.
18979         * modules/remove (Depends-on): Likewise.
18980         * modules/rename (Depends-on): Likewise.
18981         * modules/renameat (Depends-on): Likewise.
18982         * modules/rmdir (Depends-on): Likewise.
18983         * modules/round (Depends-on): Likewise.
18984         * modules/roundf (Depends-on): Likewise.
18985         * modules/roundl (Depends-on): Likewise.
18986         * modules/rpmatch (Depends-on): Likewise.
18987         * modules/select (Depends-on): Likewise.
18988         * modules/send (Depends-on): Likewise.
18989         * modules/sendto (Depends-on): Likewise.
18990         * modules/setenv (Depends-on): Likewise.
18991         * modules/setlocale (Depends-on): Likewise.
18992         * modules/setsockopt (Depends-on): Likewise.
18993         * modules/shutdown (Depends-on): Likewise.
18994         * modules/sigaction (Depends-on): Likewise.
18995         * modules/signbit (Depends-on): Likewise.
18996         * modules/sigprocmask (Depends-on): Likewise.
18997         * modules/sinl (Depends-on): Likewise.
18998         * modules/sleep (Depends-on): Likewise.
18999         * modules/snprintf (Depends-on): Likewise.
19000         * modules/snprintf-posix (Depends-on): Likewise.
19001         * modules/socket (Depends-on): Likewise.
19002         * modules/sprintf-posix (Depends-on): Likewise.
19003         * modules/sqrtl (Depends-on): Likewise.
19004         * modules/stat (Depends-on): Likewise.
19005         * modules/strchrnul (Depends-on): Likewise.
19006         * modules/strdup-posix (Depends-on): Likewise.
19007         * modules/strerror (Depends-on): Likewise.
19008         * modules/strerror_r-posix (Depends-on): Likewise.
19009         * modules/strndup (Depends-on): Likewise.
19010         * modules/strnlen (Depends-on): Likewise.
19011         * modules/strptime (Depends-on): Likewise.
19012         * modules/strsep (Depends-on): Likewise.
19013         * modules/strsignal (Depends-on): Likewise.
19014         * modules/strstr-simple (Depends-on): Likewise.
19015         * modules/strtod (Depends-on): Likewise.
19016         * modules/strtoimax (Depends-on): Likewise.
19017         * modules/strtok_r (Depends-on): Likewise.
19018         * modules/strtoumax (Depends-on): Likewise.
19019         * modules/symlink (Depends-on): Likewise.
19020         * modules/symlinkat (Depends-on): Likewise.
19021         * modules/tanl (Depends-on): Likewise.
19022         * modules/tcgetsid (Depends-on): Likewise.
19023         * modules/tmpfile (Depends-on): Likewise.
19024         * modules/trunc (Depends-on): Likewise.
19025         * modules/truncf (Depends-on): Likewise.
19026         * modules/truncl (Depends-on): Likewise.
19027         * modules/uname (Depends-on): Likewise.
19028         * modules/unlink (Depends-on): Likewise.
19029         * modules/unlockpt (Depends-on): Likewise.
19030         * modules/unsetenv (Depends-on): Likewise.
19031         * modules/usleep (Depends-on): Likewise.
19032         * modules/utimensat (Depends-on): Likewise.
19033         * modules/vasprintf (Depends-on): Likewise.
19034         * modules/vdprintf (Depends-on): Likewise.
19035         * modules/vdprintf-posix (Depends-on): Likewise.
19036         * modules/vfprintf-posix (Depends-on): Likewise.
19037         * modules/vprintf-posix (Depends-on): Likewise.
19038         * modules/vsnprintf (Depends-on): Likewise.
19039         * modules/vsnprintf-posix (Depends-on): Likewise.
19040         * modules/vsprintf-posix (Depends-on): Likewise.
19041         * modules/wcrtomb (Depends-on): Likewise.
19042         * modules/wcscasecmp (Depends-on): Likewise.
19043         * modules/wcscspn (Depends-on): Likewise.
19044         * modules/wcsdup (Depends-on): Likewise.
19045         * modules/wcsncasecmp (Depends-on): Likewise.
19046         * modules/wcsnrtombs (Depends-on): Likewise.
19047         * modules/wcspbrk (Depends-on): Likewise.
19048         * modules/wcsrtombs (Depends-on): Likewise.
19049         * modules/wcsspn (Depends-on): Likewise.
19050         * modules/wcsstr (Depends-on): Likewise.
19051         * modules/wcstok (Depends-on): Likewise.
19052         * modules/wcswidth (Depends-on): Likewise.
19053         * modules/wctob (Depends-on): Likewise.
19054         * modules/wctomb (Depends-on): Likewise.
19055         * modules/wctype (Depends-on): Likewise.
19056         * modules/wcwidth (Depends-on): Likewise.
19057         * modules/write (Depends-on): Likewise.
19058
19059 2011-05-03  Bruno Haible  <bruno@clisp.org>
19060
19061         Support for conditional dependencies.
19062         * doc/gnulib.texi (Module description): Document the syntax of
19063         conditional dependencies.
19064         * gnulib-tool: New option --conditional-dependencies.
19065         (func_usage): Document it.
19066         (cond_dependencies): New variable.
19067         (func_get_automake_snippet_conditional,
19068         func_get_automake_snippet_unconditional): New functions, extracted from
19069         func_get_automake_snippet.
19070         (func_get_automake_snippet): Use them.
19071         (sed_first_32_chars): New variable.
19072         (func_module_shellfunc_name): New function.
19073         (func_module_shellvar_name): New function.
19074         (func_module_conditional_name): New function.
19075         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19076         func_cond_module_condition): New functions.
19077         (func_modules_transitive_closure): Add support for conditional
19078         dependencies.
19079         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19080         conditional automake snippet in an automake conditional.
19081         (func_emit_autoconf_snippets): Emit shell functions that contain the
19082         code for conditional modules.
19083         (func_import, func_create_testdir): Update specification.
19084
19085 2011-05-03  Eric Blake  <eblake@redhat.com>
19086
19087         test-getaddrinfo: report error information
19088         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19089
19090 2011-05-03  Jim Meyering  <meyering@redhat.com>
19091
19092         bootstrap: avoid build failure when $GZIP is set
19093         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19094         program name.  If defined at all, it is supposed to list gzip options.
19095         Reported by Alan Curry in http://debbugs.gnu.org/8609
19096
19097 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19098
19099         readme-release: new module with release instructions
19100         * modules/readme-release: New module.
19101         * top/README-release: New file, from coreutils, grep, diffutils.
19102         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19103
19104 2011-05-02  Eric Blake  <eblake@redhat.com>
19105
19106         fflush: also replace fclose when fixing fflush
19107         * modules/fflush (Depends-on): Add fclose.
19108         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19109         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19110         memstreams with no backing fd.
19111         * doc/posix-functions/fclose.texi (fclose): Document the use of
19112         fflush module to fix the bug.
19113         * tests/test-fclose.c (main): Relax test when fclose is used in
19114         isolation.
19115
19116         fclose: add some tests
19117         * modules/fclose-tests: New test module.
19118         * tests/test-fclose.c: New file.
19119         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19120
19121         fclose: reduced dependencies
19122         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19123         simpler lseek.
19124         * lib/fclose.c (rpl_fclose): Likewise.
19125         Reported by Simon Josefsson.
19126
19127         exit: drop remaining clients
19128         * modules/argmatch (Depends-on): Replace exit with stdlib.
19129         * modules/copy-file (Depends-on): Likewise.
19130         * modules/execute (Depends-on): Likewise.
19131         * modules/exitfail (Depends-on): Likewise.
19132         * modules/obstack (Depends-on): Likewise.
19133         * modules/pagealign_alloc (Depends-on): Likewise.
19134         * modules/pipe-filter-gi (Depends-on): Likewise.
19135         * modules/pipe-filter-ii (Depends-on): Likewise.
19136         * modules/savewd (Depends-on): Likewise.
19137         * modules/spawn-pipe (Depends-on): Likewise.
19138         * modules/wait-process (Depends-on): Likewise.
19139         * modules/xsetenv (Depends-on): Likewise.
19140         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19141         * modules/git-merge-changelog (Depends-on): Likewise.
19142         * modules/long-options (Depends-on): Likewise.
19143         * modules/pt_chown (Depends-on): Likewise.
19144         * modules/sysexits (Depends-on): Likewise.
19145
19146         freading: relax license from LGPLv3+ to LGPLv2+
19147         * modules/freading (License): Relax LGPL version.
19148
19149 2011-05-02  Bruno Haible  <bruno@clisp.org>
19150
19151         fchdir: Remove unused dependencies.
19152         * modules/fchdir (Depends-on): Remove include_next.
19153
19154 2011-05-02  Bruno Haible  <bruno@clisp.org>
19155
19156         gnulib-tool: Refactor.
19157         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19158         from func_emit_autoconf_snippets.
19159         (func_emit_autoconf_snippets): Use it.
19160
19161 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19162
19163         * NEWS: Document removal of 'exit'.
19164         * modules/exit: Remove file.
19165
19166 2011-05-01  Bruno Haible  <bruno@clisp.org>
19167
19168         Update DEPENDENCIES.
19169         * DEPENDENCIES (gettext): Recommend the newest release.
19170         Reported by Simon Josefsson.
19171
19172 2011-05-01  Bruno Haible  <bruno@clisp.org>
19173
19174         gnulib-tool: Reduce code duplication.
19175         * gnulib-tool (func_emit_autoconf_snippets): New function.
19176         (func_import, func_create_testdir): Use it.
19177
19178 2011-04-30  Eric Blake  <eblake@redhat.com>
19179
19180         fclose: don't fail on non-seekable input stream
19181         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19182         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19183         since fflush is allowed to fail in that case.
19184
19185 2011-04-30  Bruno Haible  <bruno@clisp.org>
19186
19187         dup3: cleanup
19188         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19189
19190 2011-04-30  Bruno Haible  <bruno@clisp.org>
19191
19192         netdb: Make it work in C++ mode.
19193         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19194         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19195         module.
19196         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19197         gl_MODULE_INDICATOR_FOR_TESTS.
19198         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19199         * modules/netdb-c++-tests: New file.
19200         * tests/test-netdb-c++.cc: New file.
19201
19202 2011-04-30  Bruno Haible  <bruno@clisp.org>
19203
19204         New modules 'vfscanf', 'vscanf'.
19205         * modules/vfscanf: New file.
19206         * modules/vscanf: New file.
19207         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19208         here.
19209         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19210         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19211
19212 2011-04-30  Bruno Haible  <bruno@clisp.org>
19213
19214         passfd: Add comments.
19215         * lib/passfd.c: Add comments about platforms.
19216
19217 2011-04-30  Bruno Haible  <bruno@clisp.org>
19218
19219         sys_uio: Make <sys/uio.h> self-contained.
19220         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19221         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19222
19223 2011-04-30  Bruno Haible  <bruno@clisp.org>
19224
19225         sys_socket: Ensure 'struct iovec' definition.
19226         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19227         <sys/socket.h>.
19228         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19229
19230 2011-04-30  Bruno Haible  <bruno@clisp.org>
19231
19232         sys_uio: Protect definition of 'struct iovec'.
19233         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19234         it as a C struct.
19235
19236 2011-04-30  Bruno Haible  <bruno@clisp.org>
19237
19238         manywarnings: fix indentation
19239         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19240
19241 2011-04-30  Pádraig Brady <P@draigBrady.com>
19242
19243         manywarnings: add -Wno-missing-field-initializers if needed.
19244         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19245         option if it's needed to allow initialization with { 0, }
19246
19247 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19248
19249         announce-gen: cosmetic improvement
19250         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19251
19252 2011-04-29  Jim Meyering  <meyering@redhat.com>
19253
19254         vc-list-files: indent with spaces, not TABs
19255         * build-aux/vc-list-files: Convert leading TABs to spaces,
19256         to match the style of most other files in gnulib.
19257
19258         announce-gen: indent with spaces, not TABs
19259         * build-aux/announce-gen: Convert all TABs to spaces, to match
19260         the style of most other files in gnulib.
19261
19262 2011-04-29  Eric Blake  <eblake@redhat.com>
19263
19264         quotearg: avoid uninitialized variable use
19265         * lib/quotearg.c (quoting_options_from_style): Initialize
19266         remaining fields, and ensure that custom styles are only used via
19267         quoting_options rather than quoting_style.
19268
19269 2011-04-29  Jim Meyering  <meyering@redhat.com>
19270
19271         maint.mk: remove unused VC-tag variable
19272         * top/maint.mk (VC-tag): Remove unused variable.
19273
19274 2011-04-29  Bruno Haible  <bruno@clisp.org>
19275
19276         netdb: fix gai_strerror replacements
19277         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19278         * modules/netdb: Substitute it.
19279
19280 2011-04-29  Jim Meyering  <meyering@redhat.com>
19281
19282         test-getcwd.c: avoid new set-but-not-used warning
19283         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19284         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19285         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19286         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19287
19288         test-hash.c: avoid a new shadowing warning
19289         * tests/test-hash.c (main): Don't shadow "dup".
19290
19291 2011-04-28  Eric Blake  <eblake@redhat.com>
19292
19293         getaddrinfo: fix gai_strerror signature
19294         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19295         and work around mingw with UNICODE defined.
19296         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19297         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19298         * modules/netdb (Makefile.am): Substitute it.
19299         * lib/netdb.in.h (gai_strerror): Declare replacement.
19300         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19301         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19302         the fix.
19303
19304         getsockopt: avoid compiler warning
19305         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19306         Reported by Matthias Bolte.
19307
19308         tests: drop unused link dependency
19309         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19310         * modules/dirent-safer-tests (Makefile.am): Likewise.
19311         * modules/fdopendir-tests (Makefile.am): Likewise.
19312         * modules/mkfifoat-tests (Makefile.am): Likewise.
19313         * modules/openat-safer-tests (Makefile.am): Likewise.
19314         * modules/openat-tests (Makefile.am): Likewise.
19315         * modules/readlinkat-tests (Makefile.am): Likewise.
19316         * modules/symlinkat-tests (Makefile.am): Likewise.
19317         * modules/linkat-tests (Makefile.am): Likewise.
19318         (Depends-on): Switch to filenamecat-lgpl.
19319         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19320         LIBINTL.
19321         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19322         * tests/test-linkat.c (main): Don't require xalloc.
19323
19324         hash, mgetgroups: drop xalloc dependency
19325         * lib/hash.c (includes): Adjust includes.
19326         * lib/mgetgroups.c (includes): Likewise.
19327         (xgetgroups): Move...
19328         * lib/xgetgroups.c: ...to new file.
19329         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19330         * modules/xgetgroups: New file, split from...
19331         * modules/mgetgroups: ...here.
19332         (Depends-on): Add xalloc-oversized.
19333         * modules/hash (Depends-on): Likewise.
19334         * modules/hash-tests (Depends-on): Drop xalloc.
19335         (test_hash_LDADD): Drop unused library.
19336         * tests/test-hash.c (main): Break xalloc dependency.
19337         (includes): Drop unused include.
19338
19339         xalloc-oversized: new module
19340         * modules/xalloc-oversized: New module.
19341         * modules/xalloc (Depends-on): Add it.
19342         * lib/xalloc.h (xalloc_oversized): Move...
19343         * lib/xalloc-oversized.h: ...into new file.
19344
19345         utimecmp: drop dependency on xmalloc
19346         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19347         due to memory pressure.
19348         * modules/utimecmp (Depends-on): Drop xalloc.
19349
19350 2011-04-27  Eric Blake  <eblake@redhat.com>
19351
19352         getcwd: fix mingw bugs
19353         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19354         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19355         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19356
19357 2011-04-27  Bruno Haible  <bruno@clisp.org>
19358
19359         mkstemps: Ensure declaration on MacOS X 10.5.
19360         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19361         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19362         MacOS X.
19363
19364 2011-04-27  Bruno Haible  <bruno@clisp.org>
19365
19366         mkstemp: More documentation.
19367         * doc/posix-functions/mkstemp.texi: Document header file problem on
19368         MacOS X.
19369
19370 2011-04-27  Bruno Haible  <bruno@clisp.org>
19371
19372         mkstemp: Tweak configure message when cross-compiling.
19373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19374         result as a guess.
19375
19376 2011-04-27  Bruno Haible  <bruno@clisp.org>
19377
19378         clean-temp: Clarify what it does.
19379         * lib/clean-temp.h: Add more comments.
19380         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19381         module.
19382         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19383         * doc/glibc-functions/mkstemps.texi: Likewise.
19384         * doc/glibc-functions/mkostemps.texi: Likewise.
19385
19386 2011-04-27  Eric Blake  <eblake@redhat.com>
19387
19388         fchdir: avoid extra chdir and fix test
19389         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19390         getcwd-lgpl.
19391         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19392         have to be canonical.
19393         (canonicalize_file_name): Drop unused macro.
19394         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19395
19396         filenamecat-lgpl: fix licence
19397         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19398         when it was first created.
19399
19400         linkat, renameat: add missing dependency
19401         * modules/linkat (Depends-on): Require getcwd-lgpl.
19402         * modules/renameat (Depends-on): Likewise.
19403
19404         tests: reduce dependencies
19405         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19406         * tests/test-renameat.c (main): Likewise.
19407         * modules/linkat-tests (Depends-on): Relax dependency.
19408         * modules/renameat-tests (Depends-on): Likewise.
19409         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19410         dependency explicit.
19411
19412         save-cwd: reduce default dependency
19413         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19414         * lib/save-cwd.c: Update comments.
19415         * NEWS: Document the semantic change.
19416
19417         getcwd: enhance tests
19418         * tests/test-getcwd-lgpl.c: New file, taken from...
19419         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19420         repeat long path stress tests from m4 probe.
19421         * modules/getcwd-lgpl-tests: New module.
19422         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19423         * m4/getcwd-abort-bug.m4: Update comment.
19424         * m4/getcwd-path-max.m4: Likewise.
19425
19426         getcwd-lgpl: new module
19427         * modules/getcwd-lgpl: New module.
19428         * lib/getcwd-lgpl.c: New file.
19429         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19430         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19431         * modules/getcwd (configure.ac): Set C witness.
19432         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19433
19434         getcwd: tweak comments
19435         * m4/getcwd-abort-bug.m4: Fix comments.
19436         * m4/getcwd-path-max.m4: Likewise.
19437         * m4/getcwd.m4: Likewise.
19438
19439 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19440         and Eric Blake  <eblake@redhat.com>
19441
19442         mkstemp: replace if system version uses wrong permissions
19443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19444         read/write mode bits set in file created by mkstemp.
19445         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19446
19447 2011-04-27  Eric Blake  <eblake@redhat.com>
19448
19449         passfd: avoid compiler warning
19450         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19451         Reported by Laine Stump.
19452
19453 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19454
19455         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19456         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19457
19458 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19459         and Eric Blake  <eblake@redhat.com>
19460
19461         mkstemp: mention clean-temp module
19462         * lib/mkstemp.c: Add comment.
19463         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19464
19465 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19466
19467         inttypes: also provide default values for 32-bit tests
19468         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19469         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19470
19471 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19472
19473         strtoumax: remove dependency on strtoimax
19474         This is like the strtoull change of yesterday.
19475         * modules/strtoumax (Files): Add lib/strtoimax.c.
19476         (Depends-on): Remove strtoimax and add verify.
19477
19478         inttypes-incomplete: new module
19479         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19480         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19481         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19482         of gl_INTTYPES_H.
19483         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19484         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19485         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19486         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19487         * modules/strtoumax, modules/xstrtol (Depends-on):
19488         Depend on inttypes-incomplete, not inttypes.
19489         * modules/inttypes-incomplete: New module, containing the contents
19490         of the old modules/inttypes module, except that the Files: section
19491         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19492         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19493         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19494         (Depends-on): Depend only on inttypes-incomplete.
19495         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19496
19497         inttypes: omit now-redundant strtoimax and strtoumax work
19498         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19499         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19500
19501         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19502         This supports apps that need pointers to strtoimax and strtoumax,
19503         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19504         nonexistent functions.  See
19505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19506         et seq.
19507         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19508         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19509         a macro.
19510         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19511
19512 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19513
19514         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19515
19516 2011-04-25  Bruno Haible  <bruno@clisp.org>
19517
19518         strtol, strtoul: Mark modules as obsolete.
19519         * modules/strtol (Status, Notice): New sections.
19520         * modules/strtoul (Status, Notice): New sections.
19521
19522 2011-04-25  Bruno Haible  <bruno@clisp.org>
19523
19524         strtod: Remove check for strtod, unless supporting old platforms.
19525         * modules/strtod-obsolete: New file.
19526         * m4/strtod-obsolete.m4: New file.
19527         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19528         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19529         * modules/strtod (Depends-on): Add strtod-obsolete.
19530         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19531
19532 2011-04-25  Bruno Haible  <bruno@clisp.org>
19533
19534         strcase: Make module obsolete.
19535         * modules/strcase (Status, Notice): New sections.
19536
19537 2011-04-25  Bruno Haible  <bruno@clisp.org>
19538
19539         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19540         * modules/dup2-obsolete: New file.
19541         * m4/dup2-obsolete.m4: New file.
19542         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19543         gl_FUNC_DUP2_OBSOLETE is not also defined.
19544         * modules/dup2 (Depends-on): Add dup2-obsolete.
19545         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19546
19547 2011-04-25  Bruno Haible  <bruno@clisp.org>
19548
19549         strnlen: Avoid memchr related link error on old obsolete platforms.
19550         * modules/memchr-obsolete: New file.
19551         * m4/memchr-obsolete.m4: New file.
19552         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19553         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19554         * modules/memchr (Depends-on): Add memchr-obsolete.
19555         * modules/strnlen (Depends-on): Likewise.
19556         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19557
19558 2011-04-25  Jim Meyering  <meyering@redhat.com>
19559
19560         maint.mk: makefile_at_at_check extend and clean up
19561         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19562         in addition to */Makefile.am.
19563         Exempt legitimate uses of @VAR@ notation, e.g.,
19564         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19565         Remove obsolete coreutils-specific comment.
19566         Prompted by discussion here:
19567         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19568
19569 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19570
19571         strtoul: remove dependency on strtol
19572         This is so that 'configure' need not check for strtol merely because
19573         the application needs strtoul.
19574         * modules/strtoul (Files): Add lib/strtol.c.
19575         (Depends-on): Remove strtol.
19576
19577         strtoull: remove dependency on strtoul
19578         This is like the strtoll change.
19579         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19580         (Depends-on): Remove strtoul.
19581
19582         strtoll: remove dependency on strtol
19583         This is so that 'configure' need not check for strtol merely because
19584         the application needs strtoll.
19585         * modules/strtoll (Files): Add lib/strtol.c.
19586         (Depends-on): Remove strtol.
19587
19588 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19589
19590         inttypes: Move some configure check to module 'imaxdiv'.
19591         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19592         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19593         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19594
19595 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19596
19597         inttypes: Move some configure check to module 'imaxabs'.
19598         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19599         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19600         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19601
19602 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19603
19604         inttypes: Remove configure tests that are not needed since 2009-12-31.
19605         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19606         gl_cv_header_working_inttypes_h.
19607
19608 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19609
19610         * modules/strnlen (Depends-on): Remove memchr.
19611         The strnlen implementation doesn't need the memchr module's fixes; see
19612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19613
19614         strtol: remove dependency on wchar
19615         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19616         * modules/strtol (Depends-on): Remove wchar.
19617
19618 2011-04-21  Eric Blake  <eblake@redhat.com>
19619
19620         passfd: fix test regression on Linux
19621         * modules/passfd-tests (configure.ac): Correct socketpair check.
19622
19623         passfd: speed up configure and drop unused code
19624         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19625         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19626         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19627         Instead of probing at configure for unix_scm_rights_bsd44_way,
19628         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19629         check to a struct member probe.
19630         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19631         (sendfd, recvfd): Update preprocessor checks.
19632         * modules/passfd (Files): Reflect rename, and drop unused file.
19633         (Depends-on): Drop unused dependency.
19634
19635         passfd: allow compilation on mingw
19636         * modules/sys_socket (Depends-on): Add sys_uio.
19637         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19638         iovec and a minimal struct msghdr.
19639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19640         * tests/test-sys_socket.c (main): Enhance test.
19641         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19642         guaranteed to provide what we need.
19643         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19644         * modules/passfd-tests (Depends-on): Add sys_wait.
19645         * tests/test-passfd.c (main): Skip test on mingw, for now.
19646         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19647         partial 'struct msghdr' implementation.
19648
19649         sys_uio: new module
19650         * modules/sys_uio: New module.
19651         * modules/sys_uio-tests: Likewise.
19652         * lib/sys_uio.in.h: New file.
19653         * m4/sys_uio_h.m4: Likewise.
19654         * tests/test-sys_uio.c: Likewise.
19655         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19656         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19657
19658 2011-04-20  Jim Meyering  <meyering@redhat.com>
19659
19660         useless-if-before-free: avoid false-positive
19661         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19662         disjunct so that it too requires a terminating ";".  Without that,
19663         this script would identify as useless one statement from gcc that
19664         was not:
19665           if (aligned_ptr)
19666             free (((void **) aligned_ptr) [-1]);
19667
19668 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19669
19670         doc: update users.txt.
19671         * users.txt: Add barcode.
19672
19673 2011-04-19  Bruno Haible  <bruno@clisp.org>
19674
19675         ioctl: Remove link dependency on native Windows.
19676         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19677         (gl_close_fn, gl_ioctl_fn): New types.
19678         (struct fd_hook): Renamed from struct close_hook. Change type of
19679         private_close_fn field. Add private_ioctl_fn field.
19680         (close_hook_fn): Add parameter for primary close method.
19681         (execute_close_hooks, execute_all_close_hooks): Likewise.
19682         (ioctl_hook_fn): New type.
19683         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19684         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19685         argument.
19686         (unregister_fd_hook): Renamed from unregister_close_hook.
19687         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19688         Don't include <unistd.h>.
19689         (close): Remove undef.
19690         (anchor): Update.
19691         (execute_close_hooks): Add argument for primary close method.
19692         (execute_all_close_hooks): Likewise.
19693         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19694         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19695         argument. Allow each argument to be NULL.
19696         (unregister_fd_hook): Renamed from unregister_close_hook.
19697         * lib/close.c (rpl_close): Pass 'close' function pointer to
19698         execute_all_close_hooks.
19699         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19700         (primary_ioctl): New function.
19701         (ioctl): Don't call ioctlsocket here. Instead, call
19702         execute_all_ioctl_hooks.
19703         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19704         close method.
19705         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19706         (fd_sockets_hook): Renamed from close_sockets_hook.
19707         (gl_sockets_startup, gl_sockets_cleanup): Update.
19708         * modules/fd-hook: Renamed from modules/close-hook. Update.
19709         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19710         * modules/sockets (Depends-on): Likewise.
19711         * modules/ioctl (Depends-on): Add fd-hook.
19712         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19713         GNULIB_SOCKET.
19714
19715 2011-04-19  Bruno Haible  <bruno@clisp.org>
19716
19717         Move the support of O_NONBLOCK in open() to the 'open' module.
19718         * modules/nonblocking (Depends-on): Remove 'open'.
19719         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19720         gl_cv_have_open_O_NONBLOCK.
19721         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19722         O_NONBLOCK support.
19723         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19724
19725 2011-04-17  Bruno Haible  <bruno@clisp.org>
19726
19727         pipe2: Simplify code.
19728         * lib/pipe2.c (pipe2): Reduce code duplication.
19729
19730 2011-04-17  Bruno Haible  <bruno@clisp.org>
19731
19732         nonblocking: Add comment.
19733         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19734
19735 2011-04-17  Bruno Haible  <bruno@clisp.org>
19736
19737         nonblocking: Add tests for sockets.
19738         * tests/test-nonblocking-socket.sh: New file.
19739         * tests/test-nonblocking-socket-main.c: New file.
19740         * tests/test-nonblocking-socket-child.c: New file.
19741         * tests/test-nonblocking-socket.h: New file.
19742         * tests/socket-server.h: New file.
19743         * tests/socket-client.h: New file.
19744         * modules/nonblocking-socket-tests: New file.
19745         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19746
19747 2011-04-17  Bruno Haible  <bruno@clisp.org>
19748
19749         nonblocking: Add tests for pipes.
19750         * tests/test-nonblocking-pipe.sh: New file.
19751         * tests/test-nonblocking-pipe-main.c: New file.
19752         * tests/test-nonblocking-pipe-child.c: New file.
19753         * tests/test-nonblocking-pipe.h: New file.
19754         * tests/test-nonblocking-writer.h: New file.
19755         * tests/test-nonblocking-reader.h: New file.
19756         * tests/test-nonblocking-misc.h: New file.
19757         * modules/nonblocking-pipe-tests: New file.
19758         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19759
19760 2011-04-16  Bruno Haible  <bruno@clisp.org>
19761
19762         gettext: Clarify the needed programmer actions.
19763         * modules/gettext (Notice): New field.
19764         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19765
19766 2011-04-16  Bruno Haible  <bruno@clisp.org>
19767
19768         strchrnul: Tweak last commit.
19769         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19770         bug.
19771         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19772         as in _GL_FUNCDECL_SYS.
19773         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19774         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19775
19776 2011-04-15  Eric Blake  <eblake@redhat.com>
19777
19778         strchrnul: work around cygwin bug
19779         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19780         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19782         * modules/string (Makefile.am): Substitute it.
19783         * lib/string.in.h (strchrnul): Use it.
19784
19785 2011-04-15  Bruno Haible  <bruno@clisp.org>
19786
19787         Don't require lib/stdio-write.c when only module 'stdio' is used.
19788         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19789         invocation.
19790         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19791
19792 2011-04-14  Bruno Haible  <bruno@clisp.org>
19793
19794         Support non-blocking pipe I/O in read() on native Windows.
19795         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19796         (read): New declaration.
19797         * lib/read.c: New file.
19798         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19799         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19800         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19801         vscanf): New declarations.
19802         * lib/stdio-read.c: New file.
19803         * m4/read.m4: New file.
19804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19805         REPLACE_READ.
19806         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19807         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19808         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19809         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19810         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19811         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19812         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19813         * modules/read: New file.
19814         * modules/nonblocking (Files): Add lib/stdio-read.c.
19815         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19816         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19817         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19818         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19819         * modules/pread (Depends-on): Add read.
19820         * modules/safe-read (Depends-on): Likewise.
19821         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19822         gets, scanf, vfscanf, vscanf): Verify signatures.
19823         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19824         problem with non-blocking pipes.
19825         * doc/posix-functions/fgetc.texi: Likewise.
19826         * doc/posix-functions/fgets.texi: Likewise.
19827         * doc/posix-functions/fread.texi: Likewise.
19828         * doc/posix-functions/fscanf.texi: Likewise.
19829         * doc/posix-functions/getc.texi: Likewise.
19830         * doc/posix-functions/getchar.texi: Likewise.
19831         * doc/posix-functions/gets.texi: Likewise.
19832         * doc/posix-functions/scanf.texi: Likewise.
19833         * doc/posix-functions/vfscanf.texi: Likewise.
19834         * doc/posix-functions/vscanf.texi: Likewise.
19835
19836 2011-04-14  Bruno Haible  <bruno@clisp.org>
19837
19838         Support non-blocking pipe I/O in write() on native Windows.
19839         * lib/write.c (rpl_write): Split a write request that failed merely
19840         because the byte count was larger than the pipe buffer's size.
19841         * doc/posix-functions/write.texi: Mention the problem with large byte
19842         counts.
19843
19844 2011-04-14  Bruno Haible  <bruno@clisp.org>
19845
19846         wchar: Ensure that wchar_t gets defined on uClibc.
19847         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19848         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19849
19850 2011-04-13  Bruno Haible  <bruno@clisp.org>
19851
19852         safe-write, full-read: Avoid unnecessary compilation units.
19853         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19854         (Depends-on): Remove safe-read. Add ssize_t.
19855         * modules/full-read (Files): Add lib/full-write.c.
19856         (Depends-on): Add full-write.
19857
19858 2011-04-13  Bruno Haible  <bruno@clisp.org>
19859
19860         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19861         * modules/pwrite (Depends-on): Add 'write'.
19862
19863 2011-04-13  Bruno Haible  <bruno@clisp.org>
19864
19865         Support non-blocking pipe I/O in write() on native Windows.
19866         * lib/unistd.in.h (write): Enable replacement also if
19867         GNULIB_UNISTD_H_NONBLOCKING is 1.
19868         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19869         (rpl_write): When failing to write on a non-blocking pipe, change
19870         errno from ENOSPC to EAGAIN.
19871         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19872         putchar, puts, vfprintf, vprintf): Enable replacement also if
19873         GNULIB_STDIO_H_NONBLOCKING is 1.
19874         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19875         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19876         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19877         CALL_WITH_SIGPIPE_EMULATION.
19878         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19879         * m4/nonblocking.m4: New file.
19880         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19881         for non-blocking I/O support.
19882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19883         GNULIB_UNISTD_H_NONBLOCKING.
19884         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19885         required for non-blocking I/O support.
19886         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19887         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19888         lib/stdio-write.c, m4/asm-underscore.m4.
19889         (Depends-on): Add stdio, unistd.
19890         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19891         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19892         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19893         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19894         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19895         problem with non-blocking pipes.
19896         * doc/posix-functions/fputc.texi: Likewise.
19897         * doc/posix-functions/fputs.texi: Likewise.
19898         * doc/posix-functions/fwrite.texi: Likewise.
19899         * doc/posix-functions/printf.texi: Likewise.
19900         * doc/posix-functions/putc.texi: Likewise.
19901         * doc/posix-functions/putchar.texi: Likewise.
19902         * doc/posix-functions/puts.texi: Likewise.
19903         * doc/posix-functions/vfprintf.texi: Likewise.
19904         * doc/posix-functions/vprintf.texi: Likewise.
19905         * doc/posix-functions/write.texi: Likewise.
19906
19907 2011-04-10  Jim Meyering  <meyering@redhat.com>
19908
19909         maint.mk: prohibit doubled words
19910         Detect them also when they're separated by a newline.
19911         There are 3 ways to customize it:
19912           - disable the test on a per file basis, as usual with rules using
19913             $(VC_LIST_EXCEPT)
19914           - replace the default doubled-word-selecting regexp (affects all files)
19915           - ignore a particular file-vs-doubled-word match
19916         I nearly used that last one to ignore the "is is" match in
19917         coreutils' NEWS file, since the text was "ls -is is ..."
19918         To do that, I would have added this line to cfg.mk:
19919           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19920         but it would have ignored any "is is" match in NEWS.
19921         Low probability, but still...
19922         Instead, I changed the text, slightly:
19923           -  ls -is is now consistent with ls -lis in ignoring values returned
19924           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19925         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19926         (prohibit_doubled_word_): Define.
19927         (sc_prohibit_doubled_word): New rule.
19928         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19929
19930 2011-04-10  Jim Meyering  <meyering@redhat.com>
19931
19932         maint: fix doubled-word typo in comment
19933         * m4/gethostname.m4: s/is is/it is/
19934         * m4/getdomainname.m4: Likewise.
19935
19936 2011-04-10  Jim Meyering  <meyering@redhat.com>
19937
19938         maint: remove doubled word: s/it it/it/
19939         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19940
19941 2011-04-10  Jim Meyering  <meyering@redhat.com>
19942
19943         maint.mk: remove useless semicolon and backslash
19944         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19945         semicolon and backslash.
19946
19947 2011-04-10  Bruno Haible  <bruno@clisp.org>
19948
19949         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19950         * modules/stdint-tests (Depends-on): Add wchar.
19951
19952 2011-04-10  Jim Meyering  <meyering@redhat.com>
19953
19954         maint: remove doubled words in comments, e.g., s/a a/a/
19955         * lib/strptime.c (day_of_the_week): s/the the/the/
19956         * tests/test-chown.h (test_chown): s/a a/a/
19957
19958         test-chown.h: correct a cast
19959         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19960         when the destination is a stat.st_gid.
19961
19962 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19963
19964         getaddrinfo: Fix test for sa_len member.
19965         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19966         include <sys/types.h> before <sys/socket.h>.
19967
19968 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19969
19970         maint: change "can not" to "cannot"
19971         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19972         boundaries.
19973
19974 2011-04-09  Jim Meyering  <meyering@redhat.com>
19975
19976         maint: change "a a" to "a"
19977         * tests/test-lchown.h (test_lchown): s/a a/a/
19978
19979         maint.mk: prohibit \<the the\>
19980         * top/maint.mk (sc_prohibit_the_the): New rule.
19981
19982         maint: fix "the the" in comment
19983         * lib/count-one-bits.h: s/the the/the/
19984
19985         maint: change "can not" to "cannot"
19986         But do not change the occurrences in maintain.texi or in
19987         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19988         * doc/gnulib-tool.texi: s/can not/cannot/
19989         * doc/posix-functions/accept.texi (accept): Likewise.
19990         * doc/posix-functions/socket.texi (socket): Likewise.
19991         * lib/mbrtowc.c: Likewise.
19992
19993         maint.mk: prohibit use of "can not"
19994         * top/maint.mk (sc_prohibit_can_not): New rule.
19995         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19996
19997 2011-04-09  Bruno Haible  <bruno@clisp.org>
19998
19999         careadlinkat: Guard against misuse of careadlinkatcwd.
20000         * lib/careadlinkat.c: Include <stdlib.h>.
20001         (careadlinkatcwd): Check that the fd argument is as expected.
20002
20003 2011-04-09  Bruno Haible  <bruno@clisp.org>
20004
20005         careadlinkat: Use common coding style.
20006         * lib/careadlinkat.c: Move gnulib includes after system includes.
20007
20008 2011-04-09  Bruno Haible  <bruno@clisp.org>
20009
20010         careadlinkat: Clarify specification.
20011         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20012         (careadlinkatcwd): Add comment.
20013         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20014
20015 2011-04-09  Bruno Haible  <bruno@clisp.org>
20016
20017         areadlinkat: Avoid link error on many platforms.
20018         * modules/areadlinkat (Depends-on): Add areadlink.
20019
20020 2011-04-09  Bruno Haible  <bruno@clisp.org>
20021
20022         allocator, careadlinkat: Fix double-inclusion guard.
20023         * lib/allocator.h: Fix double-inclusion guard.
20024         * lib/careadlinkat.h: Likewise.
20025
20026 2011-04-09  Bruno Haible  <bruno@clisp.org>
20027
20028         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20029         * lib/relocwrapper.c: Update dependencies hierarchy.
20030         * build-aux/install-reloc: Update list of files to be compiled.
20031         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20032         lib/allocator.[hc].
20033
20034 2011-04-08  Eric Blake  <eblake@redhat.com>
20035
20036         strftime: silence gnulib-tool warning
20037         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20038
20039 2011-04-08  Bruno Haible  <bruno@clisp.org>
20040
20041         verify: Fix syntax error with GCC 4.6 in C++ mode.
20042         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20043         (HAVE_STATIC_ASSERT): New macro.
20044         (verify_true, verify): Use 'static_assert' if it is supported and
20045         '_Static_assert' is not supported.
20046
20047 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20048
20049         allocator: New module.
20050         * modules/allocator, lib/allocator.c: New files.
20051         * lib/allocator.h (stdlib_allocator): New decl.
20052         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20053         Remove.  Do not include <stdlib.h>.
20054         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20055         * modules/careadlinkat (Files): Remove lib/allocator.h.
20056         (Depends-on): Add allocator.
20057
20058         stdlib: let modules use system malloc, realloc
20059         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20060         if !_GL_USE_STDLIB_ALLOC.
20061         (malloc, realloc): Limit this change to a smaller scope.
20062
20063         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20064         (malloc, realloc): Don't #undef; no longer needed.
20065         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20066         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20067         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20068         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20069         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20070         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20071         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20072         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20073
20074         careadlinkat: rename members to avoid problem
20075         * lib/allocator.h (struct allocator): Rename members from
20076         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20077         and realloc are #define'd.  Reported by Eric Blake in
20078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20079         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20080
20081 2011-04-08  Eric Blake  <eblake@redhat.com>
20082
20083         nonblocking: reduce dependency
20084         * tests/test-nonblocking.c: Only test sockets when in use.
20085         * modules/nonblocking-tests (Depends-on): Drop socket.
20086         (Makefile.am): Link even if sockets are not present.
20087         * modules/pipe2-tests (Makefile.am): Likewise.
20088         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20089
20090         pipe2: fix O_NONBLOCK support on mingw
20091         * modules/pipe2 (Depends-on): Add nonblocking.
20092         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20093         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20094         * tests/test-nonblocking.c (main): Likewise.
20095         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20096
20097         fcntl-h: fix O_ACCMODE on cygwin
20098         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20099         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20100
20101         pipe-filter: drop O_NONBLOCK workarounds
20102         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20103         * modules/pipe-filter-ii (Depends-on): Likewise.
20104         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20105
20106         nonblocking: provide O_NONBLOCK for mingw
20107         * modules/nonblocking (Depends-on): Add open.
20108         (configure.ac): Set new witness macro.
20109         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20110         * modules/fcntl-h (Makefile.am): Substitute it.
20111         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20112         nonblocking module is in use.
20113         * lib/nonblocking.c: Adjust portability test.
20114         * lib/open.c (open): Don't let native open see gnulib flag.
20115         * tests/test-fcntl-h.c (main): Enhance test.
20116         * tests/test-open.h (test_open): Likewise.
20117         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20118
20119         careadlinkat: fix compilation error on mingw
20120         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20121         within struct allocator.
20122
20123 2011-04-06  Eric Blake  <eblake@redhat.com>
20124
20125         binary-io: relicense under LGPLv2+
20126         * modules/binary-io (License): Relax to LGPLv2+.
20127         Requested for libvirt, and required by pipe2.
20128
20129 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20130
20131         verify: use _Static_assert if available
20132         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20133         (verify_true, verify): Use it if available.  This generates better
20134         diagnostics with GCC 4.6.0 and later.
20135
20136 2011-04-05  Bruno Haible  <bruno@clisp.org>
20137
20138         Remove leftover generated .h files after config.status changed.
20139
20140         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20141         GL_GENERATE_ALLOCA_H.
20142         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20143         GL_GENERATE_ALLOCA_H evaluates to false.
20144
20145         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20146         GL_GENERATE_ARGZ_H.
20147         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20148         evaluates to false.
20149
20150         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20151         GL_GENERATE_BYTESWAP_H.
20152         * modules/byteswap (Makefile.am): Remove byteswap.h if
20153         GL_GENERATE_BYTESWAP_H evaluates to false.
20154
20155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20156         GL_GENERATE_ERRNO_H.
20157         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20158         evaluates to false.
20159
20160         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20161         GL_GENERATE_FLOAT_H.
20162         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20163         evaluates to false.
20164
20165         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20166         GL_GENERATE_FNMATCH_H.
20167         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20168         GL_GENERATE_FNMATCH_H evaluates to false.
20169
20170         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20171         GL_GENERATE_GLOB_H.
20172         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20173         evaluates to false.
20174
20175         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20176         automake conditional GL_GENERATE_ICONV_H.
20177         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20178         evaluates to false.
20179
20180         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20181         GL_GENERATE_NETINET_IN_H.
20182         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20183         GL_GENERATE_NETINET_IN_H evaluates to false.
20184
20185         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20186         conditional GL_GENERATE_PTHREAD_H.
20187         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20188         * modules/pthread (Makefile.am): Remove pthread.h if
20189         GL_GENERATE_PTHREAD_H evaluates to false.
20190
20191         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20192         GL_GENERATE_SCHED_H.
20193         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20194         evaluates to false.
20195
20196         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20197         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20198         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20199         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20200
20201         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20202         GL_GENERATE_STDARG_H.
20203         * modules/stdarg (Makefile.am): Remove stdarg.h if
20204         GL_GENERATE_STDARG_H evaluates to false.
20205
20206         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20207         GL_GENERATE_STDBOOL_H.
20208         * modules/stdbool (Makefile.am): Remove stdbool.h if
20209         GL_GENERATE_STDBOOL_H evaluates to false.
20210
20211         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20212         conditional GL_GENERATE_STDDEF_H.
20213         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20214         * modules/stddef (Makefile.am): Remove stddef.h if
20215         GL_GENERATE_STDDEF_H evaluates to false.
20216
20217         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20218         GL_GENERATE_STDINT_H.
20219         * modules/stdint (Makefile.am): Remove stdint.h if
20220         GL_GENERATE_STDINT_H evaluates to false.
20221
20222         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20223         GL_GENERATE_SYSEXITS_H.
20224         * modules/sysexits (Makefile.am): Remove sysexits.h if
20225         GL_GENERATE_SYSEXITS_H evaluates to false.
20226
20227         Reported by Karl Berry and Ralf Wildenhues.
20228
20229 2011-04-05  Bruno Haible  <bruno@clisp.org>
20230
20231         Ensure to rebuild generated .h files when config.status has changed.
20232         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20233         config.status.
20234         * modules/ctype (Makefile.am): Likewise.
20235         * modules/dirent (Makefile.am): Likewise.
20236         * modules/errno (Makefile.am): Likewise.
20237         * modules/fcntl-h (Makefile.am): Likewise.
20238         * modules/float (Makefile.am): Likewise.
20239         * modules/getopt-posix (Makefile.am): Likewise.
20240         * modules/glob (Makefile.am): Likewise.
20241         * modules/iconv-h (Makefile.am): Likewise.
20242         * modules/inttypes (Makefile.am): Likewise.
20243         * modules/langinfo (Makefile.am): Likewise.
20244         * modules/locale (Makefile.am): Likewise.
20245         * modules/math (Makefile.am): Likewise.
20246         * modules/netdb (Makefile.am): Likewise.
20247         * modules/netinet_in (Makefile.am): Likewise.
20248         * modules/poll-h (Makefile.am): Likewise.
20249         * modules/pthread (Makefile.am): Likewise.
20250         * modules/pty (Makefile.am): Likewise.
20251         * modules/sched (Makefile.am): Likewise.
20252         * modules/search (Makefile.am): Likewise.
20253         * modules/selinux-h (Makefile.am): Likewise.
20254         * modules/signal (Makefile.am): Likewise.
20255         * modules/spawn (Makefile.am): Likewise.
20256         * modules/stdarg (Makefile.am): Likewise.
20257         * modules/stdbool (Makefile.am): Likewise.
20258         * modules/stddef (Makefile.am): Likewise.
20259         * modules/stdint (Makefile.am): Likewise.
20260         * modules/stdio (Makefile.am): Likewise.
20261         * modules/stdlib (Makefile.am): Likewise.
20262         * modules/string (Makefile.am): Likewise.
20263         * modules/strings (Makefile.am): Likewise.
20264         * modules/sys_file (Makefile.am): Likewise.
20265         * modules/sys_ioctl (Makefile.am): Likewise.
20266         * modules/sys_select (Makefile.am): Likewise.
20267         * modules/sys_socket (Makefile.am): Likewise.
20268         * modules/sys_stat (Makefile.am): Likewise.
20269         * modules/sys_time (Makefile.am): Likewise.
20270         * modules/sys_times (Makefile.am): Likewise.
20271         * modules/sys_utsname (Makefile.am): Likewise.
20272         * modules/sys_wait (Makefile.am): Likewise.
20273         * modules/sysexits (Makefile.am): Likewise.
20274         * modules/termios (Makefile.am): Likewise.
20275         * modules/time (Makefile.am): Likewise.
20276         * modules/unistd (Makefile.am): Likewise.
20277         * modules/wchar (Makefile.am): Likewise.
20278         * modules/wctype-h (Makefile.am): Likewise.
20279         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20280
20281 2011-04-05  Bruno Haible  <bruno@clisp.org>
20282
20283         pipe2: Relicense under LGPLv2+.
20284         * modules/pipe2 (License): Change to LGPLv2+.
20285         Requested by Eric Blake, for libvirt.
20286
20287 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20288
20289         bootstrap: compute gnulib_extra_files after updating build_aux
20290         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20291         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20292
20293 2011-04-05  Eric Blake  <eblake@redhat.com>
20294
20295         bootstrap: preserve git whitelist item sorting
20296         * build-aux/bootstrap (sort_patterns): New function.
20297         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20298
20299 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20300
20301         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20302         sc_space_tab check.
20303
20304 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         areadlink, areadlinkat: rewrite in terms of careadlinkat
20307         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20308         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20309         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20310         (malloc, realloc): Remove #undefs.
20311         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20312         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20313         readlink, ssize_t, stdint, unistd.
20314         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20315         areadlink, stdint.
20316
20317         careadlinkat: new module
20318         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20319         * modules/careadlinkat: New files, written by me with
20320         a review and feedback from Ben Pfaff in
20321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20322
20323 2011-04-01  Bruno Haible  <bruno@clisp.org>
20324
20325         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20326         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20327         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20328         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20329         Reported by Bruce Korb <bruce.korb@gmail.com>.
20330
20331 2011-04-01  Bruno Haible  <bruno@clisp.org>
20332
20333         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20334         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20335         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20336         * modules/wcpcpy (Depends-on): Add extensions.
20337         * modules/wcpncpy (Depends-on): Likewise.
20338         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20339         systems.
20340         * doc/posix-functions/wcpncpy.texi: Likewise.
20341         * doc/posix-functions/wcwidth.texi: Likewise.
20342
20343 2011-03-31  Eric Blake  <eblake@redhat.com>
20344
20345         nonblocking: fix mingw test failures
20346         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20347         non-blocking flag on regular file.
20348         (get_nonblocking_flag): Set errno on invalid fd.
20349         * tests/test-nonblocking.c (main): Avoid test failure on
20350         directories if fchdir is not active.
20351         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20352
20353 2011-03-31  Bruno Haible  <bruno@clisp.org>
20354
20355         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20356         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20357         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20358         Reported by Simon Josefsson <simon@josefsson.org>.
20359
20360 2011-03-31  Bruno Haible  <bruno@clisp.org>
20361         and Eric Blake  <eblake@redhat.com>
20362
20363         nonblocking: new module
20364         * modules/nonblocking: New module.
20365         * modules/nonblocking-tests: Likewise.
20366         * lib/nonblocking.h: New file.
20367         * lib/nonblocking.c: Likewise.
20368         * tests/test-nonblocking.c: New test.
20369         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20370
20371 2011-03-30  Bruno Haible  <bruno@clisp.org>
20372
20373         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20374         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20375         instead of 'printf' format for GCC >= 4.4.
20376         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20377         (fprintf, printf, vfprintf, vprintf): Declare with
20378         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20379         the system's vfprintf() function.
20380         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20381
20382 2011-03-30  Eric Blake  <eblake@redhat.com>
20383
20384         passfd: fix scoping bug
20385         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20386         before sendmsg/recvmsg.
20387
20388         passfd: standardize coding conventions
20389         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20390         can be learned at compile time.
20391         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20392         ifdefs.
20393         (sendfd, recvfd): Follow gnulib code conventions.
20394
20395         passfd: fix incorrect sendmsg arguments
20396         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20397         incorrect msg_controllen value.
20398         * modules/passfd-tests (Depends-on): Check for alarm.
20399         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20400         Reported by Bastien ROUCARIES.
20401
20402 2011-03-30  Bruno Haible  <bruno@clisp.org>
20403
20404         c-strcasestr: Relicense under LGPLv2+.
20405         * modules/c-strcasestr (License): Change to LGPLv2+.
20406         Requested by Eric Blake, for libvirt.
20407
20408 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20409
20410         * users.txt: Add libidn2.  Fix libtasn1 link.
20411
20412 2011-03-30  Jim Meyering  <meyering@redhat.com>
20413
20414         tests: readlink* ("",... fails with EINVAL on newer kernels
20415         readlink and readlinkat have typically failed with ENOENT for
20416         the invalid, empty file name,  "".  However, with the advent
20417         of linux-2.6.39, they fail with EINVAL.
20418         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20419         when operating on the empty file name.
20420         * tests/test-readlink.h (test_readlink): Likewise.
20421
20422 2011-03-29  Bruno Haible  <bruno@clisp.org>
20423
20424         Relicense some modules under LGPLv2+, for libidn2.
20425         * modules/array-mergesort (License): Change to LGPLv2+.
20426         * modules/c-strcaseeq (License): Likewise.
20427         * modules/striconveh (License): Likewise.
20428         * modules/striconveha (License): Likewise.
20429         * modules/uniconv/base (License): Likewise.
20430         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20431         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20432         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20433         * modules/unictype/base (License): Likewise.
20434         * modules/unictype/bidiclass-of (License): Likewise.
20435         * modules/unictype/category-M (License): Likewise.
20436         * modules/unictype/category-none (License): Likewise.
20437         * modules/unictype/category-of (License): Likewise.
20438         * modules/unictype/category-test (License): Likewise.
20439         * modules/unictype/category-test-withtable (License): Likewise.
20440         * modules/unictype/combining-class (License): Likewise.
20441         * modules/unictype/joiningtype-of (License): Likewise.
20442         * modules/unictype/scripts (License): Likewise.
20443         * modules/uninorm/base (License): Likewise.
20444         * modules/uninorm/canonical-decomposition (License): Likewise.
20445         * modules/uninorm/composition (License): Likewise.
20446         * modules/uninorm/decompose-internal (License): Likewise.
20447         * modules/uninorm/decomposition-table (License): Likewise.
20448         * modules/uninorm/nfc (License): Likewise.
20449         * modules/uninorm/nfd (License): Likewise.
20450         * modules/uninorm/u32-normalize (License): Likewise.
20451         * modules/unistr/base (License): Likewise.
20452         * modules/unistr/u32-cpy (License): Likewise.
20453         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20454         * modules/unistr/u32-to-u8 (License): Likewise.
20455         * modules/unistr/u32-uctomb (License): Likewise.
20456         * modules/unistr/u8-check (License): Likewise.
20457         * modules/unistr/u8-mblen (License): Likewise.
20458         * modules/unistr/u8-mbtouc (License): Likewise.
20459         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20460         * modules/unistr/u8-mbtoucr (License): Likewise.
20461         * modules/unistr/u8-prev (License): Likewise.
20462         * modules/unistr/u8-strlen (License): Likewise.
20463         * modules/unistr/u8-to-u32 (License): Likewise.
20464         * modules/unistr/u8-uctomb (License): Likewise.
20465         * modules/unitypes (License): Likewise.
20466         Requested by Simon Josefsson.
20467
20468 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20469
20470         lib-symbol-visibility: Add a notice.
20471         * modules/lib-symbol-visibility (Notice): New field.
20472
20473 2011-03-29  Bruno Haible  <bruno@clisp.org>
20474
20475         getaddrinfo: Doc fix.
20476         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20477         section "fixed in Gnulib".
20478
20479 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20480
20481         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20482         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20483
20484 2011-03-26  Bruno Haible  <bruno@clisp.org>
20485
20486         unictype/property-byname: Reduce the number of load-time relocations.
20487         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20488         (UC_PROPERTY_INDEX_*): New enumeration values.
20489         (uc_property_byname): Convert an index from the lookup table to an
20490         uc_property_t.
20491         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20492         values.
20493
20494 2011-03-26  Bruno Haible  <bruno@clisp.org>
20495
20496         unictype/property-byname: Allow omitted word separators and aliases.
20497         * lib/unictype/pr_byname.gperf: Add property names without word
20498         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20499         for 'space'.
20500
20501 2011-03-26  Bruno Haible  <bruno@clisp.org>
20502
20503         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20504         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20505         also hyphens to space.
20506         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20507         without spaces.
20508         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20509
20510 2011-03-26  Bruno Haible  <bruno@clisp.org>
20511
20512         unictype/joiningtype-byname: Recognize long names as well.
20513         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20514         a long name.
20515         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20516         unictype/joiningtype_byname.h.
20517         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20518         * lib/unictype/joiningtype_byname.gperf: New file.
20519         * modules/unictype/joiningtype-byname (Files): Add
20520         lib/unictype/joiningtype_byname.gperf.
20521         (Depends-on): Add gperf.
20522         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20523         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20524         long names.
20525
20526         Tests for module 'unictype/joiningtype-longname'.
20527         * modules/unictype/joiningtype-longname-tests: New file.
20528         * tests/unictype/test-joiningtype_longname.c: New file.
20529
20530         New module 'unictype/joiningtype-longname'.
20531         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20532         * lib/unictype/joiningtype_longname.c: New file.
20533         * modules/unictype/joiningtype-longname: New file.
20534         * modules/unictype/joiningtype-all (Depends-on): Add
20535         unictype/joiningtype-longname.
20536
20537 2011-03-26  Bruno Haible  <bruno@clisp.org>
20538
20539         unictype/bidiclass-byname: Recognize long names as well.
20540         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20541         name.
20542         * lib/unictype/bidi_byname.c: Include <string.h>,
20543         unictype/bidi_byname.h.
20544         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20545         * lib/unictype/bidi_byname.gperf: New file.
20546         * modules/unictype/bidiclass-byname (Files): Add
20547         lib/unictype/bidi_byname.gperf.
20548         (Depends-on): Add gperf.
20549         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20550         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20551         long names.
20552
20553         Tests for module 'unictype/bidiclass-longname'.
20554         * modules/unictype/bidiclass-longname-tests: New file.
20555         * tests/unictype/test-bidi_longname.c: New file.
20556
20557         New module 'unictype/bidiclass-longname'.
20558         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20559         * lib/unictype/bidi_longname.c: New file.
20560         * modules/unictype/bidiclass-longname: New file.
20561         * modules/unictype/bidiclass-all (Depends-on): Add
20562         unictype/bidiclass-longname.
20563
20564 2011-03-26  Bruno Haible  <bruno@clisp.org>
20565
20566         unictype/bidi*: Rename modules.
20567         * modules/unictype/bidiclass-all: Renamed from
20568         modules/unictype/bidicategory-all.
20569         * modules/unictype/bidiclass-name: Renamed from
20570         modules/unictype/bidiclass-name.
20571         (Description): Update.
20572         * modules/unictype/bidiclass-name-tests: Renamed from
20573         modules/unictype/bidicategory-name-tests.
20574         * modules/unictype/bidiclass-byname: Renamed from
20575         modules/unictype/bidicategory-byname.
20576         (Description): Update.
20577         * modules/unictype/bidiclass-byname-tests: Renamed from
20578         modules/unictype/bidicategory-byname-tests.
20579         * modules/unictype/bidiclass-of: Renamed from
20580         modules/unictype/bidicategory-of.
20581         (Description): Update.
20582         * modules/unictype/bidiclass-of-tests: Renamed from
20583         modules/unictype/bidicategory-of-tests.
20584         * modules/unictype/bidiclass-test: Renamed from
20585         modules/unictype/bidicategory-test.
20586         (Description): Update.
20587         * modules/unictype/bidiclass-test-tests: Renamed from
20588         modules/unictype/bidicategory-test-tests.
20589         * modules/unictype/bidicategory-all: New file, a simple redirection.
20590         * modules/unictype/bidicategory-name: Likewise.
20591         * modules/unictype/bidicategory-byname: Likewise.
20592         * modules/unictype/bidicategory-of: Likewise.
20593         * modules/unictype/bidicategory-test: Likewise.
20594         * modules/unictype/property-bidi-* (Dependencies): Update.
20595         * lib/unictype/bidi_*.c: Update comment.
20596
20597 2011-03-26  Bruno Haible  <bruno@clisp.org>
20598
20599         unictype/bidi*: Rename functions, part 2.
20600         * modules/unictype/bidicategory-name (configure.ac): Update required
20601         libunistring version.
20602         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20603
20604 2011-03-25  Bruno Haible  <bruno@clisp.org>
20605
20606         New module 'unictype/combining-class-all'.
20607         * modules/unictype/combining-class-all: New file.
20608
20609         Tests for module 'unictype/combining-class-byname'.
20610         * modules/unictype/combining-class-byname-tests: New file.
20611         * tests/unictype/test-combiningclass_byname.c: New file.
20612
20613         New module 'unictype/combining-class-byname'.
20614         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20615         * lib/unictype/combiningclass_byname.c: New file.
20616         * lib/unictype/combiningclass_byname.gperf: New file.
20617         * modules/unictype/combining-class-byname: New file.
20618
20619         Tests for module 'unictype/combining-class-longname'.
20620         * modules/unictype/combining-class-longname-tests: New file.
20621         * tests/unictype/test-combiningclass_longname.c: New file.
20622
20623         New module 'unictype/combining-class-longname'.
20624         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20625         * lib/unictype/combiningclass_longname.c: New file.
20626         * modules/unictype/combining-class-longname: New file.
20627
20628         Tests for module 'unictype/combining-class-name'.
20629         * modules/unictype/combining-class-name-tests: New file.
20630         * tests/unictype/test-combiningclass_name.c: New file.
20631
20632         New module 'unictype/combining-class-name'.
20633         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20634         * lib/unictype/combiningclass_name.c: New file.
20635         * modules/unictype/combining-class-name: New file.
20636
20637 2011-03-25  Bruno Haible  <bruno@clisp.org>
20638
20639         unictype/combining-class: Rename source files.
20640         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20641         of unictype/combining.h.
20642         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20643         Update.
20644         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20645         * modules/unictype/combining-class (Description): Fix.
20646         (Files, Makefile.am): Update.
20647         * tests/unictype/test-combiningclass.c: Renamed from
20648         tests/unictype/test-combining.c.
20649         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20650
20651 2011-03-25  Bruno Haible  <bruno@clisp.org>
20652
20653         unictype: Update list of canonical combining classes.
20654         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20655
20656 2011-03-25  Bruno Haible  <bruno@clisp.org>
20657
20658         unictype/category-byname: Recognize long names as well.
20659         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20660         a long name.
20661         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20662         unictype/categ_byname.h.
20663         (UC_CATEGORY_INDEX_*): New enumeration values.
20664         (uc_general_category_byname): Use uc_general_category_lookup and
20665         convert from index to value.
20666         * lib/unictype/categ_byname.gperf: New file.
20667         * modules/unictype/category-byname (Files): Add
20668         lib/unictype/categ_byname.gperf.
20669         (Depends-on): Add gperf.
20670         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20671         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20672         long names.
20673
20674         Tests for module 'unictype/category-longname'.
20675         * modules/unictype/category-longname-tests: New file.
20676         * tests/unictype/test-categ_longname.c: New file.
20677
20678         New module 'unictype/category-longname'.
20679         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20680         * lib/unictype/categ_longname.c: New file.
20681         * modules/unictype/category-longname: New file.
20682         * modules/unictype/category-all (Depends-on): Add it.
20683
20684 2011-03-25  Bruno Haible  <bruno@clisp.org>
20685
20686         Tests for module 'unictype/category-LC'.
20687         * modules/unictype/category-LC-tests: New file.
20688         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20689
20690         New module 'unictype/category-LC'.
20691         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20692         (UC_CATEGORY_LC): New declaration.
20693         (UC_CASED_LETTER): New macro.
20694         * lib/gen-uni-tables.c (is_category_LC): New function.
20695         (output_categories): Also handle category LC.
20696         (UC_CATEGORY_MASK_LC): New enumeration value.
20697         (general_category_byname): Also handle category LC.
20698         * lib/unictype/categ_LC.c: New file.
20699         * lib/unictype/categ_LC.h: New file, automatically generated.
20700         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20701         category LC.
20702         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20703         * modules/unictype/category-LC: New file.
20704         * modules/unictype/category-byname (Depends-on): Add
20705         unictype/category-LC.
20706         * modules/unictype/category-all (Depends-on): Likewise.
20707
20708 2011-03-25  Eric Blake  <eblake@redhat.com>
20709
20710         xmalloc: revert yesterday's regression
20711         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20712         realloc's underlying behavior (allowing allocation of zero-size
20713         objects, especially if malloc-gnu is also in use).
20714
20715 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20716
20717         maint.mk: add missing version to VC-tag
20718         * top/maint.mk: git tag was missing actual tag name; add it.
20719
20720         valgrind: do leak checking, and exit with code 1 on error (not 0)
20721         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20722         to VALGRIND.
20723
20724 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20725
20726         posix-modules: say what it does.
20727         * posix-modules: Add a line to the --help output saying what it does.
20728
20729 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20730
20731         xmalloc: Do not leak if underlying realloc is C99 compatible.
20732         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20733         This avoids a leak on C99-based systems.  See
20734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20735
20736 2011-03-24  Eric Blake  <eblake@redhat.com>
20737
20738         realloc: document portability problem
20739         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20740         passing 0 size to realloc.
20741
20742 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20743
20744         doc: update users.txt
20745         * users.txt: Add cvsps, tmpwatch
20746
20747 2011-03-23  Matt Rice  <ratmice@gmail.com>
20748
20749         doc: update users.txt
20750         * users.txt: Add gdb.
20751
20752 2011-03-23  Jim Meyering  <meyering@redhat.com>
20753
20754         doc: update users.txt
20755         Looking through matches up to the following URL (there are still
20756         several more pages), I found several projects that use gnulib:
20757         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20758         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20759         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20760
20761 2011-03-22  Bruno Haible  <bruno@clisp.org>
20762
20763         unictype/bidi*: Rename functions.
20764         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20765         uc_bidi_class, uc_is_bidi_class): New declarations.
20766         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20767         uc_bidi_category_byname.
20768         (uc_bidi_category_byname): New function.
20769         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20770         u_bidi_category_name.
20771         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20772         (uc_bidi_category_name): New function.
20773         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20774         uc_bidi_category.
20775         (uc_bidi_category): New function.
20776         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20777         uc_is_bidi_category. Invoke uc_bidi_class.
20778         (uc_is_bidi_category): New function.
20779         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20780         instead of uc_bidi_category_byname.
20781         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20782         instead of uc_bidi_category_name.
20783         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20784         uc_bidi_category.
20785         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20786         instead of uc_is_bidi_category.
20787
20788 2011-03-21  Bruno Haible  <bruno@clisp.org>
20789
20790         New module 'unictype/joininggroup-all'.
20791         * modules/unictype/joininggroup-all: New file.
20792
20793         Tests for module 'unictype/joininggroup-of'.
20794         * modules/unictype/joininggroup-of-tests: New file.
20795         * tests/unictype/test-joininggroup_of.c: New file.
20796         * tests/unictype/test-joininggroup_of.h: New file, automatically
20797         generated by gen-uni-tables.
20798
20799         New module 'unictype/joininggroup-of'.
20800         * modules/unictype/joininggroup-of: New file.
20801         * lib/unictype/joininggroup_of.c: New file.
20802         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20803         gen-uni-tables.
20804
20805         Tests for module 'unictype/joininggroup-byname'.
20806         * modules/unictype/joininggroup-byname-tests: New file.
20807         * tests/unictype/test-joininggroup_byname.c: New file.
20808
20809         New module 'unictype/joininggroup-byname'.
20810         * modules/unictype/joininggroup-byname: New file.
20811         * lib/unictype/joininggroup_byname.c: New file.
20812         * lib/unictype/joininggroup_byname.gperf: New file.
20813
20814         Tests for module 'unictype/joininggroup-name'.
20815         * modules/unictype/joininggroup-name-tests: New file.
20816         * tests/unictype/test-joininggroup_name.c: New file.
20817
20818         New module 'unictype/joininggroup-name'.
20819         * modules/unictype/joininggroup-name: New file.
20820         * lib/unictype/joininggroup_name.c: New file.
20821         * lib/unictype/joininggroup_name.h: New file.
20822
20823         New module 'unictype/joiningtype-all'.
20824         * modules/unictype/joiningtype-all: New file.
20825
20826         Tests for module 'unictype/joiningtype-of'.
20827         * modules/unictype/joiningtype-of-tests: New file.
20828         * tests/unictype/test-joiningtype_of.c: New file.
20829         * tests/unictype/test-joiningtype_of.h: New file, automatically
20830         generated by gen-uni-tables.
20831
20832         New module 'unictype/joiningtype-of'.
20833         * modules/unictype/joiningtype-of: New file.
20834         * lib/unictype/joiningtype_of.c: New file.
20835         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20836         gen-uni-tables.
20837
20838         Tests for module 'unictype/joiningtype-byname'.
20839         * modules/unictype/joiningtype-byname-tests: New file.
20840         * tests/unictype/test-joiningtype_byname.c: New file.
20841
20842         New module 'unictype/joiningtype-byname'.
20843         * modules/unictype/joiningtype-byname: New file.
20844         * lib/unictype/joiningtype_byname.c: New file.
20845
20846         Tests for module 'unictype/joiningtype-name'.
20847         * modules/unictype/joiningtype-name-tests: New file.
20848         * tests/unictype/test-joiningtype_name.c: New file.
20849
20850         New module 'unictype/joiningtype-name'.
20851         * modules/unictype/joiningtype-name: New file.
20852         * lib/unictype/joiningtype_name.c: New file.
20853
20854         unictype: Add support for Arabic shaping properties.
20855         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20856         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20857         declarations.
20858         (UC_JOINING_GROUP_*): New enumeration values.
20859         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20860         declarations.
20861         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20862         (unicode_joining_type): New variable.
20863         (UC_JOINING_GROUP_*): New enumeration values.
20864         (unicode_joining_group): New variable.
20865         (fill_arabicshaping, joining_type_as_c_identifier,
20866         output_joining_type_test, output_joining_type,
20867         joining_group_as_c_identifier, output_joining_group_test,
20868         output_joining_group): New functions.
20869         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20870         fill_arabicshaping and output_joining_type_test, output_joining_type,
20871         output_joining_group_test, output_joining_group.
20872         Reported by Simon Josefsson.
20873
20874 2011-03-21  Jim Meyering  <meyering@redhat.com>
20875
20876         strftime: fix a bug in yesterday's change
20877         * lib/strftime.c (add): Accommodate width's initial value of -1.
20878         Otherwise, nstrftime would copy uninitialized data into
20879         the result buffer.
20880
20881 2011-03-21  Jim Meyering  <meyering@redhat.com>
20882
20883         tests: add strftime-tests module
20884         * tests/test-strftime.c: New file.
20885         * modules/strftime-tests: New module.
20886
20887 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         strftime: don't assume a byte count fits in 'int'
20890         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20891         found this problem by static analysis, using gcc -Wstrict-overflow
20892         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20893         on an integer overflow having undefined behavior, but it turns out
20894         that the argument is a size, which might not fit in 'int' anyway,
20895
20896 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20897
20898         stdio: don't require ignore_value around fwrite
20899
20900         This patch works around libc bug 11959
20901         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20902         Without this patch, applications must often write
20903         ignore_value (fwrite (...)) even though the ignore_value is
20904         not helpful here.  It's common to write many objects, using
20905         fwrite/printf/etc., and then use ferror to detect output error.
20906
20907         I considered making this patch optional, but decided against it,
20908         because libc is obviously being inconsistent here: there is no
20909         reason libc should insist that user code must inspect fwrite
20910         return's value without also insisting that it inspect printf's,
20911         putchar's, etc.  If user code wants to have a strict style where
20912         all these functions' values are checked (so that ferror need not
20913         be checked), we could add support for that style in a new gnulib
20914         module, but in the meantime it's better to be consistent and to
20915         support common usage.
20916
20917         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20918         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20919         that we are compiling in checking mode, and if not C++, and
20920         if not already wrapping fwrite for some other reason.
20921         (fwrite): #define to rpl_fwrite if the latter is defined.
20922
20923 2011-03-20  Bruno Haible  <bruno@clisp.org>
20924
20925         verror: Fix compilation error introduced on 2011-02-13.
20926         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20927         instead of __attribute__.
20928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20929
20930 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20931             Bruno Haible  <bruno@clisp.org>
20932
20933         socklen: do not depend on sys_socket
20934         While trying to modify Emacs to use gnulib's socklen module,
20935         I discovered a circular dependency: socklen depends on sys_socket
20936         and vice versa.  Emacs can use socklen, but it does not need
20937         sys_socket because it has its own substitute for sys/socket.h.
20938         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20939         gl_TYPE_SOCKLEN_T.
20940         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20941         gl_PREREQ_SYS_H_SOCKET.
20942         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20943         gl_PREREQ_SYS_H_SOCKET.
20944         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20945         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20946         * modules/socklen (Depends-on): Do not depend on sys_socket.
20947         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20948
20949 2011-03-20  Jim Meyering  <meyering@redhat.com>
20950
20951         maint.mk: sort file names *after* new transformation
20952         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20953         prefix would have led to an unwarranted failure in GNU parted.
20954         Sort after that transformation.
20955
20956 2011-03-19  Jim Meyering  <meyering@redhat.com>
20957
20958         maint.mk: fix po-file syntax-check rule
20959         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20960         Patch by Bruno Haible.
20961
20962 2011-03-19  Bruno Haible  <bruno@clisp.org>
20963
20964         socklen: Update comment.
20965         * m4/socklen.m4: Update comment about platforms.
20966
20967 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20968             Bruno Haible  <bruno@clisp.org>
20969
20970         inet_ntop, inet_pton: Simplify.
20971         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20972         documented to provide socklen_t and we already depend on sys_socket.
20973         * modules/inet_pton (Depends-on): Likewise.
20974         * lib/arpa_inet.in.h: Adjust comment.
20975
20976 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20977             Bruno Haible  <bruno@clisp.org>
20978
20979         netdb: Simplify.
20980         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20981         documented to provide socklen_t and we already depend on sys_socket.
20982         * lib/netdb.in.h: Adjust comment.
20983
20984 2011-03-19  Bruno Haible  <bruno@clisp.org>
20985
20986         sys_socket, netdb: Document problem with socklen_t.
20987         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20988         platforms.
20989         * doc/posix-headers/netdb.texi: Likewise.
20990
20991 2011-03-18  Eric Blake  <eblake@redhat.com>
20992
20993         maint.mk: let po check work in VPATH build
20994         * top/maint.mk (po_file): Allow cfg.mk override.
20995         (sc_po_check): Allow VPATH use.
20996         Reported by Jiri Denemark.
20997
20998 2011-03-16  Jim Meyering  <meyering@redhat.com>
20999
21000         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21001         Before, you would have had to create one .x-sc_ file per rule in order
21002         to exempt offending files.  Now, you may instead use a Make variable --
21003         usually defined in cfg.mk -- whose name identifies the affected rule.
21004         * top/maint.mk (_sc_excl): Define.
21005         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21006         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21007
21008 2011-03-13  Bruno Haible  <bruno@clisp.org>
21009
21010         ignore-value tests: Avoid warnings.
21011         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21012         empty for gcc < 3.4.
21013
21014 2011-03-13  Bruno Haible  <bruno@clisp.org>
21015
21016         passfd: Fix link error on Solaris.
21017         * modules/passfd (Description): Correct.
21018         (Depends-on): Add socketlib.
21019         (Link): New section.
21020         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21021
21022 2011-03-13  Bruno Haible  <bruno@clisp.org>
21023
21024         passfd: Fix link error on AIX 5.2.
21025         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21026
21027 2011-03-13  Bruno Haible  <bruno@clisp.org>
21028
21029         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21030         * lib/sys_socket.in.h: Include <stddef.h>.
21031         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21032         CMSG_FIRSTHDR. Remove unused variable.
21033
21034 2011-03-13  Bruno Haible  <bruno@clisp.org>
21035
21036         passfd: Fix compilation error on OpenBSD.
21037         * lib/passfd.c: Include <sys/uio.h>.
21038
21039 2011-03-13  Bruno Haible  <bruno@clisp.org>
21040
21041         passfd test: Fix warnings.
21042         * tests/test-passfd.c: Include <sys/wait.h>.
21043         (main): Fix typo.
21044
21045 2011-03-13  Bruno Haible  <bruno@clisp.org>
21046
21047         passfd module, part 4, tweaks.
21048         * tests/test-passfd.c: Reorder includes.
21049         (main): Fix perror and printf calls.
21050
21051 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21052
21053         passfd module, part 4.
21054         * modules/passfd-tests: New file.
21055         * tests/test-passfd.c: New file.
21056
21057 2011-03-13  Jim Meyering  <meyering@redhat.com>
21058
21059         Makefile: rely on GNU make; derive syntax-check rule names
21060         Rather than requiring that each sc_ rule be listed as a dependent
21061         of "check", use features of GNU make to derive the list.
21062         * Makefile (syntax-check-rules): Define.
21063         (check): Depend on the new variable, not the hard-coded list.
21064
21065 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21066             Bruno Haible  <bruno@clisp.org>
21067
21068         passfd module, part 3.
21069         * lib/passfd.h (recvfd): Add a flags argument.
21070         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21071         (recvfd): Add a flags argument.
21072         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21073         exists.
21074         * modules/passfd (Depends-on): Add cloexec.
21075         Suggested by Eric Blake.
21076
21077 2011-03-13  Bruno Haible  <bruno@clisp.org>
21078
21079         passfd module, part 2, tweaks.
21080         * modules/passfd (Files): Reorder.
21081         (Depends-on): Remove errno.
21082         (Include): Remove <sys/socket.h>, <sys/un.h>.
21083         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21084         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21085         specification header. Include <sys/socket.h> always. Don't include
21086         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21087         (sendfd): Clarify that it sets errno when it fails.
21088         (recvfd): Fix specification.
21089
21090 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21091
21092         passfd module, part 2.
21093         * modules/passfd: New file.
21094         * lib/passfd.h: New file.
21095         * lib/passfd.c: New file.
21096
21097 2011-03-12  Bruno Haible  <bruno@clisp.org>
21098
21099         wcswidth, mbswidth: Avoid integer overflow.
21100         * lib/wcswidth.c: Include <limits.h>.
21101         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21102         * lib/mbswidth.c: Include <limits.h>.
21103         (mbsnwidth): Avoid 'int' overflow.
21104         Reported by Jim Meyering.
21105
21106 2011-03-12  Bruno Haible  <bruno@clisp.org>
21107
21108         futimens, utimensat: Avoid endless recursion on Solaris 10.
21109         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21110         Solaris.
21111         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21112         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21113
21114 2011-03-11  Jim Meyering  <meyering@redhat.com>
21115
21116         maint.mk: relax a regexp to accommodate other formatting styles
21117         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21118         between "ngettext" and the following "(".
21119
21120 2011-03-11  Pádraig Brady <P@draigBrady.com>
21121
21122         maint.mk: suppress a false positive warning
21123         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21124         diagnostics are marked with ngettext.
21125
21126 2011-03-10  Eric Blake  <eblake@redhat.com>
21127
21128         wchar: add explicit dependencies, for Tru64
21129         * modules/mbmemcasecoll (Depends-on): Add wchar.
21130         * modules/mbtowc (Depends-on): Likewise.
21131         * modules/vasnprintf (Depends-on): Likewise.
21132         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21133         * modules/wctomb (Depends-on): Likewise.
21134         Reported by Peter O'Gorman.
21135
21136 2011-03-08  Bruno Haible  <bruno@clisp.org>
21137
21138         passfd module, part 1, tweaks.
21139         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21140         Improve indentation. Improve AC_MSG_CHECKING messages.
21141         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21142         gl_SOCKET_FAMILIES.
21143
21144 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21145
21146         passfd module, part 1.
21147         * m4/afunix.m4: New file.
21148         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21149         sockets.
21150
21151 2011-03-08  Bruno Haible  <bruno@clisp.org>
21152
21153         regex-quote: New API.
21154         * lib/regex-quote.h: Include <stdbool.h>.
21155         (struct regex_quote_spec): New type.
21156         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21157         New declarations.
21158         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21159         'const struct regex_quote_spec *' argument.
21160         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21161         (pcre_special): New constant.
21162         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21163         New functions.
21164         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21165         'const struct regex_quote_spec *' argument.
21166         * modules/regex-quote (Depends-on): Add stdbool.
21167         * tests/test-regex-quote.c (check): Update for new API. Add test for
21168         anchored results.
21169         * NEWS: Mention the API change.
21170         Reported by Reuben Thomas and Eric Blake.
21171
21172 2011-03-06  Bruno Haible  <bruno@clisp.org>
21173
21174         regex-quote: Fix creation of POSIX extended regular expressions.
21175         * lib/regex-quote.c (ere_special): Add grouping and alternation
21176         operators.
21177
21178 2011-03-05  Bruno Haible  <bruno@clisp.org>
21179
21180         doc: Improve doc regarding autopoint vs. gnulib.
21181         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21182         disable autopoint while running autoreconf.
21183         Suggested by Ralf Wildenhues.
21184
21185 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21186
21187         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21188         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21189
21190 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21191
21192         parse-duration: remove xalloc.h dependency
21193         * lib/parse-duration.c (parse_period): handle NULL return from
21194         strdup instead of calling xstrdup().
21195         * modules/parse-duration: remove "xalloc" dependency
21196
21197 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21198
21199         bootstrap: honor m4_base when running aclocal
21200         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21201
21202 2011-03-02  Jim Meyering  <meyering@redhat.com>
21203
21204         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21205         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21206         on request from Matt Booth.
21207
21208 2011-03-01  Eric Blake  <eblake@redhat.com>
21209
21210         test-link: work on Hurd
21211         * tests/test-link.h (test_link): Hurd rejects linking directories
21212         with EISDIR instead of the POSIX-mandated EPERM.
21213
21214 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21215
21216         stdio: simplify by moving files to printf-posix, sigpipe
21217         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21218         since this symbol is needed only if printf is replaced.
21219         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21220         Require gl_ASM_SYMBOL_PREFIX.
21221         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21222         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21223         (Depends-on): Add 'raise'.
21224         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21225         * modules/stdio (Files): Remove lib/stdio-write.c,
21226         m4/asm-underscore.m4.
21227         (Depends-on): Remove 'raise'.
21228
21229         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21230         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21231         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21232         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21233
21234 2011-02-28  Bruno Haible  <bruno@clisp.org>
21235
21236         localcharset: Assume ANSI C behaviour of free().
21237         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21238         calling free().
21239         Suggested by Simon Josefsson <simon@josefsson.org>.
21240
21241 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21242             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21243             Bruno Haible  <bruno@clisp.org>  (tiny change)
21244
21245         On Cygwin, use /proc file system instead of win32 API.
21246         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21247         Win32 file names.
21248         (DllMain): Simplify by removing Cygwin specific code.
21249         (find_shared_library_fullname): Use Linux specific implementation also
21250         for Cygwin.
21251         (get_shared_library_fullname): Update accordingly.
21252         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21253         Win32 file names.
21254         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21255         Cygwin specific code.
21256
21257 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21258             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21259
21260         Fix OpenMP flag detection for various Fortran compilers.
21261         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21262         OpenMP-conditional compilation construct, to force compile
21263         failure with missing OpenMP flag.
21264         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21265
21266 2011-02-25  Eric Blake  <eblake@redhat.com>
21267
21268         strstr: expand test coverage
21269         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21270         compilation.
21271         * tests/test-memmem.c (main): Duplicate tests.
21272         * tests/test-strcasestr.c (main): Likewise.
21273         * tests/test-c-strcasestr.c (main): Likewise.
21274
21275 2011-02-25  Jim Meyering  <meyering@redhat.com>
21276
21277         maint.mk: detect missing-NL-at-EOF, too
21278         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21279         it also detects when a file lacks a newline at EOF.
21280         (require_exactly_one_NL_at_EOF_): Renamed from
21281         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21282         since people may well have .x-sc_... file names tied to the
21283         existing name.  Suggested by Eric Blake.
21284
21285 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21286
21287         dirname: move m4/dos.m4 functionality into lib/dosname.h
21288
21289         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21290         extracts symbols from it, puts them into config.h; but it's much
21291         easier to use the symbols directly.  filename.h already does this,
21292         but it disagrees with dos.m4 in some respects.  This patch
21293         introduces a different include file dosname.h that packages up
21294         dos.m4, and then later we can work on merging filename.h and
21295         dosname.h.  Applications that need only the easy-to-configure
21296         symbols should consider including dosname.h rather than dirname.h.
21297         * NEWS: Mention incompatible changes.
21298         * m4/dos.m4: Remove.
21299         * lib/dosname.h, modules/dosname: New files.
21300         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21301         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21302         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21303         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21304         Include dosname.h, not dirname.h.
21305         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21306         Include dosname.h, for definitions of symbols like ISSLASH
21307         that used to be in config.h.
21308         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21309         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21310         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21311         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21312         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21313         * modules/rmdir (Files): Likewise.
21314         * modules/stat (Files): Likewise.
21315         * modules/unlink (Files): Likewise.
21316         * modules/dirname-lgpl (Depends-on): Add dosname.
21317         * modules/lstat (Depends-on): Likewise.
21318         * modules/openat (Depends-on): Likewise.
21319         * modules/rmdir (Depends-on): Likewise.
21320         * modules/savewd (Depends-on): Likewise.
21321         * modules/stat (Depends-on): Likewise.
21322         * modules/unlink (Depends-on): Likewise.
21323         * modules/openat (Depends-on): Remove dirname-lgpl.
21324         * modules/savewd (Depends-on): Likewise.
21325         * tests/test-dirname.c: Do not use removed symbols like
21326         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21327         the remaining symbols, e.g., ISSLASH ('\\').
21328
21329 2011-02-25  Eric Blake  <eblake@redhat.com>
21330
21331         strstr: revert patches that introduced bug and pessimization
21332         * lib/str-two-way.h: Add another reference.
21333         (two_way_short_needle, two_way_long_needle): Revert changes from
21334         2011-02-24; they pessimize search speed.
21335         (critical_factorization): Partially revert changes from
21336         2010-06-22; they violate the requirement that the left half of the
21337         needle be smaller than the period of the needle.
21338
21339 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21340
21341         filenamecat: remove unnecessary dependency on dirname-lgpl
21342         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21343         is no direct dependency, just an indirect one via filenamecat-lgpl.
21344
21345         remove: remove unnecessary use of m4/dos.m4
21346         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21347         * modules/remove (FILES): Remove m4/dos.m4.
21348
21349         * lib/openat-proc.c: Don't include dirname.h; not needed.
21350
21351         backupfile: remove unnecessary use of m4/dos.m4
21352         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21353         of its symbols are used by the backupfile code.  backupfile.c does
21354         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21355         for the rare case of programs that want all their backup file
21356         names to live within 8+3 limits, and dos.m4 doesn't address that.
21357         * modules/backupfile (Files): Remove m4/dos.m4.
21358
21359 2011-02-24  Jim Meyering  <meyering@redhat.com>
21360
21361         strstr: fix a bug whereby strstr would mistakenly return NULL
21362         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21363         in period calculation.
21364         (two_way_long_needle): Likewise.
21365         The original problem was reported by Mike Stump in
21366         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21367         Ralf Wildenhues provided the short needle and haystack.
21368         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21369         Add a more involved test to trigger the bug in two_way_long_needle.
21370
21371 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21372
21373         gnulib-tool: remove use of bold display in help screen
21374         * gnulib-tool (func_usage): Do not use bold display anymore in the
21375         help screen.  That was just meant to be a temporary emphasis for a
21376         backward-incompatible change.
21377
21378 2011-02-23  Bruno Haible  <bruno@clisp.org>
21379
21380         Fix misindentation of preprocessor directives.
21381         * lib/argp-namefrob.h: Reindent preprocessor directives.
21382         * lib/getopt_int.h (struct _getopt_data): Likewise.
21383         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21384         * lib/vasnprintf.c (decode_long_double): Likewise.
21385         * tests/test-argmatch.c: Insert blank lines, for clarity.
21386         * tests/test-exclude.c: Likewise.
21387
21388 2011-02-22  Bruno Haible  <bruno@clisp.org>
21389
21390         ioctl: Fix for MacOS X in 64-bit mode.
21391         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21392         value.
21393         Suggested by Eric Blake.
21394         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21395
21396 2011-02-22  Jim Meyering  <meyering@redhat.com>
21397
21398         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21399         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21400         in lib/.
21401
21402 2011-02-22  Eric Blake  <eblake@redhat.com>
21403
21404         maint: avoid any CDPATH issue
21405         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21406
21407         maint: adjust cpp indentation for my modules, as well
21408         * Makefile (sc_cpp_indent_check): Add my name.
21409         * lib/fbufmode.c: Filter through cppi.
21410         * lib/fpurge.c: Likewise.
21411         * lib/freadable.c: Likewise.
21412         * lib/freading.c: Likewise.
21413         * lib/fwritable.c: Likewise.
21414         * lib/fwriting.c: Likewise.
21415         * lib/sigaction.c: Likewise.
21416
21417 2011-02-22  Jim Meyering  <meyering@redhat.com>
21418
21419         maint: adjust cpp indentation to reflect nesting depth
21420         I.e., in a block of code that begins with an unnested "#if",
21421         put one space between the "#" in column 1 and following token.
21422         For example,
21423         -#include <sys/vfs.h>
21424         +# include <sys/vfs.h>
21425         Do this only in .c files that are part of a module I maintain.
21426         * lib/linkat.c: Filter through cppi.
21427         * lib/nanosleep.c: Likewise.
21428         * lib/openat.c: Likewise.
21429         * lib/openat-die.c: Likewise.
21430         * lib/dup3.c: Likewise.
21431         * lib/fchownat.c: Likewise.
21432         * lib/flock.c: Likewise.
21433         * lib/fsync.c: Likewise.
21434         * lib/fts.c: Likewise.
21435         * lib/getpass.c: Likewise.
21436         * lib/gettimeofday.c: Likewise.
21437         * lib/userspec.c: Likewise.
21438         * Makefile (sc_cpp_indent_check): New rule, to check this.
21439
21440 2011-02-22  Bruno Haible  <bruno@clisp.org>
21441
21442         New module 'wctomb'.
21443         * lib/stdlib.in.h (wctomb): New declaration.
21444         * lib/wctomb.c: New file.
21445         * lib/wctomb-impl.h: New file.
21446         * m4/wctomb.m4: New file.
21447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21448         REPLACE_WCTOMB.
21449         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21450         REPLACE_WCTOMB.
21451         * modules/wctomb: New file.
21452         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21453         * doc/posix-functions/wctomb.texi: Mention the new module.
21454         * modules/wctob (Depends-on): Add wctomb.
21455
21456 2011-02-22  Bruno Haible  <bruno@clisp.org>
21457
21458         New module 'mbtowc'.
21459         * lib/stdlib.in.h (mbtowc): New declaration.
21460         * lib/mbtowc.c: New file.
21461         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21462         * m4/mbtowc.m4: New file.
21463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21464         REPLACE_MBTOWC.
21465         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21466         REPLACE_MBTOWC.
21467         * modules/mbtowc: New file.
21468         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21469         * doc/posix-functions/mbtowc.texi: Mention the new module.
21470         * modules/btowc (Depends-on): Add mbtowc.
21471
21472 2011-02-22  Bruno Haible  <bruno@clisp.org>
21473
21474         wcrtomb: Add more tests for native Windows platforms.
21475         * tests/test-wcrtomb-w32-1.sh: New file.
21476         * tests/test-wcrtomb-w32-2.sh: New file.
21477         * tests/test-wcrtomb-w32-3.sh: New file.
21478         * tests/test-wcrtomb-w32-4.sh: New file.
21479         * tests/test-wcrtomb-w32-5.sh: New file.
21480         * tests/test-wcrtomb-w32.c: New file.
21481         * modules/wcrtomb-tests (Files): Add them.
21482         (Makefile.am): Arrange to run these tests.
21483         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21484         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21485
21486 2011-02-20  Bruno Haible  <bruno@clisp.org>
21487
21488         wcrtomb: Enhance test.
21489         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21490
21491 2011-02-20  Bruno Haible  <bruno@clisp.org>
21492
21493         mbrtowc: Tiny optimization.
21494         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21495
21496 2011-02-20  Jim Meyering  <meyering@redhat.com>
21497
21498         test-exclude.c: remove unmatched #endif
21499         * tests/test-exclude.c: Remove stray #endif, left over from
21500         the change of a week ago.
21501
21502 2011-02-19  Jim Meyering  <meyering@redhat.com>
21503
21504         git-version-gen: skip "-dirty" check when appropriate
21505         * build-aux/git-version-gen: Don't run any git commands when the
21506         version string comes from .tarball-version.  Prior to this, we
21507         would run git update-index --refresh even from a just-unpacked
21508         tarball directory, and that could affect a .git/ directory in a
21509         parent of the build directory.  Reported by Mike Frysinger.
21510
21511 2011-02-19  Bruno Haible  <bruno@clisp.org>
21512
21513         unictype/property-byname: Reduce the size of the 'data' segment.
21514         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21515
21516 2011-02-19  Bruno Haible  <bruno@clisp.org>
21517
21518         unictype/scripts: Reduce the size of the 'data' segment.
21519         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21520         '%pic'.
21521         * lib/unictype/scripts_byname.gperf: Regenerated.
21522
21523 2011-02-19  Bruno Haible  <bruno@clisp.org>
21524
21525         stdint: Update documentation.
21526         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21527
21528 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         stdint: omit redundant check for wchar.h
21531         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21532         always tests whether wchar.h exists, so remove the now-redundant test.
21533
21534 2011-02-18  Bruno Haible  <bruno@clisp.org>
21535
21536         stdint: Cut dependency to module 'wchar'.
21537         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21538         include the necessary prerequisites.
21539         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21540         * modules/stdint (Depends-on): Remove wchar.
21541         (Makefile.am): Substitute HAVE_WCHAR_H.
21542         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21543
21544 2011-02-18  Eric Blake  <eblake@redhat.com>
21545
21546         longlong: skip, rather than fail, on cross-compilation
21547         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21548         when cross-compiling; regression from 2011-02-16.
21549
21550 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21551
21552         * NEWS: Mention 2011-02-08 change to stdlib.
21553
21554 2011-02-17  Bruno Haible  <bruno@clisp.org>
21555
21556         getloadavg: Add comments about platforms.
21557         * m4/getloadavg.m4: Add comment.
21558         * lib/getloadavg.c: Likewise.
21559
21560 2011-02-17  Bruno Haible  <bruno@clisp.org>
21561
21562         getloadavg: Fix link error on Solaris 2.6.
21563         * modules/getloadavg (Link): New section.
21564         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21565         linking test-getloadavg.
21566         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21567         getloadavg.
21568
21569 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21570
21571         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21572         It was 'int', but this doesn't match the IRIX 6.5 manual.
21573         Suggested by Bruno Haible in
21574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21575
21576 2011-02-17  Bruno Haible  <bruno@clisp.org>
21577
21578         havelib: Fix comments.
21579         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21580         change.
21581
21582 2011-02-17  Bruno Haible  <bruno@clisp.org>
21583
21584         havelib: Update config.rpath.
21585         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21586
21587 2011-02-17  Bruno Haible  <bruno@clisp.org>
21588
21589         getloadavg test: Add some plausibility checks.
21590         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21591         is improbable.
21592
21593 2011-02-16  Eric Blake  <eblake@redhat.com>
21594
21595         maintainer-makefile: make syntax-check a no-op from tarballs
21596         * top/maint.mk (no-vc-detected): New rule.
21597         (local-checks-available): Use it to avoid hanging if someone tries
21598         'make syntax-check' from a tarball.  Also append to any non-syntax
21599         checks already defined in cfg.mk.
21600
21601 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21602
21603         longlong: tune, particularly for common case of c99
21604
21605         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21606         or running anything if c99, or if unsigned long long int does not
21607         work.  In either case, we know the answer without further tests.
21608         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21609         it at most once, and use its results for both long long int and
21610         unsigned long long int.  This is more likely to be efficient in
21611         the common case where the program wants to check for both long
21612         long int and unsigned long long int.
21613         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21614         since the answer is already known.
21615
21616 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21617
21618         getloadavg: set errno
21619         * lib/getloadavg.c: Set errno when returning -1.  If no other
21620         error number looks appropriate, set it to ENOSYS if the getloadavg
21621         looks like it can't possibly ever work, ENOTSUP otherwise.
21622         Suggested by Bruno Haible in
21623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21624
21625         getloadavg: trim unused parts and speed up 'configure'
21626         * NEWS: Document this.
21627         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21628         always compiled if getloadavg is absent.
21629         Move test code to ...
21630         * tests/test-getloadavg.c: New file, containing previous
21631         contents of test from lib/getloadavg.c.  It also contains
21632         suggestions by Bruno Haible in
21633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21634         * modules/getloadavg-tests: New file.
21635         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21636         Do tests in the same order as they're needed for getloadavg.c.
21637         Omit setgid-related tests that generate symbols KMEM_GROUP,
21638         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21639         Do only the tests that are needed to see whether the system has
21640         getloadavg, moving the other tests into ...
21641         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21642         NLIST_NAME_UNION; nobody should be using it.  Do not define
21643         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21644         relevant, as the user of this module shouldn't care how getloadavg
21645         is implemented.
21646
21647         getloadavg: omit unused var
21648         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21649
21650 2011-02-15  Jim Meyering  <meyering@redhat.com>
21651
21652         doc: update users.txt
21653         * users.txt: Update iwhd's URL.
21654
21655 2011-02-13  Bruno Haible  <bruno@clisp.org>
21656
21657         Consistent macro naming for macros that use GCC __attribute__.
21658         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21659         _ATTRIBUTE_NONNULL_.
21660         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21661         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21662         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21663         ATTRIBUTE_DEPRECATED.
21664         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21665         ATTRIBUTE_NORETURN.
21666         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21667         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21668         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21669         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21670         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21671         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21672         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21673         ATTRIBUTE_SENTINEL.
21674         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21675         ATTRIBUTE_RETURN_CHECK.
21676         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21677         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21678         ATTRIBUTE_NORETURN.
21679         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21680         Reported by Paul Eggert.
21681
21682 2011-02-13  Bruno Haible  <bruno@clisp.org>
21683
21684         Don't interfere with a program's definition of __attribute__.
21685         * lib/argp.h (__attribute__): Remove definition.
21686         (_GL_ATTRIBUTE_FORMAT): New macro.
21687         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21688         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21689         (_GL_ATTRIBUTE_FORMAT): New macro.
21690         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21691         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21692         GCC 3 or newer.
21693         * lib/error.h (__attribute__): Remove definition.
21694         (_GL_ATTRIBUTE_FORMAT): New macro.
21695         (error, error_at_line): Use it.
21696         * lib/hash.h (__attribute__): Remove definition.
21697         (ATTRIBUTE_WUR): Update definition. Define always.
21698         * lib/openat.h (__attribute__): Remove definition.
21699         (ATTRIBUTE_NORETURN): Update definition. Define always.
21700         * lib/sigpipe-die.h (__attribute__): Remove definition.
21701         (ATTRIBUTE_NORETURN): Update definition. Define always.
21702         * lib/vasnprintf.h (__attribute__): Remove definition.
21703         (_GL_ATTRIBUTE_FORMAT): New macro.
21704         (asnprintf, vasnprintf): Use it.
21705         * lib/xalloc.h (__attribute__): Remove definition.
21706         (ATTRIBUTE_NORETURN): Update definition. Define always.
21707         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21708         * lib/xmemdup0.h (__attribute__): Remove definition.
21709         (ATTRIBUTE_NORETURN): Update definition. Define always.
21710         * lib/xprintf.h (__attribute__): Remove definition.
21711         (_GL_ATTRIBUTE_FORMAT): New macro.
21712         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21713         * lib/xstrtol.h (__attribute__): Remove definition.
21714         (ATTRIBUTE_NORETURN): Update definition. Define always.
21715         * lib/xvasprintf.h (__attribute__): Remove definition.
21716         (_GL_ATTRIBUTE_FORMAT): New macro.
21717         (xasprintf, xvasprintf): Use it.
21718         * tests/test-argmatch.c (__attribute__): Remove definition.
21719         (ATTRIBUTE_NORETURN): Update definition. Define always.
21720         * tests/test-exclude.c (__attribute__): Remove definition.
21721         (ATTRIBUTE_NORETURN): Update definition. Define always.
21722         Reported by Paul Eggert.
21723
21724 2011-02-13  Bruno Haible  <bruno@clisp.org>
21725
21726         mbrtowc: Add more tests for native Windows platforms.
21727         * tests/test-mbrtowc-w32-1.sh: New file.
21728         * tests/test-mbrtowc-w32-2.sh: New file.
21729         * tests/test-mbrtowc-w32-3.sh: New file.
21730         * tests/test-mbrtowc-w32-4.sh: New file.
21731         * tests/test-mbrtowc-w32-5.sh: New file.
21732         * tests/test-mbrtowc-w32.c: New file.
21733         * modules/mbrtowc-tests (Files): Add them.
21734         (Makefile.am): Arrange to run these tests.
21735         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21736         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21737
21738 2011-02-13  Bruno Haible  <bruno@clisp.org>
21739
21740         mbrtowc: Work around native Windows bug.
21741         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21742         guess when no suitable locale for testing was found.
21743         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21744
21745 2011-02-13  Bruno Haible  <bruno@clisp.org>
21746
21747         mbsinit: Work around mingw bug.
21748         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21749         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21750         Windows.
21751         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21752
21753 2011-02-13  Bruno Haible  <bruno@clisp.org>
21754
21755         mbsinit: Don't crash for a NULL argument.
21756         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21757         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21758
21759 2011-02-13  Bruno Haible  <bruno@clisp.org>
21760
21761         Don't interfere with a program's definition of __attribute__.
21762         * lib/stdio.in.h (__attribute__): Remove definition.
21763         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21764         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21765         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21766         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21767         * lib/string.in.h (__attribute__): Remove definition.
21768         Reported by Paul Eggert.
21769
21770 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21771
21772         stdlib: don't get in the way of non-GCC __attribute__
21773         See thread starting at
21774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21775         Revert previous stdlib change, installing the following instead:
21776         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21777         to get in the way of a non-GCC compiler that supports __attribute__.
21778         (_GL_ATTRIBUTE_RETURN): New macro.
21779         (_Exit): Use it instead of __attribute__.
21780
21781 2011-02-12  Bruno Haible  <bruno@clisp.org>
21782
21783         quotearg test: Avoid test failure on mingw.
21784         * tests/test-quotearg.sh: Convert the locale identifier from native
21785         Windows syntax to Unix syntax.
21786
21787 2011-02-12  Bruno Haible  <bruno@clisp.org>
21788
21789         setlocale: Prefer gnulib's override over libintl's override.
21790         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21791         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21792         GNULIB_defined_setlocale is set.
21793
21794 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21795
21796         stdlib: support non-GCC __attribute__
21797
21798         Fix a serious and tricky problem encountered when attempting to
21799         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21800         5.5, but it crashed due to memory corruption on Solaris 10 with
21801         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21802         bits that are otherwise zero.  This tagging is optional inside
21803         Emacs but is preferred and is used when __attribute__ ((__aligned
21804         (8))) works, as it does with both recent-enough GCC and with Sun C
21805         5.11.  However, Sun C 5.11 is not GCC and does not #define
21806         __GNUC__ and __GNUC_MINOR__.
21807
21808         When I added the getloadavg module to Emacs, it brought in
21809         stdlib.in.h, which contained this fragment:
21810
21811            #ifndef __attribute__
21812            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21813            #  define __attribute__(Spec)   /* empty */
21814            # endif
21815            #endif
21816
21817         When files that include <stdlib.h> were compiled with Sun C 5.11,
21818         the above code disabled __attribute__ ((__aligned (8))), which
21819         caused variables to not be properly aligned, which eventually led
21820         to the pointer corruption mentioned above.  (This was a bit hard
21821         to diagnose, unfortunately.)
21822
21823         Several "#define __attribute__(X) /* empty */" code snippets need
21824         to be eradicated from Gnulib to work with non-GCC compilers that
21825         support __attribute__.  The Autoconf way to do this is to test for
21826         each kind of attribute that we want support for, and selectively
21827         enable that in source code.
21828
21829         Fix this problem just for stdlib.h, by adding a test for the
21830         __noreturn__ attribute, and change stdlib.in.h to use that test
21831         when needed.  This technique can be easily generalized to the
21832         other *.in.h files and attributes, and a similar technique can be
21833         used for *.h and *.c files.  This patch is enough to solve the
21834         problem for Emacs + getloadavg, and I thought I'd publish it for
21835         feedback before undertaking further, similar fixes in other
21836         modules.
21837
21838         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21839         because it's not needed for stdlib.h.  It merely substitutes the
21840         value directly into stdlib.h.  We may well need to #define it, or
21841         similar symbols, for other modules, but it's nice to also have an
21842         option to not #define it for applications like Emacs that do not
21843         need it.
21844
21845         * lib/stdlib.in.h (__attribute__): Do not #define.
21846         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21847         be defined only if the _Exit module is also used.
21848         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21850         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21851         platforms.
21852         * modules/_Exit (Files): Add m4/attribute.m4.
21853         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21854         * m4/attribute.m4: New file.
21855
21856 2011-02-12  Bruno Haible  <bruno@clisp.org>
21857
21858         wcsrtombs: Work around bug on native Windows.
21859         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21860         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21861         instead of len.
21862         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21863
21864 2011-02-12  Bruno Haible  <bruno@clisp.org>
21865
21866         mbsrtowcs: Work around bug on native Windows.
21867         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21868         against mingw bug.
21869         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21870
21871 2011-02-12  Bruno Haible  <bruno@clisp.org>
21872
21873         Avoid setlocale bugs in tests.
21874         * modules/btowc (Dependencies): Add setlocale.
21875         * modules/c-strcase (Dependencies): Likewise.
21876         * modules/mbmemcasecmp (Dependencies): Likewise.
21877         * modules/mbmemcasecoll (Dependencies): Likewise.
21878         * modules/mbrtowc (Dependencies): Likewise.
21879         * modules/mbscasecmp (Dependencies): Likewise.
21880         * modules/mbscasestr (Dependencies): Likewise.
21881         * modules/mbschr (Dependencies): Likewise.
21882         * modules/mbscspn (Dependencies): Likewise.
21883         * modules/mbsinit (Dependencies): Likewise.
21884         * modules/mbsncasecmp (Dependencies): Likewise.
21885         * modules/mbsnrtowcs (Dependencies): Likewise.
21886         * modules/mbspbrk (Dependencies): Likewise.
21887         * modules/mbspcasecmp (Dependencies): Likewise.
21888         * modules/mbsrchr (Dependencies): Likewise.
21889         * modules/mbsrtowcs (Dependencies): Likewise.
21890         * modules/mbsspn (Dependencies): Likewise.
21891         * modules/mbsstr (Dependencies): Likewise.
21892         * modules/nl_langinfo (Dependencies): Likewise.
21893         * modules/quotearg (Dependencies): Likewise.
21894         * modules/unicase/locale-language (Dependencies): Likewise.
21895         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21896         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21897         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21898         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21899         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21900         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21901         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21902         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21903         * modules/vasnprintf-posix (Dependencies): Likewise.
21904         * modules/wcrtomb (Dependencies): Likewise.
21905         * modules/wcsnrtombs (Dependencies): Likewise.
21906         * modules/wcsrtombs (Dependencies): Likewise.
21907
21908 2011-02-12  Bruno Haible  <bruno@clisp.org>
21909
21910         setlocale: Workaround native Windows bug.
21911         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21912         succeeds but sets LC_CTYPE to "C", report a failure.
21913         * tests/test-setlocale2.sh: New file.
21914         * tests/test-setlocale2.c: New file.
21915         * modules/setlocale-tests (Files): Add the new files.
21916         (Makefile.am): Enable test-setlocale2.sh test.
21917         * doc/posix-functions/setlocale.texi: Mention workaround.
21918
21919 2011-02-11  Bruno Haible  <bruno@clisp.org>
21920
21921         Tests for module 'setlocale'.
21922         * modules/setlocale-tests: New file.
21923         * tests/test-setlocale1.sh: New file.
21924         * tests/test-setlocale1.c: New file.
21925
21926         New module 'setlocale'.
21927         * lib/locale.in.h (setlocale): New declaration.
21928         * lib/setlocale.c: New file, based on
21929         gettext/gettext-runtime/intl/setlocale.c.
21930         * m4/setlocale.m4: New file.
21931         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21932         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21933         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21934         REPLACE_SETLOCALE.
21935         * modules/setlocale: New file.
21936         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21937         * doc/posix-functions/setlocale.texi: Mention the new module.
21938
21939 2011-02-11  Bruno Haible  <bruno@clisp.org>
21940
21941         Prepare for locale dependent tests on mingw.
21942         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21943         because it has the wrong locale encoding.
21944         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21945         French_France.1252 instead of "fr".
21946         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21947         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21948         because it has the wrong locale encoding.
21949         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21950         native Windows, try Turkish_Turkey.65001.
21951         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21952         Chinese_China.54936.
21953
21954         Prepare for locale dependent tests on mingw.
21955         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21956         differently.
21957         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21958         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21960         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21961
21962 2011-02-11  Eric Blake  <eblake@redhat.com>
21963
21964         strptime: avoid compiler warnings
21965         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21966         compiler warnings about dead code.
21967         Reported by Daniel P. Berrange.
21968
21969 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21970
21971         doc: update users.txt
21972         * users.txt: Add rcs.
21973
21974 2011-02-10  John W. Eaton  <jwe@gnu.org>
21975
21976         doc: update users.txt
21977         * users.txt: Add octave.
21978
21979 2011-02-10  Jim Meyering  <meyering@redhat.com>
21980
21981         doc: update users.txt
21982         * users.txt: Add iwhd.
21983
21984 2011-02-09  Bruno Haible  <bruno@clisp.org>
21985
21986         gnulib-tool: Make copyright notice adjustment more robust.
21987         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21988         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21989         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21990         License".
21991         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21992
21993 2011-02-06  Bruno Haible  <bruno@clisp.org>
21994
21995         New module 'towctrans'.
21996         * modules/towctrans: New file.
21997         * lib/wctype.in.h (towctrans): New declaration.
21998         * lib/towctrans.c: New file.
21999         * lib/towctrans-impl.h: New file.
22000         * m4/towctrans.m4: New file.
22001         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22002         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22003         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22004         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22005         * doc/posix-functions/towctrans.texi: Mention the new module.
22006
22007 2011-02-06  Bruno Haible  <bruno@clisp.org>
22008
22009         New module 'wctrans'.
22010         * modules/wctrans: New file.
22011         * lib/wctype.in.h (wctrans): New declaration.
22012         * lib/wctrans.c: New file.
22013         * lib/wctrans-impl.h: New file.
22014         * m4/wctrans.m4: New file.
22015         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22016         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22017         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22018         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22019         * doc/posix-functions/wctrans.texi: Mention the new module.
22020
22021 2011-02-06  Bruno Haible  <bruno@clisp.org>
22022
22023         New module 'iswctype'.
22024         * modules/iswctype: New file.
22025         * lib/wctype.in.h (iswctype): New declaration.
22026         * lib/iswctype.c: New file.
22027         * lib/iswctype-impl.h: New file.
22028         * m4/iswctype.m4: New file.
22029         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22030         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22031         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22032         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22033         * doc/posix-functions/iswctype.texi: Mention the new module and the
22034         HP-UX 11.00 problem.
22035
22036 2011-02-06  Bruno Haible  <bruno@clisp.org>
22037
22038         New module 'wctype'.
22039         * modules/wctype: Change to represent the wctype() substitute.
22040         * lib/wctype.in.h (wctype): New declaration.
22041         * lib/wctype.c: New file.
22042         * lib/wctype-impl.h: New file.
22043         * m4/wctype.m4: New file.
22044         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22045         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22046         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22047         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22048         * doc/posix-functions/wctype.texi: Mention the new module and the
22049         HP-UX 11.00 problem.
22050
22051 2011-02-06  Bruno Haible  <bruno@clisp.org>
22052
22053         wctype-h: Ensure wctype_t and wctrans_t are defined.
22054         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22055         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22056         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22057         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22058         HAVE_WCTRANS_T.
22059         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22060
22061 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22062
22063         flock: fix license typo
22064
22065         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22066         omitted.
22067
22068 2011-02-08  Bruno Haible  <bruno@clisp.org>
22069
22070         Split large sed scripts, for HP-UX sed.
22071         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22072         to avoid HP-UX limit of 99 commands, in the near future.
22073         * modules/stdlib (Makefile.am): Likewise.
22074         * modules/unistd (Makefile.am): Likewise.
22075         * modules/wchar (Makefile.am): Likewise.
22076         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22077         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22078         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22079
22080 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22081             Bruno Haible  <bruno@clisp.org>
22082
22083         stdlib: improve random_r modularization
22084         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22085         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22086         you also need the random_r module to get this material right.
22087         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22088         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22089         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22090
22091 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22092
22093         stdlib: don't depend on stdint
22094         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22095         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22096         be independent of whether stdint.h is needed.
22097         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22098         here, instead of ...
22099         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22100         struct random_data should be using the random_r module, not just
22101         the stdlib module (which wouldn't make sense: what package needs
22102         just struct random_data without also needing random_r?).
22103         * modules/stdlib (Depends-on): Remove stdint.
22104
22105         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22106         See the thread rooted at
22107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22108         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22109         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22110         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22111         __VMS)); previously it was always included (via fcntl--.h).
22112         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22113         hand; this is good enough for load averages.  Also, do not use
22114         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22115         flags directly if available and don't bother otherwise.  (Packages
22116         that need the extra reliability should use the modules that define
22117         these flags on older platforms that lack them.)
22118         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22119         fcntl-safer.
22120
22121 2011-02-08  Jim Meyering  <meyering@redhat.com>
22122
22123         di-set.h, ino-map.h: add multiple-inclusion guard
22124         Technically, the guard is required only for ino-map.h, due to its
22125         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22126         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22127         * lib/ino-map.h: Likewise.
22128
22129 2011-02-06  Bruno Haible  <bruno@clisp.org>
22130
22131         iswblank: Ensure declaration on glibc systems.
22132         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22133         * modules/iswblank (Dependencies): Add 'extensions'.
22134         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22135
22136 2011-02-06  Bruno Haible  <bruno@clisp.org>
22137
22138         New module 'iswblank'.
22139         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22140         * modules/iswblank: New file.
22141         * modules/wctype-h (Files): Remove lib/iswblank.c.
22142         (Makefile.am): Substitute GNULIB_ISWBLANK.
22143         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22144         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22145         (gl_WCTYPE_H_DEFAULTS): New macro.
22146         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22147         * modules/iswblank-tests: New file.
22148         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22149         * tests/test-wctype-h.c (main): Remove iswblank tests.
22150         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22151         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22152         of 'wctype-h'.
22153         * NEWS: Mention the change.
22154         * modules/mbchar (Depends-on): Add iswblank.
22155
22156 2011-02-08  Bruno Haible  <bruno@clisp.org>
22157
22158         di-set tests: Refactor.
22159         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22160         unnecessary includes.
22161         (ASSERT): Remove macro.
22162         (main): Make C90 compliant by avoiding variable declaration after
22163         statement.
22164         * modules/di-set-tests (Files): Add tests/macros.h.
22165
22166 2011-02-08  Bruno Haible  <bruno@clisp.org>
22167
22168         ino-map tests: Refactor.
22169         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22170         unnecessary includes.
22171         (ASSERT): Remove macro.
22172         (main): Make C90 compliant by avoiding variable declaration after
22173         statement.
22174         * modules/ino-map-tests (Files): Add tests/macros.h.
22175
22176 2011-02-08  Jim Meyering  <meyering@redhat.com>
22177
22178         di-set: add "const" to a cast
22179         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22180         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22181
22182 2011-02-06  Bruno Haible  <bruno@clisp.org>
22183
22184         Rename module 'wctype' to 'wctype-h'.
22185         * modules/wctype-h: Renamed from modules/wctype.
22186         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22187         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22188         (Files, Depends-on, Makefile.am): Update.
22189         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22190         (Files, Makefile.am): Update.
22191         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22192         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22193         * doc/posix-headers/wctype.texi: Update.
22194         * doc/posix-functions/iswalnum.texi: Update.
22195         * doc/posix-functions/iswalpha.texi: Update.
22196         * doc/posix-functions/iswblank.texi: Update.
22197         * doc/posix-functions/iswcntrl.texi: Update.
22198         * doc/posix-functions/iswdigit.texi: Update.
22199         * doc/posix-functions/iswgraph.texi: Update.
22200         * doc/posix-functions/iswlower.texi: Update.
22201         * doc/posix-functions/iswprint.texi: Update.
22202         * doc/posix-functions/iswpunct.texi: Update.
22203         * doc/posix-functions/iswspace.texi: Update.
22204         * doc/posix-functions/iswupper.texi: Update.
22205         * doc/posix-functions/iswxdigit.texi: Update.
22206         * doc/posix-functions/towlower.texi: Update.
22207         * doc/posix-functions/towupper.texi: Update.
22208         * NEWS: Mention the change.
22209         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22210         * modules/mbchar (Dependencies): Likewise.
22211         * modules/mbswidth (Dependencies): Likewise.
22212         * modules/quotearg (Dependencies): Likewise.
22213         * modules/regex (Dependencies): Likewise.
22214         * modules/wcscasecmp (Dependencies): Likewise.
22215         * modules/wcsncasecmp (Dependencies): Likewise.
22216         * modules/wcwidth (Dependencies): Likewise.
22217
22218 2011-02-06  Bruno Haible  <bruno@clisp.org>
22219
22220         New module 'wcswidth'.
22221         * modules/wcswidth: New file.
22222         * lib/wchar.in.h (wcswidth): New declaration.
22223         * lib/wcswidth.c: New file.
22224         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22225         * m4/wcswidth.m4: New file.
22226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22228         REPLACE_WCSWIDTH.
22229         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22230         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22231         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22232         * doc/posix-functions/wcswidth.texi: Mention the new module.
22233
22234 2011-02-06  Bruno Haible  <bruno@clisp.org>
22235
22236         New module 'wcstok'.
22237         * modules/wcstok: New file.
22238         * lib/wchar.in.h (wcstok): New declaration.
22239         * lib/wcstok.c: New file.
22240         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22241         * m4/wcstok.m4: New file.
22242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22245         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22246         * doc/posix-functions/wcstok.texi: Mention the new module.
22247
22248 2011-02-06  Bruno Haible  <bruno@clisp.org>
22249
22250         New module 'wcsstr'.
22251         * modules/wcsstr: New file.
22252         * lib/wchar.in.h (wcsstr): New declaration.
22253         * lib/wcsstr.c: New file.
22254         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22255         * m4/wcsstr.m4: New file.
22256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22259         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22260         * doc/posix-functions/wcsstr.texi: Mention the new module.
22261
22262 2011-02-06  Bruno Haible  <bruno@clisp.org>
22263
22264         New module 'wcspbrk'.
22265         * modules/wcspbrk: New file.
22266         * lib/wchar.in.h (wcspbrk): New declaration.
22267         * lib/wcspbrk.c: New file.
22268         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22269         * m4/wcspbrk.m4: New file.
22270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22273         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22274         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22275
22276 2011-02-06  Bruno Haible  <bruno@clisp.org>
22277
22278         New module 'wcsspn'.
22279         * modules/wcsspn: New file.
22280         * lib/wchar.in.h (wcsspn): New declaration.
22281         * lib/wcsspn.c: New file.
22282         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22283         * m4/wcsspn.m4: New file.
22284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22287         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22288         * doc/posix-functions/wcsspn.texi: Mention the new module.
22289
22290 2011-02-06  Bruno Haible  <bruno@clisp.org>
22291
22292         New module 'wcscspn'.
22293         * modules/wcscspn: New file.
22294         * lib/wchar.in.h (wcscspn): New declaration.
22295         * lib/wcscspn.c: New file.
22296         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22297         * m4/wcscspn.m4: New file.
22298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22301         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22302         * doc/posix-functions/wcscspn.texi: Mention the new module.
22303
22304 2011-02-06  Bruno Haible  <bruno@clisp.org>
22305
22306         New module 'wcsrchr'.
22307         * modules/wcsrchr: New file.
22308         * lib/wchar.in.h (wcsrchr): New declaration.
22309         * lib/wcsrchr.c: New file.
22310         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22311         * m4/wcsrchr.m4: New file.
22312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22314         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22315         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22316         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22317
22318 2011-02-06  Bruno Haible  <bruno@clisp.org>
22319
22320         New module 'wcschr'.
22321         * modules/wcschr: New file.
22322         * lib/wchar.in.h (wcschr): New declaration.
22323         * lib/wcschr.c: New file.
22324         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22325         * m4/wcschr.m4: New file.
22326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22329         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22330         * doc/posix-functions/wcschr.texi: Mention the new module.
22331
22332 2011-02-06  Bruno Haible  <bruno@clisp.org>
22333
22334         New module 'wcsdup'.
22335         * modules/wcsdup: New file.
22336         * lib/wchar.in.h (wcsdup): New declaration.
22337         * lib/wcsdup.c: New file.
22338         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22339         * m4/wcsdup.m4: New file.
22340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22343         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22344         * doc/posix-functions/wcsdup.texi: Mention the new module.
22345
22346 2011-02-06  Bruno Haible  <bruno@clisp.org>
22347
22348         New module 'wcsxfrm'.
22349         * modules/wcsxfrm: New file.
22350         * lib/wchar.in.h (wcsxfrm): New declaration.
22351         * lib/wcsxfrm.c: New file.
22352         * lib/wcsxfrm-impl.h: New file.
22353         * m4/wcsxfrm.m4: New file.
22354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22357         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22358         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22359
22360 2011-02-06  Bruno Haible  <bruno@clisp.org>
22361
22362         New module 'wcscoll'.
22363         * modules/wcscoll: New file.
22364         * lib/wchar.in.h (wcscoll): New declaration.
22365         * lib/wcscoll.c: New file.
22366         * lib/wcscoll-impl.h: New file.
22367         * m4/wcscoll.m4: New file.
22368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22371         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22372         * doc/posix-functions/wcscoll.texi: Mention the new module.
22373
22374 2011-02-06  Bruno Haible  <bruno@clisp.org>
22375
22376         New module 'wcsncasecmp'.
22377         * modules/wcsncasecmp: New file.
22378         * lib/wchar.in.h (wcsncasecmp): New declaration.
22379         * lib/wcsncasecmp.c: New file.
22380         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22381         * m4/wcsncasecmp.m4: New file.
22382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22385         HAVE_WCSNCASECMP.
22386         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22387         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22388
22389 2011-02-06  Bruno Haible  <bruno@clisp.org>
22390
22391         New module 'wcscasecmp'.
22392         * modules/wcscasecmp: New file.
22393         * lib/wchar.in.h (wcscasecmp): New declaration.
22394         * lib/wcscasecmp.c: New file.
22395         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22396         * m4/wcscasecmp.m4: New file.
22397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22399         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22400         HAVE_WCSCASECMP.
22401         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22402         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22403
22404 2011-02-05  Bruno Haible  <bruno@clisp.org>
22405
22406         New module 'wcsncmp'.
22407         * modules/wcsncmp: New file.
22408         * lib/wchar.in.h (wcsncmp): New declaration.
22409         * lib/wcsncmp.c: New file.
22410         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22411         * m4/wcsncmp.m4: New file.
22412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22415         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22416         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22417
22418 2011-02-05  Bruno Haible  <bruno@clisp.org>
22419
22420         New module 'wcscmp'.
22421         * modules/wcscmp: New file.
22422         * lib/wchar.in.h (wcscmp): New declaration.
22423         * lib/wcscmp.c: New file.
22424         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22425         * m4/wcscmp.m4: New file.
22426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22429         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22430         * doc/posix-functions/wcscmp.texi: Mention the new module.
22431
22432 2011-02-05  Bruno Haible  <bruno@clisp.org>
22433
22434         New module 'wcsncat'.
22435         * modules/wcsncat: New file.
22436         * lib/wchar.in.h (wcsncat): New declaration.
22437         * lib/wcsncat.c: New file.
22438         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22439         * m4/wcsncat.m4: New file.
22440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22443         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22444         * doc/posix-functions/wcsncat.texi: Mention the new module.
22445
22446 2011-02-05  Bruno Haible  <bruno@clisp.org>
22447
22448         New module 'wcscat'.
22449         * modules/wcscat: New file.
22450         * lib/wchar.in.h (wcscat): New declaration.
22451         * lib/wcscat.c: New file.
22452         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22453         * m4/wcscat.m4: New file.
22454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22457         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22458         * doc/posix-functions/wcscat.texi: Mention the new module.
22459
22460 2011-02-05  Bruno Haible  <bruno@clisp.org>
22461
22462         New module 'wcpncpy'.
22463         * modules/wcpncpy: New file.
22464         * lib/wchar.in.h (wcpncpy): New declaration.
22465         * lib/wcpncpy.c: New file.
22466         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22467         * m4/wcpncpy.m4: New file.
22468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22470         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22471         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22472         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22473
22474 2011-02-05  Bruno Haible  <bruno@clisp.org>
22475
22476         New module 'wcsncpy'.
22477         * modules/wcsncpy: New file.
22478         * lib/wchar.in.h (wcsncpy): New declaration.
22479         * lib/wcsncpy.c: New file.
22480         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22481         * m4/wcsncpy.m4: New file.
22482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22485         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22486         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22487
22488 2011-02-05  Bruno Haible  <bruno@clisp.org>
22489
22490         New module 'wcpcpy'.
22491         * modules/wcpcpy: New file.
22492         * lib/wchar.in.h (wcpcpy): New declaration.
22493         * lib/wcpcpy.c: New file.
22494         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22495         * m4/wcpcpy.m4: New file.
22496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22498         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22499         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22500         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22501
22502 2011-02-05  Bruno Haible  <bruno@clisp.org>
22503
22504         New module 'wcscpy'.
22505         * modules/wcscpy: New file.
22506         * lib/wchar.in.h (wcscpy): New declaration.
22507         * lib/wcscpy.c: New file.
22508         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22509         * m4/wcscpy.m4: New file.
22510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22513         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22514         * doc/posix-functions/wcscpy.texi: Mention the new module.
22515
22516 2011-02-05  Bruno Haible  <bruno@clisp.org>
22517
22518         New module 'wcsnlen'.
22519         * modules/wcsnlen: New file.
22520         * lib/wchar.in.h (wcsnlen): New declaration.
22521         * lib/wcsnlen.c: New file.
22522         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22523         * m4/wcsnlen.m4: New file.
22524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22527         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22528         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22529
22530 2011-02-05  Bruno Haible  <bruno@clisp.org>
22531
22532         New module 'wcslen'.
22533         * modules/wcslen: New file.
22534         * lib/wchar.in.h (wcslen): New declaration.
22535         * lib/wcslen.c: New file.
22536         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22537         * m4/wcslen.m4: New file.
22538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22541         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22542         * doc/posix-functions/wcslen.texi: Mention the new module.
22543
22544 2011-02-05  Bruno Haible  <bruno@clisp.org>
22545
22546         New module 'wmemset'.
22547         * modules/wmemset: New file.
22548         * lib/wchar.in.h (wmemset): New declaration.
22549         * lib/wmemset.c: New file.
22550         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22551         * m4/wmemset.m4: New file.
22552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22554         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22555         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22556         * doc/posix-functions/wmemset.texi: Mention the new module.
22557
22558 2011-02-05  Bruno Haible  <bruno@clisp.org>
22559
22560         New module 'wmemmove'.
22561         * modules/wmemmove: New file.
22562         * lib/wchar.in.h (wmemmove): New declaration.
22563         * lib/wmemmove.c: New file.
22564         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22565         * m4/wmemmove.m4: New file.
22566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22568         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22569         HAVE_WMEMMOVE.
22570         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22571         * doc/posix-functions/wmemmove.texi: Mention the new module.
22572
22573 2011-02-05  Bruno Haible  <bruno@clisp.org>
22574
22575         New module 'wmemcpy'.
22576         * modules/wmemcpy: New file.
22577         * lib/wchar.in.h (wmemcpy): New declaration.
22578         * lib/wmemcpy.c: New file.
22579         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22580         * m4/wmemcpy.m4: New file.
22581         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22582         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22583         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22584         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22585         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22586
22587 2011-02-05  Bruno Haible  <bruno@clisp.org>
22588
22589         New module 'wmemcmp'.
22590         * modules/wmemcmp: New file.
22591         * lib/wchar.in.h (wmemcmp): New declaration.
22592         * lib/wmemcmp.c: New file.
22593         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22594         * m4/wmemcmp.m4: New file.
22595         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22596         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22597         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22598         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22599         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22600
22601 2011-02-07  Jim Meyering  <meyering@redhat.com>
22602
22603         di-set, ino-map: new modules, from coreutils
22604         * lib/di-set.c: New file.
22605         * lib/di-set.h: Likewise.
22606         * lib/ino-map.c: Likewise.
22607         * lib/ino-map.h: Likewise.
22608         * modules/di-set: Likewise.
22609         * modules/di-set-tests: Likewise.
22610         * modules/ino-map: Likewise.
22611         * modules/ino-map-tests: Likewise.
22612         * tests/test-di-set.c: Likewise.
22613         * tests/test-ino-map.c: Likewise.
22614
22615 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         getloadavg: merge minor changes from Emacs
22618
22619         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22620         (getloadavg): Use memset, not bzero.
22621
22622         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22623         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22624         clash (bug#86).
22625
22626 2010-11-14  Bruno Haible  <bruno@clisp.org>
22627
22628         Allow multiple gnulib generated replacements to coexist.
22629         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22630         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22631         * lib/langinfo.in.h (nl_item): Likewise.
22632         * lib/math.in.h (_NaN, NAN): Likewise.
22633         * lib/netdb.in.h (struct addrinfo): Likewise.
22634         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22635         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22636         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22637         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22638         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22639         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22640         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22641         pthread_mutexattr_init, pthread_mutexattr_settype,
22642         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22643         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22644         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22645         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22646         * lib/sched.in.h (struct sched_param): Likewise.
22647         * lib/se-selinux.in.h (security_class_t, security_context_t,
22648         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22649         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22650         lsetfilecon, fsetfilecon, security_check_context,
22651         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22652         Likewise.
22653         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22654         Likewise.
22655         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22656         _gl_function_taking_int_returning_void_t, union sigval,
22657         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22658         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22659         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22660         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22661         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22662         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22663         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22664         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22665         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22666         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22667         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22668         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22669         socklen_t, rpl_fd_isset): Likewise.
22670         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22671         * lib/sys_time.in.h (struct timeval): Likewise.
22672         * lib/sys_times.in.h (struct tms): Likewise.
22673         * lib/sys_utsname.in.h (struct utsname):
22674         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22675         * lib/unistd.in.h (getpagesize): Likewise.
22676         * lib/wchar.in.h (mbstate_t): Likewise.
22677         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22678         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22679         towlower, towupper): Likewise.
22680         Reported by Sam Steingold <sds@gnu.org>.
22681
22682 2011-02-05  Eric Blake  <eblake@redhat.com>
22683
22684         unsetenv: work around Haiku issues
22685         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22686         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22687
22688 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22689
22690         libposix: avoid calling error() within libposix
22691         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22692         is defined.
22693
22694 2011-02-05  Eric Blake  <eblake@redhat.com>
22695
22696         strerror_r-posix: port to cygwin
22697         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22698         implementation.
22699         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22700         * tests/test-strerror_r.c (main): Fix test.
22701         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22702         issue.
22703
22704 2011-02-05  Bruno Haible  <bruno@clisp.org>
22705
22706         New module 'wmemchr'.
22707         * modules/wmemchr: New file.
22708         * lib/wchar.in.h (wmemchr): New declaration.
22709         * lib/wmemchr.c: New file.
22710         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22711         * m4/wmemchr.m4: New file.
22712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22714         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22715         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22716         * doc/posix-functions/wmemchr.texi: Mention the new module.
22717
22718 2011-02-04  Eric Blake  <eblake@redhat.com>
22719
22720         fdopendir: detect FreeBSD bug
22721         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22722         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22723
22724 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22725
22726         stdbool: do not define HAVE_STDBOOL_H
22727         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22728         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22729         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22730         imported from the latest Autoconf git.  It was motivated by Emacs,
22731         which uses gnulib but does not need HAVE_STDBOOL_H.
22732
22733 2011-02-04  Bruno Haible  <bruno@clisp.org>
22734
22735         wcsnrtombs: Prepare for new module wwcsnrtombs.
22736         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22737         * lib/wcsnrtombs.c: Include it.
22738         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22739
22740         wcsrtombs: Prepare for new module wwcsrtombs.
22741         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22742         * lib/wcsrtombs.c: Include it.
22743         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22744
22745         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22746         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22747         * lib/mbsnrtowcs.c: Include it.
22748         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22749
22750         mbsrtowcs: Prepare for new module mbsrtowwcs.
22751         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22752         * lib/mbsrtowcs.c: Include it.
22753         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22754
22755 2011-02-04  Bruno Haible  <bruno@clisp.org>
22756
22757         vasnprintf: Reduce use of malloc for small format strings.
22758         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22759         (arguments): Add room for the first 7 arguments.
22760         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22761         (char_directives, u8_directives, u16_directives, u32_directives): Add
22762         room for the first 7 directives.
22763         * lib/printf-parse.c: Include <string.h>.
22764         (PRINTF_PARSE): Change memory handling code so that it uses the first
22765         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22766         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22767         Reported by Pádraig Brady <P@draigbrady.com>.
22768
22769 2011-01-31  Eric Blake  <eblake@redhat.com>
22770
22771         dup2: work around Haiku bug
22772         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22773         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22774         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22775         * tests/test-dup2.c (main): Enhance test.
22776
22777 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22778
22779         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22780         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22781         declared by eglibc 2.11.2.
22782         * lib/stdio.in.h: Likewise.
22783
22784 2011-01-31  Eric Blake  <eblake@redhat.com>
22785
22786         ignore-value: add missing test dependency
22787         * tests/test-ignore-value.c: Revert previous change; stdio.h
22788         provides off_t.
22789         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22790
22791 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22792
22793         mktime: clarify long_int width checking
22794         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22795         the top level, to make it clearer that the assumption about
22796         long_int width is being checked.  See
22797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22798
22799 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22800
22801         ignore-value: Fix self-test.
22802         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22803
22804 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22805
22806         TYPE_MAXIMUM: avoid theoretically undefined behavior
22807         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22808         negative number, which the C Standard says has undefined behavior.
22809         In practice this is not a problem, but might as well do it by the book.
22810         Reported by Rich Felker and Eric Blake; see
22811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22812         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22813         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22815         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22816         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22817         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22818
22819         mktime: #undef mktime before #defining it
22820         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22821
22822         mktime: systematically normalize tm_isdst comparisons
22823         * lib/mktime.c (isdst_differ): New function.
22824         (__mktime_internal): Use it systematically for all isdst comparisons.
22825         This completes the fix for libc BZ #6723, and removes the need for
22826         normalizing tm_isdst.  See
22827         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22828         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22829
22830         mktime: fix some integer overflow issues and sidestep the rest
22831
22832         This was prompted by a bug report by Benjamin Lindner for MinGW
22833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22834         His bug is due to signed integer overflow (0 - INT_MIN), and I
22835         I scanned through mktime.c looking for other integer overflow
22836         problems, fixing all the bugs I found.
22837
22838         Although the C Standard says the resulting code is still not safe
22839         in the presence of integer overflow, in practice it should be good
22840         enough for all real-world two's-complement implementations, except
22841         for debugging environments that deliberately trap on integer
22842         overflow (e.g., gcc -ftrapv).
22843
22844         * lib/mktime.c (WRAPV): New macro.
22845         (SHR): Also check that long_int and time_t shift right in the
22846         usual way, before using the fast-but-unportable method.
22847         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22848         used.  The code already assumed two's complement, so there's
22849         no need to test for alternatives.  All uses removed.
22850         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22851         the C standard.  Problem reported by Rich Felker in
22852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22853         (twos_complement_arithmetic): Also check long_int and time_t.
22854         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22855         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22856         (__mktime_internal): Avoid integer overflow with unary subtraction
22857         in two instances where -1 - X is an adequate replacement for -X,
22858         since the calculations are approximate.
22859
22860 2011-01-29  Eric Blake  <eblake@redhat.com>
22861
22862         mktime: avoid infinite loop
22863         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22864         type; behavior is still undefined but portable to all known targets.
22865         Reported by Rich Felker.
22866
22867 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22868
22869         rename, unlink, same-inode: Relicense.
22870         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22871         * modules/unlink (License): Likewise.
22872         * modules/same-inode (License): Likewise.
22873
22874 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22875
22876         mktime: avoid problems on NetBSD 5 / i386
22877         * lib/mktime.c (long_int): New type.  This works around a problem
22878         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22879         but time_t is 64 bits, and where I expect the existing code is
22880         wrong in some cases.
22881         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22882         (ydhms_diff): Bring back the compile-time check for wide-enough
22883         year and yday.
22884
22885         mktime: fix misspelling in comment
22886         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22887         This merges all recent glibc changes of importance.
22888
22889 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22890
22891         move-if-change: cope with concurrent mv of identical file.
22892         * build-aux/move-if-change (CMPPROG): Accept environment
22893         variable as an override for `cmp'.
22894         (usage): Document CMPPROG.
22895         Adjust comparison to drop stdout.  Cope with failure of mv if
22896         the target file exists and is identical to the source, for
22897         parallel builds.
22898         Report from H.J. Lu against binutils in PR binutils/12283.
22899
22900 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22901
22902         * users.txt: Mention sharutils.
22903
22904 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22905
22906         * users.txt: Mention OATH Toolkit.
22907
22908 2011-01-27  Bruno Haible  <bruno@clisp.org>
22909
22910         Prepare for supporting FreeBSD 10.
22911         * build-aux/config.libpath: Remove handling of freebsd1*.
22912
22913 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22914
22915         Prepare for supporting FreeBSD 10.
22916         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22917         match FreeBSD 10.0.
22918
22919 2011-01-27  Bruno Haible  <bruno@clisp.org>
22920
22921         vma-iter, get-rusage-as: Add OpenBSD support.
22922         * modules/vma-iter (configure.ac): Test for mquery.
22923         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22924         * lib/vma-iter.c: Include <sys/mman.h>.
22925         (vma_iterate): Add an implementation based on mquery().
22926         * lib/resource-ext.h (get_rusage_as): Update comments.
22927         * lib/get-rusage-as.c: Likewise.
22928         * lib/get-rusage-data.c: Likewise.
22929
22930 2011-01-26  Karl Berry  <karl@gnu.org>
22931
22932         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22933         variables to make it easier to override the makeinfo program used.
22934
22935 2011-01-26  Eric Blake  <eblake@redhat.com>
22936
22937         fcntl: work around Haiku F_DUPFD bugs
22938         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22939         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22940         cloexec bit on duplication.
22941         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22942
22943 2011-01-26  Bruno Haible  <bruno@clisp.org>
22944
22945         Enable memory leak tests on AIX.
22946         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22947         * tests/test-fprintf-posix3.c (main): Likewise.
22948
22949 2011-01-26  Bruno Haible  <bruno@clisp.org>
22950
22951         Tests for module 'get-rusage-data'.
22952         * modules/get-rusage-data-tests: New file.
22953         * tests/test-get-rusage-data.c: New file.
22954
22955         New module 'get-rusage-data'.
22956         * lib/resource-ext.h (get_rusage_data): New declaration.
22957         * lib/get-rusage-data.c: New file.
22958         * modules/get-rusage-data: New file.
22959
22960 2011-01-25  Bruno Haible  <bruno@clisp.org>
22961
22962         get-rusage-as: Allow for easier testing.
22963         * lib/resource-ext.h (get_rusage_as): Add comment.
22964         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22965         (main): New function for interactive testing.
22966
22967 2011-01-25  Bruno Haible  <bruno@clisp.org>
22968
22969         vma-iter: Treat Haiku like BeOS.
22970         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22971         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22972
22973 2011-01-25  Eric Blake  <eblake@redhat.com>
22974
22975         c-stack: fix regression on cygwin when libsigsegv is present
22976         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22977
22978 2011-01-24  Bruno Haible  <bruno@clisp.org>
22979
22980         vma-iter: Avoid empty intervals.
22981         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22982         on an empty interval.
22983
22984 2011-01-24  Jim Meyering  <meyering@redhat.com>
22985
22986         u64: remove unnecessary #include
22987         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22988
22989 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22990
22991         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22992         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22993
22994 2011-01-23  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'vma-iter'.
22997         * lib/vma-iter.h: New file.
22998         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22999         * modules/vma-iter: New file.
23000         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23001         for get_rusage_as_via_iterator.
23002         (vma_iterate_callback): New function.
23003         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23004         * modules/get-rusage-as (Depends-on): Add vma-iter.
23005
23006 2011-01-23  Bruno Haible  <bruno@clisp.org>
23007
23008         uninorm: Tweak includes.
23009         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23010         Reported by Jim Meyering.
23011
23012 2011-01-23  Bruno Haible  <bruno@clisp.org>
23013
23014         get-rusage-as: Improve on NetBSD.
23015         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23016         /proc, like on FreeBSD.
23017
23018 2011-01-23  Jim Meyering  <meyering@redhat.com>
23019
23020         xreadlink.h: remove unnecessary #include
23021         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23022
23023         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23024         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23025
23026 2011-01-23  Bruno Haible  <bruno@clisp.org>
23027
23028         get-rusage-as: Fix bug.
23029         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23030         original limit when aborting the first loop.
23031
23032 2011-01-23  Bruno Haible  <bruno@clisp.org>
23033
23034         wctype: Ensure valid C syntax.
23035         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23036         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23037
23038 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23039
23040         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23041         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23042         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23043         as they are needed only for configure's test case.
23044         This removes two unnecessary symbols from config.h.
23045
23046         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23047         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23049         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23050         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23051         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23052         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23053         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23054         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23055         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23056         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23058         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23059         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23060         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23061         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23062         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23063         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23064
23065 2011-01-21  Eric Blake  <eblake@redhat.com>
23066
23067         maintainer-makefile: work with older git for submodule check
23068         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23069         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23070         Reported by Matthias Bolte.
23071
23072         bootstrap: minor portability fixes
23073         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23074         (usage): Omit leading capital and trailing . on help phrases, per
23075         GNU Coding Standards.
23076         (check_versions, top level): Prefix messages with script name.
23077
23078 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23079
23080         bootstrap: support --no-git option
23081         * build-aux/bootstrap: Add --no-git option, to be used when
23082         --gnulib-srcdir points to the exact desired checkout.
23083
23084 2011-01-21  Eric Blake  <eblake@redhat.com>
23085
23086         strerror_r-posix: work with glibc 2.13
23087         * lib/strerror_r.c (strerror_r): Fix return type.
23088
23089 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23090             Bruno Haible  <bruno@clisp.org>
23091
23092         uN_strstr: New unit tests.
23093         * modules/unistr/u8-strstr-tests: New file.
23094         * modules/unistr/u16-strstr-tests: New file.
23095         * modules/unistr/u32-strstr-tests: New file.
23096         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23097         * tests/unistr/test-u8-strstr.c: New file.
23098         * tests/unistr/test-u16-strstr.c: New file.
23099         * tests/unistr/test-u32-strstr.c: New file.
23100
23101 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23102             Bruno Haible  <bruno@clisp.org>
23103
23104         Make uN_strstr functions O(n) worst-case.
23105         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23106         16-bit and 32-bit unit cases, use the unibyte algorithm from
23107         lib/mbsstr.c.
23108         * lib/unistr/u8-strstr.c: Include <string.h>.
23109         (UNIT_IS_UINT8_T): New macro.
23110         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23111         (U_STRLEN, U_STRNLEN): New macros.
23112         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23113         (U_STRLEN, U_STRNLEN): New macros.
23114         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23115         (configure.ac): Update required libunistring version.
23116         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23117         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23118         malloca.
23119         (configure.ac): Update required libunistring version.
23120         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23121         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23122         malloca.
23123         (configure.ac): Update required libunistring version.
23124
23125 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23126             Bruno Haible  <bruno@clisp.org>
23127
23128         Prepare for faster uN_strstr functions.
23129         * lib/str-kmp.h: Support definable UNITs.
23130         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23131         needle_len argument.
23132         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23133         * lib/mbscasestr.c (mbscasestr): Likewise.
23134
23135 2011-01-21  Pádraig Brady <P@draigBrady.com>
23136
23137         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23138         * tests/test-malloca.c (main): Unset the environment variable
23139         to greatly speed up the test.
23140         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23141         * modules/malloca-tests: Depend on unsetenv.
23142
23143 2011-01-21  Pádraig Brady <P@draigBrady.com>
23144
23145         ignore-value: remove stdint dependency
23146         * lib/ignore-value.h: Remove <stdint.h>
23147         * modules/ignore-value: Remove stdint dependency.
23148
23149 2011-01-21  Jim Meyering  <meyering@redhat.com>
23150
23151         maint.mk: adjust variable name to be consistent with other gl_ vars
23152         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23153         to be lower case.
23154
23155 2011-01-20  Jim Meyering  <meyering@redhat.com>
23156
23157         maint.mk: make "check" depend on public-submodule-commit by default
23158         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23159
23160 2011-01-20  Bruno Haible  <bruno@clisp.org>
23161
23162         mbfile, mbiter: Complete change from 2008-12-21.
23163         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23164         * m4/mbiter.m4 (gl_MBITER): Likewise.
23165
23166 2011-01-20  Jim Meyering  <meyering@redhat.com>
23167
23168         init.sh: insert space between each function name and "()"
23169         * tests/init.sh: Make it a little easier to see that a function's
23170         name is "warn_", and not "warn" when looking at the first part of
23171         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23172
23173 2011-01-20  Jim Meyering  <meyering@redhat.com>
23174
23175         mountlist: clean up code formatting
23176         * lib/mountlist.c (read_file_system_list): Split a long line,
23177         correct bracing style, use NULL in place of "(struct statfs *)0",
23178         don't parenthesize return value, add spaces around "=" and after
23179         ";-in-for-stmt".
23180
23181 2011-01-14  Markus Duft <mduft@gentoo.org>
23182
23183         mountlist: add support for Interix
23184         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23185         Apply statvfs to all entries of /dev/fs.
23186         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23187         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23188
23189 2011-01-20  Jim Meyering  <meyering@redhat.com>
23190
23191         maint.mk: improve the public-submodule-commit rule
23192         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23193         to suppress printing of its commands... unless V=1.
23194         Add git submodule's --quiet option to suppress printing of e.g.,
23195         "Entering gnulib" output.
23196         "cd" into $(srcdir) before running git submodule.
23197
23198 2011-01-20  Bruno Haible  <bruno@clisp.org>
23199
23200         include_next: Fix bug introduced on 2011-01-18.
23201         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23202         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23203         ac_cv_header_... variable if the second argument is not 'check'.
23204         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23205         gl_NEXT_HEADERS_INTERNAL.
23206
23207 2011-01-20  Bruno Haible  <bruno@clisp.org>
23208
23209         Allow the user to avoid the GNULIB_TEST_* macros.
23210         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23211         Suggested by Paul Eggert.
23212
23213 2011-01-14  Jim Meyering  <meyering@redhat.com>
23214
23215         bootstrap: avoid failure when there is no .gitmodules file
23216         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23217         has been assigned to, even when its value is the empty string.
23218         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23219         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23220         Reported by John W. Eaton <jwe@gnu.org>.
23221
23222 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23223
23224         assume <ctype.h>, ..., <time.h> exist
23225         For years gnulib has been assuming the existence of the headers
23226         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23227         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23228         them, since they don't appear to be needed.
23229         * README (Portability guidelines): Document this.
23230         * lib/flock.c: Assume <fcntl.h> exists.
23231         * lib/regex_internal.h: Assume <locale.h> exists.
23232         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23233         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23234         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23235         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23236         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23237         * m4/regex.m4 (gl_REGEX): Likewise.
23238         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23239         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23240         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23241         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23242         * tests/test-argp.c: Likewise.
23243         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23244
23245         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23246         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23247         AA_APPLE_UNIVERSAL_BUILD.  See
23248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23249         * NEWS: Document this.
23250
23251 2011-01-19  Eric Blake  <eblake@redhat.com>
23252
23253         c-stack: assume stack overflow if SA_SIGINFO unsupported
23254         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23255         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23256         sigaction will work.
23257         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23258         behavior match Linux.
23259         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23260
23261         stdbool-tests: accommodate Haiku
23262         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23263
23264         binary-io: fix O_TEXT on Haiku
23265         * modules/binary-io (Depends-on): Add fcntl-h.
23266         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23267         than blindly undefining O_TEXT.
23268         Reported by Scott McCreary.
23269
23270 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23271
23272         include_next: do not check for standard headers like stddef.h
23273
23274         I found this problem when modifying Emacs to use gnulib.
23275         I noticed that it added HAVE_STDDEF_H to config.h, even though
23276         gnulib always assumes <stddef.h> exists as per README and this
23277         symbol is unnecessary.
23278         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23279         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23280         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23281         faster for headers like stddef.h that are known to exist.
23282         (gl_CHECK_NEXT_HEADERS): Use it.
23283         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23284         rather than gl_CHECK_NEXT_HEADERS.
23285         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23286         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23287
23288 2011-01-18  Eric Blake  <eblake@redhat.com>
23289
23290         ansi-c++-opt: skip C++ dependency style if C++ is unused
23291         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23292         tests when we know C++ compilation is not desired.
23293         Reported by Scott McCreary.
23294
23295 2011-01-18  Bruno Haible  <bruno@clisp.org>
23296
23297         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23298         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23299         (main): Perform test also when getrlimit and setrlimit don't exist or
23300         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23301         limiting the address space size using setrlimit, compare the address
23302         space size before and after the the test.
23303         * tests/test-dprintf-posix2.c: Likewise.
23304         * tests/test-fprintf-posix3.sh: Update skip messages.
23305         * tests/test-dprintf-posix2.sh: Likewise.
23306         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23307         * modules/dprintf-posix-tests (Depends-on): Likewise.
23308         Reported by Bruce Korb <bkorb@gnu.org> and
23309         Gary V. Vaughan <gary@gnu.org>.
23310
23311 2011-01-18  Bruno Haible  <bruno@clisp.org>
23312
23313         get-rusage-as: Improvement for Cygwin.
23314         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23315         areas that are merely reserved.
23316
23317 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23318
23319         strftime: remove dependencies on multibyte modules
23320
23321         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23322         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23323         only if __osf__ is defined, and I suspect OSF doesn't need these
23324         other modules.  If my guess is wrong, we'll need to come up with a
23325         variant of strftime that doesn't need the multibyte modules.
23326
23327         I discovered this problem when attempting modify Emacs to use the
23328         strftime module.  With the previous gnulib, this caused Emacs to
23329         need 31 new files, ranging from lib/config.charset to
23330         m4/wint_t.m4.  This was overkill and I expect would be offputting
23331         to the Emacs maintainers.  After this change, only 6 new files are
23332         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23333         stdbool.m4, and tm_gmtoff.m4.
23334
23335         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23336         Suggested by Bruno Haible in
23337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23338         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23339         and do not check for wchar.h.
23340         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23341         (Depends-on): Remove mbrlen, mbsinit, wchar.
23342
23343 2011-01-18  Bruno Haible  <bruno@clisp.org>
23344
23345         Tests for module 'get-rusage-as'.
23346         * modules/get-rusage-as-tests: New file.
23347         * tests/test-get-rusage-as.c: New file.
23348
23349         New module 'get-rusage-as'.
23350         * modules/get-rusage-as: New file.
23351         * lib/resource-ext.h: New file.
23352         * lib/get-rusage-as.c: New file.
23353
23354 2011-01-17  Eric Blake  <eblake@redhat.com>
23355
23356         sigaction: relax license from LGPLv3+ to LGPLv2+
23357         * modules/sigaction (License): Relax to LGPLv2+.
23358
23359 2011-01-14  Bruno Haible  <bruno@clisp.org>
23360
23361         filemode: Make function declarations usable in C++ mode.
23362         * lib/filemode.h: Enclose function declarations in extern "C" block.
23363         Reported by John W. Eaton <jwe@gnu.org>.
23364
23365 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23366
23367         save-cwd: no longer include "xgetcwd.h"
23368         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23369         This avoids a compilation failure in projects that use save-cwd
23370         without also using the xgetcwd module.
23371
23372 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23373
23374         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23375         This is so that a program like Emacs, which needs only dtoastr,
23376         does not have to bother with distributing and compiling ftoastr
23377         and ldtoastr.
23378         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23379         * modules/dtoastr, modules/ldtoastr: New files.
23380         * modules/ftoastr: Now works just for 'float'.
23381         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23382         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23383         dtoastr.c, ldtoastr.c.
23384
23385 2011-01-11  Jim Meyering  <meyering@redhat.com>
23386
23387         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23388         There is no need to work around the lack of the fchdir function,
23389         since gnulib can now provide a replacement when required.
23390         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23391         * modules/save-cwd (Depends-on): Add fchdir.
23392
23393 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23394
23395         openat, save-cwd: avoid xmalloc
23396
23397         This removes a direct (but undocumented) dependency of openat on
23398         xalloc, along with an indirect dependency via save-cwd.  It also
23399         removes a dependency of save-cwd on xgetcwd, and thereby
23400         indirectly on xalloc.  This change causes the openat substitute
23401         to fall back on save_cwd when memory is tight, and for save_cwd to
23402         fail instead of dying when memory is tight, but that's good enough.
23403         Problem and initial idea for fix reported by Bastien Roucaries in
23404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23405
23406         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23407         xalloc.h (for xmalloc).
23408         (openat_proc_name): Use malloc, not xmalloc.
23409         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23410         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23411
23412         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23413         This avoids heap allocation for file names whose lengths are in
23414         the range 512..1023, with the upper bound increasing to at most
23415         4031 depending on the platform's PATH_MAX.  (We do not want
23416         pathmax.h here as it might supply a non-constant PATH_MAX.)
23417         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23418         Perhaps they should be moved to malloca.h?
23419         (OPENAT_BUFFER_SIZE): Use them.
23420
23421 2011-01-10  Bruno Haible  <bruno@clisp.org>
23422
23423         doc: Update users.txt.
23424         * users.txt: Add recutils.
23425
23426 2011-01-09  Karl Berry  <karl@gnu.org>
23427
23428         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23429
23430         * doc/configmake.texi: New file.
23431         * doc/gnulib.texi: Include it.
23432         * modules/configmake: Move documentation from here.
23433
23434 2011-01-09  Bruno Haible  <bruno@clisp.org>
23435
23436         Update to Unicode 6.0.0.
23437         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23438         (get_lbp): Update for Unicode 6.0.0.
23439         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23440         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23441         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23442         U+11001, U+11038..U+11046. Remove U+06DE.
23443         (uc_width): Fix bounds of planes.
23444         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23445         lib/uniwidth/width.c.
23446         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23447         trailing whitespace removed.
23448         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23449         without comments, but with the original copyright notice.
23450         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23451         * lib/unicase/ignorable.h: Likewise.
23452         * lib/unicase/tocasefold.h: Likewise.
23453         * lib/unicase/tolower.h: Likewise.
23454         * lib/unicase/totitle.h: Likewise.
23455         * lib/unicase/toupper.h: Likewise.
23456         * lib/unictype/bidi_of.h: Likewise.
23457         * lib/unictype/blocks.h: Likewise.
23458         * lib/unictype/categ_C.h: Likewise.
23459         * lib/unictype/categ_Cn.h: Likewise.
23460         * lib/unictype/categ_L.h: Likewise.
23461         * lib/unictype/categ_Ll.h: Likewise.
23462         * lib/unictype/categ_Lm.h: Likewise.
23463         * lib/unictype/categ_Lo.h: Likewise.
23464         * lib/unictype/categ_Lu.h: Likewise.
23465         * lib/unictype/categ_M.h: Likewise.
23466         * lib/unictype/categ_Mc.h: Likewise.
23467         * lib/unictype/categ_Me.h: Likewise.
23468         * lib/unictype/categ_Mn.h: Likewise.
23469         * lib/unictype/categ_N.h: Likewise.
23470         * lib/unictype/categ_Nd.h: Likewise.
23471         * lib/unictype/categ_No.h: Likewise.
23472         * lib/unictype/categ_P.h: Likewise.
23473         * lib/unictype/categ_Po.h: Likewise.
23474         * lib/unictype/categ_S.h: Likewise.
23475         * lib/unictype/categ_Sc.h: Likewise.
23476         * lib/unictype/categ_Sk.h: Likewise.
23477         * lib/unictype/categ_Sm.h: Likewise.
23478         * lib/unictype/categ_So.h: Likewise.
23479         * lib/unictype/categ_of.h: Likewise.
23480         * lib/unictype/combining.h: Likewise.
23481         * lib/unictype/ctype_alnum.h: Likewise.
23482         * lib/unictype/ctype_alpha.h: Likewise.
23483         * lib/unictype/ctype_graph.h: Likewise.
23484         * lib/unictype/ctype_lower.h: Likewise.
23485         * lib/unictype/ctype_print.h: Likewise.
23486         * lib/unictype/ctype_punct.h: Likewise.
23487         * lib/unictype/ctype_upper.h: Likewise.
23488         * lib/unictype/decdigit.h: Likewise.
23489         * lib/unictype/digit.h: Likewise.
23490         * lib/unictype/numeric.h: Likewise.
23491         * lib/unictype/pr_alphabetic.h: Likewise.
23492         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23493         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23494         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23495         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23496         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23497         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23498         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23499         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23500         * lib/unictype/pr_case_ignorable.h: Likewise.
23501         * lib/unictype/pr_cased.h: Likewise.
23502         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23503         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23504         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23505         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23506         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23507         * lib/unictype/pr_combining.h: Likewise.
23508         * lib/unictype/pr_composite.h: Likewise.
23509         * lib/unictype/pr_currency_symbol.h: Likewise.
23510         * lib/unictype/pr_decimal_digit.h: Likewise.
23511         * lib/unictype/pr_deprecated.h: Likewise.
23512         * lib/unictype/pr_format_control.h: Likewise.
23513         * lib/unictype/pr_grapheme_base.h: Likewise.
23514         * lib/unictype/pr_grapheme_extend.h: Likewise.
23515         * lib/unictype/pr_grapheme_link.h: Likewise.
23516         * lib/unictype/pr_id_continue.h: Likewise.
23517         * lib/unictype/pr_id_start.h: Likewise.
23518         * lib/unictype/pr_ideographic.h: Likewise.
23519         * lib/unictype/pr_lowercase.h: Likewise.
23520         * lib/unictype/pr_math.h: Likewise.
23521         * lib/unictype/pr_numeric.h: Likewise.
23522         * lib/unictype/pr_other_alphabetic.h: Likewise.
23523         * lib/unictype/pr_other_id_continue.h: Likewise.
23524         * lib/unictype/pr_other_math.h: Likewise.
23525         * lib/unictype/pr_punctuation.h: Likewise.
23526         * lib/unictype/pr_sentence_terminal.h: Likewise.
23527         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23528         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23529         * lib/unictype/pr_unified_ideograph.h: Likewise.
23530         * lib/unictype/pr_uppercase.h: Likewise.
23531         * lib/unictype/pr_xid_continue.h: Likewise.
23532         * lib/unictype/pr_xid_start.h: Likewise.
23533         * lib/unictype/scripts.h: Likewise.
23534         * lib/unictype/scripts_byname.gperf: Likewise.
23535         * lib/unictype/sy_java_ident.h: Likewise.
23536         * lib/unigbrk/gbrkprop.h: Likewise.
23537         * lib/unilbrk/lbrkprop1.h: Likewise.
23538         * lib/unilbrk/lbrkprop2.h: Likewise.
23539         * lib/uninorm/decomposition-table2.h: Likewise.
23540         * lib/uniwbrk/wbrkprop.h: Likewise.
23541         * tests/unicase/test-cased.c: Likewise.
23542         * tests/unicase/test-ignorable.c: Likewise.
23543         * tests/unicase/test-uc_tolower.c: Likewise.
23544         * tests/unicase/test-uc_totitle.c: Likewise.
23545         * tests/unicase/test-uc_toupper.c: Likewise.
23546         * tests/unictype/test-categ_C.c: Likewise.
23547         * tests/unictype/test-categ_Cn.c: Likewise.
23548         * tests/unictype/test-categ_L.c: Likewise.
23549         * tests/unictype/test-categ_Ll.c: Likewise.
23550         * tests/unictype/test-categ_Lm.c: Likewise.
23551         * tests/unictype/test-categ_Lo.c: Likewise.
23552         * tests/unictype/test-categ_Lu.c: Likewise.
23553         * tests/unictype/test-categ_M.c: Likewise.
23554         * tests/unictype/test-categ_Mc.c: Likewise.
23555         * tests/unictype/test-categ_Me.c: Likewise.
23556         * tests/unictype/test-categ_Mn.c: Likewise.
23557         * tests/unictype/test-categ_N.c: Likewise.
23558         * tests/unictype/test-categ_Nd.c: Likewise.
23559         * tests/unictype/test-categ_No.c: Likewise.
23560         * tests/unictype/test-categ_P.c: Likewise.
23561         * tests/unictype/test-categ_Po.c: Likewise.
23562         * tests/unictype/test-categ_S.c: Likewise.
23563         * tests/unictype/test-categ_Sc.c: Likewise.
23564         * tests/unictype/test-categ_Sk.c: Likewise.
23565         * tests/unictype/test-categ_Sm.c: Likewise.
23566         * tests/unictype/test-categ_So.c: Likewise.
23567         * tests/unictype/test-ctype_alnum.c: Likewise.
23568         * tests/unictype/test-ctype_alpha.c: Likewise.
23569         * tests/unictype/test-ctype_graph.c: Likewise.
23570         * tests/unictype/test-ctype_lower.c: Likewise.
23571         * tests/unictype/test-ctype_print.c: Likewise.
23572         * tests/unictype/test-ctype_punct.c: Likewise.
23573         * tests/unictype/test-ctype_upper.c: Likewise.
23574         * tests/unictype/test-decdigit.h: Likewise.
23575         * tests/unictype/test-digit.h: Likewise.
23576         * tests/unictype/test-numeric.h: Likewise.
23577         * tests/unictype/test-pr_alphabetic.c: Likewise.
23578         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23579         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23580         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23581         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23582         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23583         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23584         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23585         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23586         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23587         * tests/unictype/test-pr_cased.c: Likewise.
23588         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23589         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23590         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23591         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23592         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23593         * tests/unictype/test-pr_combining.c: Likewise.
23594         * tests/unictype/test-pr_composite.c: Likewise.
23595         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23596         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23597         * tests/unictype/test-pr_deprecated.c: Likewise.
23598         * tests/unictype/test-pr_format_control.c: Likewise.
23599         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23600         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23601         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23602         * tests/unictype/test-pr_id_continue.c: Likewise.
23603         * tests/unictype/test-pr_id_start.c: Likewise.
23604         * tests/unictype/test-pr_ideographic.c: Likewise.
23605         * tests/unictype/test-pr_lowercase.c: Likewise.
23606         * tests/unictype/test-pr_math.c: Likewise.
23607         * tests/unictype/test-pr_numeric.c: Likewise.
23608         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23609         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23610         * tests/unictype/test-pr_other_math.c: Likewise.
23611         * tests/unictype/test-pr_punctuation.c: Likewise.
23612         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23613         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23614         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23615         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23616         * tests/unictype/test-pr_uppercase.c: Likewise.
23617         * tests/unictype/test-pr_xid_continue.c: Likewise.
23618         * tests/unictype/test-pr_xid_start.c: Likewise.
23619         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23620         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23621         changes.
23622         * lib/unictype/categ_Cc.h: Likewise.
23623         * lib/unictype/categ_Cf.h: Likewise.
23624         * lib/unictype/categ_Co.h: Likewise.
23625         * lib/unictype/categ_Cs.h: Likewise.
23626         * lib/unictype/categ_Lt.h: Likewise.
23627         * lib/unictype/categ_Nl.h: Likewise.
23628         * lib/unictype/categ_Pc.h: Likewise.
23629         * lib/unictype/categ_Pd.h: Likewise.
23630         * lib/unictype/categ_Pe.h: Likewise.
23631         * lib/unictype/categ_Pf.h: Likewise.
23632         * lib/unictype/categ_Pi.h: Likewise.
23633         * lib/unictype/categ_Ps.h: Likewise.
23634         * lib/unictype/categ_Z.h: Likewise.
23635         * lib/unictype/categ_Zl.h: Likewise.
23636         * lib/unictype/categ_Zp.h: Likewise.
23637         * lib/unictype/categ_Zs.h: Likewise.
23638         * lib/unictype/ctype_blank.h: Likewise.
23639         * lib/unictype/ctype_cntrl.h: Likewise.
23640         * lib/unictype/ctype_digit.h: Likewise.
23641         * lib/unictype/ctype_space.h: Likewise.
23642         * lib/unictype/ctype_xdigit.h: Likewise.
23643         * lib/unictype/mirror.h: Likewise.
23644         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23645         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23646         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23647         * lib/unictype/pr_bidi_control.h: Likewise.
23648         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23649         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23650         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23651         * lib/unictype/pr_bidi_pdf.h: Likewise.
23652         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23653         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23654         * lib/unictype/pr_dash.h: Likewise.
23655         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23656         * lib/unictype/pr_diacritic.h: Likewise.
23657         * lib/unictype/pr_extender.h: Likewise.
23658         * lib/unictype/pr_hex_digit.h: Likewise.
23659         * lib/unictype/pr_hyphen.h: Likewise.
23660         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23661         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23662         * lib/unictype/pr_ignorable_control.h: Likewise.
23663         * lib/unictype/pr_iso_control.h: Likewise.
23664         * lib/unictype/pr_join_control.h: Likewise.
23665         * lib/unictype/pr_left_of_pair.h: Likewise.
23666         * lib/unictype/pr_line_separator.h: Likewise.
23667         * lib/unictype/pr_logical_order_exception.h: Likewise.
23668         * lib/unictype/pr_non_break.h: Likewise.
23669         * lib/unictype/pr_not_a_character.h: Likewise.
23670         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23671         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23672         * lib/unictype/pr_other_id_start.h: Likewise.
23673         * lib/unictype/pr_other_lowercase.h: Likewise.
23674         * lib/unictype/pr_other_uppercase.h: Likewise.
23675         * lib/unictype/pr_paired_punctuation.h: Likewise.
23676         * lib/unictype/pr_paragraph_separator.h: Likewise.
23677         * lib/unictype/pr_pattern_syntax.h: Likewise.
23678         * lib/unictype/pr_pattern_white_space.h: Likewise.
23679         * lib/unictype/pr_private_use.h: Likewise.
23680         * lib/unictype/pr_quotation_mark.h: Likewise.
23681         * lib/unictype/pr_radical.h: Likewise.
23682         * lib/unictype/pr_soft_dotted.h: Likewise.
23683         * lib/unictype/pr_space.h: Likewise.
23684         * lib/unictype/pr_titlecase.h: Likewise.
23685         * lib/unictype/pr_variation_selector.h: Likewise.
23686         * lib/unictype/pr_white_space.h: Likewise.
23687         * lib/unictype/pr_zero_width.h: Likewise.
23688         * lib/unictype/sy_c_ident.h: Likewise.
23689         * lib/unictype/sy_c_whitespace.h: Likewise.
23690         * lib/unictype/sy_java_whitespace.h: Likewise.
23691         * lib/uninorm/composition-table.gperf: Likewise.
23692         * lib/uninorm/decomposition-table1.h: Likewise.
23693         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23694         LB8.
23695         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23696         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23697         * modules/unictype/*: Bump version number of expected libunistring
23698         version.
23699
23700 2011-01-09  Bruno Haible  <bruno@clisp.org>
23701
23702         Update to Unicode 5.2.0.
23703         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23704         trailing whitespace removed.
23705
23706 2011-01-09  Bruno Haible  <bruno@clisp.org>
23707
23708         New Unicode character properties, from Unicode 5.2.0.
23709         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23710         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23711         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23712         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23713         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23714         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23715         uc_is_property_cased, uc_is_property_case_ignorable,
23716         uc_is_property_changes_when_lowercased,
23717         uc_is_property_changes_when_uppercased,
23718         uc_is_property_changes_when_titlecased,
23719         uc_is_property_changes_when_casefolded,
23720         uc_is_property_changes_when_casemapped): New declarations.
23721         * lib/unictype/pr_byname.gperf: Add the new properties.
23722         * modules/unictype/property-byname (Depends-on): Depend on the new
23723         properties modules.
23724         * modules/unictype/property-all (Depends-on): Likewise.
23725         * MODULES.html.sh (Unicode string functions): Add
23726         unictype/property-case-ignorable, unictype/property-cased,
23727         unictype/property-changes-when-casefolded,
23728         unictype/property-changes-when-casemapped,
23729         unictype/property-changes-when-lowercased,
23730         unictype/property-changes-when-titlecased,
23731         unictype/property-changes-when-uppercased.
23732
23733         New module 'unictype/property-changes-when-casemapped'.
23734         * modules/unictype/property-changes-when-casemapped: New file.
23735         * lib/unictype/pr_changes_when_casemapped.c: New file.
23736         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23737         generated by gen-uni-tables.
23738         * modules/unictype/property-changes-when-casemapped-tests: New file.
23739         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23740         automatically generated by gen-uni-tables.
23741
23742         New module 'unictype/property-changes-when-casefolded'.
23743         * modules/unictype/property-changes-when-casefolded: New file.
23744         * lib/unictype/pr_changes_when_casefolded.c: New file.
23745         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23746         generated by gen-uni-tables.
23747         * modules/unictype/property-changes-when-casefolded-tests: New file.
23748         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23749         automatically generated by gen-uni-tables.
23750
23751         New module 'unictype/property-changes-when-titlecased'.
23752         * modules/unictype/property-changes-when-titlecased: New file.
23753         * lib/unictype/pr_changes_when_titlecased.c: New file.
23754         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23755         generated by gen-uni-tables.
23756         * modules/unictype/property-changes-when-titlecased-tests: New file.
23757         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23758         automatically generated by gen-uni-tables.
23759
23760         New module 'unictype/property-changes-when-uppercased'.
23761         * modules/unictype/property-changes-when-uppercased: New file.
23762         * lib/unictype/pr_changes_when_uppercased.c: New file.
23763         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23764         generated by gen-uni-tables.
23765         * modules/unictype/property-changes-when-uppercased-tests: New file.
23766         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23767         automatically generated by gen-uni-tables.
23768
23769         New module 'unictype/property-changes-when-lowercased'.
23770         * modules/unictype/property-changes-when-lowercased: New file.
23771         * lib/unictype/pr_changes_when_lowercased.c: New file.
23772         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23773         generated by gen-uni-tables.
23774         * modules/unictype/property-changes-when-lowercased-tests: New file.
23775         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23776         automatically generated by gen-uni-tables.
23777
23778         New module 'unictype/property-case-ignorable'.
23779         * modules/unictype/property-case-ignorable: New file.
23780         * lib/unictype/pr_case_ignorable.c: New file.
23781         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23782         by gen-uni-tables.
23783         * modules/unictype/property-case-ignorable-tests: New file.
23784         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23785         generated by gen-uni-tables.
23786
23787         New module 'unictype/property-cased'.
23788         * modules/unictype/property-cased: New file.
23789         * lib/unictype/pr_cased.c: New file.
23790         * lib/unictype/pr_cased.h: New file, automatically generated by
23791         gen-uni-tables.
23792         * modules/unictype/property-cased-tests: New file.
23793         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23794         gen-uni-tables.
23795
23796 2011-01-09  Bruno Haible  <bruno@clisp.org>
23797
23798         Update to Unicode 5.2.0.
23799         * lib/gen-uni-tables.c (output_predicate, output_category,
23800         output_combclass, output_bidi_category, output_decimal_digit_test,
23801         output_decimal_digit, output_digit_test, output_digit,
23802         output_numeric_test, output_numeric, output_mirror, output_scripts,
23803         output_scripts_byname, output_blocks, output_ident_category): Fix
23804         comment header.
23805         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23806         get_wbp.
23807         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23808         items.
23809         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23810         Changes_When_Lowercased, Changes_When_Uppercased,
23811         Changes_When_Titlecased, Changes_When_Casefolded,
23812         Changes_When_Casemapped.
23813         (is_property_alphabetic, is_property_default_ignorable_code_point):
23814         Update for Unicode 5.2.0.
23815         (is_property_cased, is_property_case_ignorable,
23816         is_property_changes_when_lowercased,
23817         is_property_changes_when_uppercased,
23818         is_property_changes_when_titlecased,
23819         is_property_changes_when_casefolded,
23820         is_property_changes_when_casemapped): New functions.
23821         (output_properties): Output also the properties cased, case_ignorable,
23822         changes_when_lowercased, changes_when_uppercased,
23823         changes_when_titlecased, changes_when_casefolded,
23824         changes_when_casemapped.
23825         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23826         Unicode TR#11 revision 17 -> 19.
23827         (LBP_CP): New enumeration value.
23828         (LBP_*): Adjust values accordingly.
23829         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23830         TR#14 revision 22 -> 24.
23831         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23832         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23833         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23834         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23835         is_WBP_MIDLETTER.
23836         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23837         the code1 and code2 of each composition rule.
23838         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23839         * lib/unicase/ignorable.h: Likewise.
23840         * lib/unicase/tocasefold.h: Likewise.
23841         * lib/unicase/tolower.h: Likewise.
23842         * lib/unicase/totitle.h: Likewise.
23843         * lib/unicase/toupper.h: Likewise.
23844         * lib/unictype/bidi_of.h: Likewise.
23845         * lib/unictype/blocks.h: Likewise.
23846         * lib/unictype/categ_C.h: Likewise.
23847         * lib/unictype/categ_Cf.h: Likewise.
23848         * lib/unictype/categ_Cn.h: Likewise.
23849         * lib/unictype/categ_L.h: Likewise.
23850         * lib/unictype/categ_Ll.h: Likewise.
23851         * lib/unictype/categ_Lm.h: Likewise.
23852         * lib/unictype/categ_Lo.h: Likewise.
23853         * lib/unictype/categ_Lu.h: Likewise.
23854         * lib/unictype/categ_M.h: Likewise.
23855         * lib/unictype/categ_Mc.h: Likewise.
23856         * lib/unictype/categ_Mn.h: Likewise.
23857         * lib/unictype/categ_N.h: Likewise.
23858         * lib/unictype/categ_Nd.h: Likewise.
23859         * lib/unictype/categ_Nl.h: Likewise.
23860         * lib/unictype/categ_No.h: Likewise.
23861         * lib/unictype/categ_P.h: Likewise.
23862         * lib/unictype/categ_Pd.h: Likewise.
23863         * lib/unictype/categ_Po.h: Likewise.
23864         * lib/unictype/categ_S.h: Likewise.
23865         * lib/unictype/categ_Sc.h: Likewise.
23866         * lib/unictype/categ_So.h: Likewise.
23867         * lib/unictype/categ_of.h: Likewise.
23868         * lib/unictype/combining.h: Likewise.
23869         * lib/unictype/ctype_alnum.h: Likewise.
23870         * lib/unictype/ctype_alpha.h: Likewise.
23871         * lib/unictype/ctype_graph.h: Likewise.
23872         * lib/unictype/ctype_lower.h: Likewise.
23873         * lib/unictype/ctype_print.h: Likewise.
23874         * lib/unictype/ctype_punct.h: Likewise.
23875         * lib/unictype/ctype_upper.h: Likewise.
23876         * lib/unictype/decdigit.h: Likewise.
23877         * lib/unictype/digit.h: Likewise.
23878         * lib/unictype/numeric.h: Likewise.
23879         * lib/unictype/pr_alphabetic.h: Likewise.
23880         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23881         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23882         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23883         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23884         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23885         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23886         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23887         * lib/unictype/pr_combining.h: Likewise.
23888         * lib/unictype/pr_composite.h: Likewise.
23889         * lib/unictype/pr_currency_symbol.h: Likewise.
23890         * lib/unictype/pr_dash.h: Likewise.
23891         * lib/unictype/pr_decimal_digit.h: Likewise.
23892         * lib/unictype/pr_deprecated.h: Likewise.
23893         * lib/unictype/pr_diacritic.h: Likewise.
23894         * lib/unictype/pr_extender.h: Likewise.
23895         * lib/unictype/pr_grapheme_base.h: Likewise.
23896         * lib/unictype/pr_grapheme_extend.h: Likewise.
23897         * lib/unictype/pr_grapheme_link.h: Likewise.
23898         * lib/unictype/pr_id_continue.h: Likewise.
23899         * lib/unictype/pr_id_start.h: Likewise.
23900         * lib/unictype/pr_ideographic.h: Likewise.
23901         * lib/unictype/pr_ignorable_control.h: Likewise.
23902         * lib/unictype/pr_logical_order_exception.h: Likewise.
23903         * lib/unictype/pr_lowercase.h: Likewise.
23904         * lib/unictype/pr_numeric.h: Likewise.
23905         * lib/unictype/pr_other_alphabetic.h: Likewise.
23906         * lib/unictype/pr_punctuation.h: Likewise.
23907         * lib/unictype/pr_sentence_terminal.h: Likewise.
23908         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23909         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23910         * lib/unictype/pr_unified_ideograph.h: Likewise.
23911         * lib/unictype/pr_uppercase.h: Likewise.
23912         * lib/unictype/pr_xid_continue.h: Likewise.
23913         * lib/unictype/pr_xid_start.h: Likewise.
23914         * lib/unictype/pr_zero_width.h: Likewise.
23915         * lib/unictype/scripts.h: Likewise.
23916         * lib/unictype/scripts_byname.gperf: Likewise.
23917         * lib/unictype/sy_java_ident.h: Likewise.
23918         * lib/unigbrk/gbrkprop.h: Likewise.
23919         * lib/unilbrk/lbrkprop1.h: Likewise.
23920         * lib/unilbrk/lbrkprop2.h: Likewise.
23921         * lib/unilbrk/lbrktables.h: Likewise.
23922         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23923         LBP_CP. Implement rule LB30.
23924         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23925         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23926         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23927         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23928         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23929         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23930         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23931         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23932         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23933         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23934         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23935         bits instead of 16 bits in the code1 and code2 of each composition
23936         rule.
23937         (uc_composition): Update for Unicode 5.2.0.
23938         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23939         * lib/uninorm/decomposition-table2.h: Likewise.
23940         * lib/uniwbrk/wbrkprop.h: Likewise.
23941         * tests/unicase/test-cased.c: Likewise.
23942         * tests/unicase/test-ignorable.c: Likewise.
23943         * tests/unicase/test-uc_tolower.c: Likewise.
23944         * tests/unicase/test-uc_totitle.c: Likewise.
23945         * tests/unicase/test-uc_toupper.c: Likewise.
23946         * tests/unictype/test-categ_C.c: Likewise.
23947         * tests/unictype/test-categ_Cf.c: Likewise.
23948         * tests/unictype/test-categ_Cn.c: Likewise.
23949         * tests/unictype/test-categ_L.c: Likewise.
23950         * tests/unictype/test-categ_Ll.c: Likewise.
23951         * tests/unictype/test-categ_Lm.c: Likewise.
23952         * tests/unictype/test-categ_Lo.c: Likewise.
23953         * tests/unictype/test-categ_Lu.c: Likewise.
23954         * tests/unictype/test-categ_M.c: Likewise.
23955         * tests/unictype/test-categ_Mc.c: Likewise.
23956         * tests/unictype/test-categ_Mn.c: Likewise.
23957         * tests/unictype/test-categ_N.c: Likewise.
23958         * tests/unictype/test-categ_Nd.c: Likewise.
23959         * tests/unictype/test-categ_Nl.c: Likewise.
23960         * tests/unictype/test-categ_No.c: Likewise.
23961         * tests/unictype/test-categ_P.c: Likewise.
23962         * tests/unictype/test-categ_Pd.c: Likewise.
23963         * tests/unictype/test-categ_Po.c: Likewise.
23964         * tests/unictype/test-categ_S.c: Likewise.
23965         * tests/unictype/test-categ_Sc.c: Likewise.
23966         * tests/unictype/test-categ_So.c: Likewise.
23967         * tests/unictype/test-ctype_alnum.c: Likewise.
23968         * tests/unictype/test-ctype_alpha.c: Likewise.
23969         * tests/unictype/test-ctype_graph.c: Likewise.
23970         * tests/unictype/test-ctype_lower.c: Likewise.
23971         * tests/unictype/test-ctype_print.c: Likewise.
23972         * tests/unictype/test-ctype_punct.c: Likewise.
23973         * tests/unictype/test-ctype_upper.c: Likewise.
23974         * tests/unictype/test-decdigit.h: Likewise.
23975         * tests/unictype/test-digit.h: Likewise.
23976         * tests/unictype/test-numeric.h: Likewise.
23977         * tests/unictype/test-pr_alphabetic.c: Likewise.
23978         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23979         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23980         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23981         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23982         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23983         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23984         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23985         * tests/unictype/test-pr_combining.c: Likewise.
23986         * tests/unictype/test-pr_composite.c: Likewise.
23987         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23988         * tests/unictype/test-pr_dash.c: Likewise.
23989         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23990         * tests/unictype/test-pr_deprecated.c: Likewise.
23991         * tests/unictype/test-pr_diacritic.c: Likewise.
23992         * tests/unictype/test-pr_extender.c: Likewise.
23993         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23994         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23995         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23996         * tests/unictype/test-pr_id_continue.c: Likewise.
23997         * tests/unictype/test-pr_id_start.c: Likewise.
23998         * tests/unictype/test-pr_ideographic.c: Likewise.
23999         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24000         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24001         * tests/unictype/test-pr_lowercase.c: Likewise.
24002         * tests/unictype/test-pr_numeric.c: Likewise.
24003         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24004         * tests/unictype/test-pr_punctuation.c: Likewise.
24005         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24006         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24007         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24008         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24009         * tests/unictype/test-pr_uppercase.c: Likewise.
24010         * tests/unictype/test-pr_xid_continue.c: Likewise.
24011         * tests/unictype/test-pr_xid_start.c: Likewise.
24012         * tests/unictype/test-pr_zero_width.c: Likewise.
24013         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24014         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24015         changed behaviour: line breaking is now disallowed between a letter
24016         or '=' and '('.
24017         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24018         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24019         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24020         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24021         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24022         lib/uniwidth/width.c.
24023         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24024         without comments, but with the original copyright notice.
24025         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24026         changes.
24027         * lib/unictype/categ_Cc.h: Likewise.
24028         * lib/unictype/categ_Co.h: Likewise.
24029         * lib/unictype/categ_Cs.h: Likewise.
24030         * lib/unictype/categ_Lt.h: Likewise.
24031         * lib/unictype/categ_Me.h: Likewise.
24032         * lib/unictype/categ_Pc.h: Likewise.
24033         * lib/unictype/categ_Pe.h: Likewise.
24034         * lib/unictype/categ_Pf.h: Likewise.
24035         * lib/unictype/categ_Pi.h: Likewise.
24036         * lib/unictype/categ_Ps.h: Likewise.
24037         * lib/unictype/categ_Sk.h: Likewise.
24038         * lib/unictype/categ_Sm.h: Likewise.
24039         * lib/unictype/categ_Z.h: Likewise.
24040         * lib/unictype/categ_Zl.h: Likewise.
24041         * lib/unictype/categ_Zp.h: Likewise.
24042         * lib/unictype/categ_Zs.h: Likewise.
24043         * lib/unictype/ctype_blank.h: Likewise.
24044         * lib/unictype/ctype_cntrl.h: Likewise.
24045         * lib/unictype/ctype_digit.h: Likewise.
24046         * lib/unictype/ctype_space.h: Likewise.
24047         * lib/unictype/ctype_xdigit.h: Likewise.
24048         * lib/unictype/mirror.h: Likewise.
24049         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24050         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24051         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24052         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24053         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24054         * lib/unictype/pr_bidi_control.h: Likewise.
24055         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24056         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24057         * lib/unictype/pr_bidi_pdf.h: Likewise.
24058         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24059         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24060         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24061         * lib/unictype/pr_format_control.h: Likewise.
24062         * lib/unictype/pr_hex_digit.h: Likewise.
24063         * lib/unictype/pr_hyphen.h: Likewise.
24064         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24065         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24066         * lib/unictype/pr_iso_control.h: Likewise.
24067         * lib/unictype/pr_join_control.h: Likewise.
24068         * lib/unictype/pr_left_of_pair.h: Likewise.
24069         * lib/unictype/pr_line_separator.h: Likewise.
24070         * lib/unictype/pr_math.h: Likewise.
24071         * lib/unictype/pr_non_break.h: Likewise.
24072         * lib/unictype/pr_not_a_character.h: Likewise.
24073         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24074         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24075         * lib/unictype/pr_other_id_continue.h: Likewise.
24076         * lib/unictype/pr_other_id_start.h: Likewise.
24077         * lib/unictype/pr_other_lowercase.h: Likewise.
24078         * lib/unictype/pr_other_math.h: Likewise.
24079         * lib/unictype/pr_other_uppercase.h: Likewise.
24080         * lib/unictype/pr_paired_punctuation.h: Likewise.
24081         * lib/unictype/pr_paragraph_separator.h: Likewise.
24082         * lib/unictype/pr_pattern_syntax.h: Likewise.
24083         * lib/unictype/pr_pattern_white_space.h: Likewise.
24084         * lib/unictype/pr_private_use.h: Likewise.
24085         * lib/unictype/pr_quotation_mark.h: Likewise.
24086         * lib/unictype/pr_radical.h: Likewise.
24087         * lib/unictype/pr_soft_dotted.h: Likewise.
24088         * lib/unictype/pr_space.h: Likewise.
24089         * lib/unictype/pr_titlecase.h: Likewise.
24090         * lib/unictype/pr_variation_selector.h: Likewise.
24091         * lib/unictype/pr_white_space.h: Likewise.
24092         * lib/unictype/sy_c_ident.h: Likewise.
24093         * lib/unictype/sy_c_whitespace.h: Likewise.
24094         * lib/unictype/sy_java_whitespace.h: Likewise.
24095         * modules/uni*/*: Bump version number of expected libunistring version.
24096         Reported by Simon Josefsson.
24097
24098 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24099
24100         useless-if-before-free: fix typo in --help and make the internal,
24101         automatic version date update process work once again.
24102         --help output contained a NUL character instead of the
24103         backslash-zero that was intended.  Also, the "must lie within
24104         the first 8 lines" line is on line 9, and hence not getting
24105         automatically updated.
24106         * build-aux/useless-if-before-free: Fix the former by adding a
24107         backslash, and the latter by condensing the three lines of what-it-does
24108         to a single line, leaving one line of slack for the future.
24109
24110 2011-01-09  Bruno Haible  <bruno@clisp.org>
24111
24112         uniwidth/width: Fix width of U+1D173..U+1D17A.
24113         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24114         symbolic_width, output_width_property_test): New functions.
24115         (main): Invoke output_nonspacing_property, output_width_property_test.
24116         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24117         U+1D173..U+1D17A.
24118         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24119         1.
24120         * modules/uniwidth/*: Bump version number of expected libunistring
24121         version.
24122         * modules/unilbrk/*: Likewise.
24123
24124 2011-01-08  Bruno Haible  <bruno@clisp.org>
24125
24126         uninorm tests: Preserve copyright of Unicode data file.
24127         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24128         Mention modifications.
24129
24130 2011-01-08  Bruno Haible  <bruno@clisp.org>
24131
24132         gen-uni-tables: Prepare for Unicode 5.2.0.
24133         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24134         (debug_output_lbp, output_lbp): Update.
24135
24136 2011-01-08  Bruno Haible  <bruno@clisp.org>
24137
24138         unilbrk: Clarify gen-uni-tables.c code.
24139         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24140         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24141         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24142
24143 2011-01-07  Bruno Haible  <bruno@clisp.org>
24144
24145         strtod: Restore errno when successfully parsing Infinity or NaN.
24146         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24147         restore the original errno.
24148
24149 2011-01-07  Bruno Haible  <bruno@clisp.org>
24150
24151         remove test: Avoid failure on HP-UX 11.
24152         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24153
24154 2011-01-07  Bruno Haible  <bruno@clisp.org>
24155
24156         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24157         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24158         error code.
24159
24160 2011-01-07  Pádraig Brady <P@draigBrady.com>
24161
24162         ignore-value: fixup comments, and add Eric Blake
24163         as an author since he rewrote the macros.
24164         * lib/ignore-value.h (ignore_value):  State that
24165         we now support aggregates.  Also specify exactly
24166         when the GCC warn_unused_result feature was added.
24167
24168 2011-01-06  Eric Blake  <eblake@redhat.com>
24169
24170         ignore-value: support aggregate types
24171         * lib/ignore-value.h (ignore_value): Provide separate gcc
24172         definition.
24173         * modules/ignore-value-tests: New test module.
24174         * tests/test-ignore-value.c: New test.
24175
24176         maint.mk: improve sc_prohibit_strcmp regex
24177         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24178         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24179         definition of STRNEQ.
24180
24181         signal: work around Haiku issue with SIGBUS
24182         * lib/siglist.h: Add comment.
24183         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24184         strsignal's favoring of SIGSEGV.
24185         * tests/test-signal.c (main): Avoid test failure.
24186         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24187         Reported by Scott McCreary.
24188
24189         maint.mk: add pre-release check to ensure submodule commits are public
24190         * top/maint.mk (public-submodule-commit): New rule.
24191         (submodule-checks): New variable.
24192         (alpha beta stable): Depend on the variable.
24193
24194 2011-01-05  Pádraig Brady <P@draigBrady.com>
24195         and Jim Meyering  <meyering@redhat.com>
24196
24197         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24198         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24199         (ATTRIBUTE_DEPRECATED): Define.
24200         (_ignore_case): New function.
24201         (ignore_value): New macro, to replace the old function.
24202         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24203         * modules/ignore-value (Depends-on): Add stdint.
24204
24205 2011-01-04  Eric Blake  <eblake@redhat.com>
24206
24207         doc: regenerate INSTALL
24208         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24209         @firstparagraphindent support, now that autoconf dropped it.
24210         (INSTALL_PRELUDE): Reinstate old macro.
24211         * doc/install.texi: Resync from autoconf.
24212         * doc/INSTALL: Reflect recent autoconf update.
24213         * doc/INSTALL.ISO: Likewise.
24214         * doc/INSTALL.UTF-8: Likewise.
24215         Reported by Karl Berry.
24216
24217 2011-01-04  Bruce Korb  <address@hidden>
24218
24219         git-version-gen: avoid a sub-shell
24220         * build-aux/git-version-gen: Redirect stderr in `...` via
24221         "exec 2>...", rather than via an added sub-shell.
24222
24223 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24224
24225         git-version-gen: use (...) rather than sh -c '...'
24226         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24227         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24228
24229 2011-01-03  Jim Meyering  <meyering@redhat.com>
24230
24231         git-version-gen: convert leading TABs to spaces
24232         * build-aux/git-version-gen: Expand leading TABs.
24233
24234         git-version-gen: handle failed "git rev-list"
24235         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24236         from git and proceeding as if it had succeeded but printed no SHA1
24237         checksums, suppress the diagnostic and handle the failure.
24238         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24239
24240         git-version-gen: include command name in one more diagnostic
24241         * build-aux/git-version-gen: When the required .tarball-version file
24242         was missing or unreadable, you might see the diagnostic from "cat",
24243         but no trace of the name of the invoking script.  Now, you still see
24244         the diagnostic from cat, but also get one from "git-version-gen: ".
24245         Inspired by a patch from Bruce Korb.
24246
24247         update-copyright: adjust test to match changed code
24248         * tests/test-update-copyright.sh: Change test's expected output
24249         to match new actual output.
24250
24251 2011-01-02  Bruno Haible  <bruno@clisp.org>
24252
24253         getlogin_r: Avoid test failure on HP-UX 11.
24254         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24255         ERANGE when the second argument is zero.
24256         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24257         portability problem.
24258
24259 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24260
24261         * build-aux/update-copyright: doc Simon's changes
24262
24263 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24264
24265         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24266         environment variable.
24267
24268 2011-01-02  Bruno Haible  <bruno@clisp.org>
24269
24270         unigbrk: Avoid gcc warnings.
24271         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24272         unused variable.
24273         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24274         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24275         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24276         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24277         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24278         Change type of first argument to 'const char *'.
24279         (main): Remove unused variable.
24280         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24281         type of first argument to 'const char *'.
24282         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24283         Likewise.
24284         (main): Change type of variable 's'.
24285         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24286         to 'int'.
24287
24288 2011-01-02  Bruno Haible  <bruno@clisp.org>
24289
24290         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24291         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24292         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24293         bug.
24294         * lib/pwrite.c: Undo 2010-12-31 patch.
24295         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24296
24297 2011-01-02  Bruno Haible  <bruno@clisp.org>
24298
24299         pread: Fix test whether it works.
24300         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24301
24302 2011-01-02  Bruno Haible  <bruno@clisp.org>
24303
24304         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24305         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24306         ends in "6". Don't require a specific month name. Try also the locale
24307         names found on HP-UX 11 and Solaris 7.
24308
24309 2011-01-02  Bruno Haible  <bruno@clisp.org>
24310
24311         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24312         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24313         C linkage.
24314         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24315
24316 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24317
24318         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24319         for consistency, since the "cluster" term is not used elsewhere.
24320         * lib/unigbrk.in.h: Update name.
24321         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24322         * lib/unigbrk/u16-grapheme-next.c: Update name.
24323         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24324         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24325         * lib/unigbrk/u32-grapheme-next.c: Update name.
24326         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24327         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24328         * lib/unigbrk/u8-grapheme-next.c: Update name.
24329         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24330         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24331         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24332         Suggested by Bruno Haible.
24333
24334 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24335
24336         Remove module 'u8-grapheme-len' as too redundant with
24337         'u8-grapheme-next'.
24338         * modules/unigbrk/u8-grapheme-len: Delete file.
24339         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24340         * lib/unigbrk.in.h: Remove prototype for deleted function.
24341         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24342         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24343
24344         Remove module 'u16-grapheme-len' as too redundant with
24345         'u16-grapheme-next'.
24346         * modules/unigbrk/u16-grapheme-len: Delete file.
24347         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24348         * lib/unigbrk.in.h: Remove prototype for deleted function.
24349         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24350         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24351
24352         Remove module 'u32-grapheme-len' as too redundant with
24353         'u32-grapheme-next'.
24354         * modules/unigbrk/u32-grapheme-len: Delete file.
24355         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24356         * lib/unigbrk.in.h: Remove prototype for deleted function.
24357         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24358         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24359
24360         Suggested by Bruno Haible.
24361
24362 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24363
24364         * unigbrk.in.h: Fix typo: "ben" => "been".
24365         Reported by Bruno Haible.
24366
24367 2011-01-01  Jim Meyering  <meyering@redhat.com>
24368
24369         maint: update almost all copyright ranges to include 2011
24370         Run the new "make update-copyright" rule.
24371
24372 2011-01-01  Jim Meyering  <meyering@redhat.com>
24373
24374         maint: update-copyright: exempt doc/INSTALL*
24375         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24376         since they are generated.  Suggested by Bruno Haible.
24377
24378 2011-01-01  Jim Meyering  <meyering@redhat.com>
24379
24380         maint: refine the update-copyright rule
24381         * Makefile (update-copyright): Also exclude any file that includes
24382         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24383         code that merely generates the comment.
24384
24385 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24386
24387         New module 'u8-grapheme-len'.
24388         * modules/unigbrk/u8-grapheme-len: New file.
24389         * modules/unigbrk/u8-grapheme-len-tests: New file.
24390         * lib/unigbrk.in.h: Add prototype for new function.
24391         * lib/unigbrk/u8-grapheme-len.c: New file.
24392         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24393
24394         New module 'u16-grapheme-len'.
24395         * modules/unigbrk/u16-grapheme-len: New file.
24396         * modules/unigbrk/u16-grapheme-len-tests: New file.
24397         * lib/unigbrk.in.h: Add prototype for new function.
24398         * lib/unigbrk/u16-grapheme-len.c: New file.
24399         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24400
24401         New module 'u32-grapheme-len'.
24402         * modules/unigbrk/u32-grapheme-len: New file.
24403         * modules/unigbrk/u32-grapheme-len-tests: New file.
24404         * lib/unigbrk.in.h: Add prototype for new function.
24405         * lib/unigbrk/u32-grapheme-len.c: New file.
24406         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24407
24408         New module 'u8-grapheme-next'.
24409         * modules/unigbrk/u8-grapheme-next: New file.
24410         * modules/unigbrk/u8-grapheme-next-tests: New file.
24411         * lib/unigbrk.in.h: Add prototype for new function.
24412         * lib/unigbrk/u8-grapheme-next.c: New file.
24413         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24414
24415         New module 'u16-grapheme-next'.
24416         * modules/unigbrk/u16-grapheme-next: New file.
24417         * modules/unigbrk/u16-grapheme-next-tests: New file.
24418         * lib/unigbrk.in.h: Add prototype for new function.
24419         * lib/unigbrk/u16-grapheme-next.c: New file.
24420         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24421
24422         New module 'u32-grapheme-next'.
24423         * modules/unigbrk/u32-grapheme-next: New file.
24424         * modules/unigbrk/u32-grapheme-next-tests: New file.
24425         * lib/unigbrk.in.h: Add prototype for new function.
24426         * lib/unigbrk/u32-grapheme-next.c: New file.
24427         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24428
24429         New module 'u8-grapheme-prev'.
24430         * modules/unigbrk/u8-grapheme-prev: New file.
24431         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24432         * lib/unigbrk.in.h: Add prototype for new function.
24433         * lib/unigbrk/u8-grapheme-prev.c: New file.
24434         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24435
24436         New module 'u16-grapheme-prev'.
24437         * modules/unigbrk/u16-grapheme-prev: New file.
24438         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24439         * lib/unigbrk.in.h: Add prototype for new function.
24440         * lib/unigbrk/u16-grapheme-prev.c: New file.
24441         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24442
24443         New module 'u32-grapheme-prev'.
24444         * modules/unigbrk/u32-grapheme-prev: New file.
24445         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24446         * lib/unigbrk.in.h: Add prototype for new function.
24447         * lib/unigbrk/u32-grapheme-prev.c: New file.
24448         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24449
24450         New module 'u8-grapheme-breaks'.
24451         * modules/unigbrk/u8-grapheme-breaks: New file.
24452         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24453         * lib/unigbrk.in.h: Add prototype for new function.
24454         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24455         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24456
24457         New module 'u16-grapheme-breaks'.
24458         * modules/unigbrk/u16-grapheme-breaks: New file.
24459         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24460         * lib/unigbrk.in.h: Add prototype for new function.
24461         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24462         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24463
24464         New module 'u32-grapheme-breaks'.
24465         * modules/unigbrk/u32-grapheme-breaks: New file.
24466         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24467         * lib/unigbrk.in.h: Add prototype for new function.
24468         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24469         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24470
24471         New module 'ulc-grapheme-breaks'.
24472         * modules/unigbrk/ulc-grapheme-breaks: New file.
24473         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24474         * m4/locale-ar.m4: New file.
24475         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24476         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24477         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24478
24479 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24480
24481         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24482         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24483         modified how this file was generated before I initially submitted
24484         the module, but failed to regenerate it.  This meant that several
24485         of the level2 entries were wrong.
24486         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24487         Remove the division-by-2 that is folded into the table now that
24488         gbrkprop.h has been regenerated properly.  Now -1 entries are
24489         handled correctly.
24490
24491         New module 'unigbrk/uc-gbrk-prop-tests'.
24492         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24493         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24494         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24495         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24496
24497 2011-01-01  Bruno Haible  <bruno@clisp.org>
24498
24499         Avoid use of hexadecimal escapes.
24500         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24501         instead of hexadecimal escapes.
24502
24503 2011-01-01  Jim Meyering  <meyering@redhat.com>
24504
24505         maint: new rule to update copyright year ranges
24506         * Makefile (update-copyright): New rule.
24507
24508         maint: indent with TABs in Makefile
24509         * Makefile: Expand leading sequences of spaces to TABs
24510
24511         version-etc: update the copyright year it reports
24512         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24513
24514 2010-12-31  Bruno Haible  <bruno@clisp.org>
24515
24516         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24517         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24518         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24519         zero.
24520
24521 2010-12-31  Bruno Haible  <bruno@clisp.org>
24522
24523         pwrite: Work around HP-UX 11.11 bug.
24524         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24525         works and set REPLACE_PWRITE if not.
24526         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24527         function.
24528         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24529
24530 2010-12-31  Bruno Haible  <bruno@clisp.org>
24531
24532         pread: Work around HP-UX 11 bugs.
24533         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24534         and set REPLACE_PREAD if not.
24535         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24536
24537 2010-12-31  Eric Blake  <eblake@redhat.com>
24538
24539         nl_langinfo: fix YESEXPR on Irix 6.5
24540         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24541         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24542         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24543         it.
24544
24545 2010-12-31  Bruno Haible  <bruno@clisp.org>
24546
24547         iconv: Document HP-UX 11 bug.
24548         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24549
24550 2010-12-31  Bruno Haible  <bruno@clisp.org>
24551
24552         ldexpl: Fix link error on HP-UX 11.
24553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24554         LDEXPL_LIBM, using $ISNANL_LIBM.
24555
24556 2010-12-31  Eric Blake  <eblake@redhat.com>
24557
24558         ftello: avoid compilation failure with SunStudio c89
24559         * lib/ftello.c (ftello): Use lseek, not llseek.
24560
24561         tests: avoid failing coreutils tests on cygwin
24562         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24563         (create_exe_shims_): Return 0 when skipping.
24564
24565 2010-12-31  Bruno Haible  <bruno@clisp.org>
24566
24567         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24568         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24569
24570 2010-12-31  Bruno Haible  <bruno@clisp.org>
24571
24572         waitpid: Fix link error in C++ mode.
24573         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24574
24575 2010-12-31  Bruno Haible  <bruno@clisp.org>
24576
24577         isnan: Use GCC built-ins when possible.
24578         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24579         __builtin_isnan.
24580         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24581         (isnan): Define using GCC built-ins for GCC >= 4.0.
24582
24583 2010-12-31  Bruno Haible  <bruno@clisp.org>
24584
24585         isnand: Fix mistake.
24586         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24587         __builtin_isnand.
24588
24589 2010-12-31  Bruno Haible  <bruno@clisp.org>
24590
24591         open: Avoid C++ error on HP-UX 11.
24592         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24593
24594 2010-12-31  Bruno Haible  <bruno@clisp.org>
24595
24596         time_r: Add missing declarations on HP-UX 11.
24597         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24598         instead of HAVE_LOCALTIME_R.
24599         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24600         HAVE_LOCALTIME_R always.
24601         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24602         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24603         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24604         HAVE_LOCALTIME_R.
24605         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24606         * doc/posix-functions/localtime_r.texi: Likewise.
24607
24608 2010-12-29  Eric Blake  <eblake@redhat.com>
24609
24610         mountlist: tweak previous commit
24611         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24612         Reported by Paul Eggert.
24613
24614         mountlist: fix local drive detection on cygwin
24615         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24616         that works for cygwin.
24617
24618 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24619
24620         ftoastr, snprintf: ftoastr + snprintf module
24621         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24622         since the snprintf module now should be good enough here.
24623         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24624         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24625         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24626         GNULIB_SNPRINTF only for the test directory, and the latter
24627         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24628         seems to suffice by itself.
24629
24630 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24631
24632         alloca: one step towards thread-safety
24633         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24634         need for a static variable.  All callers changed.  This does not
24635         make the alloca replacement thread-safe, but it's one step.
24636
24637         tests: minor indenting change
24638         * tests/init.sh: Sync from coreutils housekeeping patch
24639         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24640         to keep lines within 80 columns.
24641
24642 2010-12-28  Jim Meyering  <meyering@redhat.com>
24643
24644         regex: don't infloop on persistent failing calloc
24645         * lib/regexec.c (build_trtable): Return failure indication upon
24646         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24647         In glibc, this was fixed for version 2.13:
24648         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24649
24650 2010-12-28  Bruno Haible  <bruno@clisp.org>
24651             Paul Eggert <eggert@cs.ucla.edu>
24652
24653         linkat: Make implementation robust against system behaviour variations.
24654         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24655         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24656         way, and to -2 if it needs a generic runtime test.
24657         * lib/linkat.c (solaris_optimized_link_immediate,
24658         solaris_optimized_link_follow): New functions.
24659         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24660         (check_same_link): Use it.
24661
24662 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24663
24664         New module 'unigbrk/base'.
24665         * modules/unigbrk/base: New file.
24666         * lib/unigbrk.in.h: New file.
24667
24668         New module 'unigbrk/uc-gbrk-prop'.
24669         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24670         * modules/unigbrk/uc-gbrk-prop: New file.
24671         * lib/unigbrk/gbrkprop.h: New file.
24672         * lib/unigbrk/uc-gbrk-prop.c: New file.
24673
24674         New module 'unigbrk/uc-is-grapheme-break'.
24675         * modules/unigbrk/uc-is-grapheme-break: New file.
24676         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24677         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24678         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24679         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24680         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24681
24682         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24683
24684 2010-12-27  Bruno Haible  <bruno@clisp.org>
24685
24686         linkat test: Avoid failure on Solaris 11 2010-11.
24687         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24688
24689 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24690
24691         utimens: work around glibc rounding bug on more platforms
24692         * lib/utimens.c (fdutimens): Work around rounding bug even if
24693         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24695
24696 2010-12-27  Bruno Haible  <bruno@clisp.org>
24697
24698         select tests: Improve comments.
24699         * tests/test-select.c (do_select): Add comments.
24700
24701 2010-12-27  Bruno Haible  <bruno@clisp.org>
24702
24703         select tests: Safer way of handling timeout.
24704         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24705         at every invocation.
24706
24707 2010-12-27  Bruno Haible  <bruno@clisp.org>
24708
24709         select tests: Use 'bool' where appropriate.
24710         * tests/test-select.c (connect_to_socket): Change argument type to
24711         'bool'.
24712
24713 2010-12-27  Bruno Haible  <bruno@clisp.org>
24714
24715         select tests: Use existing modules.
24716         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24717         (configure.ac): Don't test for unistd.h.
24718         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24719         declared in <unistd.h>.
24720
24721 2010-12-27  Bruno Haible  <bruno@clisp.org>
24722
24723         mbrtowc: Work around a Solaris 7 bug.
24724         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24725         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24726         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24727         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24728         MBRTOWC_NULL_ARG1_BUG.
24729         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24730         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24731         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24732         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24733
24734 2010-12-27  Jim Meyering  <meyering@redhat.com>
24735
24736         read-file.c: tweak syntax
24737         * lib/read-file.c (fread_file): Remove space after "*" in function
24738         definitions.
24739
24740 2010-12-27  Bruno Haible  <bruno@clisp.org>
24741
24742         times test: Avoid gcc warnings on OSF/1.
24743         * tests/test-times.c (main): Cast printf arguments from clock_t to
24744         'long int'.
24745
24746 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24747
24748         utimens: work around glibc rounding bug on older Linux kernels
24749         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24750         on Linux with a glibc whose utimes might not work, then work
24751         around a longstanding glibc bug involving rounding rather than
24752         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24754
24755 2010-12-26  Bruno Haible  <bruno@clisp.org>
24756
24757         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24758         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24759         _GL_CXXALIAS_SYS.
24760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24761
24762 2010-12-26  Bruno Haible  <bruno@clisp.org>
24763
24764         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24765         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24766         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24767         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24768         looking for the declaration.
24769         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24770         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24771         problem.
24772         * doc/posix-functions/inet_pton.texi: Likewise.
24773
24774 2010-12-26  Bruno Haible  <bruno@clisp.org>
24775
24776         arpa_inet: Use the common idioms with C++ support.
24777         * lib/arpa_inet.in.h: Include c++defs.h.
24778         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24779         support.
24780         * modules/arpa_inet (Depends-on): Add c++defs.
24781         (Makefile.am): Substitute the contents of c++defs.h.
24782         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24783         * modules/arpa_inet-c++-tests: New file.
24784         * tests/test-arpa_inet-c++.cc: New file.
24785
24786 2010-12-25  Bruno Haible  <bruno@clisp.org>
24787
24788         Fix more C++ link errors on Solaris 8.
24789         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24790         $(LIB_EACCESS).
24791         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24792         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24793         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24794         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24795         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24796
24797 2010-12-25  Bruno Haible  <bruno@clisp.org>
24798
24799         printf-posix: Fix link error when a non-GCC compiler is used.
24800         * lib/stdio.in.h (printf): When not using GCC, override printf
24801         correctly.
24802         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24803
24804 2010-12-25  Bruno Haible  <bruno@clisp.org>
24805
24806         strerror_r-posix: Update doc.
24807         * doc/posix-functions/strerror_r.texi: Update doc about the return
24808         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24809
24810 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24811
24812         utimens: simplify the logic of the previous change
24813         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24814         This should not affect whether the test succeeds or fails.
24815
24816         utimens: configure better on hosts with NFS clock skew
24817         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24818         uses the clock of the local host.  It might use the clock of the
24819         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24820         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24821
24822 2010-12-25  Bruno Haible  <bruno@clisp.org>
24823
24824         ptsname test: Avoid failure on Solaris.
24825         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24826         open a pseudo-terminal; don't use BSD-style ptys.
24827         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24828
24829 2010-12-25  Bruno Haible  <bruno@clisp.org>
24830
24831         ptsname: Avoid ERANGE failure on some systems.
24832         * lib/ptsname.c (buffer): Increase size.
24833
24834 2010-12-25  Bruno Haible  <bruno@clisp.org>
24835
24836         rename, renameat: Avoid test failures at NFS mounted locations.
24837         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24838         so that subsequent mkdir calls succeed.
24839
24840 2010-12-25  Bruno Haible  <bruno@clisp.org>
24841
24842         iswblank: Fix C++ link error on Solaris 8.
24843         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24844         _GL_FUNCDECL_SYS.
24845
24846 2010-12-25  Bruno Haible  <bruno@clisp.org>
24847
24848         unistd: Fix C++ link error on Solaris 8.
24849         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24850
24851 2010-12-25  Bruno Haible  <bruno@clisp.org>
24852
24853         readlink doc: Mention an old glibc bug.
24854         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24855
24856 2010-12-25  Bruno Haible  <bruno@clisp.org>
24857
24858         fcntl-h: Fix for use of C++ on glibc systems.
24859         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24860         also on glibc systems in C++ mode.
24861         Reported by Gary V. Vaughan <gary@gnu.org>.
24862
24863 2010-12-25  Bruno Haible  <bruno@clisp.org>
24864
24865         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24866         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24867
24868 2010-12-25  Bruno Haible  <bruno@clisp.org>
24869
24870         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24871         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24872         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24873         test whether truncl works according to ISO C 99 with IEC 60559.
24874         * m4/truncl-ieee.m4: New file.
24875         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24876         m4/signbit.m4.
24877         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24878
24879 2010-12-25  Bruno Haible  <bruno@clisp.org>
24880
24881         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24882         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24883         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24884         test whether ceill works according to ISO C 99 with IEC 60559.
24885         * m4/ceill-ieee.m4: New file.
24886         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24887         m4/signbit.m4.
24888         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24889
24890 2010-12-25  Bruno Haible  <bruno@clisp.org>
24891
24892         Ensure all prerequisites of <wchar.h> are included.
24893         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24894         before <wchar.h>.
24895         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24896         gl_MBRLEN_NUL_RETVAL): Likewise.
24897         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24898         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24899         AC_FUNC_MBRTOWC): Likewise.
24900         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24901         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24902         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24903         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24904         Likewise.
24905         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24906         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24907         (gl_WCHAR_H): Improve comments.
24908         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24909
24910 2010-12-25  Bruno Haible  <bruno@clisp.org>
24911
24912         strtok_r: Fix C syntax error in autoconf macro.
24913         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24914         characters in test program.
24915
24916 2010-12-24  Bruno Haible  <bruno@clisp.org>
24917
24918         ceil, trunc, round: Fix gcc warnings.
24919         * lib/ceil.c (MIN): Undefine before redefining.
24920         * lib/trunc.c (MIN): Likewise.
24921         * lib/round.c (MIN): Likewise.
24922         Include <math.h> first.
24923
24924 2010-12-24  Bruno Haible  <bruno@clisp.org>
24925
24926         select tests: Avoid failures on OSF/1 5.1.
24927         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24928         failure of closing the last socket; it may fail with ECONNRESET.
24929
24930 2010-12-24  Eric Blake  <eblake@redhat.com>
24931
24932         stdint: avoid HP-UX 10.20 preprocessor bug
24933         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24934         than #if.
24935         * tests/test-floor2.c (main): Likewise.
24936         Reported by Peter O'Gorman.
24937
24938         pipe: make obsoletion transition easier
24939         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24940         * modules/pipe (Files): Include revived file.
24941         (Include): Drop reference, to mirror getdate's behavior.
24942
24943 2010-12-24  Bruno Haible  <bruno@clisp.org>
24944
24945         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24946         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24947         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24948         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24949
24950 2010-12-24  Bruno Haible  <bruno@clisp.org>
24951
24952         gethostname: Ensure declaration on NonStop Kernel.
24953         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24954         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24955
24956 2010-12-24  Bruno Haible  <bruno@clisp.org>
24957
24958         sys_select: Ensure all necessary types on NonStop Kernel.
24959         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24960         include <sys/time.h>.
24961         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24962         NonStop Kernel.
24963         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24964
24965 2010-12-24  Bruno Haible  <bruno@clisp.org>
24966
24967         sys_select: Remove unneeded include.
24968         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24969         have <sys/select.h>.
24970
24971 2010-12-24  Bruno Haible  <bruno@clisp.org>
24972
24973         gethostname: Provide a fallback for HOST_NAME_MAX.
24974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24975         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24976         instead.
24977         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24978
24979 2010-12-24  Bruno Haible  <bruno@clisp.org>
24980
24981         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24982         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24983         (SA_RESTART): Likewise.
24984         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24985
24986 2010-12-24  Bruno Haible  <bruno@clisp.org>
24987
24988         signal: Define NSIG.
24989         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24990         * tests/test-signal.c (nsig): New variable.
24991         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24992
24993 2010-12-24  Bruno Haible  <bruno@clisp.org>
24994
24995         rename, renameat: Avoid test failures on OSF/1 5.1.
24996         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24997         alternative error codes.
24998         * tests/test-renameat.c (main): Likewise.
24999
25000 2010-12-24  Bruno Haible  <bruno@clisp.org>
25001
25002         *printf: Detect large precisions bug on Solaris 10/SPARC.
25003         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25004         by Paul Eggert.
25005         * tests/test-snprintf-posix.h (test_function): Add this test code here
25006         too.
25007         * tests/test-sprintf-posix.h (test_function): Likewise.
25008         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25009         * tests/test-vasprintf-posix.c (test_function): Likewise.
25010         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25011         around by gnulib.
25012         * doc/posix-functions/printf.texi: Likewise.
25013         * doc/posix-functions/snprintf.texi: Likewise.
25014         * doc/posix-functions/sprintf.texi: Likewise.
25015         * doc/posix-functions/vfprintf.texi: Likewise.
25016         * doc/posix-functions/vprintf.texi: Likewise.
25017         * doc/posix-functions/vsnprintf.texi: Likewise.
25018         * doc/posix-functions/vsprintf.texi: Likewise.
25019         * doc/posix-functions/dprintf.texi: Undo last commit.
25020         * doc/posix-functions/vdprintf.texi: Likewise.
25021
25022 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25023
25024         tests: port test-fdutimensat.c to Solaris 8
25025         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25026         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25027         On Solaris 8, it fails with errno == ENOSYS, because there is no
25028         futimens (so it can't use the fd), and there is no lutimens (so it
25029         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25030
25031         vsnprintf: make more consistent with snprintf; doc fixes
25032
25033         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25034         the byte count return problem was promoted from the snprintf-posix
25035         to the snprintf module.
25036         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25037         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25038         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25039         * tests/test-snprintf.c (main): Check the byte count returned.
25040         * tests/test-vsnprintf.c (main): Likewise.
25041
25042 2010-12-23  Eric Blake  <eblake@redhat.com>
25043
25044         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25045         * modules/sigpipe (License): Relax license.
25046
25047 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25048
25049         doc: document Solaris printf bug with large float precisions
25050         * doc/posix-functions/dprintf.texi (dprintf):
25051         * doc/posix-functions/fprintf.texi (fprintf):
25052         * doc/posix-functions/printf.texi (printf):
25053         * doc/posix-functions/snprintf.texi (snprintf):
25054         * doc/posix-functions/sprintf.texi (sprintf):
25055         * doc/posix-functions/vdprintf.texi (vdprintf):
25056         * doc/posix-functions/vfprintf.texi (vfprintf):
25057         * doc/posix-functions/vprintf.texi (vprintf):
25058         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25059         * doc/posix-functions/vsprintf.texi (vsprintf):
25060         Mention that these functions mishandle large floating point
25061         precisions on Solaris 10.  The same bug is also present in Solaris
25062         8, and I assume earlier.  This causes "cd gnulib-tests; make
25063         check" to fail on Solaris 8 (and I assume, later) when building
25064         the latest coreutils, in test-vasprintf-posix's call to
25065         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25066         the wide flavors (e.g., wprintf) so this patch just updates the
25067         documentation for the narrow ones.
25068
25069         test-posixtm.c: add two tests
25070         * tests/test-posixtm.c: Add two tests, to highlight the
25071         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25072         around this bug; this is merely to document it.
25073
25074 2010-12-22  Bruno Haible  <bruno@clisp.org>
25075
25076         getlogin_r: Work around portability problem on OSF/1.
25077         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25078         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25079         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25080         test for a truncated result.
25081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25082         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25083         * modules/getlogin_r (Depends-on): Add memchr.
25084         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25085
25086 2010-12-22  Bruno Haible  <bruno@clisp.org>
25087
25088         ptsname: Avoid test failure on OSF/1 5.1.
25089         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25090         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25091         (same_slave): New function.
25092         (main): Use it to compare ptsname's result with the expected file name.
25093
25094 2010-12-22  Bruno Haible  <bruno@clisp.org>
25095
25096         Port extended stdio modules to HP NonStop Kernel.
25097         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25098         macros.
25099         * lib/fbufmode.c: Update comments.
25100         * lib/fflush.c: Likewise.
25101         * lib/fpurge.c: Likewise.
25102         * lib/freadable.c: Likewise.
25103         * lib/freadahead.c: Likewise.
25104         * lib/freading.c: Likewise.
25105         * lib/freadptr.c: Likewise.
25106         * lib/freadseek.c: Likewise.
25107         * lib/fseeko.c: Likewise.
25108         * lib/fseterr.c: Likewise.
25109         * lib/fwritable.c: Likewise.
25110         * lib/fwriting.c: Likewise.
25111         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25112
25113 2010-12-22  Bruno Haible  <bruno@clisp.org>
25114
25115         ttyname_r: Work around bug on OSF/1 5.1.
25116         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25117         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25118         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25119         present.
25120         * lib/ttyname_r.c (ttyname_r): Update comments.
25121
25122 2010-12-22  Bruno Haible  <bruno@clisp.org>
25123
25124         round: Implement result sign according to IEEE 754.
25125         * lib/round.c (MIN, MINUS_ZERO): New macros.
25126         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25127         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25128         * tests/test-round-ieee.c (main): Likewise.
25129         * tests/test-roundl-ieee.c (main): Likewise.
25130
25131         trunc: Implement result sign according to IEEE 754.
25132         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25133         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25134         * tests/test-trunc2.c: Include minus-zero.h.
25135         (MINUS_ZERO): New macro.
25136         (trunc_reference): Keep in sync with lib/trunc.c.
25137         * tests/test-truncf2.c: Include minus-zero.h.
25138         (MINUS_ZERO): New macro.
25139         (truncf_reference): Keep in sync with lib/trunc.c.
25140         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25141         * tests/test-trunc-ieee.c (main): Likewise.
25142         * tests/test-truncl-ieee.c (main): Likewise.
25143
25144         ceil: Implement result sign according to IEEE 754.
25145         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25146         (FUNC): Return -0.0 for -1 < x < 0.
25147         * tests/test-ceil2.c: Include minus-zero.h.
25148         (MINUS_ZERO): New macro.
25149         (ceil_reference): Keep in sync with lib/ceil.c.
25150         * tests/test-ceilf2.c: Include minus-zero.h.
25151         (MINUS_ZERO): New macro.
25152         (ceilf_reference): Keep in sync with lib/ceil.c.
25153         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25154         * tests/test-ceil-ieee.c (main): Likewise.
25155         * tests/test-ceill-ieee.c (main): Likewise.
25156
25157         floor: Implement result sign according to IEEE 754.
25158         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25159         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25160         * tests/test-floorf2.c (floorf_reference): Likewise.
25161         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25162         * tests/test-floor-ieee.c (main): Likewise.
25163         * tests/test-floorl-ieee.c (main): Likewise.
25164
25165 2010-12-22  Bruno Haible  <bruno@clisp.org>
25166
25167         getaddrinfo: Update doc.
25168         * doc/posix-functions/gai_strerror.texi: Return type is also different
25169         on AIX and HP-UX.
25170
25171 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25172
25173         getaddrinfo, inet_ntop: Update doc for Solaris.
25174         * doc/posix-functions/gai_strerror.texi: Return type is also an
25175         issue on Solaris 9 and earlier.
25176         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25177         on Solaris 10 and earlier.
25178
25179 2010-12-21  Bruno Haible  <bruno@clisp.org>
25180
25181         New module 'roundl-ieee'.
25182         * modules/roundl-ieee: New file.
25183         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25184         test whether roundl works according to ISO C 99 with IEC 60559.
25185         * m4/roundl-ieee.m4: New file.
25186         * modules/roundl-ieee-tests: New file.
25187         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25188         * tests/test-roundl.c (main): Remove signbit tests.
25189         * modules/roundl-tests (Depends-on): Remove signbit.
25190         * doc/posix-functions/roundl.texi: Mention the new module.
25191
25192 2010-12-21  Bruno Haible  <bruno@clisp.org>
25193
25194         New module 'truncl-ieee'.
25195         * modules/truncl-ieee: New file.
25196         * modules/truncl-ieee-tests: New file.
25197         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25198         * tests/test-truncl.c (main): Remove signbit tests.
25199         * modules/truncl-tests (Depends-on): Remove signbit.
25200         * doc/posix-functions/truncl.texi: Mention the new module.
25201
25202 2010-12-21  Bruno Haible  <bruno@clisp.org>
25203
25204         New module 'ceill-ieee'.
25205         * modules/ceill-ieee: New file.
25206         * modules/ceill-ieee-tests: New file.
25207         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25208         * tests/test-ceill.c (main): Remove signbit tests.
25209         * modules/ceill-tests (Depends-on): Remove signbit.
25210         * doc/posix-functions/ceill.texi: Mention the new module.
25211
25212 2010-12-21  Bruno Haible  <bruno@clisp.org>
25213
25214         New module 'floorl-ieee'.
25215         * modules/floorl-ieee: New file.
25216         * modules/floorl-ieee-tests: New file.
25217         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25218         * tests/test-floorl.c (main): Remove signbit tests.
25219         * modules/floorl-tests (Depends-on): Remove signbit.
25220         * doc/posix-functions/floorl.texi: Mention the new module.
25221
25222 2010-12-21  Bruno Haible  <bruno@clisp.org>
25223
25224         New module 'round-ieee'.
25225         * modules/round-ieee: New file.
25226         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25227         whether round works according to ISO C 99 with IEC 60559.
25228         * m4/round-ieee.m4: New file.
25229         * modules/round-ieee-tests: New file.
25230         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25231         * tests/test-round1.c (main): Remove signbit tests.
25232         * modules/round-tests (Depends-on): Remove 'signbit'.
25233         * doc/posix-functions/round.texi: Mention the new module.
25234
25235 2010-12-21  Bruno Haible  <bruno@clisp.org>
25236
25237         New module 'trunc-ieee'.
25238         * modules/trunc-ieee: New file.
25239         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25240         whether trunc works according to ISO C 99 with IEC 60559.
25241         * m4/trunc-ieee.m4: New file.
25242         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25244         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25245         * modules/trunc-ieee-tests: New file.
25246         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25247         * tests/test-trunc1.c (main): Remove signbit tests.
25248         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25249         * doc/posix-functions/trunc.texi: Mention the new module.
25250
25251 2010-12-21  Bruno Haible  <bruno@clisp.org>
25252
25253         New module 'ceil-ieee'.
25254         * modules/ceil-ieee: New file.
25255         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25256         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25257         ISO C 99 with IEC 60559.
25258         * m4/ceil-ieee.m4: New file.
25259         * modules/ceil (Files): Add lib/ceil.c.
25260         (Depends-on): Add 'float'.
25261         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25262         * lib/math.in.h (ceil): New declaration.
25263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25264         REPLACE_CEIL.
25265         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25266         * modules/ceil-ieee-tests: New file.
25267         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25268         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25269         * doc/posix-functions/ceil.texi: Mention the new module.
25270
25271 2010-12-21  Bruno Haible  <bruno@clisp.org>
25272
25273         New module 'floor-ieee'.
25274         * modules/floor-ieee: New file.
25275         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25276         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25277         ISO C 99 with IEC 60559.
25278         * m4/floor-ieee.m4: New file.
25279         * modules/floor (Files): Add lib/floor.c.
25280         (Depends-on): Add 'float'.
25281         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25282         * lib/math.in.h (floor): New declaration.
25283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25284         REPLACE_FLOOR.
25285         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25286         * modules/floor-ieee-tests: New file.
25287         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25288         * tests/test-math-c++.cc: Check the signature of 'floor'.
25289         * doc/posix-functions/floor.texi: Mention the new module.
25290
25291 2010-12-21  Bruno Haible  <bruno@clisp.org>
25292
25293         New module 'roundf-ieee'.
25294         * modules/roundf-ieee: New file.
25295         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25296         test whether roundf works according to ISO C 99 with IEC 60559.
25297         * m4/roundf-ieee.m4: New file.
25298         * modules/roundf-ieee-tests: New file.
25299         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25300         * tests/test-roundf1.c (main): Remove signbit tests.
25301         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25302         * doc/posix-functions/roundf.texi: Mention the new module.
25303
25304 2010-12-21  Bruno Haible  <bruno@clisp.org>
25305
25306         New module 'truncf-ieee'.
25307         * modules/truncf-ieee: New file.
25308         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25309         test whether truncf works according to ISO C 99 with IEC 60559.
25310         * m4/truncf-ieee.m4: New file.
25311         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25313         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25314         * modules/truncf-ieee-tests: New file.
25315         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25316         * tests/test-truncf1.c (main): Remove signbit tests.
25317         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25318         * doc/posix-functions/truncf.texi: Mention the new module.
25319
25320 2010-12-21  Bruno Haible  <bruno@clisp.org>
25321
25322         New module 'ceilf-ieee'.
25323         * modules/ceilf-ieee: New file.
25324         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25325         test whether ceilf works according to ISO C 99 with IEC 60559.
25326         * m4/ceilf-ieee.m4: New file.
25327         * modules/ceilf-ieee-tests: New file.
25328         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25329         * tests/test-ceilf1.c (main): Remove signbit tests.
25330         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25331         * doc/posix-functions/ceilf.texi: Mention the new module.
25332
25333 2010-12-21  Bruno Haible  <bruno@clisp.org>
25334
25335         New module 'floorf-ieee'.
25336         * modules/floorf-ieee: New file.
25337         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25338         test whether floorf works according to ISO C 99 with IEC 60559.
25339         * m4/floorf-ieee.m4: New file.
25340         * modules/floorf-ieee-tests: New file.
25341         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25342         * tests/test-floorf1.c (main): Remove signbit tests.
25343         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25344         * doc/posix-functions/floorf.texi: Mention the new module.
25345
25346 2010-12-21  Bruno Haible  <bruno@clisp.org>
25347
25348         Support for minus zero in autoconf macros.
25349         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25350         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25351         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25352         * tests/minus-zero.h: Update comments.
25353
25354 2010-12-21  Bruno Haible  <bruno@clisp.org>
25355
25356         Tests for module 'ceil'.
25357         * modules/ceil-tests: New file.
25358         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25359         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25360
25361 2010-12-21  Bruno Haible  <bruno@clisp.org>
25362
25363         Tests for module 'floor'.
25364         * modules/floor-tests: New file.
25365         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25366         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25367
25368 2010-12-21  Bruno Haible  <bruno@clisp.org>
25369
25370         math: Fix indentation.
25371         * lib/math.in.h (floorf): Fix indentation.
25372
25373 2010-12-21  Bruno Haible  <bruno@clisp.org>
25374
25375         Fix cross-compilation guesses on Solaris.
25376         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25377         not match "solaris2.10".
25378         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25379         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25380         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25381
25382 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25383
25384         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25385         This fixes a problem observed with the latest coreutils snapshot
25386         that caused a test to fail on Solaris 8.  src/csplit.c's call
25387         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25388         earlier, instead of returning the number of bytes that would have
25389         been generated; this causes csplit to incorrectly report memory
25390         exhaustion.
25391         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25392         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25393         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25394         comments to match.
25395         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25396         Fix typo in matching older versions of Solaris: "solaris2.10"
25397         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25398         only for guessing while cross-compiling.
25399         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25400
25401 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25402
25403         ftoastr: fix comment again
25404         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25406         Also, simplify example a bit by using flags = 0.
25407
25408 2010-12-20  Bruno Haible  <bruno@clisp.org>
25409
25410         round*, trunc*: Update documentation regarding glibc.
25411         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25412         * doc/posix-functions/round.texi: Likewise.
25413         * doc/posix-functions/roundl.texi: Likewise.
25414         * doc/posix-functions/truncf.texi: Likewise.
25415         * doc/posix-functions/trunc.texi: Likewise.
25416         * doc/posix-functions/truncl.texi: Likewise.
25417
25418 2010-12-20  Bruno Haible  <bruno@clisp.org>
25419
25420         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25421         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25422         * doc/posix-functions/round.texi: Likewise.
25423         * doc/posix-functions/roundl.texi: Likewise.
25424
25425 2010-12-20  Bruno Haible  <bruno@clisp.org>
25426
25427         ttyname_r: Add missing declaration on HP-UX 11.
25428         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25429         HAVE_TTYNAME_R.
25430         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25431         declared. Set HAVE_TTYNAME_R always.
25432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25433         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25434         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25435         HAVE_TTYNAME_R.
25436         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25437
25438 2010-12-20  Bruno Haible  <bruno@clisp.org>
25439
25440         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25441         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25442         * doc/posix-functions/getlogin_r.texi: Likewise.
25443         * tests/test-getlogin.c: Include <errno.h>.
25444         (main): Avoid test failure on HP-UX 11.11.
25445         * tests/test-getlogin_r.c (main): Likewise.
25446
25447 2010-12-20  Bruno Haible  <bruno@clisp.org>
25448
25449         getlogin_r: Add missing declaration on HP-UX 11.
25450         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25451         declared also when it exists as a function.
25452         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25453
25454 2010-12-20  Bruno Haible  <bruno@clisp.org>
25455
25456         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25457         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25458         through wcrtomb.
25459
25460 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25461
25462         ftoastr: fix comment
25463         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25464         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25465
25466 2010-12-19  Bruno Haible  <bruno@clisp.org>
25467
25468         isnan: Ensure it is a macro.
25469         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25470         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25471         Solaris.
25472
25473 2010-12-19  Bruno Haible  <bruno@clisp.org>
25474
25475         ldexpl test: Fix link error on OSF/1 5.1.
25476         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25477
25478 2010-12-19  Bruno Haible  <bruno@clisp.org>
25479
25480         wctype: Make it work in C++ mode on OSF/1 5.1.
25481         * lib/wctype.in.h (iswblank): Declare but not define here.
25482         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25483         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25484         * modules/wctype (Files): Add lib/iswblank.c.
25485
25486 2010-12-19  Bruno Haible  <bruno@clisp.org>
25487
25488         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25489         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25490         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25491
25492 2010-12-19  Bruno Haible  <bruno@clisp.org>
25493
25494         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25496         _POSIX_PII_SOCKET.
25497         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25498         * doc/posix-functions/recvfrom.texi: Likewise.
25499         * doc/posix-functions/send.texi: Likewise.
25500         * doc/posix-functions/sendto.texi: Likewise.
25501
25502 2010-12-19  Bruno Haible  <bruno@clisp.org>
25503
25504         tcgetsid: Add missing declaration on OSF/1 5.1.
25505         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25506         HAVE_TCGETSID.
25507         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25508         Don't set HAVE_TCGETSID.
25509         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25510         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25511         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25512         HAVE_TCGETSID.
25513         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25514
25515 2010-12-19  Bruno Haible  <bruno@clisp.org>
25516
25517         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25518         * lib/stdio.in.h: During the include_next statement, let recursive
25519         includes of this file include only the system header file.
25520
25521 2010-12-19  Bruno Haible  <bruno@clisp.org>
25522
25523         iconv_open: Fix regression from 2010-12-04.
25524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25525         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25526
25527 2010-12-19  Bruno Haible  <bruno@clisp.org>
25528
25529         stdbool test: Avoid a gcc warning.
25530         * tests/test-stdbool.c (main): Fail if e1 is false.
25531         Reported by Jim Meyering.
25532
25533 2010-12-19  Jim Meyering  <meyering@redhat.com>
25534
25535         setenv: restore to working order
25536         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25537         mistakenly removed.
25538         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25539         HAVE_SETENV.
25540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25541         HAVE_SETENV.
25542
25543 2010-12-19  Bruno Haible  <bruno@clisp.org>
25544
25545         Document some different function declarations on OSF/1 5.1.
25546         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25547         * doc/posix-functions/inet_ntop.texi: Likewise.
25548         * doc/posix-functions/gethostname.texi: Likewise.
25549         * lib/unistd.in.h (gethostname): Update comment.
25550
25551 2010-12-19  Bruno Haible  <bruno@clisp.org>
25552
25553         doc: Mention vasprintf-posix module.
25554         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25555         the 'vasprintf-posix' module.
25556         * doc/glibc-functions/vasprintf.texi: Likewise.
25557
25558 2010-12-19  Bruno Haible  <bruno@clisp.org>
25559
25560         unsetenv: Add missing declaration on OSF/1 5.1.
25561         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25562         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25563         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25565         not HAVE_UNSETENV.
25566         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25567         HAVE_UNSETENV.
25568         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25569
25570 2010-12-19  Bruno Haible  <bruno@clisp.org>
25571
25572         setenv: Add missing declaration on OSF/1 5.1.
25573         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25574         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25575         declared. Don't set HAVE_SETENV.
25576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25577         not HAVE_SETENV.
25578         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25579         HAVE_SETENV.
25580         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25581
25582 2010-12-19  Bruno Haible  <bruno@clisp.org>
25583
25584         nl_langinfo tests: Avoid gcc warning.
25585         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25586
25587 2010-12-19  Bruno Haible  <bruno@clisp.org>
25588
25589         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25590         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25591         _GL_CXXALIAS_SYS.
25592
25593 2010-12-19  Bruno Haible  <bruno@clisp.org>
25594
25595         stdbool: Relax test.
25596         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25597         address to 'bool' work in static initializer, for compilers other than
25598         GCC.
25599
25600 2010-12-19  Bruno Haible  <bruno@clisp.org>
25601
25602         ftello: Add missing declaration on OSF/1 5.1.
25603         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25604         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25606         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25607         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25608
25609 2010-12-19  Bruno Haible  <bruno@clisp.org>
25610
25611         fseeko: Add missing declaration on OSF/1 5.1.
25612         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25615         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25616         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25617
25618 2010-12-19  Bruno Haible  <bruno@clisp.org>
25619
25620         fchdir: Add missing declaration on OSF/1 5.1.
25621         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25622         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25624         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25625         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25626
25627 2010-12-19  Bruno Haible  <bruno@clisp.org>
25628
25629         relocatable-prog-wrapper: Separate from relocatable-prog.
25630         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25631         uninstall-relocwrapper rule here.
25632         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25633         Reported by Ian Beckwith <ianb@erislabs.net>.
25634
25635 2010-12-19  Bruno Haible  <bruno@clisp.org>
25636
25637         unistr/u8-mbsnlen: Add missing dependency.
25638         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25639         Reported by Ian Beckwith <ianb@erislabs.net>.
25640
25641 2010-12-19  Bruno Haible  <bruno@clisp.org>
25642
25643         iconv: Make it possible again to use this module without 'iconv-h'.
25644         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25645         if it is not defined.
25646         Reported by Ian Beckwith <ianb@erislabs.net>.
25647
25648 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25649
25650         acl: port to Solaris 8 when copying from tmpfs to ufs
25651         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25652         error number.  Problem observed on Solaris 8 with latest
25653         coreutils, with "mv A B", where A is on a tmpfs file system and B
25654         is on a ufs file system.  This caused coreutils' mv/part-symlink
25655         test to fail.
25656
25657         tests: set fail=0 at start
25658         * tests/init.sh (setup_): Move fail=0 initialization here ...
25659         (mktempd_): ... from here, so that tests can rely on fail being
25660         set to 0 initially.  This fixes a problem in coreutils; see:
25661         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25662
25663 2010-12-18  Bruno Haible  <bruno@clisp.org>
25664
25665         memmem-simple: Stylistic changes.
25666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25667         Fix preprocessor directive indentation.
25668
25669 2010-12-15  Pádraig Brady <P@draigBrady.com>
25670
25671         memmem, memmem-simple: reorganize and expand empty needle check
25672         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25673         functional checks to memmem-simple so that one has a fully functional
25674         memmem by using just this module.
25675         Restrict the performance only check to the memmem module.
25676         Also expand the empty needle check to ensure the correct
25677         pointer is returned, not just a non NULL pointer.
25678         * doc/glibc-functions/memmem.texi: Rearrange the portability
25679         documentation to correlate with the rearranged checks.
25680         Clarify exactly how the memmem and memmem-simple modules
25681         relate to each other.
25682
25683 2010-12-15  Pádraig Brady <P@draigBrady.com>
25684             Bruno Haible  <bruno@clisp.org>
25685
25686         Improve cross-compilation guesses for uClibc.
25687         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25688         that uClibc does not have the glibc bug.
25689         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25690         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25691
25692 2010-12-14  Eric Blake  <eblake@redhat.com>
25693
25694         configmake: provide fallbacks for oldest supported autotools
25695         * m4/configmake.m4: New file.
25696         * modules/configmake (Files): Ship it.
25697         (configure.ac): Use it to guarantee fallbacks.
25698
25699 2010-12-13  Pádraig Brady <P@draigBrady.com>
25700
25701         read-file: Improve handling of large files
25702         * lib/read-file.c (fread_file): Minimize realloc()s
25703         for regular files, and better manage sizes around SIZE_MAX.
25704
25705 2010-12-13  Eric Blake  <eblake@redhat.com>
25706
25707         cloexec, fcntl: relax license
25708         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25709         consent from all contributors.
25710         * modules/fcntl (License): Likewise.
25711
25712 2010-12-10  Bruno Haible  <bruno@clisp.org>
25713
25714         Tests for module 'pipe-posix'.
25715         * modules/pipe-posix-tests: New file.
25716         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25717
25718 2010-12-10  Bruno Haible  <bruno@clisp.org>
25719
25720         pipe-posix: Make it work in C++ mode.
25721         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25722         (pipe): Use common idiom, not a macro definition.
25723         * lib/pipe.c: New file.
25724         * m4/pipe.m4: New file.
25725         * modules/pipe-posix (Description): Enhance.
25726         (Files): Add lib/pipe.c, m4/pipe.m4.
25727         (configure.ac): Invoke gl_FUNC_PIPE.
25728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25729         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25730         * tests/test-unistd-c++.cc: Check the signature of pipe.
25731
25732 2010-12-10  Bruno Haible  <bruno@clisp.org>
25733
25734         Rename module 'pipe' to 'spawn-pipe'.
25735         * modules/spawn-pipe: New file, renamed from modules/pipe.
25736         (Files, configure.ac, Makefile.am): Update.
25737         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25738         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25739         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25740         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25741         "spawn-pipe.h" instead of "pipe.h".
25742         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25743         to gl_SPAWN_PIPE.
25744         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25745         (Files, Makefile.am): Update.
25746         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25747         Update.
25748         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25749         Include "spawn-pipe.h" instead of "pipe.h".
25750         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25751         * lib/javacomp.c: Likewise.
25752         * lib/javaversion.c: Likewise.
25753         * lib/pipe-filter-gi.c: Likewise.
25754         * lib/pipe-filter-ii.c: Likewise.
25755         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25756         * modules/javacomp (Depends-on): Likewise.
25757         * modules/javaversion (Depends-on): Likewise.
25758         * modules/pipe-filter-gi (Depends-on): Likewise.
25759         * modules/pipe-filter-ii (Depends-on): Likewise.
25760         * MODULES.html.sh (Executing programs): Update.
25761         * NEWS: Mention the change.
25762
25763 2010-12-10  Eric Blake  <eblake@redhat.com>
25764
25765         pipe-posix: new module
25766         * modules/pipe-posix: New file.
25767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25768         (gl_UNISTD_H): Check for declaration.
25769         * modules/unistd (Makefile.am): Substitute it.
25770         * lib/unistd.in.h (pipe): Provide it for mingw.
25771         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25772         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25773
25774 2010-12-07  Bruno Haible  <bruno@clisp.org>
25775
25776         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25777         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25778         u8_strcmp_gnu.
25779         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25780
25781 2010-12-06  Bruno Haible  <bruno@clisp.org>
25782
25783         Update internal documentation.
25784         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25785
25786 2010-12-04  Bruno Haible  <bruno@clisp.org>
25787
25788         Put more information about failed tests into the test return codes.
25789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25790         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25791         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25793         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25794         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25795         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25796         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25797         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25799         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25800         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25801         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25802         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25803         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25804         returns a bit mask.
25805         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25806         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25807         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25808         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25809         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25810         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25815         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25816         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25819         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25820         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25821         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25822         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25823         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25824         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25826         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25827         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25828         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25829         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25830         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25831         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25832         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25833         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25834         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25835         gl_PRINTF_PRECISION): Likewise.
25836         * m4/regex.m4 (gl_REGEX): Likewise.
25837         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25838         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25839         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25840         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25844         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25845         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25846         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25847         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25848         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25849         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25850         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25851         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25852         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25853         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25856         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25857         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25858         enumerated value.
25859         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25860
25861 2010-12-04  Bruno Haible  <bruno@clisp.org>
25862
25863         Update for Solaris 11 2010-11.
25864         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25865         Express, released in November 2010.
25866
25867 2010-12-04  Bruno Haible  <bruno@clisp.org>
25868
25869         nproc: Relax license.
25870         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25871         and Paul Eggert.
25872         Requested by Ludovic Courtès <ludo@gnu.org>.
25873
25874 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25875
25876         utimecmp: fine-grained src to nearby coarse-grained dest
25877
25878         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25879         and the source is on a file system with higher-resolution time
25880         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25881         not work, and the time stamps are close together, the algorithm to
25882         determine the exact resolution from the read-back mtime was buggy:
25883         it had a "!=" where it should have had an "==".  This bug has been
25884         in the code ever since it was introduced to gnulib.
25885         Problem reported by Dan Jacobson in
25886         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25887
25888 2010-11-30  Bruno Haible  <bruno@clisp.org>
25889
25890         strerror_r-posix: Fix autoconf test.
25891         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25892
25893 2010-11-28  Bruno Haible  <bruno@clisp.org>
25894             Paul Eggert  <eggert@cs.ucla.edu>
25895
25896         Tests for module 'getdomainname'.
25897         * modules/getdomainname-tests: New file.
25898         * tests/test-getdomainname.c: New file, based on
25899         tests/test-gethostname.c.
25900
25901 2010-11-28  Bruno Haible  <bruno@clisp.org>
25902             Paul Eggert  <eggert@cs.ucla.edu>
25903
25904         getdomainname: Use the system function when possible.
25905         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25906         (getdomainname): Replace if needed. Provide the declaration if it is
25907         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25908         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25909         (getdomainname): When the system has getdomainname, call the system
25910         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25911         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25912         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25913         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25914         the function if its second argument is of type 'int' or if it is found
25915         in libnsl.
25916         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25917         <sys/systeminfo.h> and sysinfo().
25918         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25920         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25921         HAVE_GETDOMAINNAME.
25922         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25923         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25924         * doc/glibc-functions/getdomainname.texi: Document the problems with
25925         the getdomainname declaration.
25926
25927 2010-11-28  Bruno Haible  <bruno@clisp.org>
25928
25929         sys_socket: Ensure ss_family field on AIX.
25930         * lib/sys_socket.in.h (ss_family): New macro definition.
25931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25932         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25933         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25934         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25935         * modules/sys_socket (Makefile.am): Substitute
25936         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25937         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25938
25939 2010-11-27  Bruno Haible  <bruno@clisp.org>
25940
25941         readline: Improve configure output.
25942         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25943         "checking for readline..." result understandable.
25944
25945 2010-11-27  Bruno Haible  <bruno@clisp.org>
25946
25947         *printf-posix: Detect a bug on Solaris 10/x86.
25948         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25949         for floating-point output.
25950         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25951         directive.
25952         * tests/test-snprintf-posix.h (test_function): Likewise.
25953         * tests/test-sprintf-posix.h (test_function): Likewise.
25954         * tests/test-vasprintf-posix.c (test_function): Likewise.
25955         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25956         * doc/posix-functions/printf.texi: Likewise.
25957         * doc/posix-functions/snprintf.texi: Likewise.
25958         * doc/posix-functions/sprintf.texi: Likewise.
25959         * doc/posix-functions/vfprintf.texi: Likewise.
25960         * doc/posix-functions/vprintf.texi: Likewise.
25961         * doc/posix-functions/vsnprintf.texi: Likewise.
25962         * doc/posix-functions/vsprintf.texi: Likewise.
25963         * doc/glibc-functions/obstack_printf.texi: Likewise.
25964         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25965
25966 2010-11-27  Bruno Haible  <bruno@clisp.org>
25967
25968         Fix link error when module libunistring-optional is in use.
25969         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25970         * modules/striconveha-tests (Makefile.am): Likewise.
25971
25972 2010-11-27  Bruno Haible  <bruno@clisp.org>
25973
25974         regex: Mention link dependencies.
25975         * modules/regex (Link): New section.
25976         * modules/rpmatch (Link): Likewise.
25977         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25978
25979 2010-11-27  Bruno Haible  <bruno@clisp.org>
25980
25981         ftoastr: Fix compilation error on Solaris.
25982         * lib/ftoastr.c: Include <config.h>.
25983
25984 2010-11-27  Bruno Haible  <bruno@clisp.org>
25985
25986         getloadavg: Update documentation.
25987         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25988
25989 2010-11-27  Bruno Haible  <bruno@clisp.org>
25990
25991         sys_socket: Fix test whether the functions are declared.
25992         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25993         not <sys/select.h>.
25994
25995 2010-11-27  Bruno Haible  <bruno@clisp.org>
25996
25997         getpass: Make sure to get system declaration on some platforms.
25998         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25999         gl_USE_SYSTEM_EXTENSIONS.
26000         * modules/getpass (Depends-on): Add extensions.
26001
26002 2010-11-26  Bruno Haible  <bruno@clisp.org>
26003
26004         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26005         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26006         'iconv' module is present.
26007         (ICONV_CONST): New macro.
26008         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26009         ICONV_CONST.
26010         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26011         set ICONV_CONST.
26012         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26013         here.
26014         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26015         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26016         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26017         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26018         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26019         present.
26020
26021 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26022
26023         ftoastr: comment fix
26024         * lib/ftoastr.c: "little" -> "little or no" in comment
26025
26026 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26027
26028         stdint: port to GCC 4.3 + OSX + Octave
26029         On this platform, stdint.h is buggy and defines int64_t to long
26030         long int.  The replacement defined it to long int, causing
26031         problems with C++ style name mangling.  Instead, trust the system
26032         definition if INT64_MAX is defined, and likewise for the unsigned
26033         variant.   Problem reported by Jarno Rajahalme in
26034         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26035         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26036         and don't mess with int64_t and INT64_MAX in this case.
26037         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26038
26039 2010-11-24  Bruno Haible  <bruno@clisp.org>
26040
26041         doc: Corrections regarding MacOS X 10.4 and 10.5.
26042         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26043         MacOS X.
26044         Reported by Simon Josefsson.
26045
26046 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26047
26048         Uninstall ".bin" files installed by relocwrapper.
26049         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26050         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26051         unless it is already there.
26052
26053 2010-11-21  Bruno Haible  <bruno@clisp.org>
26054
26055         Update for NetBSD 5.0.
26056         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26057         NetBSD; the test fails on NetBSD 5.0.
26058         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26059         about NetBSD.
26060
26061 2010-11-21  Bruno Haible  <bruno@clisp.org>
26062
26063         Update for HP-UX 11.23 and HP-UX 11.31.
26064         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26065         HP-UX.
26066
26067 2010-11-21  Bruno Haible  <bruno@clisp.org>
26068
26069         Update for MacOS X 10.5.
26070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26071         MacOS X; the test fails on MacOS X 10.5.8.
26072         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26073         about MacOS X.
26074
26075 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26076
26077         bootstrap: add bootstrap_sync option.
26078         See discussion at
26079         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26080         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26081         * build-aux/bootstrap: Accept --bootstrap-sync to update
26082         bootstrap if it is not identical to the local gnulib's
26083         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26084         enable this by default.  Accept --no-bootstrap-sync to disable
26085         it.
26086
26087 2010-11-20  Bruno Haible  <bruno@clisp.org>
26088
26089         Ensure that <features.h> is included before __GLIBC__ is tested.
26090         * lib/printf-parse.h: Include <features.h>.
26091         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26092         Reported by Mike Frysinger <vapier@gentoo.org>.
26093
26094         Ensure that <features.h> is included before __GLIBC__ is tested.
26095         * lib/wchar.in.h: Include <features.h>.
26096         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26097         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26098         Reported by Mike Frysinger <vapier@gentoo.org>.
26099
26100         Ensure that <features.h> is included before __GLIBC__ is tested.
26101         * lib/arpa_inet.in.h: Include <features.h>.
26102         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26103         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26104         Reported by Mike Frysinger <vapier@gentoo.org>.
26105
26106         Ensure that <features.h> is included before __GLIBC__ is tested.
26107         * build-aux/link-warning.h: Include <features.h>.
26108         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26109         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26110         Reported by Mike Frysinger <vapier@gentoo.org>.
26111
26112         Ensure that <features.h> is included before __GLIBC__ is tested.
26113         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26114         Reported by Mike Frysinger <vapier@gentoo.org>.
26115
26116 2010-11-20  Bruno Haible  <bruno@clisp.org>
26117
26118         memmem: Fix autoconf test.
26119         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26120
26121 2010-11-20  Bruno Haible  <bruno@clisp.org>
26122
26123         Port to uClibc.
26124         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26125         * lib/fcntl.in.h: Likewise.
26126         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26127         * lib/mbrtowc.c (mbrtowc): Likewise.
26128         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26129         * lib/strerror_r.c: Likewise.
26130         * lib/unistr/u8-strnlen.c: Likewise.
26131         * lib/vasnprintf.c (decimal_point_char): Likewise.
26132         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26133         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26134         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26135         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26136         * tests/test-sigaction.c (handler, main): Likewise.
26137         * lib/freading.h: Treat uClibc like a non-glibc platform.
26138         * lib/freading.c: Likewise.
26139         * lib/gettext.h: Likewise.
26140         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26141         Likewise.
26142         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26143         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26144         * lib/propername.c (proper_name_utf8): Likewise.
26145         * lib/spawn.in.h: Likewise.
26146         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26147         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26148         mem_cd_iconveh_internal): Likewise.
26149         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26150         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26151         strstr, strcasestr): Likewise.
26152         * lib/unicodeio.c (unicode_to_mb): Likewise.
26153         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26154         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26155         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26156         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26157         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26158         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26159         * lib/unistr/u8-stpncpy.c: Likewise.
26160         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26161         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26162         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26163         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26164         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26165         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26166         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26167         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26169         Likewise.
26170         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26171         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26172         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26175         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26176         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26177         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26178         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26179         * tests/test-striconveha.c (main): Likewise.
26180         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26181         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26182         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26183         * doc/posix-functions/getline.texi: Likewise.
26184         Reported by Mike Frysinger <vapier@gentoo.org>.
26185
26186 2010-11-20  Bruno Haible  <bruno@clisp.org>
26187
26188         nproc: Fix condition.
26189         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26190         HAVE_PTHREAD_AFFINITY_NP.
26191
26192 2010-11-20  Bruno Haible  <bruno@clisp.org>
26193
26194         Fix a comment.
26195         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26196
26197 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26198
26199         ftoastr: don't assume snprintf
26200         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26201         Implement a subset of snprintf here, by using sprintf safely.
26202         * modules/ftoastr (Depends-on): Remove snprintf.
26203
26204 2010-11-19  Jim Meyering  <meyering@redhat.com>
26205
26206         test-rename.h: fix compilation failure
26207         * tests/test-rename.h (test_rename): Add omitted "}".
26208
26209 2010-11-17  Jim Meyering  <meyering@redhat.com>
26210
26211         maint.mk: add a URL discussing the no-@acronym policy
26212         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26213
26214 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         ftoastr: depend on snprintf, improve comments
26217         * lib/ftoastr.c: Also mention Loitsch's draft.
26218         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26219         needed in the current implementation, but it might simplify
26220         speeding up the code later.
26221         * modules/ftoastr: Depend on snprintf; this improves portability.
26222         Suggested by Bruno Haible in the same email.
26223
26224         ftoastr: port to hosts lacking strtof and strtold
26225         Problem reported by Bruno Haible in
26226         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26227         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26228         environment and strtold (and presumably strtof) are not available.
26229         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26230         (configure.ac): Require gl_C99_STRTOLD.
26231
26232 2010-11-18  Bruno Haible  <bruno@clisp.org>
26233
26234         c-strtold: Avoid link error on AIX 7.
26235         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26236         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26237         (gl_C_STRTOLD): Test whether strtold_l exists.
26238         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26239
26240 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26241
26242         intprops: new macro INT_BITS_STRLEN_BOUND
26243         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26244         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26245         not exposed.  Also, it uses a slightly tighter bound than before;
26246         though this makes no practical difference, we might as well be as
26247         tight as we easily can.
26248
26249         ftoastr: new module, for lossless conversion of floats to short strings
26250         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26251         * modules/ftoastr: New files.
26252
26253 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26254
26255         bootstrap: port to Solaris sed
26256         * build-aux/bootstrap (get_version): Port to Solaris sed.
26257         See Ralf Wildenhues's note in
26258         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26259
26260 2010-11-14  Jim Meyering  <meyering@redhat.com>
26261
26262         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26263         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26264         and move definition closer to sole use.
26265
26266 2010-11-13  Jim Meyering  <meyering@redhat.com>
26267
26268         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26269         Now we require at least autoconf-2.59, which means the work-around
26270         is no longer needed.
26271         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26272         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26273         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26274         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26275         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26276
26277 2010-11-13  Bruno Haible  <bruno@clisp.org>
26278
26279         rename, renameat: Avoid test failures at NFS mounted locations.
26280         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26281         functions.
26282         (test_rename): Use assert_nonexistent.
26283         * tests/test-rename.c: Include <dirent.h>.
26284         * tests/test-renameat.c: Likewise.
26285         Reported by Gary V. Vaughan <gary@gnu.org>.
26286
26287         rename, renameat: Document Linux bug with NFS
26288         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26289         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26290         * doc/posix-functions/renameat.texi: Likewise.
26291         Suggested by Eric Blake.
26292
26293 2010-11-13  Bruno Haible  <bruno@clisp.org>
26294
26295         rename test: Add comments.
26296         * tests/test-rename.h (test_rename): Add structure and comments.
26297
26298 2010-11-13  Eric Blake  <eblake@redhat.com>
26299
26300         maintainer-makefile: cover a few more files
26301         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26302         scripts generated within C files, for libvirt.
26303
26304 2010-11-13  Bruno Haible  <bruno@clisp.org>
26305
26306         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26307         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26308         character, return the number of bytes that belong together, not always
26309         1.
26310         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26311         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26312         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26313         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26314         number of bytes of an invalid character.
26315         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26316         (main): Invoke it.
26317         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26318         results.
26319         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26320         malformed byte sequences.
26321         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26322         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26323         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26324         Reported by Ben Pfaff and Paolo Bonzini.
26325
26326 2010-11-13  Bruno Haible  <bruno@clisp.org>
26327
26328         openat: Work around glibc bug with fchownat() and empty file names.
26329         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26330         (gl_FUNC_FCHOWNAT): Invoke it.
26331         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26332         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26333         Reported by Gary V. Vaughan <gary@gnu.org>.
26334
26335 2010-11-13  Bruno Haible  <bruno@clisp.org>
26336
26337         openat: Ensure autoconf macro ordering.
26338         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26339         gl_USE_SYSTEM_EXTENSIONS.
26340         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26341
26342 2010-11-13  Bruno Haible  <bruno@clisp.org>
26343
26344         Update comments.
26345         * lib/unistr/u8-check.c: Update file name in comments.
26346         * lib/unistr/u8-mblen.c: Likewise.
26347         * lib/unistr/u8-prev.c: Likewise.
26348         * lib/unistr/u8-strmblen.c: Likewise.
26349         * lib/unistr/u8-strmbtouc.c: Likewise.
26350
26351 2010-11-13  Jim Meyering  <meyering@redhat.com>
26352
26353         tests: avoid test failure on Solaris 10 due to lack of PATH export
26354         * tests/test-update-copyright.sh: Don't forget to export PATH.
26355
26356         init.sh: ensure that IFS is defined, just in case...
26357         * tests/init.sh (setup_): Ensure that IFS is defined,
26358         so that saving and restoring it works as expected.  This
26359         appears to be useful at least for an old version of dash
26360         from a long time ago (RH 6).  See here for details:
26361         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26362
26363         maint.mk: tighten "test a == b" check
26364         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26365         test to files that contain something like #!/bin/sh.
26366         Without this, coreutils would get two false positives in
26367         the comments of C source files.
26368
26369 2010-11-12  Eric Blake  <eblake@redhat.com>
26370
26371         bootstrap: fix typo in previous attempt
26372         * build-aux/bootstrap (buildreq): Correct the grouping.
26373         Reported by Paul Eggert.
26374
26375         maintainer-makefile: prohibit test x == x
26376         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26377         Based on a report by Matthias Bolte.
26378
26379         bootstrap: allow FreeBSD gzip
26380         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26381         which has no '.' and goes to stderr.
26382         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26383         Reported by Matthias Bolte.
26384
26385         maintainer-makefile: check for i18n setup
26386         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26387         will likely work.
26388
26389 2010-11-12  Bruno Haible  <bruno@clisp.org>
26390
26391         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26392         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26393         * lib/nanosleep.c (nanosleep): Likewise.
26394
26395 2010-11-11  Bruno Haible  <bruno@clisp.org>
26396
26397         fcntl-h: Fix for use of C++ on glibc systems.
26398         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26399         also on glibc systems in C++ mode.
26400         Reported by Gary V. Vaughan <gary@gnu.org>.
26401
26402 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26403
26404         mknod: avoid false failure with dash
26405         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26406
26407 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26408
26409         unlink: Fix "is it should" typo in diagnostic.
26410         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26411         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26412
26413 2010-11-11  Bruno Haible  <bruno@clisp.org>
26414
26415         Tests for module 'strerror_r-posix'.
26416         * modules/strerror_r-posix-tests: New file.
26417         * tests/test-strerror_r.c: New file.
26418         * tests/test-string-c++.cc: Check the signature of strerror_r.
26419
26420         New module 'strerror_r-posix'.
26421         * lib/string.in.h (strerror_r): New declaration.
26422         * lib/strerror_r.c: New file.
26423         * m4/strerror_r.m4: New file.
26424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26425         of strerror_r.
26426         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26427         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26428         * modules/strerror_r-posix: New file.
26429         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26430         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26431         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26432         portability problems.
26433
26434 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26435
26436         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26437         line is also considered for output. Quoted function name in shell
26438         command, so temporary files for functions like MyClass::operator()
26439         are removed correctly without errors.
26440
26441 2010-11-09  Bruno Haible  <bruno@clisp.org>
26442
26443         * doc/posix-functions/strerror.texi: List more failing platforms.
26444
26445         * doc/posix-functions/strerror.texi: Add a comment.
26446
26447 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         fdopendir: fix bug on MacOS X when low on file descriptors
26450
26451         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26452         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26453         All callers changed.
26454         (fdopendir): Invoke save_cwd at the top level, not after using
26455         multiple dup() calls to use up file descriptors.  Then retry
26456         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26457         less than the maximum number of open file descriptors, because
26458         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26459         on Mac OS X 10.6.4 for tar 1.24
26460         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26461         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26462         and for tar 1.25
26463         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26464
26465 2010-11-07  Bruno Haible  <bruno@clisp.org>
26466
26467         vasnprintf: Support I flag on glibc systems.
26468         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26469         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26470         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26471         snprintf function.
26472         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26473         glibc systems.
26474         * tests/test-vasnprintf-posix3.c: New file.
26475         * modules/vasnprintf-posix-tests (Files): Add it.
26476         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26477
26478 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26479
26480         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26481         * MODULES.html.sh: For compiler warnings, use name
26482         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26483
26484 2010-11-05  Eric Blake  <eblake@redhat.com>
26485
26486         ceil, floor: avoid spurious failure with icc
26487         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26488         [denormals-as-zero] when optimizing without -mieee-fp option.
26489         * tests/test-floorf2.c (floorf_reference): Likewise.
26490         * tests/test-ceilf1.c (dummy): New function.
26491         (main): Use it to outsmart icc's optimization.
26492         * tests/test-floorf1.c (dummy, main): Likewise.
26493
26494         tests: require working signbit
26495         * modules/ceilf-tests (Depends-on): Add signbit.
26496         * modules/ceill-tests (Depends-on): Likewise.
26497         * modules/floorf-tests (Depends-on): Likewise.
26498         * modules/floorl-tests (Depends-on): Likewise.
26499         * modules/round-tests (Depends-on): Likewise.
26500         * modules/roundf-tests (Depends-on): Likewise.
26501         * modules/roundl-tests (Depends-on): Likewise.
26502         * modules/trunc-tests (Depends-on): Likewise.
26503         * modules/truncf-tests (Depends-on): Likewise.
26504         * modules/truncl-tests (Depends-on): Likewise.
26505
26506         strtod: work around icc bug
26507         * lib/strtod.c (minus_zero): Define to working value.
26508         (strtod): Use it to avoid icc bug.
26509
26510         copysign: enhance tests
26511         * modules/copysign-tests (Files): Add minus-zero.h.
26512         * tests/test-copysign.c (main): Also test zeros.
26513
26514 2010-11-04  Eric Blake  <eblake@redhat.com>
26515
26516         ceil, floor, round, trunc: enhance tests of -0
26517         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26518         * tests/test-ceill.c (main): Likewise.
26519         * tests/test-floorf1.c (main): Likewise.
26520         * tests/test-floorl.c (main): Likewise.
26521         * tests/test-round1.c (main): Likewise.
26522         * tests/test-roundf1.c (main): Likewise.
26523         * tests/test-roundl.c (main): Likewise.
26524         * tests/test-trunc1.c (main): Likewise.
26525         * tests/test-truncf1.c (main): Likewise.
26526         * tests/test-truncl.c (main): Likewise.
26527
26528 2010-11-04  Eric Blake  <eblake@redhat.com>
26529
26530         frexp, tests: work around ICC bug with -zero
26531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26532         works with more compilers.
26533         * tests/minus-zero.h: New file.
26534         * modules/ceilf-tests (Files): Include it.
26535         * modules/ceill-tests (Files): Likewise.
26536         * modules/floorf-tests (Files): Likewise.
26537         * modules/floorl-tests (Files): Likewise.
26538         * modules/frexp-nolibm-tests (Files): Likewise.
26539         * modules/frexp-tests (Files): Likewise.
26540         * modules/frexpl-nolibm-tests (Files): Likewise.
26541         * modules/frexpl-tests (Files): Likewise.
26542         * modules/isnan-tests (Files): Likewise.
26543         * modules/isnand-nolibm-tests (Files): Likewise.
26544         * modules/isnand-tests (Files): Likewise.
26545         * modules/isnanf-nolibm-tests (Files): Likewise.
26546         * modules/isnanf-tests (Files): Likewise.
26547         * modules/isnanl-nolibm-tests (Files): Likewise.
26548         * modules/isnanl-tests (Files): Likewise.
26549         * modules/round-tests (Files): Likewise.
26550         * modules/roundf-tests (Files): Likewise.
26551         * modules/roundl-tests (Files): Likewise.
26552         * modules/ldexpl-tests (Files): Likewise.
26553         * modules/signbit-tests (Files): Likewise.
26554         * modules/snprintf-posix-tests (Files): Likewise.
26555         * modules/sprintf-posix-tests (Files): Likewise.
26556         * modules/strtod-tests (Files): Likewise.
26557         * modules/trunc-tests (Files): Likewise.
26558         * modules/truncf-tests (Files): Likewise.
26559         * modules/truncl-tests (Files): Likewise.
26560         * modules/vsnprintf-posix-tests (Files): Likewise.
26561         * modules/vsprintf-posix-tests (Files): Likewise.
26562         * modules/vasnprintf-posix-tests (Files): Likewise.
26563         * modules/vasprintf-posix-tests (Files): Likewise.
26564         * tests/test-ceilf1.c (main): Use it.
26565         * tests/test-ceill.c (main): Likewise.
26566         * tests/test-floorf1.c (main): Likewise.
26567         * tests/test-floorl.c (main): Likewise.
26568         * tests/test-frexp.c (main): Likewise.
26569         * tests/test-frexpl.c (main): Likewise.
26570         * tests/test-isnan.c (main): Likewise.
26571         * tests/test-isnand.h (main): Likewise.
26572         * tests/test-isnanf.h (main): Likewise.
26573         * tests/test-isnanl.h (main): Likewise.
26574         * tests/test-ldexpl.c (main): Likewise.
26575         * tests/test-round.c (main): Likewise.
26576         * tests/test-roundf.c (main): Likewise.
26577         * tests/test-roundl.c (main): Likewise.
26578         * tests/test-signbit.c (test_signbitf, test_signbitd)
26579         (test_signbitl): Likewise.
26580         * tests/test-snprintf-posix.h (test_function): Likewise.
26581         * tests/test-sprintf-posix.h (test_function): Likewise.
26582         * tests/test-strtod.c (main): Likewise.
26583         * tests/test-trunc1.c (main): Likewise.
26584         * tests/test-truncf1.c (main): Likewise.
26585         * tests/test-truncl.c (main): Likewise.
26586
26587         isnanl: work around icc bug
26588         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26589
26590 2010-11-03  Eric Blake  <eblake@redhat.com>
26591
26592         tests: fix compiler warnings
26593         * tests/test-getopt.h (test_getopt): Fix condition.
26594         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26595         * tests/test-pipe2.c (main): Likewise.
26596         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26597
26598         utimens: fix broken m4 test
26599         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26600
26601 2010-10-28  Bruno Haible  <bruno@clisp.org>
26602
26603         posix_spawn*, getdtablesize: Relax license.
26604         * modules/posix_spawn (License): Change to LGPLv2+.
26605         * modules/posix_spawnp (License): Likewise.
26606         * modules/posix_spawn-internal (License): Likewise.
26607         * modules/posix_spawnattr_init (License): Likewise.
26608         * modules/posix_spawnattr_getflags (License): Likewise.
26609         * modules/posix_spawnattr_setflags (License): Likewise.
26610         * modules/posix_spawnattr_getpgroup (License): Likewise.
26611         * modules/posix_spawnattr_setpgroup (License): Likewise.
26612         * modules/posix_spawnattr_getschedparam (License): Likewise.
26613         * modules/posix_spawnattr_setschedparam (License): Likewise.
26614         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26615         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26616         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26617         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26618         * modules/posix_spawnattr_getsigmask (License): Likewise.
26619         * modules/posix_spawnattr_setsigmask (License): Likewise.
26620         * modules/posix_spawnattr_destroy (License): Likewise.
26621         * modules/posix_spawn_file_actions_init (License): Likewise.
26622         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26623         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26624         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26625         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26626         * modules/getdtablesize (License): Likewise.
26627         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26628
26629 2010-10-26  Bruno Haible  <bruno@clisp.org>
26630
26631         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26632         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26633         Cygwin and mingw.
26634         Suggested by Eric Blake.
26635
26636 2010-10-26  Bruno Haible  <bruno@clisp.org>
26637
26638         stdio: Work around compilation error due to renameat() on Solaris 10.
26639         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26640         * lib/renameat.c: Don't include <unistd.h> here.
26641         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26642         Reported by Paul Eggert and Eric Blake.
26643
26644 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26645
26646         renameat: port to Solaris 10, which declares renameat in unistd.h
26647
26648         * lib/renameat.c: Include unistd.h before stdio.h, because
26649         Solaris 10 declares renameat in unistd.h.  Problem encountered
26650         when building GNU tar 1.24 on Solaris 10.
26651
26652 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26653
26654         fdopendir: fix C89 compilation
26655         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26656         compilers.
26657
26658 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26659
26660         inttostr: simplify by removing unnecessary redundancy
26661         * lib/anytostr.c: Don't include verify.h.
26662         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26663         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26664         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26665         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26666         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26667         Likewise.
26668         * modules/inttostr (Depends-on): Remove 'verify'.
26669
26670 2010-10-23  Bruno Haible  <bruno@clisp.org>
26671
26672         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26673         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26674         Reported by Eric Blake.
26675
26676 2010-10-23  Bruno Haible  <bruno@clisp.org>
26677
26678         Tests: Fix LOCALE_JA on MirBSD 10.
26679         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26680         to an UTF-8 locale.
26681         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26682         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26683         Reported by Eric Blake.
26684
26685 2010-10-21  Bruno Haible  <bruno@clisp.org>
26686
26687         nl_langinfo test: Avoid test failure on NetBSD 5.
26688         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26689         Reported by Eric Blake.
26690
26691 2010-10-21  Eric Blake  <eblake@redhat.com>
26692
26693         c-stack: work around libsigsegv 2.8 bug
26694         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26695         overflow on at least PowerPC64.
26696
26697 2010-10-17  Bruno Haible  <bruno@clisp.org>
26698
26699         userspec: Drop redundant file.
26700         * modules/userspec (Files): Remove lib/inttostr.h.
26701
26702 2010-10-17  Bruno Haible  <bruno@clisp.org>
26703
26704         nl_langinfo tests: Silence some warnings.
26705         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26706         Reported by Jim Meyering.
26707
26708 2010-10-17  Bruno Haible  <bruno@clisp.org>
26709
26710         Make use of GCC's attribute __alloc_size__.
26711         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26712         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26713         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26714         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26715         __alloc_size__.
26716         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26717         Suggested by Jim Meyering.
26718
26719 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26720
26721         bootstrap: anchor .gitignore entries.
26722         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26723         with...
26724         (insert_vc_ignore): ... this new function, which prepends `/' to
26725         all .gitignore entries before passing them to
26726         insert_sorted_if_absent.
26727
26728 2010-10-16  Bruno Haible  <bruno@clisp.org>
26729
26730         nextafter: Fix configure check.
26731         * modules/nextafter (configure.ac): Correct expected prototype.
26732
26733 2010-10-16  Bruno Haible  <bruno@clisp.org>
26734
26735         termios: Update documentation.
26736         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26737
26738 2010-10-16  Bruno Haible  <bruno@clisp.org>
26739
26740         tests: Make them compile with TinyCC.
26741         * tests/test-strstr.c (main): Remove parentheses around array
26742         initializer.
26743
26744 2010-10-15  Eric Blake  <eblake@redhat.com>
26745
26746         ignore-value: make header idempotent
26747         * lib/ignore-value.h: Add double-inclusion guards.
26748         Reported by Stefan Berger.
26749
26750 2010-10-15  Jim Meyering  <meyering@redhat.com>
26751
26752         GNUmakefile: handle "stable" target, not "major"
26753         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26754         lists in maint.mk and announce-gen.  Without this, "make stable"
26755         would fail to ensure that $(VERSION) is up to date.
26756
26757 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26758
26759         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26760         & co.
26761
26762 2010-10-14  Bruno Haible  <bruno@clisp.org>
26763
26764         vasnprintf: Don't set errno to 0.
26765         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26766         block that sets it to 0.
26767         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26768
26769 2010-10-14  Bruno Haible  <bruno@clisp.org>
26770
26771         socketlib: Fix.
26772         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26773         gl_PREREQ_SYS_H_WINSOCK2.
26774         Reported by Ian Beckwith <ianb@erislabs.net>.
26775
26776 2010-10-13  Jim Meyering  <meyering@redhat.com>
26777
26778         test-select-stdin.c: avoid warn_unused_result warnings
26779         * tests/test-select-stdin.c: Include "macros.h".
26780         ASSERT that read and fflush succeed.
26781
26782 2010-10-13  Jim Meyering  <meyering@redhat.com>
26783
26784         git-version-gen: do require git-VC'd files in cwd
26785         * build-aux/git-version-gen: Reject a git version string
26786         if there are no commits associated with the current directory.
26787         This avoids an unlikely false-positive (unrelated dir whose parent
26788         repository also contains a tag matching v*), as pointed out
26789         by Giuseppe Scrivano in
26790         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26791
26792 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         argv-iter: omit nonconforming declaration
26795         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26796         enum arg_iter_err declaration, which doesn't conform to C99.
26797         Solaris 10 cc warns about this.
26798
26799 2010-10-13  Eric Blake  <eblake@redhat.com>
26800
26801         termios: fix compilation on mingw
26802         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26803         (gl_TERMIOS_H): Adjust it on mingw.
26804         * modules/termios (Makefile.am): Substitute new key.
26805         * lib/termios.in.h (includes): Make include_next conditional.
26806         * doc/posix-headers/termios.texi (termios.h): Update
26807         documentation.
26808         Reported by Daniel P. Berrange.
26809
26810 2010-10-13  Jim Meyering  <meyering@redhat.com>
26811
26812         git-version-gen: don't require that .git/ be in the current dir
26813         * build-aux/git-version-gen: Adjust this script so that it works
26814         when run from any working directory beneath the top-level .git/-
26815         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26817
26818         test-select: avoid warn_unused_result warnings
26819         * tests/test-select.c: Include "macros.h".
26820         ASSERT that each call to read, write, and pipe succeeds.
26821         While not technically required, also check each "close".
26822         * modules/select-tests (Files): Add tests/macros.h.
26823
26824         test-symlinkat: remove declaration of unused local
26825         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26826
26827         test-inttostr: avoid shadowing warnings
26828         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26829         and use malloc rather than the stack for the same reason as
26830         mentioned in the comment justifying the other allocation.
26831
26832 2010-10-11  Bruno Haible  <bruno@clisp.org>
26833
26834         stdlib: Allow multiple gnulib generated replacements to coexist.
26835         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26836         Reported by Sam Steingold <sds@gnu.org>.
26837
26838 2010-10-11  Jim Meyering  <meyering@redhat.com>
26839
26840         fix a documentation typo
26841         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26842
26843 2010-10-11  Eric Blake  <eblake@redhat.com>
26844
26845         futimens: work around Solaris 11 bug
26846         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26847         * tests/test-futimens.h (test_futimens): Enhance, rather than
26848         weaken test.
26849         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26850
26851 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26852
26853         Indentation.
26854         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26855         higher-level operators more to the left.
26856
26857 2010-10-11  Jim Meyering  <meyering@redhat.com>
26858
26859         test-futimens: avoid unwarranted test failure on Solaris 5.11
26860         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26861         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26862         because it tries to dereference the NULL name argument.
26863
26864 2010-10-11  Bruno Haible  <bruno@clisp.org>
26865
26866         Indentation.
26867         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26868         indentation.
26869
26870 2010-10-11  Jim Meyering  <meyering@redhat.com>
26871
26872         spawn.in.h: make indentation consistent with parentheses
26873         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26874         Make indentation consistent with parentheses.
26875
26876 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26877
26878         Fix mismatched parens in previous commit
26879         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26880         parens.
26881
26882 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26883
26884         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26885
26886         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26887         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26888         * lib/malloca.c: Include "verify.h".
26889         (verify1): Remove, replacing with a verify call.
26890         * lib/relocwrapper.c (verify1): Likewise.
26891         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26892         Likewise.
26893         * modules/malloca (Depends-on): Add 'verify'.
26894         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26895         * modules/vasnprintf (Depends-on): Add 'verify'.
26896         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26898         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26899         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26900         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26901         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26902         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26903
26904         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26905
26906         Formerly the style was sometimes 2*X - 1, because the C standard
26907         was wrongly thought to disallow ?: in integral constant expressions.
26908         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26909         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26910         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26911         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26912         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26913         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26914         verify that time_t cannot be floating.
26915
26916 2010-10-08  Eric Blake  <eblake@redhat.com>
26917
26918         time: enforce recent POSIX ruling that time_t is integral
26919         * lib/time.in.h (__time_t_must_be_integral): Detect any
26920         problematic systems, allowing the rest of gnulib to assume POSIX.
26921
26922 2010-10-08  Jim Meyering  <meyering@redhat.com>
26923
26924         fdopendir: fix a bug on systems lacking openat and /proc support
26925         OpenBSD 4.7 is one such system.  The most noticeable effect was
26926         failure of any application making nontrivial use of fts: rm, du,
26927         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26928           ./rm: traversal failed: `a': Bad file descriptor
26929         Debugging that, you see that even though FD 6 was closed just
26930         prior to the opendir call in fd_clone_opendir, its resulting
26931         dir->dd_fd was 8, rather than the expected value of 6:
26932
26933         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26934         93                close (fd);
26935         (gdb) n
26936         94                dir = fd_clone_opendir (dupfd);
26937         (gdb) n
26938         95                saved_errno = errno;
26939         (gdb) p dir->dd_fd
26940         $11 = 8
26941
26942         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26943         The problem is that on OpenBSD, fd_clone_opendir has to resort
26944         to using the old-style save/restore CWD mechanism, due to its
26945         lack of openat/proc support, and *that* would steal the FD (6)
26946         that opendir was supposed to use.
26947
26948         The fix is to squirrel away the desired FD so that save_cwd uses a
26949         different one, and then free the dest FD right before calling opendir.
26950         That guarantees opendir will use the required file descriptor.
26951
26952         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26953
26954 2010-10-08  Bruno Haible  <bruno@clisp.org>
26955
26956         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26957         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26958
26959 2010-10-08  Bruno Haible  <bruno@clisp.org>
26960
26961         nanosleep: Make replacement POSIX compliant.
26962         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26963         is out of range.
26964         Reported by Jim Meyering.
26965
26966 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26967
26968         bootstrap: add hook for altering gnulib.mk, for Bison
26969         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26970         the Bison bootstrapping process can rewrite file names and variables
26971         in this file before later parts of 'bootstrap' use the file.
26972         Bison wants to include lib/gnulib.mk from the top-level makefile,
26973         so it needs the file names in this file to be relative to the top
26974         level, not relative to lib; plus it needs variable names to be
26975         rewritten.
26976         (slurp): Use the new function.
26977
26978         bootstrap: reformat for readability
26979         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26980
26981 2010-10-08  Eric Blake  <eblake@redhat.com>
26982
26983         docs: update cygwin progress
26984         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26985         1.7.7.
26986         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26987         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26988         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26989         * doc/posix-functions/carg.texi (carg): Likewise.
26990         * doc/posix-functions/cargf.texi (cargf): Likewise.
26991         * doc/posix-functions/casin.texi (casin): Likewise.
26992         * doc/posix-functions/casinf.texi (casinf): Likewise.
26993         * doc/posix-functions/casinh.texi (casinh): Likewise.
26994         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26995         * doc/posix-functions/catan.texi (catan): Likewise.
26996         * doc/posix-functions/catanf.texi (catanf): Likewise.
26997         * doc/posix-functions/catanh.texi (catanh): Likewise.
26998         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26999         * doc/posix-functions/ccos.texi (ccos): Likewise.
27000         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27001         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27002         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27003         * doc/posix-functions/cexp.texi (cexp): Likewise.
27004         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27005         * doc/posix-functions/cimag.texi (cimag): Likewise.
27006         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27007         * doc/posix-functions/clog.texi (clog): Likewise.
27008         * doc/posix-functions/clogf.texi (clogf): Likewise.
27009         * doc/posix-functions/conj.texi (conj): Likewise.
27010         * doc/posix-functions/conjf.texi (conjf): Likewise.
27011         * doc/posix-functions/cpow.texi (cpow): Likewise.
27012         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27013         * doc/posix-functions/cproj.texi (cproj): Likewise.
27014         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27015         * doc/posix-functions/creal.texi (creal): Likewise.
27016         * doc/posix-functions/crealf.texi (crealf): Likewise.
27017         * doc/posix-functions/csin.texi (csin): Likewise.
27018         * doc/posix-functions/csinf.texi (csinf): Likewise.
27019         * doc/posix-functions/csinh.texi (csinh): Likewise.
27020         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27021         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27022         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27023         * doc/posix-functions/ctan.texi (ctan): Likewise.
27024         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27025         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27026         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27027         * doc/posix-headers/complex.texi (complex.h): Likewise.
27028
27029 2010-10-07  Jim Meyering  <meyering@redhat.com>
27030
27031         parse-datetime: avoid compilation failure on OpenBSD 4.7
27032         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27033         This works around a compilation failure on OpenBSD 4.7:
27034         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27035
27036 2010-10-07  Eric Blake  <eblake@redhat.com>
27037
27038         docs: update cygwin progress
27039         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27040         1.7.6.
27041         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27042         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27043         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27044         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27045         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27046         Likewise.
27047         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27048         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27049         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27050         Likewise.
27051         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27052         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27053         Likewise.
27054         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27055         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27056         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27057         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27058         Likewise.
27059         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27060         Likewise.
27061         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27062
27063         docs: update parse-datetime history
27064         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27065         documentation of this function's history and alternatives.
27066
27067         cygwin: use more robust version check
27068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27069         exclude an eventual cygwin 1.9.1.
27070         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27071         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27072         (gl_FUNC_STRCASESTR): Likewise.
27073         Reported by Bruno Haible.
27074
27075 2010-10-06  Bruno Haible  <bruno@clisp.org>
27076
27077         string, sys_select: Avoid #including large headers unless necessary.
27078         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27079         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27080         OSF/1, BeOS, Haiku.
27081         Reported by Jim Meyering.
27082
27083 2010-10-05  Eric Blake  <eblake@redhat.com>
27084
27085         memmem, strstr, strcasestr: fix bug with long periodic needle
27086         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27087         periodic needle having false positive.
27088         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27089         and cygwin 1.7.7.
27090         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27092         (gl_FUNC_STRCASESTR): Likewise.
27093         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27094         * tests/test-memmem.c (main): Expose the bug.
27095         * tests/test-strcasestr.c (main): Likewise.
27096         * tests/test-strstr.c (main): Likewise.
27097         * tests/test-c-strcasestr.c (main): Likewise.
27098         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27099         * doc/posix-functions/strstr.texi (strstr): Likewise.
27100         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27101         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27102
27103 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27104
27105         parse-datetime: do some more renaming
27106         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27107         parse_datetime, not get_date.  Mention the renaming.
27108         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27109         in comments.
27110         * m4/bison.m4: Likewise.
27111
27112 2010-10-05  Eric Blake  <eblake@redhat.com>
27113
27114         parse-datetime: better name than get_date
27115         * NEWS: Reword the deprecation notice.
27116         * modules/get_date: Rename to modules/parse-datetime.
27117         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27118         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27119         * lib/get_date.y: Rename to lib/parse-datetime.y.
27120         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27121         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27122         * doc/getdate.texi: Provide fallback wrapper.
27123         * lib/getdate.h: Move guts, and wrap...
27124         * lib/parse-datetime.h: ...new file.
27125         * lib/parse-datetime.y (get_date): Rename...
27126         (parse_datetime): ...to this.
27127         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27128         (gl_PARSE_DATETIME): ...to this.
27129         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27130         documentation.
27131         * modules/getdate (Files): Provide fallback docs and header.
27132         (Notice, Depends-on): Update references.
27133         * tests/test-parse-datetime.c: Likewise.
27134         * DEPENDENCIES: Likewise.
27135         * MODULES.html.sh (Date and time <time.h>): Likewise.
27136         * doc/parse-datetime.texi (Date input formats)
27137         (Authors of parse_datetime): Likewise.
27138         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27139         (Include): Likewise.
27140         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27141         * gnulib-tool: Likewise.
27142         * m4/bison.m4 (gl_BISON): Likewise.
27143         Suggested by Bruno Haible.
27144
27145 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27146
27147         more ports to Solaris tr, which needs [] around ranges
27148         * gnulib-tool: Solaris tr needs [] around ranges.
27149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27150         * tests/test-pipe-filter-gi1.c (main): Likewise.
27151         * tests/test-pipe-filter-ii1.c (main): Likewise.
27152
27153 2010-10-05  Eric Blake  <eblake@redhat.com>
27154
27155         bootstrap: fix Solaris regression
27156         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27157         around ranges.
27158         Reported by Pádraig Brady.
27159
27160         bootstrap: work with pkg-config
27161         * build-aux/bootstrap (check_versions): Also transliterate - in
27162         prerequisite name.
27163         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27164         prerequisites that were already found, to avoid confusion.
27165         Reported by Justin Clift.
27166
27167         faccessat: remove unused wrappers
27168         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27169         presence of these wrappers dragged in -lgen on Solaris.
27170         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27171
27172 2010-10-05  Jim Meyering  <meyering@redhat.com>
27173
27174         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27175         * Makefile (sc_pragma_columns): New syntax-check rule.
27176
27177 2010-10-04  Bruno Haible  <bruno@clisp.org>
27178
27179         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27180         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27181         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27182         Reported by Bruce Korb and Eric Blake.
27183
27184 2010-10-04  Bruno Haible  <bruno@clisp.org>
27185
27186         threadlib: Make option --with-libpth-prefix work.
27187         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27188         use $LIBPTH, not just -lpth.
27189
27190 2010-10-04  Bruno Haible  <bruno@clisp.org>
27191
27192         Avoid line length limitation from HP NonStop system header files.
27193         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27194         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27195         * lib/ctype.in.h: Likewise.
27196         * lib/dirent.in.h: Likewise.
27197         * lib/errno.in.h: Likewise.
27198         * lib/fcntl.in.h: Likewise.
27199         * lib/float.in.h: Likewise.
27200         * lib/getopt.in.h: Likewise.
27201         * lib/iconv.in.h: Likewise.
27202         * lib/inttypes.in.h: Likewise.
27203         * lib/langinfo.in.h: Likewise.
27204         * lib/locale.in.h: Likewise.
27205         * lib/math.in.h: Likewise.
27206         * lib/netdb.in.h: Likewise.
27207         * lib/netinet_in.in.h: Likewise.
27208         * lib/poll.in.h: Likewise.
27209         * lib/pthread.in.h: Likewise.
27210         * lib/pty.in.h: Likewise.
27211         * lib/sched.in.h: Likewise.
27212         * lib/se-selinux.in.h: Likewise.
27213         * lib/search.in.h: Likewise.
27214         * lib/signal.in.h: Likewise.
27215         * lib/spawn.in.h: Likewise.
27216         * lib/stdarg.in.h: Likewise.
27217         * lib/stddef.in.h: Likewise.
27218         * lib/stdint.in.h: Likewise.
27219         * lib/stdio.in.h: Likewise.
27220         * lib/stdlib.in.h: Likewise.
27221         * lib/string.in.h: Likewise.
27222         * lib/strings.in.h: Likewise.
27223         * lib/sys_file.in.h: Likewise.
27224         * lib/sys_ioctl.in.h: Likewise.
27225         * lib/sys_select.in.h: Likewise.
27226         * lib/sys_socket.in.h: Likewise.
27227         * lib/sys_stat.in.h: Likewise.
27228         * lib/sys_time.in.h: Likewise.
27229         * lib/sys_times.in.h: Likewise.
27230         * lib/sys_utsname.in.h: Likewise.
27231         * lib/sys_wait.in.h: Likewise.
27232         * lib/sysexits.in.h: Likewise.
27233         * lib/termios.in.h: Likewise.
27234         * lib/time.in.h: Likewise.
27235         * lib/unistd.in.h: Likewise.
27236         * lib/wchar.in.h: Likewise.
27237         * lib/wctype.in.h: Likewise.
27238         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27239         * modules/ctype (Makefile.am): Likewise.
27240         * modules/dirent (Makefile.am): Likewise.
27241         * modules/errno (Makefile.am): Likewise.
27242         * modules/fcntl-h (Makefile.am): Likewise.
27243         * modules/float (Makefile.am): Likewise.
27244         * modules/getopt-posix (Makefile.am): Likewise.
27245         * modules/iconv-h (Makefile.am): Likewise.
27246         * modules/inttypes (Makefile.am): Likewise.
27247         * modules/langinfo (Makefile.am): Likewise.
27248         * modules/locale (Makefile.am): Likewise.
27249         * modules/math (Makefile.am): Likewise.
27250         * modules/netdb (Makefile.am): Likewise.
27251         * modules/netinet_in (Makefile.am): Likewise.
27252         * modules/poll-h (Makefile.am): Likewise.
27253         * modules/pthread (Makefile.am): Likewise.
27254         * modules/pty (Makefile.am): Likewise.
27255         * modules/sched (Makefile.am): Likewise.
27256         * modules/search (Makefile.am): Likewise.
27257         * modules/selinux-h (Makefile.am): Likewise.
27258         * modules/signal (Makefile.am): Likewise.
27259         * modules/spawn (Makefile.am): Likewise.
27260         * modules/stdarg (Makefile.am): Likewise.
27261         * modules/stddef (Makefile.am): Likewise.
27262         * modules/stdint (Makefile.am): Likewise.
27263         * modules/stdio (Makefile.am): Likewise.
27264         * modules/stdlib (Makefile.am): Likewise.
27265         * modules/string (Makefile.am): Likewise.
27266         * modules/strings (Makefile.am): Likewise.
27267         * modules/sys_file (Makefile.am): Likewise.
27268         * modules/sys_ioctl (Makefile.am): Likewise.
27269         * modules/sys_select (Makefile.am): Likewise.
27270         * modules/sys_socket (Makefile.am): Likewise.
27271         * modules/sys_stat (Makefile.am): Likewise.
27272         * modules/sys_time (Makefile.am): Likewise.
27273         * modules/sys_times (Makefile.am): Likewise.
27274         * modules/sys_utsname (Makefile.am): Likewise.
27275         * modules/sys_wait (Makefile.am): Likewise.
27276         * modules/sysexits (Makefile.am): Likewise.
27277         * modules/termios (Makefile.am): Likewise.
27278         * modules/time (Makefile.am): Likewise.
27279         * modules/unistd (Makefile.am): Likewise.
27280         * modules/wchar (Makefile.am): Likewise.
27281         * modules/wctype (Makefile.am): Likewise.
27282
27283 2010-10-04  Bruno Haible  <bruno@clisp.org>
27284
27285         read-file tests: Avoid a test failure on NonStop Kernel.
27286         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27287         a regular file.
27288         Reported by Joachim Schmitz <schmitz@hp.com>.
27289
27290 2010-10-03  Bruno Haible  <bruno@clisp.org>
27291
27292         gnulib-tool: Fixes for --create-testdir with --libtool.
27293         * gnulib-tool (func_get_automake_snippet): Don't augment
27294         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27295         an executable.
27296         (func_create_testdir): Handle module 'alloca' like func_import.
27297         Reported by Bruce Korb <bruce.korb@gmail.com>.
27298
27299 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27300
27301         Avoid some lines longer than 80 characters.
27302         * lib/stdint.in.h: Break long comment lines.
27303         * lib/math.in.h: Likewise.
27304         (_GL_NUM_UINT_WORDS): New macro, for readability.
27305         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27306         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27307         * lib/stdlib.in.h: Likewise.
27308         * lib/spawn.in.h: Likewise.
27309         * lib/sys_socket.in.h: Update an URL.
27310         * lib/sys_stat.in.h: Break long line.
27311
27312 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27313
27314         Improve pmccabe2html.
27315         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27316         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27317         when the sources change. Remove the line in the HTML about "Used
27318         ranges" (which implied that there might be other unused ranges),
27319         rename "Resume" to "Summary" (easier to understand for more users).
27320         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27321         styles, and some unnecessary blank lines.
27322
27323 2010-10-03  Bruno Haible  <bruno@clisp.org>
27324             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27325
27326         acl: Add support for ACLs on NonStop Kernel.
27327         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27328         Check whether the function aclsort() exists.
27329         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27330         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27331         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27332         (acl_nontrivial [HAVE_ACLSORT]: New function.
27333         (file_has_acl): Implement for NonStop Kernel.
27334         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27335         (qset_acl): Implement for NonStop Kernel.
27336         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27337         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27338         (main): Implement for NonStop Kernel.
27339         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27340         Kernel. Handle this flavor.
27341         * tests/test-set-mode-acl.sh: Likewise.
27342         * tests/test-copy-acl.sh: Likewise.
27343         * tests/test-copy-file.sh: Likewise.
27344
27345 2010-10-03  Bruno Haible  <bruno@clisp.org>
27346
27347         Info about ACLs on NonStop Kernel.
27348         * doc/acl-resources.txt: Add info about NonStop Kernel.
27349         References by Joachim Schmitz <schmitz@hp.com>.
27350
27351 2010-10-02  Bruno Haible  <bruno@clisp.org>
27352
27353         Define missing EDQUOT on NonStop Kernel.
27354         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27355         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27356         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27357         missing.
27358         * doc/posix-headers/errno.texi: Mention the NSK bug.
27359         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27360         Reported by Joachim Schmitz <schmitz@hp.com>.
27361
27362 2010-10-02  Bruno Haible  <bruno@clisp.org>
27363
27364         Update doc for POSIX:2008.
27365         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27366         Update URL of POSIX specification.
27367
27368 2010-10-02  Bruno Haible  <bruno@clisp.org>
27369
27370         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27371         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27372         from gnulib, not from Automake.
27373
27374 2010-10-02  Bruno Haible  <bruno@clisp.org>
27375
27376         New module 'system-posix'.
27377         * modules/system-posix: New file.
27378         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27379         module is present.
27380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27381         GNULIB_SYSTEM_POSIX.
27382         * modules/stdlib (Depends-on): Remove sys_wait.
27383         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27384         * doc/posix-functions/system.texi: Mention the new module.
27385         * doc/posix-headers/stdlib.texi: Likewise.
27386         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27387         define test_sys_wait_macros to a no-op.
27388         Reported by Sam Steingold <sds@gnu.org>.
27389
27390 2010-09-30  Bruno Haible  <bruno@clisp.org>
27391
27392         More renaming from 'getdate' to 'get_date'.
27393         * doc/get_date.texi: Renamed from doc/getdate.texi.
27394         * modules/get_date (Files): Update.
27395         * MODULES.html.sh (Date and time <time.h>): Update.
27396         * DEPENDENCIES: Update.
27397         * gnulib-tool: Update comment.
27398         * m4/bison.m4 (gl_BISON): Likewise.
27399         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27400
27401 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27402
27403         bootstrap: support ACLOCAL_FLAGS during aclocal
27404         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27405         can add additional -I dir for third-party .m4 files.
27406
27407 2010-09-30  Eric Blake  <eblake@redhat.com>
27408
27409         bootstrap: use glibtoolize on MacOS
27410         * build-aux/bootstrap (check_versions): Convert libtool into
27411         libtoolize.
27412         (tool search): Move libtool check earlier, and look for
27413         glibtoolize for MacOS.
27414         (gnulib_tool_options): Auto-add --libtool when appropriate.
27415         Reported by Justin Clift.
27416
27417         poll: fix typo that broke test on MacOS
27418         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27419         Reported by Justin Clift.
27420
27421         getdate: rename to get_date
27422         Note: getdate.h is not renamed, to minimize client impact.
27423         * modules/getdate: Mark obsolete.  Move old contents...
27424         * modules/get_date: ...to new module name.
27425         * modules/getdate-tests: Move...
27426         * modules/get_date-tests: ...here.
27427         * m4/getdate.m4: Move...
27428         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27429         * lib/getdate.y: Move...
27430         * lib/get_date.y: ...here.
27431         * tests/test-getdate.c: Move...
27432         * tests/test-get_date.c: ...here.
27433         * doc/posix-functions/getdate.texi (getdate): Update name.
27434         * NEWS: Mention the change.
27435
27436 2010-09-29  Bruno Haible  <bruno@clisp.org>
27437
27438         Separate the module 'waitpid' from the module 'sys_wait'.
27439         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27440         present.
27441         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27442         gl_MODULE_INDICATOR_FOR_TESTS.
27443         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27444         * modules/sys_wait (Depends-on): Remove waitpid.
27445         (Makefile.am): Substitute GNULIB_WAITPID.
27446         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27447         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27448         signature only if the 'waitpid' module is present.
27449         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27450         * NEWS: Mention the change.
27451         * modules/grantpt (Depends-on): Add waitpid.
27452         * modules/wait-process (Depends-on): Likewise.
27453
27454 2010-09-29  Bruno Haible  <bruno@clisp.org>
27455
27456         More tests for module 'sys_wait'.
27457         * modules/sys_wait-c++-tests: New file.
27458         * tests/test-sys_wait-c++.cc: New file.
27459         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27460         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27461
27462 2010-09-29  Bruno Haible  <bruno@clisp.org>
27463
27464         New module 'waitpid'.
27465         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27466         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27467         Don't include <process.h>.
27468         (waitpid): Declare only, using modern idiom.
27469         * m4/waitpid.m4: New file.
27470         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27471         * modules/waitpid: New file.
27472         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27473         (Makefile.am): Update.
27474         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27475
27476 2010-09-28  Bruno Haible  <bruno@clisp.org>
27477
27478         poll: Assume ANSI C.
27479         * lib/poll.c (poll): Use an ANSI C declaration.
27480
27481 2010-09-28  Bruno Haible  <bruno@clisp.org>
27482
27483         poll-h: Create poll.h on all platforms.
27484         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27485         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27486         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27487         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27488         (gl_REPLACE_POLL_H): Don't set POLL_H.
27489         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27490         * modules/poll-h (Depends-on): Add include_next.
27491         (Makefile.am): Create poll.h unconditionally. Substitute also
27492         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27493
27494 2010-09-28  Bruno Haible  <bruno@clisp.org>
27495
27496         Tests for module 'poll-h'.
27497         * modules/poll-h-c++-tests: New file.
27498         * tests/test-poll-h-c++.cc: New file.
27499
27500         Tests for module 'poll-h'.
27501         * modules/poll-h-tests: New file.
27502         * tests/test-poll-h.c: New file.
27503
27504 2010-09-28  Bruno Haible  <bruno@clisp.org>
27505
27506         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27507         * modules/poll-h (Depends-on): Add 'extensions'.
27508
27509 2010-09-28  Bruno Haible  <bruno@clisp.org>
27510
27511         New module 'poll-h'.
27512         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27513         (poll): Use modern idiom.
27514         * modules/poll-h: New file.
27515         * modules/poll (Files): Remove lib/poll.in.h.
27516         (Depends-on): Add poll-h.
27517         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27518         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27519         * m4/poll_h.m4: New file.
27520         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27521         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27522         and invoke gl_REPLACE_POLL_H.
27523         * lib/poll.c: Use common idiom.
27524         * tests/test-poll.c: Likewise.
27525         * doc/posix-headers/poll.texi: Mention the poll-h module.
27526         Suggested by Eric Blake.
27527
27528 2010-09-26  Bruno Haible  <bruno@clisp.org>
27529
27530         sys_wait: Implement WSTOPSIG.
27531         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27532         Reported by Simon Josefsson.
27533
27534 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27535
27536         stdlib, sys_wait: Avoid compilation error on mingw.
27537         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27538
27539 2010-09-26  Bruno Haible  <bruno@clisp.org>
27540
27541         stdlib tests: Avoid code duplication.
27542         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27543         * modules/sys_wait-tests (Files): Likewise.
27544         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27545         * tests/test-stdlib.c: Include test-sys_wait.h.
27546         (main): Invoke test_sys_wait_macros.
27547         * tests/test-sys_wait.c: Include test-sys_wait.h.
27548         (main): Invoke test_sys_wait_macros.
27549
27550 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27551
27552         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27553         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27554         sure Windows sockets are working before calling getaddrinfo.
27555         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27556         * doc/gnulib.texi (Windows sockets): Fix typo.
27557
27558 2010-09-25  Bruno Haible  <bruno@clisp.org>
27559
27560         Tests for module 'regex-quote'.
27561         * modules/regex-quote-tests: New file.
27562         * tests/test-regex-quote.c: New file.
27563
27564         New module 'regex-quote'.
27565         * lib/regex-quote.h: New file.
27566         * lib/regex-quote.c: New file.
27567         * modules/regex-quote: New file.
27568         Suggested by Reuben Thomas <rrt@sc3d.org>.
27569
27570 2010-09-24  Bruno Haible  <bruno@clisp.org>
27571
27572         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27573         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27574
27575 2010-09-23  Bruno Haible  <bruno@clisp.org>
27576
27577         setenv: Relax license.
27578         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27579         Blake.
27580         Requested by Eric Blake.
27581
27582 2010-09-22  Bruno Haible  <bruno@clisp.org>
27583
27584         termios: Relax license.
27585         * modules/termios (License): Change to LGPLv2+.
27586         Requested by Eric Blake.
27587
27588 2010-09-22  Bruno Haible  <bruno@clisp.org>
27589
27590         threadlib: Allow the package to change the default to 'no'.
27591         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27592         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27593         Reported by Paul Eggert.
27594
27595 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27596             Bruno Haible  <bruno@clisp.org>
27597
27598         Fix endless loop in mbmemcasecoll.
27599         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27600         byte.
27601         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27602
27603 2010-09-22  Bruno Haible  <bruno@clisp.org>
27604
27605         Tests for module 'memcoll'.
27606         * modules/memcoll-tests: New file.
27607         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27608
27609         memcoll, xmemcoll: Clarify size vs. length.
27610         * modules/memcoll.c (memcoll0): Clarify specification.
27611         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27612         passed to collate_error.
27613
27614 2010-09-22  Bruno Haible  <bruno@clisp.org>
27615
27616         Tests for module 'memcasecmp'.
27617         * modules/memcasecmp-tests: New file.
27618         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27619
27620 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27621
27622         * lib/pthread.in.h: Add split double-inclusion guard, and include
27623         system <pthread.h> if there is one.  Use @@-style as in other
27624         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27625         pthread.h doesn't.
27626         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27627         (pthread_mutexattr_settype, pthread_mutex_trylock):
27628         New static inline functions, if there's no system <pthread.h>.
27629         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27630         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27631         Approximate with mutexes if the system lacks spinlocks, as in
27632         MacOS.
27633         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27634         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27635         @@-style.  Check for spinlocks separately.
27636         (gl_PTHREAD_DEFAULTS): New macro.
27637         * modules/pthread: Redo to use a more typical style for in.h files.
27638
27639 2010-09-21  Eric Blake  <eblake@redhat.com>
27640
27641         net_if: enhance tests
27642         * tests/test-net_if.c (main): Move signature checks earlier.
27643         Print failures to stderr.
27644         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27645         Document the bug that we do not yet fix.
27646
27647 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27648
27649         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27650         about gnulib, not GSS.
27651
27652 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27653
27654         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27655         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27656         for Emacs.
27657         * build-aux/pmccabe2html: Make Makefile.am example code more
27658         cut-and-paste friendly.
27659
27660 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27661
27662         * tests/test-net_if.c: New file.
27663         * modules/net_if-tests: New file.
27664
27665 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27666
27667         pthread: add pthread_spin_destroy
27668         * lib/pthread.in.h (pthread_spin_destroy): New function.
27669
27670 2010-09-19  Bruno Haible  <bruno@clisp.org>
27671
27672         gnulib-tool: Fix --help output.
27673         * gnulib-tool (func_usage): Fix help message.
27674         Reported by Reuben Thomas <rrt@sc3d.org>.
27675
27676 2010-09-18  Jim Meyering  <meyering@redhat.com>
27677
27678         maint.mk: avoid unexpanded \n in two diagnostics
27679         * top/maint.mk (sc_prohibit_always_true_header_tests):
27680         Don't use a literal \n in a halt=... assignment.  It would not be
27681         expanded, and the two \n bytes would appear in the diagnostic output
27682         rather than the desired newline.  Use halt=$$(printf ... instead.
27683         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27684
27685 2010-09-18  Bruno Haible  <bruno@clisp.org>
27686
27687         netinet_in: Doc tweak.
27688         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27689         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27690
27691 2010-09-18  Jim Meyering  <meyering@redhat.com>
27692
27693         init.sh: correct an outdated comment
27694         * tests/init.sh (create_exe_shims_):  s/function/alias/
27695
27696         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27697         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27698         a file named "*.exe" is removed between the glob expansion and the
27699         processing of that oddly named file.
27700
27701 2010-09-17  Eric Blake  <eblake@redhat.com>
27702
27703         mirbsd: add some more support
27704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27705         in BSD family.
27706         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27707         devices as OpenBSD.
27708         * m4/host-os.m4 (mirbsd): Add MirBSD.
27709
27710         tests: fix unportable assumption on sys/wait.h
27711         * tests/test-sys_wait.c (main): Relax test.
27712         * tests/test-stdlib.c (main): Likewise.
27713
27714         init.sh: accommodate directory with no .exes
27715         * tests/init.sh: Accomodate directory containing only scripts.
27716
27717         tests: avoid compiler warning
27718         * tests/test-stdlib.c (main): Use the variable.
27719
27720         fdutimens, fdutimensat: update signature, again
27721         * lib/utimens.h (gl_futimens): Delete, and move signature...
27722         (fdutimens): ...here.
27723         (fdutimensat): Rearrange signature.
27724         (lutimensat): Rename variable for clarity.
27725         * lib/fdutimensat.c (fdutimensat): Update signature.
27726         * lib/utimens.c (fdutimens): Likewise.
27727         (gl_futimens): Delete.
27728         (utimens, lutimens): Update callers.
27729         * lib/futimens.c (futimens): Likewise.
27730         * tests/test-fdutimensat.c: Likewise.
27731         * tests/test-utimens.c: Likewise.
27732         * tests/test-futimens.h: Update comment.
27733         * NEWS: Mention this.
27734         Suggested by Paul Eggert.
27735
27736 2010-09-17  Bruno Haible  <bruno@clisp.org>
27737
27738         Take over the maintenance of some older macros from Autoconf.
27739         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27740         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27741         GNU Autoconf.
27742         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27743         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27744
27745 2010-09-17  Eric Blake  <eblake@redhat.com>
27746
27747         fdutimensat: drop atflag validation
27748         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27749         with valid fd, to close a race scenario where futimens is
27750         unsupported and FILE was replaced by a symlink.
27751         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27752         accordingly.
27753         Suggested by Paul Eggert.
27754
27755 2010-09-16  Bruno Haible  <bruno@clisp.org>
27756
27757         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27758         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27759
27760 2010-09-16  Bruno Haible  <bruno@clisp.org>
27761
27762         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27763         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27764         login_tty exists.
27765         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27766
27767 2010-09-16  Bruno Haible  <bruno@clisp.org>
27768
27769         login_tty: Make the replacement code work on BSD systems.
27770         * lib/login_tty.c: Include <sys/ioctl.h>.
27771         (login_tty): Use ioctl TIOCSCTTY when available.
27772         * modules/login_tty (Depends-on): Add sys_ioctl.
27773         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27774
27775 2010-09-16  Bruno Haible  <bruno@clisp.org>
27776
27777         login_tty: Stricter unit test.
27778         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27779         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27780         and tcgetsid() after login_tty.
27781         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27782
27783 2010-09-16  Bruno Haible  <bruno@clisp.org>
27784
27785         New module 'tcgetsid'.
27786         * lib/tcgetsid.c: New file.
27787         * m4/tcgetsid.m4: New file.
27788         * modules/tcgetsid: New file.
27789         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27790         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27791         GNULIB_TCGETSID, HAVE_TCGETSID.
27792         * lib/termios.in.h: Include <sys/types.h>.
27793         (tcgetsid): New declaration.
27794         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27795         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27796         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27797         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27798
27799 2010-09-16  Bruno Haible  <bruno@clisp.org>
27800
27801         Tests for module 'termios'.
27802         * modules/termios-c++-tests: New file.
27803         * modules/termios-tests: New file.
27804         * tests/test-termios-c++.cc: New file.
27805         * tests/test-termios.c: New file.
27806
27807         New module 'termios'.
27808         * modules/termios: New file.
27809         * lib/termios.in.h: New file.
27810         * m4/termios_h.m4: New file.
27811         * doc/posix-headers/termios.texi: Mention the new module.
27812
27813 2010-09-16  Eric Blake  <eblake@redhat.com>
27814
27815         fdutimensat: add an atflag parameter
27816         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27817         * lib/utimens.h (fdutimensat): Update prototype.
27818         * tests/test-fdutimensat.c: Adjust test to match.
27819         * NEWS: Document the change.
27820         Suggested by Paul Eggert.
27821
27822 2010-09-16  Bruno Haible  <bruno@clisp.org>
27823
27824         Fix typos in comments.
27825         * lib/striconveh.h: Fix typo in comment.
27826         * lib/login_tty.c (login_tty): Likewise.
27827
27828 2010-09-15  Bruno Haible  <bruno@clisp.org>
27829
27830         stdlib: clarify MirBSD WEXITSTATUS bug
27831         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27832         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27833
27834 2010-09-15  Eric Blake  <eblake@redhat.com>
27835
27836         stdlib: work around MirBSD WEXITSTATUS bug
27837         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27838         * modules/stdlib (Depends-on): Add sys_wait.
27839         * tests/test-sys_wait.c (main): Enhance test.
27840         * tests/test-stdlib.c (main): Likewise.
27841         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27842
27843         docs: mention MacOS issue with WEXITSTATUS(constant)
27844         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27845         issue.
27846         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27847
27848         strnlen: add tests
27849         * modules/strnlen-tests: New file.
27850         * tests/test-strnlen.c: Likewise.
27851
27852 2010-09-14  Bruno Haible  <bruno@clisp.org>
27853
27854         unistr/base: Avoid link errors when module 'libunistring' is also used.
27855         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27856         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27857         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27858         Declare also when HAVE_LIBUNISTRING is set.
27859         Reported by Pádraig Brady <P@draigbrady.com>.
27860
27861 2010-09-14  Eric Blake  <eblake@redhat.com>
27862
27863         test-rawmemchr: make more robust
27864         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27865         (Depends-on, configure.ac): Add needed prerequisites to use it.
27866         * modules/memchr-tests (Files, Depends-on, configure.ac):
27867         Likewise, to avoid implicit reliance on memchr module prereqs.
27868         * tests/test-memchr.c (main): Ensure proper masking.
27869         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27870         reads.
27871
27872         memchr: detect glibc Alpha bug
27873         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27874         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27875         Alpha.
27876         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27877         * tests/test-memchr.c (main): Enhance test.
27878         Reported by Nelson H. F. Beebe.
27879
27880 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27881
27882         fts, getcwd, glob: audit for dirfd returning -1
27883         * lib/fts.c (opendir): Remove #define; no longer used.
27884         (opendirat): New arg PDIR_FD.  All callers changed.
27885         (fts_build, _opendir2): Use new opendirat to avoid the need for
27886         dirfd, or for checking whether dirfd returns a negative value.
27887         Don't use opendir; always use openat followed by fdopendir.
27888         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27889         it.
27890         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27891         returns -1 here.
27892         * modules/fts (Depends-on): Remove dirfd.
27893         * modules/getcwd (Depends-on): Likewise.
27894
27895 2010-09-13  Eric Blake  <eblake@redhat.com>
27896
27897         float: fix broken MirBSD header
27898         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27899         * doc/posix-headers/float.texi (float.h): Document it.
27900
27901 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27904         * lib/fts.c (opendirat): New arg extra_flags.
27905         (__opendir2): Use it to avoid following symlinks when opening
27906         a directory, if symlinks are not supposed to be followed.  See
27907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27908
27909         fdopendir: preserve argument fd before returning
27910         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27911         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27912         (fdopendir): Use them, arranging for FD to be open to the same
27913         directory that it was when it started.  (It might be temporarily
27914         closed while fdopendir is running, so this not thread- or
27915         signal-safe.)  Be careful to do the right thing even when file
27916         descriptors are scarce and dup fails with errno == EMFILE.  See
27917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27918
27919 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27920
27921         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27922         * NEWS: Document change.
27923         * m4/regex.m4: Disable test for regoff_t size.
27924
27925 2010-09-13  Jim Meyering  <meyering@redhat.com>
27926
27927         fts: don't operate on an invalid file descriptor after failed dup
27928         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27929         negative file descriptor.
27930
27931 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27932
27933         savedir: add streamsavedir, deprecate fdsavedir
27934         * NEWS: Mention deprecation of fdsavedir.
27935         * lib/savedir.c (streamsavedir): New extern function, whose name
27936         ends in "savedir" to be consistent with the others.  This differs
27937         from savedirstream in that it doesn't close its argument.  The
27938         next version of GNU tar will use this instead of fdsavedir, to
27939         avoid some race conditions and conserve file descriptors.
27940         (savedirstream): Reimplement as a wrapper around streamsavedir.
27941         (fdsavedir): Add a comment deprecating this function.  As far as
27942         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27943         * lib/savedir.h (streamsavedir): New decl.
27944         (fdsavedir): Add a comment deprecating this.
27945
27946 2010-09-10  Bruno Haible  <bruno@clisp.org>
27947
27948         langinfo: Fix last commit.
27949         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27950         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27951         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27952
27953 2010-09-10  Bruno Haible  <bruno@clisp.org>
27954
27955         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27956         * lib/progreloc.c (O_EXEC): Define fallback.
27957
27958 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27959
27960         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27961         * NEWS: Document recent changes to fcntl-h.
27962         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27963         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27964         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27965         Similarly for O_SEARCH; this last was already true, but not documented.
27966         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27967         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27968         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27969         Likewise.
27970         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27971         is zero, not whether it is defined.
27972         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27973         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27974         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27975
27976 2010-09-10  Bruno Haible  <bruno@clisp.org>
27977
27978         langinfo, nl_langinfo: Fix for IRIX 5.3.
27979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27980         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27981         HAVE_LANGINFO_YESEXPR.
27982         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27983         HAVE_LANGINFO_YESEXPR.
27984         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27985         HAVE_LANGINFO_T_FMT_AMPM is 0.
27986         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27987         HAVE_LANGINFO_YESEXPR is 0.
27988         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27989         NOEXPR.
27990         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27991         * doc/posix-functions/nl_langinfo.texi: Likewise.
27992         Reported by Eric Blake.
27993
27994 2010-09-10  Bruno Haible  <bruno@clisp.org>
27995
27996         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27997         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27998         on FreeBSD 8.0 and OpenBSD 4.6.
27999         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28000         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28001         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28002         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28003         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28004         ac_includes_default.
28005         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28006
28007 2010-09-09  Eric Blake  <eblake@redhat.com>
28008
28009         strsignal: work around NetBSD bug
28010         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28011         * lib/string.in.h (includes): Likewise.
28012         * doc/posix-functions/strsignal.texi (strsignal): Document the
28013         bug.
28014         Reported by Nelson H. F. Beebe.
28015
28016         gnulib-tool: work with NetBSD /bin/sh
28017         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28018         (func_get_description, func_get_comment, func_get_status)
28019         (func_get_notice, func_get_applicability, func_get_filelist)
28020         (func_get_dependencies, func_get_autoconf_early_snippet)
28021         (func_get_autoconf_snippet, func_get_automake_snippet)
28022         (func_get_include_directive, func_get_link_directive)
28023         (func_get_license, func_get_maintainer, func_import): Avoid
28024         shell syntax errors from parsing syntax extensions.
28025
28026 2010-09-09  Bruno Haible  <bruno@clisp.org>
28027
28028         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28029         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28030         a reliable way to determine whether the 'alias' command works.
28031
28032 2010-09-08  Jim Meyering  <meyering@redhat.com>
28033
28034         init.sh: penalize a set-x-impaired shell; don't disqualify it
28035         * tests/init.sh: Too many shells corrupt application stderr when
28036         you set -x, so we can't afford to disqualify them, since at least
28037         on Irix-6.5, that would disqualify all bourne shells.
28038         Instead, use a two-pass approach.
28039         On the first pass, try to find a shell that meets the stricter
28040         condition that set -x does not corrupt stderr.
28041         If no shell meets the stricter condition, retest each candidate
28042         shell, but without that extra condition.  Finally, when
28043         VERBOSE=yes is requested and set -x might cause trouble, simply
28044         issue a warning and refrain from enabling debug output.
28045
28046 2010-09-08  Eric Blake  <eblake@redhat.com>
28047
28048         unsetenv: fix OpenBSD bug
28049         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28050         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28051         documentation.
28052         Reported by Jim Meyering.
28053
28054         strtod: work around IRIX 6.5 bug
28055         * lib/strtod.c (strtod): Reparse number on shorter string if
28056         exponent parse was invalid.
28057         * tests/test-strtod.c (main): Add check for "0x1p 2".
28058         Reported by Tom G. Christensen.
28059
28060         getopt: optimize previous patch
28061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28062         empty variable.  Speed up awk script.
28063         Reported by Paolo Bonzini.
28064
28065 2010-09-08  Jim Meyering  <meyering@redhat.com>
28066
28067         test.sh: disqualify shells for which set -x corrupts stderr
28068         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28069         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28070         appear in stderr output.  For example, this command:
28071             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28072         prints "P=1" on those two systems:
28073
28074 2010-09-08  Bruno Haible  <bruno@clisp.org>
28075
28076         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28077         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28078         commands, because some shells ignore redirections when there is an
28079         error in the command lookup.
28080         Reported by Eric Blake.
28081
28082 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28083
28084         * lib/regex.h: Fix a mention of `regex_compile' (should be
28085         `re_compile_pattern').
28086         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28087         (re_set_registers): Correct name of parameter in comment.
28088
28089         * doc/regex.texi: Add documentation for missing syntax flags.
28090         Remove commented-out documentation of defunct syntax option
28091         RE_NO_EMPTY_ALTS.
28092         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28093         Add documentation of re_set_registers.
28094         Document trick to re-use a pattern buffer by setting fastmap manually.
28095         Update documentation of struct re_pattern_buffer per public members.
28096         Uncomment documentation of equivalence class operators and
28097         collating symbol operators, since they are now implemented,
28098         Explain leftmost-longest matching in relation to alternatives.
28099         Tidy documentation of substring matching.
28100         Remove POSIX documentation, which is done better in
28101         glibc, and refer the reader there. Keep BSD API documentation, as
28102         that is not readily available elsewhere.
28103
28104 2010-09-07  Eric Blake  <eblake@redhat.com>
28105
28106         getopt: handle POSIXLY_CORRECT set but not exported
28107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28108         export state of POSIXLY_CORRECT, due to bash set -o posix.
28109         Reported by Dustin J. Mitchell.
28110
28111 2010-09-05  Bruno Haible  <bruno@clisp.org>
28112
28113         gnulib-tool: Highlight the changed options.
28114         * gnulib-tool (func_usage): Display the --import, --add-import,
28115         --remove-import explanations in bold font.
28116
28117 2010-09-06  Karl Berry  <karl@gnu.org>
28118
28119         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28120
28121 2010-09-05  Bruno Haible  <bruno@clisp.org>
28122
28123         uniwidth/width: Update comment.
28124         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28125         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28126
28127 2010-09-05  Bruno Haible  <bruno@clisp.org>
28128
28129         isinf, isnan: Relax license.
28130         * modules/isinf (License): Change from GPL to LGPL, with consent from
28131         Ben Pfaff.
28132         * modules/isnan (License): Likewise.
28133         Requested by Ludovic Courtès.
28134
28135 2010-09-04  Bruno Haible  <bruno@clisp.org>
28136
28137         gnulib-tool: Help migration from --import to --add-import or --update.
28138         * gnulib-tool: Emit a verbose error message when --import is used
28139         without any module name.
28140
28141 2010-09-04  Bruno Haible  <bruno@clisp.org>
28142
28143         Update doc about gnulib-tool.
28144         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28145         'gnulib-tool --update' in more detail.
28146         Reported by Eric Blake.
28147
28148 2010-09-04  Bruno Haible  <bruno@clisp.org>
28149
28150         gnulib-tool: Change --import. New options --add/remove-import.
28151         * gnulib-tool: New options --add-import, --remove-import.
28152         (func_usage): Document them.
28153         (have_associative): Define always.
28154         (func_import): In import mode, don't merge the specified settings with
28155         the cached settings. Implement remove-import mode.
28156         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28157         Explain when to use them versus --import.
28158         (Simple update): Use --add-import instead of --import.
28159         * NEWS: Mention the change.
28160
28161 2010-09-04  Bruno Haible  <bruno@clisp.org>
28162
28163         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28164         separate gnulib.mk.
28165
28166 2010-09-04  Bruno Haible  <bruno@clisp.org>
28167
28168         gnulib-tool: Don't talk about CVS any more.
28169         * gnulib-tool (func_usage, func_import): Write "version control"
28170         instead of CVS.
28171
28172 2010-09-04  Jim Meyering  <meyering@redhat.com>
28173
28174         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28175         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28176         false positives (whose names may be ill-chosen) when searching
28177         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28178         would cause a false-positive.
28179
28180         avoid coreutils "make distcheck" failure
28181         Coreutils tests with an absolute build directory name that contains
28182         a space.  Not quoting this directory name caused a failure.
28183         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28184         * tests/test-vc-list-files-cvs.sh: Likewise.
28185
28186 2010-09-04  Bruno Haible  <bruno@clisp.org>
28187
28188         gnulib-tool: Avoid error when run in a package without Makefile.am.
28189         * gnulib-tool: When collecting the m4dirs in a package that does not
28190         have a Makefile.am, eliminate those directories that contain no
28191         gnulib-cache.m4. Fix expression that counts these directories.
28192
28193 2010-09-04  Bruno Haible  <bruno@clisp.org>
28194
28195         update-copyright test: Improve output when perl is missing or too old.
28196         * tests/test-update-copyright.sh: Move test of Perl version down after
28197         the test whether Perl exists. Provide an explanation relating Perl's
28198         error message to Automake's SKIP: message.
28199
28200 2010-09-04  Bruno Haible  <bruno@clisp.org>
28201
28202         Don't augment PATH in TESTS_ENVIRONMENT.
28203         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28204         set abs_aux_dir instead of augmenting PATH.
28205         * modules/vc-list-files-tests (Makefile.am): Likewise.
28206         * tests/test-update-copyright.sh: Augment PATH here.
28207         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28208         path_prepend_.
28209         * tests/test-vc-list-files-git.sh: Likewise.
28210
28211 2010-09-04  Jim Meyering  <meyering@redhat.com>
28212
28213         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28214         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28215
28216 2010-09-04  Bruno Haible  <bruno@clisp.org>
28217
28218         strdup: Fix compilation error in C++ mode.
28219         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28220         the macro.
28221
28222 2010-09-04  Bruno Haible  <bruno@clisp.org>
28223
28224         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28225         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28226         macro into a function.
28227         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28228
28229 2010-09-04  Bruno Haible  <bruno@clisp.org>
28230
28231         Set PATH_SEPARATOR the same way autoconf does.
28232         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28233         the value of PATH_SEPARATOR the same way autoconf-generated configure
28234         scripts do.
28235         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28236         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28237
28238 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28239
28240         Set PATH_SEPARATOR the same way autoconf does.
28241         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28242         the same way autoconf-generated configure scripts do.
28243         * posix-modules: Likewise.
28244
28245 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28246
28247         hash: fix safe_hasher const typo
28248         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28249         const; otherwise, there is a type error later.
28250
28251 2010-09-02  Jim Meyering  <meyering@redhat.com>
28252
28253         test-update-copyright.sh: require perl 5.8.0
28254         * tests/test-update-copyright.sh: Require 5.8.0,
28255         which Tom G. Christensen has confirmed is adequate,
28256         while 5.6.1 is not.
28257
28258 2010-09-02  Eric Blake  <eblake@redhat.com>
28259
28260         tests: init.sh improvements for re-exec'ing with zsh
28261         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28262         -vx through shell re-exec.
28263         Reported by Tom G. Christensen.
28264
28265         wctype: fix typo in previous commit
28266         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28267         Reported by Ludovic Courtès.
28268
28269 2010-09-02  Jim Meyering  <meyering@redhat.com>
28270
28271         test-update-copyright.sh: skip test if Perl is too old
28272         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28273         Reported by Tom G. Christensen.
28274
28275 2010-09-02  Bruno Haible  <bruno@clisp.org>
28276
28277         wctype: Avoid compilation error on IRIX 6.5.30.
28278         * lib/wctype.in.h (iswblank): Declare with a replacement if
28279         REPLACE_ISWBLANK is set.
28280         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28281         declared. Set REPLACE_ISWBLANK.
28282         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28283         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28284         * doc/posix-headers/wctype.texi: Likewise.
28285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28286
28287 2010-09-01  Bruno Haible  <bruno@clisp.org>
28288
28289         New module 'socketlib'.
28290         * modules/socketlib: New file.
28291         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28292         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28293         * modules/sockets (Depends-on): Add socketlib.
28294         Suggested by Sam Steingold <sds@gnu.org>.
28295
28296 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28297
28298         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28299
28300         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28301         when one needs search access to a directory but not read access.
28302         On systems where it is available, it works in some cases where
28303         O_RDONLY does not, namely on directories that are searchable but
28304         not readable, and which need only to be searchable.  If O_SEARCH
28305         is not available, fall back to the traditional method of using
28306         O_RDONLY.
28307
28308         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28309         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28310         when opening a directory that needs only to be searchable.
28311         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28312         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28313         * lib/openat-proc.c (openat_proc_name): Likewise.
28314         * lib/openat.c (openat_needs_fchdir): Likewise.
28315         * lib/save-cwd.c (save_cwd): Likewise.
28316         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28317
28318 2010-08-28  Bruno Haible  <bruno@clisp.org>
28319
28320         New module 'host-cpu-c-abi'.
28321         * modules/host-cpu-c-abi: New file.
28322         * m4/host-cpu-c-abi.m4: New file, based on part of
28323         clisp/src/m4/general.m4.
28324         Requested by Sam Steingold <sds@gnu.org>.
28325
28326 2010-08-31  Eric Blake  <eblake@redhat.com>
28327         and Jim Meyering  <meyering@redhat.com>
28328
28329         hash: factor, and guard against misbehaving hasher function
28330         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28331         of table->hasher's return value.  Also protect against a hash value
28332         so large that adding it to table->bucket results in a NULL pointer.
28333         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28334         Use it in place of open-coded check-and-abort.
28335
28336 2010-08-30  Bruno Haible  <bruno@clisp.org>
28337
28338         hash: silence spurious clang warning
28339         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28340         Reported by Eric Blake.
28341
28342 2010-08-30  Eric Blake  <eblake@redhat.com>
28343
28344         strstr, memmem, strcasestr: avoid leaked shell message
28345         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28346         FreeBSD.
28347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28348         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28349
28350         tests: silence clang warning
28351         * tests/test-malloca.c (do_allocation): Avoid dead store.
28352
28353 2010-08-29  Bruno Haible  <bruno@clisp.org>
28354
28355         gettext: Fix recent mistake.
28356         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28357
28358 2010-08-29  Bruno Haible  <bruno@clisp.org>
28359
28360         selinux-h: Offer a --without-selinux option.
28361         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28362         --without-selinux was specified, skip all tests and define
28363         HAVE_SELINUX_SELINUX_H to 0.
28364         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28365         set LIB_SELINUX to empty.
28366         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28367         gl_LIBSELINUX. If --without-selinux was specified, replace
28368         selinux/context.h.
28369         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28370
28371 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28372             Bruno Haible  <bruno@clisp.org>
28373
28374         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28375         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28376         of HAVE_REALLOC.
28377         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28378         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28379         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28380         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28381
28382 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28383             Bruno Haible  <bruno@clisp.org>
28384
28385         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28386         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28387         HAVE_CALLOC.
28388         * lib/xmalloc.c: Update accordingly.
28389         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28390         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28391         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28392
28393 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28394             Bruno Haible  <bruno@clisp.org>
28395
28396         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28397         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28398         HAVE_MALLOC.
28399         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28400         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28401         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28402
28403 2010-08-29  Bruno Haible  <bruno@clisp.org>
28404
28405         Update modules list.
28406         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28407         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28408         (String handling <string.h>): Add astrxfrm.
28409         (File system functions): Add readlinkat.
28410
28411 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28412
28413         Tests for module 'realloc-gnu'.
28414         * modules/realloc-gnu-tests: New file.
28415         * tests/test-realloc-gnu.c: New file.
28416
28417         Tests for module 'calloc-gnu'.
28418         * modules/calloc-gnu-tests: New file.
28419         * tests/test-calloc-gnu.c: New file.
28420
28421         Tests for module 'malloc-gnu'.
28422         * modules/malloc-gnu-tests: New file.
28423         * tests/test-malloc-gnu.c: New file.
28424
28425 2010-08-28  Bruno Haible  <bruno@clisp.org>
28426
28427         Rename module 'realloc' -> 'realloc-gnu'.
28428         * modules/realloc-gnu: New file, copied from modules/realloc.
28429         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28430         obsolete.
28431         * modules/mgetgroups (Depends-on): Update.
28432         * doc/posix-functions/realloc.texi: Update.
28433         * NEWS: Mention the change.
28434
28435         Rename module 'calloc' -> 'calloc-gnu'.
28436         * modules/calloc-gnu: New file, copied from modules/calloc.
28437         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28438         obsolete.
28439         * doc/posix-functions/calloc.texi: Update.
28440         * NEWS: Mention the change.
28441
28442         Rename module 'malloc' -> 'malloc-gnu'.
28443         * modules/malloc-gnu: New file, copied from modules/malloc.
28444         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28445         obsolete.
28446         * modules/argp (Depends-on): Update.
28447         * modules/regex (Depends-on): Update.
28448         * doc/posix-functions/malloc.texi: Update.
28449         * NEWS: Mention the change.
28450
28451 2010-08-28  Eric Blake  <eblake@redhat.com>
28452
28453         pread, pwrite: add missing dependency
28454         * modules/pread (Depends-on): Add extensions.
28455         * modules/pwrite (Depends-on): Likewise.
28456
28457 2010-08-28  Bruno Haible  <bruno@clisp.org>
28458
28459         unistr/u*-strchr: Fix tests dependencies.
28460         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28461         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28462         Reported by Ian Beckwith <ianb@erislabs.net>.
28463
28464 2010-08-28  Bruno Haible  <bruno@clisp.org>
28465
28466         read-file: Don't occupy too much unused memory.
28467         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28468
28469 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28470             Eric Blake  <eblake@redhat.com>
28471             Bruno Haible  <bruno@clisp.org>
28472
28473         read-file: Avoid memory reallocations with regular files.
28474         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28475         (fread_file): With regular files, use the remaining length as the
28476         initial buffer size.  Check against overflow.
28477         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28478         sys_stat.
28479
28480 2010-08-28  Bruno Haible  <bruno@clisp.org>
28481
28482         ftello: Relax license.
28483         * modules/ftello (License): Relax to LGPLv2+.
28484         Reported by Eric Blake.
28485
28486 2010-08-28  Bruno Haible  <bruno@clisp.org>
28487
28488         Avoid relocwrapper link errors due to gnulib replacement functions.
28489         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28490         function.
28491         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28492
28493 2010-08-28  Bruno Haible  <bruno@clisp.org>
28494
28495         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28496         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28497         defined.
28498         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28499         Suggested by Eric Blake.
28500
28501 2010-08-28  Bruno Haible  <bruno@clisp.org>
28502
28503         sys_socket, netdb: Ensure socklen_t gets defined.
28504         * modules/sys_socket (Depends-on): Add socklen.
28505         * modules/netdb (Depends-on): Likewise.
28506         * modules/getaddrinfo (Depends-on): Remove socklen.
28507         * modules/getsockopt (Depends-on): Likewise.
28508         * modules/setsockopt (Depends-on): Likewise.
28509         * tests/test-sys_socket.c: Check that socklen_t is defined.
28510         * tests/test-netdb.c: Likewise.
28511         * m4/socklen.m4: Update comments.
28512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28513
28514 2010-08-27  Eric Blake  <eblake@redhat.com>
28515
28516         login_tty: add missing dependency
28517         * modules/login_tty (Depends-on): Add pty.
28518
28519 2010-08-26  Eric Blake  <eblake@redhat.com>
28520
28521         lib-symbol-versions: fix m4 quoting
28522         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28523         format for AC_LINK_IFELSE.
28524
28525         glob: fix compile test
28526         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28527
28528         btowc: fix missing file
28529         * modules/btowc (Files): Also ship locale-fr.m4.
28530
28531         lseek: fix link test
28532         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28533         AC_LINK_IFELSE.
28534
28535         include_next: silence autoconf 2.68 warning
28536         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28537         AC_COMPILE_IFELSE as special.
28538         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28539         autoconf < 2.68.
28540
28541         acl: fix compilation test
28542         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28543         AC_COMPILE_IFELSE.
28544
28545 2010-08-26  Bruno Haible  <bruno@clisp.org>
28546
28547         Modernize AC_TRY_RUN invocations.
28548         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28549         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28550         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28551         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28552         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28553         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28556         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28557         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28559         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28560         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28561         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28562         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28563         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28564         gl_MBRLEN_NUL_RETVAL): Likewise.
28565         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28566         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28567         Likewise.
28568         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28569         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28570         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28571         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28572         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28573         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28574         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28575         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28576         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28577         Likewise.
28578         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28579         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28581         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28582         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28583         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28584         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28585         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28586         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28587         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28588
28589 2010-08-26  Bruno Haible  <bruno@clisp.org>
28590
28591         Modernize AC_TRY_LINK invocations.
28592         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28593         AC_TRY_LINK.
28594         * m4/argp.m4 (gl_ARGP): Likewise.
28595         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28596         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28597         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28598         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28599         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28600         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28601         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28602         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28603         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28604         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28605         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28606         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28607         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28608         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28609         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28610         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28611         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28612         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28613         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28614         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28615         Likewise.
28616         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28617         Likewise.
28618         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28619         Likewise.
28620         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28621         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28622         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28623         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28624         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28625         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28626         * m4/servent.m4 (gl_SERVENT): Likewise.
28627         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28628         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28629         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28630         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28631         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28632         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28633         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28635         * modules/tsearch-tests (configure.ac): Likewise.
28636
28637 2010-08-26  Bruno Haible  <bruno@clisp.org>
28638
28639         Modernize AC_TRY_COMPILE invocations.
28640         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28641         AC_TRY_COMPILE.
28642         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28643         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28644         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28645         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28646         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28647         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28648         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28649         * m4/lock.m4 (gl_LOCK): Likewise.
28650         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28651         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28652         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28653         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28654         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28655         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28656         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28657         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28658         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28659         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28660         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28661         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28662         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28663         extraneous semicolon.
28664
28665 2010-08-26  Jim Meyering  <meyering@redhat.com>
28666
28667         stat-time: relax license LGPL
28668         * modules/stat-time (License): Change from GPL to LGPL,
28669         with consent from all contributors, for use in libguile.
28670         Requested by Ludovic Courtès.
28671
28672 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28673
28674         poll: return immediately on POLLHUP.
28675         * lib/poll.c (poll): Always set timeout before wait_timeout is
28676         computed.
28677
28678 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28679
28680         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28681         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28682         rmdir ("dir/.//"), unlinkat.
28683
28684 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28685
28686         stdbool: avoid spurious failure with modern xlc
28687         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28688
28689 2010-08-24  Bruno Haible  <bruno@clisp.org>
28690
28691         getloadavg: simplify code
28692         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28693         gl_have_func. Update comments.
28694
28695 2010-08-24  Eric Blake  <eblake@redhat.com>
28696
28697         getloadavg: don't define SVR4 on cygwin
28698         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28699         only define SVR4 when -lkvm is required.
28700         Reported by Yaakov Selkowitz.
28701
28702 2010-08-24  Bruno Haible  <bruno@clisp.org>
28703
28704         priv-set: fix comment
28705         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28706
28707 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28708
28709         priv-set: fix comments
28710         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28711         to match code, as suggested by David Bartley in:
28712         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28713
28714 2010-08-23  Eric Blake  <eblake@redhat.com>
28715
28716         stdbool: avoid rejecting clang
28717         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28718         * tests/test-stdbool.c: Enable more tests if using the system
28719         <stdbool.h> instead of the gnulib replacement.
28720         (main): Move xlc bug test to a runtime test for all compilers.
28721         Reported by Anders Kaseorg.
28722
28723         argz: fix shell quoting issue
28724         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28725         Reported by Charles Wilson.
28726
28727 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28728             Erik Faye-Lund <kusmabite@gmail.com>
28729
28730         poll, select: handle ERROR_BROKEN_PIPE.
28731         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28732         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28733         * lib/select.c (win32_compute_revents): Do not mark a pipe
28734         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28735
28736 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28737
28738         fts: allow compilation with C++
28739         * lib/fts_.h: Specify extern "C" linkage with C++.
28740
28741 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28742
28743         Fix gnulib-tool sed script de-commentation for AIX sed.
28744         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28745         sed.
28746
28747 2010-08-17  Eric Blake  <eblake@redhat.com>
28748
28749         test-stddef: test for (some) offsetof bugs
28750         * tests/test-stddef.c: Enhance test to ensure correct type of
28751         offsetof.
28752         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28753         that we are not fixing at this time.
28754
28755 2010-08-15  Bruno Haible  <bruno@clisp.org>
28756
28757         stpncpy: Allow stpncpy to be defined as a macro.
28758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28759         if it's already correctly declared.
28760         * lib/string.in.h (stpncpy): Undefine before redefining.
28761         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28762
28763 2010-08-14  Bruno Haible  <bruno@clisp.org>
28764
28765         Rename module 'memxfrm' to 'amemxfrm'.
28766         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28767         (amemxfrm): Renamed from memxfrm.
28768         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28769         (amemxfrm): Renamed from memxfrm.
28770         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28771         * NEWS: Mention the change.
28772         * MODULES.html.sh (String handling <string.h>): Update.
28773         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28774         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28775         * lib/unicase/u16-casexfrm.c: Likewise.
28776         * lib/unicase/u32-casexfrm.c: Likewise.
28777         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28778         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28779         * lib/uninorm/u16-normxfrm.c: Likewise.
28780         * lib/uninorm/u32-normxfrm.c: Likewise.
28781         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28782         memxfrm.
28783         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28784         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28785         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28786         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28787         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28788         Suggested by Paul Eggert.
28789
28790 2010-08-14  Bruno Haible  <bruno@clisp.org>
28791
28792         Tests for module 'astrxfrm'.
28793         * modules/astrxfrm-tests: New file.
28794         * tests/test-astrxfrm.c: New file.
28795
28796         New module 'astrxfrm'.
28797         * lib/astrxfrm.h: New file.
28798         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28799         * modules/astrxfrm: New file.
28800
28801 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28802
28803         regex: Tweak doc.
28804         * doc/regex.texi (Overview): Don't mention regex.c.
28805         (GNU Regular Expression Compiling): Likewise.
28806         (Match-end-of-line Operator): Mention 'not_eol'.
28807
28808 2010-08-14  Brian Gough  <bjg@gnu.org>
28809             Bruno Haible  <bruno@clisp.org>
28810
28811         git-merge-changelog: add doc relating to use with bzr and hg.
28812         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28813
28814 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28815
28816         pthread: fix pthread.h creation for srcdir != builddir
28817         * modules/pthread (Makefile.am): Fix the rule to work also in a
28818         non-srcdir build.
28819
28820 2010-08-13  Karl Berry  <karl@gnu.org>
28821
28822         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28823         * doc/posix-*/*: force line break before @url of POSIX
28824         specifications.
28825         Suggested by Werner Lemberg.
28826
28827 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28828
28829         strtod: fix const diagnostic
28830         * lib/strtod.c (strtod): Don't assign const char * to char *,
28831         as this elicits a warning from GCC when warnings are enabled.
28832
28833 2010-08-10  Pádraig Brady <P@draigbrady.com>
28834         and Eric Blake  <eblake@redhat.com>
28835
28836         copy-acl: ignore ENOTSUP on HP-UX
28837         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28838         so that it is available for HP-UX.
28839         * lib/copy-acl.c (qcopy_acl): Use it.
28840         Reported by Patrick M. Callahan.
28841
28842 2010-08-10  Eric Blake  <eblake@redhat.com>
28843
28844         open, chown: relax license
28845         * modules/open (License): Change to LGPLv2+, with consent by all
28846         authors, for use in augeas.
28847         * modules/chown (License): Likewise.
28848         * modules/lchown (Likewise): Likewise.
28849         Requested by Adam Stokes.
28850
28851 2010-08-09  Karl Berry  <karl@gnu.org>
28852
28853         * build-aux/ar-lib: new file, import from Automake.
28854         * config/srclist.txt: autocheck for updates.
28855
28856 2010-08-09  Eric Blake  <eblake@redhat.com>
28857
28858         readlinkat: adjust client modules
28859         * modules/areadlinkat (Depends-on): Use readlinkat, not
28860         symlinkat.
28861         * modules/areadlinkat-with-size (Depends-on): Likewise.
28862
28863         mknod: be more vocal about danger of running tests as root
28864         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28865         root, since that is just asking for problems.
28866         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28867
28868         readlinkat: split into its own module
28869         * modules/symlinkat: Split readlinkat...
28870         * modules/readlinkat: ...into separate module.
28871         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28872         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28873         * lib/symlinkat.c (readlinkat): Move...
28874         * lib/readlinkat.c: ...into new file.
28875         * modules/symlinkat-tests: Split readlinkat test...
28876         * modules/readlinkat-tests: ...into separate module.
28877         * tests/test-symlinkat.c: Split...
28878         * tests/test-readlinkat.c: ...into new file.
28879         * NEWS: Document the split.
28880         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28881         * lib/unistd.in.h (readlinkat): Likewise.
28882         Suggested by Bruno Haible.
28883
28884 2010-08-08  Bruno Haible  <bruno@clisp.org>
28885
28886         memxfrm: Speed up.
28887         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28888         that usually only one call to strxfrm is necessary for each string
28889         part.
28890         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28891
28892 2010-08-07  Karl Berry  <karl@gnu.org>
28893
28894         * doc/posix-headers/limits.texi,
28895         * doc/posix-functions/malloc.texi,
28896         * doc/posix-functions/strsignal.texi: missing @item.
28897         * doc/ld-version-script.texi: spurious leading i.
28898         * doc/regex.texi (Interval Operators): no commas inside @var.
28899
28900 2010-08-01  Bruno Haible  <bruno@clisp.org>
28901
28902         Integrate the regex documentation.
28903         * doc/gnulib.texi: Define 'cn' index.
28904         (Regular expressions): New a chapter that includes regex.texi and
28905         regexprops-generic.texi.
28906         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28907         syntax.
28908
28909         Whitespace cleanup.
28910         * doc/regex.texi: Remove trailing spaces.
28911
28912         Add regex documentation.
28913         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28914         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28915         Written by Kathy A. Hargreaves and Karl Berry.
28916
28917 2010-08-01  Bruno Haible  <bruno@clisp.org>
28918
28919         link: Update documentation.
28920         * doc/posix-functions/link.texi: Update regarding Solaris.
28921
28922 2010-07-31  Bruno Haible  <bruno@clisp.org>
28923
28924         Update modules list.
28925         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28926         (String handling <string.h>): Add memcmp2, memxfrm.
28927         (Container data structures): Add xlist, xsublist, xoset.
28928         (Core language properties): Add alignof, unused-parameter.
28929         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28930         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28931         (Unibyte characters <ctype.h>): New section.
28932         (String handling <string.h>): New section.
28933         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28934         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28935         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28936         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28937         tan, tanh, tanl, y0, y1, yn.
28938         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28939         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28940         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28941         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28942         unlockpt, vdprintf, vdprintf-posix.
28943         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28944         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28945         xconcat-filename.
28946         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28947         getdtablesize, pipe2, pipe2-safer.
28948         (Security): New section.
28949         (Networking functions): Add accept4.
28950         (Signal handling): Add sigpipe.
28951         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28952         mbmemcasecoll.
28953         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28954         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28955         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28956         pipe-filter-ii.
28957         (Misc): Add argp-version-etc, login_tty, parse-duration.
28958
28959 2010-07-31  Bruno Haible  <bruno@clisp.org>
28960
28961         Improve doc in MODULES.html.
28962         * modules/linkat (Description): Add the word "function".
28963         * modules/mkfifo (Description): Likewise.
28964         * modules/mknod (Description): Likewise.
28965         * modules/remove (Description): Likewise.
28966         * modules/renameat (Description): Likewise.
28967         * modules/stat (Description): Likewise.
28968         * modules/symlink (Description): Likewise.
28969         * modules/unlink (Description): Likewise.
28970
28971 2010-07-31  Bruno Haible  <bruno@clisp.org>
28972
28973         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28974         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28975         option --enable/disable-c++ instead of --enable/disable-cxx.
28976         * NEWS: Mention the change.
28977
28978 2010-07-31  Bruno Haible  <bruno@clisp.org>
28979
28980         readlink, areadlink: Relax test a bit.
28981         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28982         alternative to ENOTDIR.
28983         * tests/test-areadlink.h (test_areadlink): Likewise.
28984         Reported by Rainer Tammer.
28985
28986 2010-07-31  Bruno Haible  <bruno@clisp.org>
28987
28988         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28989         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28990         character, perform the search using U_STRCHR.
28991         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28992         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28993         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28994         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28995         Suggested by Paolo Bonzini.
28996
28997 2010-07-31  Bruno Haible  <bruno@clisp.org>
28998
28999         unistr/u*-strstr: Fix dependencies.
29000         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29001         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29002         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29003
29004 2010-07-31  Bruno Haible  <bruno@clisp.org>
29005
29006         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29007         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29008         the beginning of the loop.
29009         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29010         cases in 'switch' statement.
29011
29012         unistr/u8-strchr: Fix several bugs.
29013         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29014         the string. When not found, return NULL, not a pointer near the end.
29015
29016         More tests for unistr/u8-strchr.
29017         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29018         that the function does not read past the first occurrence of the byte
29019         being searched.
29020         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29021         * tests/unistr/test-u16-strchr.c (main): New function.
29022         * tests/unistr/test-u32-strchr.c (main): New function.
29023
29024 2010-07-31  Bruno Haible  <bruno@clisp.org>
29025
29026         posix-modules: Ignore backup files of documentation files.
29027         * posix-modules: grep only through files named *.texi.
29028
29029 2010-07-31  Bruno Haible  <bruno@clisp.org>
29030
29031         symlinkat: Fix documentation.
29032         * doc/posix-functions/readlinkat.texi: Fix module name.
29033
29034 2010-07-31  Bruno Haible  <bruno@clisp.org>
29035
29036         fchownat: Replace also when chown has the trailing slash bug.
29037         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29038         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29039         introduced on 2010-04-10.
29040         Reported by Rainer Tammer.
29041
29042 2010-07-31  Bruno Haible  <bruno@clisp.org>
29043
29044         linkat: Work around AIX 7.1 bug.
29045         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29046         whether linkat handles trailing slash correctly. If not, replace linkat
29047         and define LINKAT_TRAILING_SLASH_BUG.
29048         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29049         check whether (fd1,file1) points to a directory if file1 or file2 ends
29050         in a slash. Code taken from lib/link.c.
29051         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29052         Reported by Rainer Tammer.
29053
29054 2010-07-31  Bruno Haible  <bruno@clisp.org>
29055
29056         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29057         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29058         This disables an xlc optimization that was causing wrong test results.
29059         Reported by Rainer Tammer.
29060
29061 2010-07-31  Bruno Haible  <bruno@clisp.org>
29062
29063         iconv: Work around AIX 6.1..7.1 bug.
29064         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29065         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29066         cross-compiling, guess no on all versions of AIX.
29067         Reported by Rainer Tammer.
29068
29069 2010-07-31  Bruno Haible  <bruno@clisp.org>
29070
29071         readlink: Relax test a bit.
29072         * tests/test-readlink.h (test_readlink): Allow different errno value
29073         when readlink is called with a file name that ends in / and refers to
29074         a file.
29075         Suggested by Eric Blake.
29076         Reported by Rainer Tammer.
29077
29078 2010-07-31  Bruno Haible  <bruno@clisp.org>
29079
29080         copysign: Does not require -lm on glibc systems.
29081         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29082         gl_COMMON_DOUBLE_MATHFUNC.
29083         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29084
29085 2010-07-31  Bruno Haible  <bruno@clisp.org>
29086
29087         duplocale: Work around AIX 7.1 bug.
29088         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29089         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29090         * lib/duplocale.c (rpl_duplocale): Update comment.
29091         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29092         Reported by Rainer Tammer.
29093
29094 2010-07-30  Bruno Haible  <bruno@clisp.org>
29095
29096         dirfd: Avoid link error on AIX 7.1.
29097         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29098         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29099         exist, set REPLACE_DIRFD.
29100         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29101         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29102         * doc/posix-functions/dirfd.texi: Update.
29103         Reported by Rainer Tammer.
29104
29105 2010-07-30  Eric Blake  <eblake@redhat.com>
29106
29107         strtod: next round of AIX fixes
29108         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29109         exponent.
29110         * tests/test-strtod.c (main): Enhance tests.
29111         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29112         Reported by Rainer Tammer.
29113
29114         futimens: fix configure check
29115         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29116         Reported by Bruno Haible.
29117
29118 2010-07-30  Bruno Haible  <bruno@clisp.org>
29119
29120         getline: Update regarding AIX.
29121         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29122         Reported by Rainer Tammer.
29123
29124 2010-07-30  Bruno Haible  <bruno@clisp.org>
29125
29126         wcwidth: Drop replacement on AIX 7.
29127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29128         AIX 7.
29129         Reported by Rainer Tammer.
29130
29131 2010-07-30  Bruno Haible  <bruno@clisp.org>
29132
29133         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29134         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29135         a 'char *'.
29136         Reported by Rainer Tammer.
29137
29138 2010-07-30  Bruno Haible  <bruno@clisp.org>
29139
29140         unlink: Update regarding AIX.
29141         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29142         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29143         Reported by Rainer Tammer.
29144
29145 2010-07-30  Bruno Haible  <bruno@clisp.org>
29146
29147         symlink: Update regarding AIX.
29148         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29149         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29150         Reported by Rainer Tammer.
29151
29152 2010-07-30  Bruno Haible  <bruno@clisp.org>
29153
29154         strndup: Update regarding AIX.
29155         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29156         AIX 7.
29157         Reported by Rainer Tammer.
29158
29159 2010-07-30  Bruno Haible  <bruno@clisp.org>
29160
29161         stat: Update regarding AIX.
29162         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29163         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29164         Reported by Rainer Tammer.
29165
29166 2010-07-30  Bruno Haible  <bruno@clisp.org>
29167
29168         truncl: Fix autoconf test.
29169         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29170         whether truncl works.
29171         Reported by Rainer Tammer.
29172
29173 2010-07-30  Bruno Haible  <bruno@clisp.org>
29174
29175         round: Update regarding AIX.
29176         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29177         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29178         Reported by Rainer Tammer.
29179
29180 2010-07-30  Bruno Haible  <bruno@clisp.org>
29181
29182         rename: Update regarding AIX.
29183         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29184         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29185         Reported by Rainer Tammer.
29186
29187 2010-07-30  Bruno Haible  <bruno@clisp.org>
29188
29189         printf.m4: Update regarding AIX.
29190         * m4/printf.m4: Update comments regarding AIX.
29191         Reported by Rainer Tammer.
29192
29193 2010-07-30  Bruno Haible  <bruno@clisp.org>
29194
29195         iconv: Update regarding AIX.
29196         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29197         AIX 7.
29198         Reported by Rainer Tammer.
29199
29200 2010-07-30  Bruno Haible  <bruno@clisp.org>
29201
29202         getopt: Update regarding AIX.
29203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29204         no on AIX.
29205         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29206         Reported by Rainer Tammer.
29207
29208 2010-07-30  Bruno Haible  <bruno@clisp.org>
29209
29210         ldexpl; Update regarding AIX.
29211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29212         on AIX 7.
29213         Reported by Rainer Tammer.
29214
29215 2010-07-30  Bruno Haible  <bruno@clisp.org>
29216
29217         frexpl: Update regarding AIX.
29218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29219         on AIX 7.
29220         Reported by Rainer Tammer.
29221
29222 2010-07-30  Bruno Haible  <bruno@clisp.org>
29223
29224         open, fopen: Update regarding AIX.
29225         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29226         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29227         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29228         * doc/posix-functions/fopen.texi: Likewise.
29229         Reported by Rainer Tammer.
29230
29231 2010-07-30  Bruno Haible  <bruno@clisp.org>
29232
29233         chown: Update doc regarding AIX.
29234         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29235         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29236         Reported by Rainer Tammer.
29237
29238 2010-07-30  Eric Blake  <eblake@redhat.com>
29239
29240         strtod: fix bug in replacement function on AIX
29241         * lib/strtod.c (strtod): Special case broken "0x" parse in
29242         underlying strtod.
29243         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29244         * doc/posix-functions/strtod.texi (strtod): Likewise.
29245         Reported by Rainer Tammer.
29246
29247 2010-07-30  Bruno Haible  <bruno@clisp.org>
29248
29249         mbrlen: Fix cross-compilation guess for AIX.
29250         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29251         guess. Leftover from 2008-12-22.
29252
29253 2010-07-30  Bruno Haible  <bruno@clisp.org>
29254
29255         mbrtowc: Fix cross-compilation guess for AIX.
29256         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29257         guess. Leftover from 2008-12-21.
29258
29259 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29260
29261         init.sh: work around trap limitation of some shells
29262         * tests/init.sh (setup_): Move exit trap outside of shell function.
29263
29264 2010-07-29  Eric Blake  <eblake@redhat.com>
29265
29266         strtod: aid debugging
29267         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29268         understanding why strtod is rejected.
29269
29270 2010-07-28  Bruno Haible  <bruno@clisp.org>
29271
29272         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29273         * lib/unistr/u8-chr.c: Include <string.h>.
29274         * tests/unistr/test-u8-chr.c: Likewise.
29275         * tests/unistr/test-u16-chr.c: Likewise.
29276         * tests/unistr/test-u32-chr.c: Likewise.
29277         * tests/unistr/test-u8-strchr.c: Likewise.
29278         * tests/unistr/test-u16-strchr.c: Likewise.
29279         * tests/unistr/test-u32-strchr.c: Likewise.
29280         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29281         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29282         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29283         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29284
29285 2010-07-28  Bruno Haible  <bruno@clisp.org>
29286
29287         Use spaces for indentation, not tabs.
29288         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29289
29290 2010-07-27  Bruno Haible  <bruno@clisp.org>
29291
29292         mbspcasecmp: Fix function specification.
29293         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29294         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29295         Reported by Eric Blake <eblake@redhat.com>.
29296
29297 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29298
29299         timespec: use cast and not conditional, as truncation isn't possible
29300         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29301         instead of a conditional.  Comment about the situation in more detail.
29302         This undoes most of the 2009-10-29 patch.
29303
29304 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29305
29306         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29307         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29308         * lib/unistr/u8-strchr.c: Likewise.
29309         * modules/unistr/u8-chr: Depend on memchr.
29310
29311         unistr/u*-strchr: add tests
29312         * modules/unistr/u8-strchr-tests: New file.
29313         * modules/unistr/u16-strchr-tests: New file.
29314         * modules/unistr/u32-strchr-tests: New file.
29315         * tests/unistr/test-strchr.h: New file.
29316         * tests/unistr/test-u8-strchr.c: New file.
29317         * tests/unistr/test-u16-strchr.c: New file.
29318         * tests/unistr/test-u32-strchr.c: New file.
29319
29320         unistr/u*-chr: test multibyte sequences more
29321         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29322         test vector.
29323         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29324         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29325         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29326
29327         unistr/u*-chr: test multibyte sequences
29328         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29329
29330         unistr/u*-chr: prepare for multibyte tests
29331         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29332         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29333         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29334         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29335         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29336         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29337
29338 2010-07-18  Bruno Haible  <bruno@clisp.org>
29339
29340         unistr/u8-strchr: Optimize non-ASCII argument case.
29341         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29342         because the first byte often matches anyway.
29343         Reported by Pádraig Brady <P@draigbrady.com>.
29344
29345 2010-07-15  Karl Berry  <karl@gnu.org>
29346
29347         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29348
29349 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29350
29351         getcwd: on Solaris, work better if ancestors are inaccessible
29352         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29353         buffer and size, try again with a large buffer.  This works better
29354         on Solaris, since its getcwd succeeds even if the path to the root
29355         is inaccessible, and this is helpful in common cases such as .zfs
29356         hidden directories.  Problem reported by J Chapman Flack in
29357         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29358         Use system getcwd if it's declared, not merely if it's partly
29359         working; use the partly-working test only to avoid needless effort
29360         if the system getcwd fails.
29361         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29362         comment that was already obsolete and is now even more obsolete.
29363         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29364         now might call strdup.
29365
29366 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29367
29368         pthread: Add enough so that coreutils/src/sort.c compiles.
29369         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29370         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29371         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29372         Include <sys/types.h>, in case it defines pthread_t.
29373         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29374         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29375         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29376         (pthread_rwlockattr_t, pthread_spinlock_t):
29377         New typedefs, if HAVE_PTHREAD_T is not defined.
29378         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29379         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29380         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29381         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29382         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29383         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29384         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29385         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29386         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29387         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29388         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29389         New macros.
29390         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29391         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29392         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29393         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29394         (pthread_spin_unlock): New dummy functions.
29395         (pthread_create): Return EAGAIN; don't set errno.
29396         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29397         require AC_C_INLINE.
29398         * modules/pthread (Depends-on): Add sched, time.
29399         (pthread.h): Use AM_V_GEN.
29400
29401 2010-07-13  Bruno Haible  <bruno@clisp.org>
29402
29403         striconveh: Don't malloc memory if the result buffer is sufficient.
29404         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29405         buffer if its size is sufficient.
29406         Reported by Ludovic Courtès <ludo@gnu.org>.
29407
29408 2010-07-13  Bruno Haible  <bruno@clisp.org>
29409
29410         strtod: Add safety check.
29411         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29412
29413 2010-07-12  Bruno Haible  <bruno@clisp.org>
29414
29415         Unify tests that set gl_cv_func_ldexpl_no_libm.
29416         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29417         gl_FUNC_LDEXPL.
29418         (gl_FUNC_LDEXPL): Invoke it.
29419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29420
29421 2010-07-12  Bruno Haible  <bruno@clisp.org>
29422
29423         Unify tests that set gl_cv_func_ldexp_no_libm.
29424         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29425         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29426         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29427         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29428         * modules/strtod (Files): Add m4/ldexp.m4.
29429
29430 2010-07-12  Bruno Haible  <bruno@clisp.org>
29431
29432         Unify tests that set gl_cv_func_frexpl_no_libm.
29433         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29434         gl_FUNC_FREXPL_NO_LIBM.
29435         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29436         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29437
29438 2010-07-12  Bruno Haible  <bruno@clisp.org>
29439
29440         Unify tests that set gl_cv_func_frexp_no_libm.
29441         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29442         gl_FUNC_FREXP_NO_LIBM.
29443         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29444         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29445
29446 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29447
29448         memcoll: clarify sizes versus lengths, document better, and tweak perf
29449         * lib/memcoll.c (strcoll_loop, memcoll0):
29450         Improve quality of descriptive comments.  Name variables
29451         consistently as to whether they are lengths (which do not include
29452         terminating null) versus sizes (which do).
29453         * lib/xmemcoll.c (xmemcoll0): Likewise.
29454         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29455         returned when s1size == 0; this is easier to compile and saves
29456         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29457
29458 2010-07-12  Bruno Haible  <bruno@clisp.org>
29459
29460         Tests for module '_Exit'.
29461         * modules/_Exit-tests: New file.
29462         * tests/test-_Exit.sh: New file.
29463         * tests/test-_Exit.c: New file.
29464
29465         New module '_Exit'.
29466         * lib/stdlib.in.h (__attribute__): New macro.
29467         (_Exit): New declaration.
29468         * lib/_Exit.c: New file.
29469         * m4/_Exit.m4: New file.
29470         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29471         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29472         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29473         * modules/_Exit: New file.
29474         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29475         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29476
29477 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29478
29479         strtod: make it more-accurate typically, and don't require libm
29480         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29481         Include limits.h.  Don't include string.h.
29482         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29483         (locale_isspace): New function, so that no casts are needed to
29484         check whether *s is a space.
29485         (ldexp): Provide an unused dummy if not available.
29486         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29487         (strtod): Use them.  This implementation prefers to use the
29488         underlying strtod if available, falling back on our own code
29489         only to fix known bugs.  This is more likely to produce an
29490         accurate result.  Also, it avoids the use of libm functions.
29491         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29492         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29493         was absent, but it caused a test failure with coreutils.
29494         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29495         with libm.
29496         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29497         * modules/strtod-tests (Makefile.am): Likewise.
29498
29499 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29500             Bruno Haible  <bruno@clisp.org>
29501
29502         unistr/u8-strchr: Optimize ASCII argument case.
29503         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29504
29505 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29506
29507         (x)memcoll: minor tweaks
29508         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29509         is after the type that it qualifies.
29510         (memcoll0): Likewise.
29511         * lib/memcoll.h (memcoll0): Likewise.
29512         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29513         * lib/xmemcoll.h (xmemcoll0): Likewise.
29514         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29515         differs from memcoll in that the NUL byte is part of the argument.
29516         Omit the abort-checks, as performance is a real issue here.  Plus,
29517         the checks were wrong anyway (an off-by-one error).  Omit local
29518         variable 'diff', as it's a bit clearer that way.
29519         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29520         no longer needed.
29521
29522 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29523
29524         (x)memcoll: speedup when input is known to be NUL delimited
29525         * lib/memcoll.c: Include stdlib.
29526         (memcoll0): New function.
29527         (strcoll_loop): New function, refactored for use in both memcoll
29528         and memcoll0.
29529         * lib/memcoll.h (memcoll0): Add prototype.
29530         * lib/xmemcoll.c (xmemcoll0): New function.
29531         (collate_error): New function, refactored for use in both xmemcoll
29532         and xmemcoll0.
29533         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29534         * m4/memcoll.m4: add inline invocation.
29535
29536 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29537
29538         * build-aux/bootstrap: Remove any local translations
29539         from the translation project synchronization directory,
29540         so that local only translations are not distributed.
29541
29542 2010-07-04  Bruno Haible  <bruno@clisp.org>
29543
29544         fsusage: Clarify which code applies to which platforms.
29545         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29546         platform.
29547         * lib/fsusage.c (get_fs_usage): Likewise.
29548
29549 2010-07-04  Bruno Haible  <bruno@clisp.org>
29550
29551         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29552         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29553         Reported by Martin Lambers <marlam@marlam.de>.
29554
29555 2010-07-04  Jim Meyering  <meyering@redhat.com>
29556
29557         hash: once again explicitly disallow insertion of NULL
29558         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29559         inserting a NULL pointer cannot work with these functions.
29560         Add a comment with details.
29561         This reverts part of the 2010-07-01 commit, 5bef1a35
29562         "hash: extend module to deal with non-pointer keys".
29563
29564 2010-07-01  Bruno Haible  <bruno@clisp.org>
29565
29566         stdbool: Update doc.
29567         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29568         Info from Christian Weisgerber <naddy@mips.inka.de>.
29569
29570 2010-07-01  Jim Meyering  <meyering@redhat.com>
29571
29572         hash: extend module to deal with non-pointer keys
29573         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29574         but that allows insertion of non-pointer entries.
29575         Do not disallow an ENTRY value of NULL.
29576         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29577         * lib/hash.h (hash_insert0): Declare.
29578
29579 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29580
29581         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29582         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29583         not present (i.e. with autoconf 2.59 and when using gettextize, not
29584         gnulib), require AC_GNU_SOURCE instead.
29585
29586 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29587
29588         idpriv-drop: Fix tests.
29589         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29590         not to the test-idpriv-droptemp program.
29591
29592 2010-06-29  Bruno Haible  <bruno@clisp.org>
29593
29594         string: Fix syntax error with g++ 2.96.
29595         * lib/string.in.h (__pure__): Remove definition.
29596         (_GL_ATTRIBUTE_PURE): New macro.
29597         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29598         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29599         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29600
29601 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29602
29603         unitypes: Fix bug introduced on 2010-05-18.
29604         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29605
29606 2010-06-22  Eric Blake  <eblake@redhat.com>
29607
29608         memmem: slight optimization
29609         * lib/str-two-way.h (critical_factorization): Update comments.
29610         Reduce work during factorization phase.
29611         Reported by Carlos Bueno <carlos@bueno.org>.
29612
29613 2010-06-21  Bruno Haible  <bruno@clisp.org>
29614
29615         Fix HAVE_CALLOC_POSIX misnomer.
29616         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29617         !HAVE_CALLOC_POSIX.
29618         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29619         HAVE_CALLOC_POSIX.
29620         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29621         instead of HAVE_CALLOC_POSIX.
29622         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29623         HAVE_CALLOC_POSIX.
29624
29625         Use modern idiom for calloc() replacement.
29626         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29627         AC_FUNC_CALLOC.
29628         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29629         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29630         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29631         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29632         (gl_REPLACE_CALLOC): New macro.
29633
29634 2010-06-21  Bruno Haible  <bruno@clisp.org>
29635
29636         Fix HAVE_REALLOC_POSIX misnomer.
29637         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29638         !HAVE_REALLOC_POSIX.
29639         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29640         HAVE_REALLOC_POSIX.
29641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29642         instead of HAVE_REALLOC_POSIX.
29643         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29644         HAVE_REALLOC_POSIX.
29645
29646         Use modern idiom for realloc() replacement.
29647         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29648         AC_FUNC_REALLOC.
29649         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29650         Autoconf's AC_FUNC_REALLOC.
29651         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29652         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29653         (gl_REPLACE_REALLOC): New macro.
29654         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29655
29656 2010-06-21  Bruno Haible  <bruno@clisp.org>
29657
29658         Fix HAVE_MALLOC_POSIX misnomer.
29659         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29660         !HAVE_MALLOC_POSIX.
29661         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29662         HAVE_MALLOC_POSIX.
29663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29664         instead of HAVE_MALLOC_POSIX.
29665         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29666         HAVE_MALLOC_POSIX.
29667
29668         Use modern idiom for malloc() replacement.
29669         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29670         AC_FUNC_MALLOC.
29671         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29672         Autoconf's AC_FUNC_MALLOC.
29673         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29674         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29675         (gl_REPLACE_MALLOC): New macro.
29676         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29677
29678 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29679
29680         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29681         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29682         This macro takes 3 arguments, not 4.
29683
29684 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29685
29686         ipv6: fix detection under mingw
29687         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29688         in6_addr.
29689
29690 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29691
29692         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29693         that strtod() works when cross-compiling to a glibc version known
29694         to work.
29695
29696 2010-06-15  Bruno Haible  <bruno@clisp.org>
29697
29698         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29699
29700 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29701
29702         select: Correct timeout.
29703         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29704
29705 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29706
29707         git-version-gen: init shell var to avoid env var influence
29708         * build-aux/git-version-gen (v): Init shell var to empty.
29709
29710 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29711
29712         priv-set: Don't assume that priv.h exists merely because getppriv does.
29713         See Jan Andersen's bug report about AIX 5L in
29714         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29715         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29716         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29717         * lib/priv-set.h: Likewise.
29718         * tests/test-priv-set.c: Likewise.
29719
29720 2010-06-13  Bruno Haible  <bruno@clisp.org>
29721
29722         relocatable: Make it easier to test whether to install wrappers.
29723         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29724         RELOCATABLE_VIA_WRAPPER.
29725
29726 2010-06-13  Bruno Haible  <bruno@clisp.org>
29727
29728         gnulib-tool: Display specified modules and dependencies differently.
29729         * gnulib-tool (func_show_module_list): New function.
29730         (func_import, func_create_testdir): Invoke it.
29731         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29732
29733 2010-06-13  Bruno Haible  <bruno@clisp.org>
29734
29735         gnulib-tool: Align code of func_import and func_create_testdir.
29736         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29737         specified_modules.
29738
29739 2010-06-12  Jim Meyering  <meyering@redhat.com>
29740
29741         test-inttostr: avoid spurious failure on Solaris 9
29742         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29743         to accept "%ju".  Reported by Bruno Haible.
29744
29745 2010-06-11  Jim Meyering  <meyering@redhat.com>
29746
29747         test-sys_socket: mark variables as used more readably
29748         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29749         as "used" explicitly via (void) statement casts.  This is more
29750         readable than using them in an artificial return expression.
29751         Suggestion from Bruno Haible.
29752
29753 2010-06-11  Bruno Haible  <bruno@clisp.org>
29754
29755         Avoid some more warnings from "gcc -Wwrite-strings".
29756         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29757         to 'const char *'.
29758         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29759         * tests/test-c-strcasestr.c (main): Likewise.
29760         * tests/test-mbscasestr1.c (main): Likewise.
29761         * tests/test-mbscasestr2.c (main): Likewise.
29762         * tests/test-memmem.c (main): Likewise.
29763         * tests/test-strstr.c (main): Likewise.
29764         * tests/test-strcasestr.c (main): Likewise.
29765
29766 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29767
29768         init.sh: change framework_failure_ to fail with status 99, not 1
29769         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29770         automake's parallel-tests rule that this is an unexpected failure,
29771         even if the test is listed in XFAIL_TESTS.
29772
29773 2010-06-11  Jim Meyering  <meyering@redhat.com>
29774
29775         test-inttostr: avoid warnings about 4-6KB literal strings
29776         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29777         Include "macros.h", for its definition of ASSERT.
29778         (CK): s/assert/ASSERT/
29779         * modules/inttostr-tests (Files): Add macros.h.
29780
29781         init.sh: don't use $ME_ or skip_ before they are defined
29782         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29783         their first uses.  Also hoist their companions: warn_, fail_,
29784         framework_failure_, $stderr_fileno.  Prompted by a patch from
29785         Stefano Lattarini.
29786
29787         test-sys_socket: avoid set-but-not-used warnings from gcc
29788         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29789         avoid warning about set-but-not-used variables.
29790
29791         test-xvasprintf: avoid 'const' discard warnings
29792         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29793         "const" when assigning from literal strings.
29794         (test_xasprintf): Add "void" in function argument list to placate
29795         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29796
29797         tests: avoid compilation warnings in argmatch and exclude tests...
29798         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29799         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29800         Since it always exits, declare with the "noreturn" attribute.
29801         * tests/test-argmatch.c: Likewise.
29802
29803         tests: avoid 'const' discard warnings in mbsstr tests
29804         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29805         * tests/test-mbsstr2.c (main): Likewise.
29806
29807         test-verify: avoid warning from gcc's -Wmissing-declarations
29808         * tests/test-verify.c (function): Declare to be static.
29809
29810         test-inttostr.c: include <string.h> for use of strcmp
29811         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29812
29813         test-linkat: avoid failed assertion on "other" architectures
29814         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29815         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29816         sparc: https://bugs.launchpad.net/bugs/591968
29817
29818 2010-06-11  Jim Meyering  <meyering@redhat.com>
29819
29820         printf.m4: avoid autoconf's "Expanded Before Required" warning
29821         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29822         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29823         autoconf warning.
29824
29825 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29826
29827         Replacement header templates are now named with ".in", not "_".
29828         * doc/gnulib-intro.texi: Correct.
29829
29830 2010-06-10  Jim Meyering  <meyering@redhat.com>
29831
29832         inttostr-tests: depend on snprintf, not snprintf-posix
29833         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29834         snprintf-posix, to avoid this aclocal failure:
29835           missing file gnulib-tests/vasnprintf.c
29836           configure.ac:45: error: expected source file, required through \
29837           AC_LIBSOURCES, not found
29838
29839 2010-06-10  Jim Meyering  <meyering@redhat.com>
29840
29841         inttostr: add a new function, inttostr, and tests
29842         The namesake function was not available.  The existence of the
29843         template file, inttostr.c makes its addition nontrivial.
29844         * lib/anytostr.c: Rename from inttostr.c.
29845         (anytostr): Rename from inttostr.
29846         * lib/inttostr.c: New file.
29847         * modules/inttostr (Files): Add anytostr.c.
29848         (Makefile.am): Set lib_SOURCES instead of ...
29849         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29850         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29851         * lib/offtostr.c: Likewise.
29852         * lib/uinttostr.c: Likewise.
29853         * lib/umaxtostr.c: Likewise.
29854         * modules/inttostr-tests: New file.
29855         * tests/test-inttostr.c: New file.  Test these functions.
29856
29857 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29858             Bruno Haible  <bruno@clisp.org>
29859
29860         Add "Extending Gnulib" chapter to manual.
29861         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29862         chapter.
29863         (Extending Gnulib): New chapter.
29864         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29865         chapter.
29866
29867 2010-06-09  Bruno Haible  <bruno@clisp.org>
29868
29869         Avoid relocwrapper link errors due to gnulib replacement functions.
29870         * lib/areadlink.c: Use the system's malloc, realloc functions.
29871         (areadlink): Set errno to ENOMEM explicitly.
29872         * modules/areadlink (Depends-on): Remove malloc-posix.
29873         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29874
29875 2010-06-09  Bruno Haible  <bruno@clisp.org>
29876
29877         Avoid relocwrapper link errors due to gnulib replacement functions.
29878         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29879         * lib/malloca.c: Likewise.
29880         * lib/relocatable.c: Likewise.
29881         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29882         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29883         * lib/setenv.c: Use the system's malloc, realloc functions.
29884         * lib/strerror.c: Use the system's sprintf function.
29885         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29886
29887 2010-06-04  Bruno Haible  <bruno@clisp.org>
29888
29889         Prefer documented low-level autoconf macro names.
29890         * m4/lib-link.m4: Use m4_translit instead of translit.
29891         * m4/environ.m4: Likewise.
29892         * m4/mathfunc.m4: Likewise.
29893         * m4/onceonly.m4: Likewise.
29894         * m4/stdint.m4: Likewise.
29895         Suggested by Eric Blake.
29896
29897 2010-06-04  Martin Lambers  <marlam@marlam.de>
29898             Bruno Haible  <bruno@clisp.org>
29899
29900         havelib: Allow library names with '+' characters.
29901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29902         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29903
29904 2010-06-09  Bruno Haible  <bruno@clisp.org>
29905
29906         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29907         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29908         realloc failed.
29909
29910 2010-06-08  Peter Simons  <simons@cryp.to>
29911
29912         maint.mk: make the news-check rule more configurable
29913         * top/maint.mk (news-check-lines-spec): New variable.
29914         (news-check): Use "sed -n 1,10p" in place of "head".
29915
29916 2010-06-07  Jim Meyering  <meyering@redhat.com>
29917
29918         do-release-commit-and-tag: fix typo in --help
29919         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29920
29921         regex: avoid new dead-code warning with gcc-4.6.0
29922         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29923         if-block containing a while-loop.  It's been unused for at least
29924         5 years.
29925
29926 2010-06-05  Bruno Haible  <bruno@clisp.org>
29927
29928         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29929         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29930
29931 2010-06-04  Bruno Haible  <bruno@clisp.org>
29932
29933         Update to GNU gettext 0.18.1.
29934         * modules/gettext (configure.ac): Require gettext infrastructure from
29935         version 0.18.1.
29936
29937 2010-06-03  Bruno Haible  <bruno@clisp.org>
29938
29939         Don't use AC_LIBOBJ with file names in subdirectories.
29940         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29941         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29942         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29943         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29944         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29945         gl_LIBUNISTRING_LIBSOURCE.
29946         (Makefile.am): Augment lib_SOURCES here, conditionally.
29947         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29948
29949 2010-06-03  Bruno Haible  <bruno@clisp.org>
29950
29951         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29952         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29953         expansion does not end with a newline.
29954         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29955         unnecessary newline.
29956
29957 2010-06-03  Bruno Haible  <bruno@clisp.org>
29958
29959         Reduce dependencies.
29960         * tests/test-quotearg.h: New file, extracted from
29961         tests/test-quotearg.c.
29962         * tests/test-quotearg-simple.c: New file, extracted from
29963         tests/test-quotearg.c.
29964         * tests/test-quotearg.c: Don't include <ctype.h>.
29965         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29966         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29967         use_quote_double_quotes, use_quotearg_colon): Moved to
29968         tests/test-quotearg.h.
29969         (results_g, flag_results, custom_quotes, custom_results): Moved
29970         to tests/test-quotearg-simple.c.
29971         (main): Moved the part that does not depend on gettext to
29972         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29973         performed.
29974         * modules/quotearg-simple: New file.
29975         * modules/quotearg-simple-tests: New file.
29976         * modules/quotearg (Depends-on): Add quotearg-simple.
29977         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29978         (Files): Add tests/test-quotearg.h.
29979         Reported by Paolo Bonzini.
29980
29981 2010-06-03  Bruno Haible  <bruno@clisp.org>
29982
29983         Reduce dependencies.
29984         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29985
29986 2010-06-03  Bruno Haible  <bruno@clisp.org>
29987
29988         time: Undefine more broken macros.
29989         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29990         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29991         Reported by Eric Blake.
29992
29993 2010-06-03  Bruno Haible  <bruno@clisp.org>
29994
29995         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29996         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29997         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29998         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29999         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30000         Reported by Ludovic Courtès <ludo@gnu.org>.
30001
30002 2010-06-02  Eric Blake  <eblake@redhat.com>
30003
30004         time: work with mingw + pthreads-win32 library
30005         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30006         if timespec is defined only in pthread.h.
30007         * modules/time (Makefile.am): Substitute it.
30008         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30009         <pthread.h>, when needed.
30010         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30011         from the library.
30012
30013 2010-05-31  Bruno Haible  <bruno@clisp.org>
30014
30015         Avoid expanding two macros in the wrong order.
30016         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30017         gl_LIBUNISTRING if it is defined.
30018         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30019         autoconf >= 2.64.
30020         Reported by Ludovic Courtès <ludo@gnu.org>.
30021
30022 2010-05-27  Jim Meyering  <meyering@redhat.com>
30023
30024         maint.mk: also prohibit "#undef" of always-defined symbols
30025         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30026         Allow more than one space before the symbol name.
30027         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30028         the regexp uses alternation.
30029
30030 2010-05-26  Eric Blake  <eblake@redhat.com>
30031
30032         maint.mk: avoid echo -e
30033         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30034         Convert all uses of echo -* to printf.
30035         Reported by Matthias Bolte.
30036
30037 2010-05-25  Bruno Haible  <bruno@clisp.org>
30038
30039         Update to GNU gettext 0.18, part 2.
30040         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30041         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30042
30043 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30044
30045         Add missing include in test-pwrite.c.
30046         * tests/test-pwrite.c: Include string.h, for strcmp.
30047
30048 2010-05-24  Bruno Haible  <bruno@clisp.org>
30049
30050         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30051
30052 2010-05-24  Bruno Haible  <bruno@clisp.org>
30053
30054         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30055         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30056         iconveh_error argument.
30057         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30058         U_STRCONV_TO_LOCALE.
30059         * lib/unistr/u16-strcoll.c: Likewise.
30060         * lib/unistr/u32-strcoll.c: Likewise.
30061         * modules/unistr/u8-strcoll (Depends-on): Add
30062         uniconv/u8-strconv-to-enc, localcharset. Remove
30063         uniconv/u8-strconv-to-locale.
30064         (configure.ac): Bump version number.
30065         * modules/unistr/u16-strcoll (Depends-on): Add
30066         uniconv/u16-strconv-to-enc, localcharset. Remove
30067         uniconv/u16-strconv-to-locale.
30068         (configure.ac): Bump version number.
30069         * modules/unistr/u32-strcoll (Depends-on): Add
30070         uniconv/u32-strconv-to-enc, localcharset. Remove
30071         uniconv/u32-strconv-to-locale.
30072         (configure.ac): Bump version number.
30073
30074 2010-05-24  Bruno Haible  <bruno@clisp.org>
30075
30076         Avoid a test failure on NetBSD 5.0.
30077         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30078         an iconv() bug.
30079
30080 2010-05-24  Bruno Haible  <bruno@clisp.org>
30081
30082         Adjust #include directive style.
30083         * modules/regex (Includes): Recommend to write <regex.h>.
30084
30085 2010-05-24  Bruno Haible  <bruno@clisp.org>
30086
30087         regex: Don't require alloca.
30088         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30089         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30090         only inside if (0).
30091
30092 2010-05-23  Jim Meyering  <meyering@redhat.com>
30093
30094         test-renameat.c: include <sys/stat.h>
30095         * tests/test-renameat.c: Include <sys/stat.h>; required for
30096         definition of S_IS* macros.
30097
30098 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30099
30100         Update maintainer documentation for 'relocatable-prog' module.
30101         * doc/relocatable-maint.texi: Update.
30102         Comments by Bruno Haible.
30103
30104 2010-05-23  Bruno Haible  <bruno@clisp.org>
30105
30106         git-merge-changelog: Enable --split-merged-entry by default.
30107         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30108         (usage): Don't mention this option any more.
30109         Reported by Ralf Wildenhues.
30110
30111 2010-05-23  Jim Meyering  <meyering@redhat.com>
30112
30113         test-pwrite: do not leave behind a test file named "out"
30114         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30115         The trivial-looking use of init.sh is really necessary.
30116         It ensures that the temporary file, "out", is created in
30117         a temporary directory, and removed upon termination.
30118         * tests/test-pwrite.sh: Re-add file.
30119         * modules/pwrite-tests: Reference it.
30120
30121 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30122
30123         Fix output redirection buglet in init.sh.
30124         * tests/init.sh: Fix redirection of stderr.
30125
30126 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30127
30128         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30129
30130 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30131
30132         * modules/valgrind-tests: New file.
30133         * m4/valgrind-tests.m4: New file.
30134         * doc/valgrind-tests.texi: New file.
30135         * doc/gnulib.texi (Running self-tests under valgrind): New
30136         section.
30137
30138 2010-05-19  Bruno Haible  <bruno@clisp.org>
30139
30140         Clean up dead code in recent commit.
30141         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30142         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30143         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30144         Suggested by Paolo Bonzini.
30145
30146 2010-05-19  Bruno Haible  <bruno@clisp.org>
30147
30148         Avoid valgrind error reports from libunistring.
30149         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30150         * modules/libunistring (Files): Add it.
30151         * modules/libunistring-optional (Files): Likewise.
30152
30153 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30154             Bruno Haible  <bruno@clisp.org>
30155
30156         New module 'libunistring-optional'.
30157         * modules/libunistring-optional: New file.
30158         * m4/libunistring-base.m4: New file.
30159         * m4/libunistring-optional.m4: New file.
30160         * lib/unicase.in.h: Renamed from lib/unicase.h.
30161         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30162         * lib/unictype.in.h: Renamed from lib/unictype.h.
30163         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30164         * lib/uniname.in.h: Renamed from lib/uniname.h.
30165         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30166         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30167         * lib/unistr.in.h: Renamed from lib/unistr.h.
30168         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30169         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30170         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30171         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30172         gl_LIBUNISTRING. If the library was found, determine the installed
30173         version and set LIBUNISTRING_VERSION.
30174         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30175         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30176         handle a configuration option --with-included-libunistring.
30177         * modules/libunistring (Files): Add m4/absolute-header.m4.
30178         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30179         Add m4/libunistring-base.m4.
30180         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30181         (Makefile.am): Build unicase.h from unicase.in.h.
30182         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30183         Add m4/libunistring-base.m4.
30184         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30185         (Makefile.am): Build uniconv.h from uniconv.in.h.
30186         * modules/unictype/base (Files): Use unictype.in.h instead of
30187         unictype.h. Add m4/libunistring-base.m4.
30188         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30189         (Makefile.am): Build unictype.h from unictype.in.h.
30190         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30191         Add m4/libunistring-base.m4.
30192         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30193         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30194         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30195         Add m4/libunistring-base.m4.
30196         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30197         (Makefile.am): Build uniname.h from uniname.in.h.
30198         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30199         Add m4/libunistring-base.m4.
30200         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30201         (Makefile.am): Build uninorm.h from uninorm.in.h.
30202         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30203         unistdio.h. Add m4/libunistring-base.m4.
30204         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30205         (Makefile.am): Build unistdio.h from unistdio.in.h.
30206         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30207         Add m4/libunistring-base.m4.
30208         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30209         (Makefile.am): Build unistr.h from unistr.in.h.
30210         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30211         Add m4/libunistring-base.m4.
30212         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30213         (Makefile.am): Build unitypes.h from unitypes.in.h.
30214         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30215         Add m4/libunistring-base.m4.
30216         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30217         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30218         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30219         uniwidth.h. Add m4/libunistring-base.m4.
30220         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30221         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30222         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30223         instead of augmenting lib_SOURCES.
30224         * modules/unicase/empty-suffix-context: Likewise.
30225         * modules/unicase/locale-language: Likewise.
30226         * modules/unicase/tolower: Likewise.
30227         * modules/unicase/totitle: Likewise.
30228         * modules/unicase/toupper: Likewise.
30229         * modules/unicase/u8-casecmp: Likewise.
30230         * modules/unicase/u8-casecoll: Likewise.
30231         * modules/unicase/u8-casefold: Likewise.
30232         * modules/unicase/u8-casexfrm: Likewise.
30233         * modules/unicase/u8-ct-casefold: Likewise.
30234         * modules/unicase/u8-ct-tolower: Likewise.
30235         * modules/unicase/u8-ct-totitle: Likewise.
30236         * modules/unicase/u8-ct-toupper: Likewise.
30237         * modules/unicase/u8-is-cased: Likewise.
30238         * modules/unicase/u8-is-casefolded: Likewise.
30239         * modules/unicase/u8-is-lowercase: Likewise.
30240         * modules/unicase/u8-is-titlecase: Likewise.
30241         * modules/unicase/u8-is-uppercase: Likewise.
30242         * modules/unicase/u8-prefix-context: Likewise.
30243         * modules/unicase/u8-suffix-context: Likewise.
30244         * modules/unicase/u8-tolower: Likewise.
30245         * modules/unicase/u8-totitle: Likewise.
30246         * modules/unicase/u8-toupper: Likewise.
30247         * modules/unicase/u16-casecmp: Likewise.
30248         * modules/unicase/u16-casecoll: Likewise.
30249         * modules/unicase/u16-casefold: Likewise.
30250         * modules/unicase/u16-casexfrm: Likewise.
30251         * modules/unicase/u16-ct-casefold: Likewise.
30252         * modules/unicase/u16-ct-tolower: Likewise.
30253         * modules/unicase/u16-ct-totitle: Likewise.
30254         * modules/unicase/u16-ct-toupper: Likewise.
30255         * modules/unicase/u16-is-cased: Likewise.
30256         * modules/unicase/u16-is-casefolded: Likewise.
30257         * modules/unicase/u16-is-lowercase: Likewise.
30258         * modules/unicase/u16-is-titlecase: Likewise.
30259         * modules/unicase/u16-is-uppercase: Likewise.
30260         * modules/unicase/u16-prefix-context: Likewise.
30261         * modules/unicase/u16-suffix-context: Likewise.
30262         * modules/unicase/u16-tolower: Likewise.
30263         * modules/unicase/u16-totitle: Likewise.
30264         * modules/unicase/u16-toupper: Likewise.
30265         * modules/unicase/u32-casecmp: Likewise.
30266         * modules/unicase/u32-casecoll: Likewise.
30267         * modules/unicase/u32-casefold: Likewise.
30268         * modules/unicase/u32-casexfrm: Likewise.
30269         * modules/unicase/u32-ct-casefold: Likewise.
30270         * modules/unicase/u32-ct-tolower: Likewise.
30271         * modules/unicase/u32-ct-totitle: Likewise.
30272         * modules/unicase/u32-ct-toupper: Likewise.
30273         * modules/unicase/u32-is-cased: Likewise.
30274         * modules/unicase/u32-is-casefolded: Likewise.
30275         * modules/unicase/u32-is-lowercase: Likewise.
30276         * modules/unicase/u32-is-titlecase: Likewise.
30277         * modules/unicase/u32-is-uppercase: Likewise.
30278         * modules/unicase/u32-prefix-context: Likewise.
30279         * modules/unicase/u32-suffix-context: Likewise.
30280         * modules/unicase/u32-tolower: Likewise.
30281         * modules/unicase/u32-totitle: Likewise.
30282         * modules/unicase/u32-toupper: Likewise.
30283         * modules/unicase/ulc-casecmp: Likewise.
30284         * modules/unicase/ulc-casecoll: Likewise.
30285         * modules/unicase/ulc-casexfrm: Likewise.
30286         * modules/uniconv/u8-conv-from-enc: Likewise.
30287         * modules/uniconv/u8-conv-to-enc: Likewise.
30288         * modules/uniconv/u8-strconv-from-enc: Likewise.
30289         * modules/uniconv/u8-strconv-from-locale: Likewise.
30290         * modules/uniconv/u8-strconv-to-enc: Likewise.
30291         * modules/uniconv/u8-strconv-to-locale: Likewise.
30292         * modules/uniconv/u16-conv-from-enc: Likewise.
30293         * modules/uniconv/u16-conv-to-enc: Likewise.
30294         * modules/uniconv/u16-strconv-from-enc: Likewise.
30295         * modules/uniconv/u16-strconv-from-locale: Likewise.
30296         * modules/uniconv/u16-strconv-to-enc: Likewise.
30297         * modules/uniconv/u16-strconv-to-locale: Likewise.
30298         * modules/uniconv/u32-conv-from-enc: Likewise.
30299         * modules/uniconv/u32-conv-to-enc: Likewise.
30300         * modules/uniconv/u32-strconv-from-enc: Likewise.
30301         * modules/uniconv/u32-strconv-from-locale: Likewise.
30302         * modules/uniconv/u32-strconv-to-enc: Likewise.
30303         * modules/uniconv/u32-strconv-to-locale: Likewise.
30304         * modules/unictype/bidicategory-byname: Likewise.
30305         * modules/unictype/bidicategory-name: Likewise.
30306         * modules/unictype/bidicategory-of: Likewise.
30307         * modules/unictype/bidicategory-test: Likewise.
30308         * modules/unictype/block-list: Likewise.
30309         * modules/unictype/block-test: Likewise.
30310         * modules/unictype/category-C: Likewise.
30311         * modules/unictype/category-Cc: Likewise.
30312         * modules/unictype/category-Cf: Likewise.
30313         * modules/unictype/category-Cn: Likewise.
30314         * modules/unictype/category-Co: Likewise.
30315         * modules/unictype/category-Cs: Likewise.
30316         * modules/unictype/category-L: Likewise.
30317         * modules/unictype/category-Ll: Likewise.
30318         * modules/unictype/category-Lm: Likewise.
30319         * modules/unictype/category-Lo: Likewise.
30320         * modules/unictype/category-Lt: Likewise.
30321         * modules/unictype/category-Lu: Likewise.
30322         * modules/unictype/category-M: Likewise.
30323         * modules/unictype/category-Mc: Likewise.
30324         * modules/unictype/category-Me: Likewise.
30325         * modules/unictype/category-Mn: Likewise.
30326         * modules/unictype/category-N: Likewise.
30327         * modules/unictype/category-Nd: Likewise.
30328         * modules/unictype/category-Nl: Likewise.
30329         * modules/unictype/category-No: Likewise.
30330         * modules/unictype/category-P: Likewise.
30331         * modules/unictype/category-Pc: Likewise.
30332         * modules/unictype/category-Pd: Likewise.
30333         * modules/unictype/category-Pe: Likewise.
30334         * modules/unictype/category-Pf: Likewise.
30335         * modules/unictype/category-Pi: Likewise.
30336         * modules/unictype/category-Po: Likewise.
30337         * modules/unictype/category-Ps: Likewise.
30338         * modules/unictype/category-S: Likewise.
30339         * modules/unictype/category-Sc: Likewise.
30340         * modules/unictype/category-Sk: Likewise.
30341         * modules/unictype/category-Sm: Likewise.
30342         * modules/unictype/category-So: Likewise.
30343         * modules/unictype/category-Z: Likewise.
30344         * modules/unictype/category-Zl: Likewise.
30345         * modules/unictype/category-Zp: Likewise.
30346         * modules/unictype/category-Zs: Likewise.
30347         * modules/unictype/category-and: Likewise.
30348         * modules/unictype/category-and-not: Likewise.
30349         * modules/unictype/category-byname: Likewise.
30350         * modules/unictype/category-name: Likewise.
30351         * modules/unictype/category-none: Likewise.
30352         * modules/unictype/category-of: Likewise.
30353         * modules/unictype/category-or: Likewise.
30354         * modules/unictype/category-test: Likewise.
30355         * modules/unictype/combining-class: Likewise.
30356         * modules/unictype/ctype-alnum: Likewise.
30357         * modules/unictype/ctype-alpha: Likewise.
30358         * modules/unictype/ctype-blank: Likewise.
30359         * modules/unictype/ctype-cntrl: Likewise.
30360         * modules/unictype/ctype-digit: Likewise.
30361         * modules/unictype/ctype-graph: Likewise.
30362         * modules/unictype/ctype-lower: Likewise.
30363         * modules/unictype/ctype-print: Likewise.
30364         * modules/unictype/ctype-punct: Likewise.
30365         * modules/unictype/ctype-space: Likewise.
30366         * modules/unictype/ctype-upper: Likewise.
30367         * modules/unictype/ctype-xdigit: Likewise.
30368         * modules/unictype/decimal-digit: Likewise.
30369         * modules/unictype/digit: Likewise.
30370         * modules/unictype/mirror: Likewise.
30371         * modules/unictype/numeric: Likewise.
30372         * modules/unictype/property-alphabetic: Likewise.
30373         * modules/unictype/property-ascii-hex-digit: Likewise.
30374         * modules/unictype/property-bidi-arabic-digit: Likewise.
30375         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30376         * modules/unictype/property-bidi-block-separator: Likewise.
30377         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30378         * modules/unictype/property-bidi-common-separator: Likewise.
30379         * modules/unictype/property-bidi-control: Likewise.
30380         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30381         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30382         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30383         * modules/unictype/property-bidi-european-digit: Likewise.
30384         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30385         * modules/unictype/property-bidi-left-to-right: Likewise.
30386         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30387         * modules/unictype/property-bidi-other-neutral: Likewise.
30388         * modules/unictype/property-bidi-pdf: Likewise.
30389         * modules/unictype/property-bidi-segment-separator: Likewise.
30390         * modules/unictype/property-bidi-whitespace: Likewise.
30391         * modules/unictype/property-byname: Likewise.
30392         * modules/unictype/property-combining: Likewise.
30393         * modules/unictype/property-composite: Likewise.
30394         * modules/unictype/property-currency-symbol: Likewise.
30395         * modules/unictype/property-dash: Likewise.
30396         * modules/unictype/property-decimal-digit: Likewise.
30397         * modules/unictype/property-default-ignorable-code-point: Likewise.
30398         * modules/unictype/property-deprecated: Likewise.
30399         * modules/unictype/property-diacritic: Likewise.
30400         * modules/unictype/property-extender: Likewise.
30401         * modules/unictype/property-format-control: Likewise.
30402         * modules/unictype/property-grapheme-base: Likewise.
30403         * modules/unictype/property-grapheme-extend: Likewise.
30404         * modules/unictype/property-grapheme-link: Likewise.
30405         * modules/unictype/property-hex-digit: Likewise.
30406         * modules/unictype/property-hyphen: Likewise.
30407         * modules/unictype/property-id-continue: Likewise.
30408         * modules/unictype/property-id-start: Likewise.
30409         * modules/unictype/property-ideographic: Likewise.
30410         * modules/unictype/property-ids-binary-operator: Likewise.
30411         * modules/unictype/property-ids-trinary-operator: Likewise.
30412         * modules/unictype/property-ignorable-control: Likewise.
30413         * modules/unictype/property-iso-control: Likewise.
30414         * modules/unictype/property-join-control: Likewise.
30415         * modules/unictype/property-left-of-pair: Likewise.
30416         * modules/unictype/property-line-separator: Likewise.
30417         * modules/unictype/property-logical-order-exception: Likewise.
30418         * modules/unictype/property-lowercase: Likewise.
30419         * modules/unictype/property-math: Likewise.
30420         * modules/unictype/property-non-break: Likewise.
30421         * modules/unictype/property-not-a-character: Likewise.
30422         * modules/unictype/property-numeric: Likewise.
30423         * modules/unictype/property-other-alphabetic: Likewise.
30424         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30425         * modules/unictype/property-other-grapheme-extend: Likewise.
30426         * modules/unictype/property-other-id-continue: Likewise.
30427         * modules/unictype/property-other-id-start: Likewise.
30428         * modules/unictype/property-other-lowercase: Likewise.
30429         * modules/unictype/property-other-math: Likewise.
30430         * modules/unictype/property-other-uppercase: Likewise.
30431         * modules/unictype/property-paired-punctuation: Likewise.
30432         * modules/unictype/property-paragraph-separator: Likewise.
30433         * modules/unictype/property-pattern-syntax: Likewise.
30434         * modules/unictype/property-pattern-white-space: Likewise.
30435         * modules/unictype/property-private-use: Likewise.
30436         * modules/unictype/property-punctuation: Likewise.
30437         * modules/unictype/property-quotation-mark: Likewise.
30438         * modules/unictype/property-radical: Likewise.
30439         * modules/unictype/property-sentence-terminal: Likewise.
30440         * modules/unictype/property-soft-dotted: Likewise.
30441         * modules/unictype/property-space: Likewise.
30442         * modules/unictype/property-terminal-punctuation: Likewise.
30443         * modules/unictype/property-test: Likewise.
30444         * modules/unictype/property-titlecase: Likewise.
30445         * modules/unictype/property-unassigned-code-value: Likewise.
30446         * modules/unictype/property-unified-ideograph: Likewise.
30447         * modules/unictype/property-uppercase: Likewise.
30448         * modules/unictype/property-variation-selector: Likewise.
30449         * modules/unictype/property-white-space: Likewise.
30450         * modules/unictype/property-xid-continue: Likewise.
30451         * modules/unictype/property-xid-start: Likewise.
30452         * modules/unictype/property-zero-width: Likewise.
30453         * modules/unictype/scripts: Likewise.
30454         * modules/unictype/syntax-c-ident: Likewise.
30455         * modules/unictype/syntax-c-whitespace: Likewise.
30456         * modules/unictype/syntax-java-ident: Likewise.
30457         * modules/unictype/syntax-java-whitespace: Likewise.
30458         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30459         * modules/unilbrk/u8-width-linebreaks: Likewise.
30460         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30461         * modules/unilbrk/u16-width-linebreaks: Likewise.
30462         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30463         * modules/unilbrk/u32-width-linebreaks: Likewise.
30464         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30465         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30466         * modules/uniname/uniname: Likewise.
30467         * modules/uninorm/canonical-decomposition: Likewise.
30468         * modules/uninorm/composition: Likewise.
30469         * modules/uninorm/decomposing-form: Likewise.
30470         * modules/uninorm/decomposition: Likewise.
30471         * modules/uninorm/filter: Likewise.
30472         * modules/uninorm/nfc: Likewise.
30473         * modules/uninorm/nfd: Likewise.
30474         * modules/uninorm/nfkc: Likewise.
30475         * modules/uninorm/nfkd: Likewise.
30476         * modules/uninorm/u8-normalize: Likewise.
30477         * modules/uninorm/u8-normcmp: Likewise.
30478         * modules/uninorm/u8-normcoll: Likewise.
30479         * modules/uninorm/u8-normxfrm: Likewise.
30480         * modules/uninorm/u16-normalize: Likewise.
30481         * modules/uninorm/u16-normcmp: Likewise.
30482         * modules/uninorm/u16-normcoll: Likewise.
30483         * modules/uninorm/u16-normxfrm: Likewise.
30484         * modules/uninorm/u32-normalize: Likewise.
30485         * modules/uninorm/u32-normcmp: Likewise.
30486         * modules/uninorm/u32-normcoll: Likewise.
30487         * modules/uninorm/u32-normxfrm: Likewise.
30488         * modules/unistdio/u8-asnprintf: Likewise.
30489         * modules/unistdio/u8-asprintf: Likewise.
30490         * modules/unistdio/u8-snprintf: Likewise.
30491         * modules/unistdio/u8-sprintf: Likewise.
30492         * modules/unistdio/u8-u8-asnprintf: Likewise.
30493         * modules/unistdio/u8-u8-asprintf: Likewise.
30494         * modules/unistdio/u8-u8-snprintf: Likewise.
30495         * modules/unistdio/u8-u8-sprintf: Likewise.
30496         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30497         * modules/unistdio/u8-u8-vasprintf: Likewise.
30498         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30499         * modules/unistdio/u8-u8-vsprintf: Likewise.
30500         * modules/unistdio/u8-vasnprintf: Likewise.
30501         * modules/unistdio/u8-vasprintf: Likewise.
30502         * modules/unistdio/u8-vsnprintf: Likewise.
30503         * modules/unistdio/u8-vsprintf: Likewise.
30504         * modules/unistdio/u16-asnprintf: Likewise.
30505         * modules/unistdio/u16-asprintf: Likewise.
30506         * modules/unistdio/u16-snprintf: Likewise.
30507         * modules/unistdio/u16-sprintf: Likewise.
30508         * modules/unistdio/u16-u16-asnprintf: Likewise.
30509         * modules/unistdio/u16-u16-asprintf: Likewise.
30510         * modules/unistdio/u16-u16-snprintf: Likewise.
30511         * modules/unistdio/u16-u16-sprintf: Likewise.
30512         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30513         * modules/unistdio/u16-u16-vasprintf: Likewise.
30514         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30515         * modules/unistdio/u16-u16-vsprintf: Likewise.
30516         * modules/unistdio/u16-vasnprintf: Likewise.
30517         * modules/unistdio/u16-vasprintf: Likewise.
30518         * modules/unistdio/u16-vsnprintf: Likewise.
30519         * modules/unistdio/u16-vsprintf: Likewise.
30520         * modules/unistdio/u32-asnprintf: Likewise.
30521         * modules/unistdio/u32-asprintf: Likewise.
30522         * modules/unistdio/u32-snprintf: Likewise.
30523         * modules/unistdio/u32-sprintf: Likewise.
30524         * modules/unistdio/u32-u32-asnprintf: Likewise.
30525         * modules/unistdio/u32-u32-asprintf: Likewise.
30526         * modules/unistdio/u32-u32-snprintf: Likewise.
30527         * modules/unistdio/u32-u32-sprintf: Likewise.
30528         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30529         * modules/unistdio/u32-u32-vasprintf: Likewise.
30530         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30531         * modules/unistdio/u32-u32-vsprintf: Likewise.
30532         * modules/unistdio/u32-vasnprintf: Likewise.
30533         * modules/unistdio/u32-vasprintf: Likewise.
30534         * modules/unistdio/u32-vsnprintf: Likewise.
30535         * modules/unistdio/u32-vsprintf: Likewise.
30536         * modules/unistdio/ulc-asnprintf: Likewise.
30537         * modules/unistdio/ulc-asprintf: Likewise.
30538         * modules/unistdio/ulc-fprintf: Likewise.
30539         * modules/unistdio/ulc-snprintf: Likewise.
30540         * modules/unistdio/ulc-sprintf: Likewise.
30541         * modules/unistdio/ulc-vasnprintf: Likewise.
30542         * modules/unistdio/ulc-vasprintf: Likewise.
30543         * modules/unistdio/ulc-vfprintf: Likewise.
30544         * modules/unistdio/ulc-vsnprintf: Likewise.
30545         * modules/unistdio/ulc-vsprintf: Likewise.
30546         * modules/unistr/u8-check: Likewise.
30547         * modules/unistr/u8-chr: Likewise.
30548         * modules/unistr/u8-cmp: Likewise.
30549         * modules/unistr/u8-cmp2: Likewise.
30550         * modules/unistr/u8-cpy: Likewise.
30551         * modules/unistr/u8-cpy-alloc: Likewise.
30552         * modules/unistr/u8-endswith: Likewise.
30553         * modules/unistr/u8-mblen: Likewise.
30554         * modules/unistr/u8-mbsnlen: Likewise.
30555         * modules/unistr/u8-mbtouc: Likewise.
30556         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30557         * modules/unistr/u8-mbtoucr: Likewise.
30558         * modules/unistr/u8-move: Likewise.
30559         * modules/unistr/u8-next: Likewise.
30560         * modules/unistr/u8-prev: Likewise.
30561         * modules/unistr/u8-set: Likewise.
30562         * modules/unistr/u8-startswith: Likewise.
30563         * modules/unistr/u8-stpcpy: Likewise.
30564         * modules/unistr/u8-stpncpy: Likewise.
30565         * modules/unistr/u8-strcat: Likewise.
30566         * modules/unistr/u8-strchr: Likewise.
30567         * modules/unistr/u8-strcmp: Likewise.
30568         * modules/unistr/u8-strcoll: Likewise.
30569         * modules/unistr/u8-strcpy: Likewise.
30570         * modules/unistr/u8-strcspn: Likewise.
30571         * modules/unistr/u8-strdup: Likewise.
30572         * modules/unistr/u8-strlen: Likewise.
30573         * modules/unistr/u8-strmblen: Likewise.
30574         * modules/unistr/u8-strmbtouc: Likewise.
30575         * modules/unistr/u8-strncat: Likewise.
30576         * modules/unistr/u8-strncmp: Likewise.
30577         * modules/unistr/u8-strncpy: Likewise.
30578         * modules/unistr/u8-strnlen: Likewise.
30579         * modules/unistr/u8-strpbrk: Likewise.
30580         * modules/unistr/u8-strrchr: Likewise.
30581         * modules/unistr/u8-strspn: Likewise.
30582         * modules/unistr/u8-strstr: Likewise.
30583         * modules/unistr/u8-strtok: Likewise.
30584         * modules/unistr/u8-to-u16: Likewise.
30585         * modules/unistr/u8-to-u32: Likewise.
30586         * modules/unistr/u8-uctomb: Likewise.
30587         * modules/unistr/u16-check: Likewise.
30588         * modules/unistr/u16-chr: Likewise.
30589         * modules/unistr/u16-cmp: Likewise.
30590         * modules/unistr/u16-cmp2: Likewise.
30591         * modules/unistr/u16-cpy: Likewise.
30592         * modules/unistr/u16-cpy-alloc: Likewise.
30593         * modules/unistr/u16-endswith: Likewise.
30594         * modules/unistr/u16-mblen: Likewise.
30595         * modules/unistr/u16-mbsnlen: Likewise.
30596         * modules/unistr/u16-mbtouc: Likewise.
30597         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30598         * modules/unistr/u16-mbtoucr: Likewise.
30599         * modules/unistr/u16-move: Likewise.
30600         * modules/unistr/u16-next: Likewise.
30601         * modules/unistr/u16-prev: Likewise.
30602         * modules/unistr/u16-set: Likewise.
30603         * modules/unistr/u16-startswith: Likewise.
30604         * modules/unistr/u16-stpcpy: Likewise.
30605         * modules/unistr/u16-stpncpy: Likewise.
30606         * modules/unistr/u16-strcat: Likewise.
30607         * modules/unistr/u16-strchr: Likewise.
30608         * modules/unistr/u16-strcmp: Likewise.
30609         * modules/unistr/u16-strcoll: Likewise.
30610         * modules/unistr/u16-strcpy: Likewise.
30611         * modules/unistr/u16-strcspn: Likewise.
30612         * modules/unistr/u16-strdup: Likewise.
30613         * modules/unistr/u16-strlen: Likewise.
30614         * modules/unistr/u16-strmblen: Likewise.
30615         * modules/unistr/u16-strmbtouc: Likewise.
30616         * modules/unistr/u16-strncat: Likewise.
30617         * modules/unistr/u16-strncmp: Likewise.
30618         * modules/unistr/u16-strncpy: Likewise.
30619         * modules/unistr/u16-strnlen: Likewise.
30620         * modules/unistr/u16-strpbrk: Likewise.
30621         * modules/unistr/u16-strrchr: Likewise.
30622         * modules/unistr/u16-strspn: Likewise.
30623         * modules/unistr/u16-strstr: Likewise.
30624         * modules/unistr/u16-strtok: Likewise.
30625         * modules/unistr/u16-to-u32: Likewise.
30626         * modules/unistr/u16-to-u8: Likewise.
30627         * modules/unistr/u16-uctomb: Likewise.
30628         * modules/unistr/u32-check: Likewise.
30629         * modules/unistr/u32-chr: Likewise.
30630         * modules/unistr/u32-cmp: Likewise.
30631         * modules/unistr/u32-cmp2: Likewise.
30632         * modules/unistr/u32-cpy: Likewise.
30633         * modules/unistr/u32-cpy-alloc: Likewise.
30634         * modules/unistr/u32-endswith: Likewise.
30635         * modules/unistr/u32-mblen: Likewise.
30636         * modules/unistr/u32-mbsnlen: Likewise.
30637         * modules/unistr/u32-mbtouc: Likewise.
30638         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30639         * modules/unistr/u32-mbtoucr: Likewise.
30640         * modules/unistr/u32-move: Likewise.
30641         * modules/unistr/u32-next: Likewise.
30642         * modules/unistr/u32-prev: Likewise.
30643         * modules/unistr/u32-set: Likewise.
30644         * modules/unistr/u32-startswith: Likewise.
30645         * modules/unistr/u32-stpcpy: Likewise.
30646         * modules/unistr/u32-stpncpy: Likewise.
30647         * modules/unistr/u32-strcat: Likewise.
30648         * modules/unistr/u32-strchr: Likewise.
30649         * modules/unistr/u32-strcmp: Likewise.
30650         * modules/unistr/u32-strcoll: Likewise.
30651         * modules/unistr/u32-strcpy: Likewise.
30652         * modules/unistr/u32-strcspn: Likewise.
30653         * modules/unistr/u32-strdup: Likewise.
30654         * modules/unistr/u32-strlen: Likewise.
30655         * modules/unistr/u32-strmblen: Likewise.
30656         * modules/unistr/u32-strmbtouc: Likewise.
30657         * modules/unistr/u32-strncat: Likewise.
30658         * modules/unistr/u32-strncmp: Likewise.
30659         * modules/unistr/u32-strncpy: Likewise.
30660         * modules/unistr/u32-strnlen: Likewise.
30661         * modules/unistr/u32-strpbrk: Likewise.
30662         * modules/unistr/u32-strrchr: Likewise.
30663         * modules/unistr/u32-strspn: Likewise.
30664         * modules/unistr/u32-strstr: Likewise.
30665         * modules/unistr/u32-strtok: Likewise.
30666         * modules/unistr/u32-to-u16: Likewise.
30667         * modules/unistr/u32-to-u8: Likewise.
30668         * modules/unistr/u32-uctomb: Likewise.
30669         * modules/uniwbrk/u8-wordbreaks: Likewise.
30670         * modules/uniwbrk/u16-wordbreaks: Likewise.
30671         * modules/uniwbrk/u32-wordbreaks: Likewise.
30672         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30673         * modules/uniwbrk/wordbreak-property: Likewise.
30674         * modules/uniwidth/u8-strwidth: Likewise.
30675         * modules/uniwidth/u8-width: Likewise.
30676         * modules/uniwidth/u16-strwidth: Likewise.
30677         * modules/uniwidth/u16-width: Likewise.
30678         * modules/uniwidth/u32-strwidth: Likewise.
30679         * modules/uniwidth/u32-width: Likewise.
30680         * modules/uniwidth/width: Likewise.
30681         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30682         with $(LIBUNISTRING).
30683         * modules/unicase/ignorable-tests: Likewise.
30684         * modules/unicase/locale-language-tests: Likewise.
30685         * modules/unicase/tolower-tests: Likewise.
30686         * modules/unicase/totitle-tests: Likewise.
30687         * modules/unicase/toupper-tests: Likewise.
30688         * modules/unicase/u8-casecmp-tests: Likewise.
30689         * modules/unicase/u8-casecoll-tests: Likewise.
30690         * modules/unicase/u8-casefold-tests: Likewise.
30691         * modules/unicase/u8-is-cased-tests: Likewise.
30692         * modules/unicase/u8-is-casefolded-tests: Likewise.
30693         * modules/unicase/u8-is-lowercase-tests: Likewise.
30694         * modules/unicase/u8-is-titlecase-tests: Likewise.
30695         * modules/unicase/u8-is-uppercase-tests: Likewise.
30696         * modules/unicase/u8-tolower-tests: Likewise.
30697         * modules/unicase/u8-totitle-tests: Likewise.
30698         * modules/unicase/u8-toupper-tests: Likewise.
30699         * modules/unicase/u16-casecmp-tests: Likewise.
30700         * modules/unicase/u16-casecoll-tests: Likewise.
30701         * modules/unicase/u16-casefold-tests: Likewise.
30702         * modules/unicase/u16-is-cased-tests: Likewise.
30703         * modules/unicase/u16-is-casefolded-tests: Likewise.
30704         * modules/unicase/u16-is-lowercase-tests: Likewise.
30705         * modules/unicase/u16-is-titlecase-tests: Likewise.
30706         * modules/unicase/u16-is-uppercase-tests: Likewise.
30707         * modules/unicase/u16-tolower-tests: Likewise.
30708         * modules/unicase/u16-totitle-tests: Likewise.
30709         * modules/unicase/u16-toupper-tests: Likewise.
30710         * modules/unicase/u32-casecmp-tests: Likewise.
30711         * modules/unicase/u32-casecoll-tests: Likewise.
30712         * modules/unicase/u32-casefold-tests: Likewise.
30713         * modules/unicase/u32-is-cased-tests: Likewise.
30714         * modules/unicase/u32-is-casefolded-tests: Likewise.
30715         * modules/unicase/u32-is-lowercase-tests: Likewise.
30716         * modules/unicase/u32-is-titlecase-tests: Likewise.
30717         * modules/unicase/u32-is-uppercase-tests: Likewise.
30718         * modules/unicase/u32-tolower-tests: Likewise.
30719         * modules/unicase/u32-totitle-tests: Likewise.
30720         * modules/unicase/u32-toupper-tests: Likewise.
30721         * modules/unicase/ulc-casecmp-tests: Likewise.
30722         * modules/unicase/ulc-casecoll-tests: Likewise.
30723         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30724         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30725         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30726         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30727         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30728         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30729         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30730         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30731         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30732         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30733         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30734         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30735         * modules/unictype/bidicategory-byname-tests: Likewise.
30736         * modules/unictype/bidicategory-name-tests: Likewise.
30737         * modules/unictype/bidicategory-of-tests: Likewise.
30738         * modules/unictype/bidicategory-test-tests: Likewise.
30739         * modules/unictype/block-list-tests: Likewise.
30740         * modules/unictype/block-of-tests: Likewise.
30741         * modules/unictype/block-test-tests: Likewise.
30742         * modules/unictype/category-C-tests: Likewise.
30743         * modules/unictype/category-Cc-tests: Likewise.
30744         * modules/unictype/category-Cf-tests: Likewise.
30745         * modules/unictype/category-Cn-tests: Likewise.
30746         * modules/unictype/category-Co-tests: Likewise.
30747         * modules/unictype/category-Cs-tests: Likewise.
30748         * modules/unictype/category-L-tests: Likewise.
30749         * modules/unictype/category-Ll-tests: Likewise.
30750         * modules/unictype/category-Lm-tests: Likewise.
30751         * modules/unictype/category-Lo-tests: Likewise.
30752         * modules/unictype/category-Lt-tests: Likewise.
30753         * modules/unictype/category-Lu-tests: Likewise.
30754         * modules/unictype/category-M-tests: Likewise.
30755         * modules/unictype/category-Mc-tests: Likewise.
30756         * modules/unictype/category-Me-tests: Likewise.
30757         * modules/unictype/category-Mn-tests: Likewise.
30758         * modules/unictype/category-N-tests: Likewise.
30759         * modules/unictype/category-Nd-tests: Likewise.
30760         * modules/unictype/category-Nl-tests: Likewise.
30761         * modules/unictype/category-No-tests: Likewise.
30762         * modules/unictype/category-P-tests: Likewise.
30763         * modules/unictype/category-Pc-tests: Likewise.
30764         * modules/unictype/category-Pd-tests: Likewise.
30765         * modules/unictype/category-Pe-tests: Likewise.
30766         * modules/unictype/category-Pf-tests: Likewise.
30767         * modules/unictype/category-Pi-tests: Likewise.
30768         * modules/unictype/category-Po-tests: Likewise.
30769         * modules/unictype/category-Ps-tests: Likewise.
30770         * modules/unictype/category-S-tests: Likewise.
30771         * modules/unictype/category-Sc-tests: Likewise.
30772         * modules/unictype/category-Sk-tests: Likewise.
30773         * modules/unictype/category-Sm-tests: Likewise.
30774         * modules/unictype/category-So-tests: Likewise.
30775         * modules/unictype/category-Z-tests: Likewise.
30776         * modules/unictype/category-Zl-tests: Likewise.
30777         * modules/unictype/category-Zp-tests: Likewise.
30778         * modules/unictype/category-Zs-tests: Likewise.
30779         * modules/unictype/category-and-not-tests: Likewise.
30780         * modules/unictype/category-and-tests: Likewise.
30781         * modules/unictype/category-byname-tests: Likewise.
30782         * modules/unictype/category-name-tests: Likewise.
30783         * modules/unictype/category-none-tests: Likewise.
30784         * modules/unictype/category-of-tests: Likewise.
30785         * modules/unictype/category-or-tests: Likewise.
30786         * modules/unictype/category-test-withtable-tests: Likewise.
30787         * modules/unictype/combining-class-tests: Likewise.
30788         * modules/unictype/ctype-alnum-tests: Likewise.
30789         * modules/unictype/ctype-alpha-tests: Likewise.
30790         * modules/unictype/ctype-blank-tests: Likewise.
30791         * modules/unictype/ctype-cntrl-tests: Likewise.
30792         * modules/unictype/ctype-digit-tests: Likewise.
30793         * modules/unictype/ctype-graph-tests: Likewise.
30794         * modules/unictype/ctype-lower-tests: Likewise.
30795         * modules/unictype/ctype-print-tests: Likewise.
30796         * modules/unictype/ctype-punct-tests: Likewise.
30797         * modules/unictype/ctype-space-tests: Likewise.
30798         * modules/unictype/ctype-upper-tests: Likewise.
30799         * modules/unictype/ctype-xdigit-tests: Likewise.
30800         * modules/unictype/decimal-digit-tests: Likewise.
30801         * modules/unictype/digit-tests: Likewise.
30802         * modules/unictype/mirror-tests: Likewise.
30803         * modules/unictype/numeric-tests: Likewise.
30804         * modules/unictype/property-alphabetic-tests: Likewise.
30805         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30806         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30807         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30808         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30809         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30810         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30811         * modules/unictype/property-bidi-control-tests: Likewise.
30812         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30813         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30814         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30815         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30816         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30817         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30818         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30819         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30820         * modules/unictype/property-bidi-pdf-tests: Likewise.
30821         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30822         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30823         * modules/unictype/property-byname-tests: Likewise.
30824         * modules/unictype/property-combining-tests: Likewise.
30825         * modules/unictype/property-composite-tests: Likewise.
30826         * modules/unictype/property-currency-symbol-tests: Likewise.
30827         * modules/unictype/property-dash-tests: Likewise.
30828         * modules/unictype/property-decimal-digit-tests: Likewise.
30829         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30830         * modules/unictype/property-deprecated-tests: Likewise.
30831         * modules/unictype/property-diacritic-tests: Likewise.
30832         * modules/unictype/property-extender-tests: Likewise.
30833         * modules/unictype/property-format-control-tests: Likewise.
30834         * modules/unictype/property-grapheme-base-tests: Likewise.
30835         * modules/unictype/property-grapheme-extend-tests: Likewise.
30836         * modules/unictype/property-grapheme-link-tests: Likewise.
30837         * modules/unictype/property-hex-digit-tests: Likewise.
30838         * modules/unictype/property-hyphen-tests: Likewise.
30839         * modules/unictype/property-id-continue-tests: Likewise.
30840         * modules/unictype/property-id-start-tests: Likewise.
30841         * modules/unictype/property-ideographic-tests: Likewise.
30842         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30843         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30844         * modules/unictype/property-ignorable-control-tests: Likewise.
30845         * modules/unictype/property-iso-control-tests: Likewise.
30846         * modules/unictype/property-join-control-tests: Likewise.
30847         * modules/unictype/property-left-of-pair-tests: Likewise.
30848         * modules/unictype/property-line-separator-tests: Likewise.
30849         * modules/unictype/property-logical-order-exception-tests: Likewise.
30850         * modules/unictype/property-lowercase-tests: Likewise.
30851         * modules/unictype/property-math-tests: Likewise.
30852         * modules/unictype/property-non-break-tests: Likewise.
30853         * modules/unictype/property-not-a-character-tests: Likewise.
30854         * modules/unictype/property-numeric-tests: Likewise.
30855         * modules/unictype/property-other-alphabetic-tests: Likewise.
30856         * modules/unictype/property-other-default-ignorable-code-point-tests:
30857         Likewise.
30858         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30859         * modules/unictype/property-other-id-continue-tests: Likewise.
30860         * modules/unictype/property-other-id-start-tests: Likewise.
30861         * modules/unictype/property-other-lowercase-tests: Likewise.
30862         * modules/unictype/property-other-math-tests: Likewise.
30863         * modules/unictype/property-other-uppercase-tests: Likewise.
30864         * modules/unictype/property-paired-punctuation-tests: Likewise.
30865         * modules/unictype/property-paragraph-separator-tests: Likewise.
30866         * modules/unictype/property-pattern-syntax-tests: Likewise.
30867         * modules/unictype/property-pattern-white-space-tests: Likewise.
30868         * modules/unictype/property-private-use-tests: Likewise.
30869         * modules/unictype/property-punctuation-tests: Likewise.
30870         * modules/unictype/property-quotation-mark-tests: Likewise.
30871         * modules/unictype/property-radical-tests: Likewise.
30872         * modules/unictype/property-sentence-terminal-tests: Likewise.
30873         * modules/unictype/property-soft-dotted-tests: Likewise.
30874         * modules/unictype/property-space-tests: Likewise.
30875         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30876         * modules/unictype/property-test-tests: Likewise.
30877         * modules/unictype/property-titlecase-tests: Likewise.
30878         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30879         * modules/unictype/property-unified-ideograph-tests: Likewise.
30880         * modules/unictype/property-uppercase-tests: Likewise.
30881         * modules/unictype/property-variation-selector-tests: Likewise.
30882         * modules/unictype/property-white-space-tests: Likewise.
30883         * modules/unictype/property-xid-continue-tests: Likewise.
30884         * modules/unictype/property-xid-start-tests: Likewise.
30885         * modules/unictype/property-zero-width-tests: Likewise.
30886         * modules/unictype/scripts-tests: Likewise.
30887         * modules/unictype/syntax-c-ident-tests: Likewise.
30888         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30889         * modules/unictype/syntax-java-ident-tests: Likewise.
30890         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30891         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30892         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30893         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30894         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30895         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30896         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30897         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30898         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30899         * modules/uniname/uniname-tests: Likewise.
30900         * modules/uninorm/canonical-decomposition-tests: Likewise.
30901         * modules/uninorm/compat-decomposition-tests: Likewise.
30902         * modules/uninorm/composition-tests: Likewise.
30903         * modules/uninorm/decomposing-form-tests: Likewise.
30904         * modules/uninorm/decomposition-tests: Likewise.
30905         * modules/uninorm/filter-tests: Likewise.
30906         * modules/uninorm/nfc-tests: Likewise.
30907         * modules/uninorm/nfd-tests: Likewise.
30908         * modules/uninorm/nfkc-tests: Likewise.
30909         * modules/uninorm/nfkd-tests: Likewise.
30910         * modules/uninorm/u8-normcmp-tests: Likewise.
30911         * modules/uninorm/u8-normcoll-tests: Likewise.
30912         * modules/uninorm/u16-normcmp-tests: Likewise.
30913         * modules/uninorm/u16-normcoll-tests: Likewise.
30914         * modules/uninorm/u32-normcmp-tests: Likewise.
30915         * modules/uninorm/u32-normcoll-tests: Likewise.
30916         * modules/unistdio/u8-asnprintf-tests: Likewise.
30917         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30918         * modules/unistdio/u8-vasprintf-tests: Likewise.
30919         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30920         * modules/unistdio/u8-vsprintf-tests: Likewise.
30921         * modules/unistdio/u16-asnprintf-tests: Likewise.
30922         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30923         * modules/unistdio/u16-vasprintf-tests: Likewise.
30924         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30925         * modules/unistdio/u16-vsprintf-tests: Likewise.
30926         * modules/unistdio/u32-asnprintf-tests: Likewise.
30927         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30928         * modules/unistdio/u32-vasprintf-tests: Likewise.
30929         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30930         * modules/unistdio/u32-vsprintf-tests: Likewise.
30931         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30932         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30933         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30934         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30935         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30936         * modules/unistr/u8-check-tests: Likewise.
30937         * modules/unistr/u8-chr-tests: Likewise.
30938         * modules/unistr/u8-cmp-tests: Likewise.
30939         * modules/unistr/u8-cmp2-tests: Likewise.
30940         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30941         * modules/unistr/u8-cpy-tests: Likewise.
30942         * modules/unistr/u8-mblen-tests: Likewise.
30943         * modules/unistr/u8-mbsnlen-tests: Likewise.
30944         * modules/unistr/u8-mbtouc-tests: Likewise.
30945         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30946         * modules/unistr/u8-mbtoucr-tests: Likewise.
30947         * modules/unistr/u8-move-tests: Likewise.
30948         * modules/unistr/u8-next-tests: Likewise.
30949         * modules/unistr/u8-prev-tests: Likewise.
30950         * modules/unistr/u8-set-tests: Likewise.
30951         * modules/unistr/u8-stpcpy-tests: Likewise.
30952         * modules/unistr/u8-stpncpy-tests: Likewise.
30953         * modules/unistr/u8-strcat-tests: Likewise.
30954         * modules/unistr/u8-strcmp-tests: Likewise.
30955         * modules/unistr/u8-strcoll-tests: Likewise.
30956         * modules/unistr/u8-strcpy-tests: Likewise.
30957         * modules/unistr/u8-strdup-tests: Likewise.
30958         * modules/unistr/u8-strlen-tests: Likewise.
30959         * modules/unistr/u8-strmblen-tests: Likewise.
30960         * modules/unistr/u8-strmbtouc-tests: Likewise.
30961         * modules/unistr/u8-strncat-tests: Likewise.
30962         * modules/unistr/u8-strncmp-tests: Likewise.
30963         * modules/unistr/u8-strncpy-tests: Likewise.
30964         * modules/unistr/u8-strnlen-tests: Likewise.
30965         * modules/unistr/u8-to-u16-tests: Likewise.
30966         * modules/unistr/u8-to-u32-tests: Likewise.
30967         * modules/unistr/u8-uctomb-tests: Likewise.
30968         * modules/unistr/u16-check-tests: Likewise.
30969         * modules/unistr/u16-chr-tests: Likewise.
30970         * modules/unistr/u16-cmp-tests: Likewise.
30971         * modules/unistr/u16-cmp2-tests: Likewise.
30972         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30973         * modules/unistr/u16-cpy-tests: Likewise.
30974         * modules/unistr/u16-mblen-tests: Likewise.
30975         * modules/unistr/u16-mbsnlen-tests: Likewise.
30976         * modules/unistr/u16-mbtouc-tests: Likewise.
30977         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30978         * modules/unistr/u16-mbtoucr-tests: Likewise.
30979         * modules/unistr/u16-move-tests: Likewise.
30980         * modules/unistr/u16-next-tests: Likewise.
30981         * modules/unistr/u16-prev-tests: Likewise.
30982         * modules/unistr/u16-set-tests: Likewise.
30983         * modules/unistr/u16-stpcpy-tests: Likewise.
30984         * modules/unistr/u16-stpncpy-tests: Likewise.
30985         * modules/unistr/u16-strcat-tests: Likewise.
30986         * modules/unistr/u16-strcmp-tests: Likewise.
30987         * modules/unistr/u16-strcoll-tests: Likewise.
30988         * modules/unistr/u16-strcpy-tests: Likewise.
30989         * modules/unistr/u16-strdup-tests: Likewise.
30990         * modules/unistr/u16-strlen-tests: Likewise.
30991         * modules/unistr/u16-strmblen-tests: Likewise.
30992         * modules/unistr/u16-strmbtouc-tests: Likewise.
30993         * modules/unistr/u16-strncat-tests: Likewise.
30994         * modules/unistr/u16-strncmp-tests: Likewise.
30995         * modules/unistr/u16-strncpy-tests: Likewise.
30996         * modules/unistr/u16-strnlen-tests: Likewise.
30997         * modules/unistr/u16-to-u32-tests: Likewise.
30998         * modules/unistr/u16-to-u8-tests: Likewise.
30999         * modules/unistr/u16-uctomb-tests: Likewise.
31000         * modules/unistr/u32-check-tests: Likewise.
31001         * modules/unistr/u32-chr-tests: Likewise.
31002         * modules/unistr/u32-cmp-tests: Likewise.
31003         * modules/unistr/u32-cmp2-tests: Likewise.
31004         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31005         * modules/unistr/u32-cpy-tests: Likewise.
31006         * modules/unistr/u32-mblen-tests: Likewise.
31007         * modules/unistr/u32-mbsnlen-tests: Likewise.
31008         * modules/unistr/u32-mbtouc-tests: Likewise.
31009         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31010         * modules/unistr/u32-mbtoucr-tests: Likewise.
31011         * modules/unistr/u32-move-tests: Likewise.
31012         * modules/unistr/u32-next-tests: Likewise.
31013         * modules/unistr/u32-prev-tests: Likewise.
31014         * modules/unistr/u32-set-tests: Likewise.
31015         * modules/unistr/u32-stpcpy-tests: Likewise.
31016         * modules/unistr/u32-stpncpy-tests: Likewise.
31017         * modules/unistr/u32-strcat-tests: Likewise.
31018         * modules/unistr/u32-strcmp-tests: Likewise.
31019         * modules/unistr/u32-strcoll-tests: Likewise.
31020         * modules/unistr/u32-strcpy-tests: Likewise.
31021         * modules/unistr/u32-strdup-tests: Likewise.
31022         * modules/unistr/u32-strlen-tests: Likewise.
31023         * modules/unistr/u32-strmblen-tests: Likewise.
31024         * modules/unistr/u32-strmbtouc-tests: Likewise.
31025         * modules/unistr/u32-strncat-tests: Likewise.
31026         * modules/unistr/u32-strncmp-tests: Likewise.
31027         * modules/unistr/u32-strncpy-tests: Likewise.
31028         * modules/unistr/u32-strnlen-tests: Likewise.
31029         * modules/unistr/u32-to-u16-tests: Likewise.
31030         * modules/unistr/u32-to-u8-tests: Likewise.
31031         * modules/unistr/u32-uctomb-tests: Likewise.
31032         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31033         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31034         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31035         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31036         * modules/uniwidth/u8-strwidth-tests: Likewise.
31037         * modules/uniwidth/u8-width-tests: Likewise.
31038         * modules/uniwidth/u16-strwidth-tests: Likewise.
31039         * modules/uniwidth/u16-width-tests: Likewise.
31040         * modules/uniwidth/u32-strwidth-tests: Likewise.
31041         * modules/uniwidth/u32-width-tests: Likewise.
31042         * modules/uniwidth/width-tests: Likewise.
31043
31044 2010-05-18  Richard Jones  <rjones@redhat.com>
31045
31046         doc: users.txt: list hivex
31047         * users.txt: Add hivex.
31048
31049 2010-05-18  Richard Jones  <rjones@redhat.com>
31050
31051         doc: users.txt: list febootstrap
31052         * users.txt: Add febootstrap.
31053
31054 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31055
31056         bootstrap: fix an error when gnulib is not used as a git submodule
31057         * build-aux/bootstrap (gnulib_path): If its length is zero then
31058         assign "gnulib" to it.
31059         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31060
31061 2010-05-16  Bruno Haible  <bruno@clisp.org>
31062
31063         Avoid autoconf warnings about AM_ICONV.
31064         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31065         2.64.
31066
31067 2010-05-16  Bruno Haible  <bruno@clisp.org>
31068
31069         absolute-header: Make the macro usable in more situations.
31070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31071         from gl_ABSOLUTE_HEADER.
31072         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31073
31074 2010-05-16  James Youngman  <jay@gnu.org>
31075
31076         doc: update users.txt
31077         * users.txt: Add CSSC.
31078
31079 2010-05-16  Jim Meyering  <meyering@redhat.com>
31080
31081         init.sh: fix an error in the previous change; add more comments
31082         * tests/init.sh: Compare exit code in loop against 9, not 2.
31083         Patch by Bruno Haible.
31084         Make the two tests more similar by adding an empty "then" clause.
31085         Add comments.
31086
31087         init.sh: avoid unnecessary shell re-exec
31088         * tests/init.sh: Improve the re-exec-required check to first test the
31089         current shell.  If it passes the test, do not search for a shell that
31090         does pass, and do not re-exec.  This test is particularly contorted to
31091         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31092         of $(...) evokes a syntax error and causes immediate shell exit with
31093         status 2.  Bruno Haible reported that the re-exec made it impossible
31094         to single-step through any init.sh-using script.
31095
31096 2010-05-16  Bruno Haible  <bruno@clisp.org>
31097
31098         Fix collision between gnulib's and libintl's printf replacements.
31099         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31100         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31101         (printf): When using GNU C, map the __printf__ function to rpl_printf
31102         via __asm__. When not using GNU C, define rpl_printf instead of
31103         __printf__.
31104         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31105         commit.
31106         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31107         commit.
31108         * m4/asm-underscore.m4: New file.
31109         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31110         * modules/stdio (Files): Add m4/asm-underscore.m4.
31111         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31112         Reported by Ben Pfaff.
31113
31114 2010-05-16  Bruno Haible  <bruno@clisp.org>
31115
31116         verify: Avoid skipping the test on openSUSE 11.0.
31117         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31118
31119 2010-05-13  Bruno Haible  <bruno@clisp.org>
31120
31121         Avoid useless warnings from G++.
31122         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31123         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31125
31126 2010-05-11  Jim Meyering  <meyering@redhat.com>
31127
31128         maint.mk: tweak preceding change
31129         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31130         regexps tighter by anchoring at EOL, and make the new group "shy"
31131         for slightly decreased overhead.
31132
31133 2010-05-11  Eric Blake  <eblake@redhat.com>
31134
31135         maint.mk: gnulib doesn't guarantee NSIG
31136         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31137
31138 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31139
31140         test-pwrite.c: Remove unused variable declaration.
31141         * tests/test-pwrite.c (main): Remove read_buf declaration.
31142
31143         Remove useless test-pwrite.sh file.
31144         * tests/test-pwrite.sh: Delete file.
31145         * modules/pwrite-tests: Remove references.
31146         Reported by Bruno Haible.
31147
31148 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31149
31150         init.sh: fix a typo
31151         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31152
31153 2010-05-10  Jim Meyering  <meyering@redhat.com>
31154
31155         maint.mk: avoid using a temporary file in the always-defined-macros check
31156         * top/maint.mk (.re-defmac): Remove rule.
31157         (gl_trap_): Remove definition.
31158         (sc_prohibit_always-defined_macros): Rewrite not to create and
31159         depend on a temporary file.  Instead, depend on GNU grep's ability
31160         to read a list of regular expressions from stdin when given "-f -".
31161
31162 2010-05-09  Bruno Haible  <bruno@clisp.org>
31163
31164         Update to GNU gettext 0.18, part 1.
31165         * m4/gettext.m4: Update to GNU gettext 0.18.
31166         * m4/intl.m4: Likewise.
31167         * m4/po.m4: Likewise.
31168         * modules/gettext (Files): Add m4/fcntl-o.m4.
31169         (configure.ac): Require gettext infrastructure from version 0.18.
31170
31171 2010-05-09  Jim Meyering  <meyering@redhat.com>
31172
31173         init.sh: enable MALLOC_PERTURB_
31174         * tests/init.sh: Enable glibc's malloc-perturbing option.
31175
31176         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31177         With my recent change in init.sh from the two-line form:
31178             -#   : ${srcdir=.}
31179             -#   . "$srcdir/init.sh"; path_prepend_ .
31180             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31181         I noticed that using the one-line form would cause this test
31182         to fail with a false-positive, or to stop working altogether,
31183         depending on whether help-version changed or all the tests did.
31184         * top/maint.mk (_hv_regex): Remove this definition.
31185         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31186         (_hv_regex_strong): Use a stronger regex to check for conformance.
31187         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31188         Give a separate diagnostic for lack of conforming use.
31189
31190         maint.mk: prohibit definition of symbols defined by gnulib
31191         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31192         definition of symbols defined by gnulib.
31193
31194 2010-05-09  Bruno Haible  <bruno@clisp.org>
31195
31196         acl: Avoid test failure on Cygwin-hosted mingw.
31197         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31198
31199 2010-05-09  Bruno Haible  <bruno@clisp.org>
31200
31201         error: Use system's fcntl function.
31202         * lib/error.c (fcntl): Undefine.
31203
31204 2010-05-09  Jim Meyering  <meyering@redhat.com>
31205
31206         verify: adjust formatting to be more consistent
31207         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31208         argument-list '('s, and after one comma.
31209
31210 2010-05-09  Bruno Haible  <bruno@clisp.org>
31211
31212         error: More reliable output on mingw.
31213         * lib/error.c: Include <windows.h>.
31214         (is_open): New function.
31215         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31216         defined.
31217
31218 2010-05-09  Bruno Haible  <bruno@clisp.org>
31219
31220         vasnprintf: Fix syntax errors in libintl build on mingw.
31221         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31222         pad_ourselves and prec_ourselves after use.
31223
31224 2010-05-08  Bruno Haible  <bruno@clisp.org>
31225
31226         * lib/config.charset: Update comments for Cygwin 1.7.
31227         * lib/localcharset.c: Likewise.
31228
31229 2010-05-07  Jim Meyering  <meyering@redhat.com>
31230
31231         init.sh: improve comments
31232         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31233         . "${srcdir=.}/init.sh"; path_prepend_ .
31234         Add a note about path_prepend_ and the alternative of using
31235         TESTS_ENVIRONMENT.
31236
31237 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31238
31239         exclude: Unescape hashed patterns in wildcard mode.
31240         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31241         to the hash list.
31242         * tests/test-exclude8.sh: New test case.
31243         * modules/exclude-tests: Add new test.
31244
31245 2010-05-05  Eric Blake  <eblake@redhat.com>
31246
31247         verify: automate tests
31248         * modules/verify-tests: New module.
31249         * tests/test-verify.sh: New file.
31250         * tests/test-verify.c: Guard each negative test with a unique id.
31251         Also avoid warning about unused left hand of comma expressions.
31252
31253 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31254
31255         Further improvements to verify.h, suggested by Eric Blake.
31256         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31257         the GL_* versions, to avoid collision with OpenGL.
31258         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31259         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31260         than testing merely whether it's defined.
31261
31262         Modify verify.h to pacify gcc -Wredundant_decls.
31263         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31264         These use the prefix "GL_" since they're likely to be useful elsewhere.
31265         We may need to break them out into a different .h file.
31266         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31267         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31268         of verify_function__.
31269
31270 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31271
31272         Tests for module pwrite.
31273         * modules/pwrite-tests: New file.
31274         * tests/test-pwrite.sh: New file.
31275         * tests/test-pwrite.c: New file.
31276
31277         New module pwrite.
31278         * lib/unistd.in.h (pwrite): New declaration.
31279         * lib/pwrite.c: New file, from glibc with modifications.
31280         * m4/pwrite.m4: New file.
31281         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31282         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31283         REPLACE_PWRITE.
31284         * modules/pwrite: New file.
31285         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31286         REPLACE_PWRITE.
31287         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31288         * doc/posix-functions/pwrite.texi: Mention the new module.
31289
31290 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31291
31292         pread: Update documentation.
31293         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31294
31295 2010-05-04  Eric Blake  <eblake@redhat.com>
31296
31297         docs: update cygwin progress
31298         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31299         this bug.
31300         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31301         Added in cygwin 1.7.2.
31302         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31303         Likewise.
31304         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31305         Likewise.
31306         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31307         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31308         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31309         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31310         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31311         Mention nproc module.
31312         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31313         bug in cygwin 1.7.5 addition.
31314         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31315         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31316         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31317         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31318         1.7.5.
31319         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31320         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31321         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31322         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31323         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31324         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31325         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31326         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31327         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31328         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31329         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31330         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31331         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31332         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31333         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31334         Likewise.
31335         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31336         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31337         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31338         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31339         Likewise.
31340         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31341         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31342         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31343         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31344         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31345         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31346         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31347         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31348         Likewise.
31349         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31350         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31351         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31352         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31353         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31354         Likewise.
31355         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31356         Likewise.
31357         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31358         Likewise.
31359         * doc/glibc-functions/xdrrec_endofrecord.texi
31360         (xdrrec_endofrecord): Likewise.
31361         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31362         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31363         Likewise.
31364         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31365         Likewise.
31366
31367 2010-05-04  Jim Meyering  <meyering@redhat.com>
31368
31369         gendocs.sh: make its "-s FILE" option more useful
31370         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31371         $PACKAGE to reflect the probably-different basename of "FILE".
31372
31373 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31374
31375         bootstrap: don't ignore download_po_files failure
31376         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31377         failure.
31378
31379 2010-05-03  Jim Meyering  <meyering@redhat.com>
31380
31381         maint.mk: allow to pass options to gendocs.sh
31382         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31383         (gendocs_options_): New overridable variable.
31384
31385         gnu-web-doc-update: don't ignore configure or build failure
31386         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31387
31388         announce-gen: backslash-escape '@'s in --help output
31389         * build-aux/announce-gen: Fix syntax errors.
31390
31391         maint.mk, announce-gen: allow project-specific announcement mail headers
31392         * top/maint.mk (translation_project_): Define default.
31393         (announcement_Cc_, announcement_mail_headers_): Likewise.
31394         (announcement): Invoke announce-gen with new --mail-headers option.
31395         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31396
31397         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31398         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31399         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31400         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31401         line in the "err2" output file when running "make check" in verbose
31402         mode (i.e., with set -x enabled).
31403
31404 2010-05-03  Bruno Haible  <bruno@clisp.org>
31405
31406         wctob: Fix for weird platforms.
31407         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31408         argument value.
31409
31410 2010-05-03  Jim Meyering  <meyering@redhat.com>
31411
31412         maint.mk: prohibit unwarranted use of <strings.h>
31413         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31414         strings.h in a file that does not also use strcasecmp, strncasecmp,
31415         ffs or ffsll.
31416
31417         maint.mk: remove obsolete comments
31418         * top/maint.mk: Remove stale, commented-out rules.
31419
31420 2010-05-02  Bruno Haible  <bruno@clisp.org>
31421
31422         wcwidth: Declare also when it's aliased.
31423         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31424         macro.
31425
31426 2010-05-02  Bruno Haible  <bruno@clisp.org>
31427
31428         Fix regression from 2010-04-25.
31429         * gnulib-tool (func_modules_transitive_closure): Check the status of
31430         all modules, not only of the tests that are of the form foo-tests where
31431         foo is a module.
31432
31433 2010-05-02  Bruno Haible  <bruno@clisp.org>
31434
31435         wctob: Work around nasty Cygwin 1.7.2 bug.
31436         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31437         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31438
31439 2010-05-01  Bruno Haible  <bruno@clisp.org>
31440
31441         fpurge: Sharper test.
31442         * tests/test-fpurge.c (main): Add one more ftell check.
31443         * modules/fpurge-tests (Depends-on): Add ftell.
31444         Suggested by Eric Blake.
31445
31446 2010-05-01  Bruno Haible  <bruno@clisp.org>
31447
31448         ftello: Another test.
31449         * tests/test-ftello3.c: New file.
31450         * modules/ftello-tests (Files): Add it.
31451         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31452         MOSTLYCLEANFILES.
31453
31454         ftell: Another test.
31455         * tests/test-ftell3.c: New file.
31456         * modules/ftell-tests (Files): Add it.
31457         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31458         MOSTLYCLEANFILES.
31459
31460 2010-05-01  Bruno Haible  <bruno@clisp.org>
31461
31462         ftell, ftello: Work around Solaris bug.
31463         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31464         * lib/ftello.c: Include stdio-impl.h.
31465         (ftello): On Solaris, when _IOWRT is set, compute the result without
31466         looking at _IOREAD.
31467         * modules/ftello (Files): Add lib/stdio-impl.h.
31468         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31469         * doc/posix-functions/ftello.texi: Likewise.
31470         Reported by Eric Blake.
31471
31472 2010-05-01  Bruno Haible  <bruno@clisp.org>
31473
31474         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31475         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31476         the _IOWRT flag is also set.
31477
31478 2010-05-01  Bruno Haible  <bruno@clisp.org>
31479
31480         Fix doc about a HP-UX stdio bug.
31481         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31482         * doc/posix-functions/ftello.texi: Likewise.
31483
31484 2010-05-01  Bruno Haible  <bruno@clisp.org>
31485
31486         lseek test: Fix failure on Solaris.
31487         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31488         output.
31489
31490 2010-04-30  Jim Meyering  <meyering@redhat.com>
31491
31492         bootstrap: don't ignore failure to generate po*/Makevars
31493         * build-aux/bootstrap (with_gettext): Don't ignore failure
31494         to create po/Makevars or runtime-po/Makevars.
31495
31496 2010-04-29  Eric Blake  <eblake@redhat.com>
31497
31498         headers: relax license to LGPLv2+
31499         * modules/fcntl-h (License): Relax license.
31500         * modules/getopt-posix (License): Likewise.
31501         * modules/locale (License): Likewise.
31502         * modules/math (License): Likewise.
31503         * modules/pty (License): Likewise.
31504         * modules/sched (License): Likewise.
31505         * modules/search (License): Likewise.
31506         * modules/spawn (License): Likewise.
31507         * modules/stdarg (License): Likewise.
31508         * modules/sysexits (License): Likewise.
31509
31510 2010-04-29  Jim Meyering  <meyering@redhat.com>
31511
31512         inttypes: relax license to LGPLv2+
31513         * modules/inttypes (License): Relax license.
31514
31515 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31516
31517         * top/maint.mk (indent): Run twice to produce idempotent results.
31518
31519 2010-04-28  Bruno Haible  <bruno@clisp.org>
31520
31521         getdate: Generate getdate.c in the source directory.
31522         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31523         MOSTLYCLEANFILES.
31524         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31525
31526 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31527
31528         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31529         is not declared as a const *; avoid warnings in that case.
31530
31531 2010-04-28  Eric Blake  <eblake@redhat.com>
31532
31533         canonicalize-lgpl: avoid compiler warning
31534         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31535         declaration' / 'extraneous semicolon' warning with some compilers.
31536         Reported by Andreas Gruenbacher.
31537
31538 2010-04-28  Jim Meyering  <meyering@redhat.com>
31539
31540         init.sh: ensure a more reliable exit status when exiting via trap
31541         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31542         Inspired by patches from Dmitry V. Levin.
31543         Also trap on signal 3 (SIGQUIT).
31544
31545 2010-04-27  Bruno Haible  <bruno@clisp.org>
31546
31547         Update doc about utimes().
31548         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31549         'utimens' module.
31550         Reported by Andreas Gruenbacher <agruen@suse.de>.
31551
31552 2010-04-27  Eric Blake  <eblake@redhat.com>
31553
31554         full-read, full-write: relax license
31555         * modules/full-read (License): Drop to LGPLv2+.
31556         * modules/full-write (License): Likewise.
31557         * modules/safe-read (License): Likewise.
31558         * modules/safe-write (License): Likewise.
31559
31560         pthread: mention library for linking
31561         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31562
31563 2010-04-27  Jim Meyering  <meyering@redhat.com>
31564
31565         maint.mk: fix a bug introduced in last change
31566         * top/maint.mk (gl_assured_headers_): Now that all names are on
31567         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31568         is not anchored to end of word, it should be adequate.
31569
31570         maint.mk: avoid side-effect in latest syntax-check
31571         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31572         to run commands via $(shell...), and hence to incur cost only when
31573         the new rule is actually run.
31574
31575         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31576         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31577         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31578         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31579         (gl_assured_headers_, az_, AZ_): Define.
31580         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31581
31582 2010-04-26  Jim Meyering  <jim@meyering.net>
31583             Bruno Haible  <bruno@clisp.org>
31584
31585         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31586         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31587         Prompted by an exchange with Gilles Espinasse.
31588
31589 2010-04-26  Jim Meyering  <meyering@redhat.com>
31590
31591         git-version-gen: aesthetic tweak
31592         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31593         so that the command remains on a single line.
31594
31595 2010-04-26  Eric Blake  <eblake@redhat.com>
31596
31597         git-version-gen: allow use on EBCDIC hosts
31598         * build-aux/git-version-gen (dirty): Use literal rather than tying
31599         ourselves to ascii.
31600         Reported by Steve Goetze.
31601
31602 2010-04-25  Bruno Haible  <bruno@clisp.org>
31603
31604         netdb: Add support for GNULIB_POSIXCHECK.
31605         * lib/netdb.in.h: Include warn-on-use.h.
31606         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31607         functions are used when GNULIB_POSIXCHECK is defined and the
31608         getaddrinfo module is not in use.
31609         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31610         freeaddrinfo, gai_strerror, getnameinfo are declared.
31611         * modules/netdb (Depends-on): Add warn-on-use.
31612         (Makefile.am): Include warn-on-use.h in netdb.h.
31613
31614 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31615
31616         build: avoid "make check" failure without .git/ directory
31617         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31618         there is no .git/ directory.
31619
31620 2010-04-25  Bruno Haible  <bruno@clisp.org>
31621
31622         ptsname: Fix misuse of ttyname_r.
31623         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31624         of errno.
31625
31626 2010-04-25  Bruno Haible  <bruno@clisp.org>
31627
31628         ttyname_r: Make it work on Solaris 10.
31629         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31630         if the system function has the POSIX declaration. Test whether the
31631         function fails if the buffer is less than 128 bytes large.
31632         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31633         system's ttyname_r function. Provide a reasonably large buffer.
31634         * modules/ttyname_r (Depends-on): Add extensions.
31635         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31636
31637 2010-04-25  Bruno Haible  <bruno@clisp.org>
31638
31639         Use the 'extensions' module for some more functions on Solaris.
31640         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31641         module.
31642         * doc/posix-functions/ctime_r.texi: Likewise.
31643         * doc/posix-functions/getgrgid_r.texi: Likewise.
31644         * doc/posix-functions/getgrnam_r.texi: Likewise.
31645         * doc/posix-functions/getpwnam_r.texi: Likewise.
31646         * doc/posix-functions/getpwuid_r.texi: Likewise.
31647         * doc/posix-functions/readdir_r.texi: Likewise.
31648         * doc/posix-functions/sigwait.texi: Likewise.
31649         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31650         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31651
31652 2010-04-25  Bruno Haible  <bruno@clisp.org>
31653
31654         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31655         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31656         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31657         * lib/ttyname_r.c: Include <limits.h>.
31658         (ttyname_r): Define using the system's ttyname_r function, if it exists
31659         and not on Solaris.
31660         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31661         set.
31662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31663         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31664         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31665         Reported by Simon Josefsson.
31666
31667 2010-04-25  Bruno Haible  <bruno@clisp.org>
31668
31669         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31670         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31671         * doc/posix-functions/ctime_r.texi: Likewise.
31672         * doc/posix-functions/getgrgid_r.texi: Likewise.
31673         * doc/posix-functions/getgrnam_r.texi: Likewise.
31674         * doc/posix-functions/getlogin_r.texi: Likewise.
31675         * doc/posix-functions/getpwnam_r.texi: Likewise.
31676         * doc/posix-functions/getpwuid_r.texi: Likewise.
31677         * doc/posix-functions/readdir_r.texi: Likewise.
31678         * doc/posix-functions/sigwait.texi: Likewise.
31679         * doc/posix-functions/ttyname_r.texi: Likewise.
31680         Reported by Simon Josefsson.
31681
31682 2010-04-25  Bruno Haible  <bruno@clisp.org>
31683
31684         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31685         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31686         also to --create-testdir.
31687         (func_acceptable): Don't consider the status of *-tests modules here.
31688         (func_modules_transitive_closure): Consider it here, before including a
31689         test module.
31690         (func_import, func_create_testdir): Set inc_all_direct_tests,
31691         inc_all_indirect_tests.
31692         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31693         --create-testdir and --create-megatestdir.
31694
31695 2010-04-25  Bruno Haible  <bruno@clisp.org>
31696
31697         gnulib-tool: Add --without-*-tests options.
31698         * gnulib-tool (func_usage): Document the --without-*-tests options.
31699         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31700         excl_unportable_tests): New variables.
31701         Fail if they are specified with --import or --update.
31702         (func_acceptable): Respect the excl_*_tests variables.
31703         (func_import): Set the excl_*_tests variables to empty.
31704
31705 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31706             Bruno Haible  <bruno@clisp.org>
31707
31708         Work around a MacOS X 10.4 bug with openpty.
31709         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31710         * tests/test-openpty.c (main): Close the master side explicitly.
31711
31712 2010-04-25  Bruno Haible  <bruno@clisp.org>
31713
31714         strnlen: Fix a C++ test error on MacOS X and Solaris.
31715         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31716         the function is not declared.
31717         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31718         Simon Josefsson.
31719
31720 2010-04-24  Bruno Haible  <bruno@clisp.org>
31721
31722         Avoid a gcc warning.
31723         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31724         of correct type for %08lx directive.
31725         Reported by Eric Blake.
31726
31727 2010-04-24  Bruno Haible  <bruno@clisp.org>
31728
31729         vasnprintf: Correct errno value in case of out-of-memory.
31730         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31731         or sprintf. Use the errno value from SNPRINTF or sprintf.
31732         Reported by Ian Beckwith <ianb@erislabs.net>.
31733
31734 2010-04-24  Bruno Haible  <bruno@clisp.org>
31735
31736         ansi-c++-opt: Find correct compiler when cross-compiling.
31737         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31738         AC_CHECK_PROGS.
31739         Reported by Simon Josefsson.
31740
31741 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31742
31743         vc-list-files: Add support for subversion
31744         * build-aux/vc-list-files: Use "svn list" to generate the list of
31745         files controlled by subversion.
31746
31747 2010-04-23  Jim Meyering  <meyering@redhat.com>
31748
31749         vc-list-files tests: convert to use init.sh
31750         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31751         path_prepend_.
31752         Use Exit, not exit.
31753         Use skip_ rather than open coding it.
31754         Remove trap set-up and compare definitions.
31755         * tests/test-vc-list-files-git.sh: Likewise.
31756         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31757
31758 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31759
31760         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31761         backup files.
31762
31763 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31764
31765         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31766
31767 2010-04-20  Eric Blake  <eblake@redhat.com>
31768
31769         tests: be robust to ignored SIGPIPE
31770         * tests/test-select-in.sh: Consume all output.
31771         * tests/test-lseek.sh: Check correct exit status, while avoiding
31772         EPIPE.
31773
31774 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31775             Bruno Haible  <bruno@clisp.org>
31776
31777         visibility: Don't use -fvisibility if it leads to a warning.
31778         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31779         yes, don't pretend that visibility works if it leads to a warning.
31780         Reported by Mike Gran <spk121@yahoo.com>.
31781
31782 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31783
31784         * build-aux/bootstrap: Use "git -h" for testing for supported options
31785         instead of "git --help".  The short-form option only shows a summary,
31786         and doesn't layout the full man page.  Grep for the full option name
31787         in the summary, too.
31788
31789 2010-04-19  Bruno Haible  <bruno@clisp.org>
31790
31791         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31793         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31794         mention of RELOCATABLE_STRIP.
31795         Reported by Sylvain Beucler <beuc@beuc.net>.
31796
31797 2010-04-19  Bruno Haible  <bruno@clisp.org>
31798
31799         * lib/diffseq.h: Fix typo in comment.
31800         Reported by Eric Blake.
31801
31802 2010-04-19  Bruno Haible  <bruno@clisp.org>
31803
31804         ioctl: Move autoconf macro to a .m4 file.
31805         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31806         * modules/ioctl (Files): Add it.
31807         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31808         Reported by Ian Beckwith <ianb@erislabs.net>.
31809
31810 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31811             Bruno Haible  <bruno@clisp.org>
31812
31813         diffseq: Accommodate use-case with abstract arrays.
31814         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31815         is not defined.
31816         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31817         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31818
31819 2010-04-18  Bruno Haible  <bruno@clisp.org>
31820
31821         * doc/posix-headers/stdbool.texi: More precise wording.
31822
31823 2010-04-17  Jim Meyering  <meyering@redhat.com>
31824
31825         maint.mk: use gnu-style indentation in an embedded perl script
31826         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31827         Rename variable: s/two/last_two_bytes/
31828
31829 2010-04-16  Eric Blake  <eblake@redhat.com>
31830
31831         test-stdbool: skip test that fails with Solaris CC
31832         * tests/test-stdbool.c (f): Skip test that causes compilation
31833         error under buggy C++ compiler.
31834         * lib/stdbool.in.h: Document the limitation.
31835         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31836
31837         setenv: allow compilation with C++
31838         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31839         register keyword.
31840
31841         stdint: allow test to pass with C++
31842         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31843
31844         getopt: allow compilation with C++
31845         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31846         struct.
31847         * lib/getopt.c (_getopt_internal_r): Use correct type.
31848         Reported by Dagobert Michelson, via Joel E. Denny.
31849
31850 2010-04-16  Bruno Haible  <bruno@clisp.org>
31851
31852         Override netdb.h always.
31853         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31854         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31855         Reported by Ludovic Courtès <ludo@gnu.org>.
31856
31857 2010-04-15  Bruno Haible  <bruno@clisp.org>
31858
31859         openpty: Fix mistake from 2010-03-21.
31860         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31861         Reported by Simon Josefsson.
31862
31863 2010-04-15  Eric Blake  <eblake@redhat.com>
31864
31865         test-forkpty: fix expected signature
31866         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31867         Reported by Simon Josefsson.
31868
31869 2010-04-15  Jim Meyering  <meyering@redhat.com>
31870
31871         maint.mk: texinfo_suffix_re_: correct the default regexp
31872         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31873
31874         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31875         make it configurable via texinfo_suffix_re_.
31876
31877 2010-04-14  Eric Blake  <eblake@redhat.com>
31878
31879         strtok_r: relax license to LGPLv2+
31880         * modules/strtok_r (License): Relax license.
31881         Reported by Matthias Bolte.
31882
31883 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31884
31885         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31886         version 1.4.4 by default instead of requiring the libgcrypt
31887         version used during build.  This makes it possible to use the
31888         application with older but still binary compatible libgcrypt
31889         versions.
31890
31891 2010-04-13  Eric Blake  <eblake@redhat.com>
31892
31893         getopt-gnu: match recent glibc fixes and posix ruling
31894         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31895         '+' handling, when requesting extensions.
31896         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31897         'W;' handling.
31898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31899         * doc/posix-functions/getopt.texi (getopt): Document this.
31900         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31901         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31902         Likewise.
31903
31904         getopt: merge bug fixes from glibc
31905         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31906         diagnostics.  Honor '+:' correctly.  Reject ';'.
31907
31908         getopt-posix: detect MacOS bug
31909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31910         optind when missing a required argument.
31911         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31912         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31913         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31914         Likewise.
31915
31916         getopt-posix: avoid spurious failure on Solaris
31917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31918         an indicator that setting optind=1 is sufficient for reset.
31919
31920         getopt-posix: avoid spurious failure on FreeBSD
31921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31922         in POSIX mode, since the m4 test uses it.
31923
31924         gnulib-tool: silence warning on BSD sh
31925         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31926
31927 2010-04-13  Jim Meyering  <meyering@redhat.com>
31928
31929         doc: users.txt: GNU patch now uses gnulib
31930         * users.txt: Add patch.
31931
31932 2010-04-12  Jim Meyering  <meyering@redhat.com>
31933
31934         maint.mk: generate more concise timing data for syntax-check rules
31935         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31936         " done" from each line that reports a syntax-check test duration.
31937
31938 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31939
31940         git-version-gen: use "git update-index..." rather than "git status"
31941         * build-aux/git-version-gen: Use git update-index --refresh, not
31942         "git status".  With some versions of git, "git status" would fail
31943         to update the index and result in an unwarranted "-dirty" suffix.
31944
31945 2010-04-11  Jim Meyering  <meyering@redhat.com>
31946
31947         openat: correct formatting (no semantic change)
31948         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31949         Suggested by Bruno Haible.
31950
31951 2010-04-11  Bruno Haible  <bruno@clisp.org>
31952
31953         Stricter declaration checking in testdirs.
31954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31955         If for_tests is true, augment AM_CPPFLAGS to define
31956         GNULIB_STRICT_CHECKING.
31957         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31958         GNULIB_STRICT_CHECKING is defined, verify that the function is
31959         declared.
31960
31961 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31962             Bruno Haible  <bruno@clisp.org>
31963
31964         libunistring: Improve configure output.
31965         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31966         Don't say "consider installing GNU libunistring" when checking again
31967         with libiconv.
31968
31969 2010-04-11  Bruno Haible  <bruno@clisp.org>
31970
31971         libunistring: Correct value of $LTLIBUNISTRING.
31972         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31973         correct the value of $LTLIBUNISTRING.
31974
31975 2010-04-11  Bruno Haible  <bruno@clisp.org>
31976
31977         havelib: Add static libraries to LIBS in the right order.
31978         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31979         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31980
31981 2010-04-11  Bruno Haible  <bruno@clisp.org>
31982
31983         libunistring: Detect libunistring also when it depends on libiconv.
31984         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31985         the second AC_LIB_HAVE_LINKFLAGS invocation.
31986
31987 2010-04-11  James Youngman  <jay@gnu.org>
31988
31989         close-stream: declare local scalars to be "const"
31990         * lib/close-stream.c (close_stream): Make boolean variables const
31991         to document the fact that we set but do not change them.
31992
31993 2010-04-11  Bruno Haible  <bruno@clisp.org>
31994
31995         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31996
31997 2010-04-11  Jim Meyering  <meyering@redhat.com>
31998
31999         maint.mk: don't include dist-check.mk
32000         * top/maint.mk: Remove bogus include directive.
32001
32002         maint.mk: improve empty-line-at-EOF check
32003         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32004         solution, rather than tail+Perl-based one.  The latter would read
32005         a few kilobytes from the end of each file, and did not handle empty
32006         files properly.
32007
32008         maint.mk: print the elapsed time for each syntax-check rule
32009         * top/maint.mk (sc_m_rules_): Save start time in a file.
32010         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32011         (local-check): Interpose the .z rules
32012
32013 2010-04-11  Jim Meyering  <meyering@redhat.com>
32014
32015         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32016         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32017         empty file with one that ends in an empty line.
32018
32019 2010-04-10  Bruno Haible  <bruno@clisp.org>
32020
32021         mkdir: Make it work on mingw64.
32022         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32023         * lib/mkdir.c: Update comment.
32024         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32025
32026 2010-04-10  Bruno Haible  <bruno@clisp.org>
32027
32028         Don't override improved macro from newer autoconf.
32029         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32030         autoconf >= 2.62.
32031         Reported by Joel E. Denny <jdenny@clemson.edu>.
32032
32033 2010-04-10  Jim Meyering  <meyering@redhat.com>
32034
32035         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32036         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32037
32038         maint.mk: correct a diagnostic
32039         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32040         in diagnostic; now use $prohibit.
32041
32042 2010-04-10  Bruno Haible  <address@hidden>
32043
32044         fchownat: Fix a C++ test error on Solaris 8.
32045         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32046         the function does not exist.
32047
32048 2010-04-10  Bruno Haible  <bruno@clisp.org>
32049
32050         vasnprintf: Add more tests.
32051         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32052         (test_function): Test converting an invalid wide string.
32053
32054         vasnprintf: Correct handling of unconvertible wide string arguments.
32055         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32056         VASNPRINTF.
32057         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32058         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32059         smaller than the expected maximum need for the directive. Set errno to
32060         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32061         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32063         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32064         * modules/vasnprintf (Files): Add m4/printf.m4.
32065         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32066
32067 2010-04-10  Bruno Haible  <bruno@clisp.org>
32068
32069         vasnprintf: Fix crash in %ls directive.
32070         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32071         string is passed as argument to %ls, with no precision and no width.
32072         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32073
32074 2010-04-10  Bruno Haible  <bruno@clisp.org>
32075
32076         vasnprintf: Fix multiple test failures on mingw.
32077         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32078         _snprintf, or snwprintf, not _snwprintf.
32079
32080 2010-04-10  Bruno Haible  <bruno@clisp.org>
32081
32082         write: Fix a C++ test error on mingw.
32083         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32084
32085 2010-04-10  Bruno Haible  <bruno@clisp.org>
32086
32087         vasnprintf test: Reduce code duplication.
32088         * tests/test-vasnprintf.c (test_function): New function, extracted from
32089         test_vasnprintf.
32090         (test_vasnprintf, test_asnprintf): Invoke it.
32091
32092 2010-04-10  Bruno Haible  <bruno@clisp.org>
32093
32094         strnlen: Fix warning in C++ mode on MacOS X.
32095         * lib/string.in.h (strnlen): Use the modern idiom.
32096         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32097         defining strnlen as a macro already in <config.h>.
32098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32099         REPLACE_STRNLEN.
32100         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32101         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32102
32103 2010-04-08  James Youngman  <jay@gnu.org>
32104
32105         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32106         the example.
32107
32108 2010-04-09  Jim Meyering  <meyering@redhat.com>
32109
32110         maint.mk: print better diagnostic when there is no $(_hv_file)
32111         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32112         announce that when $(_hv_file) (aka help-version) does not exist.
32113
32114         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32115         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32116         not try to interpret its random input bytes.  Jarno Rajahalme reported
32117         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32118         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32119         (mktempd_): Likewise, just in case.
32120
32121         ftruncate: add two years to projected module removal date: 2012
32122         * m4/ftruncate.m4: Adjust comments.
32123
32124         ftruncate: mark module as obsolete; even MinGW provides it, now
32125         * modules/ftruncate (Status): Obsolete.
32126         (Notice): Say that.
32127         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32129
32130 2010-04-08  Bruno Haible  <bruno@clisp.org>
32131
32132         Fix side effects from tests-related modules.
32133         * modules/dprintf-posix (Comment): New section.
32134         * modules/fprintf-posix (Comment): Likewise.
32135         * modules/obstack-printf-posix (Comment): Likewise.
32136         * modules/printf-posix (Comment): Likewise.
32137         * modules/snprintf-posix (Comment): Likewise.
32138         * modules/sprintf-posix (Comment): Likewise.
32139         * modules/vasnprintf-posix (Comment): Likewise.
32140         * modules/vasprintf-posix (Comment): Likewise.
32141         * modules/vdprintf-posix (Comment): Likewise.
32142         * modules/vfprintf-posix (Comment): Likewise.
32143         * modules/vprintf-posix (Comment): Likewise.
32144         * modules/vsnprintf-posix (Comment): Likewise.
32145         * modules/vsprintf-posix (Comment): Likewise.
32146         * modules/xprintf-posix (Comment): Likewise.
32147         * modules/xvasprintf-posix (Comment): Likewise.
32148         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32149         * modules/floorf-tests (Depends-on): Likewise.
32150         * modules/round-tests (Depends-on): Likewise.
32151         * modules/roundf-tests (Depends-on): Likewise.
32152         * modules/trunc-tests (Depends-on): Likewise.
32153         * modules/truncf-tests (Depends-on): Likewise.
32154         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32155         'fprintf-posix' module is not present.
32156         * tests/test-floorf2.c (check): Likewise.
32157         * tests/test-trunc2.c (check): Likewise.
32158         * tests/test-truncf2.c (check): Likewise.
32159         * tests/test-round2.c (equal): Likewise.
32160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32161
32162 2010-04-07  Karl Berry  <karl@gnu.org>
32163
32164         * config/srclist.txt,
32165         * config/srclistvars.sh,
32166         * config/srclist-update: doc fixes.
32167
32168 2010-04-07  Jim Meyering  <meyering@redhat.com>
32169
32170         maint.mk: add a PATH crosschecking syntax-check rule
32171         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32172         Useful if you use a test like the one in help-version (coreutils,
32173         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32174         printed by prog --version.
32175
32176 2010-04-06  Bruno Haible  <bruno@clisp.org>
32177
32178         Fix link error on mingw.
32179         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32180         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32181
32182 2010-04-06  Bruno Haible  <bruno@clisp.org>
32183
32184         Assume rmdir exists.
32185         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32186
32187 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32188
32189         doc: update users.txt
32190         * users.txt: Add gcal.
32191
32192 2010-04-06  Jim Meyering  <meyering@redhat.com>
32193
32194         init.sh: simply unset TMPDIR rather than risking env -i
32195         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32196         although it probably works fine on all Unix-based systems, some
32197         systems (Cygwin?) cannot tolerate a totally cleared environment.
32198         Suggestion from Eric Blake.
32199
32200 2010-04-06  Jim Meyering  <meyering@redhat.com>
32201
32202         init.sh: portability fix: use env's POSIX-specified -i option not -u
32203         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32204         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32205
32206 2010-04-05  Bruno Haible  <bruno@clisp.org>
32207
32208         btowc: Work around Cygwin 1.7.2 bug.
32209         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32210         does not map NUL to 0.
32211         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32212
32213 2010-04-05  Bruno Haible  <bruno@clisp.org>
32214
32215         Make the multithread modules work on Cygwin 1.7.2.
32216         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32217         imported symbols can be declared weak, so that it returns "no" on
32218         Cygwin 1.7.2.
32219
32220 2010-04-05  Bruno Haible  <bruno@clisp.org>
32221
32222         Use the module 'strncat'.
32223         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32224
32225         Tests for module 'strncat'.
32226         * modules/strncat-tests: New file.
32227         * tests/test-strncat.c: New file.
32228
32229         New module 'strncat'.
32230         * lib/string.in.h (strncat): New declaration.
32231         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32232         * m4/strncat.m4: New file, based on m4/memchr.m4.
32233         * modules/strncat: New file.
32234         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32235         is declared.
32236         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32237         REPLACE_STRNCAT.
32238         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32239         REPLACE_STRNCAT.
32240         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32241         module.
32242         * tests/test-string-c++.cc: Check signature of strncat.
32243
32244 2010-04-05  Jim Meyering  <meyering@redhat.com>
32245
32246         xstrtoumax-tests: convert to use init.sh
32247         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32248         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32249         Use Exit, not exit.
32250         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32251
32252         xstrtoimax-tests: convert to use init.sh
32253         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32254         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32255         Use Exit, not exit.
32256         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32257
32258 2010-04-05  Bruno Haible  <bruno@clisp.org>
32259
32260         sys_socket: Avoid #define replacements in C++ mode.
32261         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32262         warning to the function if possible, rather than #defining the symbol
32263         to a dysfunctional alias.
32264
32265 2010-04-05  Bruno Haible  <bruno@clisp.org>
32266
32267         fseeko: Fix C++ test error on mingw.
32268         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32269         gl_FUNC_FSEEKO.
32270         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32271         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32272         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32273         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32274
32275 2010-04-05  Bruno Haible  <bruno@clisp.org>
32276
32277         duplocale: Improve test output.
32278         * tests/test-duplocale.c (main): Print reason for skipped test.
32279
32280 2010-04-05  Bruno Haible  <bruno@clisp.org>
32281
32282         Assume rmdir exists.
32283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32284         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32285
32286 2010-04-05  Bruno Haible  <bruno@clisp.org>
32287
32288         Fix link error on Solaris 8 with cc.
32289         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32290
32291 2010-04-05  Bruno Haible  <bruno@clisp.org>
32292
32293         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32294         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32295
32296 2010-04-05  Bruno Haible  <bruno@clisp.org>
32297
32298         vasprintf: Update documentation.
32299         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32300
32301 2010-04-05  Bruno Haible  <bruno@clisp.org>
32302
32303         ptsname: Improve test.
32304         * tests/test-ptsname.c (main): Also try the various master names of BSD
32305         systems.
32306
32307 2010-04-05  Bruno Haible  <bruno@clisp.org>
32308
32309         memchr: Avoid a possible C++ test error.
32310         * lib/string.in.h (memchr): Provide declaration if function is missing.
32311         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32312         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32314         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32315
32316 2010-04-05  Bruno Haible  <bruno@clisp.org>
32317
32318         strtok_r: Improve idiom.
32319         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32320         AC_LIBOBJ is used.
32321
32322 2010-04-05  Bruno Haible  <bruno@clisp.org>
32323
32324         strdup: Improve idiom.
32325         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32326         AC_LIBOBJ is used.
32327         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32328         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32329         when AC_LIBOBJ is used.
32330
32331 2010-04-05  Bruno Haible  <bruno@clisp.org>
32332
32333         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32334         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32335         don't set REPLACE_MBSINIT to 1.
32336         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32337         don't set REPLACE_MBRTOWC to 1.
32338         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32339         exist, don't set REPLACE_MBSRTOWCS to 1.
32340         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32341         exist, don't set REPLACE_MBSNRTOWCS to 1.
32342         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32343         don't set REPLACE_WCRTOMB to 1.
32344         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32345         exist, don't set REPLACE_WCSRTOMBS to 1.
32346         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32347         exist, don't set REPLACE_WCSNRTOMBS to 1.
32348
32349 2010-04-05  Bruno Haible  <bruno@clisp.org>
32350
32351         ldexpl: Improve idiom.
32352         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32353         make sure to set HAVE_DECL_LDEXPL to 0.
32354
32355 2010-04-05  Jim Meyering  <meyering@redhat.com>
32356
32357         xstrtol-tests: convert to use init.sh
32358         * modules/xstrtol-tests (Files): Add tests/init.sh.
32359         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32360         Use Exit, not exit.
32361         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32362
32363         atexit-tests: convert to use init.sh
32364         * modules/atexit-tests (Files): Add tests/init.sh.
32365         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32366         Use Exit, not exit.
32367         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32368
32369         init.sh: fix typo
32370         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32371
32372         init.sh: make it easier for a test script to write to the tty, ...
32373         when using automake's parallel-tests mode.
32374         * tests/init.sh (stderr_fileno_): Define overridable variable.
32375         (warn_): New function, to use it.
32376         (fail_, skip_, framework_failure_): Use warn_.
32377
32378 2010-04-04  Bruno Haible  <bruno@clisp.org>
32379
32380         btowc: Avoid warning.
32381         * lib/btowc.c: Include <stdlib.h>.
32382         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32383
32384 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32385             Bruno Haible  <bruno@clisp.org>
32386
32387         wchar: Port to NetBSD 1.5.
32388         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32389         * lib/wctype.in.h (WEOF): Likewise.
32390
32391 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32392             Bruno Haible  <bruno@clisp.org>
32393
32394         Port extended stdio to NetBSD 1.5.
32395         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32396         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32397         older.
32398
32399 2010-04-04  Bruno Haible  <bruno@clisp.org>
32400
32401         string: Remove unused substitution.
32402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32403         HAVE_DECL_STRERROR.
32404         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32405
32406 2010-04-04  Bruno Haible  <bruno@clisp.org>
32407
32408         strtod: Avoid a possible C++ test error.
32409         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32410         set REPLACE_STRTOD.
32411
32412 2010-04-04  Bruno Haible  <bruno@clisp.org>
32413
32414         strerror: Update documentation.
32415         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32416
32417 2010-04-04  Bruno Haible  <bruno@clisp.org>
32418
32419         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32420         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32421         _GL_CXXALIAS_SYS_CAST.
32422
32423 2010-04-04  Bruno Haible  <bruno@clisp.org>
32424
32425         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32426         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32427         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32428         REPLACE_FREXPL to 1.
32429         * doc/posix-functions/frexpl.texi: Update documentation.
32430
32431 2010-04-04  Bruno Haible  <bruno@clisp.org>
32432
32433         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32434         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32435
32436 2010-04-04  Bruno Haible  <bruno@clisp.org>
32437
32438         Implement nanosleep for native Windows.
32439         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32440
32441 2010-04-04  Bruno Haible  <bruno@clisp.org>
32442
32443         math: Fix some C++ test errors on Solaris 8.
32444         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32445
32446 2010-04-04  Bruno Haible  <bruno@clisp.org>
32447
32448         math: Fix some C++ test errors on Cygwin.
32449         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32450         truncl): Provide declaration if the system does not have it.
32451         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32452         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32453         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32454         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32455         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32456         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32457         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32458         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32459         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32460         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32461         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32462         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32463         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32464         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32465         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32466         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32468         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32469         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32470         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32471         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32472         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32473
32474 2010-04-04  Bruno Haible  <bruno@clisp.org>
32475
32476         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32477         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32478         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32479         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32480         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32481         * m4/isinf.m4 (gl_ISINF): Likewise.
32482         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32483
32484 2010-04-04  Bruno Haible  <bruno@clisp.org>
32485
32486         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32487         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32488
32489 2010-04-04  Bruno Haible  <bruno@clisp.org>
32490
32491         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32492         * modules/tmpfile (configure.ac): Update.
32493
32494         tmpfile: Fix C++ test error on mingw.
32495         * lib/stdio.in.h (tmpfile): New declaration.
32496         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32497         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32498         * modules/tmpfile (Depends-on): Add stdio.
32499         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32500         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32501         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32502         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32503         REPLACE_TMPFILE.
32504         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32505
32506 2010-04-04  Bruno Haible  <bruno@clisp.org>
32507
32508         ioctl: Fix C++ test error on mingw.
32509         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32510         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32511         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32512
32513 2010-04-03  Bruno Haible  <bruno@clisp.org>
32514
32515         wcwidth: Fix C++ test error on mingw.
32516         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32518         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32519
32520 2010-04-03  Bruno Haible  <bruno@clisp.org>
32521
32522         nanosleep: Fix C++ test error on mingw.
32523         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32524         * lib/time.in.h (nanosleep): Use modern idiom.
32525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32526         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32527         REPLACE_NANOSLEEP to 1.
32528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32529         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32530
32531 2010-04-03  Bruno Haible  <bruno@clisp.org>
32532
32533         strptime: Fix C++ test error on mingw.
32534         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32535         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32536         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32537         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32538         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32539         not REPLACE_STRPTIME.
32540         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32541         REPLACE_STRPTIME.
32542
32543 2010-04-03  Bruno Haible  <bruno@clisp.org>
32544
32545         timegm: Fix C++ test error on mingw.
32546         * lib/time.in.h (timegm): Use modern idiom.
32547         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32548         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32549         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32550         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32551
32552 2010-04-03  Bruno Haible  <bruno@clisp.org>
32553
32554         timegm: Assume declaration if function exists.
32555         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32556         if it exists. Don't clobber ac_cv_func_timegm.
32557
32558 2010-04-03  Bruno Haible  <bruno@clisp.org>
32559
32560         time_r: Fix C++ test error on mingw.
32561         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32562         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32563         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32564         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32565         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32566
32567 2010-04-03  Bruno Haible  <bruno@clisp.org>
32568
32569         time_r: Minor updates.
32570         * modules/time_r (Description): Mention the provided functions.
32571         * lib/time_r.c: Don't include <string.h>.
32572         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32573         * doc/posix-functions/localtime_r.texi: Likewise.
32574
32575 2010-04-03  Bruno Haible  <bruno@clisp.org>
32576
32577         time: Fix regression introduced on 2010-03-08.
32578         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32579         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32580
32581 2010-04-03  Jim Meyering  <meyering@redhat.com>
32582
32583         maint.mk: don't silently disable project-specific syntax-check rules
32584         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32585         that they need to convert their project-specific syntax-check rules
32586         to use the new _sc_search_regexp.
32587
32588 2010-04-03  Bruno Haible  <bruno@clisp.org>
32589
32590         fchdir: Fix regression introduced on 2010-03-08.
32591         * lib/unistd.in.h (fchdir): Fix declaration.
32592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32594         REPLACE_FCHDIR.
32595         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32596         REPLACE_FCHDIR.
32597
32598 2010-04-03  Bruno Haible  <bruno@clisp.org>
32599
32600         getpagesize: Fix C++ test error on mingw.
32601         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32602         system does not declare the function.
32603         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32604         declared.
32605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32606         HAVE_DECL_GETPAGESIZE.
32607         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32608
32609 2010-04-03  Bruno Haible  <bruno@clisp.org>
32610
32611         stdio: Make C++ tests work on mingw.
32612         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32613         does not declare the function.
32614
32615 2010-04-03  Bruno Haible  <bruno@clisp.org>
32616
32617         ftello: Fix C++ test error on mingw.
32618         * lib/stdio.in.h (ftello): Use modern idiom.
32619         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32620         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32621         is missing and that it needs to be replaced.
32622         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32624         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32625
32626 2010-04-03  Bruno Haible  <bruno@clisp.org>
32627
32628         fseeko: Fix C++ test error on mingw.
32629         * lib/stdio.in.h (fseeko): Use modern idiom.
32630         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32631         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32632         is missing and that it needs to be replaced.
32633         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32634         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32635         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32636
32637 2010-04-03  Bruno Haible  <bruno@clisp.org>
32638
32639         mkstemp: Fix C++ test error on mingw.
32640         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32642         function is missing and that it needs to be replaced.
32643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32644         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32645
32646 2010-04-03  Bruno Haible  <bruno@clisp.org>
32647
32648         stpncpy: Fix C++ test error on mingw.
32649         * lib/string.in.h (stpncpy): Use modern idiom.
32650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32651         function is missing and that it needs to be replaced.
32652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32653         REPLACE_STPNCPY.
32654         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32655
32656 2010-04-03  Bruno Haible  <bruno@clisp.org>
32657
32658         sys_stat: Fix C++ test error on mingw.
32659         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32660         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32661
32662 2010-04-03  Bruno Haible  <bruno@clisp.org>
32663
32664         pty: Update doc.
32665         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32666
32667 2010-04-03  Bruno Haible  <bruno@clisp.org>
32668
32669         unistd: Fix C++ test error on mingw.
32670         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32671
32672 2010-04-03  Bruno Haible  <bruno@clisp.org>
32673
32674         Update doc regarding mingw.
32675         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32676         * doc/glibc-functions/login_tty.texi: Likewise.
32677         * doc/glibc-functions/forkpty.texi: Likewise.
32678
32679 2010-04-03  Bruno Haible  <bruno@clisp.org>
32680
32681         stdlib: Avoid compilation failure of c-strtold on mingw.
32682         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32683
32684 2010-04-03  Bruno Haible  <bruno@clisp.org>
32685
32686         locale: Make C++ tests work on Cygwin and mingw.
32687         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32688         cannot provide the function.
32689         Reported by Simon Josefsson.
32690
32691 2010-04-03  Bruno Haible  <bruno@clisp.org>
32692
32693         localename: Port to MacOS X 10.6.
32694         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32695         memory layout of the locales in MacOS X 10.6 as well.
32696         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32697
32698 2010-04-02  Bruno Haible  <bruno@clisp.org>
32699
32700         gnulib-tool: Ensure that long-running tests are executed last.
32701         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32702         running tests after the one for the other tests.
32703
32704 2010-04-02  Bruno Haible  <bruno@clisp.org>
32705
32706         gnulib-tool: Ensure the tests in the main directory are executed first.
32707         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32708         start with the current directory.
32709
32710 2010-04-02  Bruno Haible  <bruno@clisp.org>
32711
32712         Tests for module 'havelib', moved here from GNU gettext.
32713         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32714         modifications.
32715         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32716         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32717         with modifications.
32718         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32719         modifications.
32720         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32721         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32722         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32723         with modifications.
32724         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32725         with modifications.
32726         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32727         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32728         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32729         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32730         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32731         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32732         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32733         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32734         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32735         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32736         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32737         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32738         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32739         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32740         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32741         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32742         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32743         with modifications.
32744         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32745         with modifications.
32746         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32747         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32748         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32749         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32750         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32751         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32752         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32753         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32754         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32755         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32756         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32757         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32758         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32759         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32760         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32761         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32762         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32763         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32764         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32765         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32766         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32767         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32768         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32769         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32770         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32771         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32772         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32773         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32774         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32775         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32776         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32777         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32778         * tests/havelib/rpathx/rpathx.c: New file, from
32779         gettext/autoconf-lib-link.
32780         * tests/havelib/rpathx/Makefile.am: New file, from
32781         gettext/autoconf-lib-link.
32782         * tests/havelib/rpathx/configure.ac: New file, from
32783         gettext/autoconf-lib-link with modifications.
32784         * tests/havelib/rpathy/rpathy.c: New file, from
32785         gettext/autoconf-lib-link.
32786         * tests/havelib/rpathy/Makefile.am: New file, from
32787         gettext/autoconf-lib-link.
32788         * tests/havelib/rpathy/configure.ac: New file, from
32789         gettext/autoconf-lib-link with modifications.
32790         * tests/havelib/rpathz/rpathz.c: New file, from
32791         gettext/autoconf-lib-link.
32792         * tests/havelib/rpathz/Makefile.am: New file, from
32793         gettext/autoconf-lib-link.
32794         * tests/havelib/rpathz/configure.ac: New file, from
32795         gettext/autoconf-lib-link with modifications.
32796         * tests/havelib/rpathlx/usex.c: New file, from
32797         gettext/autoconf-lib-link.
32798         * tests/havelib/rpathlx/Makefile.am: New file, from
32799         gettext/autoconf-lib-link.
32800         * tests/havelib/rpathlx/configure.ac: New file, from
32801         gettext/autoconf-lib-link with modifications.
32802         * tests/havelib/rpathly/usey.c: New file, from
32803         gettext/autoconf-lib-link.
32804         * tests/havelib/rpathly/Makefile.am: New file, from
32805         gettext/autoconf-lib-link.
32806         * tests/havelib/rpathly/configure.ac: New file, from
32807         gettext/autoconf-lib-link with modifications.
32808         * tests/havelib/rpathlz/usez.c: New file, from
32809         gettext/autoconf-lib-link.
32810         * tests/havelib/rpathlz/Makefile.am: New file, from
32811         gettext/autoconf-lib-link.
32812         * tests/havelib/rpathlz/configure.ac: New file, from
32813         gettext/autoconf-lib-link with modifications.
32814         * tests/havelib/rpathlyx/usey.c: New file, from
32815         gettext/autoconf-lib-link.
32816         * tests/havelib/rpathlyx/Makefile.am: New file, from
32817         gettext/autoconf-lib-link.
32818         * tests/havelib/rpathlyx/configure.ac: New file, from
32819         gettext/autoconf-lib-link with modifications.
32820         * tests/havelib/rpathlzyx/usez.c: New file, from
32821         gettext/autoconf-lib-link.
32822         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32823         gettext/autoconf-lib-link.
32824         * tests/havelib/rpathlzyx/configure.ac: New file, from
32825         gettext/autoconf-lib-link with modifications.
32826         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32827         with modifications.
32828
32829 2010-04-02  Bruno Haible  <bruno@clisp.org>
32830
32831         gnulib-tool: Create distributed built sources also for the tests.
32832         * gnulib-tool (func_create_testdir): Also generate distributed built
32833         sources in the tests directory.
32834
32835 2010-04-02  Bruno Haible  <bruno@clisp.org>
32836
32837         gnulib-tool: Obey user's environment variables.
32838         * gnulib-tool (func_create_testdir): When creating built sources,
32839         respect the environment variables for autoconf, automake, etc. given by
32840         the user.
32841
32842 2010-04-02  Bruno Haible  <bruno@clisp.org>
32843
32844         gnulib-tool: Provide the value of --m4-base to modules.
32845         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32846         of gl_m4_base.
32847
32848 2010-04-02  Eric Blake  <eblake@redhat.com>
32849
32850         maint.mk: fix some fallout
32851         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32852         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32853
32854 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32855
32856         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32857         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32858         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32859         (sc_cast_of_x_alloc_return_value): Likewise.
32860         (sc_cast_of_alloca_return_value): Likewise.
32861         (sc_space_tab): Likewise.
32862         (sc_prohibit_atoi_atof): Likewise.
32863         (sc_prohibit_magic_number_exit): Likewise.
32864         (sc_error_exit_success): Likewise.
32865         (sc_file_system): Likewise.
32866         (sc_prohibit_have_config_h): Likewise.
32867         (sc_require_config_h): Likewise.
32868         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32869         (sc_obsolete_symbols): Likewise.
32870         (sc_changelog): Likewise.
32871         (sc_program_name): Likewise.
32872         (sc_the_the): Likewise.
32873         (sc_trailing_blank): Likewise.
32874         (sc_two_space_separator_in_usage): Likewise.
32875         (sc_useless_cpp_parens): Likewise.
32876         (sc_GPL_version): Likewise.
32877         (sc_GFDL_version): Likewise.
32878         (sc_texinfo_acronym): Likewise.
32879         (sc_prohibit_cvs_keyword): Likewise.
32880         (sc_prohibit_stat_st_blocks): Likewise.
32881         (sc_prohibit_S_IS_definition): Likewise.
32882         (sc_redundant_const): Likewise.
32883         (sc_makefile_TAB_only_indentation): Likewise.
32884         (sc_m4_quote_check): Likewise.
32885         (sc_makefile_path_separator_check): Likewise.
32886         (sc_copyright_check): Likewise.
32887         (sc_Wundef_boolean): Likewise.
32888         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32889
32890         maint.mk: match 0 or more whitespace-before-function-call '('
32891         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32892         that have zero or two-and-more spaces between the function name
32893         and the open parenthesis.
32894         (sc_error_message_warn_fatal): Likewise.
32895         (sc_error_message_uppercase): Likewise.
32896         (sc_error_message_period): Likewise.
32897
32898 2010-03-31  Eric Blake  <eblake@redhat.com>
32899
32900         maint.mk: check for [ as well as test
32901         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32902         Based on a libvirt report by Matthias Bolte.
32903
32904         gnumakefile: don't squelch _version output
32905         * top/GNUmakefile (_version): Create one-shot dependency rather
32906         than using $(shell) when version must be regenerated.
32907         (_autoreconf): Run verbosely, by default.
32908
32909         sys_time: avoid compiler warnings
32910         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32911         unconditional, fixing regression from 2010-03-29.
32912         Reported by Simon Josefsson.
32913
32914 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32915
32916         maint.mk: s/_header_without_use/_sc_header_without_use/
32917         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32918         (sc_prohibit_assert_without_use): Use the new name.
32919         (sc_prohibit_close_stream_without_use): Likewise.
32920         (sc_prohibit_getopt_without_use): Likewise.
32921         (sc_prohibit_quotearg_without_use): Likewise.
32922         (sc_prohibit_quote_without_use): Likewise.
32923         (sc_prohibit_long_options_without_use): Likewise.
32924         (sc_prohibit_inttostr_without_use): Likewise.
32925         (sc_prohibit_ignore_value_without_use): Likewise.
32926         (sc_prohibit_error_without_use): Likewise.
32927         (sc_prohibit_xalloc_without_use): Likewise.
32928         (sc_prohibit_hash_without_use): Likewise.
32929         (sc_prohibit_hash_pjw_without_use): Likewise.
32930         (sc_prohibit_safe_read_without_use): Likewise.
32931         (sc_prohibit_argmatch_without_use): Likewise.
32932         (sc_prohibit_canonicalize_without_use): Likewise.
32933         (sc_prohibit_root_dev_ino_without_use): Likewise.
32934         (sc_prohibit_openat_without_use): Likewise.
32935         (sc_prohibit_c_ctype_without_use): Likewise.
32936         (sc_prohibit_signal_without_use): Likewise.
32937         (sc_prohibit_intprops_without_use): Likewise.
32938
32939 2010-03-30  Eric Blake  <eblake@redhat.com>
32940
32941         maint: improve module indicators
32942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32943         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32944         columns, and avoid extra macro expansion.
32945
32946         fdopendir: work around FreeBSD bug
32947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32948         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32949         * modules/dirent (Makefile.am): Substitute it.
32950         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32951         declaration.
32952         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32953         fix.
32954         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32955
32956 2010-03-29  Bruno Haible  <bruno@clisp.org>
32957
32958         Emit #pragma system_header after the inclusion guard, not before.
32959         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32960         guard that spans the entire file, not before. This enables an
32961         optimization in GCC's preprocessor.
32962         * lib/ctype.in.h: Likewise.
32963         * lib/dirent.in.h: Likewise.
32964         * lib/errno.in.h: Likewise.
32965         * lib/float.in.h: Likewise.
32966         * lib/getopt.in.h: Likewise.
32967         * lib/iconv.in.h: Likewise.
32968         * lib/langinfo.in.h: Likewise.
32969         * lib/locale.in.h: Likewise.
32970         * lib/math.in.h: Likewise.
32971         * lib/netdb.in.h: Likewise.
32972         * lib/netinet_in.in.h: Likewise.
32973         * lib/pty.in.h: Likewise.
32974         * lib/sched.in.h: Likewise.
32975         * lib/se-selinux.in.h: Likewise.
32976         * lib/search.in.h: Likewise.
32977         * lib/spawn.in.h: Likewise.
32978         * lib/stdarg.in.h: Likewise.
32979         * lib/stdint.in.h: Likewise.
32980         * lib/string.in.h: Likewise.
32981         * lib/strings.in.h: Likewise.
32982         * lib/sys_file.in.h: Likewise.
32983         * lib/sys_ioctl.in.h: Likewise.
32984         * lib/sys_time.in.h: Likewise.
32985         * lib/sys_times.in.h: Likewise.
32986         * lib/sys_utsname.in.h: Likewise.
32987         * lib/sys_wait.in.h: Likewise.
32988         * lib/sysexits.in.h: Likewise.
32989         * lib/wctype.in.h: Likewise.
32990
32991 2010-03-28  James Youngman  <jay@gnu.org>
32992
32993         save-cwd: don't leak a file descriptor when the caller execs.
32994         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32995         saved file descriptor.
32996         * modules/save-cwd (Depends-on): Depend on cloexec.
32997
32998 2010-03-29  Bruno Haible  <bruno@clisp.org>
32999
33000         Remove vestiges of fts-lgpl module.
33001         * lib/fts_.h: Assume GNULIB_FTS is 1.
33002         * lib/fts.c: Likewise.
33003         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33004
33005 2010-03-28  Bruno Haible  <bruno@clisp.org>
33006
33007         Fix definition of tests witness macro.
33008         * gnulib-tool (func_import): Fix definition of witness macro.
33009
33010 2010-03-28  Bruno Haible  <bruno@clisp.org>
33011
33012         Fix ioctl's protoype on glibc systems.
33013         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33014         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33015         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33016         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33017         signature. If not, arrange to replace the ioctl function.
33018         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33019         REPLACE_IOCTL.
33020         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33021         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33022         Reported by Ludovic Courtès <ludo@gnu.org>.
33023
33024 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33025
33026         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33027         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33028         made it so grep -r --include=GLOB* ... did not work.
33029
33030 2010-03-26  Jim Meyering  <meyering@redhat.com>
33031             Eric Blake  <eblake@redhat.com>
33032
33033         maint.mk: prohibit use of test's -o and -a operators
33034         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33035
33036 2010-03-28  Bruno Haible  <bruno@clisp.org>
33037
33038         Remove unused GNULIB_XYZ macro definitions.
33039         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33040         invocation.
33041
33042 2010-03-28  Bruno Haible  <bruno@clisp.org>
33043
33044         Mark privileged tests modules.
33045         * modules/idpriv-drop-tests (Status): New section.
33046         * modules/idpriv-droptemp-tests (Status): New section.
33047
33048 2010-03-28  Bruno Haible  <bruno@clisp.org>
33049
33050         Split C++ tests into separate tests modules.
33051         * modules/dirent-c++-tests: New file, extracted from
33052         modules/dirent-tests.
33053         * modules/dirent-tests: Depend on it.
33054         * modules/fcntl-h-c++-tests: New file, extracted from
33055         modules/fcntl-h-tests.
33056         * modules/fcntl-h-tests: Depend on it.
33057         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33058         * modules/glob-tests: Depend on it.
33059         * modules/iconv-h-c++-tests: New file, extracted from
33060         modules/iconv-h-tests.
33061         * modules/iconv-h-tests: Depend on it.
33062         * modules/langinfo-c++-tests: New file, extracted from
33063         modules/langinfo-tests.
33064         * modules/langinfo-tests: Depend on it.
33065         * modules/locale-c++-tests: New file, extracted from
33066         modules/locale-tests.
33067         * modules/locale-tests: Depend on it.
33068         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33069         * modules/math-tests: Depend on it.
33070         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33071         * modules/pty-tests: Depend on it.
33072         * modules/search-c++-tests: New file, extracted from
33073         modules/search-tests.
33074         * modules/search-tests: Depend on it.
33075         * modules/signal-c++-tests: New file, extracted from
33076         modules/signal-tests.
33077         * modules/signal-tests: Depend on it.
33078         * modules/spawn-c++-tests: New file, extracted from
33079         modules/spawn-tests.
33080         * modules/spawn-tests: Depend on it.
33081         * modules/stdio-c++-tests: New file, extracted from
33082         modules/stdio-tests.
33083         * modules/stdio-tests: Depend on it.
33084         * modules/stdlib-c++-tests: New file, extracted from
33085         modules/stdlib-tests.
33086         * modules/stdlib-tests: Depend on it.
33087         * modules/string-c++-tests: New file, extracted from
33088         modules/string-tests.
33089         * modules/string-tests: Depend on it.
33090         * modules/sys_ioctl-c++-tests: New file, extracted from
33091         modules/sys_ioctl-tests.
33092         * modules/sys_ioctl-tests: Depend on it.
33093         * modules/sys_select-c++-tests: New file, extracted from
33094         modules/sys_select-tests.
33095         * modules/sys_select-tests: Depend on it.
33096         * modules/sys_socket-c++-tests: New file, extracted from
33097         modules/sys_socket-tests.
33098         * modules/sys_socket-tests: Depend on it.
33099         * modules/sys_stat-c++-tests: New file, extracted from
33100         modules/sys_stat-tests.
33101         * modules/sys_stat-tests: Depend on it.
33102         * modules/sys_time-c++-tests: New file, extracted from
33103         modules/sys_time-tests.
33104         * modules/sys_time-tests: Depend on it.
33105         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33106         * modules/time-tests: Depend on it.
33107         * modules/unistd-c++-tests: New file, extracted from
33108         modules/unistd-tests.
33109         * modules/unistd-tests: Depend on it.
33110         * modules/wchar-c++-tests: New file, extracted from
33111         modules/wchar-tests.
33112         * modules/wchar-tests: Depend on it.
33113         * modules/wctype-c++-tests: New file, extracted from
33114         modules/wctype-tests.
33115         * modules/wctype-tests: Depend on it.
33116         Reported by Simon Josefsson.
33117
33118 2010-03-28  Bruno Haible  <bruno@clisp.org>
33119
33120         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33121         * gnulib-tool (func_exists_module): New function, extracted from
33122         func_verify_module.
33123         (func_verify_module): Use it.
33124         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33125         'foo' only if 'foo' exists.
33126         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33127         module.
33128
33129 2010-03-28  Bruno Haible  <bruno@clisp.org>
33130
33131         gnulib-tool: Add support for special categories of tests.
33132         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33133         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33134         (func_usage): Document them.
33135         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33136         inc_unportable_tests, inc_all_tests): New variables.
33137         (func_acceptable): Consider these variables.
33138         (func_modules_transitive_closure): Make it work when the 'Status' field
33139         consists of multiple words.
33140         (func_import): Store and restore the values of inc_cxx_tests,
33141         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33142         inc_all_tests in gnulib-comp.m4.
33143         (func_create_testdir): Set inc_all_tests to true.
33144         * doc/gnulib.texi (Extra tests modules): New section.
33145         Suggested by Jim Meyering.
33146
33147 2010-03-28  Bruno Haible  <bruno@clisp.org>
33148
33149         ansi-c++-opt: Allow turning off the C++ build by default.
33150         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33151         gl_CXX_CHOICE_DEFAULT_NO is defined.
33152         Requested by Eric Blake.
33153
33154 2010-03-28  Bruno Haible  <bruno@clisp.org>
33155
33156         unistd: Avoid #define replacements in C++ mode.
33157         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33158         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33159         setsockopt, shutdown, select): In C++, attach a warning to the function
33160         if possible, rather than #defining the symbol to a dysfunctional alias.
33161         Reported by John W. Eaton <jwe@gnu.org>.
33162
33163 2010-03-28  Bruno Haible  <bruno@clisp.org>
33164
33165         Fix link errors on mingw.
33166         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33167         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33168         $(LIBSOCKET).
33169         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33170         $(LIBSOCKET).
33171
33172 2010-03-28  Bruno Haible  <bruno@clisp.org>
33173             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33174
33175         lib-ignore: Determine different options for different compilers.
33176         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33177         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33178         Add comments.
33179         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33180         * NEWS: Mention the change.
33181
33182 2010-03-27  Bruno Haible  <bruno@clisp.org>
33183
33184         Remove unused GNULIB_XYZ macro definitions.
33185         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33186         * modules/fseek (configure.ac): Likewise.
33187         * modules/ioctl (configure.ac): Likewise.
33188         * modules/open (configure.ac): Likewise.
33189         * modules/stdlib-safer (configure.ac): Likewise.
33190
33191 2010-03-27  Bruno Haible  <bruno@clisp.org>
33192
33193         Add a remark about certain modules.
33194         * modules/malloc (Comment): New section.
33195         * modules/realloc (Comment): Likewise.
33196         * modules/sigpipe (Comment): Likewise.
33197
33198 2010-03-27  Bruno Haible  <bruno@clisp.org>
33199
33200         Resolve conflict between the two kinds of module indicators.
33201         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33202         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33203         * modules/canonicalize (configure.ac): Invoke
33204         gl_MODULE_INDICATOR_FOR_TESTS.
33205         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33206         GNULIB_XYZ.
33207         * tests/test-dirent-c++.cc: Likewise.
33208         * tests/test-dirent-safer.c: Likewise.
33209         * tests/test-dup2.c: Likewise.
33210         * tests/test-fchdir.c: Likewise.
33211         * tests/test-fcntl-h-c++.cc: Likewise.
33212         * tests/test-getopt.c: Likewise.
33213         * tests/test-getopt.h: Likewise.
33214         * tests/test-langinfo-c++.cc: Likewise.
33215         * tests/test-locale-c++.cc: Likewise.
33216         * tests/test-math-c++.cc: Likewise.
33217         * tests/test-pty-c++.cc: Likewise.
33218         * tests/test-search-c++.cc: Likewise.
33219         * tests/test-signal-c++.cc: Likewise.
33220         * tests/test-spawn-c++.cc: Likewise.
33221         * tests/test-stdio-c++.cc: Likewise.
33222         * tests/test-stdlib-c++.cc: Likewise.
33223         * tests/test-string-c++.cc: Likewise.
33224         * tests/test-sys_ioctl-c++.cc: Likewise.
33225         * tests/test-sys_select-c++.cc: Likewise.
33226         * tests/test-sys_socket-c++.cc: Likewise.
33227         * tests/test-sys_stat-c++.cc: Likewise.
33228         * tests/test-sys_time-c++.cc: Likewise.
33229         * tests/test-time-c++.cc: Likewise.
33230         * tests/test-unistd-c++.cc: Likewise.
33231         * tests/test-wchar-c++.cc: Likewise.
33232         * tests/uninorm/test-u8-nfc.c: Likewise.
33233         * tests/uninorm/test-u8-nfd.c: Likewise.
33234         * tests/uninorm/test-u8-nfkc.c: Likewise.
33235         * tests/uninorm/test-u8-nfkd.c: Likewise.
33236         * tests/uninorm/test-u16-nfc.c: Likewise.
33237         * tests/uninorm/test-u16-nfd.c: Likewise.
33238         * tests/uninorm/test-u16-nfkc.c: Likewise.
33239         * tests/uninorm/test-u16-nfkd.c: Likewise.
33240         * tests/uninorm/test-u32-nfc.c: Likewise.
33241         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33242         * tests/uninorm/test-u32-nfd.c: Likewise.
33243         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33244         * tests/uninorm/test-u32-nfkc.c: Likewise.
33245         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33246         * tests/uninorm/test-u32-nfkd.c: Likewise.
33247         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33248         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33249
33250 2010-03-27  Bruno Haible  <bruno@clisp.org>
33251
33252         Distinguish two kinds of module indicators.
33253         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33254         gl_MODULE_INDICATOR.
33255         (gl_MODULE_INDICATOR): New macro.
33256         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33257         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33258         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33259         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33260         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33261         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33262         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33263         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33264         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33265         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33266         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33267         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33269         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33270         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33271         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33272         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33273         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33274         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33275         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33276         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33277         * modules/cloexec (configure.ac): Likewise.
33278         * modules/getopt-gnu (configure.ac): Likewise.
33279         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33280         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33281         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33282         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33283
33284 2010-03-27  Bruno Haible  <bruno@clisp.org>
33285
33286         New module description field 'Comment'.
33287         * gnulib-tool: New option --extract-comment.
33288         (func_usage): Document it.
33289         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33290         (func_get_comment): New function.
33291         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33292
33293 2010-03-27  Bruno Haible  <bruno@clisp.org>
33294
33295         Addendum to 2010-02-07 commit.
33296         * gnulib-tool (func_usage): Document --extract-applicability option.
33297
33298 2010-03-27  Bruno Haible  <bruno@clisp.org>
33299
33300         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33301         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33302         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33303         rather than link errors.
33304
33305 2010-03-27  Bruno Haible  <bruno@clisp.org>
33306
33307         Avoid side effects from tests-related modules on the compilation of lib.
33308         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33309         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33310         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33311         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33312         macro.
33313         (func_import): Define a witness macro. Assign it a value that depends
33314         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33315         tests-related modules.
33316         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33317         Reported by Jim Meyering.
33318
33319 2010-03-27  Bruno Haible  <bruno@clisp.org>
33320
33321         Factorize common .m4 code.
33322         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33323         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33324         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33325         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33326         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33327         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33328         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33329         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33330         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33331         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33332         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33333         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33334         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33335         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33336         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33337         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33338         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33339         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33340         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33341         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33342         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33343         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33344         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33345         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33346         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33347         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33348         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33350         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33351         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33352         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33353         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33354
33355 2010-03-27  Bruno Haible  <bruno@clisp.org>
33356
33357         Fix a compilation error on Cygwin with g++ >= 4.3.
33358         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33359         if it is undefined or if we alias it to chmod.
33360         (lstat): Don't warn about the use of this function if it is undefined
33361         or if we alias it to stat.
33362         Reported by Simon Josefsson.
33363
33364 2010-03-27  Bruno Haible  <bruno@clisp.org>
33365
33366         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33367         * modules/getlogin (configure.ac): Update.
33368
33369         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33370         * modules/getlogin_r (configure.ac): Update.
33371
33372         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33373         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33374         * modules/inet_ntop (configure.ac): Update.
33375
33376         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33377         * modules/inet_pton (configure.ac): Update.
33378
33379         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33380         * modules/mbslen (configure.ac): Update.
33381
33382         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33383         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33384         * modules/forkpty (configure.ac): Update.
33385         * modules/openpty (configure.ac): Update.
33386
33387 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33388
33389         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33390         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33391
33392 2010-03-25  Eric Blake  <eblake@redhat.com>
33393
33394         maint: use pragma consistently across replacement headers
33395         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33396         * lib/dirent.in.h (system_header): Likewise.
33397         * lib/errno.in.h (system_header): Likewise.
33398         * lib/float.in.h (system_header): Likewise.
33399         * lib/getopt.in.h (system_header): Likewise.
33400         * lib/iconv.in.h (system_header): Likewise.
33401         * lib/inttypes.in.h (system_header): Likewise.
33402         * lib/langinfo.in.h (system_header): Likewise.
33403         * lib/locale.in.h (system_header): Likewise.
33404         * lib/math.in.h (system_header): Likewise.
33405         * lib/netdb.in.h (system_header): Likewise.
33406         * lib/netinet_in.in.h (system_header): Likewise.
33407         * lib/pty.in.h (system_header): Likewise.
33408         * lib/sched.in.h (system_header): Likewise.
33409         * lib/se-selinux.in.h (system_header): Likewise.
33410         * lib/search.in.h (system_header): Likewise.
33411         * lib/spawn.in.h (system_header): Likewise.
33412         * lib/stdarg.in.h (system_header): Likewise.
33413         * lib/stdint.in.h (system_header): Likewise.
33414         * lib/string.in.h (system_header): Likewise.
33415         * lib/strings.in.h (system_header): Likewise.
33416         * lib/sys_file.in.h (system_header): Likewise.
33417         * lib/sys_ioctl.in.h (system_header): Likewise.
33418         * lib/sys_socket.in.h (system_header): Likewise.
33419         * lib/sys_times.in.h (system_header): Likewise.
33420         * lib/sys_utsname.in.h (system_header): Likewise.
33421         * lib/sys_wait.in.h (system_header): Likewise.
33422         * lib/sysexits.in.h (system_header): Likewise.
33423         * lib/unistd.in.h (system_header): Likewise.
33424         * lib/wctype.in.h (system_header): Likewise.
33425
33426         arpa/inet: fix mingw compilation warning
33427         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33428         Reported by Matthew Bolte.
33429
33430 2010-03-25  Bruno Haible  <bruno@clisp.org>
33431
33432         Avoid collision between gnulib wrapper and libintl wrapper.
33433         * lib/printf.c (printf): Don't define if a printf wrapper is already
33434         defined in intl/printf.c.
33435         Reported by Michel Boaventura <michel@michelboaventura.com>.
33436
33437 2010-03-25  Bruno Haible  <bruno@clisp.org>
33438
33439         Use ANSI C.
33440         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33441
33442 2010-03-25  Bruno Haible  <bruno@clisp.org>
33443
33444         Minor formatting changes.
33445         * lib/acosl.c: Insert space before function argument list.
33446         * lib/argz.c: Likewise.
33447         * lib/asinl.c: Likewise.
33448         * lib/expl.c: Likewise.
33449         * lib/gen-uni-tables.c: Likewise.
33450         * lib/gettext.h: Likewise.
33451         * lib/glthread/lock.h: Likewise.
33452         * lib/tanl.c: Likewise.
33453         * lib/uniname/uniname.c: Likewise.
33454         * tests/test-idpriv-drop.c: Likewise.
33455         * tests/test-idpriv-droptemp.c: Likewise.
33456         * tests/test-lock.c: Likewise.
33457         * tests/test-tls.c: Likewise.
33458         * lib/argp-help.c: Insert space before function-like macro argument
33459         list.
33460         * lib/memcmp.c: Likewise.
33461         * tests/test-base64.c: Likewise.
33462         * lib/localename.c: Insert space before sizeof's argument list.
33463         * lib/safe-alloc.h: Likewise.
33464         * lib/file-set.h: Insert space before macro argument list.
33465         * tests/test-argp.c: Likewise.
33466         * lib/argp-namefrob.h: Insert space before function parameter list.
33467         * lib/getaddrinfo.c: Likewise.
33468         * lib/netdb.in.h: Likewise.
33469         * lib/parse-duration.h: Likewise.
33470         * lib/parse-duration.c: Likewise.
33471         * lib/poll.c: Likewise.
33472         * lib/select.c: Likewise.
33473         * lib/trim.h: Likewise.
33474         * tests/test-usleep.c: Likewise.
33475         * lib/ldexpl.c: Insert space before function parameter list and before
33476         function argument list.
33477         * lib/logl.c: Likewise.
33478         * lib/sqrtl.c: Likewise.
33479         * lib/trim.c: Likewise.
33480         * lib/cosl.c: Use GNU style indentation. Insert space before function
33481         argument list.
33482         * lib/sinl.c: Likewise.
33483         * lib/tsearch.c: Insert space after 'for'.
33484         Reported by Jim Meyering.
33485
33486 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33487
33488         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33489         config header before grepping, as it's not present before
33490         autoreconf/configure are run.  Reported by Simon Josefsson.
33491
33492 2010-03-23  Bruno Haible  <bruno@clisp.org>
33493
33494         pt_chown: Make it work with automake < 1.11.
33495         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33496         Reported by Simon Josefsson.
33497
33498 2010-03-23  Bruno Haible  <bruno@clisp.org>
33499
33500         pt_chown: Don't depend on GPLed modules.
33501         * lib/pt_chown.c: Don't include idpriv.h.
33502         (main): Don't drop privileges.
33503         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33504         Reported by Simon Josefsson.
33505
33506 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33507
33508         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33509         suggestions from karl@freefriends.org (Karl Berry).
33510
33511 2010-03-22  Eric Blake  <eblake@redhat.com>
33512
33513         gethostname: further tweaks
33514         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33515         are overriding gethostname.
33516         Suggested by Bruno Haible.
33517
33518 2010-03-21  Bruno Haible  <bruno@clisp.org>
33519
33520         Fix comments.
33521         * lib/forkpty.c (rpl_forkpty): Fix comment.
33522         * lib/openpty.c (rpl_openpty): Likewise.
33523         Reported by Eric Blake.
33524
33525 2010-03-22  Eric Blake  <eblake@redhat.com>
33526
33527         gethostname: fix build on mingw
33528         * lib/unistd.in.h (includes): Work around fact that mingw
33529         <winsock2.h> re-includes <unistd.h>, by avoiding any
33530         redeclarations if we are being included by <winsock2.h>.
33531         Reported by Matthias Bolte.
33532
33533 2010-03-21  Bruno Haible  <bruno@clisp.org>
33534
33535         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33536         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33537         modifications.
33538         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33539         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33540         provide the replacement.
33541         * modules/forkpty (Depends-on): Add openpty, login_tty.
33542         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33543         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33544         * doc/glibc-functions/forkpty.texi: More supported platforms.
33545         * config/srclist.txt: Add forkpty.c (commented).
33546
33547 2010-03-21  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33550         (Makefile.am): Verify that PTY_LIB is defined.
33551
33552         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33553
33554 2010-03-21  Bruno Haible  <bruno@clisp.org>
33555
33556         Tests for module 'login_tty'.
33557         * modules/login_tty-tests: New file.
33558         * tests/test-login_tty.c: New file.
33559
33560         New module 'login_tty'.
33561         * lib/login_tty.c: New file.
33562         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33563         * modules/login_tty: New file.
33564         * doc/glibc-functions/login_tty.texi: Mention the new module.
33565
33566 2010-03-21  Bruno Haible  <bruno@clisp.org>
33567
33568         login_tty: Documentation.
33569         * doc/glibc-functions/login_tty.texi: New file.
33570         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33571
33572 2010-03-21  Bruno Haible  <bruno@clisp.org>
33573
33574         pty: Consistent macro naming.
33575         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33576         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33577         * modules/pty (configure.ac): Update.
33578
33579 2010-03-21  Bruno Haible  <bruno@clisp.org>
33580
33581         Tests for openpty: Make stricter.
33582         * tests/test-openpty.c (main): Add test of canonical processing and
33583         erase.
33584         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33585
33586         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33587         * lib/openpty.c (openpty): New replacement function.
33588         * lib/pty.in.h: Include <termios.h>.
33589         (openpty): Update declaration. Add comments.
33590         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33591         is not declared, arrange to provide the replacement. Check for _getpty
33592         and posix_openpt.
33593         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33594         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33595         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33596         * modules/pty-tests (test_pty_c___LDADD): New variable.
33597         * doc/glibc-functions/openpty.texi: More supported platforms.
33598
33599 2010-03-21  Bruno Haible  <bruno@clisp.org>
33600
33601         setenv: Tweaks.
33602         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33603         the test program.
33604         * doc/posix-functions/setenv.texi: Update platforms list.
33605
33606 2010-03-21  Bruno Haible  <bruno@clisp.org>
33607
33608         New module 'unlockpt'.
33609         * lib/unlockpt.c: New file, from glibc with modifications.
33610         * m4/unlockpt.m4: New file.
33611         * modules/unlockpt: New file.
33612         * lib/stdlib.in.h (unlockpt): New declaration.
33613         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33614         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33615         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33616         HAVE_UNLOCKPT.
33617         * doc/posix-functions/unlockpt.texi: Mention the new module.
33618         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33619         * config/srclist.txt: Add unlockpt.c (commented).
33620
33621 2010-03-21  Jim Meyering  <meyering@redhat.com>
33622
33623         maint.mk: prohibit inclusion of "intprops.h" without use
33624         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33625
33626 2010-03-21  Bruno Haible  <bruno@clisp.org>
33627
33628         New module 'grantpt'.
33629         * lib/grantpt.c: New file, from glibc with modifications.
33630         * m4/grantpt.m4: New file.
33631         * modules/grantpt: New file.
33632         * lib/stdlib.in.h (grantpt): New declaration.
33633         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33634         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33635         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33636         HAVE_GRANTPT.
33637         * doc/posix-functions/grantpt.texi: Mention the new module.
33638         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33639         * config/srclist.txt: Add grantpt.c (commented).
33640
33641 2010-03-21  Bruno Haible  <bruno@clisp.org>
33642
33643         New module 'pt_chown'.
33644         * lib/pt_chown.c: New file, from glibc with modifications.
33645         * lib/pty-private.h: New file, from glibc with modifications.
33646         * modules/pt_chown: New file.
33647         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33648
33649 2010-03-21  Bruno Haible  <bruno@clisp.org>
33650
33651         Tests for module 'ptsname'.
33652         * modules/ptsname-tests: New file.
33653         * tests/test-ptsname.c: New file.
33654
33655         New module 'ptsname'.
33656         * lib/ptsname.c: New file, from glibc with modifications.
33657         * m4/ptsname.m4: New file.
33658         * modules/ptsname: New file.
33659         * lib/stdlib.in.h (ptsname): New declaration.
33660         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33661         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33662         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33663         HAVE_PTSNAME.
33664         * doc/posix-functions/ptsname.texi: Mention the new module.
33665         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33666         * config/srclist.txt: Add ptsname.c (commented).
33667
33668 2010-03-21  Bruno Haible  <bruno@clisp.org>
33669
33670         Tests for module 'ttyname_r'.
33671         * modules/ttyname_r-tests: New file.
33672         * tests/test-ttyname_r.c: New file.
33673
33674         New module 'ttyname_r'.
33675         * lib/ttyname_r.c: New file.
33676         * m4/ttyname_r.m4: New file.
33677         * modules/ttyname_r: New file.
33678         * lib/unistd.in.h (ttyname_r): New declaration.
33679         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33680         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33681         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33682         HAVE_TTYNAME_R.
33683         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33684         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33685
33686 2010-03-20  Bruno Haible  <bruno@clisp.org>
33687
33688         signal: Undefine macro definitions in C++ mode.
33689         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33690         sigfillset): Undefine macro definitions from the system header in C++
33691         mode.
33692         Reported by John W. Eaton <jwe@gnu.org>.
33693
33694 2010-03-20  Bruno Haible  <bruno@clisp.org>
33695
33696         Ensure no #include statements inside extern "C" { ... }.
33697         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33698         contain #include statements.
33699         * lib/time.in.h: Likewise.
33700
33701 2010-03-20  Bruno Haible  <bruno@clisp.org>
33702
33703         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33704         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33705         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33706         Reported by John W. Eaton <jwe@gnu.org>.
33707
33708 2010-03-20  Bruno Haible  <bruno@clisp.org>
33709
33710         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33711         Reported by Jim Meyering.
33712
33713 2010-03-20  Bruno Haible  <bruno@clisp.org>
33714
33715         pipe: Set errno upon failure.
33716         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33717         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33718         errno value in error message.
33719
33720 2010-03-20  Bruno Haible  <bruno@clisp.org>
33721             Jim Meyering  <meyering@redhat.com>
33722
33723         lchown: Avoid "unused variable" warning.
33724         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33725
33726 2010-03-20  Bruno Haible  <bruno@clisp.org>
33727
33728         Work around unlink() bug on MacOS X 10.5.6.
33729         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33730         attempting to unlink a parent directory.
33731         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33732         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33733         activate for the replacement function.
33734         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33735
33736 2010-03-20  Bruno Haible  <bruno@clisp.org>
33737
33738         Fix link errors on Solaris 8.
33739         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33740         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33741
33742 2010-03-19  Jim Meyering  <meyering@redhat.com>
33743
33744         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33745         The _LIBC implementation of build_range_exp correctly honors the
33746         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33747         However, the non-_LIBC implementation would ignore that syntax-bit
33748         flag and return REG_ERANGE unconditionally.
33749         This change makes it honor that flag.
33750         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33751         Make two pointer parameters "const".
33752         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33753         (parse_bracket_exp): Update caller.
33754
33755         regex.m4: correct the reversed range endpoint ([b-a]) test
33756         * m4/regex.m4: When requiring that [b-a] evoke failure,
33757         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33758         test pass once again for x86-based systems.
33759
33760 2010-03-19  Bruno Haible  <bruno@clisp.org>
33761
33762         scandir: Fix link error on Solaris 8.
33763         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33764         macros.
33765
33766 2010-03-19  Bruno Haible  <bruno@clisp.org>
33767
33768         getusershell: Fix documentation.
33769         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33770         module.
33771         * doc/glibc-functions/setusershell.texi: Likewise.
33772
33773         getusershell: Provide declaration, missing on Solaris 9.
33774         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33775         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33776         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33777         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33779         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33780         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33781         HAVE_GETUSERSHELL.
33782         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33783
33784 2010-03-19  Bruno Haible  <bruno@clisp.org>
33785
33786         wctype: Provide iswblank function.
33787         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33788         exists and is fine.
33789         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33790         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33791         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33792         * doc/posix-functions/iswblank.texi: Update.
33793
33794 2010-03-19  Bruno Haible  <bruno@clisp.org>
33795
33796         Tests of module 'pty' in C++ mode.
33797         * modules/pty-tests: New file.
33798         * tests/test-pty-c++.cc: New file.
33799         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33800
33801 2010-03-19  Eric Blake  <eblake@redhat.com>
33802
33803         logb: fix documentation
33804         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33805         1.5 declaration bug.
33806
33807         forkpty, openpty: prefer glibc's const-safe prototype
33808         * lib/forkpty.c (rpl_forkpty): New file.
33809         * lib/openpty.c (rpl_openpty): Likewise.
33810         * modules/forkpty (Files): Distribute it.
33811         * modules/openpty (Files): Likewise.
33812         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33813         check...
33814         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33815         replacement for for non-const BSD signature.
33816         * modules/pty (Makefile.am): Substitute witnesses.
33817         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33818         * tests/test-forkpty.c: Update signature check.
33819         * tests/test-openpty.c: Likewise.
33820         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33821         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33822
33823         forkpty, openpty: split functions into new modules
33824         * modules/pty (Makefile.am): Substitute new witnesses.
33825         (Libraries): Move library detection...
33826         * modules/forkpty: ...into new module.
33827         * modules/openpty: Another new module.
33828         * modules/pty-tests: Rename and split...
33829         * modules/forkpty-tests: ...to this...
33830         * modules/openpty-tests: ...and this.
33831         * tests/test-pty.c: Rename and split...
33832         * tests/test-forkpty.c: ...to this...
33833         * tests/test-openpty.c: ...and this.
33834         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33835         (gl_PTY): Split library searching...
33836         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33837         (gl_FORKPTY, gl_OPENPTY): New macros.
33838         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33839         * NEWS: Mention the split.
33840         * MODULES.html.sh (Misc): Document the modules.
33841         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33842         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33843
33844         pty: improve replacement header
33845         * lib/pty.in.h: New file.
33846         * modules/pty (Files): Ship it.
33847         (Makefile.am): Always build replacement.
33848         * m4/pty.m4: Rename...
33849         * m4/pty_h.m4: ...to this.
33850         (gl_PTY): Modernize setting of witness macros; update check of
33851         forkpty to take proper advantage of cache.
33852         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33853
33854         getopt: avoid compiler warning
33855         * lib/getopt.c (attribute_hidden): Remove unused macro.
33856
33857 2010-03-18  Bruno Haible  <bruno@clisp.org>
33858
33859         Fix link errors on Solaris 8.
33860         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33861         * modules/search-tests (test_search_c___LDADD): Likewise.
33862         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33863         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33864         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33865         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33866         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33867         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33868         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33869
33870 2010-03-18  Bruno Haible  <bruno@clisp.org>
33871
33872         Fix bug introduced on 2010-03-14.
33873         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33874         (gl_SPAWN_H): Require it.
33875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33876         Reported by Simon Josefsson.
33877
33878 2010-03-18  Bruno Haible  <bruno@clisp.org>
33879
33880         Fix typo introduced on 2009-12-31.
33881         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33882         posix_spawn_file_actions_adddup2.
33883
33884 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33885         and Eric Blake  <eblake@redhat.com>
33886
33887         test-vc-list-files-git: make more robust
33888         * tests/test-vc-list-files-git.sh: Unset problematic environment
33889         variables.  Chain commands together.
33890
33891 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33892
33893         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33894         `AC_CHECK_DECL' invocation.
33895
33896 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33897
33898         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33899         appears before executable statements. Suggested by Petr Sumbera
33900         <Petr.Sumbera@Sun.COM>.
33901
33902 2010-03-14  Bruno Haible  <bruno@clisp.org>
33903
33904         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33905         portability problems. Instead use a simpler test.
33906         (main): Check that invalid arguments are rejected only on Linux.
33907
33908 2010-03-14  Bruno Haible  <bruno@clisp.org>
33909
33910         Fix bug introduced on 2009-12-31.
33911         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33912         gl_PREREQ_SYS_H_WINSOCK2 always.
33913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33914         SYS_SOCKET_H variable.
33915         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33916         Update comments.
33917         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33918         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33919         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33920         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33921         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33922
33923 2010-03-14  Bruno Haible  <bruno@clisp.org>
33924
33925         Fix values returned by sinl, cosl.
33926         * lib/trigl.h: Add specification comments.
33927         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33928         that combines the values from the precomputed table with the values of
33929         the Chebyshev polynomials.
33930
33931 2010-03-14  Bruno Haible  <bruno@clisp.org>
33932
33933         Fix compilation error when modules 'posix_spawn[p]' are not used.
33934         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33935         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33936
33937 2010-03-14  Bruno Haible  <bruno@clisp.org>
33938
33939         Fix compilation error on mingw when module 'time_r' is not used.
33940         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33941         is 1.
33942         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33943         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33944         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33946
33947 2010-03-14  Bruno Haible  <bruno@clisp.org>
33948
33949         Fix compilation error with Sun C.
33950         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33951         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33952         instead of GCC specific ULONG_LONG_MAX.
33953         * lib/xstrtoll.c: Likewise.
33954         * lib/xstrtoull.c: Likewise.
33955
33956 2010-03-13  Bruno Haible  <bruno@clisp.org>
33957
33958         Allow the user to disable C++ code and tests.
33959         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33960         (gl_PROG_ANSI_CXX): Require it.
33961
33962 2010-03-13  Bruno Haible  <bruno@clisp.org>
33963
33964         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33965         cases.
33966
33967 2010-03-13  Bruno Haible  <bruno@clisp.org>
33968
33969         Test that gnulib does not break the standard C++ headers.
33970         * tests/test-locale-c++2.cc: New file.
33971         * modules/locale-tests (Files): Add it.
33972         (Makefile.am): Compile it for test-locale-c++.
33973         * tests/test-math-c++2.cc: New file.
33974         * modules/math-tests (Files): Add it.
33975         (Makefile.am): Compile it for test-math-c++.
33976         * tests/test-signal-c++2.cc: New file.
33977         * modules/signal-tests (Files): Add it.
33978         (Makefile.am): Compile it for test-signal-c++.
33979         * tests/test-stdio-c++2.cc: New file.
33980         * modules/stdio-tests (Files): Add it.
33981         (Makefile.am): Compile it for test-stdio-c++.
33982         * tests/test-stdlib-c++2.cc: New file.
33983         * modules/stdlib-tests (Files): Add it.
33984         (Makefile.am): Compile it for test-stdlib-c++.
33985         * tests/test-string-c++2.cc: New file.
33986         * modules/string-tests (Files): Add it.
33987         (Makefile.am): Compile it for test-string-c++.
33988         * tests/test-time-c++2.cc: New file.
33989         * modules/time-tests (Files): Add it.
33990         (Makefile.am): Compile it for test-time-c++.
33991         Reported by John W. Eaton <jwe@gnu.org>.
33992
33993 2010-03-13  Bruno Haible  <bruno@clisp.org>
33994
33995         * gnulib-tool (func_usage): Clarify which options are available for
33996         --create-testdir and --create-megatestdir.
33997
33998 2010-03-13  Bruno Haible  <bruno@clisp.org>
33999
34000         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34001         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34002         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34003         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34004         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34005         when appropriate.
34006         Reported by Jim Meyering.
34007
34008 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34009
34010         * gnulib-tool (func_import): Explain origin of code.
34011
34012 2010-03-12  Bruno Haible  <bruno@clisp.org>
34013
34014         Fix problem with automake's definition of CXXLINK.
34015         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34016         Reported by Simon Josefsson and Ludovic Courtès.
34017
34018 2010-03-12  Bruno Haible  <bruno@clisp.org>
34019
34020         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34021         stable releases.
34022
34023 2010-03-11  Bruno Haible  <bruno@clisp.org>
34024
34025         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34026         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34027         whether the system provides one variant or multiple variants of the
34028         function.
34029         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34030         C++ compilers.
34031         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34032         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34033         Reported by Jim Meyering.
34034
34035 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34036
34037         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34038
34039 2010-03-08  Bruno Haible  <bruno@clisp.org>
34040
34041         gnulib-tool: Add support for --libtool in --create-testdir.
34042         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34043         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34044
34045 2010-03-08  Eric Blake  <eblake@redhat.com>
34046
34047         gnulib-tool.texi: mention possibility of git submodule
34048         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34049         submodules.
34050         * doc/.gitignore: Ignore another generated file.
34051
34052 2010-03-08  Karl Berry  <karl@gnu.org>
34053
34054         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34055         of committing gnulib files while skipping others.
34056
34057 2010-03-07  Bruno Haible  <bruno@clisp.org>
34058
34059         Tests of module 'wctype' in C++ mode.
34060         * tests/test-wctype-c++.cc: New file.
34061         * modules/wctype-tests (Files): Add it and tests/signature.h.
34062         (Depends-on): Add ansi-c++-opt.
34063         (Makefile.am): Arrange to compile and run test-wctype-c++.
34064
34065         Tests of module 'wchar' in C++ mode.
34066         * tests/test-wchar-c++.cc: New file.
34067         * modules/wchar-tests (Files): Add it and tests/signature.h.
34068         (Depends-on): Add ansi-c++-opt.
34069         (Makefile.am): Arrange to compile and run test-wchar-c++.
34070         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34071         gl_MODULE_INDICATOR.
34072
34073         Tests of module 'unistd' in C++ mode.
34074         * tests/test-unistd-c++.cc: New file.
34075         * modules/unistd-tests (Files): Add it and tests/signature.h.
34076         (Depends-on): Add ansi-c++-opt.
34077         (Makefile.am): Arrange to compile and run test-unistd-c++.
34078         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34079         gl_MODULE_INDICATOR.
34080
34081         Tests of module 'time' in C++ mode.
34082         * tests/test-time-c++.cc: New file.
34083         * modules/time-tests (Files): Add it and tests/signature.h.
34084         (Depends-on): Add ansi-c++-opt.
34085         (Makefile.am): Arrange to compile and run test-time-c++.
34086         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34087
34088         Tests of module 'sys_time' in C++ mode.
34089         * tests/test-sys_time-c++.cc: New file.
34090         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34091         (Depends-on): Add ansi-c++-opt.
34092         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34093         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34094         gl_MODULE_INDICATOR.
34095
34096         Tests of module 'sys_stat' in C++ mode.
34097         * tests/test-sys_stat-c++.cc: New file.
34098         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34099         (Depends-on): Add ansi-c++-opt.
34100         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34101         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34102         gl_MODULE_INDICATOR.
34103
34104         Tests of module 'sys_socket' in C++ mode.
34105         * tests/test-sys_socket-c++.cc: New file.
34106         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34107         (Depends-on): Add ansi-c++-opt.
34108         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34109         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34110         gl_MODULE_INDICATOR.
34111
34112         Tests of module 'sys_select' in C++ mode.
34113         * tests/test-sys_select-c++.cc: New file.
34114         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34115         (Depends-on): Add ansi-c++-opt.
34116         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34117         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34118         gl_MODULE_INDICATOR.
34119
34120         Tests of module 'sys_ioctl' in C++ mode.
34121         * tests/test-sys_ioctl-c++.cc: New file.
34122         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34123         (Depends-on): Add ansi-c++-opt.
34124         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34125         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34126         gl_MODULE_INDICATOR.
34127
34128         Tests of module 'string' in C++ mode.
34129         * tests/test-string-c++.cc: New file.
34130         * modules/string-tests (Files): Add it and tests/signature.h.
34131         (Depends-on): Add ansi-c++-opt.
34132         (Makefile.am): Arrange to compile and run test-string-c++.
34133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34134         gl_MODULE_INDICATOR.
34135
34136         Tests of module 'stdlib' in C++ mode.
34137         * tests/test-stdlib-c++.cc: New file.
34138         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34139         (Depends-on): Add ansi-c++-opt.
34140         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34141         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34142         gl_MODULE_INDICATOR.
34143
34144         Tests of module 'stdio' in C++ mode.
34145         * tests/test-stdio-c++.cc: New file.
34146         * modules/stdio-tests (Files): Add it and tests/signature.h.
34147         (Depends-on): Add ansi-c++-opt.
34148         (Makefile.am): Arrange to compile and run test-stdio-c++.
34149         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34150         gl_MODULE_INDICATOR.
34151
34152         Tests of module 'spawn' in C++ mode.
34153         * tests/test-spawn-c++.cc: New file.
34154         * modules/spawn-tests (Files): Add it and tests/signature.h.
34155         (Depends-on): Add ansi-c++-opt.
34156         (Makefile.am): Arrange to compile and run test-spawn-c++.
34157         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34158         gl_MODULE_INDICATOR.
34159
34160         Tests of module 'signal' in C++ mode.
34161         * tests/test-signal-c++.cc: New file.
34162         * modules/signal-tests (Files): Add it and tests/signature.h.
34163         (Depends-on): Add ansi-c++-opt.
34164         (Makefile.am): Arrange to compile and run test-signal-c++.
34165         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34166         gl_MODULE_INDICATOR.
34167
34168         Tests of module 'search' in C++ mode.
34169         * tests/test-search-c++.cc: New file.
34170         * modules/search-tests (Files): Add it and tests/signature.h.
34171         (Depends-on): Add ansi-c++-opt.
34172         (Makefile.am): Arrange to compile and run test-search-c++.
34173         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34174         gl_MODULE_INDICATOR.
34175
34176         Tests of module 'math' in C++ mode.
34177         * tests/test-math-c++.cc: New file.
34178         * modules/math-tests (Files): Add it and tests/signature.h.
34179         (Depends-on): Add ansi-c++-opt.
34180         (Makefile.am): Arrange to compile and run test-math-c++.
34181         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34182
34183         Tests of module 'locale' in C++ mode.
34184         * tests/test-locale-c++.cc: New file.
34185         * modules/locale-tests (Files): Add it and tests/signature.h.
34186         (Depends-on): Add ansi-c++-opt.
34187         (Makefile.am): Arrange to compile and run test-locale-c++.
34188         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34189         gl_MODULE_INDICATOR.
34190
34191         Tests of module 'langinfo' in C++ mode.
34192         * tests/test-langinfo-c++.cc: New file.
34193         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34194         (Depends-on): Add ansi-c++-opt.
34195         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34196         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34197         gl_MODULE_INDICATOR.
34198
34199         Tests of module 'iconv-h' in C++ mode.
34200         * tests/test-iconv-h-c++.cc: New file.
34201         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34202         (Depends-on): Add ansi-c++-opt.
34203         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34204
34205         Tests of module 'glob' in C++ mode.
34206         * tests/test-glob-c++.cc: New file.
34207         * modules/glob-tests (Files): Add it.
34208         (Depends-on): Add ansi-c++-opt.
34209         (Makefile.am): Arrange to compile and run test-glob-c++.
34210
34211         Tests of module 'fcntl-h' in C++ mode.
34212         * tests/test-fcntl-h-c++.cc: New file.
34213         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34214         (Depends-on): Add ansi-c++-opt.
34215         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34216         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34217         gl_MODULE_INDICATOR.
34218
34219         Tests of module 'dirent' in C++ mode.
34220         * tests/test-dirent-c++.cc: New file.
34221         * modules/dirent-tests (Files): Add it and tests/signature.h.
34222         (Depends-on): Add ansi-c++-opt.
34223         (Makefile.am): Arrange to compile and run test-dirent-c++.
34224         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34225         gl_MODULE_INDICATOR.
34226
34227         New module 'ansi-c++-opt'.
34228         * modules/ansi-c++-opt: New file.
34229         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34230
34231         Document C++ namespace mode.
34232         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34233
34234         wctype: Avoid #define replacements in C++ mode.
34235         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34236         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34237         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34238         In C++, define a namespaced alias symbol.
34239         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34240         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34241         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34242         rule.
34243
34244         wchar: Avoid #define replacements in C++ mode.
34245         * lib/wchar.in.h: Include c++defs.h.
34246         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34247         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34248         symbol.
34249         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34250         * modules/wchar (Depends-on): Add c++defs.
34251         (Makefile.am): Update wchar.h rule.
34252
34253         unistd: Avoid #define replacements in C++ mode.
34254         * lib/unistd.in.h: Include c++defs.h.
34255         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34256         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34257         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34258         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34259         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34260         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34261         symbol.
34262         (environ): Update.
34263         * modules/unistd (Depends-on): Add c++defs.
34264         (Makefile.am): Update unistd.h rule.
34265
34266         time: Avoid #define replacements in C++ mode.
34267         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34268         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34269         define a namespaced alias symbol.
34270         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34271         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34272         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34273         * modules/time (Depends-on): Add c++defs, warn-on-use.
34274         (Makefile.am): Update time.h rule.
34275         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34276         * modules/nanosleep (configure.ac): Likewise.
34277         * modules/strptime (configure.ac): Likewise.
34278         * modules/timegm (configure.ac): Likewise.
34279
34280         sys_time: Avoid #define replacements in C++ mode.
34281         * lib/sys_time.in.h: Include c++defs.h.
34282         (gettimeofday): In C++, define a namespaced alias symbol.
34283         * modules/sys_time (Depends-on): Add c++defs.
34284         (Makefile.am): Update sys/time.h rule.
34285
34286         sys_stat: Avoid #define replacements in C++ mode.
34287         * lib/sys_stat.in.h: Include c++defs.h.
34288         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34289         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34290         namespaced alias symbol.
34291         In C++, define a namespaced alias symbol.
34292         * modules/sys_stat (Depends-on): Add c++defs.
34293         (Makefile.am): Update sys/stat.h rule.
34294
34295         sys_socket: Avoid #define replacements in C++ mode.
34296         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34297         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34298         definitions also when the system has a <sys/socket.h>.
34299         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34300         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34301         In C++, define a namespaced alias symbol.
34302         * modules/sys_socket (Depends-on): Add c++defs.
34303         (Makefile.am): Update sys/socket.h rule.
34304
34305         sys_select: Avoid #define replacements in C++ mode.
34306         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34307         definitions also when the system has a <sys/select.h>.
34308         (select): In C++, define a namespaced alias symbol.
34309         * modules/sys_select (Depends-on): Add c++defs.
34310         (Makefile.am): Update sys/select.h rule.
34311
34312         sys_ioctl: Avoid #define replacements in C++ mode.
34313         * lib/sys_ioctl.in.h: Include c++defs.h.
34314         (ioctl): In C++, define a namespaced alias symbol.
34315         * modules/sys_ioctl (Depends-on): Add c++defs.
34316         (Makefile.am): Update sys/ioctl.h rule.
34317
34318         string: Avoid #define replacements in C++ mode.
34319         * lib/string.in.h: Include c++defs.h.
34320         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34321         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34322         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34323         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34324         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34325         * modules/string (Depends-on): Add c++defs.
34326         (Makefile.am): Update string.h rule.
34327
34328         stdlib: Avoid #define replacements in C++ mode.
34329         * lib/stdlib.in.h: Include c++defs.h.
34330         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34331         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34332         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34333         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34334         symbol.
34335         * modules/stdlib (Depends-on): Add c++defs.
34336         (Makefile.am): Update stdlib.h rule.
34337
34338         stdio: Avoid #define replacements in C++ mode.
34339         * lib/stdio.in.h: Include c++defs.h.
34340         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34341         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34342         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34343         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34344         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34345         namespaced alias symbol.
34346         * modules/stdio (Depends-on): Add c++defs.
34347         (Makefile.am): Update stdio.h rule.
34348
34349         spawn: Avoid #define replacements in C++ mode.
34350         * lib/spawn.in.h: Include c++defs.h.
34351         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34352         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34353         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34354         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34355         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34356         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34357         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34358         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34359         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34360         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34361         In C++, define a namespaced alias symbol.
34362         * modules/spawn (Depends-on): Add c++defs.
34363         (Makefile.am): Update spawn.h rule.
34364
34365         signal: Avoid #define replacements in C++ mode.
34366         * lib/signal.in.h: Include c++defs.h.
34367         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34368         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34369         namespaced alias symbol.
34370         * modules/signal (Depends-on): Add c++defs.
34371         (Makefile.am): Update signal.h rule.
34372
34373         search: Avoid #define replacements in C++ mode.
34374         * lib/search.in.h: Include c++defs.h.
34375         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34376         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34377         symbol.
34378         * modules/search (Depends-on): Add c++defs.
34379         (Makefile.am): Update search.h rule.
34380
34381         math: Avoid #define replacements in C++ mode.
34382         * lib/math.in.h: Include c++defs.h.
34383         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34384         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34385         trunc, truncl): In C++, define a namespaced alias symbol.
34386         * modules/math (Depends-on): Add c++defs.
34387         (Makefile.am): Update math.h rule.
34388
34389         locale: Avoid #define replacements in C++ mode.
34390         * lib/locale.in.h: Include c++defs.h.
34391         (duplocale): In C++, define a namespaced alias symbol.
34392         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34393         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34394         * modules/locale (Depends-on): Add c++defs.
34395         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34396
34397         langinfo: Avoid #define replacements in C++ mode.
34398         * lib/langinfo.in.h: Include c++defs.h.
34399         (nl_langinfo): In C++, define a namespaced alias symbol.
34400         * modules/langinfo (Depends-on): Add c++defs.
34401         (Makefile.am): Update langinfo.h rule.
34402
34403         iconv-h: Avoid #define replacements in C++ mode.
34404         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34405         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34406         symbol.
34407         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34408         whenever iconv is present.
34409         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34410         (Makefile.am): Update iconv.h rule.
34411
34412         glob: Avoid #define replacements in C++ mode.
34413         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34414         (_gl_glob_errfunc_fn): New type.
34415         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34416         symbol.
34417         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34418         (Makefile.am): Update glob.h rule.
34419
34420         fcntl-h: Avoid #define replacements in C++ mode.
34421         * lib/fcntl.in.h: Include c++defs.h.
34422         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34423         * modules/fcntl-h (Depends-on): Add c++defs.
34424         (Makefile.am): Update fcntl.h rule.
34425
34426         dirent: Avoid #define replacements in C++ mode.
34427         * lib/dirent.in.h: Include c++defs.h.
34428         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34429         namespaced alias symbol.
34430         (dirfd): Update declaration.
34431         * modules/dirent (Depends-on): Add c++defs.
34432         (Makefile.am): Update dirent.h rule.
34433
34434         ctype: Make it usable in C++ code.
34435         * lib/ctype.in.h: Include c++defs.h.
34436         (isblank): Declare as extern "C".
34437         * modules/ctype (Depends-on): Add c++defs.
34438         (Makefile.am): Update ctype.h rule.
34439
34440         New module 'c++defs'.
34441         * modules/c++defs: New file.
34442         * build-aux/c++defs.h: New file.
34443         Reported by John W. Eaton <jwe@gnu.org>.
34444
34445 2010-03-07  Bruno Haible  <bruno@clisp.org>
34446
34447         logb: Provide missing declaration for Cygwin.
34448         * lib/math.in.h (logb): New declaration.
34449         * m4/logb.m4: New file.
34450         * modules/logb (Files): Add m4/logb.m4.
34451         (Depends-on): Add math.
34452         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34453         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34455         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34456         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34457
34458 2010-03-07  Bruno Haible  <bruno@clisp.org>
34459
34460         Fix test-cond link error.
34461         * tests/test-cond.c: Include <stdio.h>.
34462
34463 2010-03-07  Bruno Haible  <bruno@clisp.org>
34464
34465         Fix test-dirent-safer link error.
34466         * modules/dirent-safer-tests (Makefile.am): Define
34467         test_dirent_safer_LDADD.
34468
34469 2010-03-07  Bruno Haible  <bruno@clisp.org>
34470
34471         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34472         among default module list.
34473
34474 2010-03-07  Bruno Haible  <bruno@clisp.org>
34475
34476         Fix link error on platforms with GNU libiconv.
34477         * modules/unistr/u8-strcoll-tests (Makefile): Define
34478         test_u8_strcoll_LDADD.
34479         * modules/unistr/u16-strcoll-tests (Makefile): Define
34480         test_u16_strcoll_LDADD.
34481         * modules/unistr/u32-strcoll-tests (Makefile): Define
34482         test_u32_strcoll_LDADD.
34483
34484 2010-03-07  Bruno Haible  <bruno@clisp.org>
34485
34486         Use POSIX declarations for socket functions.
34487         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34488         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34489         rpl_sendto): Change declaration to match POSIX.
34490         * lib/connect.c (rpl_connect): Likewise.
34491         * lib/accept.c (rpl_accept): Likewise.
34492         * lib/bind.c (rpl_bind): Likewise.
34493         * lib/getpeername.c (rpl_getpeername): Likewise.
34494         * lib/getsockname.c (rpl_getsockname): Likewise.
34495         * lib/recv.c (rpl_recv): Likewise.
34496         * lib/send.c (rpl_send): Likewise.
34497         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34498         * lib/sendto.c (rpl_sendto): Likewise.
34499
34500 2010-03-06  Bruno Haible  <bruno@clisp.org>
34501
34502         Clarify access, euidaccess, faccessat.
34503         * doc/posix-functions/faccessat.texi: Mention security problem under
34504         "Other problems", not "Portability problems".
34505         * doc/posix-functions/access.texi: Likewise. Mention a related security
34506         problem.
34507         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34508         * lib/euidaccess.c: Add comments about platforms.
34509         * lib/unistd.in.h (access, euidaccess): Add warnings.
34510
34511 2010-03-07  Bruno Haible  <bruno@clisp.org>
34512
34513         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34514         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34515         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34516         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34517         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34518         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34519         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34520         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34521         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34522         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34523         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34524         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34525         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34526         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34527         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34528         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34529         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34530         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34531         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34532         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34533         Likewise.
34534         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34535         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34536         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34537         Likewise.
34538         * tests/test-spawn.c (main): Make it work when
34539         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34540
34541 2010-03-07  Bruno Haible  <bruno@clisp.org>
34542
34543         Fix incorrect Makefile.am generation in German locale.
34544         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34545         Execute sed command with character range in C locale.
34546
34547 2010-03-06  Bruno Haible  <bruno@clisp.org>
34548
34549         Tests for module 'iconv-h'.
34550         * modules/iconv-h-tests: New file.
34551         * tests/test-iconv-h.c: New file.
34552
34553         New module 'iconv-h'.
34554         * modules/iconv-h: New file.
34555         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34556         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34557         (configure.ac): Remove gl_ICONV_H.
34558         (Makefile.am): Remove rule for iconv.h.
34559
34560 2010-03-06  Bruno Haible  <bruno@clisp.org>
34561
34562         More consistent naming of *.m4 files.
34563         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34564         * modules/wctype (Files): Update.
34565
34566         More consistent naming of *.m4 files.
34567         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34568         * modules/wchar (Files): Update.
34569
34570 2010-03-06  Jim Meyering  <meyering@redhat.com>
34571
34572         euidaccess: relax license to LGPLv2+
34573         * modules/euidaccess (License): Relax to LGPLv2+.
34574
34575 2010-03-06  Bruno Haible  <bruno@clisp.org>
34576
34577         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34578         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34579         (Makefile.am): Augment lib_SOURCES instead.
34580
34581 2010-03-04  Jim Meyering  <meyering@redhat.com>
34582
34583         utime: remove obsolete module
34584         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34585         unnecessary for years, and has been marked as obsolete for 10 months.
34586         * modules/utime: Remove file.
34587         * lib/utime.c: Remove file.
34588         * m4/utime.m4: Remove file.
34589         * m4/utimes-null.m4: Remove file.
34590         * doc/posix-functions/utime.texi (utime): Remove reference to
34591         the module.  Move the sole "fixed by gnulib" item into the
34592         "problems not fixed by Gnulib" list.
34593         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34594
34595 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34596
34597         * modules/exit (License): Relax license to LGPLv2+.
34598         (Status): Mark as obsolete.
34599         * NEWS: Mention deprecated 'exit' module.
34600         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34601         of now obsolete 'exit'.
34602
34603 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34604
34605         fts-lgpl: remove unused module
34606         * modules/fts-lgpl: Remove.
34607         * MODULES.html.sh (func_all_modules): Adjust.
34608         * check-module (find_included_lib_files): Adjust.
34609         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34610
34611 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34612
34613         copy-acl: enhance Solaris ACL error handling
34614         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34615         * lib/set-mode-acl.c (qset_acl): Likewise.
34616
34617 2010-03-02  Bruno Haible  <bruno@clisp.org>
34618
34619         spawn: Don't override the system defined values on FreeBSD 8.
34620         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34621         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34622         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34623         if HAVE_POSIX_SPAWN is 1.
34624         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34625
34626 2010-03-01  Bruno Haible  <bruno@clisp.org>
34627
34628         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34629         regarding Automake.
34630
34631 2010-02-25  Bruno Haible  <bruno@clisp.org>
34632
34633         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34634         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34635         setting, not afterwards.
34636         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34637
34638 2010-02-24  Eric Blake  <eblake@redhat.com>
34639
34640         bootstrap, git-version-gen: use timestamp
34641         * build-aux/git-version-gen (scriptversion): Force UTC.
34642         * build-aux/bootstrap (scriptversion): New variable.
34643
34644         bootstrap: allow older git
34645         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34646         older than 1.6.4.  Requested by the libvirt project.
34647
34648 2010-02-23  Eric Blake  <eblake@redhat.com>
34649
34650         warn-on-use: work with old autoconf
34651         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34652         AS_VAR semantics of autoconf 2.60.
34653         Reported by Bruno Haible.
34654
34655         bootstrap: improve some comments
34656         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34657         clarification comments.
34658
34659         gettimeofday: provide correct function
34660         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34661         when replacement is declared, otherwise provide gettimeofday.
34662         Reported by Michael Goffioul.
34663
34664 2010-02-23  Jim Meyering  <meyering@redhat.com>
34665
34666         lib-ignore: relax license to "unlimited", not LGPLv2+
34667         * modules/lib-ignore (License): Relax to "unlimited".
34668
34669 2010-02-23  Jim Meyering  <meyering@redhat.com>
34670
34671         lib-ignore: relax license to LGPLv2+
34672         * modules/lib-ignore (License): Relax to LGPLv2+.
34673
34674 2010-02-22  Eric Blake  <eblake@redhat.com>
34675
34676         lseek: avoid bash 3.2 broken pipe bug
34677         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34678         warning from bash 3.2.
34679         Reported by Ben Pfaff, with analysis from Bruno Haible.
34680
34681         bootstrap: support non-FSF copyright holder
34682         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34683         bootstrap.conf override of COPYRIGHT_HOLDER.
34684         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34685
34686         bootstrap: interoperate with gettext 0.14.1
34687         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34688
34689         bootstrap: allow for alternate submodule location
34690         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34691         hardcoding submodule location.
34692         (gnulib_mk): Allow direct use of Makefile.am.
34693
34694         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34695         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34696         rather than reconfiguring where the submodule points.
34697
34698         gettimeofday: restore support for platforms that lack function
34699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34700         replacement if function is missing.
34701         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34702         * modules/sys_time (Makefile.am): Substitute it.
34703         * lib/sys_time.in.h (gettimeofday): Check it.
34704         Reported by Michael Goffioul.
34705
34706 2010-02-21  Bruno Haible  <bruno@clisp.org>
34707
34708         * lib/stdio.in.h (obstack_printf): Fix typo.
34709
34710 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34711
34712         vc-list-files: use bzr ls's -R option
34713         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34714         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34715
34716 2010-02-21  Jim Meyering  <meyering@redhat.com>
34717
34718         init.sh: fix EXEEXT shims to work also for names like test-prog
34719         * tests/init.sh: Re-exec a better shell, when needed.
34720         If the current shell lacks support for posix $(...), an init.sh-using
34721         test will now try to find a shell that supports that.  If EXEEXT is
34722         nonempty, we also require support for hyphen-in-alias-name and shell
34723         substitutions like ${var#glob}.  Failure to find such a shell results
34724         in a skipped test.
34725
34726 2010-02-21  Bruno Haible  <bruno@clisp.org>
34727
34728         Really work around around "broken pipe" error message from bash 3.2.
34729         * gnulib-tool (func_reset_sigpipe): Remove function.
34730         (echo): In bash 3.2, define to a function that uses printf.
34731         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34732
34733 2010-02-20  Bruno Haible  <bruno@clisp.org>
34734
34735         Restore support for automake 1.9.6 with autoconf 2.61.
34736         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34737         Reported by James Youngman <jay@gnu.org>.
34738
34739 2010-02-20  Bruno Haible  <bruno@clisp.org>
34740
34741         Improve *printf warning condition.
34742         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34743         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34744         and the function is overridden due to SIGPIPE emulation.
34745
34746 2010-02-20  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/stdio.in.h: Tweak comments.
34749
34750 2010-02-19  Bruno Haible  <bruno@clisp.org>
34751
34752         Make it easier to find modules. New gnulib-tool option '--find'.
34753         * gnulib-tool: New option --find.
34754         (func_usage): Document it.
34755         (func_sanitize_modulelist): New function, extracted from
34756         func_all_modules.
34757         (func_all_modules): Invoke it.
34758         * doc/gnulib-tool.texi (Which modules?): New node.
34759
34760 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34761
34762         * lib/sys_select.in.h: Provide select replacement even if
34763         sys/select.h exists on a system, for Interix.
34764
34765 2010-02-18  Jim Meyering  <meyering@redhat.com>
34766
34767         init.sh: don't use $(...) just yet
34768         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34769         to accommodate e.g., Solaris' /bin/sh.
34770
34771 2010-02-17  Bruno Haible  <bruno@clisp.org>
34772
34773         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34774         Reported by Ludovic Courtès <ludo@gnu.org>.
34775
34776 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34777
34778         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34779         linking with -lintl.
34780
34781 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34782
34783         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34784         if not provided by the system's netdb.h.  Reported by
34785         ludo@gnu.org (Ludovic Courtès).
34786
34787 2010-02-15  Jim Meyering  <meyering@redhat.com>
34788
34789         init.sh: improve portability and efficiency
34790         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34791         "dummy" in a for loop.
34792         Use '!', not '^' to select the complement of a character set used
34793         in a "case" statement.
34794         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34795         Suggestions from Eric Blake.
34796
34797         init.sh: automatically accommodate programs with the .exe suffix
34798         Automatically arrange for an invocation of "prog" to execute the
34799         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34800         may use the simpler "prog", yet still work when built on a system
34801         that requires specifying the added suffix.
34802         Do this by constructing a function named "prog" that invokes
34803         "prog.exe" for each .exe file in selected directories.
34804         * tests/init.sh (find_exe_basenames_): New function.
34805         (create_exe_shim_functions_): New function.
34806         (path_prepend_): Use it.
34807
34808         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34809         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34810         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34811
34812 2010-02-14  Jim Meyering  <meyering@redhat.com>
34813
34814         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34815         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34816         (sc_prohibit_hash_pjw_without_use): New rule.
34817
34818         maint.mk: allow the default upload destination dir to be overridden
34819         * top/maint.mk (upload_dest_dir_): Define with a default that
34820         preserves the status quo.
34821         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34822         Reported by Peter Simons.
34823
34824         maint.mk: prohibit inclusion of "hash.h" without_use
34825         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34826
34827 2010-02-10  Jim Meyering  <meyering@redhat.com>
34828
34829         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34830         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34831
34832 2010-02-09  Eric Blake  <ebb9@byu.net>
34833         and Bruno Haible  <bruno@clisp.org>
34834
34835         obstack-printf-posix: ensure declaration
34836         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34837         extracted from gl_FUNC_OBSTACK_PRINTF.
34838         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34839         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34840         Likewise.
34841         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34842         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34843         0.
34844
34845 2010-02-08  Bruno Haible  <bruno@clisp.org>
34846
34847         gnulib-tool: Fix typo in 2010-02-07 commit.
34848         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34849         Reported by Eric Blake.
34850
34851 2010-02-07  Bruno Haible  <bruno@clisp.org>
34852
34853         gnulib-tool: Fix up caching patches.
34854         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34855         option --no-cache. Use associative arrays when supported by the shell.
34856         (sed_comments): New variable.
34857         (modcache): Renamed from do_cache.
34858         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34859         abbreviate unnecessarily.
34860         (have_associative): New variable.
34861         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34862         way also for ksh and zsh.
34863         (func_init_sed_convert_to_cache_statements): New function, extracted
34864         from func_cache_lookup_module. Add support for associative arrays.
34865         Don't set the c_MODULE_cached variable here. Ignore all lines before
34866         the first field header. Remove only the final newline, not all trailing
34867         newlines. Support empty fields correctly. Limit the use of 'eval' to
34868         assignments.
34869         (func_get_description, func_get_status, func_get_notice,
34870         func_get_applicability, func_get_filelist, func_get_dependencies,
34871         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34872         func_get_automake_snippet, func_get_include_directive,
34873         func_get_link_directive, func_get_license, func_get_maintainer):
34874         Update documentation. List the unoptimized code first. Add support for
34875         associative arrays. Limit the use of 'eval' to assignments.
34876         (func_get_applicability): Undo stylistic pessimisations.
34877         (func_get_automake_snippet, func_get_include_directive): Reduce code
34878         duplication.
34879         (func_modules_transitive_closure, func_modules_add_dummy,
34880         func_modules_notice, func_modules_to_filelist, func_add_file,
34881         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34882         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34883         func_create_testdir, func_create_megatestdir): Update documentation.
34884
34885 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34886
34887         * gnulib-tool (func_cache_lookup_module): Store the module name
34888         belonging to the cache variable; error out if two different
34889         module names map to the same cache variable name.
34890
34891 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34892
34893         gnulib-tool: Make caching optional.
34894         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34895         Update matching short versions of --no-changelog.
34896         (func_usage): Update.
34897         (sed_extract_cache_prog): Renamed from ...
34898         (sed_extract_prog): ... this; revert to old extraction script.
34899         (func_get_description, func_get_status)
34900         (func_get_notice, func_get_applicability, func_get_filelist)
34901         (func_get_dependencies, func_get_autoconf_early_snippet)
34902         (func_get_autoconf_snippet, func_get_automake_snippet)
34903         (func_get_include_directive, func_get_link_directive)
34904         (func_get_license, func_get_maintainer): If $do_cache is false,
34905         use old, non-caching extraction scripts.
34906         Suggestion by Bruno Haible.
34907
34908 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34909
34910         gnulib-tool: cache module metainformation.
34911         * gnulib-tool (sed_extract_prog): Match newline before each
34912         header, and rewrite header to a shell variable suffix.
34913         (func_cache_var, func_cache_lookup_module): New functions,
34914         to turn a module name into a cache variable prefix, and to
34915         look up and cache module metainformation.
34916         (func_get_description, func_get_status)
34917         (func_get_notice, func_get_applicability, func_get_filelist)
34918         (func_get_dependencies, func_get_autoconf_early_snippet)
34919         (func_get_autoconf_snippet, func_get_automake_snippet)
34920         (func_get_include_directive, func_get_link_directive)
34921         (func_get_license, func_get_maintainer): Use
34922         func_cache_lookup_module.
34923
34924 2010-02-07  Bruno Haible  <bruno@clisp.org>
34925
34926         fnctl: Fix missing dependency.
34927         * modules/fcntl (Depends-on): Add getdtablesize.
34928         Reported by John W. Eaton <jwe@gnu.org>.
34929
34930 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34931
34932         Argp: fix recognition of short alias options.
34933
34934         * lib/argp-parse.c (convert_options): Fix improper use of
34935         `|' between character values.
34936         * tests/test-argp.c (group1_option): New alias option
34937         --read (-r).
34938         (group1_parser): Special handling for 'r'.
34939         (test15): New test case.
34940         (test_fun): Add test15.
34941         * tests/test-argp-2.sh: Update expected --help and --usage
34942         outputs.
34943
34944 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34945
34946         * tests/test-argp.c: Fix indentation.
34947
34948 2010-02-04  Eric Blake  <ebb9@byu.net>
34949
34950         gettimeofday: expose type of second argument
34951         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34952         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34953         * tests/test-gettimeofday.c: Use it to silence warning.
34954         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34955         the issue.
34956
34957 2010-02-03  Jim Meyering  <meyering@redhat.com>
34958
34959         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34960         * lib/regcomp.c (TYPE_SIGNED): Define.
34961         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34962
34963         regcomp.c: avoid a new -Wshadow warning
34964         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34965
34966 2010-02-01  Jim Meyering  <meyering@redhat.com>
34967
34968         removing useless parentheses in cpp #define directives
34969         For motivation, see commit c0221df4, "define STREQ(a,b)
34970         consistently, removing useless parentheses"
34971         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34972         * lib/mountlist.c (MNT_IGNORE): Likewise.
34973         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34974
34975 2010-02-01  Eric Blake  <ebb9@byu.net>
34976
34977         sys_time: use link-warning
34978         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34979         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34980         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34981         * modules/sys_time (Depends-on): Add warn-on-use.
34982         (Makefile.am): Always build replacement.
34983         (configure.ac): Update substitutions.
34984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34985         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34986         bother with SYS_TIME_H.
34987         * modules/gettimeofday (configure.ac): Declare indicator.
34988         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34989         in use.
34990
34991         closein-tests: silence compiler warning
34992         * tests/test-closein.c (main): Ignore fread result.
34993         * modules/closein-tests (Depends-on): Add ignore-value.
34994
34995         tests: silence warning about system return
34996         * tests/test-areadlink-with-size.c (main): Ignore system result.
34997         * tests/test-areadlink.c (main): Likewise.
34998         * tests/test-areadlinkat-with-size.c (main): Likewise.
34999         * tests/test-areadlinkat.c (main): Likewise.
35000         * tests/test-canonicalize-lgpl.c (main): Likewise.
35001         * tests/test-canonicalize.c (main): Likewise.
35002         * tests/test-chown.c (main): Likewise.
35003         * tests/test-fchownat.c (main): Likewise.
35004         * tests/test-fdutimensat.c (main): Likewise.
35005         * tests/test-fstatat.c (main): Likewise.
35006         * tests/test-futimens.c (main): Likewise.
35007         * tests/test-lchown.c (main): Likewise.
35008         * tests/test-link.c (main): Likewise.
35009         * tests/test-linkat.c (main): Likewise.
35010         * tests/test-lstat.c (main): Likewise.
35011         * tests/test-mkdir.c (main): Likewise.
35012         * tests/test-mkdirat.c (main): Likewise.
35013         * tests/test-mkfifo.c (main): Likewise.
35014         * tests/test-mkfifoat.c (main): Likewise.
35015         * tests/test-mknod.c (main): Likewise.
35016         * tests/test-readlink.c (main): Likewise.
35017         * tests/test-remove.c (main): Likewise.
35018         * tests/test-rename.c (main): Likewise.
35019         * tests/test-renameat.c (main): Likewise.
35020         * tests/test-rmdir.c (main): Likewise.
35021         * tests/test-symlink.c (main): Likewise.
35022         * tests/test-symlinkat.c (main): Likewise.
35023         * tests/test-unlink.c (main): Likewise.
35024         * tests/test-unlinkat.c (main): Likewise.
35025         * tests/test-utimens.c (main): Likewise.
35026         * tests/test-utimensat.c (main): Likewise.
35027         * modules/areadlink-tests (Depends-on): Add ignore-value.
35028         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35029         * modules/areadlinkat-tests (Depends-on): Likewise.
35030         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35031         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35032         * modules/canonicalize-tests (Depends-on): Likewise.
35033         * modules/chown-tests (Depends-on): Likewise.
35034         * modules/fdutimensat-tests (Depends-on): Likewise.
35035         * modules/futimens-tests (Depends-on): Likewise.
35036         * modules/lchown-tests (Depends-on): Likewise.
35037         * modules/link-tests (Depends-on): Likewise.
35038         * modules/linkat-tests (Depends-on): Likewise.
35039         * modules/lstat-tests (Depends-on): Likewise.
35040         * modules/mkdir-tests (Depends-on): Likewise.
35041         * modules/mkfifo-tests (Depends-on): Likewise.
35042         * modules/mkfifoat-tests (Depends-on): Likewise.
35043         * modules/mknod-tests (Depends-on): Likewise.
35044         * modules/openat-tests (Depends-on): Likewise.
35045         * modules/readlink-tests (Depends-on): Likewise.
35046         * modules/remove-tests (Depends-on): Likewise.
35047         * modules/rename-tests (Depends-on): Likewise.
35048         * modules/renameat-tests (Depends-on): Likewise.
35049         * modules/rmdir-tests (Depends-on): Likewise.
35050         * modules/symlink-tests (Depends-on): Likewise.
35051         * modules/symlinkat-tests (Depends-on): Likewise.
35052         * modules/unlink-tests (Depends-on): Likewise.
35053         * modules/utimens-tests (Depends-on): Likewise.
35054         * modules/utimensat-tests (Depends-on): Likewise.
35055
35056 2010-01-31  Bruno Haible  <bruno@clisp.org>
35057
35058         Perform the same test for many <math.h> functions.
35059         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35060         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35061         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35062         of gl_MATHFUNC.
35063         * modules/acos (configure.ac): Likewise.
35064         * modules/asin (configure.ac): Likewise.
35065         * modules/atan (configure.ac): Likewise.
35066         * modules/atan2 (configure.ac): Likewise.
35067         * modules/cbrt (configure.ac): Likewise.
35068         * modules/copysign (configure.ac): Likewise.
35069         * modules/cos (configure.ac): Likewise.
35070         * modules/cosh (configure.ac): Likewise.
35071         * modules/erf (configure.ac): Likewise.
35072         * modules/erfc (configure.ac): Likewise.
35073         * modules/exp (configure.ac): Likewise.
35074         * modules/fmod (configure.ac): Likewise.
35075         * modules/hypot (configure.ac): Likewise.
35076         * modules/j0 (configure.ac): Likewise.
35077         * modules/j1 (configure.ac): Likewise.
35078         * modules/jn (configure.ac): Likewise.
35079         * modules/lgamma (configure.ac): Likewise.
35080         * modules/log (configure.ac): Likewise.
35081         * modules/log10 (configure.ac): Likewise.
35082         * modules/log1p (configure.ac): Likewise.
35083         * modules/pow (configure.ac): Likewise.
35084         * modules/remainder (configure.ac): Likewise.
35085         * modules/sin (configure.ac): Likewise.
35086         * modules/sinh (configure.ac): Likewise.
35087         * modules/tan (configure.ac): Likewise.
35088         * modules/tanh (configure.ac): Likewise.
35089         * modules/y0 (configure.ac): Likewise.
35090         * modules/y1 (configure.ac): Likewise.
35091         * modules/yn (configure.ac): Likewise.
35092         Suggested by Paolo Bonzini.
35093
35094 2010-01-31  Bruno Haible  <bruno@clisp.org>
35095
35096         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35097
35098 2010-01-31  Bruno Haible  <bruno@clisp.org>
35099
35100         Work around getdelim() bug on FreeBSD 8.0.
35101         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35102         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35103         not work.
35104         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35105         is 1.
35106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35107         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35108         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35109         a non-zero size.
35110         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35111
35112 2010-01-31  Bruno Haible  <bruno@clisp.org>
35113
35114         Work around getline() bug on FreeBSD 8.0.
35115         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35116         and a non-zero size.
35117         * tests/test-getline.c (main): Likewise.
35118         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35119         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35120
35121 2010-01-28  Eric Blake  <ebb9@byu.net>
35122
35123         regex: fix build failure
35124         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35125         platforms.
35126
35127 2010-01-28  Jim Meyering  <meyering@redhat.com>
35128
35129         regex: do not ignore memory allocation failure
35130         * lib/regex_internal.c (create_cd_newstate): Detect
35131         re_node_set_init_copy failure.   Extracted from glibc commit
35132         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35133
35134         regex: sync more white-space changes from libc
35135         * lib/regex_internal.c: White-space only changes.
35136         * lib/regexec.c: Likewise.
35137
35138         regex: add many uses of __attribute_warn_unused_result__
35139         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35140         * lib/regexec.c: Likewise.
35141         Extracted from a messy glibc commit.
35142
35143         regcomp.c: spelling and merge-artifact from glibc
35144         * lib/regcomp.c: Merge remainder of glibc's
35145         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35146
35147         regcomp.c: sync white-space changes from glibc
35148         * lib/regcomp.c: Merge to accommodate white space
35149         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35150
35151         regcomp.c: do not ignore internal return values
35152         * lib/regcomp.c: Do not ignore internal return values.
35153         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35154         but without its white-space changes and spelling fixes.
35155
35156         regex_internal.h: define __attribute_warn_unused_result__
35157         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35158
35159         maint: add a syntax-check rule to check for vulnerable Makefile.in
35160         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35161
35162 2010-01-27  Jim Meyering  <meyering@redhat.com>
35163
35164         ncftpput-ftp: clean up spaces
35165         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35166         Remove trailing blanks.
35167
35168 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35169
35170         * build-aux/git-version-gen: Fix copyright statement.
35171         * build-aux/gnupload: Likewise.
35172         * tests/test-arcfour.c: Likewise.
35173         * tests/test-arctwo.c: Likewise.
35174         * tests/test-count-one-bits.c: Likewise.
35175         * tests/test-crc.c: Likewise.
35176         * tests/test-des.c: Likewise.
35177         * tests/test-gc-arcfour.c: Likewise.
35178         * tests/test-gc-arctwo.c: Likewise.
35179         * tests/test-gc-des.c: Likewise.
35180         * tests/test-gc-hmac-md5.c: Likewise.
35181         * tests/test-gc-hmac-sha1.c: Likewise.
35182         * tests/test-gc-md2.c: Likewise.
35183         * tests/test-gc-md4.c: Likewise.
35184         * tests/test-gc-md5.c: Likewise.
35185         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35186         * tests/test-gc-rijndael.c: Likewise.
35187         * tests/test-gc-sha1.c: Likewise.
35188         * tests/test-gc.c: Likewise.
35189         * tests/test-gethostname.c: Likewise.
35190         * tests/test-gettimeofday.c: Likewise.
35191         * tests/test-hash.c: Likewise.
35192         * tests/test-hmac-md5.c: Likewise.
35193         * tests/test-hmac-sha1.c: Likewise.
35194         * tests/test-md2.c: Likewise.
35195         * tests/test-md4.c: Likewise.
35196         * tests/test-md5.c: Likewise.
35197         * tests/test-memchr.c: Likewise.
35198         * tests/test-memchr2.c: Likewise.
35199         * tests/test-memcmp.c: Likewise.
35200         * tests/test-memmem.c: Likewise.
35201         * tests/test-memrchr.c: Likewise.
35202         * tests/test-rawmemchr.c: Likewise.
35203         * tests/test-read-file.c: Likewise.
35204         * tests/test-rijndael.c: Likewise.
35205         * tests/test-sockets.c: Likewise.
35206         * tests/test-strchrnul.c: Likewise.
35207         * tests/test-strstr.c: Likewise.
35208         * tests/test-strtod.c: Likewise.
35209         * build-aux/ncftpput-ftp: Likewise.
35210
35211 2010-01-26  Eric Blake  <ebb9@byu.net>
35212
35213         ignore-value: update recommended header name
35214         * modules/ignore-value (Include): Only use <> for headers that
35215         exist in glibc.
35216
35217 2010-01-26  Jim Meyering  <meyering@redhat.com>
35218
35219         test-userspec.c: avoid compiler warnings
35220         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35221         and "initialization discards qualifiers..." warnings.
35222         Put the first "uid" in its own scope, and make char* members "const".
35223
35224 2010-01-25  Bruno Haible  <bruno@clisp.org>
35225
35226         gnulib-tool: Make warning diagnostics consistent.
35227         * gnulib-tool (func_warning): New function.
35228         Use it everywhere where gnulib-tool produces output to stderr and it is
35229         not a fatal error.
35230
35231 2010-01-25  Bruno Haible  <bruno@clisp.org>
35232
35233         Fix test dependencies.
35234         * modules/xstrtol-tests (Depends-on): Add inttypes.
35235         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35236
35237 2010-01-25 Pádraig Brady <P@draigBrady.com>
35238
35239         syntax-check: detect incorrect boolean macro values in config.h
35240         * modules/maintainer-makefile (configure.ac): Parameterize the location
35241         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35242         The logic is from Eric Blake and the location indicated by Jim Meyering.
35243         Note the more natural CONFIG_HEADER name is prohibited by automake
35244         for backwards compatibility reasons.
35245         * top/maint.mk (sc_Wundef_boolean): New rule.
35246
35247 2010-01-25  Jim Meyering  <meyering@redhat.com>
35248
35249         bootstrap: detect MacOS 10.6's shasum, too
35250         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35251         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35252
35253 2010-01-23  Jim Meyering  <meyering@redhat.com>
35254
35255         xstrtoll: new module
35256         * modules/xstrtoll: New file.
35257         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35258         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35259         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35260         ./configure fails if you use this module and lack "long long".
35261         * modules/xstrtoll-tests: New module.
35262         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35263         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35264         new init.sh-based test framework.
35265
35266 2010-01-24  Bruno Haible  <bruno@clisp.org>
35267
35268         Tests for module 'yn'.
35269         * modules/yn-tests: New file.
35270         * tests/test-yn.c: New file.
35271
35272         Tests for module 'y1'.
35273         * modules/y1-tests: New file.
35274         * tests/test-y1.c: New file.
35275
35276         Tests for module 'y0'.
35277         * modules/y0-tests: New file.
35278         * tests/test-y0.c: New file.
35279
35280         Tests for module 'tanh'.
35281         * modules/tanh-tests: New file.
35282         * tests/test-tanh.c: New file.
35283
35284         Tests for module 'tan'.
35285         * modules/tan-tests: New file.
35286         * tests/test-tan.c: New file.
35287
35288         Tests for module 'sqrt'.
35289         * modules/sqrt-tests: New file.
35290         * tests/test-sqrt.c: New file.
35291
35292         Tests for module 'sinh'.
35293         * modules/sinh-tests: New file.
35294         * tests/test-sinh.c: New file.
35295
35296         Tests for module 'sin'.
35297         * modules/sin-tests: New file.
35298         * tests/test-sin.c: New file.
35299
35300         Tests for module 'rint'.
35301         * modules/rint-tests: New file.
35302         * tests/test-rint.c: New file.
35303
35304         Tests for module 'remainder'.
35305         * modules/remainder-tests: New file.
35306         * tests/test-remainder.c: New file.
35307
35308         Tests for module 'pow'.
35309         * modules/pow-tests: New file.
35310         * tests/test-pow.c: New file.
35311
35312         Tests for module 'nextafter'.
35313         * modules/nextafter-tests: New file.
35314         * tests/test-nextafter.c: New file.
35315
35316         Tests for module 'modf'.
35317         * modules/modf-tests: New file.
35318         * tests/test-modf.c: New file.
35319
35320         Tests for module 'logb'.
35321         * modules/logb-tests: New file.
35322         * tests/test-logb.c: New file.
35323
35324         Tests for module 'log1p'.
35325         * modules/log1p-tests: New file.
35326         * tests/test-log1p.c: New file.
35327
35328         Tests for module 'log10'.
35329         * modules/log10-tests: New file.
35330         * tests/test-log10.c: New file.
35331
35332         Tests for module 'log'.
35333         * modules/log-tests: New file.
35334         * tests/test-log.c: New file.
35335
35336         Tests for module 'lgamma'.
35337         * modules/lgamma-tests: New file.
35338         * tests/test-lgamma.c: New file.
35339
35340         Tests for module 'ldexp'.
35341         * modules/ldexp-tests: New file.
35342         * tests/test-ldexp.c: New file.
35343
35344         Tests for module 'jn'.
35345         * modules/jn-tests: New file.
35346         * tests/test-jn.c: New file.
35347
35348         Tests for module 'j1'.
35349         * modules/j1-tests: New file.
35350         * tests/test-j1.c: New file.
35351
35352         Tests for module 'j0'.
35353         * modules/j0-tests: New file.
35354         * tests/test-j0.c: New file.
35355
35356         Tests for module 'hypot'.
35357         * modules/hypot-tests: New file.
35358         * tests/test-hypot.c: New file.
35359
35360         Tests for module 'fmod'.
35361         * modules/fmod-tests: New file.
35362         * tests/test-fmod.c: New file.
35363
35364         Tests for module 'fabs'.
35365         * modules/fabs-tests: New file.
35366         * tests/test-fabs.c: New file.
35367
35368         Tests for module 'exp'.
35369         * modules/exp-tests: New file.
35370         * tests/test-exp.c: New file.
35371
35372         Tests for module 'erfc'.
35373         * modules/erfc-tests: New file.
35374         * tests/test-erfc.c: New file.
35375
35376         Tests for module 'erf'.
35377         * modules/erf-tests: New file.
35378         * tests/test-erf.c: New file.
35379
35380         Tests for module 'cosh'.
35381         * modules/cosh-tests: New file.
35382         * tests/test-cosh.c: New file.
35383
35384         Tests for module 'cos'.
35385         * modules/cos-tests: New file.
35386         * tests/test-cos.c: New file.
35387
35388         Tests for module 'copysign'.
35389         * modules/copysign-tests: New file.
35390         * tests/test-copysign.c: New file.
35391
35392         Tests for module 'cbrt'.
35393         * modules/cbrt-tests: New file.
35394         * tests/test-cbrt.c: New file.
35395
35396         Tests for module 'atan2'.
35397         * modules/atan2-tests: New file.
35398         * tests/test-atan2.c: New file.
35399
35400         Tests for module 'atan'.
35401         * modules/atan-tests: New file.
35402         * tests/test-atan.c: New file.
35403
35404         Tests for module 'asin'.
35405         * modules/asin-tests: New file.
35406         * tests/test-asin.c: New file.
35407
35408         Tests for module 'acos'.
35409         * modules/acos-tests: New file.
35410         * tests/test-acos.c: New file.
35411
35412 2010-01-24  Bruno Haible  <bruno@clisp.org>
35413
35414         Fix tests for common <math.h> functions.
35415         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35416         code snippet that references the function pointer, rather than merely
35417         calling the function. Substitute the FUNC_LIBM variable.
35418         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35419         * modules/acos (configure.ac): Likewise.
35420         * modules/asin (configure.ac): Likewise.
35421         * modules/atan (configure.ac): Likewise.
35422         * modules/atan2 (configure.ac): Likewise.
35423         * modules/cbrt (configure.ac): Likewise.
35424         * modules/copysign (configure.ac): Likewise.
35425         * modules/cos (configure.ac): Likewise.
35426         * modules/cosh (configure.ac): Likewise.
35427         * modules/erf (configure.ac): Likewise.
35428         * modules/erfc (configure.ac): Likewise.
35429         * modules/exp (configure.ac): Likewise.
35430         * modules/fabs (configure.ac): Likewise.
35431         * modules/fmod (configure.ac): Likewise.
35432         * modules/hypot (configure.ac): Likewise.
35433         * modules/j0 (configure.ac): Likewise.
35434         * modules/j1 (configure.ac): Likewise.
35435         * modules/jn (configure.ac): Likewise.
35436         * modules/ldexp (configure.ac): Likewise.
35437         * modules/lgamma (configure.ac): Likewise.
35438         * modules/log (configure.ac): Likewise.
35439         * modules/log10 (configure.ac): Likewise.
35440         * modules/log1p (configure.ac): Likewise.
35441         * modules/logb (configure.ac): Likewise.
35442         * modules/modf (configure.ac): Likewise.
35443         * modules/nextafter (configure.ac): Likewise.
35444         * modules/pow (configure.ac): Likewise.
35445         * modules/remainder (configure.ac): Likewise.
35446         * modules/rint (configure.ac): Likewise.
35447         * modules/sin (configure.ac): Likewise.
35448         * modules/sinh (configure.ac): Likewise.
35449         * modules/tan (configure.ac): Likewise.
35450         * modules/tanh (configure.ac): Likewise.
35451         * modules/y0 (configure.ac): Likewise.
35452         * modules/y1 (configure.ac): Likewise.
35453         * modules/yn (configure.ac): Likewise.
35454
35455 2010-01-24  Bruno Haible  <bruno@clisp.org>
35456
35457         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35458         * tests/test-acosl.c (x): New variable.
35459         (main): Store argument in x and fetch it from x.
35460         * tests/test-asinl.c (x): New variable.
35461         (main): Store argument in x and fetch it from x.
35462         * tests/test-atanl.c (x): New variable.
35463         (main): Store argument in x and fetch it from x.
35464         * tests/test-cosl.c (x): New variable.
35465         (main): Store argument in x and fetch it from x.
35466         * tests/test-expl.c (x): New variable.
35467         (main): Store argument in x and fetch it from x.
35468         * tests/test-logl.c (x): New variable.
35469         (main): Store argument in x and fetch it from x.
35470         * tests/test-sinl.c (x): New variable.
35471         (main): Store argument in x and fetch it from x.
35472         * tests/test-sqrtl.c (x): New variable.
35473         (main): Store argument in x and fetch it from x.
35474         * tests/test-tanl.c (x): New variable.
35475         (main): Store argument in x and fetch it from x.
35476
35477 2010-01-24  Bruno Haible  <bruno@clisp.org>
35478
35479         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35480         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35481         assignments to the initial TESTS_ENVIRONMENT.
35482         * doc/gnulib.texi (Unit test modules): Document it.
35483         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35484         TESTS_ENVIRONMENT.
35485         * modules/btowc-tests (Makefile.am): Likewise.
35486         * modules/c-stack-tests (Makefile.am): Likewise.
35487         * modules/c-strcase-tests (Makefile.am): Likewise.
35488         * modules/copy-file-tests (Makefile.am): Likewise.
35489         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35490         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35491         * modules/mbrtowc-tests (Makefile.am): Likewise.
35492         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35493         * modules/mbscasestr-tests (Makefile.am): Likewise.
35494         * modules/mbschr-tests (Makefile.am): Likewise.
35495         * modules/mbscspn-tests (Makefile.am): Likewise.
35496         * modules/mbsinit-tests (Makefile.am): Likewise.
35497         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35498         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35499         * modules/mbspbrk-tests (Makefile.am): Likewise.
35500         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35501         * modules/mbsrchr-tests (Makefile.am): Likewise.
35502         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35503         * modules/mbsspn-tests (Makefile.am): Likewise.
35504         * modules/mbsstr-tests (Makefile.am): Likewise.
35505         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35506         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35507         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35508         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35509         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35510         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35511         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35512         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35513         * modules/wcrtomb-tests (Makefile.am): Likewise.
35514         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35515         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35516         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35517         assignments from TESTS_ENVIRONMENT.
35518         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35519         augmentation.
35520         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35521         * modules/atexit-tests (Makefile.am): Likewise.
35522         * modules/binary-io-tests (Makefile.am): Likewise.
35523         * modules/closein-tests (Makefile.am): Likewise.
35524         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35525         * modules/exclude-tests (Makefile.am): Likewise.
35526         * modules/fflush-tests (Makefile.am): Likewise.
35527         * modules/fpending-tests (Makefile.am): Likewise.
35528         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35529         * modules/freadahead-tests (Makefile.am): Likewise.
35530         * modules/freadptr-tests (Makefile.am): Likewise.
35531         * modules/freadseek-tests (Makefile.am): Likewise.
35532         * modules/fseek-tests (Makefile.am): Likewise.
35533         * modules/fseeko-tests (Makefile.am): Likewise.
35534         * modules/ftell-tests (Makefile.am): Likewise.
35535         * modules/ftello-tests (Makefile.am): Likewise.
35536         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35537         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35538         * modules/lseek-tests (Makefile.am): Likewise.
35539         * modules/parse-duration-tests (Makefile.am): Likewise.
35540         * modules/perror-tests (Makefile.am): Likewise.
35541         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35542         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35543         * modules/pipe-tests (Makefile.am): Likewise.
35544         * modules/pread-tests (Makefile.am): Likewise.
35545         * modules/printf-posix-tests (Makefile.am): Likewise.
35546         * modules/select-tests (Makefile.am): Likewise.
35547         * modules/sigpipe-tests (Makefile.am): Likewise.
35548         * modules/tsearch-tests (Makefile.am): Likewise.
35549         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35550         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35551         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35552         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35553         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35554         * modules/version-etc-tests (Makefile.am): Likewise.
35555         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35556         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35557         * modules/xalloc-die-tests (Makefile.am): Likewise.
35558         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35559         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35560         * modules/xstrtol-tests (Makefile.am): Likewise.
35561         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35562         * modules/yesno-tests (Makefile.am): Likewise.
35563         Suggested by Jim Meyering.
35564
35565 2010-01-24  Bruno Haible  <bruno@clisp.org>
35566
35567         More documentation.
35568         * doc/gnulib.texi (Writing modules): New chapter.
35569         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35570         the new chapter.
35571
35572 2010-01-24  Jim Meyering  <meyering@redhat.com>
35573
35574         maint.mk: do not prepend "./" after filtering
35575         * top/maint.mk (_prepend_srcdir_prefix): New variable
35576         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35577         "./" when $(srcdir) is ".".
35578
35579         define STREQ(a,b) consistently, removing useless parentheses
35580         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35581         since the only risk is that "a" or "b" contains an unparenthesized
35582         comma, but if either did that, STREQ would have 3 or more arguments.
35583         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35584         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35585         * lib/hash-triple.c (STREQ): Likewise.
35586         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35587         * lib/getugroups.c (STREQ): Likewise.
35588
35589 2010-01-23  Jim Meyering  <meyering@redhat.com>
35590
35591         maint.mk: fix syntax-check in a non-srcdir build directory
35592         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35593         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35594
35595 2010-01-22  Jim Meyering  <meyering@redhat.com>
35596
35597         userspec: add unit tests
35598         * tests/test-userspec.c: New file.
35599         * modules/userspec-tests: Likewise.
35600
35601 2010-01-21  Jim Meyering  <meyering@redhat.com>
35602
35603         maint.mk: handle source file names containing "." robustly
35604         * top/maint.mk (_dot_escaped_srcdir): Define.
35605         (VC_LIST): Use it in LHS of sed substitution.
35606
35607 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35608
35609         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35610         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35611         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35612         from a non-srcdir build.
35613
35614 2010-01-20  Eric Blake  <ebb9@byu.net>
35615
35616         warn-on-use: use instead of link-warning
35617         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35618         * modules/unistd (Depends-on, Makefile.am): Likewise.
35619         * modules/arpa_inet (Depends-on): Replace link-warning with
35620         warn-on-use.
35621         (Makefile.am): Update rules accordingly.
35622         * modules/ctype (Depends-on, Makefile.am): Likewise.
35623         * modules/dirent (Depends-on, Makefile.am): Likewise.
35624         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35625         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35626         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35627         * modules/locale (Depends-on, Makefile.am): Likewise.
35628         * modules/math (Depends-on, Makefile.am): Likewise.
35629         * modules/search (Depends-on, Makefile.am): Likewise.
35630         * modules/signal (Depends-on, Makefile.am): Likewise.
35631         * modules/spawn (Depends-on, Makefile.am): Likewise.
35632         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35633         * modules/string (Depends-on, Makefile.am): Likewise.
35634         * modules/strings (Depends-on, Makefile.am): Likewise.
35635         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35636         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35637         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35638         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35639         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35640         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35641         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35642         * modules/wchar (Depends-on, Makefile.am): Likewise.
35643         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35644         should be poisoned.
35645         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35646         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35647         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35648         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35649         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35650         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35651         * m4/math_h.m4 (gl_MATH_H): Likewise.
35652         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35653         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35654         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35655         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35656         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35657         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35658         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35659         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35664         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35666         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35667         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35668         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35669         GL_LINK_WARNING.
35670         * lib/ctype.in.h: Likewise.
35671         * lib/dirent.in.h: Likewise.
35672         * lib/fcntl.in.h: Likewise.
35673         * lib/inttypes.in.h: Likewise.
35674         * lib/langinfo.in.h: Likewise.
35675         * lib/locale.in.h: Likewise.
35676         * lib/math.in.h: Likewise.
35677         * lib/search.in.h: Likewise.
35678         * lib/signal.in.h: Likewise.
35679         * lib/spawn.in.h: Likewise.
35680         * lib/stdio.in.h: Likewise.
35681         * lib/stdlib.in.h: Likewise.
35682         * lib/string.in.h: Likewise.
35683         * lib/strings.in.h: Likewise.
35684         * lib/sys_file.in.h: Likewise.
35685         * lib/sys_ioctl.in.h: Likewise.
35686         * lib/sys_select.in.h: Likewise.
35687         * lib/sys_socket.in.h: Likewise.
35688         * lib/sys_stat.in.h: Likewise.
35689         * lib/sys_times.in.h: Likewise.
35690         * lib/sys_utsname.in.h: Likewise.
35691         * lib/unistd.in.h: Likewise.
35692         * lib/wchar.in.h: Likewise.
35693
35694 2010-01-20  Bruno Haible  <bruno@clisp.org>
35695
35696         Avoid duplicate -lm.
35697         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35698         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35699         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35700         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35701         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35702         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35703         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35704         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35705         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35706         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35707         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35708         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35709         Reported by Paolo Bonzini.
35710
35711 2010-01-19  Bruno Haible  <bruno@clisp.org>
35712
35713         langinfo, nl_langinfo: Relicense under LGPLv2+.
35714         * modules/langinfo (License): Change to LGPLv2+.
35715         * modules/nl_langinfo (License): Likewise.
35716         Patch by David Lutterkort <lutter@redhat.com>.
35717
35718 2010-01-19  Bruno Haible  <bruno@clisp.org>
35719
35720         Avoid compilation error with cc on OSF/1 5.1.
35721         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35722         statement, not before.
35723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35724
35725 2010-01-18  Bruno Haible  <bruno@clisp.org>
35726
35727         Avoid a link error due to the __printf__ symbol.
35728         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35729         and 2.6.x.
35730         (__format__, __printf__): Remove definitions.
35731         * lib/argp-fmtstream.h: Likewise.
35732         * lib/argp.h: Likewise.
35733         * lib/error.h: Likewise.
35734         * lib/vasnprintf.h: Likewise.
35735         * lib/xprintf.h: Likewise.
35736         * lib/xvasprintf.h: Likewise.
35737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35738
35739 2010-01-18  Bruno Haible  <bruno@clisp.org>
35740
35741         Tests for module 'tanl'.
35742         * modules/tanl-tests: New file.
35743         * tests/test-tanl.c: New file.
35744
35745         Tests for module 'sqrtl'.
35746         * modules/sqrtl-tests: New file.
35747         * tests/test-sqrtl.c: New file.
35748
35749         Tests for module 'sinl'.
35750         * modules/sinl-tests: New file.
35751         * tests/test-sinl.c: New file.
35752
35753         Tests for module 'logl'.
35754         * modules/logl-tests: New file.
35755         * tests/test-logl.c: New file.
35756
35757         Tests for module 'expl'.
35758         * modules/expl-tests: New file.
35759         * tests/test-expl.c: New file.
35760
35761         Tests for module 'cosl'.
35762         * modules/cosl-tests: New file.
35763         * tests/test-cosl.c: New file.
35764
35765         Tests for module 'atanl'.
35766         * modules/atanl-tests: New file.
35767         * tests/test-atanl.c: New file.
35768
35769         Tests for module 'asinl'.
35770         * modules/asinl-tests: New file.
35771         * tests/test-asinl.c: New file.
35772
35773         Tests for module 'acosl'.
35774         * modules/acosl-tests: New file.
35775         * tests/test-acosl.c: New file.
35776
35777         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35778         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35779         tanl): Use the standard gnulib idiom.
35780         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35781         * lib/sinl.c: Likewise.
35782         * lib/tanl.c: Don't include trigl.c.
35783         (kernel_tanl): Make static.
35784         * lib/sincosl.c: Include trigl.h first.
35785         * lib/trigl.c: Likewise.
35786         * m4/acosl.m4: New file.
35787         * m4/asinl.m4: New file.
35788         * m4/atanl.m4: New file.
35789         * m4/cosl.m4: New file.
35790         * m4/expl.m4: New file.
35791         * m4/logl.m4: New file.
35792         * m4/sinl.m4: New file.
35793         * m4/sqrtl.m4: New file.
35794         * m4/tanl.m4: New file.
35795         * m4/mathl.m4: Remove file.
35796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35797         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35798         Don't initialize GNULIB_MATHL.
35799         * modules/acosl: New file.
35800         * modules/asinl: New file.
35801         * modules/atanl: New file.
35802         * modules/cosl: New file.
35803         * modules/expl: New file.
35804         * modules/logl: New file.
35805         * modules/sinl: New file.
35806         * modules/sqrtl: New file.
35807         * modules/tanl: New file.
35808         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35809         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35810         substitute GNULIB_MATHL.
35811         * modules/mathl: Rewritten.
35812         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35813         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35814         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35815         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35816         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35817         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35818         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35819         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35820         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35821
35822 2010-01-18  Bruno Haible  <bruno@clisp.org>
35823
35824         sqrt: Make gl_FUNC_SQRT requirable.
35825         * m4/sqrt.m4: New file.
35826         * modules/sqrt (Files): Add it.
35827         (configure.ac): Invoke gl_FUNC_SQRT.
35828
35829 2010-01-18  Bruno Haible  <bruno@clisp.org>
35830
35831         New modules for common <math.h> functions.
35832         * m4/mathfunc.m4: New file.
35833         * modules/acos: New file.
35834         * modules/asin: New file.
35835         * modules/atan: New file.
35836         * modules/atan2: New file.
35837         * modules/cbrt: New file.
35838         * modules/copysign: New file.
35839         * modules/cos: New file.
35840         * modules/cosh: New file.
35841         * modules/erf: New file.
35842         * modules/erfc: New file.
35843         * modules/exp: New file.
35844         * modules/fabs: New file.
35845         * modules/fmod: New file.
35846         * modules/hypot: New file.
35847         * modules/j0: New file.
35848         * modules/j1: New file.
35849         * modules/jn: New file.
35850         * modules/ldexp: New file.
35851         * modules/lgamma: New file.
35852         * modules/log: New file.
35853         * modules/log10: New file.
35854         * modules/log1p: New file.
35855         * modules/logb: New file.
35856         * modules/modf: New file.
35857         * modules/nextafter: New file.
35858         * modules/pow: New file.
35859         * modules/remainder: New file.
35860         * modules/rint: New file.
35861         * modules/sin: New file.
35862         * modules/sinh: New file.
35863         * modules/sqrt: New file.
35864         * modules/tan: New file.
35865         * modules/tanh: New file.
35866         * modules/y0: New file.
35867         * modules/y1: New file.
35868         * modules/yn: New file.
35869         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35870         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35871         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35872         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35873         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35874         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35875         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35876         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35877         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35878         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35879         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35880         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35881         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35882         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35883         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35884         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35885         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35886         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35887         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35888         * doc/posix-functions/log.texi: Mention the 'log' module.
35889         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35890         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35891         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35892         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35893         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35894         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35895         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35896         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35897         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35898         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35899         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35900         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35901         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35902         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35903         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35904         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35905
35906 2010-01-18  Jim Meyering  <meyering@redhat.com>
35907
35908         ignore-value: relax license to LGPLv2+
35909         * modules/ignore-value (License): Relax to LGPLv2+.
35910
35911         getdate: don't leak when TZ contains two or more '"'s
35912         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35913         double quote in TZ after the first one.
35914
35915         readtokens: do not leak internal token_lengths buffer
35916         * lib/readtokens.c (readtokens): Free the local, lengths,
35917         when the supplied "token_lengths" parameter is NULL.
35918
35919 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35920
35921         Fix a couple of missing LIBTHREAD link failures on AIX.
35922         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35923         $(LIBTHREAD).
35924         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35925
35926         Link test-poll against INET_PTON_LIB.
35927         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35928         for inet_pton on Solaris 10.
35929
35930 2010-01-17  Bruno Haible  <bruno@clisp.org>
35931
35932         unistdio/*-sprintf: Fix typo in module description.
35933         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35934         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35935         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35936         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35937         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35938         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35939         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35941
35942 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35943
35944         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35945         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35946         variables in shell case patterns, for AIX and HP-UX ksh.
35947
35948         Split large sed scripts, for HP-UX sed.
35949         * modules/stdio: Split sed scripts around 50 sed commands,
35950         to avoid HP-UX limit of 99 commands, in the near future.
35951         * modules/string: Likewise.
35952         * modules/unistd: Likewise.
35953
35954         gnulib-tool: avoid writing in the current directory.
35955         * gnulib-tool (func_emit_lib_Makefile_am)
35956         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35957         not in the current directory, so concurrent gnulib-tool
35958         instances do not interfere.
35959
35960 2010-01-16  Jim Meyering  <meyering@redhat.com>
35961
35962         doc: update users.txt
35963         * users.txt: Add grep.
35964         (diffutils, gzip): Update URLs.
35965
35966 2010-01-12  Bruno Haible  <bruno@clisp.org>
35967
35968         posix_spawn: Avoid test failure on Cygwin.
35969         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35970         characters.
35971         Reported by Simon Josefsson.
35972
35973 2010-01-12  Bruno Haible  <bruno@clisp.org>
35974
35975         * tests/test-cond.c (main): When skipping the test, show the reason.
35976
35977 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35978
35979         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35980
35981 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35982
35983         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35984         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35985
35986 2010-01-12  Eric Blake  <ebb9@byu.net>
35987
35988         build: guarantee AS_VAR_IF
35989         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35990         (gl_AS_VAR_IF): Move...
35991         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35992         Reported by Simon Josefsson.
35993
35994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35995
35996         * lib/stdio.in.h: Fix typo.
35997
35998 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35999
36000         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36001         libgpg-error.
36002
36003 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36004
36005         * tests/test-xalloc-die.sh: Use $EXEEXT.
36006
36007 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36008             Bruno Haible  <bruno@clisp.org>
36009
36010         getlogin, getlogin_r: Avoid test failure.
36011         * tests/test-getlogin.c: Include <stdio.h>.
36012         (main): Skip the test when the function fails because stdin is not a
36013         tty.
36014         * tests/test-getlogin_r.c: Include <stdio.h>.
36015         (main): Skip the test when the function fails because stdin is not a
36016         tty.
36017
36018 2010-01-11  Eric Blake  <ebb9@byu.net>
36019
36020         tests: avoid more large file warnings
36021         * tests/test-fflush.c: Avoid warning about ftell use.
36022         * tests/test-fseek.c: Avoid warning about fseek use.
36023
36024 2010-01-10  Bruno Haible  <bruno@clisp.org>
36025
36026         nproc: Work better on Linux when /proc and /sys are not mounted.
36027         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36028         as lower bound when, on glibc/Linux systems,
36029         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36030         Suggested by Pádraig Brady <P@draigbrady.com>.
36031         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36032
36033         nproc: Refactor.
36034         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36035         extracted from num_processors.
36036         (num_processors): Call it.
36037
36038 2010-01-11  Jim Meyering  <meyering@redhat.com>
36039
36040         utimecmp: avoid new warning from upcoming gcc-4.5.0
36041         * lib/utimecmp.c (BILLION): Define using #define rather than an
36042         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36043
36044 2010-01-11  Eric Blake  <ebb9@byu.net>
36045
36046         math: add portability warnings for classification macros
36047         * modules/math (Depends-on): Add warn-on-use.
36048         (Makefile.am): Provide new substitutions.
36049         * m4/math_h.m4 (gl_MATH_H): Require inline.
36050         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36051         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36052         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36053         implement warnings.
36054
36055         unistd: warn on use of environ without module
36056         * modules/unistd (Depends-on): Add warn-on-use.
36057         (Makefile.am): Provide new substitutions.
36058         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36059         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36060
36061         stdio: warn on suspicious uses
36062         * modules/stdio (Depends-on): Add warn-on-use.
36063         (Makefile.am): Provide new substitutions.
36064         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36065         fseeko.
36066         * lib/stdio.in.h (gets): Always warn on use.
36067         (fseek, ftell): Adjust when warnings are issued, and honor
36068         _GL_NO_LARGE_FILES as a way to silence the warning.
36069         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36070         any warning about large file offsets.
36071         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36072         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36073         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36074         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36075         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36076         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36077         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36078         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36079
36080         warn-on-use: new module
36081         * modules/warn-on-use: New file.
36082         * build-aux/warn-on-use.h: Likewise.
36083         * m4/warn-on-use.m4: Likewise.
36084         * MODULES.html.sh (Support for building): Mention it.
36085
36086 2010-01-10  Bruno Haible  <bruno@clisp.org>
36087
36088         Tests for module 'unistr/u32-strdup'.
36089         * modules/unistr/u32-strdup-tests: New file.
36090         * tests/unistr/test-u32-strdup.c: New file.
36091
36092         Tests for module 'unistr/u16-strdup'.
36093         * modules/unistr/u16-strdup-tests: New file.
36094         * tests/unistr/test-u16-strdup.c: New file.
36095
36096         Tests for module 'unistr/u8-strdup'.
36097         * modules/unistr/u8-strdup-tests: New file.
36098         * tests/unistr/test-u8-strdup.c: New file.
36099         * tests/unistr/test-strdup.h: New file.
36100
36101         Tests for module 'unistr/u32-strncmp'.
36102         * modules/unistr/u32-strncmp-tests: New file.
36103         * tests/unistr/test-u32-strncmp.c: New file.
36104
36105         Tests for module 'unistr/u16-strncmp'.
36106         * modules/unistr/u16-strncmp-tests: New file.
36107         * tests/unistr/test-u16-strncmp.c: New file.
36108
36109         Tests for module 'unistr/u8-strncmp'.
36110         * modules/unistr/u8-strncmp-tests: New file.
36111         * tests/unistr/test-u8-strncmp.c: New file.
36112         * tests/unistr/test-strncmp.h: New file.
36113
36114         Tests for module 'unistr/u32-strcoll'.
36115         * modules/unistr/u32-strcoll-tests: New file.
36116         * tests/unistr/test-u32-strcoll.c: New file.
36117
36118         Tests for module 'unistr/u16-strcoll'.
36119         * modules/unistr/u16-strcoll-tests: New file.
36120         * tests/unistr/test-u16-strcoll.c: New file.
36121
36122         Tests for module 'unistr/u8-strcoll'.
36123         * modules/unistr/u8-strcoll-tests: New file.
36124         * tests/unistr/test-u8-strcoll.c: New file.
36125
36126         Tests for module 'unistr/u32-strcmp'.
36127         * modules/unistr/u32-strcmp-tests: New file.
36128         * tests/unistr/test-u32-strcmp.c: New file.
36129         * tests/unistr/test-u32-strcmp.h: New file.
36130
36131         Tests for module 'unistr/u16-strcmp'.
36132         * modules/unistr/u16-strcmp-tests: New file.
36133         * tests/unistr/test-u16-strcmp.c: New file.
36134         * tests/unistr/test-u16-strcmp.h: New file.
36135
36136         Tests for module 'unistr/u8-strcmp'.
36137         * modules/unistr/u8-strcmp-tests: New file.
36138         * tests/unistr/test-u8-strcmp.c: New file.
36139         * tests/unistr/test-u8-strcmp.h: New file.
36140         * tests/unistr/test-strcmp.h: New file.
36141
36142         Tests for module 'unistr/u32-strncat'.
36143         * modules/unistr/u32-strncat-tests: New file.
36144         * tests/unistr/test-u32-strncat.c: New file.
36145
36146         Tests for module 'unistr/u16-strncat'.
36147         * modules/unistr/u16-strncat-tests: New file.
36148         * tests/unistr/test-u16-strncat.c: New file.
36149
36150         Tests for module 'unistr/u8-strncat'.
36151         * modules/unistr/u8-strncat-tests: New file.
36152         * tests/unistr/test-u8-strncat.c: New file.
36153         * tests/unistr/test-strncat.h: New file.
36154
36155         Tests for module 'unistr/u32-strcat'.
36156         * modules/unistr/u32-strcat-tests: New file.
36157         * tests/unistr/test-u32-strcat.c: New file.
36158
36159         Tests for module 'unistr/u16-strcat'.
36160         * modules/unistr/u16-strcat-tests: New file.
36161         * tests/unistr/test-u16-strcat.c: New file.
36162
36163         Tests for module 'unistr/u8-strcat'.
36164         * modules/unistr/u8-strcat-tests: New file.
36165         * tests/unistr/test-u8-strcat.c: New file.
36166         * tests/unistr/test-strcat.h: New file.
36167
36168         Tests for module 'unistr/u32-stpncpy'.
36169         * modules/unistr/u32-stpncpy-tests: New file.
36170         * tests/unistr/test-u32-stpncpy.c: New file.
36171
36172         Tests for module 'unistr/u16-stpncpy'.
36173         * modules/unistr/u16-stpncpy-tests: New file.
36174         * tests/unistr/test-u16-stpncpy.c: New file.
36175
36176         Tests for module 'unistr/u8-stpncpy'.
36177         * modules/unistr/u8-stpncpy-tests: New file.
36178         * tests/unistr/test-u8-stpncpy.c: New file.
36179         * tests/unistr/test-stpncpy.h: New file.
36180
36181         Tests for module 'unistr/u32-strncpy'.
36182         * modules/unistr/u32-strncpy-tests: New file.
36183         * tests/unistr/test-u32-strncpy.c: New file.
36184
36185         Tests for module 'unistr/u16-strncpy'.
36186         * modules/unistr/u16-strncpy-tests: New file.
36187         * tests/unistr/test-u16-strncpy.c: New file.
36188
36189         Tests for module 'unistr/u8-strncpy'.
36190         * modules/unistr/u8-strncpy-tests: New file.
36191         * tests/unistr/test-u8-strncpy.c: New file.
36192         * tests/unistr/test-strncpy.h: New file.
36193
36194         Tests for module 'unistr/u32-stpcpy'.
36195         * modules/unistr/u32-stpcpy-tests: New file.
36196         * tests/unistr/test-u32-stpcpy.c: New file.
36197
36198         Tests for module 'unistr/u16-stpcpy'.
36199         * modules/unistr/u16-stpcpy-tests: New file.
36200         * tests/unistr/test-u16-stpcpy.c: New file.
36201
36202         Tests for module 'unistr/u8-stpcpy'.
36203         * modules/unistr/u8-stpcpy-tests: New file.
36204         * tests/unistr/test-u8-stpcpy.c: New file.
36205         * tests/unistr/test-stpcpy.h: New file.
36206
36207         Tests for module 'unistr/u32-strcpy'.
36208         * modules/unistr/u32-strcpy-tests: New file.
36209         * tests/unistr/test-u32-strcpy.c: New file.
36210
36211         Tests for module 'unistr/u16-strcpy'.
36212         * modules/unistr/u16-strcpy-tests: New file.
36213         * tests/unistr/test-u16-strcpy.c: New file.
36214
36215         Tests for module 'unistr/u8-strcpy'.
36216         * modules/unistr/u8-strcpy-tests: New file.
36217         * tests/unistr/test-u8-strcpy.c: New file.
36218         * tests/unistr/test-strcpy.h: New file.
36219
36220         Tests for module 'unistr/u32-strnlen'.
36221         * modules/unistr/u32-strnlen-tests: New file.
36222         * tests/unistr/test-u32-strnlen.c: New file.
36223
36224         Tests for module 'unistr/u16-strnlen'.
36225         * modules/unistr/u16-strnlen-tests: New file.
36226         * tests/unistr/test-u16-strnlen.c: New file.
36227
36228         Tests for module 'unistr/u8-strnlen'.
36229         * modules/unistr/u8-strnlen-tests: New file.
36230         * tests/unistr/test-u8-strnlen.c: New file.
36231         * tests/unistr/test-strnlen.h: New file.
36232
36233         Tests for module 'unistr/u32-strlen'.
36234         * modules/unistr/u32-strlen-tests: New file.
36235         * tests/unistr/test-u32-strlen.c: New file.
36236
36237         Tests for module 'unistr/u16-strlen'.
36238         * modules/unistr/u16-strlen-tests: New file.
36239         * tests/unistr/test-u16-strlen.c: New file.
36240
36241         Tests for module 'unistr/u8-strlen'.
36242         * modules/unistr/u8-strlen-tests: New file.
36243         * tests/unistr/test-u8-strlen.c: New file.
36244
36245         Tests for module 'unistr/u32-prev'.
36246         * modules/unistr/u32-prev-tests: New file.
36247         * tests/unistr/test-u32-prev.c: New file.
36248
36249         Tests for module 'unistr/u16-prev'.
36250         * modules/unistr/u16-prev-tests: New file.
36251         * tests/unistr/test-u16-prev.c: New file.
36252
36253         Tests for module 'unistr/u8-prev'.
36254         * modules/unistr/u8-prev-tests: New file.
36255         * tests/unistr/test-u8-prev.c: New file.
36256
36257         Tests for module 'unistr/u32-next'.
36258         * modules/unistr/u32-next-tests: New file.
36259         * tests/unistr/test-u32-next.c: New file.
36260
36261         Tests for module 'unistr/u16-next'.
36262         * modules/unistr/u16-next-tests: New file.
36263         * tests/unistr/test-u16-next.c: New file.
36264
36265         Tests for module 'unistr/u8-next'.
36266         * modules/unistr/u8-next-tests: New file.
36267         * tests/unistr/test-u8-next.c: New file.
36268
36269         Tests for module 'unistr/u32-strmbtouc'.
36270         * modules/unistr/u32-strmbtouc-tests: New file.
36271         * tests/unistr/test-u32-strmbtouc.c: New file.
36272
36273         Tests for module 'unistr/u16-strmbtouc'.
36274         * modules/unistr/u16-strmbtouc-tests: New file.
36275         * tests/unistr/test-u16-strmbtouc.c: New file.
36276
36277         Tests for module 'unistr/u8-strmbtouc'.
36278         * modules/unistr/u8-strmbtouc-tests: New file.
36279         * tests/unistr/test-u8-strmbtouc.c: New file.
36280
36281         Tests for module 'unistr/u32-strmblen'.
36282         * modules/unistr/u32-strmblen-tests: New file.
36283         * tests/unistr/test-u32-strmblen.c: New file.
36284
36285         Tests for module 'unistr/u16-strmblen'.
36286         * modules/unistr/u16-strmblen-tests: New file.
36287         * tests/unistr/test-u16-strmblen.c: New file.
36288
36289         Tests for module 'unistr/u8-strmblen'.
36290         * modules/unistr/u8-strmblen-tests: New file.
36291         * tests/unistr/test-u8-strmblen.c: New file.
36292
36293         Tests for module 'unistr/u32-cpy-alloc'.
36294         * modules/unistr/u32-cpy-alloc-tests: New file.
36295         * tests/unistr/test-u32-cpy-alloc.c: New file.
36296
36297         Tests for module 'unistr/u16-cpy-alloc'.
36298         * modules/unistr/u16-cpy-alloc-tests: New file.
36299         * tests/unistr/test-u16-cpy-alloc.c: New file.
36300
36301         Tests for module 'unistr/u8-cpy-alloc'.
36302         * modules/unistr/u8-cpy-alloc-tests: New file.
36303         * tests/unistr/test-u8-cpy-alloc.c: New file.
36304         * tests/unistr/test-cpy-alloc.h: New file.
36305
36306         Tests for module 'unistr/u32-mbsnlen'.
36307         * modules/unistr/u32-mbsnlen-tests: New file.
36308         * tests/unistr/test-u32-mbsnlen.c: New file.
36309
36310         Tests for module 'unistr/u16-mbsnlen'.
36311         * modules/unistr/u16-mbsnlen-tests: New file.
36312         * tests/unistr/test-u16-mbsnlen.c: New file.
36313
36314         Tests for module 'unistr/u8-mbsnlen'.
36315         * modules/unistr/u8-mbsnlen-tests: New file.
36316         * tests/unistr/test-u8-mbsnlen.c: New file.
36317
36318         Tests for module 'unistr/u32-chr'.
36319         * modules/unistr/u32-chr-tests: New file.
36320         * tests/unistr/test-u32-chr.c: New file.
36321
36322         Tests for module 'unistr/u16-chr'.
36323         * modules/unistr/u16-chr-tests: New file.
36324         * tests/unistr/test-u16-chr.c: New file.
36325
36326         Tests for module 'unistr/u8-chr'.
36327         * modules/unistr/u8-chr-tests: New file.
36328         * tests/unistr/test-u8-chr.c: New file.
36329         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36330
36331         Tests for module 'unistr/u32-cmp2'.
36332         * modules/unistr/u32-cmp2-tests: New file.
36333         * tests/unistr/test-u32-cmp2.c: New file.
36334
36335         Tests for module 'unistr/u16-cmp2'.
36336         * modules/unistr/u16-cmp2-tests: New file.
36337         * tests/unistr/test-u16-cmp2.c: New file.
36338
36339         Tests for module 'unistr/u8-cmp2'.
36340         * modules/unistr/u8-cmp2-tests: New file.
36341         * tests/unistr/test-u8-cmp2.c: New file.
36342         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36343
36344         Tests for module 'unistr/u32-cmp'.
36345         * modules/unistr/u32-cmp-tests: New file.
36346         * tests/unistr/test-u32-cmp.c: New file.
36347
36348         Tests for module 'unistr/u16-cmp'.
36349         * modules/unistr/u16-cmp-tests: New file.
36350         * tests/unistr/test-u16-cmp.c: New file.
36351
36352         Tests for module 'unistr/u8-cmp'.
36353         * modules/unistr/u8-cmp-tests: New file.
36354         * tests/unistr/test-u8-cmp.c: New file.
36355         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36356
36357         Tests for module 'unistr/u32-set'.
36358         * modules/unistr/u32-set-tests: New file.
36359         * tests/unistr/test-u32-set.c: New file.
36360
36361         Tests for module 'unistr/u16-set'.
36362         * modules/unistr/u16-set-tests: New file.
36363         * tests/unistr/test-u16-set.c: New file.
36364
36365         Tests for module 'unistr/u8-set'.
36366         * modules/unistr/u8-set-tests: New file.
36367         * tests/unistr/test-u8-set.c: New file.
36368         * tests/unistr/test-set.h: New file.
36369
36370         Tests for module 'unistr/u32-move'.
36371         * modules/unistr/u32-move-tests: New file.
36372         * tests/unistr/test-u32-move.c: New file.
36373
36374         Tests for module 'unistr/u16-move'.
36375         * modules/unistr/u16-move-tests: New file.
36376         * tests/unistr/test-u16-move.c: New file.
36377
36378         Tests for module 'unistr/u8-move'.
36379         * modules/unistr/u8-move-tests: New file.
36380         * tests/unistr/test-u8-move.c: New file.
36381         * tests/unistr/test-move.h: New file.
36382
36383         Tests for module 'unistr/u32-cpy'.
36384         * modules/unistr/u32-cpy-tests: New file.
36385         * tests/unistr/test-u32-cpy.c: New file.
36386
36387         Tests for module 'unistr/u16-cpy'.
36388         * modules/unistr/u16-cpy-tests: New file.
36389         * tests/unistr/test-u16-cpy.c: New file.
36390
36391         Tests for module 'unistr/u8-cpy'.
36392         * modules/unistr/u8-cpy-tests: New file.
36393         * tests/unistr/test-u8-cpy.c: New file.
36394         * tests/unistr/test-cpy.h: New file.
36395
36396 2010-01-09  Bruno Haible  <bruno@clisp.org>
36397
36398         Tests for module 'unistr/u32-uctomb'.
36399         * modules/unistr/u32-uctomb-tests: New file.
36400         * tests/unistr/test-u32-uctomb.c: New file.
36401
36402         Tests for module 'unistr/u16-uctomb'.
36403         * modules/unistr/u16-uctomb-tests: New file.
36404         * tests/unistr/test-u16-uctomb.c: New file.
36405
36406         Tests for module 'unistr/u8-uctomb'.
36407         * modules/unistr/u8-uctomb-tests: New file.
36408         * tests/unistr/test-u8-uctomb.c: New file.
36409
36410         Tests for module 'unistr/u32-mbtoucr'.
36411         * modules/unistr/u32-mbtoucr-tests: New file.
36412         * tests/unistr/test-u32-mbtoucr.c: New file.
36413
36414         Tests for module 'unistr/u16-mbtoucr'.
36415         * modules/unistr/u16-mbtoucr-tests: New file.
36416         * tests/unistr/test-u16-mbtoucr.c: New file.
36417
36418         Tests for module 'unistr/u8-mbtoucr'.
36419         * modules/unistr/u8-mbtoucr-tests: New file.
36420         * tests/unistr/test-u8-mbtoucr.c: New file.
36421
36422         Tests for module 'unistr/u32-mbtouc'.
36423         * modules/unistr/u32-mbtouc-tests: New file.
36424         * tests/unistr/test-u32-mbtouc.c: New file.
36425
36426         Tests for module 'unistr/u16-mbtouc'.
36427         * modules/unistr/u16-mbtouc-tests: New file.
36428         * tests/unistr/test-u16-mbtouc.c: New file.
36429
36430         Tests for module 'unistr/u8-mbtouc'.
36431         * modules/unistr/u8-mbtouc-tests: New file.
36432         * tests/unistr/test-u8-mbtouc.c: New file.
36433
36434         Tests for module 'unistr/u32-mbtouc-unsafe'.
36435         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36436         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36437         * tests/unistr/test-u32-mbtouc.h: New file.
36438
36439         Tests for module 'unistr/u16-mbtouc-unsafe'.
36440         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36441         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36442         * tests/unistr/test-u16-mbtouc.h: New file.
36443
36444         Tests for module 'unistr/u8-mbtouc-unsafe'.
36445         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36446         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36447         * tests/unistr/test-u8-mbtouc.h: New file.
36448
36449         Tests for module 'unistr/u32-mblen'.
36450         * modules/unistr/u32-mblen-tests: New file.
36451         * tests/unistr/test-u32-mblen.c: New file.
36452
36453         Tests for module 'unistr/u16-mblen'.
36454         * modules/unistr/u16-mblen-tests: New file.
36455         * tests/unistr/test-u16-mblen.c: New file.
36456
36457         Tests for module 'unistr/u8-mblen'.
36458         * modules/unistr/u8-mblen-tests: New file.
36459         * tests/unistr/test-u8-mblen.c: New file.
36460
36461         Tests for module 'unistr/u32-to-u16'.
36462         * modules/unistr/u32-to-u16-tests: New file.
36463         * tests/unistr/test-u32-to-u16.c: New file.
36464
36465         Tests for module 'unistr/u32-to-u8'.
36466         * modules/unistr/u32-to-u8-tests: New file.
36467         * tests/unistr/test-u32-to-u8.c: New file.
36468
36469         Tests for module 'unistr/u16-to-u32'.
36470         * modules/unistr/u16-to-u32-tests: New file.
36471         * tests/unistr/test-u16-to-u32.c: New file.
36472
36473         Tests for module 'unistr/u16-to-u8'.
36474         * modules/unistr/u16-to-u8-tests: New file.
36475         * tests/unistr/test-u16-to-u8.c: New file.
36476
36477         Tests for module 'unistr/u8-to-u32'.
36478         * modules/unistr/u8-to-u32-tests: New file.
36479         * tests/unistr/test-u8-to-u32.c: New file.
36480
36481         Tests for module 'unistr/u8-to-u16'.
36482         * modules/unistr/u8-to-u16-tests: New file.
36483         * tests/unistr/test-u8-to-u16.c: New file.
36484
36485         Tests for module 'unistr/u32-check'.
36486         * modules/unistr/u32-check-tests: New file.
36487         * tests/unistr/test-u32-check.c: New file.
36488
36489         Tests for module 'unistr/u16-check'.
36490         * modules/unistr/u16-check-tests: New file.
36491         * tests/unistr/test-u16-check.c: New file.
36492
36493         Tests for module 'unistr/u8-check'.
36494         * modules/unistr/u8-check-tests: New file.
36495         * tests/unistr/test-u8-check.c: New file.
36496
36497         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36498         (category_equals): New function.
36499         (main): Add more tests.
36500         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36501
36502         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36503
36504 2010-01-10  Bruno Haible  <bruno@clisp.org>
36505
36506         unistr/u*-strcoll: Try harder to distinguish different strings.
36507         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36508         compare s1 and s2 to see if they are different.
36509
36510 2010-01-10  Bruno Haible  <bruno@clisp.org>
36511
36512         unistr/u*-stpncpy: Fix the return value.
36513         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36514         description of the return value consistent with stpncpy in glibc.
36515         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36516         written non-NUL unit.
36517
36518 2010-01-10  Bruno Haible  <bruno@clisp.org>
36519
36520         unistr/u*-next: Add missing dependencies.
36521         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36522         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36523         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36524
36525 2010-01-10  Bruno Haible  <bruno@clisp.org>
36526
36527         unistr/u8-mbsnlen: Fix return value for incomplete character.
36528         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36529         u8_mblen.
36530         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36531         Remove unistr/u8-mblen.
36532         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36533         u16_mblen.
36534         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36535         Remove unistr/u16-mblen.
36536
36537 2010-01-10  Bruno Haible  <bruno@clisp.org>
36538
36539         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36540         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36541         Reported by Brian Gough <bjg@gnu.org> and
36542         Chris Clayton <chris2553@googlemail.com> via
36543         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36544
36545 2010-01-09  Bruno Haible  <bruno@clisp.org>
36546
36547         unistr/u16-to-u32: Reject invalid input.
36548         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36549         u16_mbtouc.
36550         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36551         Remove unistr/u16-mbtouc.
36552
36553         unistr/u16-to-u8: Reject invalid input.
36554         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36555         u16_mbtouc.
36556         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36557         Remove unistr/u16-mbtouc.
36558
36559         unistr/u8-to-u32: Reject invalid input.
36560         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36561         u8_mbtouc.
36562         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36563         Remove unistr/u8-mbtouc.
36564
36565         unistr/u8-to-u16: Reject invalid input.
36566         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36567         u8_mbtouc.
36568         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36569         Remove unistr/u8-mbtouc.
36570
36571 2010-01-09  Bruno Haible  <bruno@clisp.org>
36572
36573         Tests for module 'getlogin'.
36574         * modules/getlogin-tests: New file.
36575         * tests/test-getlogin.c: New file.
36576
36577         New module 'getlogin'.
36578         * lib/unistd.in.h (getlogin): New declaration.
36579         * lib/getlogin.c: New file.
36580         * m4/getlogin.m4: New file.
36581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36582         HAVE_GETLOGIN.
36583         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36584         HAVE_GETLOGIN.
36585         * modules/getlogin: New file.
36586         * doc/posix-functions/getlogin.texi: Mention the new module.
36587         Reported by John W. Eaton <jwe@gnu.org>.
36588
36589 2010-01-09  Bruno Haible  <bruno@clisp.org>
36590
36591         getlogin_r: Support for native Windows.
36592         * lib/getlogin_r.c: Include <windows.h>
36593         (getlogin_r): Implement for native Windows.
36594         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36595         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36596         via John W. Eaton <jwe@gnu.org>.
36597
36598 2010-01-09  Bruno Haible  <bruno@clisp.org>
36599
36600         getlogin_r: Small fixes.
36601         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36602         succeeds.
36603         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36604         before testing whether getlogin_r is declared. No need to set
36605         HAVE_DECL_GETLOGIN_R to 1.
36606         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36607
36608 2010-01-09  Bruno Haible  <bruno@clisp.org>
36609
36610         * lib/unistd.in.h (getlogin_r): Add comment.
36611
36612 2010-01-09  Bruno Haible  <bruno@clisp.org>
36613
36614         Tests for module 'getlogin_r'.
36615         * modules/getlogin_r-tests: New file.
36616         * tests/test-getlogin_r.c: New file.
36617
36618 2010-01-09  Jim Meyering  <meyering@redhat.com>
36619
36620         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36621         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36622         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36623
36624 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36625
36626         * lib/dup2.c (rpl_dup2): Improve comment.
36627
36628 2010-01-08  Eric Blake  <ebb9@byu.net>
36629
36630         maint.mk: allow packages to add makefile @@ exceptions
36631         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36632         (sc_makefile_check): Rename...
36633         (sc_makefile_at_at_check): ...to this, and use hook.
36634
36635         dup2: work around mingw bug
36636         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36637         Reported by Simon Josefsson.
36638
36639 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36640
36641         glob: Fix C++ compilation.
36642         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36643         C++.
36644
36645 2010-01-07  Bruno Haible  <bruno@clisp.org>
36646
36647         Fix indentation of wctype.in.h, broken since 2007-01-06.
36648         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36649
36650 2010-01-07  Bruno Haible  <bruno@clisp.org>
36651
36652         mbslen: Avoid collision with system function.
36653         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36654         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36655         * m4/mbslen.m4: New file.
36656         * modules/mbslen (Files): Add it.
36657         (configure.ac): Invoke gl_MBSLEN.
36658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36659         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36660         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36661         via Ian Beckwith <ianb@erislabs.net>.
36662
36663 2010-01-07  Bruno Haible  <bruno@clisp.org>
36664
36665         dirent: Document the last fix.
36666         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36667
36668 2010-01-07  Bruno Haible  <bruno@clisp.org>
36669
36670         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36671         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36672         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36673         va_list are defined.
36674         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36675         Reported by Eric Blake.
36676
36677 2010-01-07  Bruno Haible  <bruno@clisp.org>
36678
36679         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36680         * modules/xlist (Depends-on): Add 'list',
36681         * modules/xoset (Depends-on): Add 'oset'.
36682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36683
36684 2010-01-07  Bruno Haible  <bruno@clisp.org>
36685
36686         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36687         * doc/posix-functions/strncasecmp.texi: Likewise.
36688
36689 2010-01-07  Bruno Haible  <bruno@clisp.org>
36690
36691         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36692
36693 2010-01-07  John W. Eaton  <jwe@octave.org>
36694
36695         wctype: allow C++ use
36696         * lib/wctype.in.h: Add extern "C" block for C++.
36697
36698 2010-01-06  Eric Blake  <ebb9@byu.net>
36699
36700         maint.mk: detect incorrect GFDL usage
36701         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36702
36703 2010-01-06  Jim Meyering  <meyering@redhat.com>
36704         and Eric Blake  <ebb9@byu.net>
36705
36706         maint.mk: ignore multi-line copyright in NEWS
36707         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36708
36709 2010-01-06  Eric Blake  <ebb9@byu.net>
36710
36711         select: add missing dependency
36712         * modules/select-tests (Depends-on): Move sockets dependency...
36713         * modules/select (Depends-on): ...here.
36714         Reported by Ian Beckwith.
36715
36716         doc: regenerate INSTALL
36717         * doc/INSTALL: Reflect recent autoconf update.
36718         * doc/INSTALL.ISO: Likewise.
36719         * doc/INSTALL.UTF-8: Likewise.
36720
36721         pread: fix compilation on glibc
36722         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36723         Reported by Ralf Wildenhues.
36724
36725         dirent: fix test failure
36726         * lib/dirent.in.h (includes): Guarantee ino_t.
36727         Reported by Ralf Wildenhues.
36728
36729 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36730
36731         linkat, renameat: avoid bad free
36732         * lib/at-func2.c (at_func2): Fix typo.
36733         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36734
36735 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36736
36737         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36738         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36739         to avoid failure of symlink test later.
36740
36741 2010-01-06  Eric Blake  <ebb9@byu.net>
36742
36743         stdio, unistd: guarantee ssize_t
36744         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36745         2008 are exposed when needed.
36746         * lib/stdio.in.h (includes): Likewise.
36747         Reported by Ralf Wildenhues.
36748
36749 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36750
36751         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36752         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36753         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36754
36755 2010-01-06  Jim Meyering  <meyering@redhat.com>
36756
36757         readtokens: this module *does* require xalloc.h
36758         It uses only functions that were omitted by the old syntax-check rule.
36759         * lib/readtokens.c: Include "xalloc.h" once again.
36760         * modules/readtokens (Depends-on): Add xalloc.
36761         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36762
36763 2010-01-05  Eric Blake  <ebb9@byu.net>
36764
36765         maint: support 'make announcement' from a VPATH build
36766         * top/maint.mk (announcement): Look for correct NEWS file.
36767
36768 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36769
36770         utimens (fdutimens): ignore a negative FD, per contract
36771         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36772         when we have a valid file descriptor.  Otherwise, using a brand
36773         new glibc (with just-patched futimens that now fails with EBADF)
36774         would cause this function to fail with ENOSYS.
36775         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36776         See also http://bugzilla.redhat.com/552320.
36777
36778 2010-01-05  Eric Blake  <ebb9@byu.net>
36779
36780         strcase: document what it provides
36781         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36782         gnulib module.
36783         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36784         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36785
36786 2010-01-05  Jim Meyering  <meyering@redhat.com>
36787
36788         maint: remove useless inclusions of "xalloc.h"
36789         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36790         * lib/readtokens.c: Likewise.
36791         * lib/same.c: Likewise.
36792         * modules/getloadavg (Depends-on): Remove xalloc.
36793         * modules/readtokens: Likewise.
36794         * modules/same: Likewise.
36795
36796         maint.mk: include 4 more function names in alloca.h-checking regexp
36797         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36798         regexp.  Before, we would give a false-positive (saying alloca.h
36799         is included unnecessarily) when the only uses involved omitted symbols.
36800
36801         xalloc.h: use consistent formatting
36802         * lib/xalloc.h: Move declarations to start in the first column.
36803
36804 2010-01-05  Eric Blake  <ebb9@byu.net>
36805
36806         mkdir: avoid xalloc
36807         * lib/mkdir.c (includes): Drop unused header.
36808         Reported by John W. Eaton.
36809
36810 2010-01-04  Jim Meyering  <meyering@redhat.com>
36811
36812         nl_langinfo: avoid configure-time syntax error
36813         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36814         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36815         the empty string.  Don't let that provoke a shell syntax error.
36816
36817         regcomp, regexec, fnmatch: avoid array bounds read error
36818         * lib/regcomp.c (build_equiv_class): From glibc:
36819         Use only the low 24 bits of a findidx return value as an index
36820         into the weights array.  Patch by Ulrich Drepper:
36821         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36822         * lib/regexec.c (check_node_accept_bytes): Likewise.
36823         * lib/fnmatch_loop.c (FCT): Likewise.
36824
36825         regcomp: skip collseq lookup when there are no rules
36826         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36827         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36828
36829         regcomp: recognize ill-formed { } expressions
36830         * lib/regcomp.c (parse_dup_op): From glibc:
36831         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36832
36833         regcomp: fix typo in comment
36834         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36835         s/satisfy/satisfies/.
36836
36837         regcomp: sync from glibc: remove dead store
36838         * lib/regcomp.c (duplicate_node_closure): Remove useless
36839         search_duplicated_node call and dead store.
36840
36841         regcomp: sync from glibc; always use nl_langinfo
36842         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36843         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36844         * modules/regex (Depends-on): Add nl_langinfo.
36845
36846 2010-01-04  Eric Blake  <ebb9@byu.net>
36847
36848         fdopendir: fix configure test
36849         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36850
36851 2010-01-01  Bruno Haible  <bruno@clisp.org>
36852
36853         wchar: Remove unused configure check.
36854         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36855
36856 2010-01-01  Eric Blake  <ebb9@byu.net>
36857
36858         headers: make check of system header explicit
36859         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36860         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36861         ourselves.
36862         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36864         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36865         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36866         internals.
36867         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36868         missing.
36869         Suggested by Bruno Haible.
36870
36871 2010-01-01  Jim Meyering  <meyering@redhat.com>
36872
36873         ChangeLog: tweak to eliminate unnecessary copyright line
36874         * ChangeLog: Remove a copyright line that was mistakenly updated
36875         by today's update-copyright run.  Reported by Eric Blake.
36876
36877         test-update-copyright: don't let envvar setting cause test failure
36878         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36879
36880 2010-01-01  Bruno Haible  <bruno@clisp.org>
36881
36882         localename: Avoid gcc warning.
36883         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36884         function if it is not used.
36885
36886 2010-01-01  Jim Meyering  <meyering@redhat.com>
36887
36888         update nearly all FSF copyright year lists to include 2010
36889         Use the same procedure as for 2009, outlined in
36890         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36891
36892         version-etc: set COPYRIGHT_YEAR to 2010
36893         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36894
36895 2009-12-31  Eric Blake  <ebb9@byu.net>
36896
36897         doc: correct availability of cygwin 1.5.x getopt
36898         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36899         variables.
36900         * doc/posix-functions/opterr.texi (opterr): Likewise.
36901         * doc/posix-functions/optind.texi (optind): Likewise.
36902         * doc/posix-functions/optopt.texi (optopt): Likewise.
36903         * doc/posix-functions/tzname.texi (tzname): Likewise.
36904
36905         openat: update maintainer
36906         * modules/openat (Maintainer): Add myself.
36907
36908         utimens: avoid shadowing warning
36909         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36910         buffers into one, to avoid shadowing, as well as avoiding a
36911         redundant stat.
36912         Reported by Jim Meyering.
36913
36914         test-dup2: avoid compiler warning
36915         * tests/test-dup2.c (is_inheritable): Only define if used.
36916
36917 2010-01-01  Bruno Haible  <bruno@clisp.org>
36918
36919         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36920         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36921         defined, use wctomb instead of wcrtomb.
36922
36923 2010-01-01  Bruno Haible  <bruno@clisp.org>
36924
36925         iconv: Reject native Solaris iconv.
36926         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36927         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36928
36929 2009-12-31  Bruno Haible  <bruno@clisp.org>
36930
36931         * tests/test-signal.c (main): Remove test of 'SIG'.
36932
36933 2009-12-31  Bruno Haible  <bruno@clisp.org>
36934
36935         spawn: Fix incomplete fix.
36936         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36937         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36938         warnings for GNULIB_POSIXCHECK again.
36939         Reported by Eric Blake.
36940
36941 2009-12-31  Bruno Haible  <bruno@clisp.org>
36942
36943         Avoid namespace pollution on glibc systems.
36944         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36945         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36946         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36947         glibc systems.
36948
36949 2009-12-31  Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36952         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36953         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36954         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36955         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36956         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36957         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36958
36959 2009-12-31  Bruno Haible  <bruno@clisp.org>
36960
36961         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36962         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36963         afterwards.
36964
36965 2009-12-31  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36968         SYS_UTSNAME_H.
36969
36970 2009-12-31  Bruno Haible  <bruno@clisp.org>
36971
36972         spawn: Fix misapplied patch.
36973         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36974         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36975         warnings for GNULIB_POSIXCHECK.
36976
36977 2009-12-31  Bruno Haible  <bruno@clisp.org>
36978
36979         times: Update after sys_times changed.
36980         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36981         * modules/times (Files): Add it.
36982         (configure.ac): Invoke gl_FUNC_TIMES.
36983
36984 2009-12-31  Bruno Haible  <bruno@clisp.org>
36985
36986         Use AC_C_INLINE where necessary.
36987         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36988         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36990         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36991         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36992         * m4/mbiter.m4 (gl_MBITER): Likewise.
36993         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36994         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36995         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36996         * modules/u64 (configure.ac): Likewise.
36997
36998 2009-12-31  Bruno Haible  <bruno@clisp.org>
36999
37000         Use AC_C_INLINE instead of module 'inline' where possible.
37001         * modules/inline (Description): Clarify purpose.
37002         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37003         * modules/count-one-bits (Depends-on): Remove inline.
37004         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37005         * modules/openat (Depends-on): Remove inline.
37006         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37007         instead of depending on module 'inline'.
37008         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37009         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37010         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37011         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37012         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37013         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37014         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37015         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37016         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37017         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37018         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37019         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37020         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37021         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37022         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37023         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37024         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37025         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37026         Likewise.
37027         * modules/unictype/property-ascii-hex-digit (Depends-on,
37028         configure.ac): Likewise.
37029         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37030         configure.ac): Likewise.
37031         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37032         configure.ac): Likewise.
37033         * modules/unictype/property-bidi-block-separator (Depends-on,
37034         configure.ac): Likewise.
37035         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37036         configure.ac): Likewise.
37037         * modules/unictype/property-bidi-common-separator (Depends-on,
37038         configure.ac): Likewise.
37039         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37040         Likewise.
37041         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37042         configure.ac): Likewise.
37043         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37044         configure.ac): Likewise.
37045         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37046         configure.ac): Likewise.
37047         * modules/unictype/property-bidi-european-digit (Depends-on,
37048         configure.ac): Likewise.
37049         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37050         configure.ac): Likewise.
37051         * modules/unictype/property-bidi-left-to-right (Depends-on,
37052         configure.ac): Likewise.
37053         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37054         configure.ac): Likewise.
37055         * modules/unictype/property-bidi-other-neutral (Depends-on,
37056         configure.ac): Likewise.
37057         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37058         Likewise.
37059         * modules/unictype/property-bidi-segment-separator (Depends-on,
37060         configure.ac): Likewise.
37061         * modules/unictype/property-bidi-whitespace (Depends-on,
37062         configure.ac): Likewise.
37063         * modules/unictype/property-combining (Depends-on, configure.ac):
37064         Likewise.
37065         * modules/unictype/property-composite (Depends-on, configure.ac):
37066         Likewise.
37067         * modules/unictype/property-currency-symbol (Depends-on,
37068         configure.ac): Likewise.
37069         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37070         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37071         Likewise.
37072         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37073         configure.ac): Likewise.
37074         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37075         Likewise.
37076         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37077         Likewise.
37078         * modules/unictype/property-extender (Depends-on, configure.ac):
37079         Likewise.
37080         * modules/unictype/property-format-control (Depends-on, configure.ac):
37081         Likewise.
37082         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37083         Likewise.
37084         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37085         Likewise.
37086         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37087         Likewise.
37088         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37089         Likewise.
37090         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37091         Likewise.
37092         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37093         Likewise.
37094         * modules/unictype/property-id-start (Depends-on, configure.ac):
37095         Likewise.
37096         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37097         Likewise.
37098         * modules/unictype/property-ids-binary-operator (Depends-on,
37099         configure.ac): Likewise.
37100         * modules/unictype/property-ids-trinary-operator (Depends-on,
37101         configure.ac): Likewise.
37102         * modules/unictype/property-ignorable-control (Depends-on,
37103         configure.ac): Likewise.
37104         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37105         Likewise.
37106         * modules/unictype/property-join-control (Depends-on, configure.ac):
37107         Likewise.
37108         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37109         Likewise.
37110         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37111         Likewise.
37112         * modules/unictype/property-logical-order-exception (Depends-on,
37113         configure.ac): Likewise.
37114         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37115         Likewise.
37116         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37117         * modules/unictype/property-non-break (Depends-on, configure.ac):
37118         Likewise.
37119         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37120         Likewise.
37121         * modules/unictype/property-numeric (Depends-on, configure.ac):
37122         Likewise.
37123         * modules/unictype/property-other-alphabetic (Depends-on,
37124         configure.ac): Likewise.
37125         * modules/unictype/property-other-default-ignorable-code-point
37126         (Depends-on, configure.ac): Likewise.
37127         * modules/unictype/property-other-grapheme-extend (Depends-on,
37128         configure.ac): Likewise.
37129         * modules/unictype/property-other-id-continue (Depends-on,
37130         configure.ac): Likewise.
37131         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37132         Likewise.
37133         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37134         Likewise.
37135         * modules/unictype/property-other-math (Depends-on, configure.ac):
37136         Likewise.
37137         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37138         Likewise.
37139         * modules/unictype/property-paired-punctuation (Depends-on,
37140         configure.ac): Likewise.
37141         * modules/unictype/property-paragraph-separator (Depends-on,
37142         configure.ac): Likewise.
37143         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37144         Likewise.
37145         * modules/unictype/property-pattern-white-space (Depends-on,
37146         configure.ac): Likewise.
37147         * modules/unictype/property-private-use (Depends-on, configure.ac):
37148         Likewise.
37149         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37150         Likewise.
37151         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37152         Likewise.
37153         * modules/unictype/property-radical (Depends-on, configure.ac):
37154         Likewise.
37155         * modules/unictype/property-sentence-terminal (Depends-on,
37156         configure.ac): Likewise.
37157         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37158         Likewise.
37159         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37160         * modules/unictype/property-terminal-punctuation (Depends-on,
37161         configure.ac): Likewise.
37162         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37163         Likewise.
37164         * modules/unictype/property-unassigned-code-value (Depends-on,
37165         configure.ac): Likewise.
37166         * modules/unictype/property-unified-ideograph (Depends-on,
37167         configure.ac): Likewise.
37168         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37169         Likewise.
37170         * modules/unictype/property-variation-selector (Depends-on,
37171         configure.ac): Likewise.
37172         * modules/unictype/property-white-space (Depends-on, configure.ac):
37173         Likewise.
37174         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37175         Likewise.
37176         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37177         Likewise.
37178         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37179         Likewise.
37180         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37181         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37182         Likewise.
37183
37184 2009-12-31  Bruno Haible  <bruno@clisp.org>
37185
37186         Remove unnecessary AC_C_INLINE invocation.
37187         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37188         since 2009-08-21.
37189
37190 2009-12-31  Jim Meyering  <meyering@redhat.com>
37191
37192         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37193         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37194         With this change, we can all remove the gpg_key_ID = ... definition
37195         from our respective cfg.mk files.
37196
37197         maint.mk: create announcement template in ~/, not in /tmp
37198         * top/maint.mk (emit_upload_commands): Adjust.
37199         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37200         Remove temporary file, .ci-msg.
37201
37202 2009-12-31  Eric Blake  <ebb9@byu.net>
37203
37204         link-warning: always build headers with link warnings
37205         * modules/arpa_inet (Makefile.am): Always build replacement
37206         header.
37207         * modules/ctype (Makefile.am): Likewise.
37208         * modules/dirent (Makefile.am): Likewise.
37209         * modules/inttypes (Makefile.am): Likewise.
37210         * modules/langinfo (Makefile.am): Likewise.
37211         * modules/locale (Makefile.am): Likewise.
37212         * modules/spawn (Makefile.am): Likewise.
37213         * modules/sys_file (Makefile.am): Likewise.
37214         * modules/sys_ioctl (Makefile.am): Likewise.
37215         * modules/sys_select (Makefile.am): Likewise.
37216         * modules/sys_socket (Makefile.am): Likewise.
37217         * modules/sys_times (Makefile.am): Likewise.
37218         * modules/sys_utsname (Makefile.am): Likewise.
37219         * modules/sys_wait (Makefile.am): Likewise.
37220         * modules/wchar (Makefile.am): Likewise.
37221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37222         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37223         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37224         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37225         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37226         Likewise.
37227         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37228         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37229         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37230         Likewise.
37231         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37232         Likewise.
37233         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37234         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37235         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37237         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37238         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37239         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37240         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37241         (gl_WCHAR_H_DEFAULTS): Likewise.
37242
37243 2009-12-31  Eric Blake  <ebb9@byu.net>
37244
37245         signal, spawn: use link warnings
37246         * lib/signal.in.h (sigset_t): Make unconditional.
37247         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37248         (sigpending, sigprocmask, sigaction): Add link warnings.
37249         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37250         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37251         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37252         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37253         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37254         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37255         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37256         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37257         (posix_spawn_file_actions_destroy)
37258         (posix_spawn_file_actions_addopen)
37259         (posix_spawn_file_actions_addclose)
37260         (posix_spawn_file_actions_adddup2): Likewise.
37261         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37262         * tests/test-signal.c (main): Enhance test.
37263
37264         spawn: improve wrapper support
37265         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37266         (gl_SPAWN_H_DEFAULTS): New defaults.
37267         * modules/spawn (Makefile.am): Substitute them.
37268         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37269         Only declare if missing or broken.
37270
37271         sys_times, sys_utsname: use include_next
37272         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37273         header.
37274         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37275         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37276         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37277         * modules/sys_times (Depends-on): Add include_next.
37278         (Makefile.am): Substitute additional values.
37279         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37280         * lib/sys_times.in.h (includes): Include native header, if
37281         available.
37282         * lib/sys_utsname.in.h (includes): Likewise.
37283         * tests/test-sys_times.c (main): Enhance test.
37284
37285         fdutimensat: revert prior patch
37286         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37287         utimens.h.
37288         Reported by Bruno Haible.
37289
37290 2009-12-30  Eric Blake  <ebb9@byu.net>
37291
37292         sys_wait: drop link-warning dependency
37293         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37294         link-warning efforts.
37295         * lib/sys_wait.in.h: Likewise.
37296
37297         fdutimensat: remove bogus dependency
37298         * modules/fdutimensat (Depends-on): Drop inline.
37299
37300         unistd: fix typo
37301         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37302
37303 2009-12-30  Bruno Haible  <bruno@clisp.org>
37304
37305         Fix compilation error with Solaris cc.
37306         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37307         * lib/unicase/u16-is-invariant.c: Likewise.
37308         * lib/unicase/u32-is-invariant.c: Likewise.
37309         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37310
37311 2009-12-30  Bruno Haible  <bruno@clisp.org>
37312
37313         Fix test crash.
37314         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37315         locales.
37316         Reported by Simon Josefsson <simon@josefsson.org>.
37317
37318 2009-12-30  Bruno Haible  <bruno@clisp.org>
37319
37320         Fix compilation error on most platforms.
37321         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37322         Reported by Simon Josefsson <simon@josefsson.org>
37323         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37324
37325 2009-12-30  Eric Blake  <ebb9@byu.net>
37326
37327         futimens, utimensat: work around ntfs-3g bug
37328         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37329         a ctime bug is present, and expand workaround to cover ntfs-3g.
37330         * lib/utimens.c (fdutimens, lutimens): Likewise.
37331         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37332         (validate_timespec): Adjust return value.
37333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37334         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37335         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37336
37337 2009-12-29  Eric Blake  <ebb9@byu.net>
37338
37339         link-warning: make usage consistent
37340         * modules/ctype (Depends-on): Add link-warning.
37341         (Makefile.am): Update rules accordingly.
37342         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37343         * modules/locale (Depends-on, Makefile.am): Likewise.
37344         * modules/sys_file (Makefile.am): Likewise.
37345         * modules/getopt-posix (Makefile.am): Delete unused link warning
37346         efforts.
37347         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37348         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37349         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37350         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37351
37352         stdio: remove unused variables
37353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37355         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37356
37357         tests: test more substitute headers
37358         * modules/ctype-tests: New file.
37359         * modules/dirent-tests: Likewise.
37360         * modules/spawn-tests: Likewise.
37361         * modules/sys_file-tests: Likewise.
37362         * modules/sys_ioctl-tests: Likewise.
37363         * modules/sys_wait-tests: Likewise.
37364         * tests/test-ctype.c: Likewise.
37365         * tests/test-dirent.c: Likewise.
37366         * tests/test-spawn.c: Likewise.
37367         * tests/test-sys_file.c: Likewise.
37368         * tests/test-sys_ioctl.c: Likewise.
37369         * tests/test-sys_wait.c: Likewise.
37370         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37371         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37372         whether or not flock is in use.
37373
37374         tests: remove License section from module
37375         * modules/arpa_inet-tests: Remove unneeded section.
37376         * modules/byteswap-tests: Likewise.
37377         * modules/ceilf-tests: Likewise.
37378         * modules/ceill-tests: Likewise.
37379         * modules/crypto/des-tests: Likewise.
37380         * modules/crypto/gc-arcfour-tests: Likewise.
37381         * modules/crypto/gc-arctwo-tests: Likewise.
37382         * modules/crypto/gc-des-tests: Likewise.
37383         * modules/crypto/gc-hmac-md5-tests: Likewise.
37384         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37385         * modules/crypto/gc-md2-tests: Likewise.
37386         * modules/crypto/gc-md4-tests: Likewise.
37387         * modules/crypto/gc-md5-tests: Likewise.
37388         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37389         * modules/crypto/gc-rijndael-tests: Likewise.
37390         * modules/crypto/gc-sha1-tests: Likewise.
37391         * modules/crypto/gc-tests: Likewise.
37392         * modules/crypto/md2-tests: Likewise.
37393         * modules/crypto/md4-tests: Likewise.
37394         * modules/fcntl-h-tests: Likewise.
37395         * modules/floorf-tests: Likewise.
37396         * modules/floorl-tests: Likewise.
37397         * modules/frexp-nolibm-tests: Likewise.
37398         * modules/frexp-tests: Likewise.
37399         * modules/frexpl-nolibm-tests: Likewise.
37400         * modules/frexpl-tests: Likewise.
37401         * modules/getaddrinfo-tests: Likewise.
37402         * modules/inttypes-tests: Likewise.
37403         * modules/isfinite-tests: Likewise.
37404         * modules/isinf-tests: Likewise.
37405         * modules/ldexpl-tests: Likewise.
37406         * modules/locale-tests: Likewise.
37407         * modules/math-tests: Likewise.
37408         * modules/netdb-tests: Likewise.
37409         * modules/netinet_in-tests: Likewise.
37410         * modules/printf-frexp-tests: Likewise.
37411         * modules/printf-frexpl-tests: Likewise.
37412         * modules/priv-set-tests: Likewise.
37413         * modules/random_r-tests: Likewise.
37414         * modules/round-tests: Likewise.
37415         * modules/roundf-tests: Likewise.
37416         * modules/roundl-tests: Likewise.
37417         * modules/search-tests: Likewise.
37418         * modules/select-tests: Likewise.
37419         * modules/signal-tests: Likewise.
37420         * modules/stdbool-tests: Likewise.
37421         * modules/stddef-tests: Likewise.
37422         * modules/stdint-tests: Likewise.
37423         * modules/stdio-tests: Likewise.
37424         * modules/stdlib-tests: Likewise.
37425         * modules/string-tests: Likewise.
37426         * modules/strings-tests: Likewise.
37427         * modules/sys_select-tests: Likewise.
37428         * modules/sys_socket-tests: Likewise.
37429         * modules/sys_stat-tests: Likewise.
37430         * modules/sys_time-tests: Likewise.
37431         * modules/sys_utsname-tests: Likewise.
37432         * modules/sysexits-tests: Likewise.
37433         * modules/time-tests: Likewise.
37434         * modules/trunc-tests: Likewise.
37435         * modules/truncf-tests: Likewise.
37436         * modules/truncl-tests: Likewise.
37437         * modules/tsearch-tests: Likewise.
37438         * modules/unistd-tests: Likewise.
37439         * modules/wchar-tests: Likewise.
37440         * modules/wctype-tests: Likewise.
37441
37442         tests: fix license on several tests
37443         * tests/test-des.c: Update to GPLv3+.
37444         * tests/test-flock.c: Likewise.
37445         * tests/test-fsync.c: Likewise.
37446         * tests/test-futimens.h: Likewise.
37447         * tests/test-gc-arcfour.c: Likewise.
37448         * tests/test-gc-arctwo.c: Likewise.
37449         * tests/test-gc-des.c: Likewise.
37450         * tests/test-gc-hmac-md5.c: Likewise.
37451         * tests/test-gc-hmac-sha1.c: Likewise.
37452         * tests/test-gc-md2.c: Likewise.
37453         * tests/test-gc-md4.c: Likewise.
37454         * tests/test-gc-md5.c: Likewise.
37455         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37456         * tests/test-gc-rijndael.c: Likewise.
37457         * tests/test-gc-sha1.c: Likewise.
37458         * tests/test-gc.c: Likewise.
37459         * tests/test-getcwd.c: Likewise.
37460         * tests/test-link.c: Likewise.
37461         * tests/test-link.h: Likewise.
37462         * tests/test-lutimens.h: Likewise.
37463         * tests/test-md2.c: Likewise.
37464         * tests/test-md4.c: Likewise.
37465         * tests/test-mkdir.h: Likewise.
37466         * tests/test-rename.c: Likewise.
37467         * tests/test-rename.h: Likewise.
37468         * tests/test-safe-alloc.c: Likewise.
37469         * tests/test-utimens-common.h: Likewise.
37470         * tests/test-utimens.h: Likewise.
37471
37472         maint: sync license texts
37473         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37474         * doc/gpl-3.0.texi: Revert copyright year update.
37475         * doc/lgpl-3.0.texi: Likewise.
37476
37477 2009-12-29  Jim Meyering  <meyering@redhat.com>
37478
37479         update nearly all FSF copyright year lists to include 2009
37480         The files named by the following are exempted:
37481             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37482               test -f "$dst" && { echo "$dst"; continue; }
37483               test -d "$dst" || continue
37484               echo "$dst"/$(basename "$src")
37485             done > exempt
37486             git ls-files tests/unictype >> exempt
37487         In the remaining files, convert to all-interval notation if
37488         - there is already at least one year interval like 2000-2003
37489         - the file is maintained by me
37490         - the file is in lib/uni*/, where that style already prevails
37491         Otherwise, use update-copyright's default.
37492
37493 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37494         and Eric Blake  <ebb9@byu.net>
37495
37496         tests: don't require debug system() to pass
37497         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37498         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37499         * tests/test-unlink.h (test_unlink_func): Likewise.
37500         * tests/test-fstatat.c (main): ...into callers.
37501         * tests/test-lstat.c (main): Likewise.
37502         * tests/test-rmdir.c (main): Likewise.
37503         * tests/test-unlink.c (main): Likewise.
37504         * tests/test-unlinkat.c (main): Likewise.
37505         * tests/test-areadlink-with-size.c (main): Don't require a
37506         debug-only system call to pass, aiding cross-testing to mingw.
37507         * tests/test-areadlink.c (main): Likewise.
37508         * tests/test-areadlinkat-with-size.c (main): Likewise.
37509         * tests/test-areadlinkat.c (main): Likewise.
37510         * tests/test-canonicalize-lgpl.c (main): Likewise.
37511         * tests/test-canonicalize.c (main): Likewise.
37512         * tests/test-chown.c (main): Likewise.
37513         * tests/test-fchownat.c (main): Likewise.
37514         * tests/test-lchown.c (main): Likewise.
37515         * tests/test-fdutimensat.c (main): Likewise.
37516         * tests/test-futimens.c (main): Likewise.
37517         * tests/test-link.c (main): Likewise.
37518         * tests/test-linkat.c (main): Likewise.
37519         * tests/test-mkdir.c (main): Likewise.
37520         * tests/test-mkdirat.c (main): Likewise.
37521         * tests/test-mkfifo.c (main): Likewise.
37522         * tests/test-mkfifoat.c (main): Likewise.
37523         * tests/test-mknod.c (main): Likewise.
37524         * tests/test-readlink.c (main): Likewise.
37525         * tests/test-remove.c (main): Likewise.
37526         * tests/test-rename.c (main): Likewise.
37527         * tests/test-renameat.c (main): Likewise.
37528         * tests/test-symlink.c (main): Likewise.
37529         * tests/test-symlinkat.c (main): Likewise.
37530         * tests/test-utimens.c (main): Likewise.
37531         * tests/test-utimensat.c (main): Likewise.
37532
37533 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37534
37535         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37536         on $(UNUSED_PARAMETER_H) to avoid build failure.
37537
37538 2009-12-28  Jim Meyering  <meyering@redhat.com>
37539
37540         update-copyright: you may specify a max. line length other than 72
37541         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37542
37543         maint: use consistent FSF copyright line syntax
37544         * lib/posixtm.c: Add missing comma in FSF copyright line.
37545         * lib/posixtm.h: Likewise.
37546         * lib/getugroups.c: Add missing ", Inc.".
37547
37548         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37549         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37550         FSF copyright line.  Remove trailing blanks.
37551
37552 2009-12-28  Eric Blake  <ebb9@byu.net>
37553
37554         test-dup2: reduce dependencies
37555         * modules/cloexec (Configure.ac): Set witness.
37556         * modules/dup2-tests (Depends-on): Drop cloexec.
37557         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37558         not present.
37559         Suggested by Bruno Haible.
37560
37561 2009-12-26  Bruno Haible  <bruno@clisp.org>
37562
37563         Remove an unneeded dependency.
37564         * modules/fseterr (Depends-on): Remove dup2.
37565
37566 2009-12-26  Eric Blake  <ebb9@byu.net>
37567
37568         tests: use macros.h in more places
37569         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37570         (ASSERT_STREAM): Provide default of stderr.
37571         * tests/test-dirent-safer.c: Include macros.h, using alternate
37572         stream for assertions.
37573         * tests/test-dup-safer.c: Likewise.
37574         * tests/test-freopen-safer.c: Likewise.
37575         * tests/test-getopt.c: Likewise.
37576         * tests/test-openat-safer.c: Likewise.
37577         * tests/test-pipe.c: Likewise.
37578         * tests/test-popen-safer.c: Likewise.
37579         * modules/dirent-safer-tests (Files): Include macros.h.
37580         * modules/unistd-safer-tests (Files): Likewise.
37581         * modules/freopen-safer-tests (Files): Likewise.
37582         * modules/getopt-posix-tests (Files): Likewise.
37583         * modules/openat-safer-tests (Files): Likewise.
37584         * modules/pipe-tests (Files): Likewise.
37585
37586 2009-12-26  Bruno Haible  <bruno@clisp.org>
37587
37588         javacomp: Portability fix.
37589         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37590         that it also works on Solaris.
37591
37592 2009-12-26  Bruno Haible  <bruno@clisp.org>
37593
37594         localename: Fix storage allocation of gl_locale_name_thread's result.
37595         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37596         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37597         all platforms that have 'uselocale'.
37598         (gl_locale_name_thread_unsafe): New function, extracted from
37599         gl_locale_name_thread.
37600         (gl_locale_name_thread): Call struniq on all platforms that have
37601         'uselocale'.
37602         * tests/test-localename.c (test_locale_name_thread): Check that the
37603         resulting strings are permanently allocated.
37604         * modules/localename-tests (Depends-on): Add strdup.
37605
37606 2009-12-26  Bruno Haible  <bruno@clisp.org>
37607
37608         * tests/test-localename.c (categories): Fill in the strings.
37609
37610 2009-12-26  Jim Meyering  <meyering@redhat.com>
37611
37612         isdir: complete the removal of m4/isdir.m4
37613         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37614
37615         isdir: clean up, since at least grep still uses it
37616         * lib/isdir.c: Include "isdir.h".
37617         (S_ISDIR): Remove now-unneeded definition.
37618         * modules/isdir (Files): Add lib/isdir.h.
37619         * lib/isdir.h: New file, with declaration.
37620         * m4/isdir.m4: Remove file -- unneeded.
37621
37622 2009-12-25  Bruno Haible  <bruno@clisp.org>
37623
37624         selinux-h: Make generated .h files standalone.
37625         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37626         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37627         * lib/se-selinux.in.h: Likewise.
37628         * modules/selinux-h (Depends-on): Add unused-parameter.
37629         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37630         selinux/selinux.h and selinux/context.h.
37631         Suggested by Eric Blake.
37632
37633 2009-12-25  Bruno Haible  <bruno@clisp.org>
37634
37635         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37636         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37637         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37638         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37639         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37640
37641 2009-12-24  Bruno Haible  <bruno@clisp.org>
37642
37643         openat: Fix warning.
37644         * lib/openat-proc.c: Include <unistd.h>.
37645
37646 2009-12-24  Bruno Haible  <bruno@clisp.org>
37647
37648         New module 'unused-parameter'.
37649         * build-aux/unused-parameter.h: New file, extracted from earlier
37650         gnulib-common.m4.
37651         * modules/unused-parameter: New file.
37652         * lib/unistr.h: Include unused-parameter.h.
37653         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37654         _GL_UNUSED.
37655         * modules/unistr/base (Depends-on): Add unused-parameter.
37656
37657 2009-12-24  Bruno Haible  <bruno@clisp.org>
37658
37659         Add missing dependencies to 'extensions' module.
37660         * m4/extensions.m4: Add comment.
37661         * modules/accept4 (Depends-on): Add extensions.
37662         * modules/dup3 (Depends-on): Likewise.
37663         * modules/fcntl (Depends-on): Likewise.
37664         * modules/futimens (Depends-on): Likewise.
37665         * modules/mknod (Depends-on): Likewise.
37666         * modules/pipe2 (Depends-on): Likewise.
37667         * modules/stat-time (Depends-on): Likewise.
37668         * modules/strcasestr-simple (Depends-on): Likewise.
37669         * modules/strsignal (Depends-on): Likewise.
37670         * modules/utimensat (Depends-on): Likewise.
37671         * modules/localcharset (Depends-on): Likewise. Needed because of
37672         gl_FCNTL_O_FLAGS.
37673         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37674         AC_TYPE_MBSTATE_T.
37675         * modules/wcsnrtombs (Depends-on): Likewise.
37676         * modules/wcsrtombs (Depends-on): Likewise.
37677
37678 2009-12-24  Bruno Haible  <bruno@clisp.org>
37679
37680         binary-io: Avoid gcc warning due to SET_BINARY.
37681         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37682         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37683
37684 2009-12-24  Bruno Haible  <bruno@clisp.org>
37685
37686         Avoid future namespace pollution on glibc systems.
37687         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37688         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37689         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37690         glibc systems.
37691
37692 2009-12-24  Bruno Haible  <bruno@clisp.org>
37693
37694         Refactor common macros used in tests.
37695         * tests/macros.h: New file.
37696         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37697         and/or <stdlib.h>, if appropriate.
37698         (ASSERT, SIZEOF): Remove macros.
37699         * tests/test-areadlink-with-size.c: Likewise.
37700         * tests/test-areadlinkat.c: Likewise.
37701         * tests/test-areadlinkat-with-size.c: Likewise.
37702         * tests/test-argmatch.c: Likewise.
37703         * tests/test-argv-iter.c: Likewise.
37704         * tests/test-array-mergesort.c: Likewise.
37705         * tests/test-array_list.c: Likewise.
37706         * tests/test-array_oset.c: Likewise.
37707         * tests/test-avltree_list.c: Likewise.
37708         * tests/test-avltree_oset.c: Likewise.
37709         * tests/test-avltreehash_list.c: Likewise.
37710         * tests/test-base64.c: Likewise.
37711         * tests/test-binary-io.c: Likewise.
37712         * tests/test-bitrotate.c: Likewise.
37713         * tests/test-btowc.c: Likewise.
37714         * tests/test-byteswap.c: Likewise.
37715         * tests/test-c-ctype.c: Likewise.
37716         * tests/test-c-stack.c: Likewise.
37717         * tests/test-c-strcasecmp.c: Likewise.
37718         * tests/test-c-strcasestr.c: Likewise.
37719         * tests/test-c-strncasecmp.c: Likewise.
37720         * tests/test-c-strstr.c: Likewise.
37721         * tests/test-canonicalize-lgpl.c: Likewise.
37722         * tests/test-canonicalize.c: Likewise.
37723         * tests/test-carray_list.c: Likewise.
37724         * tests/test-ceilf1.c: Likewise.
37725         * tests/test-ceilf2.c: Likewise.
37726         * tests/test-ceill.c: Likewise.
37727         * tests/test-chown.c: Likewise.
37728         * tests/test-cloexec.c: Likewise.
37729         * tests/test-copy-acl.c: Likewise.
37730         * tests/test-copy-file.c: Likewise.
37731         * tests/test-count-one-bits.c: Likewise.
37732         * tests/test-dprintf-posix.c: Likewise.
37733         * tests/test-dup2.c: Likewise.
37734         * tests/test-dup3.c: Likewise.
37735         * tests/test-duplocale.c: Likewise.
37736         * tests/test-fbufmode.c: Likewise.
37737         * tests/test-fchdir.c: Likewise.
37738         * tests/test-fchownat.c: Likewise.
37739         * tests/test-fcntl-safer.c: Likewise.
37740         * tests/test-fcntl.c: Likewise.
37741         * tests/test-fdopendir.c: Likewise.
37742         * tests/test-fdutimensat.c: Likewise.
37743         * tests/test-fflush2.c: Likewise.
37744         * tests/test-file-has-acl.c: Likewise.
37745         * tests/test-filevercmp.c: Likewise.
37746         * tests/test-flock.c: Likewise.
37747         * tests/test-floorf1.c: Likewise.
37748         * tests/test-floorf2.c: Likewise.
37749         * tests/test-floorl.c: Likewise.
37750         * tests/test-fnmatch.c: Likewise.
37751         * tests/test-fopen.h: Likewise.
37752         * tests/test-fpending.c: Likewise.
37753         * tests/test-fprintf-posix.c: Likewise.
37754         * tests/test-fpurge.c: Likewise.
37755         * tests/test-freadable.c: Likewise.
37756         * tests/test-freadahead.c: Likewise.
37757         * tests/test-freading.c: Likewise.
37758         * tests/test-freadptr.c: Likewise.
37759         * tests/test-freadptr2.c: Likewise.
37760         * tests/test-freadseek.c: Likewise.
37761         * tests/test-freopen.c: Likewise.
37762         * tests/test-frexp.c: Likewise.
37763         * tests/test-frexpl.c: Likewise.
37764         * tests/test-fseek.c: Likewise.
37765         * tests/test-fseeko.c: Likewise.
37766         * tests/test-fstatat.c: Likewise.
37767         * tests/test-fstrcmp.c: Likewise.
37768         * tests/test-fsync.c: Likewise.
37769         * tests/test-ftell.c: Likewise.
37770         * tests/test-ftello.c: Likewise.
37771         * tests/test-func.c: Likewise.
37772         * tests/test-futimens.c: Likewise.
37773         * tests/test-fwritable.c: Likewise.
37774         * tests/test-fwriting.c: Likewise.
37775         * tests/test-getcwd.c: Likewise.
37776         * tests/test-getdate.c: Likewise.
37777         * tests/test-getdelim.c: Likewise.
37778         * tests/test-getdtablesize.c: Likewise.
37779         * tests/test-getgroups.c: Likewise.
37780         * tests/test-getline.c: Likewise.
37781         * tests/test-getndelim2.c: Likewise.
37782         * tests/test-glob.c: Likewise.
37783         * tests/test-hash.c: Likewise.
37784         * tests/test-i-ring.c: Likewise.
37785         * tests/test-iconv-utf.c: Likewise.
37786         * tests/test-iconv.c: Likewise.
37787         * tests/test-idpriv-drop.c: Likewise.
37788         * tests/test-idpriv-droptemp.c: Likewise.
37789         * tests/test-inet_ntop.c: Likewise.
37790         * tests/test-inet_pton.c: Likewise.
37791         * tests/test-isblank.c: Likewise.
37792         * tests/test-isfinite.c: Likewise.
37793         * tests/test-isinf.c: Likewise.
37794         * tests/test-isnan.c: Likewise.
37795         * tests/test-isnand.h: Likewise.
37796         * tests/test-isnanf.h: Likewise.
37797         * tests/test-isnanl.h: Likewise.
37798         * tests/test-lchown.c: Likewise.
37799         * tests/test-ldexpl.c: Likewise.
37800         * tests/test-link.c: Likewise.
37801         * tests/test-linkat.c: Likewise.
37802         * tests/test-linked_list.c: Likewise.
37803         * tests/test-linkedhash_list.c: Likewise.
37804         * tests/test-localename.c: Likewise.
37805         * tests/test-lseek.c: Likewise.
37806         * tests/test-lstat.c: Likewise.
37807         * tests/test-mbmemcasecmp.c: Likewise.
37808         * tests/test-mbmemcasecoll.c: Likewise.
37809         * tests/test-mbrtowc.c: Likewise.
37810         * tests/test-mbscasecmp.c: Likewise.
37811         * tests/test-mbscasestr1.c: Likewise.
37812         * tests/test-mbscasestr2.c: Likewise.
37813         * tests/test-mbscasestr3.c: Likewise.
37814         * tests/test-mbscasestr4.c: Likewise.
37815         * tests/test-mbschr.c: Likewise.
37816         * tests/test-mbscspn.c: Likewise.
37817         * tests/test-mbsinit.c: Likewise.
37818         * tests/test-mbsncasecmp.c: Likewise.
37819         * tests/test-mbsnrtowcs.c: Likewise.
37820         * tests/test-mbspbrk.c: Likewise.
37821         * tests/test-mbspcasecmp.c: Likewise.
37822         * tests/test-mbsrchr.c: Likewise.
37823         * tests/test-mbsrtowcs.c: Likewise.
37824         * tests/test-mbsspn.c: Likewise.
37825         * tests/test-mbsstr1.c: Likewise.
37826         * tests/test-mbsstr2.c: Likewise.
37827         * tests/test-mbsstr3.c: Likewise.
37828         * tests/test-memchr.c: Likewise.
37829         * tests/test-memchr2.c: Likewise.
37830         * tests/test-memcmp.c: Likewise.
37831         * tests/test-memmem.c: Likewise.
37832         * tests/test-memrchr.c: Likewise.
37833         * tests/test-mkdir.c: Likewise.
37834         * tests/test-mkdirat.c: Likewise.
37835         * tests/test-mkfifo.c: Likewise.
37836         * tests/test-mkfifoat.c: Likewise.
37837         * tests/test-mknod.c: Likewise.
37838         * tests/test-nanosleep.c: Likewise.
37839         * tests/test-nl_langinfo.c: Likewise.
37840         * tests/test-obstack-printf.c: Likewise.
37841         * tests/test-open.c: Likewise.
37842         * tests/test-openat.c: Likewise.
37843         * tests/test-pipe-filter-gi1.c: Likewise.
37844         * tests/test-pipe-filter-gi2-main.c: Likewise.
37845         * tests/test-pipe-filter-ii1.c: Likewise.
37846         * tests/test-pipe-filter-ii2-main.c: Likewise.
37847         * tests/test-pipe2.c: Likewise.
37848         * tests/test-popen.h: Likewise.
37849         * tests/test-posixtm.c: Likewise.
37850         * tests/test-pread.c: Likewise.
37851         * tests/test-printf-frexp.c: Likewise.
37852         * tests/test-printf-frexpl.c: Likewise.
37853         * tests/test-printf-posix.c: Likewise.
37854         * tests/test-priv-set.c: Likewise.
37855         * tests/test-quotearg.c: Likewise.
37856         * tests/test-random_r.c: Likewise.
37857         * tests/test-rawmemchr.c: Likewise.
37858         * tests/test-rbtree_list.c: Likewise.
37859         * tests/test-rbtree_oset.c: Likewise.
37860         * tests/test-rbtreehash_list.c: Likewise.
37861         * tests/test-readlink.c: Likewise.
37862         * tests/test-remove.c: Likewise.
37863         * tests/test-rename.c: Likewise.
37864         * tests/test-renameat.c: Likewise.
37865         * tests/test-rmdir.c: Likewise.
37866         * tests/test-round1.c: Likewise.
37867         * tests/test-roundf1.c: Likewise.
37868         * tests/test-roundl.c: Likewise.
37869         * tests/test-safe-alloc.c: Likewise.
37870         * tests/test-sameacls.c: Likewise.
37871         * tests/test-set-mode-acl.c: Likewise.
37872         * tests/test-setenv.c: Likewise.
37873         * tests/test-sigaction.c: Likewise.
37874         * tests/test-signbit.c: Likewise.
37875         * tests/test-sleep.c: Likewise.
37876         * tests/test-snprintf-posix.c: Likewise.
37877         * tests/test-snprintf.c: Likewise.
37878         * tests/test-sprintf-posix.c: Likewise.
37879         * tests/test-stat-time.c: Likewise.
37880         * tests/test-stat.c: Likewise.
37881         * tests/test-strcasestr.c: Likewise.
37882         * tests/test-strchrnul.c: Likewise.
37883         * tests/test-strerror.c: Likewise.
37884         * tests/test-striconv.c: Likewise.
37885         * tests/test-striconveh.c: Likewise.
37886         * tests/test-striconveha.c: Likewise.
37887         * tests/test-strsignal.c: Likewise.
37888         * tests/test-strstr.c: Likewise.
37889         * tests/test-strtod.c: Likewise.
37890         * tests/test-strverscmp.c: Likewise.
37891         * tests/test-symlink.c: Likewise.
37892         * tests/test-symlinkat.c: Likewise.
37893         * tests/test-trunc1.c: Likewise.
37894         * tests/test-trunc2.c: Likewise.
37895         * tests/test-truncf1.c: Likewise.
37896         * tests/test-truncf2.c: Likewise.
37897         * tests/test-truncl.c: Likewise.
37898         * tests/test-uname.c: Likewise.
37899         * tests/test-unlink.c: Likewise.
37900         * tests/test-unlinkat.c: Likewise.
37901         * tests/test-unsetenv.c: Likewise.
37902         * tests/test-usleep.c: Likewise.
37903         * tests/test-utimens.c: Likewise.
37904         * tests/test-utimensat.c: Likewise.
37905         * tests/test-vasnprintf-posix.c: Likewise.
37906         * tests/test-vasnprintf-posix2.c: Likewise.
37907         * tests/test-vasnprintf.c: Likewise.
37908         * tests/test-vasprintf-posix.c: Likewise.
37909         * tests/test-vasprintf.c: Likewise.
37910         * tests/test-vdprintf-posix.c: Likewise.
37911         * tests/test-vfprintf-posix.c: Likewise.
37912         * tests/test-vprintf-posix.c: Likewise.
37913         * tests/test-vsnprintf-posix.c: Likewise.
37914         * tests/test-vsnprintf.c: Likewise.
37915         * tests/test-vsprintf-posix.c: Likewise.
37916         * tests/test-wcrtomb.c: Likewise.
37917         * tests/test-wcsnrtombs.c: Likewise.
37918         * tests/test-wcsrtombs.c: Likewise.
37919         * tests/test-wctype.c: Likewise.
37920         * tests/test-wcwidth.c: Likewise.
37921         * tests/test-xfprintf-posix.c: Likewise.
37922         * tests/test-xmemdup0.c: Likewise.
37923         * tests/test-xprintf-posix.c: Likewise.
37924         * tests/test-xvasprintf.c: Likewise.
37925         * tests/unicase/test-locale-language.c: Likewise.
37926         * tests/unicase/test-mapping-part1.h: Likewise.
37927         * tests/unicase/test-predicate-part1.h: Likewise.
37928         * tests/unicase/test-u8-casecmp.c: Likewise.
37929         * tests/unicase/test-u8-casecoll.c: Likewise.
37930         * tests/unicase/test-u8-casefold.c: Likewise.
37931         * tests/unicase/test-u8-is-cased.c: Likewise.
37932         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37933         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37934         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37935         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37936         * tests/unicase/test-u8-tolower.c: Likewise.
37937         * tests/unicase/test-u8-totitle.c: Likewise.
37938         * tests/unicase/test-u8-toupper.c: Likewise.
37939         * tests/unicase/test-u16-casecmp.c: Likewise.
37940         * tests/unicase/test-u16-casecoll.c: Likewise.
37941         * tests/unicase/test-u16-casefold.c: Likewise.
37942         * tests/unicase/test-u16-is-cased.c: Likewise.
37943         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37944         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37945         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37946         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37947         * tests/unicase/test-u16-tolower.c: Likewise.
37948         * tests/unicase/test-u16-totitle.c: Likewise.
37949         * tests/unicase/test-u16-toupper.c: Likewise.
37950         * tests/unicase/test-u32-casecmp.c: Likewise.
37951         * tests/unicase/test-u32-casecoll.c: Likewise.
37952         * tests/unicase/test-u32-casefold.c: Likewise.
37953         * tests/unicase/test-u32-is-cased.c: Likewise.
37954         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37955         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37956         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37957         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37958         * tests/unicase/test-u32-tolower.c: Likewise.
37959         * tests/unicase/test-u32-totitle.c: Likewise.
37960         * tests/unicase/test-u32-toupper.c: Likewise.
37961         * tests/unicase/test-ulc-casecmp.c: Likewise.
37962         * tests/unicase/test-ulc-casecoll.c: Likewise.
37963         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37964         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37965         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37966         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37967         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37968         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37969         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37970         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37971         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37972         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37973         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37974         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37975         * tests/unictype/test-bidi_byname.c: Likewise.
37976         * tests/unictype/test-bidi_name.c: Likewise.
37977         * tests/unictype/test-bidi_of.c: Likewise.
37978         * tests/unictype/test-bidi_test.c: Likewise.
37979         * tests/unictype/test-block_list.c: Likewise.
37980         * tests/unictype/test-block_of.c: Likewise.
37981         * tests/unictype/test-block_test.c: Likewise.
37982         * tests/unictype/test-categ_and.c: Likewise.
37983         * tests/unictype/test-categ_and_not.c: Likewise.
37984         * tests/unictype/test-categ_byname.c: Likewise.
37985         * tests/unictype/test-categ_name.c: Likewise.
37986         * tests/unictype/test-categ_none.c: Likewise.
37987         * tests/unictype/test-categ_of.c: Likewise.
37988         * tests/unictype/test-categ_or.c: Likewise.
37989         * tests/unictype/test-categ_test_withtable.c: Likewise.
37990         * tests/unictype/test-combining.c: Likewise.
37991         * tests/unictype/test-decdigit.c: Likewise.
37992         * tests/unictype/test-digit.c: Likewise.
37993         * tests/unictype/test-mirror.c: Likewise.
37994         * tests/unictype/test-numeric.c: Likewise.
37995         * tests/unictype/test-pr_byname.c: Likewise.
37996         * tests/unictype/test-pr_test.c: Likewise.
37997         * tests/unictype/test-predicate-part1.h: Likewise.
37998         * tests/unictype/test-scripts.c: Likewise.
37999         * tests/unictype/test-sy_c_ident.c: Likewise.
38000         * tests/unictype/test-sy_java_ident.c: Likewise.
38001         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38002         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38003         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38004         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38005         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38006         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38007         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38008         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38009         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38010         * tests/uninorm/test-compat-decomposition.c: Likewise.
38011         * tests/uninorm/test-composition.c: Likewise.
38012         * tests/uninorm/test-decomposing-form.c: Likewise.
38013         * tests/uninorm/test-decomposition.c: Likewise.
38014         * tests/uninorm/test-u8-nfc.c: Likewise.
38015         * tests/uninorm/test-u8-nfd.c: Likewise.
38016         * tests/uninorm/test-u8-nfkc.c: Likewise.
38017         * tests/uninorm/test-u8-nfkd.c: Likewise.
38018         * tests/uninorm/test-u8-normcmp.c: Likewise.
38019         * tests/uninorm/test-u8-normcoll.c: Likewise.
38020         * tests/uninorm/test-u16-nfc.c: Likewise.
38021         * tests/uninorm/test-u16-nfd.c: Likewise.
38022         * tests/uninorm/test-u16-nfkc.c: Likewise.
38023         * tests/uninorm/test-u16-nfkd.c: Likewise.
38024         * tests/uninorm/test-u16-normcmp.c: Likewise.
38025         * tests/uninorm/test-u16-normcoll.c: Likewise.
38026         * tests/uninorm/test-u32-nfc.c: Likewise.
38027         * tests/uninorm/test-u32-nfd.c: Likewise.
38028         * tests/uninorm/test-u32-nfkc.c: Likewise.
38029         * tests/uninorm/test-u32-nfkd.c: Likewise.
38030         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38031         * tests/uninorm/test-u32-normcmp.c: Likewise.
38032         * tests/uninorm/test-u32-normcoll.c: Likewise.
38033         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38034         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38035         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38036         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38037         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38038         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38039         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38040         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38041         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38042         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38043         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38044         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38045         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38046         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38047         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38048         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38049         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38050         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38051         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38052         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38053         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38054         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38055         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38056         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38057         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38058         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38059         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38060         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38061         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38062         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38063         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38064         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38065         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38066         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38067         * tests/uniwidth/test-u8-width.c: Likewise.
38068         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38069         * tests/uniwidth/test-u16-width.c: Likewise.
38070         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38071         * tests/uniwidth/test-u32-width.c: Likewise.
38072         * tests/uniwidth/test-uc_width.c: Likewise.
38073         * tests/uniwidth/test-uc_width2.c: Likewise.
38074         * modules/acl-tests (Files): Add tests/macros.h.
38075         * modules/areadlink-tests (Files): Likewise.
38076         * modules/areadlink-with-size-tests (Files): Likewise.
38077         * modules/areadlinkat-tests (Files): Likewise.
38078         * modules/areadlinkat-with-size-tests (Files): Likewise.
38079         * modules/argmatch-tests (Files): Likewise.
38080         * modules/argv-iter-tests (Files): Likewise.
38081         * modules/array-list-tests (Files): Likewise.
38082         * modules/array-mergesort-tests (Files): Likewise.
38083         * modules/array-oset-tests (Files): Likewise.
38084         * modules/avltree-list-tests (Files): Likewise.
38085         * modules/avltree-oset-tests (Files): Likewise.
38086         * modules/avltreehash-list-tests (Files): Likewise.
38087         * modules/base64-tests (Files): Likewise.
38088         * modules/binary-io-tests (Files): Likewise.
38089         * modules/bitrotate-tests (Files): Likewise.
38090         * modules/btowc-tests (Files): Likewise.
38091         * modules/byteswap-tests (Files): Likewise.
38092         * modules/c-ctype-tests (Files): Likewise.
38093         * modules/c-stack-tests (Files): Likewise.
38094         * modules/c-strcase-tests (Files): Likewise.
38095         * modules/c-strcasestr-tests (Files): Likewise.
38096         * modules/c-strstr-tests (Files): Likewise.
38097         * modules/canonicalize-lgpl-tests (Files): Likewise.
38098         * modules/canonicalize-tests (Files): Likewise.
38099         * modules/carray-list-tests (Files): Likewise.
38100         * modules/ceilf-tests (Files): Likewise.
38101         * modules/ceill-tests (Files): Likewise.
38102         * modules/chown-tests (Files): Likewise.
38103         * modules/cloexec-tests (Files): Likewise.
38104         * modules/copy-file-tests (Files): Likewise.
38105         * modules/count-one-bits-tests (Files): Likewise.
38106         * modules/dprintf-posix-tests (Files): Likewise.
38107         * modules/dup2-tests (Files): Likewise.
38108         * modules/dup3-tests (Files): Likewise.
38109         * modules/duplocale-tests (Files): Likewise.
38110         * modules/fbufmode-tests (Files): Likewise.
38111         * modules/fchdir-tests (Files): Likewise.
38112         * modules/fcntl-safer-tests (Files): Likewise.
38113         * modules/fcntl-tests (Files): Likewise.
38114         * modules/fdopendir-tests (Files): Likewise.
38115         * modules/fdutimensat-tests (Files): Likewise.
38116         * modules/fflush-tests (Files): Likewise.
38117         * modules/filevercmp-tests (Files): Likewise.
38118         * modules/flock-tests (Files): Likewise.
38119         * modules/floorf-tests (Files): Likewise.
38120         * modules/floorl-tests (Files): Likewise.
38121         * modules/fnmatch-tests (Files): Likewise.
38122         * modules/fopen-safer-tests (Files): Likewise.
38123         * modules/fopen-tests (Files): Likewise.
38124         * modules/fpending-tests (Files): Likewise.
38125         * modules/fprintf-posix-tests (Files): Likewise.
38126         * modules/fpurge-tests (Files): Likewise.
38127         * modules/freadable-tests (Files): Likewise.
38128         * modules/freadahead-tests (Files): Likewise.
38129         * modules/freading-tests (Files): Likewise.
38130         * modules/freadptr-tests (Files): Likewise.
38131         * modules/freadseek-tests (Files): Likewise.
38132         * modules/freopen-tests (Files): Likewise.
38133         * modules/frexp-nolibm-tests (Files): Likewise.
38134         * modules/frexp-tests (Files): Likewise.
38135         * modules/frexpl-nolibm-tests (Files): Likewise.
38136         * modules/frexpl-tests (Files): Likewise.
38137         * modules/fseek-tests (Files): Likewise.
38138         * modules/fseeko-tests (Files): Likewise.
38139         * modules/fstrcmp-tests (Files): Likewise.
38140         * modules/fsync-tests (Files): Likewise.
38141         * modules/ftell-tests (Files): Likewise.
38142         * modules/ftello-tests (Files): Likewise.
38143         * modules/func-tests (Files): Likewise.
38144         * modules/futimens-tests (Files): Likewise.
38145         * modules/fwritable-tests (Files): Likewise.
38146         * modules/fwriting-tests (Files): Likewise.
38147         * modules/getcwd-tests (Files): Likewise.
38148         * modules/getdate-tests (Files): Likewise.
38149         * modules/getdelim-tests (Files): Likewise.
38150         * modules/getdtablesize-tests (Files): Likewise.
38151         * modules/getgroups-tests (Files): Likewise.
38152         * modules/getline-tests (Files): Likewise.
38153         * modules/getndelim2-tests (Files): Likewise.
38154         * modules/glob-tests (Files): Likewise.
38155         * modules/hash-tests (Files): Likewise.
38156         * modules/i-ring-tests (Files): Likewise.
38157         * modules/iconv-tests (Files): Likewise.
38158         * modules/iconv_open-utf-tests (Files): Likewise.
38159         * modules/idpriv-drop-tests (Files): Likewise.
38160         * modules/idpriv-droptemp-tests (Files): Likewise.
38161         * modules/inet_ntop-tests (Files): Likewise.
38162         * modules/inet_pton-tests (Files): Likewise.
38163         * modules/isblank-tests (Files): Likewise.
38164         * modules/isfinite-tests (Files): Likewise.
38165         * modules/isinf-tests (Files): Likewise.
38166         * modules/isnan-tests (Files): Likewise.
38167         * modules/isnand-nolibm-tests (Files): Likewise.
38168         * modules/isnand-tests (Files): Likewise.
38169         * modules/isnanf-nolibm-tests (Files): Likewise.
38170         * modules/isnanf-tests (Files): Likewise.
38171         * modules/isnanl-nolibm-tests (Files): Likewise.
38172         * modules/isnanl-tests (Files): Likewise.
38173         * modules/lchown-tests (Files): Likewise.
38174         * modules/ldexpl-tests (Files): Likewise.
38175         * modules/link-tests (Files): Likewise.
38176         * modules/linkat-tests (Files): Likewise.
38177         * modules/linked-list-tests (Files): Likewise.
38178         * modules/linkedhash-list-tests (Files): Likewise.
38179         * modules/localename-tests (Files): Likewise.
38180         * modules/lseek-tests (Files): Likewise.
38181         * modules/lstat-tests (Files): Likewise.
38182         * modules/mbmemcasecmp-tests (Files): Likewise.
38183         * modules/mbmemcasecoll-tests (Files): Likewise.
38184         * modules/mbrtowc-tests (Files): Likewise.
38185         * modules/mbscasecmp-tests (Files): Likewise.
38186         * modules/mbscasestr-tests (Files): Likewise.
38187         * modules/mbschr-tests (Files): Likewise.
38188         * modules/mbscspn-tests (Files): Likewise.
38189         * modules/mbsinit-tests (Files): Likewise.
38190         * modules/mbsncasecmp-tests (Files): Likewise.
38191         * modules/mbsnrtowcs-tests (Files): Likewise.
38192         * modules/mbspbrk-tests (Files): Likewise.
38193         * modules/mbspcasecmp-tests (Files): Likewise.
38194         * modules/mbsrchr-tests (Files): Likewise.
38195         * modules/mbsrtowcs-tests (Files): Likewise.
38196         * modules/mbsspn-tests (Files): Likewise.
38197         * modules/mbsstr-tests (Files): Likewise.
38198         * modules/memchr-tests (Files): Likewise.
38199         * modules/memchr2-tests (Files): Likewise.
38200         * modules/memcmp-tests (Files): Likewise.
38201         * modules/memmem-tests (Files): Likewise.
38202         * modules/memrchr-tests (Files): Likewise.
38203         * modules/mkdir-tests (Files): Likewise.
38204         * modules/mkfifo-tests (Files): Likewise.
38205         * modules/mkfifoat-tests (Files): Likewise.
38206         * modules/mknod-tests (Files): Likewise.
38207         * modules/nanosleep-tests (Files): Likewise.
38208         * modules/nl_langinfo-tests (Files): Likewise.
38209         * modules/obstack-printf-tests (Files): Likewise.
38210         * modules/open-tests (Files): Likewise.
38211         * modules/openat-tests (Files): Likewise.
38212         * modules/pipe-filter-gi-tests (Files): Likewise.
38213         * modules/pipe-filter-ii-tests (Files): Likewise.
38214         * modules/pipe2-tests (Files): Likewise.
38215         * modules/popen-safer-tests (Files): Likewise.
38216         * modules/popen-tests (Files): Likewise.
38217         * modules/posixtm-tests (Files): Likewise.
38218         * modules/pread-tests (Files): Likewise.
38219         * modules/printf-frexp-tests (Files): Likewise.
38220         * modules/printf-frexpl-tests (Files): Likewise.
38221         * modules/printf-posix-tests (Files): Likewise.
38222         * modules/priv-set-tests (Files): Likewise.
38223         * modules/quotearg-tests (Files): Likewise.
38224         * modules/random_r-tests (Files): Likewise.
38225         * modules/rawmemchr-tests (Files): Likewise.
38226         * modules/rbtree-list-tests (Files): Likewise.
38227         * modules/rbtree-oset-tests (Files): Likewise.
38228         * modules/rbtreehash-list-tests (Files): Likewise.
38229         * modules/readlink-tests (Files): Likewise.
38230         * modules/remove-tests (Files): Likewise.
38231         * modules/rename-tests (Files): Likewise.
38232         * modules/renameat-tests (Files): Likewise.
38233         * modules/rmdir-tests (Files): Likewise.
38234         * modules/round-tests (Files): Likewise.
38235         * modules/roundf-tests (Files): Likewise.
38236         * modules/roundl-tests (Files): Likewise.
38237         * modules/safe-alloc-tests (Files): Likewise.
38238         * modules/setenv-tests (Files): Likewise.
38239         * modules/sigaction-tests (Files): Likewise.
38240         * modules/signbit-tests (Files): Likewise.
38241         * modules/sleep-tests (Files): Likewise.
38242         * modules/snprintf-posix-tests (Files): Likewise.
38243         * modules/snprintf-tests (Files): Likewise.
38244         * modules/sprintf-posix-tests (Files): Likewise.
38245         * modules/stat-tests (Files): Likewise.
38246         * modules/stat-time-tests (Files): Likewise.
38247         * modules/strcasestr-tests (Files): Likewise.
38248         * modules/strchrnul-tests (Files): Likewise.
38249         * modules/strerror-tests (Files): Likewise.
38250         * modules/striconv-tests (Files): Likewise.
38251         * modules/striconveh-tests (Files): Likewise.
38252         * modules/striconveha-tests (Files): Likewise.
38253         * modules/strsignal-tests (Files): Likewise.
38254         * modules/strstr-tests (Files): Likewise.
38255         * modules/strtod-tests (Files): Likewise.
38256         * modules/strverscmp-tests (Files): Likewise.
38257         * modules/symlink-tests (Files): Likewise.
38258         * modules/symlinkat-tests (Files): Likewise.
38259         * modules/trunc-tests (Files): Likewise.
38260         * modules/truncf-tests (Files): Likewise.
38261         * modules/truncl-tests (Files): Likewise.
38262         * modules/uname-tests (Files): Likewise.
38263         * modules/unicase/cased-tests (Files): Likewise.
38264         * modules/unicase/ignorable-tests (Files): Likewise.
38265         * modules/unicase/locale-language-tests (Files): Likewise.
38266         * modules/unicase/tolower-tests (Files): Likewise.
38267         * modules/unicase/totitle-tests (Files): Likewise.
38268         * modules/unicase/toupper-tests (Files): Likewise.
38269         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38270         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38271         * modules/unicase/u8-casefold-tests (Files): Likewise.
38272         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38273         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38274         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38275         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38276         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38277         * modules/unicase/u8-tolower-tests (Files): Likewise.
38278         * modules/unicase/u8-totitle-tests (Files): Likewise.
38279         * modules/unicase/u8-toupper-tests (Files): Likewise.
38280         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38281         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38282         * modules/unicase/u16-casefold-tests (Files): Likewise.
38283         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38284         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38285         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38286         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38287         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38288         * modules/unicase/u16-tolower-tests (Files): Likewise.
38289         * modules/unicase/u16-totitle-tests (Files): Likewise.
38290         * modules/unicase/u16-toupper-tests (Files): Likewise.
38291         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38292         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38293         * modules/unicase/u32-casefold-tests (Files): Likewise.
38294         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38295         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38296         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38297         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38298         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38299         * modules/unicase/u32-tolower-tests (Files): Likewise.
38300         * modules/unicase/u32-totitle-tests (Files): Likewise.
38301         * modules/unicase/u32-toupper-tests (Files): Likewise.
38302         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38303         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38304         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38305         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38306         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38307         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38308         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38309         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38310         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38311         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38312         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38313         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38314         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38315         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38316         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38317         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38318         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38319         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38320         * modules/unictype/block-list-tests (Files): Likewise.
38321         * modules/unictype/block-of-tests (Files): Likewise.
38322         * modules/unictype/block-test-tests (Files): Likewise.
38323         * modules/unictype/category-C-tests (Files): Likewise.
38324         * modules/unictype/category-Cc-tests (Files): Likewise.
38325         * modules/unictype/category-Cf-tests (Files): Likewise.
38326         * modules/unictype/category-Cn-tests (Files): Likewise.
38327         * modules/unictype/category-Co-tests (Files): Likewise.
38328         * modules/unictype/category-Cs-tests (Files): Likewise.
38329         * modules/unictype/category-L-tests (Files): Likewise.
38330         * modules/unictype/category-Ll-tests (Files): Likewise.
38331         * modules/unictype/category-Lm-tests (Files): Likewise.
38332         * modules/unictype/category-Lo-tests (Files): Likewise.
38333         * modules/unictype/category-Lt-tests (Files): Likewise.
38334         * modules/unictype/category-Lu-tests (Files): Likewise.
38335         * modules/unictype/category-M-tests (Files): Likewise.
38336         * modules/unictype/category-Mc-tests (Files): Likewise.
38337         * modules/unictype/category-Me-tests (Files): Likewise.
38338         * modules/unictype/category-Mn-tests (Files): Likewise.
38339         * modules/unictype/category-N-tests (Files): Likewise.
38340         * modules/unictype/category-Nd-tests (Files): Likewise.
38341         * modules/unictype/category-Nl-tests (Files): Likewise.
38342         * modules/unictype/category-No-tests (Files): Likewise.
38343         * modules/unictype/category-P-tests (Files): Likewise.
38344         * modules/unictype/category-Pc-tests (Files): Likewise.
38345         * modules/unictype/category-Pd-tests (Files): Likewise.
38346         * modules/unictype/category-Pe-tests (Files): Likewise.
38347         * modules/unictype/category-Pf-tests (Files): Likewise.
38348         * modules/unictype/category-Pi-tests (Files): Likewise.
38349         * modules/unictype/category-Po-tests (Files): Likewise.
38350         * modules/unictype/category-Ps-tests (Files): Likewise.
38351         * modules/unictype/category-S-tests (Files): Likewise.
38352         * modules/unictype/category-Sc-tests (Files): Likewise.
38353         * modules/unictype/category-Sk-tests (Files): Likewise.
38354         * modules/unictype/category-Sm-tests (Files): Likewise.
38355         * modules/unictype/category-So-tests (Files): Likewise.
38356         * modules/unictype/category-Z-tests (Files): Likewise.
38357         * modules/unictype/category-Zl-tests (Files): Likewise.
38358         * modules/unictype/category-Zp-tests (Files): Likewise.
38359         * modules/unictype/category-Zs-tests (Files): Likewise.
38360         * modules/unictype/category-and-not-tests (Files): Likewise.
38361         * modules/unictype/category-and-tests (Files): Likewise.
38362         * modules/unictype/category-byname-tests (Files): Likewise.
38363         * modules/unictype/category-name-tests (Files): Likewise.
38364         * modules/unictype/category-none-tests (Files): Likewise.
38365         * modules/unictype/category-of-tests (Files): Likewise.
38366         * modules/unictype/category-or-tests (Files): Likewise.
38367         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38368         * modules/unictype/combining-class-tests (Files): Likewise.
38369         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38370         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38371         * modules/unictype/ctype-blank-tests (Files): Likewise.
38372         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38373         * modules/unictype/ctype-digit-tests (Files): Likewise.
38374         * modules/unictype/ctype-graph-tests (Files): Likewise.
38375         * modules/unictype/ctype-lower-tests (Files): Likewise.
38376         * modules/unictype/ctype-print-tests (Files): Likewise.
38377         * modules/unictype/ctype-punct-tests (Files): Likewise.
38378         * modules/unictype/ctype-space-tests (Files): Likewise.
38379         * modules/unictype/ctype-upper-tests (Files): Likewise.
38380         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38381         * modules/unictype/decimal-digit-tests (Files): Likewise.
38382         * modules/unictype/digit-tests (Files): Likewise.
38383         * modules/unictype/mirror-tests (Files): Likewise.
38384         * modules/unictype/numeric-tests (Files): Likewise.
38385         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38386         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38387         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38388         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38389         Likewise.
38390         * modules/unictype/property-bidi-block-separator-tests (Files):
38391         Likewise.
38392         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38393         Likewise.
38394         * modules/unictype/property-bidi-common-separator-tests (Files):
38395         Likewise.
38396         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38397         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38398         Likewise.
38399         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38400         Likewise.
38401         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38402         Likewise.
38403         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38404         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38405         Likewise.
38406         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38407         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38408         Likewise.
38409         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38410         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38411         * modules/unictype/property-bidi-segment-separator-tests (Files):
38412         Likewise.
38413         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38414         * modules/unictype/property-byname-tests (Files): Likewise.
38415         * modules/unictype/property-combining-tests (Files): Likewise.
38416         * modules/unictype/property-composite-tests (Files): Likewise.
38417         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38418         * modules/unictype/property-dash-tests (Files): Likewise.
38419         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38420         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38421         Likewise.
38422         * modules/unictype/property-deprecated-tests (Files): Likewise.
38423         * modules/unictype/property-diacritic-tests (Files): Likewise.
38424         * modules/unictype/property-extender-tests (Files): Likewise.
38425         * modules/unictype/property-format-control-tests (Files): Likewise.
38426         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38427         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38428         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38429         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38430         * modules/unictype/property-hyphen-tests (Files): Likewise.
38431         * modules/unictype/property-id-continue-tests (Files): Likewise.
38432         * modules/unictype/property-id-start-tests (Files): Likewise.
38433         * modules/unictype/property-ideographic-tests (Files): Likewise.
38434         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38435         * modules/unictype/property-ids-trinary-operator-tests (Files):
38436         Likewise.
38437         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38438         * modules/unictype/property-iso-control-tests (Files): Likewise.
38439         * modules/unictype/property-join-control-tests (Files): Likewise.
38440         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38441         * modules/unictype/property-line-separator-tests (Files): Likewise.
38442         * modules/unictype/property-logical-order-exception-tests (Files):
38443         Likewise.
38444         * modules/unictype/property-lowercase-tests (Files): Likewise.
38445         * modules/unictype/property-math-tests (Files): Likewise.
38446         * modules/unictype/property-non-break-tests (Files): Likewise.
38447         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38448         * modules/unictype/property-numeric-tests (Files): Likewise.
38449         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38450         * modules/unictype/property-other-default-ignorable-code-point-tests
38451         (Files): Likewise.
38452         * modules/unictype/property-other-grapheme-extend-tests (Files):
38453         Likewise.
38454         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38455         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38456         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38457         * modules/unictype/property-other-math-tests (Files): Likewise.
38458         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38459         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38460         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38461         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38462         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38463         * modules/unictype/property-private-use-tests (Files): Likewise.
38464         * modules/unictype/property-punctuation-tests (Files): Likewise.
38465         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38466         * modules/unictype/property-radical-tests (Files): Likewise.
38467         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38468         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38469         * modules/unictype/property-space-tests (Files): Likewise.
38470         * modules/unictype/property-terminal-punctuation-tests (Files):
38471         Likewise.
38472         * modules/unictype/property-test-tests (Files): Likewise.
38473         * modules/unictype/property-titlecase-tests (Files): Likewise.
38474         * modules/unictype/property-unassigned-code-value-tests (Files):
38475         Likewise.
38476         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38477         * modules/unictype/property-uppercase-tests (Files): Likewise.
38478         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38479         * modules/unictype/property-white-space-tests (Files): Likewise.
38480         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38481         * modules/unictype/property-xid-start-tests (Files): Likewise.
38482         * modules/unictype/property-zero-width-tests (Files): Likewise.
38483         * modules/unictype/scripts-tests (Files): Likewise.
38484         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38485         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38486         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38487         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38488         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38489         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38490         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38491         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38492         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38493         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38494         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38495         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38496         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38497         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38498         * modules/uninorm/composition-tests (Files): Likewise.
38499         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38500         * modules/uninorm/decomposition-tests (Files): Likewise.
38501         * modules/uninorm/filter-tests (Files): Likewise.
38502         * modules/uninorm/nfc-tests (Files): Likewise.
38503         * modules/uninorm/nfd-tests (Files): Likewise.
38504         * modules/uninorm/nfkc-tests (Files): Likewise.
38505         * modules/uninorm/nfkd-tests (Files): Likewise.
38506         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38507         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38508         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38509         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38510         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38511         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38512         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38513         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38514         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38515         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38516         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38517         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38518         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38519         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38520         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38521         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38522         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38523         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38524         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38525         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38526         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38527         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38528         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38529         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38530         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38531         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38532         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38533         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38534         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38535         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38536         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38537         * modules/uniwidth/u8-width-tests (Files): Likewise.
38538         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38539         * modules/uniwidth/u16-width-tests (Files): Likewise.
38540         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38541         * modules/uniwidth/u32-width-tests (Files): Likewise.
38542         * modules/uniwidth/width-tests (Files): Likewise.
38543         * modules/unlink-tests (Files): Likewise.
38544         * modules/unsetenv-tests (Files): Likewise.
38545         * modules/usleep-tests (Files): Likewise.
38546         * modules/utimens-tests (Files): Likewise.
38547         * modules/utimensat-tests (Files): Likewise.
38548         * modules/vasnprintf-posix-tests (Files): Likewise.
38549         * modules/vasnprintf-tests (Files): Likewise.
38550         * modules/vasprintf-posix-tests (Files): Likewise.
38551         * modules/vasprintf-tests (Files): Likewise.
38552         * modules/vdprintf-posix-tests (Files): Likewise.
38553         * modules/vfprintf-posix-tests (Files): Likewise.
38554         * modules/vprintf-posix-tests (Files): Likewise.
38555         * modules/vsnprintf-posix-tests (Files): Likewise.
38556         * modules/vsnprintf-tests (Files): Likewise.
38557         * modules/vsprintf-posix-tests (Files): Likewise.
38558         * modules/wcrtomb-tests (Files): Likewise.
38559         * modules/wcsnrtombs-tests (Files): Likewise.
38560         * modules/wcsrtombs-tests (Files): Likewise.
38561         * modules/wctype-tests (Files): Likewise.
38562         * modules/wcwidth-tests (Files): Likewise.
38563         * modules/xmemdup0-tests (Files): Likewise.
38564         * modules/xprintf-posix-tests (Files): Likewise.
38565         * modules/xvasprintf-tests (Files): Likewise.
38566
38567 2009-12-24  Eric Blake  <ebb9@byu.net>
38568
38569         test-nanosleep: fix typo
38570         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38571         patch.
38572         Reported by Bruno Haible.
38573
38574 2009-12-24  Bruno Haible  <bruno@clisp.org>
38575
38576         Reduce namespace pollution on glibc systems.
38577         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38578         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38579         systems.
38580         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38581         <getopt.h> on glibc systems.
38582         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38583         systems.
38584         * lib/fcntl.c: Include <unistd.h> here instead.
38585
38586 2009-12-24  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38589
38590 2009-12-24  Eric Blake  <ebb9@byu.net>
38591
38592         tests: add signature checks
38593         * tests/signature.h (SIGNATURE_CHECK): New file.
38594         * modules/atexit-tests (Files): Use it.
38595         * modules/btowc-tests (Files): Likewise.
38596         * modules/canonicalize-lgpl-tests (Files): Likewise.
38597         * modules/ceilf-tests (Files): Likewise.
38598         * modules/ceill-tests (Files): Likewise.
38599         * modules/chown-tests (Files): Likewise.
38600         * modules/dprintf-posix-tests (Files): Likewise.
38601         * modules/dup2-tests (Files): Likewise.
38602         * modules/dup3-tests (Files): Likewise.
38603         * modules/duplocale-tests (Files): Likewise.
38604         * modules/fchdir-tests (Files): Likewise.
38605         * modules/fcntl-tests (Files): Likewise.
38606         * modules/fdopendir-tests (Files): Likewise.
38607         * modules/fflush-tests (Files): Likewise.
38608         * modules/flock-tests (Files): Likewise.
38609         * modules/floorf-tests (Files): Likewise.
38610         * modules/floorl-tests (Files): Likewise.
38611         * modules/fnmatch-tests (Files): Likewise.
38612         * modules/fopen-tests (Files): Likewise.
38613         * modules/fprintf-posix-tests (Files): Likewise.
38614         * modules/freopen-tests (Files): Likewise.
38615         * modules/frexp-nolibm-tests (Files): Likewise.
38616         * modules/frexp-tests (Files): Likewise.
38617         * modules/frexpl-nolibm-tests (Files): Likewise.
38618         * modules/frexpl-tests (Files): Likewise.
38619         * modules/fseek-tests (Files): Likewise.
38620         * modules/fseeko-tests (Files): Likewise.
38621         * modules/fsync-tests (Files): Likewise.
38622         * modules/ftell-tests (Files): Likewise.
38623         * modules/ftello-tests (Files): Likewise.
38624         * modules/futimens-tests (Files): Likewise.
38625         * modules/getaddrinfo-tests (Files): Likewise.
38626         * modules/getcwd-tests (Files): Likewise.
38627         * modules/getdelim-tests (Files): Likewise.
38628         * modules/getdtablesize-tests (Files): Likewise.
38629         * modules/getgroups-tests (Files): Likewise.
38630         * modules/gethostname-tests (Files): Likewise.
38631         * modules/getline-tests (Files): Likewise.
38632         * modules/getopt-posix-tests (Files): Likewise.
38633         * modules/gettimeofday-tests (Files): Likewise.
38634         * modules/glob-tests (Files): Likewise.
38635         * modules/iconv-tests (Files): Likewise.
38636         * modules/inet_ntop-tests (Files): Likewise.
38637         * modules/inet_pton-tests (Files): Likewise.
38638         * modules/isblank-tests (Files): Likewise.
38639         * modules/lchown-tests (Files): Likewise.
38640         * modules/ldexpl-tests (Files): Likewise.
38641         * modules/link-tests (Files): Likewise.
38642         * modules/linkat-tests (Files): Likewise.
38643         * modules/lseek-tests (Files): Likewise.
38644         * modules/lstat-tests (Files): Likewise.
38645         * modules/mbrtowc-tests (Files): Likewise.
38646         * modules/mbsinit-tests (Files): Likewise.
38647         * modules/mbsnrtowcs-tests (Files): Likewise.
38648         * modules/mbsrtowcs-tests (Files): Likewise.
38649         * modules/memchr-tests (Files): Likewise.
38650         * modules/memcmp-tests (Files): Likewise.
38651         * modules/memmem-tests (Files): Likewise.
38652         * modules/memrchr-tests (Files): Likewise.
38653         * modules/mkdir-tests (Files): Likewise.
38654         * modules/mkfifo-tests (Files): Likewise.
38655         * modules/mkfifoat-tests (Files): Likewise.
38656         * modules/mknod-tests (Files): Likewise.
38657         * modules/nanosleep-tests (Files): Likewise.
38658         * modules/nl_langinfo-tests (Files): Likewise.
38659         * modules/obstack-printf-tests (Files): Likewise.
38660         * modules/open-tests (Files): Likewise.
38661         * modules/openat-tests (Files): Likewise.
38662         * modules/perror-tests (Files): Likewise.
38663         * modules/pipe2-tests (Files): Likewise.
38664         * modules/poll-tests (Files): Likewise.
38665         * modules/popen-tests (Files): Likewise.
38666         * modules/posix_spawn-tests (Files): Likewise.
38667         * modules/posix_spawnp-tests (Files): Likewise.
38668         * modules/pread-tests (Files): Likewise.
38669         * modules/printf-posix-tests (Files): Likewise.
38670         * modules/pty-tests (Files): Likewise.
38671         * modules/random_r-tests (Files): Likewise.
38672         * modules/rawmemchr-tests (Files): Likewise.
38673         * modules/readlink-tests (Files): Likewise.
38674         * modules/remove-tests (Files): Likewise.
38675         * modules/rename-tests (Files): Likewise.
38676         * modules/renameat-tests (Files): Likewise.
38677         * modules/rmdir-tests (Files): Likewise.
38678         * modules/round-tests (Files): Likewise.
38679         * modules/roundf-tests (Files): Likewise.
38680         * modules/roundl-tests (Files): Likewise.
38681         * modules/select-tests (Files): Likewise.
38682         * modules/setenv-tests (Files): Likewise.
38683         * modules/sigaction-tests (Files): Likewise.
38684         * modules/sleep-tests (Files): Likewise.
38685         * modules/snprintf-posix-tests (Files): Likewise.
38686         * modules/snprintf-tests (Files): Likewise.
38687         * modules/sprintf-posix-tests (Files): Likewise.
38688         * modules/stat-tests (Files): Likewise.
38689         * modules/strcasestr-tests (Files): Likewise.
38690         * modules/strchrnul-tests (Files): Likewise.
38691         * modules/strerror-tests (Files): Likewise.
38692         * modules/strsignal-tests (Files): Likewise.
38693         * modules/strstr-tests (Files): Likewise.
38694         * modules/strtod-tests (Files): Likewise.
38695         * modules/strverscmp-tests (Files): Likewise.
38696         * modules/symlink-tests (Files): Likewise.
38697         * modules/symlinkat-tests (Files): Likewise.
38698         * modules/times-tests (Files): Likewise.
38699         * modules/trunc-tests (Files): Likewise.
38700         * modules/truncf-tests (Files): Likewise.
38701         * modules/truncl-tests (Files): Likewise.
38702         * modules/tsearch-tests (Files): Likewise.
38703         * modules/uname-tests (Files): Likewise.
38704         * modules/unlink-tests (Files): Likewise.
38705         * modules/unsetenv-tests (Files): Likewise.
38706         * modules/usleep-tests (Files): Likewise.
38707         * modules/utimensat-tests (Files): Likewise.
38708         * modules/vasprintf-tests (Files): Likewise.
38709         * modules/vdprintf-posix-tests (Files): Likewise.
38710         * modules/vfprintf-posix-tests (Files): Likewise.
38711         * modules/vprintf-posix-tests (Files): Likewise.
38712         * modules/vsnprintf-posix-tests (Files): Likewise.
38713         * modules/vsnprintf-tests (Files): Likewise.
38714         * modules/vsprintf-posix-tests (Files): Likewise.
38715         * modules/wcrtomb-tests (Files): Likewise.
38716         * modules/wcsnrtombs-tests (Files): Likewise.
38717         * modules/wcsrtombs-tests (Files): Likewise.
38718         * modules/wcwidth-tests (Files): Likewise.
38719         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38720         * tests/test-isinf.c (isinf): Likewise.
38721         * tests/test-isnan.c (isnan): Likewise.
38722         * tests/test-signbit.c (signbit): Likewise.
38723         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38724         declaration, either as macro or with correct signature.
38725         (select): Ensure function under test is declared with correct
38726         signature in correct header.
38727         * tests/test-atexit.c (atexit): Likewise.
38728         * tests/test-btowc.c (btowc): Likewise.
38729         * tests/test-canonicalize-lgpl.c (realpath)
38730         (canonicalize_file_name): Likewise.
38731         * tests/test-ceilf1.c (ceilf): Likewise.
38732         * tests/test-ceill.c (ceill): Likewise.
38733         * tests/test-chown.c (chown): Likewise.
38734         * tests/test-dprintf-posix.c (dprintf): Likewise.
38735         * tests/test-dup2.c (dup2): Likewise.
38736         * tests/test-dup3.c (dup3): Likewise.
38737         * tests/test-duplocale.c (duplocale): Likewise.
38738         * tests/test-fchdir.c (fchdir): Likewise.
38739         * tests/test-fchownat.c (fchownat): Likewise.
38740         * tests/test-fcntl.c (fcntl): Likewise.
38741         * tests/test-fdopendir.c (fdopendir): Likewise.
38742         * tests/test-fflush.c (fflush): Likewise.
38743         * tests/test-flock.c (flock): Likewise.
38744         * tests/test-floorf1.c (floorf): Likewise.
38745         * tests/test-floorl.c (floorl): Likewise.
38746         * tests/test-fnmatch.c (fnmatch): Likewise.
38747         * tests/test-fopen.c (fopen): Likewise.
38748         * tests/test-fprintf-posix.c (fprintf): Likewise.
38749         * tests/test-freopen.c (freopen): Likewise.
38750         * tests/test-frexp.c (frexp): Likewise.
38751         * tests/test-frexpl.c (frexpl): Likewise.
38752         * tests/test-fseek.c (fseek): Likewise.
38753         * tests/test-fseeko.c (fseeko): Likewise.
38754         * tests/test-fstatat.c (fstatat): Likewise.
38755         * tests/test-fsync.c (fsync): Likewise.
38756         * tests/test-ftell.c (ftell): Likewise.
38757         * tests/test-ftello.c (ftello): Likewise.
38758         * tests/test-futimens.c (futimens): Likewise.
38759         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38760         (gai_strerror): Likewise.
38761         * tests/test-getcwd.c (getcwd): Likewise.
38762         * tests/test-getdelim.c (getdelim): Likewise.
38763         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38764         * tests/test-getgroups.c (getgroups): Likewise.
38765         * tests/test-gethostname.c (gethostname): Likewise.
38766         * tests/test-getline.c (getline): Likewise.
38767         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38768         Likewise.
38769         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38770         * tests/test-glob.c (glob, globfree): Likewise.
38771         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38772         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38773         * tests/test-inet_pton.c (inet_pton): Likewise.
38774         * tests/test-isblank.c (isblank): Likewise.
38775         * tests/test-lchown.c (lchown): Likewise.
38776         * tests/test-ldexpl.c (ldexpl): Likewise.
38777         * tests/test-link.c (link): Likewise.
38778         * tests/test-linkat.c (linkat): Likewise.
38779         * tests/test-lseek.c (lseek): Likewise.
38780         * tests/test-lstat.c (lstat): Likewise.
38781         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38782         * tests/test-mbsinit.c (mbsinit): Likewise.
38783         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38784         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38785         * tests/test-memchr.c (memchr): Likewise.
38786         * tests/test-memcmp.c (memcmp): Likewise.
38787         * tests/test-memmem.c (memmem): Likewise.
38788         * tests/test-memrchr.c (memrchr): Likewise.
38789         * tests/test-mkdir.c (mkdir): Likewise.
38790         * tests/test-mkdirat.c (mkdirat): Likewise.
38791         * tests/test-mkfifo.c (mkfifo): Likewise.
38792         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38793         * tests/test-mknod.c (mknod): Likewise.
38794         * tests/test-nanosleep.c (nanosleep): Likewise.
38795         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38796         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38797         Likewise.
38798         * tests/test-open.c (open): Likewise.
38799         * tests/test-openat.c (openat): Likewise.
38800         * tests/test-perror.c (perror): Likewise.
38801         * tests/test-pipe2.c (pipe2): Likewise.
38802         * tests/test-poll.c (poll): Likewise.
38803         * tests/test-popen.c (popen, pclose): Likewise.
38804         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38805         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38806         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38807         (posix_spawn_file_actions_destroy)
38808         (posix_spawn_file_actions_addclose)
38809         (posix_spawn_file_actions_addopen)
38810         (posix_spawn_file_actions_adddup2): Likewise.
38811         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38812         * tests/test-pread.c (pread): Likewise.
38813         * tests/test-printf-posix.c (printf): Likewise.
38814         * tests/test-pty.c (openpty, forkpty): Likewise.
38815         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38816         (random_r): Likewise.
38817         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38818         * tests/test-readlink.c (readlink): Likewise.
38819         * tests/test-remove.c (remove): Likewise.
38820         * tests/test-rename.c (rename): Likewise.
38821         * tests/test-renameat.c (renameat): Likewise.
38822         * tests/test-rmdir.c (rmdir): Likewise.
38823         * tests/test-round1.c (round): Likewise.
38824         * tests/test-roundf1.c (roundf): Likewise.
38825         * tests/test-roundl.c (roundl): Likewise.
38826         * tests/test-setenv.c (setenv): Likewise.
38827         * tests/test-sigaction.c (sigaction): Likewise.
38828         * tests/test-sleep.c (sleep): Likewise.
38829         * tests/test-snprintf.c (snprintf): Likewise.
38830         * tests/test-sprintf-posix.c (sprintf): Likewise.
38831         * tests/test-stat.c (stat): Likewise.
38832         * tests/test-stpncpy.c (stpncpy): Likewise.
38833         * tests/test-strcasestr.c (strcasestr): Likewise.
38834         * tests/test-strchrnul.c (strchrnul): Likewise.
38835         * tests/test-strerror.c (strerror): Likewise.
38836         * tests/test-strsignal.c (strsignal): Likewise.
38837         * tests/test-strstr.c (strstr): Likewise.
38838         * tests/test-strtod.c (strtod): Likewise.
38839         * tests/test-strverscmp.c (strverscmp): Likewise.
38840         * tests/test-symlink.c (symlink): Likewise.
38841         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38842         * tests/test-times.c (times): Likewise.
38843         * tests/test-trunc1.c (trunc): Likewise.
38844         * tests/test-truncf1.c (truncf): Likewise.
38845         * tests/test-truncl.c (truncl): Likewise.
38846         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38847         Likewise.
38848         * tests/test-uname.c (uname): Likewise.
38849         * tests/test-unlink.c (unlink): Likewise.
38850         * tests/test-unlinkat.c (unlinkat): Likewise.
38851         * tests/test-unsetenv.c (unsetenv): Likewise.
38852         * tests/test-usleep.c (usleep): Likewise.
38853         * tests/test-utimensat.c (utimensat): Likewise.
38854         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38855         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38856         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38857         * tests/test-vprintf-posix.c (vprintf): Likewise.
38858         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38859         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38860         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38861         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38862         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38863         * tests/test-wcwidth.c (wcwidth): Likewise.
38864
38865         build: pull in conditional headers during GNULIB_POSIXCHECK
38866         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38867         definitions from any conditionally-included headers.
38868         * lib/stdlib.in.h (includes): Likewise.
38869         * lib/unistd.in.h (includes): Likewise.
38870
38871 2009-12-24  Bruno Haible  <bruno@clisp.org>
38872
38873         * tests/test-argv-iter.c: Include header file being tested immediately
38874         after config.h.
38875         * tests/test-base64.c: Likewise.
38876         * tests/test-flock.c: Likewise.
38877         * tests/test-fsync.c: Likewise.
38878         * tests/test-getdate.c: Likewise.
38879         * tests/test-getndelim2.c: Likewise.
38880         * tests/test-isfinite.c: Likewise.
38881         * tests/test-isinf.c: Likewise.
38882         * tests/test-strerror.c: Likewise.
38883         * tests/test-strsignal.c: Likewise.
38884
38885 2009-12-23  Eric Blake  <ebb9@byu.net>
38886
38887         unistd: work around cygwin bug
38888         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38889         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38890         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38891
38892 2009-12-23  Bruno Haible  <bruno@clisp.org>
38893
38894         localename: More tests.
38895         * tests/test-localename.c (SIZEOF): New macro.
38896         (categories): New variable.
38897         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38898         test_locale_name_default): Add test w.r.t. thread locale.
38899         (test_locale_name_thread): New function.
38900         (main): Invoke it.
38901
38902         localename: Make aware of thread locale.
38903         * lib/localename.h (gl_locale_name_thread): New declaration.
38904         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38905         behaviour with respect to thread locale.
38906         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38907         <langinfo.h>, glthread/lock.h.
38908         (SIZE_BITS): New macro.
38909         (string_hash): New function.
38910         (struct hash_node): New type.
38911         (HASH_TABLE_SIZE): New macro.
38912         (struniq_hash_table, struniq_lock): New variables.
38913         (struniq): New function.
38914         (gl_locale_name_thread): New function.
38915         (gl_locale_name): Invoke it.
38916         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38917         * modules/localename (Depends-on): Add lock.
38918         Reported by Mike Gran <spk121@yahoo.com>.
38919
38920 2009-12-23  Eric Blake  <ebb9@byu.net>
38921
38922         va-args: new module
38923         * modules/va-args: New file.
38924         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38925         * MODULES.html.sh (Core language properties): Mention it.
38926
38927         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38928         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38929         named alias for __attribute__((__unused__)).
38930         * lib/chown.c: Update client.
38931         * lib/fchmodat.c: Likewise.
38932         * lib/fts.c: Likewise.
38933         * lib/getdate.y: Likewise.
38934         * lib/getgroups.c: Likewise.
38935         * lib/getopt.c: Likewise.
38936         * lib/getugroups.c: Likewise.
38937         * lib/mkdir.c: Likewise.
38938         * lib/mkfifo.c: Likewise.
38939         * lib/mkfifoat.c: Likewise.
38940         * lib/mknod.c: Likewise.
38941         * lib/mknodat.c: Likewise.
38942         * lib/readlink.c: Likewise.
38943         * lib/se-context.in.h: Likewise.
38944         * lib/se-selinux.in.h: Likewise.
38945         * lib/sockets.c: Likewise.
38946         * lib/symlink.c: Likewise.
38947         * lib/symlinkat.c: Likewise.
38948         * lib/unicodeio.c: Likewise.
38949         * lib/unistr.h: Likewise.
38950         * tests/test-areadlink.c: Likewise.
38951         * tests/test-areadlinkat.c: Likewise.
38952         * tests/test-filenamecat.c: Likewise.
38953         * tests/test-fseeko.c: Likewise.
38954         * tests/test-ftello.c: Likewise.
38955         * tests/test-getdate.c: Likewise.
38956         * tests/test-getgroups.c: Likewise.
38957         * tests/test-gethostname.c: Likewise.
38958         * tests/test-quotearg.c: Likewise.
38959         * tests/test-version-etc.c: Likewise.
38960         * tests/test-xalloc-die.c: Likewise.
38961         * tests/test-xfprintf-posix.c: Likewise.
38962         * tests/test-xprintf-posix.c: Likewise.
38963         * tests/test-xvasprintf.c: Likewise.
38964
38965         tests: avoid compiler warnings
38966         * tests/test-fcntl.c (main): Delete unused parameters.
38967         * tests/test-freopen-safer.c (main): Likewise.
38968         * tests/test-xalloc-die.c (main): Mark unused parameters.
38969         * tests/test-fseeko.c (main): Likewise.
38970         * tests/test-ftello.c (main): Likewise.
38971         * tests/test-nanosleep.c (main): Avoid declaration warning.
38972         * tests/test-sleep.c (main): Likewise.
38973         * tests/test-unsetenv.c (main): Silence warning about string
38974         literal.
38975         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38976
38977 2009-12-23  Bruno Haible  <bruno@clisp.org>
38978
38979         * tests/test-localename.c (test_locale_name): New function, extracted
38980         from main. Also test mixed situations.
38981         (test_locale_name_posix, test_locale_name_environ,
38982         test_locale_name_default): New functions.
38983         (main): Invoke them all.
38984         * modules/localename-tests (configure.ac): Test for newlocale.
38985
38986 2009-12-23  Bruno Haible  <bruno@clisp.org>
38987
38988         unistd: Ensure getcwd gets declared before being overridden.
38989         * lib/unistd.in.h: Conditionally include <io.h>.
38990
38991 2009-12-22  Bruno Haible  <bruno@clisp.org>
38992
38993         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38994         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38995         (gl_WCHAR_H): Invoke it.
38996         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38997         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38998         Reported by Karl Berry <karl@freefriends.org>.
38999
39000 2009-12-22  Eric Blake  <ebb9@byu.net>
39001
39002         math, unistd: avoid redundant includes
39003         * lib/math.in.h (isnan): No need to re-include <math.h>.
39004         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39005
39006         getsubopt: work around cygwin bug
39007         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39008         avoid conflicting with system getsubopt.
39009         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39010         bug.
39011
39012         getopt: synchronize from glibc
39013         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39014         parameter order.  Adjust all callers.
39015         (_getopt_internal_r, main): Adjust quoting in error messages.
39016         Drop considerations for outdated POSIX 1003.2 error message.
39017         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39018         callers.
39019         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39020
39021         test-getopt: test stderr behavior
39022         * modules/getopt-posix-tests (Depends-on): Add dup2.
39023         * tests/test-getopt.c (ASSERT): Avoid stderr.
39024         (main): Move stderr to a temporary file.
39025         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39026         Instead, add parameter to inform caller if output occurred.
39027         (test_getopt): Adjust all existing tests to expect silence, and
39028         add new tests of leading ":".
39029         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39030         glibc shortcomings with leading "-:" or "+:" in optstring.
39031         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39032         Likewise.
39033         * doc/posix-functions/getopt.texi (getopt): Likewise.
39034
39035         test-getopt: enhance test
39036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39037         supports optind=0.
39038         * tests/test-getopt.c (OPTIND_MIN): Move...
39039         * tests/test-getopt.h (OPTIND_MIN): ...here.
39040         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39041         Require that optind=0 works, since modern BSD supports it in
39042         addition to optreset, and since coreutils expects it.
39043         (test_getopt_long_only): New test.
39044         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39045         glibc shortcomings with 'W;', and enforcement of optind=0.
39046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39047         Likewise.
39048
39049 2009-12-21  Bruno Haible  <bruno@clisp.org>
39050
39051         localename: Improvements for MacOS X and Cygwin.
39052         * lib/localename.h (gl_locale_name_environ): New declaration.
39053         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39054         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39055         (gl_locale_name_posix): Invoke it.
39056         (gl_locale_name_default): Add comments. Use Windows native API also on
39057         Cygwin.
39058
39059 2009-12-21  Bruno Haible  <bruno@clisp.org>
39060
39061         Update list of Win32 locale ids.
39062         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39063         (LANG_SAMI): Renamed from LANG_SAAMI.
39064         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39065         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39066         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39067         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39068         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39069         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39070         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39071         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39072         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39073         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39074         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39075         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39076         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39077         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39078         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39079         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39080         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39081         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39082         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39083         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39084         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39085         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39086         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39087         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39088         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39089         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39090         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39091         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39092         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39093         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39094         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39095         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39096         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39097         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39098         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39099         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39100         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39101         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39102         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39103         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39104         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39105         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39106         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39107         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39108         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39109         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39110         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39111         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39112         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39113         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39114         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39115         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39116         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39117         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39118         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39119         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39120         Add more languages and countries for Sami, Sorbian. Add more countries
39121         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39122         for Pashto. Change country for Syriac, Tswana.
39123
39124 2009-12-21  Eric Blake  <ebb9@byu.net>
39125
39126         test-utimens: avoid spurious failure
39127         * tests/test-chown.h (nap): Factor...
39128         * tests/nap.h: ...into new file.
39129         * tests/test-lchown.h (nap): Avoid duplication.
39130         * tests/test-utimens-common.h (nap): Use shared implementation,
39131         necessary on file systems with 1-second resolution.
39132         * modules/chown-tests (Files): Include new file.
39133         * modules/fdutimensat-tests (Files): Likewise.
39134         * modules/futimens-tests (Files): Likewise.
39135         * modules/lchown-tests (Files): Likewise.
39136         * modules/openat-tests (Files): Likewise.
39137         * modules/utimens-tests (Files): Likewise.
39138         * modules/utimensat-tests (Files): Likewise.
39139
39140 2009-12-19  Eric Blake  <ebb9@byu.net>
39141
39142         futimens, utimensat: work around Linux bug
39143         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39144         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39145         * lib/utimensat.c (rpl_utimensat): Work around it.
39146         * lib/futimens.c (rpl_futimens): Adjust comment.
39147
39148         utimens: work around Linux ctime bug
39149         * lib/utimens.c (detect_ctime_bug): New helper function.
39150         (update_timespec): Differentiate between workaround needed for
39151         this bug vs. what is needed for systems that lack utimensat.
39152         (fdutimens, lutimens): Work around bug.
39153
39154         utimens: check for ctime update
39155         * tests/test-utimens-common.h (check_ctime): Define.
39156         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39157         * tests/test-futimens.h (test_futimens): Likewise.
39158         * tests/test-lutimens.h (test_lutimens): Likewise.
39159         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39160         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39161
39162 2009-12-19  Bruno Haible  <bruno@clisp.org>
39163
39164         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39165         * tests/test-dprintf-posix2.sh: New file.
39166         * tests/test-dprintf-posix2.c: New file.
39167         * modules/dprintf-posix-tests (Files): Add them.
39168         (configure.ac): Check for getrlimit and setrlimit.
39169         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39170
39171 2009-12-19  Bruno Haible  <bruno@clisp.org>
39172
39173         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39174         * tests/test-fprintf-posix3.sh: New file.
39175         * tests/test-fprintf-posix3.c: New file.
39176         * modules/fprintf-posix-tests (Files): Add them.
39177         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39178
39179 2009-12-19  Eric Blake  <ebb9@byu.net>
39180
39181         dirfd: fix prototype
39182         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39183         * lib/dirfd.c (dirfd): Likewise.
39184
39185         canonicalize: reduce memory usage
39186         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39187         allocation to size.
39188         Reported by Solar Designer <solar@openwall.com>.
39189
39190 2009-12-19  Bruno Haible  <bruno@clisp.org>
39191
39192         New module attribute 'Applicability'.
39193         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39194         * gnulib-tool: New option --extract-applicability.
39195         (func_usage): Document it.
39196         (sed_extract_prog): Recognize it.
39197         (func_get_applicability): New function.
39198         (func_import): Generalize handling of 'link-warning' module.
39199         * modules/link-warning (Applicability): New section.
39200         * modules/arg-nonnull (Applicability): New section.
39201         Repoted by Simon Josefsson <simon@josefsson.org>.
39202
39203 2009-12-19  Bruno Haible  <bruno@clisp.org>
39204
39205         fflush: tweak
39206         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39207         * lib/fseeko.c (rpl_fseeko): Likewise.
39208
39209 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39210
39211         * lib/gl_list.h: Fix typo in comment.
39212
39213 2009-12-16  Eric Blake  <ebb9@byu.net>
39214
39215         fcntl: use to simplify other modules
39216         * modules/cloexec (Depends-on): Add fcntl.
39217         * modules/fchdir (Depends-on): Likewise.
39218         * modules/fd-safer-flag (Depends-on): Likewise.
39219         * modules/unistd-safer (Depends-on): Likewise.
39220         * modules/dup3 (configure.ac): Set module indicator.
39221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39222         missing.
39223         * lib/fchdir.c (_gl_register_dup): Fix comment.
39224         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39225         * lib/dup-safer.c (dup_safer): Likewise.
39226         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39227         * lib/dup3.c (dup3): Likewise.
39228         * tests/test-fchdir.c (main): Enhance test.
39229         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39230
39231         fcntl: port portions of fcntl to mingw
39232         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39233         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39234         replacement for mingw.
39235         * modules/fcntl (Description): Update.
39236         (Depends-on): Add dup2.
39237         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39238         * modules/fcntl-h (Makefile.am): Substitute it.
39239         * lib/fcntl.in.h (fcntl): Update declaration.
39240         (F_DUPFD, F_GETFD): New macros, when needed.
39241         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39242         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39243         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39244         we now guarantee.
39245
39246         fcntl: work around cygwin bug in F_DUPFD
39247         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39248         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39249         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39250         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39251         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39252
39253         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39254         * modules/fcntl (Files): List new files.
39255         (configure.ac): Run a test.
39256         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39257         * lib/fcntl.c (rpl_fcntl): Likewise.
39258         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39259         (gl_FCNTL_H): Always replace fcntl.h.
39260         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39261         * lib/fcntl.in.h (fcntl): Declare replacement.
39262         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39263         needed, plus a witness.
39264         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39265         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39266         * tests/test-fcntl.c: New file.
39267         * modules/fcntl-tests: Likewise.
39268
39269         binary-io: avoid potential compilation warning
39270         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39271         directives.
39272
39273         fflush: avoid compilation error on NetBSD
39274         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39275         between off_t and fpos_t, since the latter is sometimes a struct.
39276         * lib/fseeko.c (rpl_fseeko): Likewise.
39277         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39278
39279 2009-12-15  Eric Blake  <ebb9@byu.net>
39280
39281         fcntl-h, stdio, sys_ioctl: fix declarations
39282         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39283         function must not take arguments.
39284         * lib/sys_ioctl.in.h (ioctl): Likewise.
39285         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39286         (open): Add a link warning.
39287
39288 2009-12-15  Jim Meyering  <meyering@redhat.com>
39289
39290         areadlink, areadlink-with-size: relax license to LGPLv2+
39291         * modules/areadlink (License): Relax to LGPLv2+.
39292         * modules/areadlink-with-size (License): Likewise.
39293
39294 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39295             Bruno Haible  <bruno@clisp.org>
39296
39297         *printf: Fix memory leak.
39298         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39299         * lib/vfprintf.c (vfprintf): Likewise.
39300         * lib/dprintf.c (dprintf): Likewise.
39301         * lib/vdprintf.c (vdprintf): Likewise.
39302
39303 2009-12-14  Eric Blake  <ebb9@byu.net>
39304
39305         accept4: adjust module dependencies
39306         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39307
39308         utimens: one more try at avoiding compiler warning
39309         * lib/utimens.c (lutimens): Lower scope of result.
39310
39311 2009-12-13  Bruno Haible  <bruno@clisp.org>
39312
39313         Move the malloc checking from module 'list' to new module 'xlist'.
39314         * modules/xlist: New file.
39315         * lib/gl_xlist.h: New file.
39316         * lib/gl_xlist.c: New file.
39317         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39318         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39319         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39320         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39321         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39322         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39323         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39324         gl_sortedlist_nx_add): New declarations.
39325         (struct gl_list_implementation): Rename and change methods accordingly.
39326         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39327         (gl_list_nx_create): Renamed from gl_list_create.
39328         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39329         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39330         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39331         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39332         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39333         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39334         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39335         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39336         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39337         gl_list_create_empty.
39338         (gl_list_nx_create): Renamed from gl_list_create.
39339         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39340         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39341         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39342         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39343         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39344         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39345         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39346         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39347         * lib/gl_array_list.c: Don't include xalloc.h.
39348         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39349         NULL upon out-of-memory.
39350         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39351         out-of-memory.
39352         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39353         Change return type to 'int'.
39354         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39355         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39356         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39357         upon out-of-memory.
39358         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39359         upon out-of-memory.
39360         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39361         upon out-of-memory.
39362         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39363         upon out-of-memory.
39364         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39365         out-of-memory.
39366         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39367         Update.
39368         (gl_array_list_implementation): Update.
39369         * lib/gl_carray_list.c: Don't include xalloc.h.
39370         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39371         Return NULL upon out-of-memory.
39372         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39373         out-of-memory.
39374         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39375         Change return type to 'int'.
39376         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39377         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39378         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39379         upon out-of-memory.
39380         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39381         upon out-of-memory.
39382         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39383         out-of-memory.
39384         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39385         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39386         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39387         Update.
39388         (gl_carray_list_implementation): Update.
39389         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39390         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39391         gl_linked_create_empty. Return NULL upon out-of-memory.
39392         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39393         out-of-memory.
39394         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39395         Change return type to 'int'. Return -1 upon out-of-memory.
39396         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39397         out-of-memory.
39398         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39399         upon out-of-memory.
39400         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39401         upon out-of-memory.
39402         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39403         NULL upon out-of-memory.
39404         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39405         upon out-of-memory.
39406         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39407         out-of-memory.
39408         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39409         Update.
39410         * lib/gl_linked_list.c: Don't include xalloc.h.
39411         (gl_linked_list_implementation): Update.
39412         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39413         (add_to_bucket): Change return type to 'int'.
39414         (gl_linkedhash_list_implementation): Update.
39415         * lib/gl_anytree_list1.h (free_subtree): New function.
39416         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39417         gl_tree_create_empty. Return NULL upon out-of-memory.
39418         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39419         Change return type to 'int'. Return -1 upon out-of-memory.
39420         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39421         out-of-memory.
39422         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39423         (gl_tree_remove_node): New function, moved here from
39424         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39425         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39426         Update.
39427         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39428         malloc, not xmalloc. Return NULL upon out-of-memory.
39429         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39430         out-of-memory.
39431         (gl_tree_remove_node_from_tree): New function, extracted from
39432         gl_tree_remove_node.
39433         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39434         upon out-of-memory.
39435         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39436         out-of-memory.
39437         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39438         upon out-of-memory.
39439         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39440         upon out-of-memory.
39441         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39442         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39443         not xmalloc. Return NULL upon out-of-memory.
39444         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39445         out-of-memory.
39446         (gl_tree_remove_node_from_tree): New function, extracted from
39447         gl_tree_remove_node.
39448         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39449         upon out-of-memory.
39450         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39451         out-of-memory.
39452         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39453         upon out-of-memory.
39454         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39455         upon out-of-memory.
39456         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39457         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39458         gl_anytree_list1.h before gl_anyavltree_list2.h.
39459         (gl_avltree_list_implementation): Update.
39460         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39461         gl_anytree_list1.h before gl_anyavltree_list2.h.
39462         (gl_rbtree_list_implementation): Update.
39463         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39464         Change return type to 'int'. Return -1 upon out-of-memory. Use
39465         __builtin_expect.
39466         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39467         (gl_avltreehash_list_implementation): Update.
39468         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39469         (gl_rbtreehash_list_implementation): Update.
39470         * modules/array-list (Depends-on): Remove xalloc.
39471         * modules/carray-list (Depends-on): Likewise.
39472         * modules/linked-list (Depends-on): Likewise.
39473         * modules/linkedhash-list (Depends-on): Likewise.
39474         * modules/avltree-list (Depends-on): Likewise.
39475         * modules/rbtree-list (Depends-on): Likewise.
39476         * modules/avltreehash-list (Depends-on): Likewise.
39477         * modules/rbtreehash-list (Depends-on): Likewise.
39478
39479         * modules/xsublist: New file.
39480         * lib/gl_xsublist.h: New file.
39481         * lib/gl_xsublist.c: New file.
39482         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39483         (gl_sublist_nx_create): New declaration.
39484         * lib/gl_sublist.c: Don't include xalloc.h.
39485         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39486         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39487         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39488         Change return type to 'int'. Return -1 upon out-of-memory.
39489         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39490         upon out-of-memory.
39491         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39492         NULL upon out-of-memory.
39493         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39494         upon out-of-memory.
39495         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39496         NULL upon out-of-memory.
39497         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39498         NULL upon out-of-memory.
39499         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39500         upon out-of-memory.
39501         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39502         (gl_sublist_list_implementation): Update.
39503         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39504         upon out-of-memory.
39505         * modules/sublist (Depends-on): Remove xalloc.
39506
39507         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39508         * tests/test-carray_list.c: Likewise.
39509         * tests/test-linked_list.c: Likewise.
39510         * tests/test-linkedhash_list.c: Likewise.
39511         * tests/test-avltree_list.c: Likewise.
39512         * tests/test-rbtree_list.c: Likewise.
39513         * tests/test-avltreehash_list.c: Likewise.
39514         * tests/test-rbtreehash_list.c: Likewise.
39515         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39516         * modules/carray-list-tests (Makefile.am): Likewise.
39517         * modules/linked-list-tests (Makefile.am): Likewise.
39518         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39519         * modules/avltree-list-tests (Makefile.am): Likewise.
39520         * modules/rbtree-list-tests (Makefile.am): Likewise.
39521         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39522         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39523
39524         * NEWS: Mention the changes.
39525
39526         * lib/clean-temp.c: Include gl_xlist.h.
39527         * modules/clean-temp (Depends-on): Add xlist.
39528
39529         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39530         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39531
39532         * tests/test-array_oset.c: Include gl_xlist.h.
39533         * modules/array-oset-tests (Depends-on): Add xlist.
39534
39535         Reported by José E. Marchesi <jemarch@gnu.org>.
39536
39537 2009-12-13  Bruno Haible  <bruno@clisp.org>
39538
39539         Move the malloc checking from module 'oset' to new module 'xoset'.
39540         * modules/xoset: New file.
39541         * lib/gl_xoset.h: New file.
39542         * lib/gl_xoset.c: New file.
39543         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39544         declarations.
39545         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39546         (struct gl_oset_implementation): Rename and change methods accordingly.
39547         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39548         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39549         'int'. Mark as __warn_unused_result__.
39550         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39551         gl_oset_create_empty.
39552         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39553         'int'.
39554         * lib/gl_array_oset.c: Don't include xalloc.h.
39555         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39556         malloc, not xmalloc.
39557         (grow): Change return type to 'int'. Don't call xalloc_die.
39558         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39559         to 'int'.
39560         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39561         'int'.
39562         (gl_array_oset_implementation): Update.
39563         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39564         gl_tree_create_empty.
39565         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39566         'int'.
39567         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39568         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39569         xmalloc.
39570         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39571         not xmalloc.
39572         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39573         xmalloc.
39574         (gl_avltree_oset_implementation): Update.
39575         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39576         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39577         xmalloc.
39578         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39579         not xmalloc.
39580         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39581         xmalloc.
39582         (gl_rbtree_oset_implementation): Update.
39583         * modules/array-oset (Depends-on): Remove xalloc.
39584         * modules/avltree-oset (Depends-on): Likewise.
39585         * modules/rbtree-oset (Depends-on): Likewise.
39586         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39587         * tests/test-avltree_oset.c: Likewise.
39588         * tests/test-rbtree_oset.c: Likewise.
39589         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39590         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39591         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39592         * NEWS: Mention the change.
39593
39594 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39595
39596         maint.mk: allow a project to override release-prep commands
39597         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39598         commands into a new rule.
39599         (release-prep): New rule.
39600         (release-prep-hook): New overridable variable.
39601
39602 2009-12-13  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39605
39606 2009-12-13  Jim Meyering  <meyering@redhat.com>
39607
39608         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39609         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39610
39611 2009-12-12  Bruno Haible  <bruno@clisp.org>
39612
39613         duplocale: Tweak.
39614         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39615
39616 2009-12-12  Karl Berry  <karl@gnu.org>
39617
39618         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39619
39620 2009-12-12  Bruno Haible  <bruno@clisp.org>
39621
39622         * m4/po.m4: Undo incorrect untabification.
39623
39624 2009-12-12  Bruno Haible  <bruno@clisp.org>
39625
39626         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39627         * modules/c-strtod (Depends-on): Add locale.
39628         * modules/c-strtold (Depends-on): Likewise.
39629
39630 2009-12-12  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39633
39634 2009-12-11  Eric Blake  <ebb9@byu.net>
39635
39636         setenv: relax requirement in light of POSIX ruling
39637         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39638         not NULL.
39639         * tests/test-setenv.c (main): Relax test.
39640         * tests/test-unsetenv.c (main): Likewise.
39641         * doc/posix-functions/setenv.texi (setenv): Document this.
39642         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39643
39644 2009-12-11  Bruno Haible  <bruno@clisp.org>
39645
39646         New module 'fd-safer-flag'.
39647         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39648         * lib/dup-safer.c (dup_safer_flag): Remove function.
39649         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39650         * lib/fd-safer.c (fd_safer_flag): Remove function.
39651         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39652         * modules/cloexec (configure.ac): Drop indicator macro.
39653         * modules/fd-safer-flag: New file.
39654         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39655         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39656         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39657
39658 2009-12-11  Bruno Haible  <bruno@clisp.org>
39659
39660         Tests for module 'nl_langinfo'.
39661         * modules/nl_langinfo-tests: New file.
39662         * tests/test-nl_langinfo.sh: New file.
39663         * tests/test-nl_langinfo.c: New file.
39664
39665         New module 'nl_langinfo'.
39666         * lib/nl_langinfo.c: New file.
39667         * m4/nl_langinfo.m4: New file.
39668         * modules/nl_langinfo: New file.
39669         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39670
39671 2009-12-11  Bruno Haible  <bruno@clisp.org>
39672
39673         Tests for module 'langinfo'.
39674         * modules/langinfo-tests: New file.
39675         * tests/test-langinfo.c: New file.
39676
39677         New module 'langinfo'.
39678         * lib/langinfo.in.h: New file.
39679         * m4/langinfo_h.m4: New file.
39680         * modules/langinfo: New file.
39681         * doc/posix-headers/langinfo.texi: Mention the new module.
39682
39683 2009-12-11  Bruno Haible  <bruno@clisp.org>
39684
39685         * lib/config.charset: Untabify.
39686
39687 2009-12-11  Bruno Haible  <bruno@clisp.org>
39688
39689         * modules/unistd-safer (configure.ac): Drop indicator macro.
39690
39691 2009-12-11  Bruno Haible  <bruno@clisp.org>
39692
39693         Move pipe2-safer code to its own file.
39694         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39695         * lib/pipe-safer.c (pipe2_safer): Remove function.
39696         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39697         (Makefile.am): Add it to lib_SOURCES.
39698
39699 2009-12-10  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39702
39703 2009-12-10  Bruno Haible  <bruno@clisp.org>
39704
39705         Declare which arguments expect non-NULL values, for GCC and clang.
39706         * build-aux/arg-nonnull.h: New file.
39707         * modules/arg-nonnull: New file.
39708         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39709         (inet_ntop, inet_pton): Use it.
39710         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39711         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39712         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39713         (open, openat): Use it.
39714         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39715         (fnmatch): Use it.
39716         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39717         (getopt, getopt_long, getopt_long_only): Use it.
39718         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39719         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39720         Use it.
39721         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39722         (iconv_open): Use it.
39723         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39724         (strtoimax, strtoumax): Use it.
39725         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39726         (duplocale): Use it.
39727         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39728         (frexp, frexpl): Use it.
39729         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39730         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39731         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39732         (tsearch, tfind, tdelete, twalk): Use it.
39733         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39734         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39735         sigpending): Use it.
39736         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39737         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39738         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39739         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39740         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39741         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39742         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39743         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39744         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39745         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39746         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39747         Use it.
39748         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39749         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39750         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39751         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39752         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39753         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39754         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39755         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39756         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39757         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39758         strtoull, unsetenv): Use it.
39759         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39760         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39761         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39762         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39763         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39764         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39765         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39766         (strcasecmp, strncasecmp): Use it.
39767         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39768         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39769         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39770         rpl_setsockopt): Use it.
39771         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39772         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39773         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39774         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39775         (gettimeofday): Use it.
39776         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39777         (times): Use it.
39778         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39779         (uname): Use it.
39780         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39781         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39782         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39783         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39784         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39785         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39786         unlinkat, write): Use it.
39787         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39788         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39789         * lib/argv-iter.h: Include arg-nonnull.h.
39790         (_ATTRIBUTE_NONNULL_): Remove macro.
39791         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39792         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39793         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39794         optimization.
39795         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39796         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39797         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39798         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39799         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39800         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39801         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39802         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39803         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39804         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39805         * modules/dirent (Depends-on): Add arg-nonnull.
39806         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39807         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39808         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39809         * modules/fnmatch (Depends-on): Add arg-nonnull.
39810         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39811         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39812         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39813         * modules/glob (Depends-on): Add arg-nonnull.
39814         (Makefile.am): Insert arg-nonnull.h into glob.h.
39815         * modules/iconv_open (Depends-on): Add arg-nonnull.
39816         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39817         * modules/inttypes (Depends-on): Add arg-nonnull.
39818         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39819         * modules/locale (Depends-on): Add arg-nonnull.
39820         (Makefile.am): Insert arg-nonnull.h into locale.h.
39821         * modules/math (Depends-on): Add arg-nonnull.
39822         (Makefile.am): Insert arg-nonnull.h into math.h.
39823         * modules/netdb (Depends-on): Add arg-nonnull.
39824         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39825         * modules/search (Depends-on): Add arg-nonnull.
39826         (Makefile.am): Insert arg-nonnull.h into search.h.
39827         * modules/signal (Depends-on): Add arg-nonnull.
39828         (Makefile.am): Insert arg-nonnull.h into signal.h.
39829         * modules/spawn (Depends-on): Add arg-nonnull.
39830         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39831         * modules/stdio (Depends-on): Add arg-nonnull.
39832         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39833         * modules/stdlib (Depends-on): Add arg-nonnull.
39834         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39835         * modules/string (Depends-on): Add arg-nonnull.
39836         (Makefile.am): Insert arg-nonnull.h into string.h.
39837         * modules/strings (Depends-on): Add arg-nonnull.
39838         (Makefile.am): Insert arg-nonnull.h into strings.h.
39839         * modules/sys_socket (Depends-on): Add arg-nonnull.
39840         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39841         * modules/sys_stat (Depends-on): Add arg-nonnull.
39842         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39843         * modules/sys_time (Depends-on): Add arg-nonnull.
39844         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39845         * modules/sys_times (Depends-on): Add arg-nonnull.
39846         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39847         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39848         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39849         * modules/time (Depends-on): Add arg-nonnull.
39850         (Makefile.am): Insert arg-nonnull.h into time.h.
39851         * modules/unistd (Depends-on): Add arg-nonnull.
39852         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39853         * modules/wchar (Depends-on): Add arg-nonnull.
39854         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39855         * modules/argv-iter (Depends-on): Add arg-nonnull.
39856         * tests/test-canonicalize.c (null_ptr): New function.
39857         (main): Use it.
39858         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39859         (main): Use it.
39860         * tests/test-memmem.c (null_ptr): New function.
39861         (main): Use it.
39862         Reported by Jim Meyering.
39863
39864 2009-12-10  Bruno Haible  <bruno@clisp.org>
39865
39866         Use spaces for indentation, not tabs.
39867         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39868         * m4/*.m4: Untabify.
39869         * build-aux/*.h: Untabify.
39870         * tests/**/*.[hc]: Untabify.
39871         * README: New section "Indent with spaces, not TABs", based on
39872         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39873         * NEWS: Mention the change.
39874
39875 2009-12-10  Bruno Haible  <bruno@clisp.org>
39876
39877         pty test: Fix link error.
39878         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39879         test_pty_LDADD.
39880
39881 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39882
39883         * modules/pty: New file.
39884         * modules/pty-tests: New file.
39885         * m4/pty.m4: New file.
39886         * tests/test-pty.c: New file.
39887         * doc/glibc-headers/pty.texi: Modified.
39888         * doc/glibc-functions/forkpty.texi: Modified.
39889         * doc/glibc-functions/openpty.texi: Modified.
39890
39891 2009-12-10  Bruno Haible  <bruno@clisp.org>
39892
39893         Avoid syntax error in C++ mode.
39894         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39895
39896 2009-12-10  Bruno Haible  <bruno@clisp.org>
39897
39898         Use sed with option -e.
39899         * gnulib-tool (func_version, func_emit_copyright_notice,
39900         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39901         option -e to sed.
39902         * modules/link-warning (Makefile.am): Likewise.
39903
39904 2009-12-10  Jim Meyering  <meyering@redhat.com>
39905
39906         mgetgroups: do not write bytes beyond end of malloc'd buffer
39907         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39908         username, we call getgroups with a one-element-shorter buffer,
39909         but still told it the length was original, max_n_groups.
39910
39911 2009-12-09  Eric Blake  <ebb9@byu.net>
39912
39913         cloexec: relax license
39914         * modules/cloexec (Maintainer): Add myself.
39915         (License): Use LGPL, not GPL.
39916
39917         link-warning: optimize generation
39918         * modules/link-warning (Makefile.am): Reduce process usage.
39919
39920 2009-12-09  Bruno Haible  <bruno@clisp.org>
39921
39922         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39923         workaround was added on 2009-11-17.
39924
39925 2009-12-09  Jim Meyering  <meyering@redhat.com>
39926             Bruno Haible  <bruno@clisp.org>
39927
39928         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39929         * modules/link-warning (Makefile.am): Make the comment-removing sed
39930         command more robust in the face of bootstrap-prepended comment lines.
39931
39932 2009-12-09  Bruno Haible  <bruno@clisp.org>
39933
39934         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39935         most one group.
39936
39937 2009-12-09  Simon Josefsson <simon@josefsson.org>
39938             Bruno Haible  <bruno@clisp.org>
39939
39940         * build-aux/link-warning.h: Add copyright notice.
39941         * modules/link-warning (Makefile.am): Generate link-warning.h from
39942         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39943         * NEWS: Mention change in link-warning module.
39944         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39945         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39946         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39947         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39948         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39949         * modules/math (Makefile.am): Add dependency to math.h.
39950         * modules/search (Makefile.am): Add dependency to search.h.
39951         * modules/signal (Makefile.am): Add dependency to signal.h.
39952         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39953         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39954         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39955         * modules/string (Makefile.am): Add dependency to string.h.
39956         * modules/strings (Makefile.am): Add dependency to strings.h.
39957         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39958         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39959         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39960         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39961         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39962         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39963         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39964         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39965         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39966
39967 2009-12-09  Bruno Haible  <bruno@clisp.org>
39968
39969         fchdir: Optimize away rpl_fstat when possible.
39970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39971         REPLACE_OPEN_DIRECTORY.
39972         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39973
39974 2009-12-09  Bruno Haible  <bruno@clisp.org>
39975
39976         * lib/fchdir.c: Update comment.
39977
39978 2009-12-09  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39981
39982 2009-12-08  Eric Blake  <ebb9@byu.net>
39983
39984         fchdir: avoid memory leak on re-registration.
39985         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39986
39987 2009-12-08  Jim Meyering  <meyering@redhat.com>
39988
39989         init.sh: avoid Solaris 10 /bin/sh portability problem
39990         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39991         sourced script:
39992           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39993           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39994           bar
39995         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39996         and two tests used that idiom.
39997         * tests/init.sh: Update suggested usage comments.
39998         (path_prepend_): New function, to be used in place
39999         of the --src-path=DIR option.
40000         (setup_): Move PATH-prepending code into path_prepend_.
40001         * tests/test-pread.sh: Adapt to new usage.
40002         * tests/test-xalloc-die.sh: Likewise.
40003
40004 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40005
40006         * doc/gnulib.texi (Glibc pty.h): Add.
40007         * doc/glibc-functions/forkpty.texi: Add.
40008         * doc/glibc-functions/openpty.texi: Add.
40009         Suggested by Bruno Haible.
40010
40011 2009-12-08  Eric Blake  <ebb9@byu.net>
40012
40013         fchdir: fix logic bugs
40014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40015         * tests/test-fchdir.c (main): Enhance test.
40016         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40017         is in use.
40018
40019         dup2: fix logic bugs
40020         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40021         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40022         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40023         exists.
40024         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40025
40026 2009-12-07  Eric Blake  <ebb9@byu.net>
40027
40028         unlink: fix m4 detection
40029         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40030
40031         unistd-safer: add unit test
40032         * modules/unistd-safer-tests: New file.
40033         * tests/test-dup-safer.c: Likewise.
40034         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40035         * tests/test-dup2.c (setmode): Likewise.
40036         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40037
40038         cloexec: preserve text vs. binary across dup_cloexec
40039         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40040         mode.
40041         * modules/dup2-tests (Depends-on): Add binary-io.
40042         * modules/cloexec-tests (Depends-on): Likewise.
40043         * tests/test-dup2.c (setmode, is_mode): New helpers.
40044         (main): Add tests that translation mode is preserved.
40045         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40046         Reported by Bruno Haible.
40047
40048         mgetgroups: reduce duplicate listings
40049         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40050         resulting array.
40051         * tests/test-chown.h (test_chown): Simplify client.
40052         * tests/test-lchown.h (test_lchown): Likewise.
40053
40054 2009-12-06  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40057         value.
40058
40059 2009-12-06  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/progname.c: Include stdio.h, stdlib.h.
40062         (set_program_name): Reject a NULL argument.
40063
40064 2009-12-05  Eric Blake  <ebb9@byu.net>
40065
40066         pipe2-safer: new module
40067         * modules/pipe2-safer: New file.
40068         * lib/unistd-safer.h (pipe2_safer): New prototype.
40069         * lib/unistd--.h (pipe2): New wrapper.
40070         * lib/pipe-safer.c (pipe2_safer): New function.
40071         * modules/pipe (Depends-on): Add pipe2-safer.
40072         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40073
40074         stdlib-safer: preserve cloexec flag for mkostemp[s]
40075         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40076         fd_safer_flag.
40077
40078         unistd-safer: allow preservation of cloexec status via flag
40079         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40080         prototypes.
40081         * lib/dup-safer.c (dup_safer_flag): New function.
40082         * lib/fd-safer.c (fd_safer_flag): Likewise.
40083         * modules/cloexec (configure.ac): Set witness.
40084
40085         test-dup2: enhance test
40086         * modules/dup2-tests (Depends-on): Add cloexec.
40087         * tests/test-dup2.c (main): Enhance test.
40088
40089         cloexec: add dup_cloexec
40090         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40091         header and comments.
40092         * lib/cloexec.c (set_cloexec_flag): Add comments.
40093         (dup_cloexec): New function, with mingw implementation borrowed
40094         from...
40095         * lib/w32spawn.h (dup_noinherit): ...here.
40096         * modules/execute (Depends-on): Add cloexec.
40097         * modules/pipe (Depends-on): Likewise.
40098         * modules/cloexec (Depends-on): Add dup2.
40099         * modules/cloexec-tests (Files): New file.
40100         * tests/test-cloexec.c: Likewise.
40101
40102         test-xalloc-die: fix test for mingw
40103         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40104         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40105         directory and .exe suffix off argv[0] output.
40106
40107         test-fseeko: fix test for mingw
40108         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40109         than undefining fseek, so test will pass on mingw.
40110
40111 2009-12-05  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/progname.h (set_program_name): Clarify specification.
40114         * lib/progname.c (set_program_name): Likewise.
40115         Reported by Jim Meyering.
40116
40117 2009-12-05  Jim Meyering  <meyering@redhat.com>
40118
40119         maint.mk: backslash-escape parens in default regexp
40120         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40121         backslash-escape the literal parentheses.
40122
40123         maint.mk: news-date-check: use grep -E
40124         * top/maint.mk (today): Define a Make variable, not a...
40125         (news-date-check): ...shell variable.
40126         (news-date-regexp): Use the Make variable.
40127         Use grep's -E option.  Change the failing diagnostic to mention
40128         the variable, $(news-date-regexp).
40129
40130 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40131
40132         maintainer-makefile: allow customization of NEWS entry format
40133         * top/maint.mk (news-date-regexp): New overridable variable.
40134         (news-date-check): Use it.
40135
40136 2009-12-04  Eric Blake  <ebb9@byu.net>
40137
40138         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40139         * lib/mgetgroups.h (xgetgroups): New prototype.
40140         * lib/mgetgroups.c (xgetgroups): New wrapper.
40141         (mgetgroups): Handle ENOSYS.
40142         * modules/mgetgroups (Depends-on): Add realloc.
40143         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40144
40145         mgetgroups: avoid argument promotion issues with -1
40146         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40147         for invalid gid_t.
40148         * tests/test-chown.h (getegid, test_chown): Likewise.
40149         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40150
40151 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40152
40153         exclude: Fix header file problems.
40154         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40155
40156 2009-12-01  Jim Meyering  <meyering@redhat.com>
40157
40158         fts: fts_open: do not let an empty string cause immediate failure
40159         This is required in support of GNU rm, for which the command
40160         "rm A '' B" must process and remove both A and B, in spite of
40161         the empty string argument.
40162         * lib/fts.c (fts_open): Do not let the presence of an empty string
40163         cause fts_open to fail immediately.  Most fts-using tools must be
40164         able to process all arguments, in order, and can be expected to
40165         diagnose such arguments themselves.
40166
40167 2009-11-30  Eric Blake  <ebb9@byu.net>
40168
40169         utimens: fix compilation error
40170         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40171         Declare variable at right scope.
40172
40173 2009-11-29  Jim Meyering  <meyering@redhat.com>
40174
40175         bootstrap: handle perl-5.11's changed --version output
40176         * build-aux/bootstrap (get_version): Handle perl separately,
40177         since perl-5.11's --version output is different.
40178
40179 2009-11-28  Jim Meyering  <meyering@redhat.com>
40180
40181         userspec: depend on the inttostr module, too
40182         * modules/userspec (Depends-on): Add inttostr.
40183
40184         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40185         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40186         number of MAXUID when it evaluates to (uid_t) -1.
40187         Likewise for group ID.  Reported by Matt McCutchen in
40188         <http://savannah.gnu.org/bugs/?28113>
40189
40190         userspec: reformat to use spaces, not TABs
40191         * lib/userspec.c: Expand TABs to spaces.
40192         Add Emacs' "indent-tabs-mode: nil" hint.
40193
40194 2009-11-27  Eric Blake  <ebb9@byu.net>
40195
40196         getopt-gnu: flush out another BSD bug
40197         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40198         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40199         flush out BSD bug.
40200         * tests/test-getopt.h (test_getopt): End lists with NULL.
40201         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40202         (test_getopt_long_posix): Enhance test.
40203         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40204         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40205         getopt-gnu.
40206         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40207         Likewise.
40208
40209 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40210
40211         * modules/idpriv-droptemp-tests (Notice): Fix text.
40212
40213 2009-11-27  Jim Meyering  <meyering@redhat.com>
40214
40215         test-xalloc-die: avoid spurious failure due to libtool argv difference
40216         In a libtool-enabled project, this test would fail due to a difference
40217         in the emitted program name, e.g.,
40218         -test-xalloc-die: memory exhausted
40219         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40220         Use program to avoid that.
40221         * modules/xalloc-die-tests (Depends-on): Add progname.
40222         * tests/test-xalloc-die.c: Include progname.h".
40223         (program_name): Remove decl.
40224         (main): Call set_program_name.
40225         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40226
40227 2009-11-26  Richard Jones  <rjones@redhat.com>
40228
40229         w32sock: leave win32 error in place.
40230         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40231
40232 2009-11-26  Eric Blake  <ebb9@byu.net>
40233
40234         init.sh: suggest to use skip_ and fail_ functions in comments
40235         * tests/init.sh: Add a sentence.
40236
40237 2009-11-25  Bruno Haible  <bruno@clisp.org>
40238
40239         init.sh: add documentation in comments
40240         * tests/init.sh: Add some developer and user documentation.
40241
40242 2009-11-26  Jim Meyering  <meyering@redhat.com>
40243
40244         init.sh: accommodate even those who specify bogus srcdir manually
40245         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40246         configure-time tests to be sanitized, so that there is no need to
40247         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40248         (with no double quotes) suffices.  However, since tests may be
40249         invoked manually, and since you may explicitly set srcdir to the
40250         name of a directory containing spaces, do quote its uses here.
40251         * tests/test-pread.sh: Likewise.
40252         Suggested by Bruno Haible.
40253
40254         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40255         * tests/test-pread.sh: Write no data into the pipe, because
40256         test-pread actually reads none.  This avoids a diagnostic,
40257         "bash: echo: write error: Broken pipe", that arises in the unusual
40258         event something is ignoring SIGPIPE, and might be interpreted
40259         as some sort of failure.  Reported by Bruno Haible.
40260
40261 2009-11-25  Jim Meyering  <meyering@redhat.com>
40262
40263         test-pread: cover failure with ESPIPE and EINVAL
40264         * tests/test-pread.c (main): Test for failure, too.
40265         * tests/test-pread.sh: Invoke with stdin on a pipe.
40266         Suggested by Eric Blake.
40267
40268         pread: improvement and fix
40269         * modules/pread (Depends-on): Depend on lseek, for portability to
40270         e.g., mingw.  Suggested by Eric Blake.
40271         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40272
40273         unistd.in.h: correct declaration of pread
40274         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40275         Reported by Richard W.M. Jones.
40276
40277         test-pread.sh: distribute the test script
40278         * modules/pread-tests (Files): Include test-pread.sh.
40279
40280         test-pread.sh: clean up
40281         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40282         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40283         That is unnecessary, since it's always ".".
40284         Suggestion from Eric Blake.
40285
40286         test-pread.sh: make executable
40287         * tests/test-pread.sh: Set executable bit.
40288         Reported by Eric Blake.
40289
40290         correct typo in test-pread.sh
40291         * tests/test-pread.sh: Add #! line.
40292
40293         test pread
40294         * tests/test-pread.c: New file.
40295         * tests/test-pread.sh: Likewise.
40296         * modules/pread-tests: Likewise.
40297
40298         pread: new module
40299         * modules/pread: New file.
40300         * lib/unistd.in.h (pread): Define/declare.
40301         * lib/pread.c (pread): New file.
40302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40303         * modules/unistd (Makefile.am): Substitute witnesses.
40304         * doc/posix-functions/pread.texi (pread): Update.
40305         * MODULES.html.sh: Add pread.
40306
40307 2009-11-25  Jim Meyering  <meyering@redhat.com>
40308
40309         tests/init.sh: new file to be used via most *.sh tests
40310         * tests/init.sh: New file.
40311
40312 2009-11-25  Eric Blake  <ebb9@byu.net>
40313
40314         utimens: work around older Linux failure with symlinks
40315         * lib/utimens.c (lutimensat_works_really): New variable.
40316         (fdutimens, lutimens): Use it to manage kernels that support
40317         nanosecond times on files, but not on symlinks.
40318         Reported by OndÅ™ej Vašík.
40319
40320         utimes: fix configure grammar
40321         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40322
40323 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40324
40325         regex: Fix fastmap for multibyte character ranges.
40326         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40327         characters when a multibyte character range is included.
40328
40329 2009-11-22  Andy Wingo  <wingo@pobox.com>
40330
40331         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40332         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40333
40334 2009-11-24  Bruno Haible  <bruno@clisp.org>
40335
40336         doc: Most *_l functions exist in MacOS X 10.5.
40337         * doc/posix-functions/duplocale.texi: Update platforms list.
40338         * doc/posix-functions/freelocale.texi: Likewise.
40339         * doc/posix-functions/newlocale.texi: Likewise.
40340         * doc/posix-functions/uselocale.texi: Likewise.
40341         * doc/posix-functions/isalnum_l.texi: Likewise.
40342         * doc/posix-functions/isalpha_l.texi: Likewise.
40343         * doc/posix-functions/isblank_l.texi: Likewise.
40344         * doc/posix-functions/iscntrl_l.texi: Likewise.
40345         * doc/posix-functions/isdigit_l.texi: Likewise.
40346         * doc/posix-functions/isgraph_l.texi: Likewise.
40347         * doc/posix-functions/islower_l.texi: Likewise.
40348         * doc/posix-functions/isprint_l.texi: Likewise.
40349         * doc/posix-functions/ispunct_l.texi: Likewise.
40350         * doc/posix-functions/isspace_l.texi: Likewise.
40351         * doc/posix-functions/isupper_l.texi: Likewise.
40352         * doc/posix-functions/iswalnum_l.texi: Likewise.
40353         * doc/posix-functions/iswalpha_l.texi: Likewise.
40354         * doc/posix-functions/iswblank_l.texi: Likewise.
40355         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40356         * doc/posix-functions/iswctype_l.texi: Likewise.
40357         * doc/posix-functions/iswdigit_l.texi: Likewise.
40358         * doc/posix-functions/iswgraph_l.texi: Likewise.
40359         * doc/posix-functions/iswlower_l.texi: Likewise.
40360         * doc/posix-functions/iswprint_l.texi: Likewise.
40361         * doc/posix-functions/iswpunct_l.texi: Likewise.
40362         * doc/posix-functions/iswspace_l.texi: Likewise.
40363         * doc/posix-functions/iswupper_l.texi: Likewise.
40364         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40365         * doc/posix-functions/isxdigit_l.texi: Likewise.
40366         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40367         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40368         * doc/posix-functions/strcoll_l.texi: Likewise.
40369         * doc/posix-functions/strfmon_l.texi: Likewise.
40370         * doc/posix-functions/strftime_l.texi: Likewise.
40371         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40372         * doc/posix-functions/strxfrm_l.texi: Likewise.
40373         * doc/posix-functions/tolower_l.texi: Likewise.
40374         * doc/posix-functions/toupper_l.texi: Likewise.
40375         * doc/posix-functions/towctrans_l.texi: Likewise.
40376         * doc/posix-functions/towlower_l.texi: Likewise.
40377         * doc/posix-functions/towupper_l.texi: Likewise.
40378         * doc/posix-functions/wcscoll_l.texi: Likewise.
40379         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40380         * doc/posix-functions/wctrans_l.texi: Likewise.
40381         * doc/posix-functions/wctype_l.texi: Likewise.
40382         * doc/glibc-functions/strptime_l.texi: Likewise.
40383         * doc/glibc-functions/strtod_l.texi: Likewise.
40384         * doc/glibc-functions/strtof_l.texi: Likewise.
40385         * doc/glibc-functions/strtol_l.texi: Likewise.
40386         * doc/glibc-functions/strtold_l.texi: Likewise.
40387         * doc/glibc-functions/strtoll_l.texi: Likewise.
40388         * doc/glibc-functions/strtoul_l.texi: Likewise.
40389         * doc/glibc-functions/strtoull_l.texi: Likewise.
40390         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40391         * doc/glibc-functions/wcstod_l.texi: Likewise.
40392         * doc/glibc-functions/wcstof_l.texi: Likewise.
40393         * doc/glibc-functions/wcstol_l.texi: Likewise.
40394         * doc/glibc-functions/wcstold_l.texi: Likewise.
40395         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40396         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40397         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40398
40399 2009-11-24  Bruno Haible  <bruno@clisp.org>
40400
40401         duplocale: Fix logic bug.
40402         * lib/duplocale.c: Don't include <langinfo.h>.
40403         (_NL_LOCALE_NAME): Remove macro.
40404         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40405         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40406
40407 2009-11-23  Jim Meyering  <meyering@redhat.com>
40408
40409         test-update-copyright: don't hard-code /usr/bin/perl
40410         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40411         perl to print the current year.  Gilles Espinasse reported that
40412         the replaced use of perl was hard-coded as /usr/bin/perl.
40413
40414 2009-11-23  Bruno Haible  <bruno@clisp.org>
40415
40416         duplocale: Add support for glibc 2.3.x.
40417         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40418
40419 2009-11-22  Bruno Haible  <bruno@clisp.org>
40420
40421         vasnprintf: Tiny optimization.
40422         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40423         MacOS X.
40424
40425 2009-11-22  Bruno Haible  <bruno@clisp.org>
40426
40427         Tests for module 'duplocale'.
40428         * modules/duplocale-tests: New file.
40429         * tests/test-duplocale.c: New file.
40430
40431         New module 'duplocale'.
40432         * m4/duplocale.m4: New file.
40433         * lib/locale.in.h (duplocale): New declaration.
40434         * lib/duplocale.c: New file.
40435         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40436         gl_LOCALE_H_DEFAULTS): New macros.
40437         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40438         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40439         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40440         REPLACE_DUPLOCALE.
40441         * modules/duplocale: New file.
40442         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40443
40444 2009-11-22  Bruno Haible  <bruno@clisp.org>
40445
40446         * modules/locale-tests (configure.ac): Test for newlocale function.
40447         * tests/test-locale.c: When the system has extended locale functions,
40448         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40449
40450         locale: Make locale_t available when possible.
40451         * lib/locale.in.h: Include <xlocale.h> when it exists.
40452         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40453         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40454         * modules/locale (Depends-on): Add extensions.
40455         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40456         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40457
40458 2009-11-22  Bruno Haible  <bruno@clisp.org>
40459
40460         Add comments.
40461         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40462         invocation.
40463         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40464         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40465         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40466
40467 2009-11-22  Bruno Haible  <bruno@clisp.org>
40468
40469         error: account for the possibility of freopen (stdout).
40470         * lib/error.c: Include <unistd.h>.
40471         (flush_stdout): New function, extracted from error and error_at_line.
40472         Determine stdout's fd dynamically.
40473         (error, error_at_line): Invoke flush_stdout.
40474         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40475         * modules/error (Depends-on): Add unistd.
40476
40477 2009-11-22  Bruno Haible  <bruno@clisp.org>
40478
40479         diffseq: Add comment.
40480         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40481
40482 2009-11-22  Jim Meyering  <meyering@redhat.com>
40483
40484         c-stack: avoid defining an unused static function
40485         * lib/c-stack.c (find_stack_direction): Do not define this function
40486         when it will not be used.
40487
40488         diffseq: avoid spurious gcc warnings
40489         * lib/diffseq.h (IF_LINT2): Define.
40490         (compareseq): Use it to initialize two members of "part".
40491         This avoids two used-uninitialized warnings.
40492
40493 2009-11-21  Jim Meyering  <meyering@redhat.com>
40494
40495         c-stack: avoid "ignoring return value of `write'" warning
40496         * lib/c-stack.c: Include "ignore-value.h".
40497         (die): Explicitly ignore each write return value.
40498         * modules/c-stack (Depends-on): Add ignore-value.
40499
40500 2009-11-21  Bruno Haible  <bruno@clisp.org>
40501
40502         diffseq: reduce scope of variable 'best'.
40503         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40504         variable, earlier used for two different purposes.
40505
40506 2009-11-21  Jim Meyering  <meyering@redhat.com>
40507
40508         diffseq: remove useless assignment to "best"
40509         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40510         assignment.  At that point "best" is already guaranteed to be zero.
40511
40512 2009-11-20  Eric Blake  <ebb9@byu.net>
40513
40514         build: mention ftp redirector in release announcements
40515         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40516         values that used to come from cfg.mk; mention FTP redirect URL.
40517         * build-aux/announce-gen: Mention the mirror list.
40518         Suggested by Karl Berry.
40519
40520         nanosleep: improve port to mingw
40521         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40523         LIB_NANOSLEEP, but only when needed.
40524         * modules/select (Link): Document LIBSOCKET.
40525         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40526         enough.
40527
40528         nanosleep: work around cygwin bug
40529         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40530         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40531         bug.
40532         (getnow): Delete, not needed.
40533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40534         LIB_CLOCK_GETTIME.
40535         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40536         clock-time, gettime.
40537         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40538         bug.
40539         * modules/nanosleep-tests: New test.
40540         * tests/test-nanosleep.c: New file.
40541
40542         sleep: work around cygwin bug
40543         * lib/sleep.c (rpl_sleep): Work around the bug.
40544         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40545         (gl_PREREQ_SLEEP): Delete unused macro.
40546         * modules/sleep (Depends-on): Add verify.
40547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40548         * modules/unistd (Makefile.am): Substitute witness.
40549         * lib/unistd.in.h (sleep): Update prototype.
40550         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40551         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40552         * modules/sleep-tests (Depends-on): Check for alarm.
40553
40554 2009-11-20  Jim Meyering  <meyering@redhat.com>
40555
40556         maint.mk: improve sc_prohibit_magic_number_exit
40557         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40558         so it does not match uses like System.exit(1).
40559         Add comments showing how to correct all offenders.
40560
40561 2009-11-19  Eric Blake  <ebb9@byu.net>
40562
40563         xalloc-die-tests: add missing library
40564         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40565
40566         test-xvasprintf: silence compiler warnings
40567         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40568         empty string from gcc.
40569
40570 2009-11-19  Jim Meyering  <meyering@redhat.com>
40571
40572         xfreopen: new module, from coreutils
40573         * modules/xfreopen: New module.
40574         * lib/xfreopen.c: New file.
40575         * lib/xfreopen.h: New file.
40576         * MODULES.html.sh (File stream based Input/Output"): Add it.
40577
40578 2009-11-19  Eric Blake  <ebb9@byu.net>
40579
40580         manywarnings: depend on warnings
40581         * modules/manywarnings (Depends-on): Add warnings.
40582
40583         build: avoid compiler warnings
40584         * lib/select.c (rpl_select): Delete unused variable.
40585         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40586
40587 2009-11-18  Eric Blake  <ebb9@byu.net>
40588
40589         tests: avoid false negative with --with-packager
40590         * tests/test-version-etc.sh: Discard packager information.
40591         * tests/test-argp-version-etc-1.sh: Likewise.
40592         Reported by Mike Frysinger.
40593
40594         utimens: fix regression on Solaris
40595         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40596         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40597         can only change fd timestamps via futimesat.  Instead, use an
40598         additional witness macro to avoid BSD bug.
40599         Reported by Jim Meyering.
40600
40601 2009-11-17  Eric Blake  <ebb9@byu.net>
40602
40603         usleep: use it to simplify tests
40604         * modules/stat-time-tests (Depends-on): Add usleep.
40605         (configure.ac): Drop usleep check.
40606         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40607         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40608         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40609         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40610         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40611         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40612         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40613         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40614         Likewise.
40615         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40616         * tests/test-lchown.h (nap): Likewise.
40617         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40618         * tests/test-stat-time.c (nap): Likewise.
40619         * tests/test-utimens-common.h (nap): Update comments.
40620
40621         usleep: new module
40622         * modules/usleep: New file.
40623         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40624         * lib/usleep.c (usleep): Likewise.
40625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40626         * modules/unistd (Makefile.am): Substitute witnesses.
40627         * lib/unistd.in.h (usleep): Add declaration.
40628         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40629         * MODULES.html.sh (Date and time): Likewise.
40630         * modules/usleep-tests (Depends-on): New test.
40631         * tests/test-usleep.c: New file.
40632
40633         chown: work around OpenBSD bug
40634         * lib/chown.c (rpl_chown): Work around the bug.
40635         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40636         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40638         * modules/chown (Depends-on): Add stdbool.
40639         * modules/lchown (Depends-on): Likewise.
40640         * doc/posix-functions/chown.texi (chown): Document the bug.
40641         * doc/posix-functions/lchown.texi (lchown): Likewise.
40642         * tests/test-lchown.h (test_chown): Relax test.
40643
40644         mkstemp: avoid conflict with C++ keyword template
40645         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40646         * lib/mkostemp.c (mkostemp): Likewise.
40647         * lib/mkostemps.c (mkostemps): Likewise.
40648         * lib/mkstemp.c (mkstemp): Likewise.
40649         * lib/mkstemps.c (mkstemps): Likewise.
40650
40651         xalloc-die-tests: optimize
40652         * tests/test-xalloc-die.sh: Reduce number of processes.
40653
40654 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40655
40656         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40657         patch from ludo@gnu.org (Ludovic Courtès).
40658
40659 2009-11-17  Jim Meyering  <meyering@redhat.com>
40660
40661         version-etc: use proper license string
40662         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40663         * modules/version-etc-fsf: Likewise.
40664
40665 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40666
40667         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40668         printed to stdout.  Deal with EOL differences.
40669
40670 2009-11-17  Eric Blake  <ebb9@byu.net>
40671
40672         unsetenv: work around Solaris bug
40673         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40674         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40675         Reported by Jim Meyering.
40676
40677         vasnprintf: avoid compiler warnings
40678         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40679         variables.
40680         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40681
40682 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40683
40684         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40685         settings since xalloc-die is no longer the self test,
40686         xalloc-die.sh is.
40687
40688 2009-11-17  Jim Meyering  <meyering@redhat.com>
40689
40690         test-xalloc-die.sh: make the code agree with the commit log
40691         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40692         at the end, just in case you happen to have a test-xalloc-die
40693         program in some other PATH directory.
40694
40695         test-xalloc-die.sh: fix a portability bug
40696         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40697         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40698         Otherwise, argv[0] (as often seen in diagnostics) would be too
40699         system-dependent, sometimes with, and sometimes without the leading "./".
40700
40701         version-etc-fsf: relax license to LGPLv3+
40702         * modules/version-etc-fsf (License): Relax license.
40703
40704 2009-11-16  Eric Blake  <ebb9@byu.net>
40705
40706         xalloc-die-tests: avoid printing null pointer
40707         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40708         shell script.
40709         * tests/test-xalloc-die.c (program_name): Declare.
40710         * tests/test-xalloc-die.sh (tmpfiles): New file.
40711
40712         setenv, unsetenv: work around various bugs
40713         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40714         (setenv) [HAVE_SETENV]: Work around bugs.
40715         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40716         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40717         for bugs.
40718         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40719         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40721         * modules/stdlib (Makefile.am): Update substitutions.
40722         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40723         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40724         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40725         * modules/setenv-tests: New test.
40726         * modules/unsetenv-tests: Likewise.
40727         * tests/test-setenv.c: New file.
40728         * tests/test-unsetenv.c: Likewise.
40729
40730 2009-11-16  Jim Meyering  <meyering@redhat.com>
40731
40732         version-etc: relax license to LGPLv3+
40733         * modules/version-etc (License): Relax license.
40734
40735         better AC_REQUIRE expanded-before-required-warning avoidance
40736         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40737         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40738         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40739         which is no longer needed.
40740
40741 2009-11-16  Eric Blake  <ebb9@byu.net>
40742
40743         test-freading: clean up temporary file
40744         * tests/test-freading.c (main): Remove file on success, and use
40745         ASSERT more liberally.
40746         Reported by Jim Meyering.
40747
40748 2009-11-16  Jim Meyering  <meyering@redhat.com>
40749
40750         avoid new AC_REQUIRE expanded-before-required warnings
40751         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40752         merely using it.
40753         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40754         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40755
40756 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40757
40758         * tests/test-xalloc-die.c: New file.
40759         * modules/xalloc-die-tests: New file.
40760         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40761         XFAIL_TESTS so it can be appended by modules.
40762
40763 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40764
40765         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40766         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40767
40768 2009-11-14  Eric Blake  <ebb9@byu.net>
40769
40770         fnmatch: avoid compiler warning
40771         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40772         to silence compiler warning about mismatch signedness in ?:.
40773         Reported by Robert Millan.
40774
40775         intprops: add double-inclusion guard
40776         * lib/intprops.h: Allow idempotent includes.
40777         Suggested by Bruce Korb.
40778
40779         openat: detect Solaris fchownat bug
40780         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40781         penalizing glibc chownat when only lchownat is broken.
40782         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40783         trailing slash bugs.
40784         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40785         * modules/openat-tests (Files): Include more files.
40786         (Depends-on): Add mgetgroups, sleep, stat-time.
40787         (configure.ac): Add additional checks.
40788         (Makefile.am): Build new test.
40789         * tests/test-fchownat.c: New file.
40790
40791         lchown: detect Solaris and FreeBSD bug
40792         * lib/lchown.c (rpl_lchown): Work around bug.
40793         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40795         * modules/unistd (Makefile.am): Populate it.
40796         * lib/unistd.in.h (lchown): Update declaration.
40797         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40798         * modules/lchown-tests: New file.
40799         * tests/test-lchown.h (test_lchown): Likewise.
40800         * tests/test-lchown.c (main): Likewise.
40801
40802         chown: detect Solaris and FreeBSD bug
40803         * lib/chown.c (rpl_chown): Work around bug.
40804         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40805         (gl_PREREQ_CHOWN): Delete.
40806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40807         * modules/unistd (Makefile.am): Populate it.
40808         * lib/unistd.in.h (chown): Update declaration.
40809         * lib/lchown.c (chown): Update client.
40810         * modules/lchown (Depends-on): Add lstat.
40811         * doc/posix-functions/chown.texi (chown): Document the bug.
40812         * doc/posix-functions/getgroups.texi (getgroups): Document
40813         getgroups pitfall.
40814         * modules/chown-tests: New file.
40815         * tests/test-chown.h (test_chown): Likewise.
40816         * tests/test-chown.c (main): Likewise.
40817
40818 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40819
40820         gnulib-tool: correctly detect absence of m4 directories
40821         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40822
40823 2009-11-14  Jim Meyering  <meyering@redhat.com>
40824
40825         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40826         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40827
40828 2009-11-14  John W. Eaton  <jwe@gnu.org>
40829
40830         strftime.h: wrap function declaration in extern "C" block
40831         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40832
40833 2009-11-13  Eric Blake  <ebb9@byu.net>
40834
40835         getgroups: avoid compiler warning
40836         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40837
40838         getgroups: work around FreeBSD bug
40839         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40840         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40841         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40842         * tests/test-getgroups.c (main): Fix buffer overrun.
40843
40844         getgroups: avoid compilation failure
40845         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40846         * modules/getgroups (Depends-on): Add stdint.
40847
40848 2009-11-13  Jim Meyering  <meyering@redhat.com>
40849
40850         test-getgroups: avoid compilation failure
40851         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40852
40853 2009-11-13  Eric Blake  <ebb9@byu.net>
40854
40855         mgetgroups: new module, taken from coreutils
40856         * modules/mgetgroups: New file.
40857         * lib/mgetgroups.h: Likewise.
40858         * lib/mgetgroups.c (mgetgroups): Likewise.
40859         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40860         * MODULES.html.sh (Users and groups): Mention it.
40861
40862         getgroups: don't expose GETGROUPS_T to user
40863         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40864         an element at a time if GETGROUPS_T is wrong size.
40865         * lib/getugroups.h (getugroups): Change signature.
40866         * lib/unistd.in.h (getgroups): Likewise.
40867         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40868         signature needs fixing.
40869         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40870         AC_TYPE_GETGROUPS.
40871         * modules/group-member (Depends-on): Add getgroups.
40872         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40873         (group_member): Rely on getgroups replacement.
40874         * lib/getugroups.c (getugroups): Use gid_t.
40875         * tests/test-getgroups.c (main): Likewise.
40876         * NEWS: Mention the signature change.
40877         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40878         problem with signature.
40879         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40880         GETGROUPS_T is still useful for setgroups.
40881
40882         getgroups, getugroups: provide stubs for mingw
40883         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40884         * lib/getugroups.c (getugroups): Likewise.
40885         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40886         function.  Modernize replacement scheme.
40887         (gl_PREREQ_GETGROUPS): Delete.
40888         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40889         * modules/getgroups (configure.ac): Declare witness.
40890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40891         * modules/unistd (Depends-on): Substitute witness.
40892         * lib/unistd.in.h (getgroups): Declare replacement.
40893
40894         getgroups: avoid calling exit
40895         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40896         drop xalloc.
40897         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40898         dependencies.
40899         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40900         exiting, in the rare case of malloc failure.
40901
40902         getgroups: fix logic error
40903         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40904         has more than 20 groups.
40905         * modules/getgroups-tests: New test.
40906         * tests/test-getgroups.c: New file.
40907
40908 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40909
40910         * tests/test-base64.c: Improve.
40911
40912 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40913
40914         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40915         Blake <ebb9@byu.net>.
40916
40917 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40918
40919         * tests/test-xvasprintf.c: Add %s%s related checks.
40920
40921 2009-11-12  Eric Blake  <ebb9@byu.net>
40922
40923         version-etc: match standards.texi style
40924         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40925         and use <> only for URLs.
40926
40927 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40928
40929         fts: do not fail on a submount during traversal
40930         * lib/fts.c (fts_build): Read the stat info again after opening
40931         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40932         Original report at http://bugzilla.redhat.com/501848.
40933
40934 2009-11-12  Jim Meyering  <meyering@redhat.com>
40935
40936         bootstrap: sync from coreutils
40937         * build-aux/bootstrap (bootstrap_epilogue): New function.
40938         Use git_modules_config in one more place.  This make bootstrap's
40939         --gnulib-srcdir option more useful for testing.
40940
40941         bootstrap: generalize autoheader check
40942         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40943         AC_CONFIG_HEADERS.
40944
40945 2009-11-11  Eric Blake  <ebb9@byu.net>
40946
40947         mkfifoat: use new modules for Solaris and BSD bugs
40948         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40949         * lib/mkfifoat.c (mknodat): Split...
40950         * lib/mknodat.c (mknodat): ...into new file.
40951         * modules/mkfifoat (Files): Ship new file.
40952         (Depends-on): Add mkfifo, mknod.
40953         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40954         (Depends-on): Add symlink.
40955         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40956         redundant with test_mkfifo.h.
40957         (do_mkfifoat, do_mknodat): New helpers.
40958
40959         mknod: new module
40960         * modules/mknod: New file.
40961         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40962         * lib/mknod.c (mknod): Likewise.
40963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40964         defaults.
40965         * modules/sys_stat (Makefile.am): Substitute them.
40966         * lib/sys_stat.in.h (mknod): Declare replacement.
40967         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40968         Document it.
40969         * doc/posix-functions/mknod.texi (mknod): Likewise.
40970         * modules/mknod-tests: New test.
40971         * tests/test-mknod.c: Likewise.
40972
40973         mkfifo: new module
40974         * modules/mkfifo: New file.
40975         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40976         * lib/mkfifo.c (mkfifo): Likewise.
40977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40978         defaults.
40979         * modules/sys_stat (Makefile.am): Substitute them.
40980         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40981         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40982         Document it.
40983         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40984         * modules/mkfifo-tests: New test.
40985         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40986         from test-mkfifoat.c.
40987         * tests/test-mkfifo.c: New file.
40988
40989         readlink: detect FreeBSD bug
40990         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40991         slash on symlink.
40992         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40993         * tests/test-readlink.h (test_readlink): Enhance test.
40994
40995         symlink: detect FreeBSD bug
40996         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40997         slash on symlink.
40998         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40999         * tests/test-symlink.h (test_symlink): Enhance test.
41000
41001 2009-11-10  Eric Blake  <ebb9@byu.net>
41002
41003         link: detect FreeBSD bug
41004         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41005         symlink.
41006         * doc/posix-functions/link.texi (link): Document the bug.
41007         * tests/test-link.h (test_link): Enhance test.
41008         * tests/test-linkat.c (main): Update caller.
41009
41010         unlink, remove: detect FreeBSD bug
41011         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41012         slash on symlink.
41013         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41014         * doc/posix-functions/remove.texi (remove): Likewise.
41015         * tests/test-unlink.h (test_unlink): Enhance test.
41016         * tests/test-remove.c (main): Likewise.
41017
41018 2009-11-09  Eric Blake  <ebb9@byu.net>
41019
41020         rename: detect FreeBSD bug
41021         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41022         slash on symlink.
41023         * modules/renameat-tests (Depends-on): Add filenamecat.
41024         * tests/test-rename.h (test_rename): Allow one more errno.
41025         * tests/test-renameat.c (main): Likewise.
41026         * doc/posix-functions/rename.texi (rename): Document the bug.
41027
41028         open: detect FreeBSD bug
41029         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41030         symlink.
41031         * doc/posix-functions/open.texi (open): Document the bug.
41032         * doc/posix-functions/utimes.texi (utimes): Likewise.
41033         * tests/test-open.h (test_open): Add parameters, and test symlink
41034         handling.
41035         * tests/test-open.c (main): Adjust caller.
41036         * tests/test-fcntl-safer.c (main): Likewise.
41037         * modules/open-tests (Depends-on): Add stdbool, symlink.
41038         * modules/fcntl-safer-tests (Depends-on): Likewise.
41039         * tests/test-openat.c (main): Add test-open tests.
41040
41041         stat: detect FreeBSD bug
41042         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41043         symlink.
41044         * doc/posix-functions/stat.texi (stat): Document the bug.
41045         * tests/test-stat.h (test_stat_func): Add argument.
41046         * tests/test-stat.c (main): Adjust caller.
41047         * tests/test-fstatat.c (main): Likewise.
41048         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41049         Reported by Jim Meyering.
41050
41051 2009-11-09  James Youngman  <jay@gnu.org>
41052
41053         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41054         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41055
41056 2009-11-08  Jim Meyering  <meyering@redhat.com>
41057
41058         utimens: remove invalid futimesat call
41059         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41060         It used the file descriptor of the target file as the DIR_FD
41061         parameter and NULL as the file name.  That caused failure with
41062         errno == EFAULT on FreeBSD-8.0-rc2
41063
41064 2009-11-07  Eric Blake  <ebb9@byu.net>
41065
41066         fflush, freadseek: use fseeko, not fseek
41067         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41068         (clear_ungetc_buffer): Avoid potential problems on large files.
41069         * lib/freadseek.c (freadseek): Likewise.
41070         * modules/freadseek (Depends-on): Add fseeko.
41071         * modules/fseek (configure.ac): Set a witness.
41072         * tests/test-fflush.c (main): Use fseeko.
41073         * tests/test-fpurge.c (fseek): Disable link warning.
41074         * tests/test-freadable.c (fseek): Likewise.
41075         * tests/test-freading.c (fseek): Likewise.
41076         * tests/test-fseeko.c (fseek): Likewise.
41077         * tests/test-ftell.c (fseek): Likewise.
41078         * tests/test-ftello.c (fseek): Likewise.
41079         * tests/test-fwritable.c (fseek): Likewise.
41080         * tests/test-fwriting.c (fseek): Likewise.
41081
41082 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41083
41084         * modules/memchr (Depends-on): Drop getpagesize dependency.
41085
41086 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41087
41088         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41089         Reported by Ludovic Courtès.
41090         * build-aux/pmccabe2html: Improve example usage.
41091         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41092
41093 2009-11-06  Jim Meyering  <meyering@redhat.com>
41094
41095         do-release-commit-and-tag: New module.
41096         Automate the release-commit and tag process.
41097         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41098         * modules/do-release-commit-and-tag: New file.
41099         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41100
41101 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41102
41103         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41104         because test-select.c uses inet_pton.
41105
41106 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41107
41108         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41109         GETADDRINFO_LIB.  Bump serial number.
41110         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41111         Suggested by Eric Blake <ebb9@byu.net>.
41112
41113 2009-11-05  Eric Blake  <ebb9@byu.net>
41114
41115         strtod: detect darwin bug
41116         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41117         Reported by Leo Davis.
41118
41119         freopen-safer: new module
41120         * modules/freopen-safer: New module.
41121         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41122         * lib/freopen-safer.c (freopen_safer): New file.
41123         * lib/stdio-safer.h (freopen_safer): New declaration.
41124         * lib/stdio--.h (freopen): New override.
41125         * MODULES.html.sh (File stream based Input/Output): Mention it.
41126         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41127         freopen-safer module.
41128         * doc/posix-functions/stderr.texi (stderr): Likewise.
41129         * doc/posix-functions/stdin.texi (stdin): Likewise.
41130         * doc/posix-functions/stdout.texi (stdout): Likewise.
41131         * modules/freopen-safer-tests: New test.
41132         * tests/test-reopen-safer.c: New file.
41133
41134 2009-11-05  Jim Meyering  <meyering@redhat.com>
41135
41136         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41137         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41138
41139 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41140
41141         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41142
41143 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41144
41145         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41146
41147 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41148
41149         Fix link error.
41150         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41151         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41152
41153 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41154
41155         * tests/test-func.c: Also test value of __func__.
41156
41157 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41158
41159         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41160         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41161
41162 2009-11-05  Bruno Haible  <bruno@clisp.org>
41163
41164         Fix link error.
41165         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41166         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41167         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41168
41169 2009-11-05  Bruno Haible  <bruno@clisp.org>
41170
41171         Tests for module 'inet_pton'.
41172         * modules/inet_pton-tests: New file.
41173         * tests/test-inet_pton.c: New file.
41174
41175 2009-11-05  Bruno Haible  <bruno@clisp.org>
41176
41177         Tests for module 'inet_ntop'.
41178         * modules/inet_ntop-tests: New file.
41179         * tests/test-inet_ntop.c: New file.
41180
41181 2009-11-04  Eric Blake  <ebb9@byu.net>
41182
41183         stdlib-safer: wrap all mkstemp variants
41184         * modules/mkostemp (configure.ac): Set witness.
41185         * modules/mkostemps (configure.ac): Likewise.
41186         * modules/mkstemps (configure.ac): Likewise.
41187         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41188         (mkstemps_safer): Wrap more functions.
41189         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41190         wrapping.
41191         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41192         (mkstemps_safer): Implement the wrappers.
41193
41194         mkstemps, mkostemps: new modules
41195         * modules/mkostemps: New module.
41196         * modules/mkstemps: Likewise.
41197         * lib/mkostemps.c (mkostemps): New file.
41198         * lib/mkstemps.c (mkstemps): Likewise.
41199         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41200         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41202         * modules/stdlib (Makefile.am): Substitute them.
41203         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41204         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41205         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41206         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41207         * MODULES.html.sh (File system functions): Mention them.
41208
41209         tempname: resync from glibc
41210         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41211         same values for __GT_FILE as glibc.  Abort even when assertions
41212         are disabled.
41213         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41214         match its value otherwise.  Allow idempotent inclusion.
41215         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41216         * lib/mkostemp.c (mkostemp): Likewise.
41217         * lib/mkstemp.c (mkstemp): Likewise.
41218         * lib/tmpfile.c (tmpfile): Likewise.
41219         * NEWS: Document this.
41220
41221         utimens: fix use of futimens on older Linux
41222         * lib/utimens.c (fdutimens): Use updated, rather than original,
41223         timespec to avoid bug in older Linux kernel.
41224         Reported by Simon Josefsson.
41225
41226 2009-11-04  Bruno Haible  <bruno@clisp.org>
41227
41228         Make num_processors more flexible and consistent.
41229         * lib/nproc.h (enum nproc_query): New type.
41230         (num_processors): Add a 'query' argument.
41231         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41232         (num_processors): Add a 'query' argument. Test the value of the
41233         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41234         mingw, count the number of CPUs available for the current process.
41235         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41236         Check for sched_getaffinity and sched_getaffinity_np.
41237         * modules/nproc (Depends-on): Add c-ctype, extensions.
41238         * NEWS: Mention the change.
41239
41240 2009-11-03  Bruno Haible  <bruno@clisp.org>
41241
41242         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41243
41244 2009-11-03  Jim Meyering  <meyering@redhat.com>
41245
41246         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41247         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41248         if it is defined.
41249
41250 2009-11-02  Eric Blake  <ebb9@byu.net>
41251
41252         mktime, timegm: share common declaration
41253         * lib/mktime-internal.h: New file.
41254         * lib/mktime.c: Use it rather than open-coding a declaration.
41255         * lib/timegm.c: Likewise.
41256         * modules/mktime (Files): Ship it.
41257         * modules/timegm (Files): Likewise.
41258         Suggested by Bruno Haible.
41259
41260         test-update-copyright: update test to match script changes
41261         * tests/test-update-copyright.sh: Avoid hard-coding perl
41262         location.  Don't update *.bak created by earlier runs.
41263
41264 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41265             Simon Josefsson  <simon@josefsson.org>
41266             Bruno Haible  <bruno@clisp.org>
41267
41268         Fix link error on Solaris 8.
41269         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41270         also in libnsl. Define also INET_PTON_LIB.
41271         * modules/inet_pton (Link): New section.
41272
41273 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41274             Bruno Haible  <bruno@clisp.org>
41275
41276         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41277         * modules/inet_ntop (Link): New section.
41278         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41279
41280 2009-11-02  Eric Blake  <ebb9@byu.net>
41281
41282         maint: avoid compiler warnings in m4 macros
41283         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41284         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41285
41286 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41287
41288         * m4/pmccabe2html.m4: Remove file.
41289         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41290         function.  Change maintainer.
41291         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41292         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41293         Courtès).
41294
41295 2009-10-31  Eric Blake  <ebb9@byu.net>
41296
41297         fseeko: fix m4 regression
41298         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41299         regression from 2009-10-27.
41300         Reported by Ralf Wildenhues.
41301
41302 2009-10-31  Jim Meyering  <meyering@redhat.com>
41303
41304         inttostr: aesthetics and improved (compile-time) safety
41305         Define inttype_is_signed rather than inttype_is_unsigned,
41306         since the sole use is via "#if inttype_is_signed".
41307         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41308         inttype_is_unsigned.
41309         * lib/offtostr.c (inttype_is_signed): Likewise.
41310         * lib/uinttostr.c (inttype_is_signed): Likewise.
41311         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41312         * lib/inttostr.c (inttostr): Use verify to cross-check the
41313         inttype_is_signed value and the signedness of the actual type.
41314         * modules/inttostr (Depends-on): Add verify.
41315
41316 2009-10-30  Eric Blake  <ebb9@byu.net>
41317
41318         build: avoid compiler warnings
41319         * lib/fchmodat.c (lchmod): Mark unused variables.
41320         * lib/getopt.c (_getopt_initialize): Likewise.
41321         * lib/mktime.c (__mktime_internal): Provide prototype.
41322         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41323         older gcc that do not understand #pragma GCC diagnostic.
41324         * lib/uinttostr.c (inttype_is_unsigned): Define.
41325         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41326
41327 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41328
41329         stat: fix compilation on AIX
41330         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41331         only see struct stat64.
41332
41333 2009-10-30  Eric Blake  <ebb9@byu.net>
41334
41335         exclude: make more robust
41336         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41337         rather than masking a coding bug.
41338         Suggested by Bruno Haible.
41339
41340 2009-10-30  Jim Meyering  <meyering@redhat.com>
41341
41342         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41343         Rather than putting #!/usr/bin/perl on the first line,
41344         start with a variant of what's recommended by "man perlrun" that
41345         invokes the first "perl" program from your shell's search path.
41346         * build-aux/gitlog-to-changelog: Replace #!... as above.
41347         Add a "Local Variables" perl mode setting.
41348         Prompted by a patch from Ludovic Courtès.
41349         Improved by Eric Blake.
41350         * build-aux/useless-if-before-free: Likewise.
41351         * build-aux/announce-gen: Likewise.
41352         * build-aux/update-copyright: Likewise.
41353
41354 2009-10-29  Eric Blake  <ebb9@byu.net>
41355
41356         filenamecat-lgpl: adjust clients
41357         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41358         filenamecat.
41359         * modules/renameat (Depends-on): Likewise.
41360
41361         filenamecat: split into filenamecat-lgpl
41362         * modules/filenamecat-lgpl: New module.
41363         * modules/filenamecat (Files): Move library-safe files into
41364         filenamecat-lgpl.
41365         (Depends-on): Add filenamecat-lgpl.
41366         (configure.ac): Declare witness.
41367         * lib/filenamecat.h (file_name_concat): Only declare when using
41368         GPL module.
41369         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41370         Move...
41371         * lib/filenamecat-lgpl.c: ...into new file.
41372         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41373         (gl_FILE_NAME_CONCAT): Use it.
41374         * MODULES.html.sh (File system functions): Mention new module.
41375
41376         argp: avoid memory leak
41377         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41378         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41379         base_name, since the latter malloc()s and can call exit().
41380         Leak introduced 2006-07-03.
41381
41382         dirname-lgpl: adjust clients that don't need full dirname
41383         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41384         * modules/filenamecat (Depends-on): Likewise.
41385         * modules/linkat (Depends-on): Likewise.
41386         * modules/mkancesdirs (Depends-on): Likewise.
41387         * modules/mkdir (Depends-on): Likewise.
41388         * modules/openat (Depends-on): Likewise.
41389         * modules/savewd (Depends-on): Likewise.
41390         * modules/rename (Depends-on): Likewise.
41391         (License): Relax license.
41392         * modules/mkdir-tests (Depends-on): Drop progname.
41393         (Makefile.am): Delete unneeded LDADD.
41394         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41395
41396         dirname: split into dirname-lgpl
41397         * modules/dirname-lgpl: New module.
41398         * modules/dirname (Files): Move library-safe files into
41399         dirname-lgpl.
41400         (Depends-on): Add dirname-lgpl.
41401         (configure.ac): Declare witness.
41402         * modules/double-slash-root (License): Relax license.
41403         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41404         module.
41405         * lib/dirname.c (dir_len, mdir_name): Move...
41406         * lib/dirname-lgpl.c: ...into new file.
41407         * lib/basename.c (last_component, base_len): Move...
41408         * lib/basename-lgpl.c: ...into new file.
41409         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41410         (gl_DIRNAME): Use it.
41411         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41412         Mention new module.
41413         * modules/dirname-tests (Depends-on): Add progname.
41414         * tests/test-dirname.c (program_name): Delete.
41415
41416         mkdir: make safe for libraries
41417         * modules/mkdir (Depends-on): Drop xalloc.
41418         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41419         exit.
41420
41421         tests: avoid some compiler warnings
41422         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41423         literals.
41424         * tests/test-memchr.c (main): Avoid type mismatch.
41425         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41426         * tests/test-base64.c (main): Likewise.
41427         * tests/test-getdelim.c (main): Likewise.
41428         * tests/test-gethostname.c (main): Likewise.
41429         * tests/test-getline.c (main): Likewise.
41430         * tests/test-netinet_in.c (main): Likewise.
41431         * tests/test-select.c (open_server_socket, main): Likewise.
41432         * tests/test-select-stdin.c (main): Likewise.
41433         * tests/test-sockets.c (main): Likewise.
41434         * tests/test-strsignal.c (main): Likewise.
41435         * tests/test-sys_select.c (main): Likewise.
41436         * tests/test-sys_socket.c (main): Likewise.
41437         * tests/test-u64.c (main): Likewise.
41438         * tests/test-xfprintf-posix.c (main): Likewise.
41439         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41440
41441         sockets: avoid compiler warning
41442         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41443
41444         maint: detect usage(1) and other suspicious exits
41445         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41446
41447 2009-10-29  Jim Meyering  <meyering@redhat.com>
41448
41449         timespec: long-to-int truncation could make timespec_cmp malfunction
41450         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41451         a multiple of 2^32 nanoseconds as no difference.
41452
41453 2009-10-28  Jim Meyering  <meyering@redhat.com>
41454
41455         fprintftime: wrap macro code argument in "do {...} while(0)"
41456         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41457         cpy macro must be a statement that can be followed by a semicolon.
41458         Now that the else clause contains a comment and is hence longer
41459         than one line, I require curly braces.  That in turn requires
41460         that we wrap this code block in the standard do...while(0).
41461
41462         fprintftime: remove stray semicolon from previous change
41463         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41464
41465         fprintftime: avoid a warning about ignored fwrite return value
41466         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41467         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41468         that is unsafe.
41469         * modules/fprintftime (Depends-on): Add ignore-value.
41470
41471         exclude: avoid an unwarranted warning
41472         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41473
41474 2009-10-27  Eric Blake  <ebb9@byu.net>
41475
41476         fseek: avoid compilation failure when fflush is replaced
41477         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41478         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41479         module is in use.
41480         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41481         module is not in use; since REPLACE_FSEEK worked otherwise.
41482         (GNULIB_FTELLO): Likewise for ftell.
41483         Reported by Ian Beckwith and others.
41484
41485 2009-10-27  Bruno Haible  <bruno@clisp.org>
41486
41487         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41488         Reported by Jim Meyering.
41489
41490 2009-10-27  Jim Meyering  <jim@meyering.net>
41491             Bruno Haible  <bruno@clisp.org>
41492
41493         Avoid warning despite dropping the return value of fwrite.
41494         * lib/unicodeio.c: Include ignore-value.h.
41495         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41496         * modules/unicodeio (Depends-on): Add ignore-value.
41497
41498 2009-10-26  Eric Blake  <ebb9@byu.net>
41499
41500         areadlinkat: fix fallback path
41501         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41502         pointer and zero.
41503
41504 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41505
41506         Use a better IO block size for modern systems
41507         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41508         * lib/md2.c: Likewise.
41509         * lib/md4.c: Likewise.
41510         * lib/md5.c: Likewise.
41511         * lib/sha1.c: Likewise.
41512         * lib/sha256.c: Likewise.
41513         * lib/sha512.c: Likewise.
41514
41515 2009-10-22  Eric Blake  <ebb9@byu.net>
41516
41517         tests: avoid several compiler warnings
41518         * tests/test-getcwd.c (main): Avoid buffer underflow.
41519         * tests/test-getdate.c (main): String literals are not safe with
41520         putenv, so use setenv.  Declare unused argument.
41521         * modules/getdate-tests (Depends-on): Add setenv.
41522         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41523         problems with string literals in char *.
41524         * tests/test-hash.c (main): Avoid shadowing declaration.
41525         (insert_new): Treat string literals as char const *.
41526         * tests/test-getopt.h (test_getopt): Likewise.
41527         (getopt_loop): Alter types to minimize casting elsewhere.
41528         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41529         (test_getopt_long_posix): Likewise.
41530         (do_getopt_long): Add wrapper to minimize casting.
41531         * tests/test-atexit.c (clear_temp_file): Use void.
41532         * tests/test-areadlink-with-size.c (main): Declare unused
41533         arguments.
41534         * tests/test-areadlink.c (main): Likewise.
41535         * tests/test-areadlinkat-with-size.c (main): Likewise.
41536         * tests/test-areadlinkat.c (main): Likewise.
41537         * tests/test-canonicalize-lgpl.c (main): Likewise.
41538         * tests/test-canonicalize.c (main): Likewise.
41539         * tests/test-dirent-safer.c (main): Likewise.
41540         * tests/test-dirname.c (main): Likewise.
41541         * tests/test-dup2.c (main): Likewise.
41542         * tests/test-fchdir.c (main): Likewise.
41543         * tests/test-fcntl-h.c (main): Likewise.
41544         * tests/test-fcntl-safer.c (main): Likewise.
41545         * tests/test-fdopendir.c (main): Likewise.
41546         * tests/test-fdutimensat.c (main): Likewise.
41547         * tests/test-fflush.c (main): Likewise.
41548         * tests/test-filenamecat.c (main): Likewise.
41549         * tests/test-filevercmp.c (main): Likewise.
41550         * tests/test-fopen-safer.c (main): Likewise.
41551         * tests/test-fopen.c (main): Likewise.
41552         * tests/test-fpending.c (main): Likewise.
41553         * tests/test-fpurge.c (main): Likewise.
41554         * tests/test-freading.c (main): Likewise.
41555         * tests/test-fstatat.c (main): Likewise.
41556         * tests/test-fsync.c (main): Likewise.
41557         * tests/test-futimens.c (main): Likewise.
41558         * tests/test-getndelim2.c (main): Likewise.
41559         * tests/test-gettimeofday.c (main): Likewise.
41560         * tests/test-getopt.c (main): Likewise.
41561         * tests/test-i-ring.c (main): Likewise.
41562         * tests/test-inttypes.c (main): Likewise.
41563         * tests/test-link.c (main): Likewise.
41564         * tests/test-lstat.c (main): Likewise.
41565         * tests/test-math.c (main): Likewise.
41566         * tests/test-md5.c (main): Likewise.
41567         * tests/test-memchr2.c (main): Likewise.
41568         * tests/test-memrchr.c (main): Likewise.
41569         * tests/test-mkdir.c (main): Likewise.
41570         * tests/test-mkdirat.c (main): Likewise.
41571         * tests/test-mkfifoat.c (main): Likewise.
41572         * tests/test-open.c (main): Likewise.
41573         * tests/test-openat-safer.c (main): Likewise.
41574         * tests/test-openat.c (main): Likewise.
41575         * tests/test-quotearg.c (main): Likewise.
41576         * tests/test-rawmemchr.c (main): Likewise.
41577         * tests/test-readlink.c (main): Likewise.
41578         * tests/test-remove.c (main): Likewise.
41579         * tests/test-rename.c (main): Likewise.
41580         * tests/test-renameat.c (main): Likewise.
41581         * tests/test-rmdir.c (main): Likewise.
41582         * tests/test-sha1.c (main): Likewise.
41583         * tests/test-signal.c (main): Likewise.
41584         * tests/test-sigaction.c (main): Likewise.
41585         * tests/test-stat.c (main): Likewise.
41586         * tests/test-stat-time.c (main): Likewise.
41587         * tests/test-stddef.c (main): Likewise.
41588         * tests/test-stdint.c (main): Likewise.
41589         * tests/test-stdio.c (main): Likewise.
41590         * tests/test-stdlib.c (main): Likewise.
41591         * tests/test-strchrnul.c (main): Likewise.
41592         * tests/test-strerror.c (main): Likewise.
41593         * tests/test-string.c (main): Likewise.
41594         * tests/test-strtod.c (main): Likewise.
41595         * tests/test-strverscmp.c (main): Likewise.
41596         * tests/test-symlink.c (main): Likewise.
41597         * tests/test-symlinkat.c (main): Likewise.
41598         * tests/test-sys_stat.c (main): Likewise.
41599         * tests/test-sys_time.c (main): Likewise.
41600         * tests/test-time.c (main): Likewise.
41601         * tests/test-unistd.c (main): Likewise.
41602         * tests/test-unlink.c (main): Likewise.
41603         * tests/test-unlinkat.c (main): Likewise.
41604         * tests/test-utimens.c (main): Likewise.
41605         * tests/test-utimensat.c (main): Likewise.
41606         * tests/test-version-etc.c (main): Likewise.
41607         * tests/test-wchar.c (main): Likewise.
41608         * tests/test-wctype.c (main): Likewise.
41609         * tests/test-xprintf-posix.c (main): Likewise.
41610         * tests/test-posixtm.c (main): Likewise.
41611         (STREQ): Delete unused macro.
41612         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41613         shadowed variables.
41614         * tests/test-memchr.c (main): Likewise.
41615
41616 2009-10-21  Eric Blake  <ebb9@byu.net>
41617
41618         areadlinkat: avoid failure on older glibc
41619         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41620         rather than mis-comparing 0 against FUNC_RESULT of char*.
41621
41622 2009-10-21  Bruno Haible  <bruno@clisp.org>
41623
41624         * modules/stpncpy (License): Relicense under LGPLv2+.
41625         Reported by David Lutterkort <lutter@redhat.com>.
41626
41627 2009-10-20  Eric Blake  <ebb9@byu.net>
41628
41629         utimensat: work around Solaris 9 bug
41630         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41631         has trailing slash bugs.
41632         * tests/test-lutimens.h (test_lutimens): Enhance test.
41633         * tests/test-utimens.h (test_utimens): Likewise.
41634         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41635         * doc/posix-functions/utimes.texi (utimes): Likewise.
41636         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41637         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41638         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41639         * doc/posix-functions/futimens.texi (futimens): Likewise.
41640
41641         fdutimensat: new module
41642         * modules/fdutimensat: New file.
41643         * lib/fdutimensat.c (fdutimensat): Likewise.
41644         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41645         * MODULES.html.sh (File system functions): Mention module.
41646         * modules/fdutimensat-tests: New test.
41647         * tests/test-fdutimensat.c: Likewise.
41648
41649         doc: regenerate INSTALL
41650         * doc/INSTALL: Reflect recent autoconf update.
41651         * doc/INSTALL.ISO: Likewise.
41652         * doc/INSTALL.UTF-8: Likewise.
41653
41654 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41655
41656         acl: warn if ACL support is not detected
41657         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41658
41659 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41660
41661         * lib/nproc.h: Add extern "C" block for C++.
41662
41663 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41664             Bruno Haible  <bruno@clisp.org>
41665
41666         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41667         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41668         * doc/posix-functions/isalpha.texi: Likewise.
41669         * doc/posix-functions/isblank.texi: Likewise.
41670         * doc/posix-functions/iscntrl.texi: Likewise.
41671         * doc/posix-functions/isdigit.texi: Likewise.
41672         * doc/posix-functions/isgraph.texi: Likewise.
41673         * doc/posix-functions/islower.texi: Likewise.
41674         * doc/posix-functions/isprint.texi: Likewise.
41675         * doc/posix-functions/ispunct.texi: Likewise.
41676         * doc/posix-functions/isspace.texi: Likewise.
41677         * doc/posix-functions/isupper.texi: Likewise.
41678         * doc/posix-functions/isxdigit.texi: Likewise.
41679
41680 2009-10-18  Bruno Haible  <bruno@clisp.org>
41681
41682         Tests for module 'isblank'.
41683         * modules/isblank-tests: New file.
41684         * tests/test-isblank.c: New file.
41685
41686         New module 'isblank'.
41687         * lib/isblank.c: New file.
41688         * m4/isblank.m4: New file.
41689         * modules/isblank: New file.
41690         * doc/posix-functions/isblank.texi: Mention the new module.
41691
41692 2009-10-18  Bruno Haible  <bruno@clisp.org>
41693
41694         New module 'ctype'.
41695         * lib/ctype.in.h: New file.
41696         * m4/ctype.m4: New file.
41697         * modules/ctype: New file.
41698         * doc/posix-headers/ctype.texi: Mention the new module.
41699
41700 2009-10-18  Jim Meyering  <meyering@redhat.com>
41701
41702         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41703         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41704         right after its initialization, rather than farther down.
41705         Keeping these in close proximity makes it easier to ensure
41706         that each such variable is initialized.  E.g.,
41707
41708             LIB_CLOCK_GETTIME=
41709             AC_SUBST([LIB_CLOCK_GETTIME])
41710
41711         This change also increments these serial numbers.
41712         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41713         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41715
41716 2009-10-18  Bruno Haible  <bruno@clisp.org>
41717
41718         Don't let environment variables perturb build.
41719         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41720         (gl_PREREQ_GETHRXTIME): ... not here.
41721
41722 2009-10-18  Bruno Haible  <bruno@clisp.org>
41723
41724         Avoid symlink attack in localcharset module.
41725         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41726         (O_NOFOLLOW): Define fallback.
41727         (get_charset_aliases): Don't open the file if it is a symbolic link.
41728         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41729         gl_FCNTL_H.
41730         (gl_FCNTL_H): Require it.
41731         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41732         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41733         Reported by Fergal Glynn <fglynn@veracode.com>.
41734
41735 2009-10-18  Bruno Haible  <bruno@clisp.org>
41736
41737         Implement nproc for mingw.
41738         * lib/nproc.c: Include <windows.h>
41739         (num_processors): On native Windows platforms, try GetSystemInfo.
41740
41741 2009-10-18  Bruno Haible  <bruno@clisp.org>
41742
41743         Implement nproc for IRIX.
41744         * lib/nproc.c: Include <sys/sysmp.h>.
41745         (num_processors): On IRIX systems, try sysmp.
41746         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41747
41748 2009-10-18  Bruno Haible  <bruno@clisp.org>
41749
41750         Implement nproc for HP-UX.
41751         * lib/nproc.c: Include <sys/pstat.h>
41752         (num_processors): On HP-UX systems, try pstat_getdynamic.
41753         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41754         pstat_getdynamic.
41755
41756 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41757             Bruno Haible  <bruno@clisp.org>
41758
41759         Implement nproc for NetBSD, OpenBSD.
41760         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41761         (ARRAY_SIZE): New macro.
41762         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41763         * m4/nproc.m4: New file.
41764         * modules/nproc (Files): Add m4/nproc.m4.
41765         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41766         (Makefile.am): Instead, augment lib_SOURCES.
41767
41768 2009-10-18  Bruno Haible  <bruno@clisp.org>
41769
41770         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41771         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41772         sys/param.h.
41773
41774 2009-10-16  Eric Blake  <ebb9@byu.net>
41775
41776         utimensat: new module
41777         * modules/utimensat: New file.
41778         * lib/utimensat.c (utimensat): Likewise.
41779         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41780         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41781         so we can work around Linux bugs.
41782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41783         * modules/sys_stat (Makefile.am): Substitute them.
41784         * lib/sys_stat.in.h (utimensat): Declare it.
41785         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41786         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41787         * modules/utimensat-tests: New test.
41788         * tests/test-utimensat.c: Likewise.
41789
41790         utimens: let lutimens work on non-symlinks
41791         * lib/utimens.c (lutimens): Fall back to utimens rather than
41792         failing with ENOSYS, when file is not a symlink.
41793         (utimens): Reduce redirection.
41794         * tests/test-lutimens.h (test_lutimens): Update test to cover
41795         non-symlinks.
41796         * tests/test-utimens.h (test_utimens): Update test to cover
41797         symlinks.
41798         * tests/test-utimens.c (main): Update caller.
41799
41800         utimens: cache whether utimensat syscall works
41801         * lib/utimens.c (utimensat_works_really): New cache variable.
41802         (fdutimens, lutimens): Use it to avoid failing syscall.
41803
41804         test-stat-time, test-utimens: improve portability
41805         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41806         ext4 on alpha, and for cygwin.
41807         * tests/test-utimens-common.h: New file.
41808         (nap): Factor delays into single function.
41809         * tests/test-lutimens.h (test_lutimens): Use new header.
41810         * tests/test-futimens.h (test_futimens): Likewise.
41811         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41812         timestamps to occur from same machine, as was done previously for
41813         test_utimens.
41814         * modules/utimens-tests (Files): Ship new file.
41815         * modules/futimens-tests (Files): Likewise.
41816         Reported in part by Jim Meyering.
41817
41818         sys_stat: sort replacement declarations
41819         * lib/sys_stat.in.h: Sort declarations.
41820         * lib/futimens.c (futimens): Fix typo.
41821
41822 2009-10-15  Jim Meyering  <meyering@redhat.com>
41823
41824         don't let environment settings perturb build
41825         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41826         could cause a configure-time and/or build-time malfunction.
41827         Typically, a configure-time function-in-library test is performed
41828         via code like this:
41829
41830           LIB_VAR=
41831           AC_SUBST([LIB_VAR])
41832           prefix_saved_LIBS=$LIBS
41833             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41834                        [test "$ac_cv_search_FUNC" = "none required" ||
41835                         LIB_VAR=$ac_cv_search_FUNC])
41836           LIBS=$prefix_saved_LIBS
41837
41838         However, in each of the files affected by this change, the LIB_VAR=
41839         initialization was omitted.  Thus, when set in the environment, its
41840         value would propagate into generated Makefiles when FUNC is not found
41841         in LIB_NAME.
41842         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41843         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41845
41846 2009-10-14  Eric Blake  <ebb9@byu.net>
41847
41848         fchdir: avoid infinite recursion in mingw
41849         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41850         recursing.
41851
41852         test-stat-time: port to mingw
41853         * tests/test-stat-time.c (force_unlink): Return a value.
41854         (test_ctime) [W32]: Fix compilation error.
41855         (nap): Don't call usleep with too large an argument.  Use
41856         force_unlink.
41857         * doc/pastposix-functions/usleep.texi (usleep): Document the
41858         portability issue.
41859
41860 2009-10-13  Jim Meyering  <meyering@redhat.com>
41861
41862         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41863         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41864         * modules/pipe-filter-ii: Likewise.
41865         * modules/sys_socket-tests: Likewise.
41866         * modules/tsearch-tests: Likewise.
41867         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41868         (check): Depend on it.
41869
41870 2009-10-12  Eric Blake  <ebb9@byu.net>
41871
41872         utimens-tests: port to NFS file systems
41873         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41874         comparisons to avoid spurious failures from timestamp drift
41875         between NFS machines.
41876
41877 2009-10-12  Eric Blake  <ebb9@byu.net>
41878
41879         stat-time-tests: minor cleanups
41880         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41881         * tests/test-stat-time.c (nap): Separate assignment from call.
41882         Suggested by Paolo Bonzini and Bruno Haible.
41883
41884         sys_stat: guarantee struct timespec
41885         * lib/sys_stat.in.h (includes): Always include <time.h>
41886         * modules/sys_stat (Depends-on): Add time.
41887         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41888         mode_t permission values.
41889         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41890         get at subsecond timestamps.
41891
41892 2009-10-10  Eric Blake  <ebb9@byu.net>
41893
41894         futimens: new module
41895         * modules/futimens: New file.
41896         * lib/futimens.c (futimens): Likewise.
41897         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41898         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41899         we can work around Linux bugs.
41900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41901         * modules/sys_stat (Makefile.am): Substitute them.
41902         * lib/sys_stat.in.h (futimens): Declare it.
41903         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41904         * doc/posix-functions/futimens.texi (futimens): Likewise.
41905         * modules/futimens-tests: New test.
41906         * tests/test-futimens.c: Likewise.
41907
41908         utimens: introduce fdutimens
41909         * lib/utimens.h (fdutimens): New prototype.
41910         * lib/utimens.c (gl_futimens): Move guts...
41911         (fdutimens): ...to new interface.
41912         * tests/test-utimens.c (do_fdutimens): Use it.
41913
41914         utimens: add UTIME_NOW and UTIME_OMIT support
41915         * lib/utimens.c (validate_timespec, update_timespec): New helper
41916         functions.
41917         (gl_futimens, lutimens): Use them.
41918         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41919         stdbool, sys_stat.
41920         (Link): Mention resulting library dependency.
41921         * modules/utimecmp (Link): Likewise.
41922         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41923         (Makefile.am): Pick up library dependency.
41924         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41925         definition.
41926         * tests/test-sys_stat.c: Test the definitions.
41927         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41928         * NEWS: Document library dependency.
41929
41930         utimecmp: support symlink timestamps
41931         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41932         hashing when possible.  Use pathconf when available.
41933         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41934         * modules/utimecmp (Depends-on): Add lstat.
41935
41936         utimens: add lutimens interface
41937         * lib/utimens.c (lutimens): New function.
41938         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41939         * lib/utimens.h (lutimens): Declare new interface.
41940         * tests/test-utimens.c (main): Enhance test.
41941         * tests/test-lutimens.h (test_lutimens): New file.
41942         * modules/utimens-tests (Files): Distribute it.
41943         (Depends-on): Add symlink.
41944         (configure.ac): Check for usleep.
41945
41946         utimens: validate futimens usage
41947         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41948         fewer syscalls on failure later on.  Avoid compiler warning on
41949         mingw.
41950         * modules/utimens (Depends-on): Add dup2.
41951
41952         utimens: add test
41953         * modules/utimens-tests: New test.
41954         * tests/test-utimens.h: New file.
41955         * tests/test-futimens.h: Likewise.
41956         * tests/test-utimens.c: Likewise.
41957
41958         doc: mention timestamp portability issues
41959         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41960         instead.
41961         * doc/posix-functions/utime.texi (utime): Likewise.
41962         * doc/posix-functions/utimes.texi (utimes): Likewise.
41963         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41964         instead.
41965         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41966         module.
41967         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41968         Mention weakness with symlink timestamps.
41969         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41970         to utimensat/futimens instead.
41971         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41972
41973         test-dup2: enhance test
41974         * tests/test-dup2.c (main): Also check AT_FDCWD.
41975
41976         test-stat-time: avoid more spurious failures
41977         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41978         xfs; and avoid race if the two timestamps cross quantization edge.
41979
41980         relocatable: prefer 'file system' over 'filesystem'
41981         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41982         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41983         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41984         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41985         * lib/relocatable.c (compute_curr_prefix): Likewise.
41986
41987 2009-10-10  Jim Meyering  <meyering@redhat.com>
41988
41989         stat-time-tests: check for the usleep function
41990         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41991
41992 2009-10-10  Bruno Haible  <bruno@clisp.org>
41993
41994         * modules/xnanosleep: Put the Link section after the Include section.
41995
41996 2009-10-09  Eric Blake  <ebb9@byu.net>
41997
41998         dup2: work around FreeBSD 6.1 bug
41999         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42000         * doc/posix-functions/dup2.texi (dup2): Document it.
42001         Reported by Nelson H. F. Beebe and Jim Meyering.
42002
42003         test-stat-time: port to buggy NFS clients
42004         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42005         (test_ctime): Also skip test if mtime and ctime are skewed.
42006
42007         maint: prefer 'file system' over 'filesystem'
42008         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42009         * doc/posix-functions/lstat.texi (lstat): Likewise.
42010         * lib/file-has-acl.c (file_has_acl): Likewise.
42011         * lib/fwriteerror.c [TEST]: Likewise.
42012         * tests/test-areadlink.h (test_areadlink): Likewise.
42013         * tests/test-areadlinkat-with-size.c (main): Likewise.
42014         * tests/test-areadlinkat.c (main): Likewise.
42015         * tests/test-canonicalize-lgpl.c (main): Likewise.
42016         * tests/test-canonicalize.c (main): Likewise.
42017         * tests/test-fstatat.c (main): Likewise.
42018         * tests/test-linkat.c (main): Likewise.
42019         * tests/test-lstat.h (test_lstat_func): Likewise.
42020         * tests/test-mkdir.h (test_mkdir): Likewise.
42021         * tests/test-readlink.h (test_readlink): Likewise.
42022         * tests/test-remove.c (main): Likewise.
42023         * tests/test-rename.h (test_rename): Likewise.
42024         * tests/test-renameat.c (main): Likewise.
42025         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42026         * tests/test-symlink.h (test_symlink): Likewise.
42027         * tests/test-symlinkat.c (main): Likewise.
42028         * tests/test-unlink.h (test_unlink_func): Likewise.
42029         * tests/test-unlinkat.c (main): Likewise.
42030
42031         maint: make realtime library usage explicit
42032         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42033         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42034         * modules/settime (Link): Likewise.
42035         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42036
42037         test-stat-time: speed up execution
42038         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42039         warning on mingw.
42040         (nap): New helper function.
42041         (prepare_test): Use it to reduce sleep time.
42042         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42043         execution.
42044         * modules/stat-time-tests (configure.ac): Check for usleep.
42045
42046 2009-10-09  Jim Meyering  <meyering@redhat.com>
42047
42048         selinux-h: always use getfilecon wrappers
42049         * lib/getfilecon.c: New file.
42050         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42051         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42052         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42053         (fgetfilecon): Provide a stub.
42054         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42055         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42056         file unconditionally.
42057         When <selinux/selinux.h> is found, arrange to use wrappers.
42058         * modules/selinux-h (Files): Add getfilecon.c.
42059         (Makefile.am): Substitute include-next-related bits
42060         into the now-always-generated selinux/selinux.h file.
42061         * doc/glibc-functions/lgetfilecon.texi: New file.
42062         * doc/glibc-functions/fgetfilecon.texi: New file.
42063         * doc/glibc-functions/getfilecon.texi: New file.
42064         * doc/glibc-functions/getfilecon-desc.texi: New file.
42065         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42066         which to pull in the new files.
42067         * MODULES.html.sh (Misc): Add selinux-h.
42068
42069 2009-10-08  Jim Meyering  <meyering@redhat.com>
42070
42071         unistd: fix comment typo
42072         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42073
42074 2009-10-08  Eric Blake  <ebb9@byu.net>
42075
42076         areadlink: use SIZE_MAX consistently
42077         * modules/areadlink (Depends-on): Add stdint.
42078         * modules/areadlink-with-size (Depends-on): Likewise.
42079         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42080         gives NULL; drop sys/types, since unistd gives size_t; and add
42081         stdint for SIZE_MAX.
42082         (SIZE_MAX): Rely on headers.
42083         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42084         and add stdint.
42085         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42086         (SIZE_MAX): Likewise.
42087         (INITIAL_BUF_SIZE): Turn into enum.
42088         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42089
42090 2009-10-08  Jim Meyering  <meyering@redhat.com>
42091
42092         areadlinkat: avoid compilation failure
42093         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42094         Fix typo in comment.
42095
42096 2009-10-07  Eric Blake  <ebb9@byu.net>
42097
42098         areadlinkat-with-size: new module
42099         * modules/areadlinkat-with-size: New module.
42100         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42101         * lib/areadlink.h (areadlinkat): Declare it.
42102         * MODULES.html.sh (File system functions): Mention it.
42103         * modules/areadlinkat-with-size-tests: New test.
42104         * tests/test-areadlinkat-with-size.c: New file.
42105
42106         xreadlinkat: new module
42107         * modules/xreadlinkat: New module.
42108         * lib/xreadlinkat.c (xreadlinkat): New file.
42109         * lib/xreadlink.h (xreadlinkat): Declare it.
42110         * MODULES.html.sh (File system functions): Mention it.
42111
42112         areadlinkat: new module
42113         * lib/at-func.c (FUNC_FAIL): New define.
42114         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42115         * modules/areadlinkat: New module.
42116         * lib/linkat.c (areadlinkat): Move...
42117         * lib/areadlinkat.c (areadlinkat): ...to new file.
42118         * lib/areadlink.h (areadlinkat): Declare it.
42119         * modules/linkat (Depends-on): Add areadlinkat.
42120         * MODULES.html.sh (File system functions): Mention it.
42121         * modules/areadlinkat-tests: New test.
42122         * tests/test-areadlinkat.c: New file.
42123
42124         areadlink, areadlink-with-size: add tests
42125         * modules/areadlink-tests: New test.
42126         * modules/areadlink-with-size-tests: Likewise.
42127         * tests/test-areadlink.h: New file.
42128         * tests/test-areadlink.c: Likewise.
42129         * tests/test-areadlink-with-size.c: Likewise.
42130
42131         maint: minor cleanups
42132         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42133         _UNUSED_PARAMETER_ instead.
42134         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42135         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42136         * modules/linkat-tests (Files): Distribute test-link.h.
42137
42138         openat, utimens: whitespace cleanup
42139         * lib/openat.c: Prefer space throughout, rather than mix of 8
42140         spaces vs. tabs.
42141         * lib/at-func.c: Likewise.
42142         * lib/utimens.c: Likewise.
42143
42144         openat: avoid using wrong fd
42145         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42146         working directory chooses same fd.
42147         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42148
42149         mkdir, mkdirat: fix cygwin 1.5.x bug
42150         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42151         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42152         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42153         bug.
42154         (gl_PREREQ_MKDIR): Delete unused macro.
42155         * modules/mkdir (Files): Track file rename.
42156         (configure.ac): Update macro name.
42157         * modules/openat (Depends-on): Add mkdir.
42158         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42159
42160         mkdir, mkdirat: add tests
42161         * modules/mkdir-tests: New test.
42162         * tests/test-mkdir.h: New file.
42163         * tests/test-mkdir.c: Likewise.
42164         * tests/test-mkdirat.c: Likewise.
42165         * modules/openat-tests (Files): Add new files.
42166         (Makefile.am): Run new test.
42167
42168 2009-10-06  Eric Blake  <ebb9@byu.net>
42169
42170         doc: tweak *at function documentation
42171         * doc/posix-functions/faccessat.texi (faccessat): Mention
42172         known issue with replacement.
42173         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42174         * doc/posix-functions/linkat.texi (linkat): Likewise.
42175         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42176         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42177         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42178         * doc/posix-functions/renameat.texi (renameat): Likewise.
42179         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42180
42181         openat: fix GNU/Hurd bug in unlinkat
42182         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42183         broken.
42184         * doc/posix-functions/unlink.texi (unlink): Document this.
42185         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42186
42187         fdopendir: fix GNU/Hurd bug
42188         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42189         allowing non-directory fds.
42190         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42191         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42192         * modules/dirent (Makefile.am): Substitute it.
42193         * lib/dirent.in.h (fdopendir): Declare replacement.
42194         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42195         * tests/test-fdopendir.c (main): Test something other than
42196         /dev/null, since on Hurd that behaves like a directory.
42197
42198         test-symlink: port to GNU/Hurd
42199         * tests/test-symlink.h (test_symlink): Relax expected errno.
42200
42201         doc: tweak more cygwin information
42202         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42203         now compatible with glibc.
42204         * doc/posix-functions/getopt.texi (getopt): Likewise.
42205
42206         getopt-gnu: add another test
42207         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42208         guarantee behavior relied on by m4.
42209         * tests/test-getopt.c (main): Use it.
42210         * modules/getopt-posix-tests (Depends-on): Add setenv.
42211         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42212
42213         getopt: fix compilation on darwin
42214         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42215         include.
42216         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42217         Reported by Ludovic Courtès.
42218
42219 2009-10-06  Bruno Haible  <bruno@clisp.org>
42220
42221         * modules/size_max (Description): Discourage its use.
42222         Reported by Simon Josefsson.
42223
42224 2009-10-06  Jim Meyering  <meyering@redhat.com>
42225
42226         linkat: avoid compilation failure
42227         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42228
42229 2009-10-05  Eric Blake  <ebb9@byu.net>
42230
42231         linkat: support Linux 2.6.17
42232         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42233         linkat on Linux, but allow cache variable override.
42234         * lib/linkat.c (rpl_linkat): Define override.
42235         * modules/linkat (Depends-on): Add symlinkat.
42236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42237         * modules/unistd (Makefile.am): Substitute it.
42238         * lib/unistd.in.h (linkat): Declare replacement.
42239         Reported by Pádraig Brady.
42240
42241         quotearg: port test to systems with C.UTF-8 locale
42242         * tests/test-quotearg.c (struct result_strings): Add another
42243         member, differentiating between C.ASCII and C.UTF-8 handling.
42244         (compare_strings): Add parameter.
42245         (main): Adjust all callers.
42246
42247         getopt: avoid clash with FreeBSD _getopt_internal
42248         * lib/getopt.in.h (_getopt_internal): Override the name.
42249         * lib/getopt_int.h (includes): Pick up any overrides.
42250         Reported by Reuben Thomas.
42251
42252         hash: allow C89 compilation
42253         * lib/hash.c (check_tuning): Move declaration before statement.
42254         Reported by Reuben Thomas.
42255
42256 2009-10-05  Karl Berry  <karl@gnu.org>
42257
42258         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42259
42260 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42261             Bruno Haible  <bruno@clisp.org>
42262
42263         * lib/uname.c (uname): Use a table-driven algorithm to compute
42264         Windows NT versions.
42265
42266 2009-10-04  Bruno Haible  <bruno@clisp.org>
42267
42268         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42269         program_invocation_short_name.
42270         * modules/progname (configure.ac): Test for presence of
42271         program_invocation_short_name.
42272         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42273
42274 2009-10-04  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/progname.c (set_program_name): Fix comment.
42277         Reported by Jim Meyering.
42278
42279 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42280             Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/uname.c: Include <string.h>.
42283         (uname): Do only one call to GetVersionEx in the common case.
42284
42285 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42286             Bruno Haible  <bruno@clisp.org>
42287
42288         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42289         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42290         (uname): Add support for Windows CE and various non-x86 CPU types.
42291
42292 2009-10-03  Bruno Haible  <bruno@clisp.org>
42293
42294         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42295         invocation to tests/configure.ac.
42296         Reported by Ian Beckwith <ianb@erislabs.net>.
42297
42298 2009-10-02  Eric Blake  <ebb9@byu.net>
42299
42300         fchdir: avoid compiler warning
42301         * lib/fchdir.c (canonicalize_file_name)
42302         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42303
42304         test-open: support mingw errno values
42305         * tests/test-open.h (test_open): Relax test.
42306         * tests/test-fopen.h (test_fopen): Likewise.
42307         * tests/test-openat-safer.c (main): Likewise.
42308
42309         open: fix opening directory on mingw
42310         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42311
42312         test-open: on GNU/Hurd, /dev/null is a directory
42313         * tests/test-fopen.h (main): Rename...
42314         (test_fopen): ...to this.  Use a guaranteed non-directory when
42315         confirming open behavior on trailing slash.
42316         * tests/test-openat-safer.c (main): Likewise.
42317         * tests/test-open.h (main): Likewise....
42318         (test_open): ...to this.
42319         * tests/test-fopen.c (main): Adjust caller.
42320         * tests/test-fopen-safer.c (main): Likewise.
42321         * tests/test-open.c (main): Likewise.
42322         * tests/test-fcntl-safer.c (main): Likewise.
42323         Reported by Samuel Thibault.
42324
42325         rename, fchdir: don't ignore chdir failure
42326         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42327         * lib/rename.c (rpl_rename) [W32]: Likewise.
42328         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42329         an empty destination directory if source cannot be renamed,
42330         although there is still possibility for failure.
42331         * doc/posix-functions/rename.texi (rename): Document the race.
42332         Reported by Jim Meyering.
42333
42334         maint: cleanup whitespace in recent commits
42335         * lib/rename.c (rpl_rename): Remove tabs.
42336         * tests/test-link.h (test_link): Likewise.
42337         * lib/fchdir.c (get_name): Likewise.
42338         Reported by Jim Meyering.
42339
42340 2009-10-02  Ben Pfaff  <blp@gnu.org>
42341
42342         relocatable-prog-wrapper: Add missing dependency on
42343         double-slash-root.
42344         * modules/relocatable-prog-wrapper: Add dependency.
42345         Reported by Ian Beckwith <ianb@erislabs.net>.
42346
42347 2009-10-02  Eric Blake  <ebb9@byu.net>
42348
42349         renameat: fix Solaris bugs
42350         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42351         needed fixing.
42352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42353         * modules/stdio (Makefile.am): Substitute it.
42354         * lib/stdio.in.h (renameat): Declare replacement.
42355         * lib/renameat.c (rpl_renameat): Implement fix.
42356
42357         renameat: new module
42358         * modules/renameat: New file.
42359         * lib/renameat.c (renameat): Likewise.
42360         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42362         * modules/stdio (Makefile.am): Substitute them.
42363         * lib/stdio.in.h (renameat): Declare it.
42364         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42365         * doc/posix-functions/renameat.texi (renameat): Likewise.
42366         * modules/renameat-tests: New test.
42367         * tests/test-renameat.c: Likewise.
42368
42369         rename: fix mingw bugs
42370         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42371         directory overwrite bugs.
42372
42373         rename: fix another cygwin 1.5 bug
42374         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42375         checks.
42376         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42377         unnecessary cygwin workarounds.  Also work around bug with moving
42378         full directory onto an empty one.
42379         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42380
42381         rename-dest-slash: merge into rename module
42382         * modules/rename-dest-slash (Status): Mark obsolete.
42383         (Depends-on): Add rename.
42384         (Files): Let rename do it all.
42385         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42386         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42387         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42388         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42389         * lib/rename.c (rpl_rename): Update comments.
42390
42391         rename: fix cygwin 1.5.x bugs
42392         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42393         * lib/rename.c (rpl_rename): Work around them.
42394         * modules/rename (Depends-on): Add same-inode.
42395
42396         rename: fix Solaris 10 bug
42397         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42398         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42399         was the only bug.
42400
42401         rename: fix Solaris 9 bug
42402         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42403         on non-directory.  Avoid calling exit.
42404         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42405         strdup.
42406         * modules/rename-tests (Depends-on): Drop lstat.
42407         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42408         (gl_PREREQ_RENAME): Delete unused macro.
42409
42410         rename-dest-slash: fix NetBSD bug
42411         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42412         links.
42413         * modules/rename-dest-slash (Depends-on): Add same-inode.
42414
42415         rename-tests: new test, exposes several platform bugs
42416         * modules/rename-tests: New file.
42417         * tests/test-rename.h: Likewise.
42418         * tests/test-rename.c: Likewise.
42419         * doc/posix-functions/rename.texi (rename): Improve documentation,
42420         including bugs that will eventually be fixed in gnulib.
42421
42422 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42423
42424         * lib/uname.c: Include <stdlib.h>
42425         (uname): Assume version info is available.
42426
42427 2009-10-02  Jim Meyering  <meyering@redhat.com>
42428
42429         gnu-web-doc-update: correct --help output
42430         * build-aux/gnu-web-doc-update: Make --help output relevant.
42431
42432         gnu-web-doc-update: add standard options
42433         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42434
42435         gnu-web-doc-update: New module.
42436         Use this script to automatically update the on-line web documentation
42437         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42438         * modules/gnu-web-doc-update: New file, from coreutils.
42439         * build-aux/gnu-web-doc-update: New script.
42440
42441 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42442
42443         link: LoadLibrary is not needed.
42444         * lib/link.c: Use GetModuleHandle.
42445
42446 2009-10-01  Eric Blake  <ebb9@byu.net>
42447
42448         getopt: bump serial number
42449         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42450         change.
42451
42452         tests: tighten link, rmdir, and remove tests
42453         * tests/test-link.h (includes): No need to use <config.h> here.
42454         Clean up if directory hard link was created, otherwise test for
42455         trailing '.'.
42456         * tests/test-linkat.c (main): Simplify.
42457         * tests/test-remove.c (main): Enhance test for trailing '.'.
42458         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42459
42460 2009-10-01  Jim Meyering  <meyering@redhat.com>
42461
42462         maint.mk: requiring "make major" was annoying, for a "minor" release.
42463         What is intended is "stable", to contrast with alpha and beta,
42464         so require "make stable", not "make major".
42465         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42466         (get_tool_versions): Likewise.
42467         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42468
42469 2009-09-30  Ben Pfaff  <blp@gnu.org>
42470
42471         Fix broken build of replacement for Windows tmpfile().
42472         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42473         flags argument added along with the 'mkostemp' module.
42474
42475 2009-09-28  Bruno Haible  <bruno@clisp.org>
42476
42477         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42478         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42479         to 'remove_elt'.
42480         (gl_list_remove): Update.
42481         * lib/gl_list.c (gl_list_remove): Update.
42482         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42483         to 'remove_elt'.
42484         (gl_oset_remove): Update.
42485         * lib/gl_list.c (gl_oset_remove): Update.
42486         Reported by Eric Blake.
42487
42488 2009-09-28  Eric Blake  <ebb9@byu.net>
42489
42490         doc: mention yet more cygwin 1.7 status
42491         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42492         cygwin.
42493         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42494         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42495
42496         argp: fix test failure
42497         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42498         that are not upper-case.  Pass correct range to tolower.
42499
42500 2009-09-27  Jim Meyering  <meyering@redhat.com>
42501
42502         test-yesno: work around sparc-dash here-document infelicity
42503         Without this change, the literal \177 byte in a here document
42504         would make dash 0.5.5.1-3 access uninitialized memory.
42505         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42506         Instead, use a marker, "@", and filter through tr to create the desired
42507         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42508
42509 2009-09-27  Bruno Haible  <bruno@clisp.org>
42510
42511         Disable untested support for new flavours of ACLs on AIX.
42512         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42513         progress.
42514         * lib/set-mode-acl.c (qset_acl): Likewise.
42515
42516 2008-12-07  Bruno Haible  <bruno@clisp.org>
42517
42518         Add support for new flavours of ACLs on AIX. (Untested.)
42519         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42520         (file_has_acl): Add support for newer AIX.
42521         * lib/set-mode-acl.c (qset_acl): Likewise.
42522         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42523         Rainer Tammer <tammer@tammer.net>.
42524
42525 2009-09-26  Eric Blake  <ebb9@byu.net>
42526
42527         argp: fix compilation of getopt
42528         * lib/getopt.in.h (includes): Use different guard than glibc.
42529         Reported by Sergey Poznyakoff.
42530
42531         doc: mention more cygwin 1.7 status
42532         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42533         bug.
42534         * doc/posix-functions/execl.texi (execl): Likewise.
42535         * doc/posix-functions/execle.texi (execle): Likewise.
42536         * doc/posix-functions/execlp.texi (execlp): Likewise.
42537         * doc/posix-functions/execv.texi (execv): Likewise.
42538         * doc/posix-functions/execve.texi (execve): Likewise.
42539         * doc/posix-functions/execvp.texi (execvp): Likewise.
42540         * doc/glibc-functions/canonicalize_file_name.texi
42541         (canonicalize_file_name): Cygwin 1.7 now provides this.
42542         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42543         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42544         on AT_SYMLINK_NOFOLLOW.
42545
42546 2009-09-24  Eric Blake  <ebb9@byu.net>
42547
42548         test-linkat: make test more robust
42549         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42550
42551         getopt: fix inclusion guards for cygwin
42552         * modules/getopt-posix (Depends-on): Add include-next.
42553         (Makefile.am): Substitute more items in replacement header.
42554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42555         <getopt.h>.
42556         * lib/getopt.in.h (includes): Use split inclusion guard, and
42557         prefer <getopt.h> over include <unistd.h> when one is present.
42558         (option): Also override name of 'struct option'.
42559
42560         same-inode: revert prior change; it is not yet ready
42561         * NEWS: Undo mention of this change.
42562         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42563         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42564         * lib/cycle-check.c (cycle_check): Likewise.
42565         * lib/same.c (same_name): Likewise.
42566         * lib/at-func2.c (at_func2): Likewise.
42567
42568 2009-09-23  Eric Blake  <ebb9@byu.net>
42569
42570         linkat: new module
42571         * modules/linkat: New file.
42572         * lib/at-func2.c (at_func2): Likewise.
42573         * lib/linkat.c (linkat): Likewise.
42574         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42575         * lib/openat-priv.h (at_func2): Add declaration.
42576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42577         * modules/unistd (Makefile.am): Substitute them.
42578         * lib/unistd.in.h (linkat): Declare it.
42579         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42580         * doc/posix-functions/linkat.texi (linkat): Likewise.
42581         * doc/posix-functions/link.texi (link): Tweak wording.
42582         * tests/test-link.c (main): Move guts...
42583         * tests/test-link.h (test_link): ...into new file.
42584         * modules/linkat-tests: New test.
42585         * tests/test-linkat.c: Likewise.
42586         * modules/link-tests (Files): Ship new file.
42587         (Depends-on): Add stdbool.
42588
42589         dirname: add library-safe mdir_name
42590         * lib/dirname.h (mdir_name): New prototype.
42591         * lib/dirname.c (dir_name): Move guts...
42592         (mdir_name): ...to new function that avoids xalloc_die.
42593
42594         fchdir: another mingw fix
42595         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42596         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42597         on mingw (where it has not yet been ported), and make it optional
42598         elsewhere.
42599         (_gl_register_fd): Use it.
42600
42601         same-inode: make SAME_INODE tri-state, to port to mingw
42602         * NEWS: Mention this change.
42603         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42604         st_ino always being 0.
42605         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42606         * lib/cycle-check.c (cycle_check): Likewise.
42607         * lib/same.c (same_name): Likewise.
42608
42609         lstat: avoid mingw compilation error
42610         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42611         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42612         lstat ourselves.
42613         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42614         was adequate.
42615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42616         the checks for lstat.
42617         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42618
42619         link: fix test failure on Solaris 9
42620         * lib/link.c (rpl_link): Don't assume link will catch bogus
42621         trailing slash on source.
42622
42623         test-symlinkat: enhance test
42624         * tests/test-readlink.c (main): Move guts...
42625         * tests/test-readlink.h (test_readlink): ...into new file.
42626         * tests/test-symlink.c (main): Move guts...
42627         * tests/test-symlink.h (test_symlink): ...into new file.
42628         * tests/test-symlinkat.c (main): Use new files for further
42629         coverage.
42630         (do_symlink, do_readlink): New helper functions.
42631         * modules/symlink-tests (Files): Ship new file.
42632         (Depends-on): Add stdbool.
42633         * modules/readlink-tests (Files): Ship new file.
42634         (Depends-on): Add stdbool.
42635         * modules/symlinkat-tests (Files): Use new files.
42636
42637 2009-09-23  Eric Blake  <ebb9@byu.net>
42638
42639         readlink: document portability issue with symlink length
42640         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42641         systems have bogus st_size on symlinks, and mention the
42642         areadlink-with-size module.
42643         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42644         * doc/posix-functions/readlink.texi (readlink): Mention the
42645         areadlink module, and ERANGE failure.
42646         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42647         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42648
42649         readlink: fix Solaris 9 bug with trailing slash
42650         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42651         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42652         * doc/posix-functions/readlink.texi (readlink): Document this.
42653         * modules/readlink-tests: New test.
42654         * tests/test-readlink.c: Likewise.
42655
42656         readlink: fix cygwin 1.5.x bug with return type
42657         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42658         * lib/unistd.in.h (readlink): Use ssize_t.
42659         * lib/readlink.c (readlink): Likewise.
42660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42661         * modules/unistd (Makefile.am): Substitute it.
42662         * lib/unistd.in.h (readlink): Declare replacement.
42663         * doc/posix-functions/readlink.texi (readlink): Document this.
42664
42665         symlink: use throughout gnulib
42666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42667         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42668         symlink is not used.
42669         * modules/symlinkat (Depends-on): Add symlink.
42670         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42671         * modules/canonicalize-tests (Depends-on): Likewise.
42672         * modules/lstat-tests (Depends-on): Likewise.
42673         * modules/openat-tests (Depends-on): Likewise.
42674         * modules/remove-tests (Depends-on): Likewise.
42675         * modules/rmdir-tests (Depends-on): Likewise.
42676         * modules/unlink-tests (Depends-on): Likewise.
42677         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42678         * tests/test-canonicalize.c (symlink): Likewise.
42679         * tests/test-fstatat.c (symlink): Likewise.
42680         * tests/test-lstat.c (symlink): Likewise.
42681         * tests/test-remove.c (symlink): Likewise.
42682         * tests/test-rmdir.c (symlink): Likewise.
42683         * tests/test-unlink.c (symlink): Likewise.
42684         * tests/test-unlinkat.c (symlink): Likewise.
42685
42686         symlink: new module, for Solaris 9 bug
42687         * modules/symlink: New file.
42688         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42689         * lib/symlink.c: Likewise.
42690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42691         * modules/unistd (Makefile.am): Substitute them.
42692         * lib/unistd.in.h (symlink): Declare replacement.
42693         * MODULES.html.sh (File system functions): Mention it.
42694         * doc/posix-functions/symlink.texi (symlink): Likewise.
42695         * modules/symlink-tests: New test.
42696         * tests/test-symlink.c: Likewise.
42697
42698 2009-09-23  Bruno Haible  <bruno@clisp.org>
42699
42700         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42701         when needed.
42702         Test case: gnulib-tool --import --with-tests atexit inttypes.
42703         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42704
42705 2009-09-23  Bruno Haible  <bruno@clisp.org>
42706
42707         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42708         subcommand, not in a subshell.
42709
42710 2009-09-22  Eric Blake  <ebb9@byu.net>
42711
42712         unistd: sort replacement declarations
42713         * lib/unistd.in.h: Sort declarations.
42714
42715         open, openat: minor optimization
42716         * lib/open.c (open): If open succeeded, len is non-zero.
42717         * lib/openat.c (rpl_openat): Likewise.
42718
42719         link-follow: ensure correct result
42720         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42721         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42722         distinguish between possible failures.
42723
42724 2009-09-21  Eric Blake  <ebb9@byu.net>
42725
42726         fts: avoid compiler warning
42727         * lib/fts.c (dirent_inode_sort_may_be_useful)
42728         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42729
42730 2009-09-19  Bruno Haible  <bruno@clisp.org>
42731
42732         * lib/progreloc.c (canonicalize_file_name): New declaration.
42733
42734 2009-09-19  Eric Blake  <ebb9@byu.net>
42735
42736         link: fix quoting
42737         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42738
42739         openat: fix openat bugs on Solaris 9
42740         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42741         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42742         * modules/openat (Depends-on): Add open.
42743         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42744         * modules/fcntl-h (Makefile.am): Substitute it.
42745         * lib/fcntl.in.h (openat): Declare replacement.
42746         * doc/posix-functions/openat.texi (openat): Document this.
42747
42748         openat: move fstatat and unlinkat into correct files
42749         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42750         compiled.
42751         * lib/openat.c (fstatat, unlinkat): Move...
42752         * lib/fstatat.c (fstatat): ...into correct files.
42753         * lib/unlinkat.c (unlinkat): Likewise.
42754
42755         openat: fix unlinkat bugs on Solaris 9
42756         * lib/unlinkat.c (unlinkat): New file.
42757         * modules/openat (Depends-on): Add unlink.
42758         (Files): Distribute it.
42759         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42760         trailing slash behavior is broken.
42761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42762         * modules/unistd (Makefile.am): Substitute it.
42763         * lib/unistd.in.h (unlinkat): Declare replacement.
42764         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42765
42766         openat: fix fstatat bugs on Solaris 9
42767         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42768         stat.
42769         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42770
42771         test-unlinkat: enhance test, to expose Solaris 9 bug
42772         * tests/test-unlink.c (main): Factor guts...
42773         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42774         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42775         * tests/test-rmdir.c (main): Adjust caller.
42776         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42777         (unlinker): New helper function.
42778         (rmdirat): Enhance check.
42779         * modules/rmdir-tests (Depends-on): Add stdbool.
42780         * modules/unlink-tests (Depends-on): Likewise.
42781         (Files): Add test-unlink.h.
42782         * modules/openat-tests (Files): Likewise.
42783         (Depends-on): Add unlinkdir.
42784
42785         test-fstatat: new test, to expose Solaris 9 bugs
42786         * tests/test-stat.c (main): Factor guts...
42787         * tests/test-stat.h (test_stat_func): ...into new file.
42788         * tests/test-lstat.c (main): Factor guts...
42789         * tests/test-lstat.h (test_lstat_func): ...into new file.
42790         * tests/test-fstatat.c: New file.
42791         * modules/stat-tests (Files): Add test-stat.h.
42792         * modules/lstat-tests (Files): Add test-lstat.h.
42793         (Depends-on): Add stdbool.
42794         * modules/openat-tests (Depends-on): Add pathmax.
42795         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42796         (Makefile.am): Run new test.
42797
42798         remove: new module, for mingw and Solaris 9 bugs
42799         * modules/remove: New file.
42800         * lib/remove.c: Likewise.
42801         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42803         * modules/stdio (Makefile.am): Use them.
42804         * lib/stdio.in.h (remove): Declare replacement.
42805         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42806         * doc/posix-functions/remove.texi (remove): Likewise.
42807         * modules/remove-tests: New test.
42808         * tests/test-remove.c: Likewise.
42809
42810         unlink: new module, for Solaris 9 bug
42811         * modules/unlink: New file.
42812         * lib/unlink.c: Likewise.
42813         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42815         * modules/unistd (Makefile.am): Use them.
42816         * lib/unistd.in.h (stat): Declare replacement.
42817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42818         * doc/posix-functions/unlink.texi (unlink): Likewise.
42819         * modules/unlink-tests: New test.
42820         * tests/test-unlink.c: Likewise.
42821
42822         lstat: fix Solaris 9 bug
42823         * lib/lstat.c (lstat): Also check for trailing slash on
42824         non-symlink, non-directories.  Use stat module to simplify logic.
42825         * doc/posix-functions/lstat.texi (lstat): Document it.
42826         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42827         (configure.ac): Check for symlink.
42828         * tests/test-lstat.c (main): Add more tests.
42829
42830         stat: add as dependency to other modules
42831         * modules/chown (Depends-on): Add stat.
42832         * modules/euidaccess (Depends-on): Likewise.
42833         * modules/fchdir (Depends-on): Likewise.
42834         * modules/isdir (Depends-on): Likewise.
42835         * modules/link (Depends-on): Likewise.
42836         * modules/lstat (Depends-on): Likewise.
42837         * modules/mkdir-p (Depends-on): Likewise.
42838         * modules/modechange (Depends-on): Likewise.
42839         * modules/open (Depends-on): Likewise.
42840         * modules/readlink (Depends-on): Likewise.
42841         * modules/same (Depends-on): Likewise.
42842
42843         stat: fix Solaris 9 bug
42844         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42845         slash.
42846         * lib/stat.c (rpl_stat): Work around it.
42847         * doc/posix-functions/stat.texi (stat): Update documentation.
42848
42849         stat: new module, for mingw bug
42850         * modules/stat: New file.
42851         * lib/stat.c: Likewise.
42852         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42854         * modules/sys_stat (Makefile.am): Use them.
42855         * lib/sys_stat.in.h (stat): Declare replacement.
42856         * lib/openat.c (fstatat): Deal with lstat and stat being function
42857         macros.
42858         * modules/openat (Depends-on): Add inline.
42859         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42860         * doc/posix-functions/stat.texi (stat): Likewise.
42861         * modules/stat-tests: New test.
42862         * tests/test-stat.c: Likewise.
42863
42864 2009-09-19  Jim Meyering  <meyering@redhat.com>
42865
42866         syntax-check: detect unnecessary inclusion of canonicalize.h
42867         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42868
42869 2009-09-19  Eric Blake  <ebb9@byu.net>
42870
42871         canonicalize-lgpl: adjust clients to use correct header
42872         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42873         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42874         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42875         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42876         * lib/progreloc.c (includes): Likewise.
42877
42878 2009-09-19  Jim Meyering  <meyering@redhat.com>
42879
42880         test-posixtm.c: correct a comment
42881         * tests/test-posixtm.c: Correct first-line comment.
42882         Spotted by Eric Blake.
42883
42884 2009-09-16  Jim Meyering  <meyering@redhat.com>
42885
42886         posixtm-tests: make T const-correct; add a test case
42887         * tests/test-posixtm.c (T): Declare const.
42888         Add a test for -(2^31+1).
42889         Remove useless can-succeed-only-in-2002 test.
42890
42891         posixtm-tests: adjust the sole failing test
42892         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42893         expected output matches what mktime now produces.  Cross-checked via
42894         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42895
42896         posixtm: move #ifdef'd tests into a new module
42897         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42898         * tests/test-posixtm.c: ... this new file.
42899         * modules/posixtm-tests: New module.
42900
42901 2009-09-19  Eric Blake  <ebb9@byu.net>
42902
42903         openat: simplify use of at-func.c
42904         * lib/at-func.c (includes): Include prerequisites here, to
42905         simplify requirements on client files.
42906         * lib/openat-priv.h: Add double-inclusion guard.
42907         * lib/faccessat.c (includes): Simplify.
42908         * lib/fchmodat.c (includes): Likewise.
42909         * lib/fchownat.c (includes): Likewise.
42910         * lib/mkdirat.c (includes): Likewise.
42911         * lib/mkfifoat.c (includes): Likewise.
42912         * lib/symlinkat.c (includes): Likewise.
42913
42914         openat: allow return of fd 0
42915         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42916         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42917         unistd-safer.
42918         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42919         <fcntl.h>; this module does not leak fds.
42920         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42921         must be allowed to return 0, leaving openat_safer to add the
42922         safety.
42923         (openat_permissive): Avoid writing to just-opened fd 2 if
42924         restoring the current directory fails.
42925         * lib/openat-die.c (openat_restore_fail): Add comment.
42926         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42927         (save_cwd): Guarantee safe fd, but without use of open_safer.
42928         * tests/test-openat.c: New test.
42929         * modules/openat-tests (Files, Makefile.am): Distribute and build
42930         new file.
42931
42932         relocatable-prog-wrapper: fix build
42933         * modules/relocatable-prog-wrapper (Files): Update name of
42934         canonicalize m4 file, broken on 2009-09-17.
42935         Reported by emad hajjar <aleppos@hotmail.com>.
42936
42937 2009-09-19  Bruno Haible  <bruno@clisp.org>
42938
42939         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42940         * lib/safe-alloc.c: Likewise.
42941         Reported by Ian Beckwith <ianb@erislabs.net>.
42942
42943 2009-09-18  Bruno Haible  <bruno@clisp.org>
42944
42945         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42946         Reported by <erobles@sensacd.com.mx>.
42947
42948 2009-09-17  Eric Blake  <ebb9@byu.net>
42949
42950         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42951         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42952         slashes when checking if last component is missing.
42953         * tests/test-canonicalize.c (main): Test this.
42954
42955         canonicalize, canonicalize-lgpl: honor // if distinct from /
42956         * modules/canonicalize (Files): Add double-slash-root.m4.
42957         * modules/canonicalize-lgpl (Files): Likewise.
42958         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42959         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42960         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42961         fallback definition.
42962         (canonicalize_filename_mode): Use it to protect //.
42963         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42964         (__realpath): Likewise.
42965         * tests/test-canonicalize.c (main): Test this.
42966         * tests/test-canonicalize-lgpl.c (main): Likewise.
42967         * modules/canonicalize-tests (Depends-on): Add same-inode.
42968         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42969
42970         canonicalize-lgpl: fix glibc bug with trailing slash
42971         * m4/canonicalize-lgpl.m4: Move contents...
42972         * m4/canonicalize.m4: ...here.
42973         (gl_CANONICALIZE_LGPL): Factor realpath check...
42974         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42975         glibc 2.3.5 bug, fixed 2005-04-27.
42976         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42977         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42978         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42979         * modules/canonicalize-lgpl (Files): Manage file rename.
42980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42981         * modules/stdlib (Makefile.am): Substitute witness.
42982         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42983         is needed.
42984         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42985         replacement is required.
42986         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42987         * doc/glibc-functions/canonicalize_file_name.texi
42988         (canonicalize_file_name): Document this.
42989         * doc/posix-functions/realpath.texi (realpath): Likewise.
42990
42991         canonicalize-lgpl: reject non-directory with trailing slash
42992         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42993         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42994         catches failures in glibc 2.3.5.
42995         * tests/test-canonicalize.c (main): Likewise.
42996
42997         canonicalize-lgpl: use native realpath if it works
42998         * lib/canonicalize-lgpl.c (realpath): Guard with
42999         FUNC_REALPATH_WORKS.
43000         * lib/stdlib.in.h (realpath): Make declaration optional based on
43001         HAVE_REALPATH.
43002         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43003         native realpath works.
43004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43005         * modules/stdlib (Makefile.am): Substitute witness.
43006
43007         canonicalize, canonicalize-lgpl: use <stdlib.h>
43008         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43009         (Include): Mention <stdlib.h>.
43010         (configure.ac): Mention functions we provide.
43011         * modules/canonicalize (configure.ac): Likewise.
43012         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43013         realpath if canonicalize_file_name is missing.
43014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43015         * modules/stdlib (Makefile.am): Substitute witnesses.
43016         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43017         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43018         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43019         * NEWS: Document this.
43020         * doc/glibc-functions/canonicalize_file_name.texi
43021         (canonicalize_file_name): Likewise.
43022         * doc/posix-functions/realpath.texi (realpath): Likewise.
43023         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43024
43025         test-canonicalize: consolidate into single C program
43026         * tests/test-canonicalize.sh: Delete; move setup into...
43027         * tests/test-canonicalize.c (main): ...the program, making it
43028         easier to run in debugger.  Add some tests.
43029         * modules/canonicalize-tests (Files): Remove unused file.
43030         (Depends-on): Add progname.
43031         (configure.ac, Makefile.am): Simplify.
43032
43033         test-canonicalize-lgpl: consolidate into single C program
43034         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43035         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43036         easier to run in debugger.  Add some tests.
43037         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43038         (configure.ac, Makefile.am): Simplify.
43039
43040         canonicalize: avoid resolvepath
43041         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43042         unnecessary checks.
43043         * lib/canonicalize.c (includes): Simplify.
43044         (canonicalize_file_name): Drop resolvepath implementation.
43045         * modules/canonicalize (Depends-on): Drop filenamecat.
43046
43047         canonicalize: don't lose errno
43048         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43049         over calls to free.
43050
43051         canonicalize: simplify errno handling
43052         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43053         assignment.
43054
43055         canonicalize, canonicalize-lgpl: update module dependencies
43056         * modules/canonicalize (Depends-on): Add extensions, lstat,
43057         pathmax, stdlib.
43058         (Files): Drop pathmax.h.
43059         (configure.ac): Adjust macro name.
43060         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43061         lstat, stdlib, sys_stat.
43062         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43063         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43064         extensions.
43065         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43066         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43067         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43068         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43069         declaration, if available.
43070         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43071         we can rely on the readlink module.
43072         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43073         (includes): Use <unistd.h> unconditionally.
43074
43075 2009-09-17  Eric Blake  <ebb9@byu.net>
43076
43077         maint: make Include sections of modules consistent
43078         * modules/alloca: Use only header name; no need to list #include.
43079         * modules/alloca-opt: Likewise.
43080         * modules/arpa_inet: Likewise.
43081         * modules/canon-host: Likewise.
43082         * modules/configmake: Likewise.
43083         * modules/dirent: Likewise.
43084         * modules/eealloc: Likewise.
43085         * modules/environ: Likewise.
43086         * modules/fchdir: Likewise.
43087         * modules/fcntl: Likewise.
43088         * modules/fcntl-h: Likewise.
43089         * modules/gethrxtime: Likewise.
43090         * modules/gettime: Likewise.
43091         * modules/ignore-value: Likewise.
43092         * modules/inet_ntop: Likewise.
43093         * modules/inet_pton: Likewise.
43094         * modules/inttypes: Likewise.
43095         * modules/isnand-nolibm: Likewise.
43096         * modules/isnanf-nolibm: Likewise.
43097         * modules/mbchar: Likewise.
43098         * modules/mbfile: Likewise.
43099         * modules/mbiter: Likewise.
43100         * modules/mbuiter: Likewise.
43101         * modules/netdb: Likewise.
43102         * modules/netinet_in: Likewise.
43103         * modules/nproc: Likewise.
43104         * modules/pagealign_alloc: Likewise.
43105         * modules/poll: Likewise.
43106         * modules/printf-frexp: Likewise.
43107         * modules/pthread: Likewise.
43108         * modules/putenv: Likewise.
43109         * modules/random_r: Likewise.
43110         * modules/relocatable-prog: Likewise.
43111         * modules/search: Likewise.
43112         * modules/select: Likewise.
43113         * modules/selinux-h: Likewise.
43114         * modules/settime: Likewise.
43115         * modules/signal: Likewise.
43116         * modules/size_max: Likewise.
43117         * modules/socklen: Likewise.
43118         * modules/ssize_t: Likewise.
43119         * modules/stdarg: Likewise.
43120         * modules/stdbool: Likewise.
43121         * modules/stddef: Likewise.
43122         * modules/stdint: Likewise.
43123         * modules/stdio: Likewise.
43124         * modules/stdlib: Likewise.
43125         * modules/string: Likewise.
43126         * modules/strings: Likewise.
43127         * modules/sys_file: Likewise.
43128         * modules/sys_ioctl: Likewise.
43129         * modules/sys_select: Likewise.
43130         * modules/sys_socket: Likewise.
43131         * modules/sys_stat: Likewise.
43132         * modules/sys_time: Likewise.
43133         * modules/sys_times: Likewise.
43134         * modules/sys_utsname: Likewise.
43135         * modules/sys_wait: Likewise.
43136         * modules/sysexits: Likewise.
43137         * modules/time: Likewise.
43138         * modules/times: Likewise.
43139         * modules/tmpfile: Likewise.
43140         * modules/trim: Likewise.
43141         * modules/unistd: Likewise.
43142         * modules/wchar: Likewise.
43143         * modules/wctype: Likewise.
43144
43145 2009-09-17  Bruno Haible  <bruno@clisp.org>
43146
43147         Make getdate.y compile on QNX and NetBSD 5 / i386.
43148         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43149         TIME_T_FITS_IN_LONG_INT.
43150         * lib/getdate.y (long_time_t): New type.
43151         (relative_time): Change type of 'seconds' field to long_time_t.
43152         (get_date): Update types of local variables. Check against overflow
43153         during conversion from long_time_t to time_t.
43154         Reported by Matt Kraai <kraai@ftbfs.org>
43155         and Hasso Tepper <hasso@netbsd.org>.
43156
43157 2009-09-17  Bruno Haible  <bruno@clisp.org>
43158
43159         * modules/COPYING: Update copyright years.
43160         * modules/README: Likeiwse.
43161         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43162         Reported by Ian Beckwith <ianb@erislabs.net>.
43163
43164 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43165
43166         * users.txt: Update references for gnuit package.
43167
43168 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43169
43170         * m4/getdelim.m4: Fix typo in copyright line.
43171
43172 2009-09-17  Bruno Haible  <bruno@clisp.org>
43173
43174         * lib/atoll.c: Use the standard header with GPL copyright.
43175         * lib/argz.in.h: Likewise.
43176         * lib/glob.c: Likewise.
43177         * lib/glob-libc.h: Likewise.
43178         * lib/random_r.c: Likewise.
43179         * lib/siglist.h: Likewise.
43180         * lib/strsignal.c: Likewise.
43181         Reported by Ian Beckwith <ianb@erislabs.net>.
43182
43183 2009-09-17  Eric Blake  <ebb9@byu.net>
43184
43185         rmdir: ensure correct dependency order
43186         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43187
43188 2009-09-17  Bruno Haible  <bruno@clisp.org>
43189
43190         Disable assertion that fails on NetBSD 5 / i386.
43191         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43192         Reported by Sam Steingold <sds@gnu.org>
43193         and Hasso Tepper <hasso@netbsd.org>.
43194
43195 2009-09-16  Eric Blake  <ebb9@byu.net>
43196
43197         unlinkdir: port to mingw
43198         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43199         on which no one can unlink a directory.
43200
43201         stdlib: sort witness names
43202         * modules/stdlib (Makefile.am): Sort replacements.
43203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43204         * lib/stdlib.in.h: Likewise.
43205
43206         parse-duration-tests: avoid link failure
43207         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43208         LIBINTL.
43209         Reported by Tom G. Christensen.
43210
43211         openat-tests: ensure unlinkat behaves like rmdir
43212         * tests/test-rmdir.c (main): Factor guts...
43213         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43214         * modules/rmdir-tests (Files): Ship new file.
43215         * modules/openat-tests: New test.
43216         * tests/test-unlinkat.c: Likewise.
43217
43218         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43219         * modules/rmdir-errno (Status, Notice): Now obsolete.
43220
43221         rmdir: work around cygwin 1.5.x and mingw bugs
43222         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43223         * lib/rmdir.c (rmdir): Work around it.
43224         * modules/rmdir (Status, Notice): No longer obsolete.
43225         (Files): Add dos.m4.
43226         (Depends-on): Add unistd.
43227         (configure.ac): Set witnesses.
43228         (License): Relax to LGPLv2+.
43229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43230         * modules/unistd (Makefile.am): Substitute witnesses.
43231         * lib/unistd.in.h (rmdir): Declare replacement.
43232         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43233         * modules/rmdir-tests: New tests.
43234         * tests/test-rmdir.c: Likewise.
43235
43236 2009-09-15  Eric Blake  <ebb9@byu.net>
43237
43238         fchdir: improve use of replacement functions
43239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43242         REPLACE_CLOSEDIR.
43243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43244         * modules/sys_stat (Makefile.am): Substitute correct witness.
43245         * modules/dirent (Makefile.am): Likewise.
43246         * modules/unistd (Makefile.am): Likewise.
43247         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43248         * lib/unistd.in.h (dup): Likewise.
43249         * lib/sys_stat.in.h (fstat): Likewise.
43250
43251         maint: ignore gnulib-tool temp files
43252         * .gitignore: Ignore files created during gnulib-tool --test.
43253
43254 2009-09-13  Jim Meyering  <meyering@redhat.com>
43255
43256         posixtm: don't reject a time that specify "60" as the number of seconds
43257         * lib/posixtm.c (posixtime): The code to reject invalid dates
43258         would also reject a time specified with the .60 suffix.
43259         But POSIX allows that, in order to accommodate leap seconds.
43260         So don't reject it.
43261         (main): Adjust tests accordingly.
43262         * modules/posixtm (Depends-on): Add stpcpy.
43263
43264 2009-09-11  Jim Meyering  <meyering@redhat.com>
43265
43266         announce-gen: include [$release_type] in emitted Subject:
43267         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43268         e.g., [stable] in the emitted Subject: line.
43269
43270 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43271
43272         Remove obsolete macros from several modules.
43273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43274         obsolete Autoconf macros with their modern counterparts.
43275         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43276         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43278         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43279         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43280         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43282         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43283         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43284         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43285         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43287         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43288         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43289         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43290         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43291         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43292         * m4/time_r.m4 (gl_TIME_R): Likewise.
43293         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43294         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43295         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43296
43297         Fix copyright header in build-aux scripts.
43298         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43299         recommendation.
43300         * build-aux/ncftpput-ftp: Likewise.
43301         * build-aux/update-copyright: Likewise.
43302
43303 2009-09-09  Eric Blake  <ebb9@byu.net>
43304
43305         test-link: allow Linux choice of errno
43306         * tests/test-link.c (main): Relax test for alternate error.
43307
43308         strndup: fix improper m4 caching
43309         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43310         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43311         (gl_PREREQ_STRNDUP): Delete.
43312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43313         * modules/string (Makefile.am): Substitute it.
43314         * lib/string.in.h (strndup): Modernize prototype.
43315
43316         getcwd: port to mingw
43317         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43318         different from the POSIX assumptions made throughout the getcwd
43319         module; fortunately, the mingw getcwd does not need replacement.
43320         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43321         * modules/getcwd-tests: New test.
43322         * tests/test-getcwd.c: Likewise.
43323
43324         link: fix platform bugs
43325         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43326         * lib/link.c (link): Work around them.  Fix related mingw bug.
43327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43328         * modules/unistd (Makefile.am): Substitute it.
43329         * lib/unistd.in.h (link): Declare replacement.
43330         * doc/posix-functions/link.texi (link): Document this.
43331         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43332
43333         test-link: consolidate into single C program, test more cases
43334         * tests/test-link.sh: Delete.
43335         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43336         at least Cygwin and Solaris.
43337         * modules/link-tests (Files): Remove unused file.
43338         (Depends-on): Add errno, sys_stat.
43339         (Makefile.am): Simplify.
43340
43341 2009-09-08  Bruno Haible  <bruno@clisp.org>
43342
43343         Work around towlower, towupper bug on mingw.
43344         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43345         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43346         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43347         * doc/posix-functions/towupper.texi: Likewise.
43348         Reported by Eric Blake.
43349
43350 2009-09-08  Jim Meyering  <meyering@redhat.com>
43351
43352         build: don't try to run autoheader if we don't use it
43353         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43354         is not used in configure.ac.
43355
43356 2009-09-08  Eric Blake  <ebb9@byu.net>
43357
43358         euidaccess: fix compilation error
43359         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43360
43361         rawmemchr: relax license
43362         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43363         okay.
43364         Reported by Jim Meyering.
43365
43366         mkfifoat: new module
43367         * modules/mkfifoat: New file.
43368         * lib/mkfifoat.c: Likewise.
43369         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43371         * modules/sys_stat (Makefile.am): Use them.
43372         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43373         * MODULES.html.sh (File system functions): Mention module.
43374         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43375         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43376         * modules/mkfifoat-tests: New test.
43377         * tests/test-mkfifoat.c: Likewise.
43378
43379         strchrnul: relax license
43380         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43381         okay.
43382         Reported by Jim Meyering.
43383
43384 2009-09-08  Eric Blake  <ebb9@byu.net>
43385
43386         fstatat: fix compilation on Solaris
43387         * lib/fstatat.c (includes): Add fcntl.h.
43388         Reported by Pádraig Brady.
43389
43390 2009-09-07  Eric Blake  <ebb9@byu.net>
43391
43392         rename: modernize replacement
43393         * modules/rename (Depends-on): Add stdio.
43394         (configure.ac): Declare witness.
43395         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43396         stdio take care of replacement.
43397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43398         * modules/stdio (Makefile.am): Substitute them.
43399         * lib/stdio.in.h (rename): Declare replacement.
43400         * lib/rename.c (includes): Allow cross-compilation to non-windows
43401         machines.
43402         * doc/posix-functions/rename.texi (rename): Improve
43403         documentation.
43404
43405         stdio: sort witness names
43406         * modules/stdio (Makefile.am): Sort replacements.
43407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43408         * lib/stdio.in.h: Likewise.
43409
43410         getcwd: minor cleanups
43411         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43412         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43413
43414         openat: provide more convenience names
43415         * modules/faccessat (configure.ac): Add C witness.
43416         * lib/unistd.in.h (readlinkat): Fix typo.
43417         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43418         convenience wrappers.
43419         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43420         wrappers in syntax checks.
43421
43422 2009-09-06  Eric Blake  <ebb9@byu.net>
43423
43424         doc: fix comments in recent patches
43425         * lib/faccessat.c: Mention correct function.
43426         * lib/fchmodat.c: Likewise.
43427         * lib/fchownat.c: Likewise.
43428         * lib/symlinkat.c: Likewise.
43429         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43430         constants.
43431
43432         faccessat, symlinkat: continue cleanup of previous patch
43433         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43434         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43435         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43437         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43438         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43439         set.
43440
43441 2009-09-06  Bruno Haible  <bruno@clisp.org>
43442
43443         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43444         (fstatat): Declare if GNULIB_FSTATAT is set.
43445         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43446         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43447         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43448         * modules/fcntl-h (Files): Remove m4/openat.m4.
43449         * modules/sys_stat (Files): Remove m4/openat.m4.
43450         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43451         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43452         * modules/unistd (Files): Remove m4/openat.m4.
43453         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43454         GNULIB_OPENAT.
43455         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43456         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43457         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43458         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43459         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43460         gl_OPENAT_DEFAULTS.
43461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43462         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43463         Don't require gl_OPENAT_DEFAULTS.
43464         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43465         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43466         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43467         (gl_OPENAT_DEFAULTS): Remove macro.
43468
43469 2009-09-06  Bruno Haible  <bruno@clisp.org>
43470
43471         * modules/openat (configure.ac): Remove unneeded witness.
43472
43473 2009-09-06  Bruno Haible  <bruno@clisp.org>
43474
43475         Set errno to ENOSYS when a function is entirely unsupported.
43476         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43477         EOPNOTSUPP.
43478         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43479         * modules/chown (Depends-on): Remove errno.
43480
43481 2009-09-06  Bruno Haible  <bruno@clisp.org>
43482
43483         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43484
43485 2009-09-06  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43488
43489 2009-09-06  Ben Pfaff  <blp@gnu.org>
43490             Bruno Haible  <bruno@clisp.org>
43491
43492         Work around a glibc bug in strtok_r.
43493         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43494         Undefine if UNDEFINE_STRTOK_R is set.
43495         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43497         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43499         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43500         UNDEFINE_STRTOK_R.
43501         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43502
43503 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43504
43505         exclude: minor fix
43506         * lib/exclude.c: Include wctype.h
43507
43508 2009-09-06  Akim Demaille  <demaille@gostai.com>
43509
43510         bootstrap: improve error message
43511         * build-aux/bootstrap (find_tool): Upon failure, report the list
43512         of candidates.
43513         Honor the initial value of the envvar.
43514
43515 2009-09-05  Eric Blake  <ebb9@byu.net>
43516
43517         symlinkat: new module
43518         * modules/symlinkat: New file.
43519         * lib/symlinkat.c: Likewise.
43520         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43522         * modules/unistd (Makefile.am): Use them.
43523         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43524         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43525         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43526         * MODULES.html.sh (File system functions): Mention module.
43527         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43528         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43529         * modules/symlinkat-tests: New test.
43530         * tests/test-symlinkat.c: Likewise.
43531
43532         test-openat-safer: add more checks
43533         * tests/test-openat-safer.c (main): Check more code paths.
43534
43535 2009-09-05  Jim Meyering  <meyering@redhat.com>
43536
43537         syntax-check: detect unnecessary inclusion of openat.h
43538         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43539
43540 2009-09-05  Bruno Haible  <bruno@clisp.org>
43541
43542         Support towlower, towupper.
43543         * doc/posix-functions/towlower.texi: Mention module wctype.
43544         * doc/posix-functions/towupper.texi: Likewise.
43545         * lib/wctype.in.h (towlower, towupper): New functions.
43546         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43547         (ASSERT): New macro.
43548         (e): New variable.
43549         (main): Test also towlower, towupper. Test WEOF argument.
43550         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43551
43552 2009-09-05  Bruno Haible  <bruno@clisp.org>
43553
43554         Fix conversion behaviour when the input is invalid.
43555         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43556         mark occurring in first pass of indirect conversion.
43557         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43558         input.
43559         Found by clang's static analyzer.
43560
43561 2009-09-05  Bruno Haible  <bruno@clisp.org>
43562
43563         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43564         where direct conversion is possible.
43565
43566 2009-09-04  Eric Blake  <ebb9@byu.net>
43567
43568         openat: fail with ENOENT on empty name
43569         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43570         buffer.
43571
43572         link-follow: fix logic bug in prior patch
43573         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43574         reversed sense of yes and no in prior patch.  Avoid confusing
43575         compilation failure with desired semantics.
43576
43577         link-follow: accommodate mingw and cross-compilation
43578         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43579         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43580         cross-compilation results to -1, to make linkat easier to
43581         implement when cross-compiling.  Trivially support mingw.
43582         * modules/link-follow (configure.ac): Call new name.
43583         * NEWS: Mention this.
43584
43585 2009-09-03  Eric Blake  <ebb9@byu.net>
43586
43587         faccessat: compile replacement
43588         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43589         needed.
43590
43591         fts: fix compilation error
43592         * lib/fts.c (includes): Re-add "openat.h", for
43593         openat_needs_fchdir.
43594
43595         faccessat: new module
43596         * modules/faccessat: New file.
43597         * lib/faccessat.c: Likewise.
43598         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43600         * modules/unistd (Makefile.am): Use it.
43601         * lib/unistd.in.h (faccessat): Declare it.
43602         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43603         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43604         * MODULES.html.sh (File system functions): Mention it.
43605         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43606         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43607
43608         euidaccess: prefer POSIX over non-standard implementation
43609         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43610         * lib/euidaccess.c (euidaccess): Use it if available.
43611
43612         openat: make template easier to use
43613         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43614         AT_FUNC_F2 to be undefined.
43615         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43616         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43617         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43618         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43619         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43620         Likewise.
43621         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43622         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43623         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43624         Likewise.
43625
43626         openat: declare in POSIX headers
43627         * NEWS: Mention this.
43628         * modules/openat (configure.ac): Declare witnesses.
43629         (Depends-on): Add fcntl-h, sys_stat, unistd.
43630         (Include): Mention correct headers.
43631         * modules/fcntl-h (Depends-on): Add link-warning.
43632         (Files): Add openat.m4.
43633         (Makefile.am): Substitute witnesses.
43634         * modules/sys_stat (Files, Makefile.am): Likewise.
43635         * modules/unistd (Files, Makefile.am): Likewise.
43636         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43637         (gl_OPENAT_DEFAULTS): New macro.
43638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43641         (SYS_STAT_H): Remove unused variable.
43642         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43643         * lib/fcntl--.h (includes): Remove unneeded header.
43644         * lib/openat-safer.c (includes): Likewise.
43645         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43646         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43647         appropriate headers.
43648         (__OPENAT_PREFIX): Delete.
43649         * lib/fcntl.in.h (openat): Provide declaration.
43650         (AT_FDCWD): Fix Solaris bug.
43651         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43652         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43653         * lib/fchmodat.c (includes):  Adjust to find declaration.
43654         * lib/fchownat.c (includes): Likewise.
43655         * lib/mkdirat.c (includes): Likewise.
43656         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43657         still visible.
43658
43659 2009-09-02  Eric Blake  <ebb9@byu.net>
43660
43661         errno: use consistently
43662         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43663         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43664         * lib/canonicalize.c (ELOOP): Likewise.
43665         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43666         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43667         * lib/lchown.c (EOPNOTSUPP): Likewise.
43668         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43669         * lib/savewd.c (ESTALE): Likewise.
43670         * lib/settime.c (ENOSYS): Likewise.
43671         * lib/utimens.c (ENOSYS): Likewise.
43672         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43673         * lib/chdir-safer.c (ELOOP): Likewise.
43674         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43675         * modules/c-stack (Depends-on): Add errno.
43676         * modules/canonicalize (Depends-on): Likewise.
43677         * modules/chdir-safer (Depends-on): Likewise.
43678         * modules/fdopendir (Depends-on): Likewise.
43679         * modules/inet_ntop (Depends-on): Likewise.
43680         * modules/inet_pton (Depends-on): Likewise.
43681         * modules/lchown (Depends-on): Likewise.
43682         * modules/openat (Depends-on): Likewise.
43683         * modules/savewd (Depends-on): Likewise.
43684         * modules/settime (Depends-on): Likewise.
43685         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43686
43687         fts: avoid leaking fds
43688         * modules/fts (Depends-on): Add cloexec.
43689         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43690         flag.
43691
43692         fts: make directory fds more robust
43693         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43694         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43695
43696         backupfile, chdir-long, fts, savedir: make safer
43697         * lib/backupfile.c (includes): Use "dirent--.h", since
43698         numbered_backup can write to stderr during readdir.
43699         * lib/savedir.c (includes): Likewise.
43700         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43701         emulation can write to stderr on failure.
43702         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43703         * lib/getcwd.c: Document why opendir_safer is unused.
43704         * lib/glob.c: Likewise.
43705         * lib/scandir.c: Likewise.
43706         * lib/openat-proc.c: Likewise, for open_safer.
43707         * modules/backupfile (Depends-on): Add dirent-safer.
43708         * modules/savedir (Depends-on): Likewise.
43709         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43710         * modules/chdir-long (Depends-on): Add openat-safer.
43711
43712         openat-safer: new module
43713         * modules/openat-safer: New file.
43714         * lib/openat-safer.c: Likewise.
43715         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43716         * lib/fcntl-safer.h (openat_safer): Declare.
43717         * lib/fcntl--.h (openat): Override.
43718         * MODULES.html.sh (File descriptor based I/O): Mention it.
43719         * lib/openat.h: Add double-inclusion guards.
43720         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43721         "fcntl--.h", so we can implement openat.
43722         * modules/openat-safer-tests: New test.
43723         * tests/test-openat-safer.c: New file.
43724
43725         dirent-safer: new module
43726         * modules/dirent-safer: New file.
43727         * lib/dirent--.h: Likewise.
43728         * lib/dirent-safer.h: Likewise.
43729         * lib/opendir-safer.c: Likewise.
43730         * m4/dirent-safer.m4: Likewise.
43731         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43732         * modules/dirent-safer-tests: New test.
43733         * tests/test-dirent-safer.c: New file.
43734         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43735
43736         fdopendir: optimize on mingw
43737         * lib/unistd.in.h (_gl_directory_name): New prototype.
43738         * lib/fchdir.c (_gl_directory_name): Implement it.
43739         (fchdir): Use it to simplify implementation.
43740         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43741         fchdir, when available, to avoid calling [f]chdir().
43742
43743         fdopendir: split into its own module
43744         * lib/openat.c (fdopendir): Move...
43745         * lib/fdopendir.c: ...into new file.
43746         * modules/fdopendir: New module.
43747         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43748         * modules/openat (Depends-on): Add fdopendir.
43749         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43750         fdopendir here.
43751         * modules/savedir (Depends-on): Only need fdopendir, not full
43752         openat.
43753         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43754         * lib/openat.h (fdopendir): Drop prototype.
43755         * lib/dirent.in.h (fdopendir): Provide prototype.
43756         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43757         * modules/dirent (Makefile.am): Substitute them.
43758         * MODULES.html.sh (File system functions): Mention it.
43759         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43760         * modules/fdopendir-tests: New file.
43761         * tests/test-fdopendir.c: Likewise.
43762
43763         fchdir: use more consistent macro convention
43764         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43765         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43766         REPLACE_FCHDIR, rather than relying on config.h macros.
43767         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43768         inside a single make-time REPLACE_FCHDIR block, rather than using
43769         the config.h FCHDIR_REPLACEMENT.
43770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43771         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43772         Manage fstat replacement.
43773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43774         REPLACE_FCHDIR.
43775         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43776         (Makefile.am): Substitute REPLACE_FCHDIR.
43777         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43778         FCHDIR_REPLACEMENT.
43779         * lib/dup-safer.c (dup_safer): Likewise.
43780         * lib/dup2.c (rpl_dup2): Likewise.
43781         * lib/dup3.c (rpl_dup3): Likewise.
43782         * lib/open.c (rpl_open): Likewise.
43783
43784         fchdir: simplify error handling, and support dup3
43785         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43786         stdbool, malloc-posix, realloc-posix.
43787         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43788         (ensure_dirs_slot): Return false on allocation failure.
43789         (rpl_dup2): Delete.
43790         (_gl_register_dup): New function.
43791         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43792         (_gl_register_fd): Close fd on allocation failure.
43793         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43794         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43795         prototype.
43796         (rpl_dup2_fchdir): Delete prototype.
43797         * lib/open.c (open): Update caller.
43798         * lib/dup2.c (dup2): Track fchdir metadata.
43799         * lib/dup3.c (dup3): Likewise.
43800         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43802
43803 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43804
43805         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43806         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43807         don't pass arguments to AC_OUTPUT.
43808
43809 2009-09-02  Bruno Haible  <bruno@clisp.org>
43810
43811         * modules/mkdtemp (License): Relicense under LGPLv2+.
43812         Reported by Paolo Bonzini.
43813
43814 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43815
43816         Replace uses of obsolete autoconf macros in Jim's modules.
43817         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43818         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43819         can evoke a warning from autoconf when run with -Wobsolete
43820         enabled.  They were declared obsolete for good reasons (see
43821         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43822         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43823         should not continue using the deprecated macros.
43824         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43825         obsolete Autoconf macros with modern counterparts.
43826         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43827         * m4/dos.m4 (gl_AC_DOS): Likewise.
43828         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43829         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43830         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43831         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43832         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43833         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43834         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43835         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43836         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43837         Likewise.
43838         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43839         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43840         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43841         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43842         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43843         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43844
43845 2009-09-01  Eric Blake  <ebb9@byu.net>
43846
43847         fchdir: fix off-by-one bug in previous patch
43848         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43849         (_gl_unregister_fd): Delete useless if.
43850
43851 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43852
43853         maint.mk: sort the list of syntax-check rules
43854         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43855         easier to get a sense of progress when the rules are run sequentially
43856         and take a long time.
43857
43858 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43859
43860         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43861         * modules/netinet_in: Likewise.
43862         * modules/sys_file: Likewise.
43863         * modules/sys_ioctl: Likewise.
43864         * modules/sys_select: Likewise.
43865         * modules/sys_socket: Likewise.
43866         * modules/sys_stat: Likewise.
43867         * modules/sys_time: Likewise.
43868         * modules/sys_times: Likewise.
43869         * modules/sys_utsname: Likewise.
43870         * modules/sys_wait: Likewise.
43871
43872 2009-09-01  Jim Meyering  <meyering@redhat.com>
43873
43874         fts: help ensure that return values are not ignored
43875         * lib/fts_.h (__GNUC_PREREQ): Define.
43876         (__attribute_warn_unused_result__): Define.
43877         (fts_children, fts_close, fts_open, fts_read): Declare with
43878         __attribute_warn_unused_result__.
43879
43880         fts: fts_close now fails also when closing a dir file descriptor fails
43881         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43882         and propagate to caller, along with errno.
43883
43884         announce-gen: correct formatting in --help output
43885         * build-aux/announce-gen (usage): Move the one-line description in
43886         --help output "up", to where it belongs, just after Usage:.
43887
43888 2009-08-31  Eric Blake  <ebb9@byu.net>
43889
43890         fchdir: port to mingw
43891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43892         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43893         opened, then use a substitute.
43894         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43895         replacement.
43896         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43897         (_gl_register_fd): No need to check stat if open already filters
43898         all directories.
43899         (fchdir): Fix error condition to match POSIX.
43900         * modules/fchdir (Depends-on): Add sys_stat.
43901         * doc/posix-functions/open.texi (open): Document the limitation.
43902         * modules/fchdir-tests: New file.
43903         * tests/test-fchdir.c: Likewise.
43904
43905         canonicalize: allow cross-testing from cygwin to mingw
43906         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43907         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43908         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43909         Likewise.
43910         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43911         target does not support symlinks.
43912         * tests/test-canonicalize-lgpl.sh: Likewise.
43913
43914         chown: avoid compilation warning on mingw
43915         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43916         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43917         mingw.
43918         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43919         * modules/chown (Depends-on): Add errno.
43920
43921 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43922
43923         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43924         command.
43925
43926 2009-08-31  Jim Meyering  <meyering@redhat.com>
43927
43928         canonicalize: remove useless initialization
43929         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43930         initialization of local, "end".
43931
43932 2009-08-30  Bruno Haible  <bruno@clisp.org>
43933
43934         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43935         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43936         ENOSYS.
43937
43938 2009-08-30  Bruno Haible  <bruno@clisp.org>
43939
43940         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43941         /usr/xpg4/bin/tr when it exists.
43942         * tests/test-pipe-filter-gi1.sh: Likewise.
43943
43944 2009-08-30  Bruno Haible  <bruno@clisp.org>
43945
43946         Work around deficient /usr/bin/id program on Solaris.
43947         * tests/test-file-has-acl.sh (ID): New variable.
43948         * tests/test-set-mode-acl.sh (ID): Likewise.
43949         * tests/test-copy-acl.sh (ID): Likewise.
43950         * tests/test-copy-file.sh (ID): Likewise.
43951
43952 2009-08-30  Bruno Haible  <bruno@clisp.org>
43953
43954         New module 'xstriconveh'.
43955         * lib/xstriconveh.h: New file.
43956         * lib/xstriconveh.c: New file.
43957         * modules/xstriconveh: New file.
43958
43959 2009-08-30  Bruno Haible  <bruno@clisp.org>
43960
43961         Make it easier to use mem_cd_iconveh.
43962         * lib/striconveh.h (iconveh_t): New type.
43963         (iconveh_open, iconveh_close): New declarations.
43964         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43965         with a single 'const iconveh_t *' argument.
43966         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43967         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43968         with a single 'const iconveh_t *' argument.
43969         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43970         * tests/test-striconveh.c (main): Update.
43971         * NEWS: Mention the change.
43972
43973 2009-08-30  Bruno Haible  <bruno@clisp.org>
43974
43975         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43976         problem.
43977
43978 2009-08-30  Bruno Haible  <bruno@clisp.org>
43979
43980         Work around iconv_open problem on Solaris.
43981         * lib/iconv_open-solaris.gperf: New file.
43982         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43983         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43984         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43985         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43986         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43987         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43988
43989 2009-08-29  Jim Meyering  <meyering@redhat.com>
43990
43991         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43992         * top/maint.mk (cvs-check): Remove target; it was just an alias
43993         to the better-named vc-diff-check.
43994         (maintainer-distcheck): Remove rule.  It was used only from
43995         the (alpha/beta/major) target, and all of its commands but one
43996         were coreutils-specific.
43997         (vc-dist): Remove rule.
43998         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43999         Run vc-diff-check, not vc-dist.
44000         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44001
44002 2009-08-27  Bruno Haible  <bruno@clisp.org>
44003
44004         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44005         of 0.
44006
44007 2009-08-27  Bruno Haible  <bruno@clisp.org>
44008
44009         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44010         compilers.
44011         * doc/func.texi: Document the SunPRO C bug.
44012
44013 2009-08-27  Bruno Haible  <bruno@clisp.org>
44014
44015         Fix link error on Solaris.
44016         * tests/test-parse-duration.c (xstrdup): Remove function.
44017
44018 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44019
44020         ignore-value: handle pointer types, too
44021         * lib/ignore-value.h (__attribute__): Remove definition.
44022         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44023         of a more concise and more-often effective "(void) i" statement.
44024         (ignore_ptr): New function to suppress warnings from functions that
44025         return pointers, and to make it explicit that one function doesn't
44026         handle all cases.
44027
44028 2009-08-25  Bruno Haible  <bruno@clisp.org>
44029
44030         dup2: work around a Linux bug.
44031         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44032         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44033         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44034         Reported by Simon Josefsson.
44035
44036 2009-08-25  Jim Meyering  <meyering@redhat.com>
44037
44038         libguestfs uses gnulib
44039         * users.txt: Add libguestfs.
44040
44041 2009-08-24  Eric Blake  <ebb9@byu.net>
44042
44043         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44044         * lib/pipe2.c (includes): Add binary-io.h.
44045         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44046
44047 2009-08-24  Bruno Haible  <bruno@clisp.org>
44048
44049         Tolerate declared but missing accept4 syscall.
44050         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44051         available.
44052         * lib/sys_socket.in.h (accept4): If the function is already present,
44053         override it.
44054         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44055         * modules/accept4 (Makefile.am): Compile accept4.c always.
44056         Reported by Paolo Bonzini and Eric Blake.
44057
44058 2009-08-23  Bruno Haible  <bruno@clisp.org>
44059
44060         New module 'accept4'.
44061         * lib/sys_socket.in.h (accept4): New declaration.
44062         * lib/accept4.c: New file.
44063         * m4/accept4.m4: New file.
44064         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44065         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44066         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44067         HAVE_ACCEPT4.
44068         * modules/accept4: New file.
44069         * doc/glibc-functions/accept4.texi: Mention the new module.
44070
44071 2009-08-24  Jim Meyering  <meyering@redhat.com>
44072
44073         progname: also set global program_invocation_name, when possible
44074         Before this change, a libtool-enabled program that calls glibc's
44075         error function would report the program name as
44076         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44077         * modules/progname (configure.ac): Check for a declaration of
44078         program_invocation_name.
44079         * lib/progname.c:  Include <errno.h>.
44080         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44081         Set program_invocation_name.
44082
44083 2009-08-23  Bruno Haible  <bruno@clisp.org>
44084
44085         * lib/dup3.c: Include <string.h>.
44086
44087 2009-08-23  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44090         * lib/pipe2.c (pipe2): Likewise.
44091         Suggested by Eric Blake.
44092
44093 2009-08-23  Bruno Haible  <bruno@clisp.org>
44094
44095         Tolerate declared but missing dup3 syscall.
44096         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44097         * lib/unistd.in.h (dup3): If the function is already present,
44098         override it.
44099         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44100         * modules/dup3 (Makefile.am): Compile dup3.c always.
44101         Reported by Paolo Bonzini.
44102
44103 2009-08-23  Bruno Haible  <bruno@clisp.org>
44104
44105         Tolerate declared but missing pipe2 syscall.
44106         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44107         available.
44108         * lib/unistd.in.h (pipe2): If the function is already present,
44109         override it.
44110         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44111         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44112         Reported by Paolo Bonzini.
44113
44114 2009-08-23  Bruno Haible  <bruno@clisp.org>
44115
44116         * lib/pipe2.c (pipe2): Move #ifs inside function.
44117
44118 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44119
44120         quotearg: document limitations of quote_these_too
44121         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44122         those limitations are created.
44123         * lib/quotearg.h (set_char_quoting): Document that digits and
44124         letters that are special after backslash are not permitted.
44125         (quotearg_char): Cross-reference set_char_quoting documentation.
44126
44127 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44128
44129         quotearg: implement custom_quoting_style
44130         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44131         right_quote fields.
44132         (set_custom_quoting): New public function.
44133         (quotearg_buffer_restyled): Add left_quote and right_quote
44134         arguments, handle them very much like locale quoting, and update
44135         all uses.
44136         (quotearg_n_custom): New public function.
44137         (quotearg_n_custom_mem): New public function.
44138         (quotearg_custom): New public function.
44139         (quotearg_custom_mem): New public function.
44140         * lib/quotearg.h: Prototype and document new public functions.
44141         (enum quoting_style): For escape_quoting_style and
44142         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44143         ignored even though they're otherwise like c_quoting_style.
44144         Add custom_quoting_style member and document with comparison to
44145         clocale_quoting_style.
44146         * tests/test-quotearg.c (custom_quotes): New array.
44147         (custom_results): New array.
44148         (main): Extend to test custom quoting.
44149
44150 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44151
44152         quotearg: fix right quote escaping when it's in quote_these_too
44153         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44154         quote, be sure to prepend only one backslash.
44155         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44156         (main): Test it.
44157
44158 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44159
44160         quotearg-tests: test escaping of embedded locale quotes
44161         * tests/test-quotearg.c (struct result_strings): Add member for
44162         new input.
44163         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44164         (inputs): Add new input.
44165         (results_g): Add expected results.
44166         (flag_results): Likewise.
44167         (locale_results): Likewise.
44168         (compare_strings): Check those.
44169
44170 2009-08-23  Bruno Haible  <bruno@clisp.org>
44171
44172         Tests for module 'dup3'.
44173         * modules/dup3-tests: New file.
44174         * tests/test-dup3.c: New file.
44175
44176         New module 'dup3'.
44177         * lib/unistd.in.h (dup3): New declaration.
44178         * lib/dup3.c: New file.
44179         * m4/dup3.m4: New file.
44180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44181         HAVE_DUP3.
44182         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44183         * modules/dup3: New file.
44184         * doc/glibc-functions/dup3.texi: Mention the new module.
44185
44186 2009-08-23  Bruno Haible  <bruno@clisp.org>
44187
44188         Tweak the dup2 test.
44189         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44190         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44191         the test file is still empty. Fix argument order of lseek.
44192
44193 2009-08-23  Bruno Haible  <bruno@clisp.org>
44194
44195         Avoid test link errors when the modules getopt-gnu, gettext are used.
44196         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44198
44199 2009-08-23  Bruno Haible  <bruno@clisp.org>
44200
44201         Fix getdtablesize() on mingw.
44202         * lib/getdtablesize.c (getdtablesize): Implement differently.
44203         * lib/unistd.in.h (getdtablesize): Improve comment.
44204
44205 2009-08-23  Bruno Haible  <bruno@clisp.org>
44206
44207         New module 'mkostemp'.
44208         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44209         * lib/stdlib.in.h (mksotemp): New declaration.
44210         * lib/mkostemp.c: New file, from glibc with modifications.
44211         * lib/tempname.h (GT_FILE): Remove outdated comment.
44212         (gen_tempname): Add flags argument.
44213         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44214         (__GT_FILE): Map to 1.
44215         (small_open, large_open): Remove macros.
44216         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44217         * lib/mkstemp.c (mkstemp): Update.
44218         * lib/mkdtemp.c (mkdtemp): Likewise.
44219         * m4/mkostemp.m4: New file.
44220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44221         HAVE_MKOSTEMP.
44222         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44223         HAVE_MKOSTEMP.
44224         * modules/mkostemp: New file, based on modules/mkstemp.
44225         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44226         * NEWS: Mention the change.
44227
44228 2009-08-23  Bruno Haible  <bruno@clisp.org>
44229
44230         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44231         Reported by Eric Blake.
44232
44233 2009-08-23  Bruno Haible  <bruno@clisp.org>
44234
44235         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44236         Reported by Eric Blake.
44237
44238 2009-08-23  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44241         * modules/pipe2 (Depends-on): Likewise.
44242
44243 2009-08-23  Eric Blake  <ebb9@byu.net>
44244
44245         fcntl-h: add O_TTY_INIT support
44246         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44247         * tests/test-fcntl-h.c (o): Test it.
44248         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44249
44250         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44251         * modules/fcntl: Move <fcntl.h> header replacement...
44252         * modules/fcntl-h: ...to new name, so as not to collide with
44253         like-named function.
44254         * tests/test-fcntl.c: Rename...
44255         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44256         * modules/fcntl-tests: Rename...
44257         * modules/fcntl-h-tests: ...to this.  Update test file name.
44258         * modules/chdir-long (Depends-on): Update clients.
44259         * modules/chdir-safer (Depends-on): Likewise.
44260         * modules/fcntl-safer (Depends-on): Likewise.
44261         * modules/fts (Depends-on): Likewise.
44262         * modules/mkancesdirs (Depends-on): Likewise.
44263         * modules/mkdir-p (Depends-on): Likewise.
44264         * modules/open (Depends-on): Likewise.
44265         * modules/savewd (Depends-on): Likewise.
44266         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44267         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44268
44269 2009-08-22  Bruno Haible  <bruno@clisp.org>
44270
44271         * modules/binary-io (License): Relicense under LGPL.
44272         * modules/pipe2 (License): Likewise.
44273
44274 2009-08-22  Bruno Haible  <bruno@clisp.org>
44275
44276         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44277         return value.
44278         * lib/pipe-filter-gi.c (filter_init): Likewise.
44279         Reported by Eric Blake.
44280
44281 2009-08-22  Bruno Haible  <bruno@clisp.org>
44282
44283         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44284         * modules/pipe (Depends-on): Add pipe2.
44285
44286 2009-08-22  Bruno Haible  <bruno@clisp.org>
44287
44288         Tests for module 'pipe2'.
44289         * modules/pipe2-tests: New file.
44290         * tests/test-pipe2.c: New file.
44291
44292         New module 'pipe2'.
44293         * lib/unistd.in.h (pipe2): New declaration.
44294         * lib/pipe2.c: New file.
44295         * m4/pipe2.m4: New file.
44296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44297         HAVE_PIPE2.
44298         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44299         * modules/pipe2: New file.
44300         * doc/glibc-functions/pipe2.texi: Mention the new module.
44301
44302 2009-08-22  Bruno Haible  <bruno@clisp.org>
44303
44304         Reference some new glibc functions.
44305         * doc/glibc-functions/accept4.texi: New file.
44306         * doc/glibc-functions/dup3.texi: New file.
44307         * doc/glibc-functions/mkostemp.texi: New file.
44308         * doc/glibc-functions/pipe2.texi: New file.
44309         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44310         (Glibc sys/socket.h): Refer to accept4.
44311         (Glibc unistd.h): Refer to dup3, pipe2.
44312         Reported by Eric Blake.
44313
44314 2009-08-22  Jim Meyering  <meyering@redhat.com>
44315             Bruno Haible  <bruno@clisp.org>
44316
44317         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44318         This makes it so packages using automake-1.11's silent-rules option
44319         can print e.g., a single "GEN    configmake.h" line, rather than
44320         the 30+ statements that perform the job.  If you want to see the
44321         actual commands, you can still run "make V=1".
44322         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44323         so that make output is abbreviated when those variables are defined
44324         appropriately.
44325         * modules/argz: Likewise.
44326         * modules/arpa_inet: Likewise.
44327         * modules/byteswap: Likewise.
44328         * modules/configmake: Likewise.
44329         * modules/dirent: Likewise.
44330         * modules/errno: Likewise.
44331         * modules/fcntl: Likewise.
44332         * modules/float: Likewise.
44333         * modules/fnmatch: Likewise.
44334         * modules/getopt-posix: Likewise.
44335         * modules/glob: Likewise.
44336         * modules/iconv_open: Likewise.
44337         * modules/inttypes: Likewise.
44338         * modules/localcharset: Likewise.
44339         * modules/locale: Likewise.
44340         * modules/math: Likewise.
44341         * modules/netdb: Likewise.
44342         * modules/netinet_in: Likewise.
44343         * modules/poll: Likewise.
44344         * modules/posix_spawnp-tests: Likewise.
44345         * modules/sched: Likewise.
44346         * modules/search: Likewise.
44347         * modules/selinux-h: Likewise.
44348         * modules/signal: Likewise.
44349         * modules/spawn: Likewise.
44350         * modules/stdarg: Likewise.
44351         * modules/stdbool: Likewise.
44352         * modules/stddef: Likewise.
44353         * modules/stdint: Likewise.
44354         * modules/stdio: Likewise.
44355         * modules/stdlib: Likewise.
44356         * modules/string: Likewise.
44357         * modules/strings: Likewise.
44358         * modules/sys_file: Likewise.
44359         * modules/sys_ioctl: Likewise.
44360         * modules/sys_select: Likewise.
44361         * modules/sys_socket: Likewise.
44362         * modules/sys_stat: Likewise.
44363         * modules/sys_time: Likewise.
44364         * modules/sys_times: Likewise.
44365         * modules/sys_utsname: Likewise.
44366         * modules/sys_wait: Likewise.
44367         * modules/sysexits: Likewise.
44368         * modules/time: Likewise.
44369         * modules/unistd: Likewise.
44370         * modules/wchar: Likewise.
44371         * modules/wctype: Likewise.
44372
44373 2009-08-22  Jim Meyering  <meyering@redhat.com>
44374
44375         announce-gen: detect write failure
44376         * build-aux/announce-gen: Add Coda at end.
44377         Remove equivalent-but-more-verbose block at top.
44378
44379 2009-08-19  Akim Demaille  <demaille@gostai.com>
44380
44381         bootstrap: --help to stdout.
44382         * bootstrap (usage): Don't send --help to stderr.
44383         Use a here doc instead of a long string.
44384
44385 2009-08-21  Eric Blake  <ebb9@byu.net>
44386
44387         test-popen-safer: split from test-popen
44388         * tests/test-popen.c (main): Move...
44389         * tests/test-popen.h: ...into new file.
44390         * tests/test-popen-safer2.c: New file.
44391         * modules/popen-tests (Files): Add test-popen.h.
44392         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44393         Suggested by Bruno Haible.
44394
44395         test-fcntl-safer: split from test-open
44396         * tests/test-open.c (main): Move...
44397         * tests/test-open.h: ...into new file.
44398         * tests/test-fcntl-safer.c: New file.
44399         * modules/open-tests (Files): Add test-open.h.
44400         * modules/fcntl-safer-tests: New file.
44401         Suggested by Bruno Haible.
44402
44403         test-fopen-safer: split from test-fopen
44404         * tests/test-fopen.c (main): Move...
44405         * tests/test-fopen.h: ...into new file.
44406         * tests/test-fopen-safer.c: New file.
44407         * modules/fopen-tests (Files): Add test-fopen.h.
44408         * modules/fopen-safer-tests: New file.
44409         Suggested by Bruno Haible.
44410
44411 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44412
44413         popen-safer: test O_CLOEXEC at run-time.
44414         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44415
44416 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44417
44418         fcntl: move more flags to the header
44419         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44420         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44421         * lib/fcntl.in.h: Do both things here.
44422
44423 2009-08-21  Jim Meyering  <meyering@redhat.com>
44424
44425         consistently remove $@-t before redirecting to it
44426         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44427         * modules/alloca-opt: Likewise.
44428         * modules/byteswap: Likewise.
44429         * modules/fnmatch: Likewise.
44430         * modules/getopt-posix: Likewise.
44431         * modules/glob: Likewise.
44432         * modules/poll: Likewise.
44433         * modules/posix_spawnp-tests: Likewise.
44434         * modules/sys_socket: Likewise.
44435         * modules/sysexits: Likewise.
44436
44437 2009-08-21  Eric Blake  <ebb9@byu.net>
44438
44439         popen: simplify access to original popen
44440         * lib/popen.c (rpl_popen): No need to worry about popen being a
44441         macro.
44442         Reported by Bruno Haible.
44443
44444 2009-08-20  Eric Blake  <ebb9@byu.net>
44445
44446         build: avoid some compiler warnings
44447         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44448         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44449         type.
44450         (new_exclude_segment, excluded_file_pattern_p)
44451         (excluded_file_name_p): Reduce scope.
44452         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44453         old-style declaration.
44454
44455 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44456
44457         * tests/test-exclude1.sh: Handle Windows EOL.
44458         * tests/test-exclude2.sh: Likewise.
44459         * tests/test-exclude3.sh: Likewise.
44460         * tests/test-exclude4.sh: Likewise.
44461         * tests/test-exclude5.sh: Likewise.
44462         * tests/test-exclude6.sh: Likewise.
44463         * tests/test-exclude7.sh: Likewise.
44464
44465 2009-08-19  Akim Demaille  <demaille@gostai.com>
44466
44467         bootstrap: find sha1sum when named gsha1sum.
44468         * bootstrap (find_tool): New.
44469         ($SHA1SUM): New.
44470         Use it.
44471
44472 2009-08-20  Jim Meyering  <meyering@redhat.com>
44473
44474         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44475         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44476         expression that converts "." in a file name to "\." in the resulting
44477         regexp.  Start with a dummy statement, so that prior shell variable
44478         definitions are expanded portably.  Reported by Simon Josefsson.
44479
44480 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44481
44482         Fix polling for writeability of a screen buffer.
44483         * lib/poll.c: Distinguish input and screen buffers for the
44484         Win32 implementation.
44485         * lib/select.c: Likewise.
44486
44487 2009-08-19  Eric Blake  <ebb9@byu.net>
44488
44489         popen-safer: prevent popen from clobbering std descriptors
44490         * modules/popen-safer: New file.
44491         * lib/popen-safer.c: Likewise.
44492         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44493         * lib/stdio--.h (popen): Provide override.
44494         * lib/stdio-safer.h (popen_safer): Provide declaration.
44495         * tests/test-popen.c (includes): Partially test this.
44496         * modules/popen-safer-tests: New file, for more tests.
44497         * tests/test-popen-safer.c: Likewise.
44498         * MODULES.html.sh (file stream based Input/Output): Mention it.
44499
44500         tests: test some of the *-safer modules
44501         * modules/fopen-safer (Depends-on): Add fopen.
44502         * modules/fcntl-safer (Depends-on): Add fcntl.
44503         * modules/stdlib-safer (Depends-on): Add stdlib.
44504         (configure.ac): Set indicator.
44505         * modules/unistd-safer (configure.ac): Likewise.
44506         * modules/tmpfile-safer (configure.ac): Likewise.
44507         (Depends-on): Add tmpfile.
44508         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44509         active.
44510         * tests/test-fopen.c (includes): Test safer versions when they are
44511         in use.
44512         * tests/test-open.c (includes): Likewise.
44513
44514         popen: fix cygwin 1.5 bug when stdin closed
44515         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44516         * modules/popen: New file.
44517         * modules/popen-tests: Likewise.
44518         * tests/test-popen.c: Likewise.
44519         * m4/popen.m4: Likewise.
44520         * lib/popen.c: Likewise.
44521         * lib/stdio.in.h (popen): New declaration.
44522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44523         * modules/stdio (Makefile.am): Likewise.
44524         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44525
44526 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44527
44528         maint.mk: give full control over update-copyright exclusions
44529         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44530         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44531         (update-copyright): Don't force inclusion of top-level
44532         ChangeLog.  Don't force exclusion of all COPYING files, but make
44533         them the default exclusion instead.
44534
44535 2009-08-16  Bruno Haible  <bruno@clisp.org>
44536
44537         Fix test failures on Solaris 10.
44538         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44539         tests when Solaris iconv() is used.
44540         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44541         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44542         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44543         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44544         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44545
44546 2009-08-16  Bruno Haible  <bruno@clisp.org>
44547
44548         Fix test failures on Solaris 10.
44549         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44550         'tr' program and pass it as first argument.
44551         * tests/test-pipe-filter-gi1.sh: Likewise.
44552         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44553         program as first argument.
44554         * tests/test-pipe-filter-gi1.c (main): Likewise.
44555
44556 2009-08-16  Eric Blake  <ebb9@byu.net>
44557
44558         fpurge: fix previous commits
44559         * modules/fpurge (Makefile.am): Make replacement conditional,
44560         partially reverting 2007-04-29 change; missed in previous
44561         attempt.
44562         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44563         is missing.
44564
44565 2009-08-16  Bruno Haible  <bruno@clisp.org>
44566
44567         Clarify fpurge's effect on the file position.
44568         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44569         * tests/test-fpurge.c (main): Make a second pass for checking the file
44570         position.
44571
44572 2009-08-16  Bruno Haible  <bruno@clisp.org>
44573
44574         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44575         declaration of fpurge is missing.
44576         * tests/test-fpurge.c (main): Check that the file has not more contents
44577         than expected. Close the file before removing it.
44578
44579 2009-08-15  Eric Blake  <ebb9@byu.net>
44580
44581         fpurge: don't wrap working cygwin implementation
44582         * lib/fpurge.c (fpurge): Fix comment typo.
44583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44584         1.7 to avoid replacement.
44585         * tests/test-fpurge.c (main): Enhance test.
44586
44587 2009-08-15  Eric Blake  <ebb9@byu.net>
44588         and Jim Meyering  <meyering@redhat.com>
44589
44590         test-update-copyright: skip if perl is insufficient
44591         * tests/test-update-copyright.sh: Failure to run maintainer tool
44592         should not cause testsuite failure on cygwin 1.5.
44593
44594 2009-08-14  Eric Blake  <ebb9@byu.net>
44595
44596         doc: mention more functions added in cygwin 1.7.0
44597         * doc/posix-headers/limits.texi (limits.h): Update for recent
44598         cygwin additions.
44599         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44600         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44601         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44602         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44603         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44604
44605 2009-08-14  Eric Blake  <ebb9@byu.net>
44606
44607         maint.mk: simplify update-copyright rule
44608         * top/maint.mk (update-copyright-local): Delete, and document how
44609         to do it in cfg.mk instead.
44610         (update-copyright-exclude-regexp): Delete, and document how to do
44611         it in .x-update-copyright instead.
44612         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44613         exclude ChangeLog.
44614
44615 2009-08-14  Bruno Haible  <bruno@clisp.org>
44616
44617         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44618
44619 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44620
44621         maint.mk: support update-copyright-env
44622         * top/maint.mk (update-copyright-env): Define place-holder.
44623         (update-copyright): Expand $(update-copyright-env) before
44624         invoking update-copyright.
44625
44626 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44627
44628         update-copyright: implement forced reformatting
44629         * build-aux/update-copyright: Implement and document
44630         UPDATE_COPYRIGHT_FORCE.
44631         * tests/test-update-copyright.sh: Test it.
44632
44633 2009-08-14  Eric Blake  <ebb9@byu.net>
44634         and Bruno Haible  <bruno@clisp.org>
44635
44636         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44637         * tests/test-locale.c: Revert previous patch related to NULL.
44638         * tests/test-stdio.c: Likewise.
44639         * tests/test-stdlib.c: Likewise.
44640         * tests/test-string.c: Likewise.
44641         * tests/test-unistd.c: Likewise.
44642         * modules/time-tests (Depends-on): Add verify.
44643         * modules/wchar-tests (Depends-on): Likewise.
44644         * tests/test-time.c: Test for NULL compliance.
44645         * tests/test-wchar.c: Likewise.
44646         * modules/locale (Depends-on): Add stddef.
44647         * modules/stdio (Depends-on): Likewise.
44648         * modules/stdlib (Depends-on): Likewise.
44649         * modules/string (Depends-on): Likewise.
44650         * modules/time (Depends-on): Likewise.
44651         * modules/unistd (Depends-on): Likewise.
44652         * modules/wchar (Depends-on): Likewise.
44653         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44654         * lib/stdlib.in.h (includes): Likewise.
44655         * lib/string.in.h (includes): Likewise.
44656         * lib/time.in.h (includes): Likewise.
44657         * lib/unistd.in.h (includes): Likewise.
44658         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44659         replaced.
44660         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44661         * m4/stddef_h.m4: New file.
44662         * modules/stddef: Likewise.
44663         * lib/stddef.in.h: Likewise.
44664         * modules/stddef-tests: Likewise.
44665         * tests/test-stddef.c: Likewise.
44666         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44667         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44668         * doc/posix-headers/locale.texi (locale.h): Likewise.
44669         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44670         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44671         * doc/posix-headers/string.texi (string.h): Likewise.
44672         * doc/posix-headers/time.texi (time.h): Likewise.
44673         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44674         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44675
44676 2009-08-14  Eric Blake  <ebb9@byu.net>
44677
44678         doc: improve git diff of texinfo files
44679         * .gitattributes: Add rule for *.texi files, with hint on how to
44680         use it.
44681         Copied from m4, and based on a report by Bruno Haible.
44682
44683 2009-08-14  Bruno Haible  <bruno@clisp.org>
44684
44685         Disable multithread support by default on Cygwin 1.5.x for real.
44686         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44687
44688 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44689
44690         update-copyright: much ado about intervals
44691         * build-aux/update-copyright: Implement and document
44692         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44693         of copyright year intervals.
44694         Also, document UPDATE_COPYRIGHT_YEAR.
44695         * tests/test-update-copyright.sh: Test it.
44696
44697         update-copyright: convert 2-digit to 4-digit years
44698         * build-aux/update-copyright: Implement and document.
44699         * tests/test-update-copyright.sh: Update.
44700
44701 2009-08-14  Jim Meyering  <meyering@redhat.com>
44702
44703         test-exclude: avoid coreutils "make check" failure
44704         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44705         just as in test-argmatch.c.
44706
44707 2009-08-13  Eric Blake  <ebb9@byu.net>
44708
44709         test-dup2: fix bad assumption
44710         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44711         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44712
44713         test-version-etc: fix CRLF portability issue
44714         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44715         recognize \r.
44716         * tests/test-argp-version-etc-1.sh: Likewise.
44717
44718         getopt: update client modules
44719         * modules/argp (Depends-on): Use getopt-gnu.
44720         * modules/git-merge-changelog (Depends-on): Likewise.
44721         * modules/long-options (Depends-on): Likewise.
44722         * modules/xstrtol (Depends-on): Likewise.
44723
44724 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44725
44726         * tests/test-version-etc.sh: Don't fail on different
44727         project/version.  Don't fail on CRLF differences.  Rewrite to use
44728         multiple -e instead of multiple sed forks, suggested by Eric Blake
44729         <ebb9@byu.net>.
44730         * tests/test-argp-version-etc-1.sh: Likewise.
44731
44732 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44733
44734         * tests/test-version-etc.sh: Don't fail on different
44735         project/version.
44736
44737 2009-08-12  Bruno Haible  <bruno@clisp.org>
44738
44739         Tests for modules 'getopt-posix', 'getopt-gnu'.
44740         * modules/getopt-posix-tests: New file.
44741         * tests/test-getopt.c: New file.
44742         * tests/test-getopt.h: New file.
44743         * tests/test-getopt_long.h: New file.
44744
44745         New modules 'getopt-posix', 'getopt-gnu'.
44746         * modules/getopt-gnu: New file, renamed from modules/getopt.
44747         * modules/getopt-posix: New file.
44748         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44749         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44750         (gl_GETOPT): Remove macro.
44751         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44752         Disable the test against BSD systems that declare optreset. Test
44753         against mingw bug. Test against lack of support of optional arguments
44754         on many platforms.
44755         * doc/glibc-headers/getopt.texi: Update module name and list of
44756         relevant platforms.
44757         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44758         'getopt-gnu' and more portability problems.
44759         * NEWS: Mention the changes.
44760
44761 2009-08-12  Bruno Haible  <bruno@clisp.org>
44762
44763         Ensure that optarg etc. get declared by <unistd.h>.
44764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44765         AC_USE_SYSTEM_EXTENSIONS.
44766         * modules/getopt (Depends-on): Add 'extensions'.
44767
44768 2009-08-12  Bruno Haible  <bruno@clisp.org>
44769
44770         Avoid test link errors.
44771         * modules/pipe-filter-ii-tests (Makefile.am): Define
44772         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44773         * modules/pipe-filter-gi-tests (Makefile.am): Define
44774         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44776
44777 2009-08-12  Bruno Haible  <bruno@clisp.org>
44778
44779         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44780         gl_GETOPT_SUBSTITUTE before.
44781         (gl_GETOPT): Use it.
44782         * m4/argp.m4 (gl_ARGP): Update.
44783         Reported by Sergey Poznyakoff.
44784
44785         * m4/getopt.m4: Reorder macros.
44786         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44787         (gl_GETOPT_SUBSTITUTE): Remove macro.
44788
44789 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44790
44791         Minor improvement in gitlog-to-changelog
44792
44793         * build-aux/gitlog-to-changelog: New option `--format' makes
44794         output format string configurable.
44795
44796 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44797
44798         Optimize exclude: use hash tables for non-wildcard patterns.
44799
44800         * lib/exclude.c: Include hash.h and mbuiter.h
44801         (struct exclude_pattern, exclude_segment): New data types.
44802         (struct exclude): Rewrite.
44803         (fnmatch_pattern_has_wildcards): New function.
44804         (new_exclude_segment, free_exclude_segment): New functions.
44805         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44806         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44807         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44808         * modules/exclude: Depend on hash and mbuiter.
44809
44810         * modules/exclude-tests: New file.
44811         * tests/test-exclude.c: New file.
44812         * tests/test-exclude1.sh: New file.
44813         * tests/test-exclude2.sh: New file.
44814         * tests/test-exclude3.sh: New file.
44815         * tests/test-exclude4.sh: New file.
44816         * tests/test-exclude5.sh: New file.
44817         * tests/test-exclude6.sh: New file.
44818         * tests/test-exclude7.sh: New file.
44819
44820 2009-08-12  Bruno Haible  <bruno@clisp.org>
44821
44822         Ensure that getopt() gets declared by <unistd.h>.
44823         * lib/unistd.in.h: Conditionally include getopt.h.
44824         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44825         Set GNULIB_UNISTD_H_GETOPT.
44826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44827         GNULIB_UNISTD_H_GETOPT.
44828         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44829
44830 2009-08-12  Bruno Haible  <bruno@clisp.org>
44831
44832         Clarify logic.
44833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44834         gl_replace_getopt instead of GETOPT_H.
44835
44836 2009-08-12  Bruno Haible  <bruno@clisp.org>
44837
44838         * m4/getopt.m4: Add comments.
44839
44840 2009-08-12  Bruno Haible  <bruno@clisp.org>
44841
44842         Disable multithread support by default on Cygwin 1.5.x.
44843         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44844         set gl_use_threads=no if not specified otherwise.
44845
44846 2009-08-11  Bruno Haible  <bruno@clisp.org>
44847
44848         Avoid compilation error on NetBSD 5.0.
44849         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44850         * tests/test-stdio.c: Likewise.
44851         * tests/test-stdlib.c: Likewise.
44852         * tests/test-string.c: Likewise.
44853         * tests/test-unistd.c: Likewise.
44854         Reported by Greg Troxel <gdt@ir.bbn.com>
44855         at <https://savannah.gnu.org/support/?106973>.
44856
44857 2009-08-11  Bruno Haible  <bruno@clisp.org>
44858
44859         * modules/dup2-tests (Depends-on): Remove close.
44860
44861         Undo 2009-07-19 commit.
44862         * modules/acl-tests (Depends-on): Remove close.
44863         * modules/binary-io-tests (Depends-on): Likewise.
44864         * modules/closein-tests (Depends-on): Likewise.
44865         * modules/flock-tests (Depends-on): Likewise.
44866         * modules/fsync-tests (Depends-on): Likewise.
44867         * modules/lseek-tests (Depends-on): Likewise.
44868         * modules/pipe-tests (Depends-on): Likewise.
44869         * modules/posix_spawn-tests (Depends-on): Likewise.
44870         * modules/posix_spawnp-tests (Depends-on): Likewise.
44871         * modules/stat-time-tests (Depends-on): Likewise.
44872         * modules/yesno-tests (Depends-on): Likewise.
44873
44874 2009-08-10  Bruno Haible  <bruno@clisp.org>
44875
44876         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44877
44878 2009-08-10  Bruno Haible  <bruno@clisp.org>
44879
44880         Fix a gcc warning.
44881         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44882
44883 2009-08-10  Bruno Haible  <bruno@clisp.org>
44884
44885         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44886         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44887         not only the first time.
44888         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44889         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44890         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44891         is 1, not only the the first time.
44892
44893 2009-08-10  Bruno Haible  <bruno@clisp.org>
44894
44895         Make it possible to use module 'gethostname' without module 'close'.
44896         * lib/unistd.in.h (close): Evoke a link error only if
44897         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44899         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44900         * modules/unistd (Makefile.am): Substitute
44901         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44902         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44903         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44904         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44905         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44906         * modules/sys_ioctl (Makefile.am): Substitute
44907         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44908         * modules/socket (configure.ac): On native Windows, set
44909         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44910         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44911         Reported by Sam Steingold <sds@gnu.org>.
44912
44913 2009-08-10  Bruno Haible  <bruno@clisp.org>
44914
44915         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44916         * modules/ioctl (configure.ac): Likewise.
44917
44918 2009-08-10  Bruno Haible  <bruno@clisp.org>
44919
44920         Avoid collision between gnulib wrapper and libintl wrapper.
44921         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44922         already defined in intl/printf.c.
44923         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44924         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44925
44926 2009-08-09  Bruno Haible  <bruno@clisp.org>
44927
44928         Make <sys/select.h> really self-contained, also on Solaris 10.
44929         * lib/sys_select.in.h: Include <string.h>.
44930         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44931         Solaris 10 problem.
44932         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44933         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44934         Reported by Jim Meyering.
44935
44936 2009-08-09  Bruno Haible  <bruno@clisp.org>
44937
44938         Avoid warnings from 'aclocal' that are due to a use of macro name
44939         AM_XGETTEXT_OPTION that is not defined in automake.
44940         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44941         automake.
44942         * modules/error (configure.ac): Likewise.
44943         * modules/propername (configure.ac): Likewise.
44944         * modules/vasprintf (configure.ac): Likewise.
44945         * modules/verror (configure.ac): Likewise.
44946         * modules/xprintf (configure.ac): Likewise.
44947         * modules/xvasprintf (configure.ac): Likewise.
44948
44949 2009-08-08  Bruno Haible  <bruno@clisp.org>
44950
44951         Avoid compilation error in C++ mode.
44952         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44953         Reported by Sam Steingold <sds@gnu.org>.
44954
44955 2009-08-08  Bruno Haible  <bruno@clisp.org>
44956
44957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44958         for the various Unix platforms.
44959         * doc/posix-headers/limits.texi: Update platforms list regarding
44960         HOST_NAME_MAX.
44961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44962
44963 2009-08-07  Jim Meyering  <meyering@redhat.com>
44964
44965         selinux-at: fix typo in a comment
44966         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44967         Spotted by Paolo Bonzini.
44968
44969         selinux-at: remove redundant m4 code, add documentation
44970         * modules/selinux-at (configure.ac): Remove redundant code.
44971         LIB_SELINUX is already set via the dependent module, selinux-h.
44972         (Include): Add quotes around selinux-at.h.
44973         * lib/selinux-at.h: Add documentation.
44974         Reported by Bruno Haible in
44975         http://marc.info/?l=gnulib-bug&m=124958988300749
44976
44977 2009-08-07  Bruno Haible  <bruno@clisp.org>
44978
44979         Avoid link error on MacOS X 10.3 and 10.4.
44980         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44981         on non-ELF systems.
44982         * lib/argp-pv.c (argp_program_version): Likewise.
44983         Reported by Simon Josefsson.
44984
44985 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44986
44987         * tests/test-version-etc.sh: Use $EXEEXT.
44988
44989 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44990
44991         update-copyright: update documentation to point to maint.mk
44992         * build-aux/update-copyright: Here.
44993
44994 2009-08-06  Jim Meyering  <meyering@redhat.com>
44995
44996         maint.mk: support update-copyright-local
44997         * top/maint.mk (update-copyright-local): Define place-holder.
44998         (update-copyright): Depend on $(update-copyright-local).
44999
45000 2009-08-06  Jim Meyering  <meyering@redhat.com>
45001
45002         selinux-at: new module
45003         Initially written for coreutils, this module will soon be
45004         used by findutils, too.
45005         * MODULES.html.sh [Misc]: Add selinux-at.
45006         * lib/selinux-at.h: New file, from coreutils.
45007         * lib/selinux-at.c: Likewise.
45008         * modules/selinux-at: Likewise.
45009         (License): Change from LGPL to GPL, since it depends
45010         on the GPL'd openat module.
45011
45012         doc: update README
45013         * README: Remove references to cogito.
45014         Remove cvs-repo-updating instructions from 2007.
45015         Don't imply that CVS is better if you have limited disk space.
45016
45017 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45018
45019         update-copyright: support C-style comments
45020         * build-aux/update-copyright: Implement and document.
45021         * tests/test-update-copyright.sh: Test.
45022
45023 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45024
45025         update-copyright: support omitted "(C)"
45026         * build-aux/update-copyright: Implement and document.  Also,
45027         allow variable whitespace before "(C)".
45028         * tests/test-update-copyright.sh: Test.
45029
45030 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45031
45032         update-copyright: don't trip on non-FSF copyright statements
45033         * build-aux/update-copyright: Fix so that the first correctly
45034         formatted FSF copyright statement is recognized no matter what
45035         appears before it.  Update documentation.
45036         * tests/test-update-copyright.sh: Test that.
45037
45038 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45039
45040         update-copyright: clean up code a little
45041         * build-aux/update-copyright: Append "_re" to the name of any
45042         variable holding a regular expression.
45043         Replace "old" and "new" with "stmt" in variable names.
45044         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45045         handled correctly.
45046         Format code more consistently.
45047
45048 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45049
45050         update-copyright-tests: improve portability
45051         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45052         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45053
45054 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45055
45056         update-copyright: support @copyright{} and &copy;
45057         * build-aux/update-copyright: Implement and document.
45058         * tests/test-update-copyright.sh: Test.
45059
45060 2009-08-04  Jim Meyering  <meyering@redhat.com>
45061
45062         update-copyright-tests: correctly test EOL=\r\n handling
45063         * tests/test-update-copyright.sh: Put \r at the end of some lines
45064         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45065
45066         maint.mk: make update-copyright exclusion list more configurable
45067         * top/maint.mk (update-copyright): Default to excluding COPYING,
45068         but allow an override, in case someone does want to update that file.
45069
45070         maint.mk: don't update copyright date in COPYING
45071         * top/maint.mk (update-copyright): Exclude COPYING.
45072
45073         maint.mk: add a copyright-updating rule
45074         * top/maint.mk (update-copyright): New rule.
45075         Derived from coreutils/Makefile.am.
45076
45077         update-copyright: rename some variables
45078         * build-aux/update-copyright: Rename a few variables for clarity.
45079         Tweak syntax.  List Joel E. Denny as coauthor.
45080
45081 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45082
45083         update-copyright: fix bug for 2-digit last year and add tests
45084         * build-aux/update-copyright: Fix bug.
45085         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45086         specified.
45087         * modules/update-copyright-tests: New
45088         * tests/test-update-copyright.sh: New.
45089
45090 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45091
45092         update-copyright: handle leading tabs in line prefix
45093         * build-aux/update-copyright: Count leading tabs as 8 spaces
45094         when computing margin.  This helps with the formatting of
45095         ChangeLogs, for example.
45096         Fix documentation a little.
45097
45098 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45099
45100         update-copyright: support EOL=\r\n
45101         * build-aux/update-copyright: Implement that.
45102
45103 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45104
45105         update-copyright: automatically format copyright statements
45106         * build-aux/update-copyright: Implement that.
45107         Also, be a little more predictable and safer by always failing
45108         when the full copyright format is not perfectly recognized as an
45109         unbroken whole.  Discussed at
45110         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45111         Rewrite documentation.
45112
45113 2009-08-03  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45116
45117 2009-08-02  Bruno Haible  <bruno@clisp.org>
45118
45119         Tests for module 'uname'.
45120         * modules/uname-tests: New file.
45121         * tests/test-uname.c: New file.
45122
45123         New module 'uname'.
45124         * lib/uname.c: New file.
45125         * m4/uname.m4: New file.
45126         * modules/uname: New file.
45127         * doc/posix-functions/uname.texi: Mention the new module.
45128
45129 2009-08-02  Bruno Haible  <bruno@clisp.org>
45130
45131         Tests for module 'sys_utsname'.
45132         * modules/sys_utsname-tests: New file.
45133         * tests/test-sys_utsname.c: New file.
45134
45135         New module 'sys_utsname'.
45136         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45137         * m4/sys_utsname_h.m4: New file.
45138         * modules/sys_utsname: New file.
45139         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45140
45141 2009-08-02  Bruno Haible  <bruno@clisp.org>
45142
45143         Implicitly initialize the sockets library.
45144         * lib/gethostname.c: Include sockets.h.
45145         (rpl_gethostname): Invoke gl_sockets_startup.
45146         * lib/socket.c: Include sockets.h.
45147         (rpl_socket): Invoke gl_sockets_startup.
45148         * modules/gethostname (Depends-on): Add sockets.
45149         * modules/socket (Depends-on): Likewise.
45150         * tests/test-poll.c: Don't include sockets.h.
45151         (main): Don't invoke gl_sockets_startup.
45152         * tests/test-select.c: Don't include sockets.h.
45153         (main): Don't invoke gl_sockets_startup.
45154
45155 2009-08-02  Bruno Haible  <bruno@clisp.org>
45156
45157         Allow multiple calls to gl_sockets_startup.
45158         * lib/sockets.c (initialized_sockets_version): New variable.
45159         (gl_sockets_startup): Do nothing if already called for this or a higher
45160         version.
45161         (gl_sockets_cleanup): Reset initialized_sockets_version.
45162
45163 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45164
45165         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45166         different project/version.
45167
45168 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45169             Bruno Haible  <bruno@clisp.org>
45170
45171         Tests for module 'pipe-filter-gi'.
45172         * modules/pipe-filter-gi-tests: New file.
45173         * tests/test-pipe-filter-gi1.sh: New file.
45174         * tests/test-pipe-filter-gi1.c: New file.
45175         * tests/test-pipe-filter-gi2.sh: New file.
45176         * tests/test-pipe-filter-gi2-main.c: New file.
45177         * tests/test-pipe-filter-gi2-child.c: New file.
45178
45179         New module 'pipe-filter-gi'.
45180         * lib/pipe-filter-gi.c: New file.
45181         * modules/pipe-filter-gi: New file.
45182
45183 2009-08-02  Bruno Haible  <bruno@clisp.org>
45184             Paolo Bonzini  <bonzini@gnu.org>
45185
45186         Tests for module 'pipe-filter-ii'.
45187         * modules/pipe-filter-ii-tests: New file.
45188         * tests/test-pipe-filter-ii1.sh: New file.
45189         * tests/test-pipe-filter-ii1.c: New file.
45190         * tests/test-pipe-filter-ii2.sh: New file.
45191         * tests/test-pipe-filter-ii2-main.c: New file.
45192         * tests/test-pipe-filter-ii2-child.c: New file.
45193
45194         New module 'pipe-filter-ii'.
45195         * lib/pipe-filter.h: New file.
45196         * lib/pipe-filter-ii.c: New file.
45197         * lib/pipe-filter-aux.h: New file.
45198         * modules/pipe-filter-ii: New file.
45199
45200 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45201
45202         * lib/gc-libgcrypt.c: Change copyright to FSF.
45203         * lib/gc-gnulib.c: Likewise.
45204
45205 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45206
45207         * lib/gethostname.c: Include limits.h.
45208
45209 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45210             Bruno Haible  <bruno@clisp.org>
45211
45212         Ensure HOST_NAME_MAX as part of the gethostname module.
45213         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45214         define also HOST_NAME_MAX.
45215         * tests/test-gethostname.c: Include <limits.h>.
45216         (main): Check also HOST_NAME_MAX.
45217         * doc/posix-headers/limits.texi: Document the mingw problem.
45218
45219 2009-08-02  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45222         Add comments.
45223
45224 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45225
45226         * lib/gethostname.c: Add Windows wrapper.
45227         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45228         * modules/gethostname: Depend on sys_socket & errno, for also
45229         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45230         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45231
45232 2009-07-31  Jim Meyering  <meyering@redhat.com>
45233
45234         getloadavg: fix symbol name in comment
45235         * lib/getloadavg.c: Correct a typo I introduced when adding
45236         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45237         Matt Kraai spotted the problem.
45238
45239 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45240
45241         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45242         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45243         code also if ! defined N_NAME_POINTER.
45244         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45245         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45246         but the n_name member is a 12-byte array.
45247
45248 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45249
45250         update-copyright: generalize comment handling
45251         * build-aux/update-copyright: Handle copyright statements
45252         within more comment styles.
45253         Document usage.
45254         Report any file with an external copyright holder or parse failure.
45255
45256 2009-07-29  Jim Meyering  <meyering@redhat.com>
45257
45258         mktime: correct setting of REPLACE_MKTIME
45259         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45260
45261         update-copyright: new module
45262         * modules/update-copyright: New file.
45263         * build-aux/update-copyright: New file.
45264         * MODULES.html.sh (maint+release support): Add update-copyright.
45265
45266 2009-07-27  Bruno Haible  <bruno@clisp.org>
45267
45268         Fix compilation error when <ctime> is used and mktime is replaced.
45269         * lib/time.in.h (mktime): New declaration.
45270         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45271         REPLACE_MKTIME instead of defining mktime in config.h.
45272         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45273         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45274         Reported by Ross McFarland <rwmcfa1@neces.com>.
45275
45276 2009-07-27  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45279         Reported by Matt Kraai <mkraai@beckman.com>.
45280
45281 2009-07-25  Jim Meyering  <meyering@redhat.com>
45282
45283         maint.mk: avoid warnings about missing files
45284         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45285         diagnostic when .prev-version does not exist.
45286         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45287         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45288         nonexistent cfg.mk.
45289         Suggestions from Simon Josefsson.
45290
45291 2009-07-25  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45294         defined as macros. Needed on QNX 6.4.1.
45295         Reported by Matt Kraai <mkraai@beckman.com>.
45296
45297 2009-07-23  Jim Meyering  <meyering@redhat.com>
45298
45299         maint.mk: invoke "make dist" with a working value of XZ_OPT
45300         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45301
45302 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45303
45304         Make fseeko.c compile on QNX.
45305         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45306
45307 2009-07-22  Peter Simons  <simons@cryp.to>
45308
45309         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45310         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45311         * lib/md4.h: Likewise.
45312         * lib/md5.h: Likewise.
45313         * lib/sha1.h: Likewise.
45314         * lib/sha256.h: Likewise.
45315         * lib/sha512.h: Likewise.
45316
45317         tests-sha1: don't assign literal string to 'char *' variable
45318         * tests/test-sha1.c (main): Declare locals with "const" to match
45319         attributes of the right hand side.
45320
45321 2009-07-21  Eric Blake  <ebb9@byu.net>
45322
45323         dup2: fix more mingw problems
45324         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45325         fd to itself.
45326         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45327         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45328         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45329         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45330         care of mingw bugs.
45331
45332 2009-07-21  Jim Meyering  <meyering@redhat.com>
45333
45334         vc-list-files: avoid failure when /bin/sh is dash
45335         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45336         On some Debian based systems, /bin/sh is a symlink to dash, and running
45337         this command would omit the "/" following each 'tests' prefix:
45338           dash -x build-aux/vc-list-files -C . tests
45339         That is because bash and dash work differently:
45340           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45341           bash ok
45342           dash odd
45343
45344 2009-07-21  Eric Blake  <ebb9@byu.net>
45345
45346         dup2-tests: test previous patch
45347         * modules/dup2-tests: New file.
45348         * tests/test-dup2.c: Likewise.
45349         * tests/test-open.c (main): Avoid unspecified behavior.
45350         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45351         test.
45352
45353         dup2: work around mingw and cygwin 1.5 bug
45354         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45356         * modules/unistd (Makefile.am): Substitute it.
45357         * lib/unistd.in.h (dup2): Declare the replacement.
45358         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45359         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45360         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45361         * modules/execute (Depends-on): Add dup2.
45362         * modules/fseterr (Depends-on): Likewise.
45363         * modules/pipe (Depends-on): Likewise.
45364         * modules/posix_spawn-internal (Depends-on): Likewise.
45365
45366 2009-07-21  Bruno Haible  <bruno@clisp.org>
45367
45368         * modules/.gitattributes: New file.
45369
45370 2009-07-20  Bruno Haible  <bruno@clisp.org>
45371
45372         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45373         (main): Use it.
45374
45375 2009-07-20  Eric Blake  <ebb9@byu.net>
45376
45377         test-pipe: make a bit more robust.
45378         * tests/test-pipe.c (myerr): Allow error messages regardless of
45379         what we do to stderr.
45380         (test_pipe): Rearrange to avoid deadlock.
45381         (child_main): Try a larger read, to ensure we avoided deadlock.
45382         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45383         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45384         if misused.
45385
45386 2009-07-19  Jim Meyering  <meyering@redhat.com>
45387
45388         fts: avoid false-positive cycle-detection
45389         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45390         for each new command line argument.
45391
45392 2009-07-19  Bruno Haible  <bruno@clisp.org>
45393
45394         Fix build error on mingw with the modules sys_select and unistd.
45395         * modules/acl-tests (Depends-on): Add close.
45396         * modules/binary-io-tests (Depends-on): Likewise.
45397         * modules/closein-tests (Depends-on): Likewise.
45398         * modules/flock-tests (Depends-on): Likewise.
45399         * modules/fsync-tests (Depends-on): Likewise.
45400         * modules/lseek-tests (Depends-on): Likewise.
45401         * modules/pipe-tests (Depends-on): Likewise.
45402         * modules/posix_spawn-tests (Depends-on): Likewise.
45403         * modules/posix_spawnp-tests (Depends-on): Likewise.
45404         * modules/stat-time-tests (Depends-on): Likewise.
45405         * modules/yesno-tests (Depends-on): Likewise.
45406
45407 2009-07-19  Bruno Haible  <bruno@clisp.org>
45408
45409         Unify conditionals.
45410         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45411         macros, not at the compiler macros.
45412         * lib/pipe.c: Likewise.
45413         * lib/execute.c: Likewise.
45414         * lib/spawni.c: Likewise.
45415
45416 2009-07-19  Bruno Haible  <bruno@clisp.org>
45417
45418         Fix handling of closed stdin/stdout/stderr on mingw.
45419         * lib/w32spawn.h: Include unistd.h.
45420         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45421         file descriptor with O_NOINHERIT flag.
45422         (fd_safer_noinherit): New function, based on fd-safer.c.
45423         (dup_safer_noinherit): New function, based on dup-safer.c.
45424         (undup_safer_noinherit): New function.
45425         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45426         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45427         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45428         instead of fd_safer.
45429         * tests/test-pipe.c: Include <windows.h>.
45430         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45431         result.
45432
45433         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45434         from main.
45435         (test_pipe): Pass an extra argument for disambiguation.
45436         (main): Invoke parent_main or child_main.
45437
45438         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45439         consistently.
45440
45441 2009-07-18  Eric Blake  <ebb9@byu.net>
45442
45443         test-pipe: fix mingw build
45444         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45445
45446 2009-07-18  Bruno Haible  <bruno@clisp.org>
45447
45448         * modules/pipe-tests (Makefile.am): Fix typo.
45449
45450 2009-07-18  Eric Blake  <ebb9@byu.net>
45451
45452         error: fix mingw build
45453         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45454         Reported by Bruno Haible.
45455
45456         error: avoid undefined use of stdout
45457         * lib/error.c (error, error_at_line): Check that fd 1 is open
45458         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45459         is handling faults and the close_stdout module wants to report the
45460         detection of closed stdout as an error.
45461
45462 2009-07-17  Eric Blake  <ebb9@byu.net>
45463
45464         pipe: be robust in face of closed fds
45465         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45466         should cause child to misbehave.
45467         * modules/pipe-tests: New module.
45468         * tests/test-pipe.c: New file.
45469         * tests/test-pipe.sh: New file.
45470         Reported by Akim Demaille.
45471
45472 2009-07-14  Bruno Haible  <bruno@clisp.org>
45473
45474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45475         Reported by anonymous kc.
45476
45477 2009-07-07  Jim Meyering  <meyering@redhat.com>
45478
45479         maint.mk: don't look for translatable strings in *.m4 or *.mk
45480         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45481         when searching for translatable strings.
45482
45483 2009-07-05  Jim Meyering  <meyering@redhat.com>
45484
45485         remove superfluous parentheses in STREQ definition
45486         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45487         * lib/getugroups.c (STREQ): Likewise.
45488         * lib/fnmatch.c (STREQ): Likewise.
45489         Spotted by Bruno Haible.
45490
45491 2009-07-04  Jim Meyering  <meyering@redhat.com>
45492
45493         argv-iter: new module
45494         * MODULES.html.sh: Add argv-iter.
45495         * lib/argv-iter.c, lib/argv-iter.h: New files.
45496         * modules/argv-iter: New file.
45497         * modules/argv-iter-tests: New file.
45498         * tests/test-argv-iter.c: Test it.
45499
45500 2009-07-04  Bruno Haible  <bruno@clisp.org>
45501
45502         Fix assertion.
45503         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45504         contains more exact copies of a given entry than file2, leave the extra
45505         copies unpaired rather than aborting.
45506         Reported by Eric Blake.
45507
45508 2009-07-02  Bruno Haible  <bruno@clisp.org>
45509
45510         Speedup git-merge-changelog for git cherry-pick.
45511         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45512         (entries_mapping_get): New function, extracted from compute_mapping.
45513         (entries_mapping_reverse_get): New function.
45514         (compute_mapping): Add a 'full' argument. Return the result in a
45515         'struct entries_mapping'.
45516         (main): Update. Access the mappings through entries_mapping_get.
45517         Reported by Eric Blake.
45518
45519 2009-07-02  Bruno Haible  <bruno@clisp.org>
45520
45521         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45522         best_i.
45523
45524 2009-07-02  Bruno Haible  <bruno@clisp.org>
45525
45526         Speed up approximate search for matching ChangeLog entries.
45527         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45528         argument. Call fstrcmp_bounded instead of fstrcmp.
45529         (compute_mapping, try_split_merged_entry, main): Update callers.
45530
45531 2009-07-02  Bruno Haible  <bruno@clisp.org>
45532
45533         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45534
45535 2009-06-30  Bruno Haible  <bruno@clisp.org>
45536
45537         Reduce the number of uc_is_cased calls.
45538         * lib/unicase.h (casing_suffix_context_t): Add
45539         'first_char_except_ignorable' field.
45540         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45541         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45542         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45543         Update initializer.
45544         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45545         case-ignorable characters.
45546         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45547         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45548         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45549         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45550         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45551
45552 2009-06-30  Bruno Haible  <bruno@clisp.org>
45553
45554         Tests for module 'unicase/ignorable'.
45555         * modules/unicase/ignorable-tests: New file.
45556         * tests/unicase/test-ignorable.c: New file, generated by
45557         gen-uni-tables.
45558
45559         Tests for module 'unicase/cased'.
45560         * modules/unicase/cased-tests: New file.
45561         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45562         * tests/unicase/test-predicate-part1.h: New file, derived from
45563         tests/unictype/test-predicate-part1.h.
45564         * tests/unicase/test-predicate-part2.h: New file, same as
45565         tests/unictype/test-predicate-part2.h.
45566
45567         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45568         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45569         (output_casing_properties): New function.
45570         (main): Call it.
45571         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45572         * lib/unicase/cased.c: Include unictype/bitmap.h.
45573         (uc_is_cased): Define through a bitmap lookup.
45574         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45575         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45576         (uc_is_case_ignorable): Define through a bitmap lookup.
45577         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45578         lib/unictype/bitmap.h.
45579         (Depends-on): Add inline. Clean up.
45580         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45581         lib/unictype/bitmap.h.
45582         (Depends-on): Add inline. Clean up.
45583         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45584         recognition.
45585         * tests/unicase/test-u16-tolower.c (main): Likewise.
45586         * tests/unicase/test-u32-tolower.c (main): Likewise.
45587
45588 2009-06-30  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45591         * lib/unicase/u16-casemap.c: Likewise.
45592         * lib/unicase/u32-casemap.c: Likewise.
45593
45594 2009-06-29  Bruno Haible  <bruno@clisp.org>
45595
45596         Define u32_casefold as a wrapper around u32_ct_casefold.
45597         * lib/unicase/u32-casefold.c: Update.
45598         * modules/unicase/u32-casefold (Depends-on): Add
45599         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45600         unicase/empty-suffix-context. Clean up.
45601
45602         Define u16_casefold as a wrapper around u16_ct_casefold.
45603         * lib/unicase/u16-casefold.c: Update.
45604         * modules/unicase/u16-casefold (Depends-on): Add
45605         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45606         unicase/empty-suffix-context. Clean up.
45607
45608         Define u8_casefold as a wrapper around u8_ct_casefold.
45609         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45610         * lib/unicase/u8-casefold.c: Update.
45611         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45612         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45613
45614         Define u32_totitle as a wrapper around u32_ct_totitle.
45615         * lib/unicase/u32-totitle.c: Update.
45616         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45617         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45618
45619         Define u16_totitle as a wrapper around u16_ct_totitle.
45620         * lib/unicase/u16-totitle.c: Update.
45621         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45622         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45623
45624         Define u8_totitle as a wrapper around u8_ct_totitle.
45625         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45626         functions.
45627         (FUNC): Delegate to U_CT_TOTITLE.
45628         * lib/unicase/u8-totitle.c: Update.
45629         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45630         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45631
45632         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45633         invocation.
45634         * modules/unicase/u32-tolower (Depends-on): Add
45635         unicase/empty-prefix-context, unicase/empty-suffix-context.
45636
45637         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45638         invocation.
45639         * modules/unicase/u16-tolower (Depends-on): Add
45640         unicase/empty-prefix-context, unicase/empty-suffix-context.
45641
45642         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45643         * modules/unicase/u8-tolower (Depends-on): Add
45644         unicase/empty-prefix-context, unicase/empty-suffix-context.
45645
45646         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45647         invocation.
45648         * modules/unicase/u32-toupper (Depends-on): Add
45649         unicase/empty-prefix-context, unicase/empty-suffix-context.
45650
45651         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45652         invocation.
45653         * modules/unicase/u16-toupper (Depends-on): Add
45654         unicase/empty-prefix-context, unicase/empty-suffix-context.
45655
45656         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45657         * modules/unicase/u8-toupper (Depends-on): Add
45658         unicase/empty-prefix-context, unicase/empty-suffix-context.
45659
45660         New module 'unicase/u32-ct-casefold'.
45661         * lib/unicase/u32-ct-casefold.c: New file.
45662         * modules/unicase/u32-ct-casefold: New file.
45663
45664         New module 'unicase/u16-ct-casefold'.
45665         * lib/unicase/u16-ct-casefold.c: New file.
45666         * modules/unicase/u16-ct-casefold: New file.
45667
45668         New module 'unicase/u8-ct-casefold'.
45669         * lib/unicase/u8-ct-casefold.c: New file.
45670         * lib/unicase/u-ct-casefold.h: New file, derived from
45671         lib/unicase/u-casefold.h.
45672         * modules/unicase/u8-ct-casefold: New file.
45673
45674         New module 'unicase/u32-ct-totitle'.
45675         * lib/unicase/u32-ct-totitle.c: New file.
45676         * modules/unicase/u32-ct-totitle: New file.
45677
45678         New module 'unicase/u16-ct-totitle'.
45679         * lib/unicase/u16-ct-totitle.c: New file.
45680         * modules/unicase/u16-ct-totitle: New file.
45681
45682         New module 'unicase/u8-ct-totitle'.
45683         * lib/unicase/u8-ct-totitle.c: New file.
45684         * lib/unicase/u-ct-totitle.h: New file, derived from
45685         lib/unicase/u-totitle.h.
45686         * modules/unicase/u8-ct-totitle: New file.
45687
45688         New module 'unicase/u32-ct-tolower'.
45689         * lib/unicase/u32-ct-tolower.c: New file.
45690         * modules/unicase/u32-ct-tolower: New file.
45691
45692         New module 'unicase/u16-ct-tolower'.
45693         * lib/unicase/u16-ct-tolower.c: New file.
45694         * modules/unicase/u16-ct-tolower: New file.
45695
45696         New module 'unicase/u8-ct-tolower'.
45697         * lib/unicase/u8-ct-tolower.c: New file.
45698         * modules/unicase/u8-ct-tolower: New file.
45699
45700         New module 'unicase/u32-ct-toupper'.
45701         * lib/unicase/u32-ct-toupper.c: New file.
45702         * modules/unicase/u32-ct-toupper: New file.
45703
45704         New module 'unicase/u16-ct-toupper'.
45705         * lib/unicase/u16-ct-toupper.c: New file.
45706         * modules/unicase/u16-ct-toupper: New file.
45707
45708         New module 'unicase/u8-ct-toupper'.
45709         * lib/unicase/u8-ct-toupper.c: New file.
45710         * modules/unicase/u8-ct-toupper: New file.
45711
45712         Add context arguments to u*_casemap functions.
45713         * lib/unicase/unicasemap.h: Include unicase.h.
45714         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45715         suffix_context arguments.
45716         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45717         functions.
45718         (FUNC): Add prefix_context and suffix_context arguments. Use
45719         uc_is_cased and uc_is_case_ignorable.
45720         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45721         * lib/unicase/u16-casemap.c: Likewise.
45722         * lib/unicase/u32-casemap.c: Likewise.
45723         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45724         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45725         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45726         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45727         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45728         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45729
45730         New module 'unicase/u32-suffix-context'.
45731         * lib/unicase/u32-suffix-context.c: New file.
45732         * modules/unicase/u32-suffix-context: New file.
45733
45734         New module 'unicase/u16-suffix-context'.
45735         * lib/unicase/u16-suffix-context.c: New file.
45736         * modules/unicase/u16-suffix-context: New file.
45737
45738         New module 'unicase/u8-suffix-context'.
45739         * lib/unicase/u8-suffix-context.c: New file.
45740         * lib/unicase/u-suffix-context.h: New file.
45741         * modules/unicase/u8-suffix-context: New file.
45742
45743         New module 'unicase/empty-suffix-context'.
45744         * lib/unicase/empty-suffix-context.c: New file.
45745         * modules/unicase/empty-suffix-context: New file.
45746
45747         New module 'unicase/u32-prefix-context'.
45748         * lib/unicase/u32-prefix-context.c: New file.
45749         * modules/unicase/u32-prefix-context: New file.
45750
45751         New module 'unicase/u16-prefix-context'.
45752         * lib/unicase/u16-prefix-context.c: New file.
45753         * modules/unicase/u16-prefix-context: New file.
45754
45755         New module 'unicase/u8-prefix-context'.
45756         * lib/unicase/u8-prefix-context.c: New file.
45757         * lib/unicase/u-prefix-context.h: New file.
45758         * lib/unicase/context.h: New file.
45759         * modules/unicase/u8-prefix-context: New file.
45760
45761         New module 'unicase/empty-prefix-context'.
45762         * lib/unicase/empty-prefix-context.c: New file.
45763         * modules/unicase/empty-prefix-context: New file.
45764
45765         New module 'unicase/ignorable'.
45766         * lib/unicase/ignorable.c: New file.
45767         * modules/unicase/ignorable: New file.
45768
45769         New module 'unicase/cased'.
45770         * lib/unicase/caseprop.h: New file.
45771         * lib/unicase/cased.c: New file.
45772         * modules/unicase/cased: New file.
45773
45774         New functions for case mapping of substrings.
45775         * lib/unicase.h (casing_prefix_context_t): New type.
45776         (unicase_empty_prefix_context): New variable.
45777         (u8_casing_prefix_context, u16_casing_prefix_context,
45778         u32_casing_prefix_context, u8_casing_prefixes_context,
45779         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45780         declarations.
45781         (casing_suffix_context_t): New type.
45782         (unicase_empty_suffix_context): New variable.
45783         (u8_casing_suffix_context, u16_casing_suffix_context,
45784         u32_casing_suffix_context, u8_casing_suffixes_context,
45785         u16_casing_suffixes_context, u32_casing_suffixes_context,
45786         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45787         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45788         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45789         declarations.
45790
45791 2009-06-28  Jim Meyering  <meyering@redhat.com>
45792
45793         boostrap: indent only with spaces
45794         * build-aux/bootstrap: Indent only with spaces, never TABs.
45795
45796         bootstrap: split long lines
45797         * build-aux/bootstrap: Keep line length < 80.
45798
45799         bootstrap: sync from coreutils
45800         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45801         just as autoreconf does.  Verify a list of prerequisite
45802         package-name,version-number pairs if defined in bootstrap.conf.
45803         Refer to README-prereq, if prerequisites are not satisfied.
45804
45805 2009-06-27  Eric Blake  <ebb9@byu.net>
45806
45807         tests: add test for bogus NULL definition
45808         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45809         * tests/test-stdlib.c: Likewise.
45810         * tests/test-string.c: Likewise.
45811         * tests/test-locale.c: Likewise.
45812         * tests/test-unistd.c: Likewise.
45813         * modules/stdio-tests (Depends-on): Add verify.
45814         * modules/stdlib-tests (Depends-on): Likewise.
45815         * modules/string-tests (Depends-on): Likewise.
45816         * modules/locale-tests (Depends-on): Likewise.
45817         * modules/unistd-tests (Depends-on): Likewise.
45818
45819 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45820
45821         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45822         self-explaining comment.
45823         * m4/selinux-selinux-h: Update serial.
45824         (gl_LIBSELINUX): New macro, adding a warning for missing development
45825         packages to code extracted from...
45826         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45827         Add warning for missing development packages here, too.
45828
45829 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45830
45831         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45832
45833 2009-06-25  Eric Blake  <ebb9@byu.net>
45834
45835         version-etc: fix regression
45836         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45837         gcc.
45838         (version_etc): Use it, to catch bugs with trailing NULL.
45839         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45840         (version_etc_va): Fix logic bug.
45841         * modules/version-etc-tests: Add test.
45842         * tests/test-version-etc.c: New file.
45843         * tests/test-version-etc.sh: Likewise.
45844
45845 2009-06-25  Sam Steingold  <sds@gnu.org>
45846
45847         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45848         mbtowc declaration.
45849
45850 2009-06-25  Eric Blake  <ebb9@byu.net>
45851
45852         fpurge: migrate into <stdio.h>
45853         * lib/fpurge.h: Delete...
45854         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45855         * lib/fpurge.c (fpurge): Change declaring header.
45856         * modules/fpurge (Files): Drop deleted file.
45857         (Depends-on): Add stdio.
45858         (configure.ac): Set witness.
45859         * modules/stdio (Makefile.am): Support fpurge macros.
45860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45861         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45862         * lib/fflush.c: Update client.
45863         * tests/test-fpurge.c: Likewise.
45864         * NEWS: Mention the change.
45865
45866 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45867
45868         * lib/argp-version-etc.c (program_authors): Add const
45869         qualifier.
45870         * lib/version-etc.c: Fix typos in the comments.
45871         * modules/argp-version-etc: Depends on version-etc.
45872
45873 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45874
45875         argp-version-etc: new module.
45876
45877         * lib/argp-version-etc.c: New file.
45878         * lib/argp-version-etc.h: New file.
45879         * modules/argp-version-etc: New file.
45880         * modules/argp-version-etc-tests: New file.
45881         * tests/test-argp-version-etc.c: New test.
45882         * tests/test-argp-version-etc-1.sh: New test.
45883
45884 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45885
45886         Provide additional interfaces and documentation for version-etc
45887         module.
45888
45889         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45890         interfaces.
45891         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45892         prototypes.
45893
45894 2009-06-24  Bruno Haible  <bruno@clisp.org>
45895
45896         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45897         HAVE_LIB${NAME} macro.
45898         Reported by Sam Steingold <sds@gnu.org>.
45899
45900 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45901
45902         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45903         needed.
45904
45905 2009-06-21  Bruno Haible  <bruno@clisp.org>
45906
45907         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45908         work.
45909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45910         together with LIB${NAME}, LTLIB${NAME}.
45911         Reported by Sam Steingold <sds@gnu.org>.
45912
45913 2009-06-20  Jim Meyering  <meyering@redhat.com>
45914
45915         tests: make sc_require_test_exit_idiom more generic
45916         * top/maint.mk (Exit_witness_file): New overridable variable.
45917         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45918         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45919
45920 2009-06-19  Jim Meyering  <meyering@redhat.com>
45921
45922         hash: reverse order of src/dst parameters in an internal interface
45923         * lib/hash.c (transfer_entries): Reverse order of parameters to
45924         put DST before SRC.  Adjust callers.
45925
45926         tests: test-hash: avoid wholesale duplication
45927         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45928         Instead, use a loop and add a single conditional.
45929
45930         tests: test-hash: allow seed selection via a command line argument
45931         * tests/test-hash.c (get_seed): New function.
45932         (main): Use it.
45933
45934 2009-06-19  Eric Blake  <ebb9@byu.net>
45935
45936         hash: avoid memory leak on allocation failure
45937         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45938         failure.  Factor repeated algorithm...
45939         (transfer_entries): ...into new helper routine.
45940         (hash_delete): React to hash_rehash return value.
45941
45942         hash: reduce memory pressure in hash_rehash no-op case
45943         * lib/hash.c (next_prime): Avoid overflow.
45944         (hash_initialize): Factor bucket size computation...
45945         (compute_bucket_size): ...into new helper function.
45946         (hash_rehash): Use new function and open coding to reduce memory
45947         pressure, and avoid a memory leak in USE_OBSTACK code.
45948         Reported by Jim Meyering.
45949
45950 2009-06-18  Eric Blake  <ebb9@byu.net>
45951
45952         hash: make rotation more obvious
45953         * modules/hash (Depends-on): Add bitrotate and stdint.
45954         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45955         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45956         (SIZE_MAX): Rely on headers for definition.
45957         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45958         (raw_hasher): Use rotr_sz.
45959         Suggested by Jim Meyering.
45960
45961         hash: fix memory leak in last patch
45962         * lib/hash.c (hash_rehash): Avoid memory leak.
45963
45964         hash: avoid no-op rehashing
45965         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45966
45967         hash: provide default callback functions
45968         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45969         (hash_initialize): Use them as defaults.
45970         * tests/test-hash.c (main): Test this.
45971
45972         hash: minor optimization
45973         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45974         when possible.
45975         (hash_initialize): Document this promise.
45976         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45977         * tests/test-hash.c (hash_compare_strings): Test this.
45978
45979 2009-06-18  Bruno Haible  <bruno@clisp.org>
45980
45981         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45982         going to be replaced anyway.
45983
45984 2009-06-18  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45987         in one place.
45988         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45989         be replaced anyway.
45990
45991 2009-06-18  Eric Blake  <ebb9@byu.net>
45992
45993         hash: check for resize before insertion
45994         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45995         threshold before insertion, so that a pathological hash_rehash
45996         that fills every bucket can still trigger another rehash.
45997
45998 2009-06-18  Jim Meyering  <meyering@redhat.com>
45999
46000         hash-tests: add a loop around the small tests
46001         * tests/test-hash.c (main): Repeat small tests with selected
46002         small initial table sizes.
46003
46004 2009-06-17  Eric Blake  <ebb9@byu.net>
46005
46006         hash: minor cleanups
46007         * lib/hash.h (hash_entry): Make opaque, by moving...
46008         * lib/hash.c (hash_entry): ...here.
46009         (hash_insert): Clarify restrictions on what can be inserted.
46010         (hash_get_next): Clarify when it is safe to remove an element
46011         during traversal.
46012         (check_tuning): Skip verification when tuning is known safe.
46013         (hash_initialize): Clarify restrictions on tuning.
46014
46015 2009-06-17  Jim Meyering  <jim@meyering.net>
46016         and Eric Blake  <ebb9@byu.net>
46017
46018         hash-tests: new module
46019         * modules/hash-tests: New file.
46020         * tests/test-hash.c: New file.
46021
46022 2009-06-17  Eric Blake  <ebb9@byu.net>
46023
46024         strstr-simple: document new module
46025         * MODULES.html.sh: Document new module.
46026
46027         strstr, strcasestr: replace on platforms with broken memchr
46028         * modules/strstr: Split into...
46029         * modules/strstr-simple: ...new module that does not care about
46030         performance, but does care about glibc bug.
46031         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46032         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46033         if platform memchr is broken, per Debian bug 521737.
46034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46035         memchr.
46036         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46037         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46038         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46039         * modules/mountlist (Depends-on): Add strstr-simple.
46040         * modules/gen-uni-tables (Depends-on): Likewise.
46041         * modules/argz (Depends-on): Add strstr.
46042
46043 2009-06-17  Bruno Haible  <bruno@clisp.org>
46044
46045         * modules/posix_spawn-internal (Depends-on): Add errno.
46046
46047 2009-06-17  Bruno Haible  <bruno@clisp.org>
46048
46049         Define missing ESTALE on Interix 3.5.
46050         * lib/errno.in.h (ESTALE): Assign a value if missing.
46051         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46052         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46053         missing.
46054         * doc/posix-headers/errno.texi: Mention the Interix bug.
46055         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46056
46057 2009-06-15  Eric Blake  <ebb9@byu.net>
46058
46059         memchr, memchr2: add valgrind exception
46060         * lib/memchr.valgrind: New file.
46061         * lib/memchr2.valgrind: New file.
46062         * modules/memchr (Files): Distribute valgrind file.
46063         * modules/memchr2 (Files): Likewise.
46064
46065         docs: memchr is no longer obsolete
46066         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46067         * lib/string.in.h (memchr): Simplify logic.
46068
46069 2009-06-14  Jim Meyering  <meyering@redhat.com>
46070
46071         link-follow: fix the "checking..." message to not mention trailing slash
46072         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46073         never considered trailing slashes.
46074
46075 2009-06-14  Bruno Haible  <bruno@clisp.org>
46076
46077         * m4/memchr.m4: Mention also the bug on IA-64.
46078         * doc/posix-functions/memchr.texi: Likewise.
46079
46080 2009-06-12  Eric Blake  <ebb9@byu.net>
46081
46082         memchr: detect broken x86_64 and alpha implementations
46083         * modules/memchr-tests (Depends-on): Move mmap detection...
46084         * modules/memchr (Depends-on): ...here.
46085         (configure.ac): Set indicator.
46086         * lib/string.in.h (memchr): Declare replacement.
46087         * modules/string (Makefile.am): Trigger replacement.
46088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46089         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46090         bugs.
46091         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46092         * modules/getpagesize (License): Relax license.
46093
46094 2009-06-11  Bruno Haible  <bruno@clisp.org>
46095
46096         * lib/idpriv.h: Add more references.
46097
46098 2009-06-08  Bruno Haible  <bruno@clisp.org>
46099
46100         Tests for module 'idpriv-droptemp'.
46101         * modules/idpriv-droptemp-tests: New file.
46102         * tests/test-idpriv-droptemp.sh: New file.
46103         * tests/test-idpriv-droptemp.su.sh: New file.
46104         * tests/test-idpriv-droptemp.c: New file.
46105
46106         New module 'idpriv-droptemp'.
46107         * lib/idpriv-droptemp.c: New file.
46108         * modules/idpriv-droptemp: New file.
46109
46110 2009-06-08  Bruno Haible  <bruno@clisp.org>
46111
46112         Tests for module 'idpriv-drop'.
46113         * modules/idpriv-drop-tests: New file.
46114         * tests/test-idpriv-drop.sh: New file.
46115         * tests/test-idpriv-drop.su.sh: New file.
46116         * tests/test-idpriv-drop.c: New file.
46117
46118         New module 'idpriv-drop'.
46119         * lib/idpriv.h: New file.
46120         * lib-idpriv-drop.c: New file.
46121         * m4/idpriv.m4: New file.
46122         * modules/idpriv-drop: New file.
46123
46124 2009-06-08  Bruno Haible  <bruno@clisp.org>
46125
46126         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46127         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46128         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46129         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46130         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46131         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46132         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46133
46134 2009-06-08  Eric Blake  <ebb9@byu.net>
46135
46136         test-strstr: use memory fence, when possible
46137         * tests/test-strstr.c (main): Use memory fence, in order to be
46138         more likely to trigger Debian bug 521737.
46139         * modules/strstr-tests (Files): Pull in additional files.
46140
46141         memchr: no longer obsolete, for wider field testing
46142         * modules/memchr (Status, Notice): Delete, this module is no
46143         longer obsolete.
46144         * modules/vasnprintf (Depends-on): Add memchr.
46145
46146 2009-06-07  Jim Meyering  <meyering@redhat.com>
46147
46148         hash: declare some functions with the warn_unused_result attribute
46149         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46150
46151 2009-06-07  Bruno Haible  <bruno@clisp.org>
46152
46153         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46154         Reported by Eric Blake.
46155
46156 2009-06-06  Eric Blake  <ebb9@byu.net>
46157
46158         test-alignof: fix typo with long double
46159         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46160         compiler error.
46161
46162 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46163
46164         Escape non-texinfo { and }s.
46165         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46166         markup error.
46167
46168 2009-06-04  Jim Meyering  <meyering@redhat.com>
46169
46170         gitlog-to-changelog: don't infloop on an empty commit log
46171         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46172         Reported by Boris Petersen <transacid@centerim.org>.
46173
46174 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46175
46176         version-etc: extend for packagers
46177         Add three new configure options, intended for packagers:
46178           --with-packager="packager name"
46179           --with-packager-version="packager-specific version"
46180           --with-packager-bug-reports="packager bug reporting"
46181         An example with coreutils:
46182           $ ./configure \
46183             --with-packager=Gentoo \
46184             --with-packager-bug-report=http://bugs.gentoo.org/ \
46185             --with-packager-version="patchset 1.6"
46186           $ ./src/ls --version | head -n2
46187           ls (GNU coreutils) 7.1-dirty
46188           Packaged by Gentoo (patchset 1.6)
46189         Note that the bug reporting info via --help doesn't show up because
46190         coreutils uses its own custom emit_bug_reporting_address() implementation
46191         in src/system.h.  If it didn't, it'd look like:
46192           $ ./src/ls --help | tail -n4
46193           Report bugs to <bug-coreutils@gnu.org>.
46194           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46195           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46196           General help using GNU software: <http://www.gnu.org/gethelp/>.
46197         * lib/version-etc.c: Print new information, if provided.
46198         * m4/version-etc.m4: New file.
46199         * modules/version-etc (Files): Add m4/version-etc.m4.
46200         (configure.ac): Add gl_VERSION_ETC.
46201
46202 2009-05-31  Bruno Haible  <bruno@clisp.org>
46203
46204         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46205         and 'int64_t'.
46206         * modules/alignof-tests (Dependencies): Add stdint.
46207         Reported by Eric Blake.
46208
46209 2009-05-31  Bruno Haible  <bruno@clisp.org>
46210
46211         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46212         restriction due to compiler bugs.
46213         Reported by Eric Blake.
46214
46215 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46216             Bruno Haible  <bruno@clisp.org>
46217
46218         Fix test-alignof failure.
46219         * lib/alignof.h (alignof_slot): New macro.
46220         (alignof_type): New macro, with the same semantics as the previous
46221         'alignof'.
46222         (alignof): Alias to alignof_slot.
46223         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46224         check that the results are usable as constant expressions.
46225
46226 2009-05-31  Bruno Haible  <bruno@clisp.org>
46227
46228         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46229         * tests/test-memchr.c (main): Check that memchr does not read past the
46230         first occurrence of the byte.
46231         * tests/test-strstr.c (main): Update comment.
46232         Suggested by Eric Blake.
46233
46234 2009-05-30  Bruno Haible  <bruno@clisp.org>
46235
46236         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46237         detail how to use dumpbin.
46238         Reported by David Byron <dbyron@dbyron.com>.
46239
46240 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46241
46242         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46243
46244 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46245
46246         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46247
46248 2009-05-28  Bruno Haible  <bruno@clisp.org>
46249
46250         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46251         build-aux/ files.
46252
46253 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46254
46255         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46256
46257 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46258
46259         * gnulib-tool (sed_transform_main_lib_file)
46260         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46261         regexps.
46262
46263 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46264
46265         * tests/test-strstr.c: Add another self-test.
46266         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46267         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46268
46269 2009-05-23  Bruno Haible  <bruno@clisp.org>
46270
46271         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46272         change.
46273
46274 2009-05-21  Bruno Haible  <bruno@clisp.org>
46275
46276         Simplify use of mode_t varargs.
46277         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46278         uses 'mode_t' or 'int'.
46279         * lib/openat.c (openat): Likewise.
46280         * lib/open-safer.c (open_safer): Likewise.
46281         * m4/mode_t.m4: New file.
46282         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46283         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46284         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46285         * modules/open (Files): Add m4/mode_t.m4.
46286         * modules/openat (Files): Likewise.
46287         * modules/fcntl-safer (Files): Likewise.
46288         Suggested by Eric Blake.
46289
46290 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46291
46292         * doc/glibc-functions/fallocate.texi: New file.
46293         * doc/gnulib.texi: Include it.
46294
46295 2009-05-21  Eric Blake  <ebb9@byu.net>
46296             Bruno Haible  <bruno@clisp.org>
46297
46298         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46299         invocations.
46300         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46301
46302 2009-05-21  Eric Blake  <ebb9@byu.net>
46303             Bruno Haible  <bruno@clisp.org>
46304
46305         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46306         include_next. Fix of 2008-11-20 commit.
46307         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46308         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46309         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46310         NEXT_MATH_H.
46311         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46312         instead of NEXT_MATH_H.
46313
46314 2009-05-21  Bruno Haible  <bruno@clisp.org>
46315
46316         Avoid redefinition warnings for SIZE_MAX.
46317         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46318         Reported by Simon Josefsson.
46319
46320 2009-05-21  Bruno Haible  <bruno@clisp.org>
46321
46322         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46323         AC_CACHE_VAL.
46324
46325 2009-05-20  Bruno Haible  <bruno@clisp.org>
46326
46327         Make zeroptr.h work on mingw.
46328         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46329         mprotect.
46330         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46331         * modules/memchr2-tests (configure.ac): Likewise.
46332         * modules/memcmp-tests (configure.ac): Likewise.
46333         * modules/memmem-tests (configure.ac): Likewise.
46334         * modules/memrchr-tests (configure.ac): Likewise.
46335         Reported by Simon Josefsson.
46336
46337 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46338
46339         * tests/test-glob.c: Include string.h for strcmp prototype.
46340
46341 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46342
46343         * modules/getdelim (Depends-on): Add explicit stdint, although it
46344         was implicitly already pulled in via realloc-posix.
46345         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46346
46347 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46348
46349         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46350         G. Christensen" <tgc@jupiterrise.com>.
46351         * m4/sys_socket_h.m4: Check for sa_family_t.
46352         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46353         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46354         * tests/test-sys_socket.c: Check that sa_family_t works.
46355
46356 2009-05-18  Eric Blake  <ebb9@byu.net>
46357
46358         maint.mk: allow gnulib_dir in VPATH build
46359         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46360
46361 2009-05-15  Jim Meyering  <meyering@redhat.com>
46362
46363         maint.mk: Give gnulib_dir a default definition.
46364         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46365         Thus, most packages no longer need to specify this variable in cfg.mk
46366
46367 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46368
46369         rename.m4: fix typos that would make non-mingw cross-configure fail
46370         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46371
46372 2009-05-13  Eric Blake  <ebb9@byu.net>
46373
46374         mmap-anon: avoid out-of-order autoconf expansion
46375         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46376         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46377         * modules/memchr-tests (Depends-on): Add extensions.
46378         * modules/memchr2-tests (Depends-on): Add extensions.
46379         * modules/memcmp-tests (Depends-on): Add extensions.
46380         * modules/memmem-tests (Depends-on): Add extensions.
46381         * modules/memrchr-tests (Depends-on): Add extensions.
46382
46383 2009-05-13  Bruno Haible  <bruno@clisp.org>
46384
46385         Make some tests ISO C 99 compliant.
46386         * tests/zerosize-ptr.h: New file.
46387         * tests/test-memchr.c: Include zerosize-ptr.h.
46388         (main): Use a zero-size object pointer instead of NULL.
46389         * tests/test-memchr2.c: Include zerosize-ptr.h.
46390         (main): Use a zero-size object pointer instead of NULL.
46391         * tests/test-memcmp.c: Include zerosize-ptr.h.
46392         (main): Use a zero-size object pointer instead of NULL.
46393         * tests/test-memmem.c: Include zerosize-ptr.h.
46394         (main): Use a zero-size object pointer instead of NULL.
46395         * tests/test-memrchr.c: Include zerosize-ptr.h.
46396         (main): Use a zero-size object pointer instead of NULL.
46397         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46398         m4/mmap-anon.m4.
46399         (Depends-on): Add getpagesize.
46400         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46401         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46402         m4/mmap-anon.m4.
46403         (Depends-on): Add getpagesize.
46404         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46405         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46406         m4/mmap-anon.m4.
46407         (Depends-on): Add getpagesize.
46408         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46409         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46410         m4/mmap-anon.m4.
46411         (Depends-on): Add getpagesize.
46412         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46413         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46414         m4/mmap-anon.m4.
46415         (Depends-on): Add getpagesize.
46416         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46417
46418 2009-05-12  Bruno Haible  <bruno@clisp.org>
46419
46420         Tests for module 'alignof'.
46421         * modules/alignof-tests: New file.
46422         * tests/test-alignof.c: New file.
46423
46424 2009-05-12  Bruno Haible  <bruno@clisp.org>
46425
46426         Fix alignof macro.
46427         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46428         vendor compilers that are always correct.
46429
46430 2009-05-12  Bruno Haible  <bruno@clisp.org>
46431
46432         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46433         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46434         not whether its fully works.
46435
46436 2009-05-12  Bruno Haible  <bruno@clisp.org>
46437
46438         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46439
46440 2009-05-12  Jim Meyering  <meyering@redhat.com>
46441
46442         * top/maint.mk: Adjust backslash alignment.
46443
46444 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46445
46446         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46447
46448 2009-05-11  Eric Blake  <ebb9@byu.net>
46449
46450         argp: avoid undefined behavior
46451         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46452         macros.
46453
46454 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46455
46456         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46457         user.name to prevent git commit from complaining.
46458
46459 2009-05-10  Bruno Haible  <bruno@clisp.org>
46460
46461         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46462         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46463         it rewrites every file name only once.
46464         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46465
46466 2009-05-08  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46469         instead of 'max'.
46470
46471 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46472
46473         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46474         sockaddr_storage test.
46475
46476 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46477
46478         * modules/sys_socket (Makefile.am): Substitute
46479         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46480         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46481         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46482         * tests/test-sys_socket.c: Check sockaddr_storage.
46483
46484 2009-05-08  Bruno Haible  <bruno@clisp.org>
46485
46486         New module 'alignof'.
46487         * lib/alignof.h: New file.
46488         * modules/alignof: New file.
46489
46490 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46491             Bruno Haible  <bruno@clisp.org>
46492
46493         Fix test-file-has-acl on FreeBSD.
46494         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46495         mask is implicitly added.
46496         * tests/test-file-has-acl.c: Include <signal.h>.
46497         (main): Terminate the test after 5 seconds.
46498         * modules/acl-tests (configure.ac): Check for alarm function.
46499
46500 2009-05-04  Bruno Haible  <bruno@clisp.org>
46501
46502         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46504         * modules/errno (configure.ac): Drop AC_REQUIRE.
46505         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46506         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46507
46508 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46509
46510         * modules/glob-tests: New module.
46511         * tests/test-glob.c: Add.
46512
46513 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46514
46515         * modules/fnmatch-tests: New module.
46516         * tests/test-fnmatch.c: Add.
46517
46518 2009-05-04  Eric Blake  <ebb9@byu.net>
46519
46520         maint: make the new no-submodule-changes rule VPATH-safe
46521         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46522
46523 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46524             Bruno Haible  <bruno@clisp.org>
46525
46526         acl: Fix infinite loop on FreeBSD.
46527         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46528         of return value from acl_get_entry.
46529         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46530         Likewise.
46531
46532 2009-05-03  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/acl-internal.h (acl_entries): Clarify return value.
46535         * lib/acl_entries.c (acl_entries): Likewise.
46536
46537 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46538
46539         Bug fix in acl module.
46540         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46541
46542 2009-05-03  Bruno Haible  <bruno@clisp.org>
46543
46544         Create gperf-generated file in the source dir, not in the build dir.
46545         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46546         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46547         * modules/unicase/locale-language (unicase/locale-languages.h):
46548         Likewise.
46549         * modules/unicase/special-casing (unicase/special-casing-table.h):
46550         Likewise.
46551         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46552         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46553         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46554         Reported by Ralf Wildenhues.
46555
46556 2009-05-03  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/fnmatch (Description, configure.ac): Taken from
46559         fnmatch-posix.
46560         * modules/fnmatch-posix: Turn into a symbolic reference to the
46561         'fnmatch' module, and deprecate.
46562         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46563
46564 2009-05-03  Bruno Haible  <bruno@clisp.org>
46565
46566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46567         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46568         Reported by Ralf Wildenhues.
46569
46570 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46571
46572         * m4/fnmatch.m4: Fix fnmatch re-define.
46573
46574 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46575
46576         priv-set: new module and tests; adapt write-any-file
46577         * lib/priv-set.c: New file.
46578         * lib/priv-set.h: New file.
46579         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46580         * lib/write-any-file.c: Simplify by using priv-set module.
46581         * m4/priv-set.m4: New file.
46582         * modules/priv-set: New file.
46583         * modules/unlinkdir: Add dependency on priv-set module.
46584         * modules/write-any-file: Likewise.
46585
46586         Tests for module 'priv-set'.
46587         * modules/priv-set-tests: New file.
46588         * tests/test-priv-set.c: New file.
46589
46590 2009-05-03  Jim Meyering  <meyering@redhat.com>
46591             Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46594         use the converted UTF-8 variant of the name instead.
46595
46596 2009-05-03  Jim Meyering  <meyering@redhat.com>
46597
46598         tests: tighten some getdate tests
46599         * tests/test-getdate.c (main): Tighten tests: require equality,
46600         not just greater than.  Set TZ envvar to UTC0.
46601
46602 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46603
46604         getdate: correctly interpret "next monday" when run on a Monday
46605         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46606         that e.g., "next tues" (when run on a tuesday) results in a date
46607         that is one week in the future, and not today's date.
46608         I.e., add a week when the wday is the same as the current one.
46609         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46610         and earlier by Martin Bernreuther and Jan Minář.
46611         * tests/test-getdate.c (main): Check that "next DAY" is always in
46612         the future and that "last DAY" is always in the past.
46613
46614 2009-05-02  Jim Meyering  <meyering@redhat.com>
46615
46616         build: ensure that a release build fails when a submodule is unclean
46617         * top/maint.mk (no-submodule-changes): New rule.
46618         (alpha beta major): Depend on it.
46619
46620 2009-05-02  Bruno Haible  <bruno@clisp.org>
46621
46622         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46623         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46624         shell variable gl_fnmatch_required to detect which variant is
46625         requested.
46626         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46627         gl_FUNC_FNMATCH_POSIX.
46628         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46629         exclude fnmatch-posix.
46630
46631 2009-05-02  Bruno Haible  <bruno@clisp.org>
46632
46633         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46634         * modules/mbsrtowcs (License): Change to LGPLv2+.
46635         * modules/strnlen1 (License): Likewise.
46636         Reported by Simon Josefsson.
46637
46638 2009-05-02  Bruno Haible  <bruno@clisp.org>
46639
46640         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46641         "cross".
46642         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46643         gnulib-tool was called with option --source-base=lib.
46644
46645 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46646
46647         Use automake *-local hooks without commands, for extensibility.
46648         * modules/localcharset (Makefile.am): Rename install-exec-local
46649         rule to install-exec-localcharset, and make it a prerequisite of
46650         install-exec-local.  Likewise, rename the uninstall-local rule to
46651         uninstall-localcharset, and make it a prerequisite of the former.
46652
46653 2009-05-01  Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46656         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46657         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46658         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46659         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46660         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46661         m4/locale-zh.m4, m4/codeset.m4.
46662
46663         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46664         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46665         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46666         m4/locale-zh.m4.
46667
46668         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46669         REPLACE_WCRTOMB if mbstate_t must be replaced.
46670         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46671         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46672
46673 2009-05-01  Bruno Haible  <bruno@clisp.org>
46674
46675         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46676         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46677         dngettext, dcngettext, textdomain, bindtextdomain,
46678         bind_textdomain_codeset): Undefine before redefining.
46679
46680 2009-04-30  Bruno Haible  <bruno@clisp.org>
46681
46682         Fix bug introduced on 2009-04-25.
46683         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46684         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46685         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46686         is defined.
46687         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46688         is defined.
46689         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46690         is defined.
46691         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46692
46693 2009-04-28  Bruno Haible  <bruno@clisp.org>
46694
46695         Comment tweaks.
46696         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46697         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46698         * lib/unicase.h (u*_casexfrm): Likewise.
46699         Reported by Paolo Bonzini.
46700
46701 2009-04-28  Bruno Haible  <bruno@clisp.org>
46702
46703         Fix a compilation error.
46704         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46705         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46706         Reported by Jim Meyering.
46707
46708 2009-04-27  Bruno Haible  <bruno@clisp.org>
46709
46710         New module 'libunistring'.
46711         * modules/libunistring: New file.
46712         * m4/libunistring.m4: New file.
46713         * MODULES.html.sh (Unicode string functions): Add it.
46714
46715 2009-04-27  Eric Blake  <ebb9@byu.net>
46716
46717         maint.mk: allow package-specific header to provide <config.h>
46718         * top/maint.mk (sc_require_config_h): New variable.
46719         (sc_require_config_h, sc_require_config_h_first): Use it.
46720
46721 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46722
46723         * top/maint.mk (sc_avoid_if_before_free): Except
46724         useless-if-before-free script.
46725
46726 2009-04-27  Eric Blake  <ebb9@byu.net>
46727
46728         maintainer-makefile: depend on all required helper scripts
46729         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46730         useless-if-before-free.
46731         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46732         version, rather than assuming gnulib checkout is available.
46733         Reported by Simen Josefsson.
46734
46735 2009-04-26  Bruno Haible  <bruno@clisp.org>
46736
46737         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46738         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46739         "../" or "..".
46740
46741 2009-04-26  Bruno Haible  <bruno@clisp.org>
46742
46743         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46744         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46745         AC_LIB_HAVE_LINKFLAGS.
46746
46747 2009-04-26  Bruno Haible  <bruno@clisp.org>
46748
46749         Simplify calling convention of u*_conv_from_encoding.
46750         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46751         u32_conv_from_encoding): Expect a resultbuf argument and return the
46752         result directly as a pointer.
46753         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46754         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46755         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46756         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46757         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46758         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46759         Update.
46760         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46761         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46762         * lib/vasnprintf.c (VASNPRINTF): Update.
46763         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46764         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46765         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46766         * NEWS: Mention the change.
46767
46768 2009-04-26  Bruno Haible  <bruno@clisp.org>
46769
46770         Simplify calling convention of u*_conv_to_encoding.
46771         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46772         u32_conv_to_encoding): Expect a resultbuf argument and return the
46773         result directly as a pointer.
46774         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46775         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46776         freeing scaled_offsets if mem_iconveha failed.
46777         * lib/unicase/u-casexfrm.h (FUNC): Update.
46778         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46779         * lib/vasnprintf.c (VASNPRINTF): Update.
46780         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46781         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46782         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46783         * NEWS: Mention the change.
46784
46785 2009-04-26  Bruno Haible  <bruno@clisp.org>
46786
46787         Avoid test failures on AIX and OSF/1.
46788         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46789         malloc(0).
46790         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46791         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46792         Likewise.
46793         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46794         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46795         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46796         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46797         * doc/posix-functions/malloc.texi: Document the portability problem
46798         related to malloc(0).
46799
46800 2009-04-26  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46803         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46804         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46805
46806 2009-04-25  Bruno Haible  <bruno@clisp.org>
46807
46808         Avoid link error when creating a namespace clean library.
46809         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46810         as macro with arguments if already defined as an alias.
46811         * lib/signbitf.c (gl_signbitf): Don't undefine.
46812         * lib/signbitd.c (gl_signbitd): Don't undefine.
46813         * lib/signbitl.c (gl_signbitl): Don't undefine.
46814
46815 2009-04-25  Jim Meyering  <meyering@redhat.com>
46816
46817         vc-list-files: fix another quoting bug
46818         * build-aux/vc-list-files: Avoid sed backslash expansion
46819         of pathological directory names.
46820
46821 2009-04-25  Eric Blake  <ebb9@byu.net>
46822
46823         vc-list-files: fix shell quoting error
46824         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46825         timestamp.
46826
46827 2009-04-25  Jim Meyering  <meyering@redhat.com>
46828
46829         vc-list-files: restore lost functionality with subdir argument
46830         * build-aux/vc-list-files: When given a non-"." sub-directory
46831         argument, substitute the $dir/ prefix back onto each resulting name.
46832         Otherwise, coreutils' root_tests check would fail.
46833
46834 2009-04-24  Eric Blake  <ebb9@byu.net>
46835
46836         vc-list-files: ignore git symlinks
46837         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46838         than ls-files, to ignore git symlinks.
46839
46840         maint.mk: import improvements from m4
46841         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46842         (move_if_change): Delete unused macro.
46843         (news-date-check, vc-diff-check): Support VPATH builds.
46844         (announcement): Likewise.  Split --bootstrap-tools list...
46845         (boostrap-tools): ...into separate list, which can be overridden
46846         in cfg.mk.
46847         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46848         requiring dependency on useless-if-before-free module.
46849         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46850         Support VPATH builds.
46851
46852 2009-04-24  Jim Meyering  <meyering@redhat.com>
46853
46854         maint.mk: remove coreutils-specific rules and variables
46855         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46856         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46857         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46858
46859         maint.mk: remove obsolete rule
46860         * top/maint.mk (rel-check): Remove rule.
46861         (WGET, WGETFLAGS): Remove now-unused variables.
46862
46863 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46864
46865         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46866         consistency.
46867
46868         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46869         '$(PATH_SEPARATOR)' instead of ':'.
46870
46871 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46872
46873         * lib/getopt1.c (main): Use 'const' for static array.
46874
46875 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46876
46877         * top/maint.mk: Sync with coreutils.
46878         * NEWS: Explain incompatibilities.
46879
46880 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46881             Bruno Haible  <bruno@clisp.org>
46882
46883         Fix cross-compilation results.
46884         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46885         statement, as third argument of AC_TRY_RUN.
46886         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46887         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46888         Likewise.
46889         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46890         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46891         Likewise.
46892         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46893         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46894         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46895
46896 2009-04-20  Bruno Haible  <bruno@clisp.org>
46897
46898         Avoid test failure on mingw.
46899         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46900
46901 2009-04-20  Bruno Haible  <bruno@clisp.org>
46902
46903         Avoid compilation error on mingw.
46904         * modules/localename-tests (Depends-on): Add locale.
46905
46906 2009-04-19  Bruno Haible  <bruno@clisp.org>
46907
46908         Support for building a shared library on Windows platforms.
46909         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46910         (main): Test the presence of UNINORM_NFC here.
46911         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46912         (main): Test the presence of UNINORM_NFD here.
46913         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46914         (main): Test the presence of UNINORM_NFKC here.
46915         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46916         (main): Test the presence of UNINORM_NFKD here.
46917
46918 2009-04-19  Bruno Haible  <bruno@clisp.org>
46919
46920         Avoid a compiler warning.
46921         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46922         Change type of variable 'sequence'.
46923
46924 2009-04-19  Bruno Haible  <bruno@clisp.org>
46925
46926         * modules/configmake (Makefile.am): When the contents of configmake.h
46927         does not change, arrange to preserve its modification time.
46928
46929 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46930
46931         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46932         gettext domain.
46933
46934 2009-04-16  Jim Meyering  <meyering@redhat.com>
46935
46936         useless-if-before-free: improve conversion code
46937         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46938         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46939
46940 2009-04-14  Bruno Haible  <bruno@clisp.org>
46941
46942         * modules/fcntl (Depends-on): Add extensions.
46943         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46944
46945 2009-04-12  Ben Pfaff  <blp@gnu.org>
46946
46947         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46948         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46949
46950 2009-03-20  Ben Pfaff  <blp@gnu.org>
46951
46952         Make rename replace existing destinations on Windows.
46953         * m4/rename.m4: Add test for Mingw.
46954         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46955         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46956         * doc/posix-functions/rename.texi: Document.
46957
46958 2009-04-10  Bruno Haible  <bruno@clisp.org>
46959
46960         New include file "iconveh.h".
46961         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46962         * lib/striconveh.h: Include it.
46963         (enum iconv_ilseq_handler): Remove definition.
46964         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46965         striconveh.h.
46966         * lib/striconveha.c: Include striconveh.h.
46967         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46968         * modules/striconveh (Files): Add lib/iconveh.h.
46969         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46970         lib/striconveh.h.
46971
46972 2009-04-10  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/uniconv.h: Update comment.
46975
46976 2009-04-10  Bruno Haible  <bruno@clisp.org>
46977
46978         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46979         always.
46980         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46981         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46982         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46983         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46984         "unistring-notinline.h", so that the function gets defined always.
46985         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46986         * lib/unistr/u8-uctomb.c: Likewise.
46987         * lib/unistr/u16-mbtouc.c: Likewise.
46988         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46989         * lib/unistr/u16-uctomb.c: Likewise.
46990         * lib/unistr/u32-mbtouc.c: Likewise.
46991         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46992         * lib/unistr/u32-uctomb.c: Likewise.
46993
46994 2009-04-10  Bruno Haible  <bruno@clisp.org>
46995
46996         Mark 'utime' obsolete.
46997         * modules/utime (Status, Notice): New sections.
46998         Suggested by Jim Meyering.
46999
47000         Fix cross-compile guess for utime test.
47001         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47002         autoconf.
47003         * doc/posix-functions/utime.texi: Give more precisions.
47004         Reported by Jan <ipif@ymail.com>.
47005
47006 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47007
47008         filevercmp: correct today's change
47009         * lib/filevercmp.c: Also handle coreutils' test inputs.
47010         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47011
47012         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47013         for reporting it.
47014         * lib/filevercmp.c: Special handle for "", "." and "..".
47015         * tests/test-filevercmp.c: Enlarge the set suite.
47016
47017 2009-04-07  Jim Meyering  <meyering@redhat.com>
47018
47019         useless-if-before-free: show how to remove braced useless free, too
47020         * build-aux/useless-if-before-free: still only in a comment, though.
47021
47022 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47023
47024         maint.mk: import changes to syntax-check macros from coreutils
47025         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47026         Use them in the relevant macros.
47027
47028 2009-04-06  Bruno Haible  <bruno@clisp.org>
47029
47030         Fix unportable use of bit-fields.
47031         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47032         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47033         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47034
47035 2009-04-06  Bruno Haible  <bruno@clisp.org>
47036
47037         Avoid test failures on AIX and OSF/1.
47038         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47039         that malloc(0) = NULL.
47040         * tests/unicase/test-u8-tolower.c (check): Likewise.
47041         * tests/unicase/test-u8-totitle.c (check): Likewise.
47042         * tests/unicase/test-u8-toupper.c (check): Likewise.
47043         * tests/unicase/test-u16-casefold.c (check): Likewise.
47044         * tests/unicase/test-u16-tolower.c (check): Likewise.
47045         * tests/unicase/test-u16-totitle.c (check): Likewise.
47046         * tests/unicase/test-u16-toupper.c (check): Likewise.
47047         * tests/unicase/test-u32-casefold.c (check): Likewise.
47048         * tests/unicase/test-u32-tolower.c (check): Likewise.
47049         * tests/unicase/test-u32-totitle.c (check): Likewise.
47050         * tests/unicase/test-u32-toupper.c (check): Likewise.
47051         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47052         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47053         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47054         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47055         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47056         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47057         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47058         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47059         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47060         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47061         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47062         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47063
47064 2009-04-05  Bruno Haible  <bruno@clisp.org>
47065
47066         Work around an autoconf limitation.
47067         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47068         comment line if it would be longer than 3 KB.
47069
47070 2009-04-05  Bruno Haible  <bruno@clisp.org>
47071
47072         Avoid test failure with libiconv-1.13.
47073         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47074         of the expected test results.
47075
47076 2009-04-05  Bruno Haible  <bruno@clisp.org>
47077
47078         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47079         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47080         that it should be installed.
47081
47082 2009-04-05  Bruno Haible  <bruno@clisp.org>
47083
47084         * gnulib-tool: New option --copy-file.
47085         (func_usage): Document it.
47086         (func_dest_tmpfilename): Moved out of func_import.
47087         (func_add_file, func_update_file): New functions, extracted from
47088         func_import.
47089         (func_import): Update.
47090
47091 2009-04-05  Karl Berry  <karl@gnu.org>
47092
47093         * README: prominently mention gnulib-tool.
47094         Rearrange sections so getting the code is near the top.
47095
47096 2009-04-05  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/unicase.h: Mention u*_cmp2.
47099         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47100         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47101         * lib/unicase/ulc-casecmp.c: Likewise.
47102         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47103         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47104         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47105         unistr/u8-cmp.
47106         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47107         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47108         unistr/u16-cmp.
47109         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47110         unistr/u32-cmp.
47111
47112         * lib/uninorm.h: Mention u*_cmp2.
47113         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47114         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47115         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47116         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47117         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47118         unistr/u8-cmp.
47119         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47120         unistr/u16-cmp.
47121         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47122         unistr/u32-cmp.
47123
47124         New module 'unistr/u32-cmp2'.
47125         * lib/unistr/u32-cmp2.c: New file.
47126         * modules/unistr/u32-cmp2: New file.
47127
47128         New module 'unistr/u16-cmp2'.
47129         * lib/unistr/u16-cmp2.c: New file.
47130         * modules/unistr/u16-cmp2: New file.
47131
47132         New module 'unistr/u8-cmp2'.
47133         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47134         * lib/unistr/u8-cmp2.c: New file.
47135         * lib/unistr/u-cmp2.h: New file.
47136         * modules/unistr/u8-cmp2: New file.
47137
47138 2009-04-05  Bruno Haible  <bruno@clisp.org>
47139
47140         * lib/unictype.h (uc_property_is_valid): New macro.
47141         * tests/unictype/test-pr_byname.c (main): Use it.
47142
47143         * lib/unistr.h: Doc fixes.
47144         * lib/uniconv.h: Doc fixes.
47145         * lib/unictype.h: Doc fixes.
47146
47147 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47148
47149         Port coreutils 7.2 to Solaris 8.
47150
47151         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47152         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47153         for Solaris 8.  This is a bit of a hack, as it means it's the
47154         caller's responsibility to add -lnsl if needed, but most likely it
47155         won't be needed since only getaddrinfo uses this and getaddrinfo
47156         isn't needed on Solaris 8.
47157
47158         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47159         problem to Solaris 8 encountered with coreutils 7.2, which
47160         resulted in a message "fnmatch.c:292: warning: passing argument 4
47161         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47162         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47163
47164 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47165
47166         * m4/ld-version-script.m4: Add FIXME comment.
47167
47168 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47169
47170         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47171         SOVERSION variable.
47172
47173 2009-04-02  Bruno Haible  <bruno@clisp.org>
47174
47175         * Makefile (info, html, dvi, pdf): Combine the rules.
47176         Suggested by Jim Meyering.
47177
47178 2009-04-01  Bruno Haible  <bruno@clisp.org>
47179
47180         * Makefile (info, html, dvi, pdf): New targets.
47181         Reported by Reuben Thomas <rrt@sc3d.org>.
47182
47183 2009-04-01  Bruno Haible  <bruno@clisp.org>
47184
47185         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47186         can be put into PATH.
47187         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47188
47189 2009-04-01  Bruno Haible  <bruno@clisp.org>
47190
47191         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47192
47193 2009-04-01  Bruno Haible  <bruno@clisp.org>
47194
47195         Rename module 'visibility'.
47196         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47197         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47198         * doc/gnulib.texi: Update.
47199         * MODULES.html.sh (Misc): Update.
47200         * NEWS: Mention the change.
47201
47202 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47203
47204         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47205         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47206         Eric Blake <ebb9@byu.net> for review.
47207         * MODULES.html.sh: Add lib-msvc-compat.
47208         * doc/gnulib.texi: Link to new section.
47209         * m4/ld-output-def.m4: New file.
47210         * doc/ld-output-def.texi: New file.
47211
47212 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47213
47214         Rename ld-version-script to lib-symbol-versions.  Suggested by
47215         Bruno Haible <bruno@clisp.org>.
47216         * modules/ld-version-script: Renamed to lib-symbol-versions.
47217         * doc/ld-version-script.texi: Fix module name.
47218         * MODULES.html.sh: Add lib-symbol-versions.
47219
47220 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47221
47222         * modules/u64-tests: New file.
47223         * tests/test-u64.c: New file.
47224
47225 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47226
47227         * MODULES.html.sh: Mention u64.
47228         * modules/u64: New module.
47229         * modules/crypto/sha512: Depend on u64 module instead of providing
47230         u64.h.
47231
47232 2009-03-27  Eric Blake  <ebb9@byu.net>
47233
47234         test-strerror: make debugging EAI_SYSTEM easier
47235         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47236         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47237         failure was EAI_SYSTEM.
47238
47239 2009-03-25  Bruno Haible  <bruno@clisp.org>
47240
47241         Fix a problem with --enable-relocatable on Solaris 7.
47242         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47243         since 2008-02-24.
47244
47245 2009-03-25  Eric Blake  <ebb9@byu.net>
47246
47247         test-sockets: avoid gcc warning
47248         * tests/test-sockets.c (main): Silence compiler warning.
47249
47250 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47251
47252         New modules nproc, pthread, contributed by Glen Lenker.
47253
47254         * MODULES.html.sh: Add pthread, nproc.
47255         * lib/nproc.c: New file.
47256         * lib/nproc.h: New file.
47257         * lib/pthread.in.h: New file.
47258         * m4/pthread.m4: New file.
47259         * modules/nproc: New file.
47260         * modules/pthread: New file.
47261
47262 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47263
47264         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47265         New variable.
47266
47267 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47268
47269         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47270         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47271         * tests/test-filevercmp.c: Add tests for backup suffixes.
47272
47273 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47274
47275         * modules/stdlib (Depends-on): Add stdint, needed when defining
47276         struct random_data on, for example, HP-UX 10.20.  Reported by
47277         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47278
47279 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47280
47281         * lib/readline.c (readline): Call fflush on stdout after printing
47282         prompt.
47283
47284 2009-03-20  Bruno Haible  <bruno@clisp.org>
47285
47286         Remove dependency from 'close' module to -lws2_32 on native Windows.
47287         * lib/close-hook.h: New file.
47288         * lib/close-hook.c: New file.
47289         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47290         w32sock.h.
47291         (_gl_close_fd_maybe_socket): Remove function.
47292         (rpl_close): Invoke execute_all_close_hooks instead of
47293         _gl_close_fd_maybe_socket.
47294         * lib/sockets.c: Include close-hook.h, w32sock.h.
47295         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47296         (close_sockets_hook): New variable.
47297         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47298         (gl_sockets_cleanup): Unregister it.
47299         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47300         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47301         * modules/close-hook: New file.
47302         * modules/close (Files): Remove lib/w32sock.h.
47303         (Depends-on): Add close-hook.
47304         (Link): Remove section.
47305         * modules/sockets (Files): Add lib/w32sock.h.
47306         (Depends-on): Add close-hook.
47307         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47308         invocation.
47309         * NEWS: Mention that LIB_CLOSE is gone.
47310
47311 2009-03-23  Eric Blake  <ebb9@byu.net>
47312
47313         signal-tests: test previous patch
47314         * tests/test-signal.c: New file.
47315         * modules/signal-tests: Likewise.
47316
47317         signal.h: always support 'volatile sig_atomic_t'
47318         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47319         (gl_SIGNAL_H_DEFAULTS): Add a default.
47320         * modules/signal (Makefile.am): Substitute if needed.
47321         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47322         users can blindly add volatile.
47323         * doc/posix-headers/signal.texi (signal.h): Document it.
47324         Reported by Matthew Woehlke.
47325
47326 2009-03-23  Jim Meyering  <meyering@redhat.com>
47327
47328         pathmax: PATH_MAX: use pathconf only when available
47329         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47330         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47331         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47332         This avoids a link failure in a PSP cross-compilation environment
47333         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47334
47335         * lib/vasnprintf.c (divide): Fix typo in comment.
47336
47337 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47338
47339         * gnulib-tool (func_filter_filelist): Fix comment.
47340
47341 2009-03-20  Bruno Haible  <bruno@clisp.org>
47342
47343         Make sockets.h self-contained.
47344         * lib/sockets.c: Include sockets.h first.
47345         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47346
47347 2009-03-19  Eric Blake  <ebb9@byu.net>
47348
47349         doc: mention more functions added in cygwin 1.7.0
47350         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47351         addition.
47352         * doc/posix-functions/log2f.texi: Likewise.
47353
47354 2009-03-19  Jim Meyering  <meyering@redhat.com>
47355
47356         fsusage: avoid syntax error due to statement-before-declaration
47357         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47358         after all declarations.  Reported by Matthew Woehlke in
47359         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47360
47361 2009-03-18  Eric Blake  <ebb9@byu.net>
47362
47363         build-aux/compile: sync from automake
47364         * build-aux/compile: New file, from automake.
47365         * config/srclist.txt: Mention build-aux/compile.
47366
47367 2009-03-17  Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/git-merge-changelog.c: Fix typo in comment.
47370         Reported by Reuben Thomas <rrt@sc3d.org>.
47371
47372 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47373
47374         * m4/regex.m4: update and improve help for
47375         --without-included-regex.
47376
47377 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47378
47379         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47380         failure on missing include files.
47381
47382 2009-03-17  Eric Blake  <ebb9@byu.net>
47383
47384         doc: mention more functions added in cygwin 1.7.0
47385         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47386         addition.
47387         * doc/posix-functions/fwscanf.texi: Likewise.
47388         * doc/posix-functions/swprintf.texi: Likewise.
47389         * doc/posix-functions/swscanf.texi: Likewise.
47390         * doc/posix-functions/vfwprintf.texi: Likewise.
47391         * doc/posix-functions/vfwscanf.texi: Likewise.
47392         * doc/posix-functions/vswprintf.texi: Likewise.
47393         * doc/posix-functions/vswscanf.texi: Likewise.
47394         * doc/posix-functions/vwprintf.texi: Likewise.
47395         * doc/posix-functions/vwscanf.texi: Likewise.
47396         * doc/posix-functions/wcscasecmp.texi: Likewise.
47397         * doc/posix-functions/wcsdup.texi: Likewise.
47398         * doc/posix-functions/wcsftime.texi: Likewise.
47399         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47400         * doc/posix-functions/wprintf.texi: Likewise.
47401         * doc/posix-functions/wscanf.texi: Likewise.
47402         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47403
47404 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47405
47406         maint.mk: really add $(AM_MAKEFLAGS)
47407         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47408         was inadvertently omitted in the last commit.
47409         Spotted by Bruno Haible.
47410
47411         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47412         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47413         $(AM_MAKEFLAGS)' rather than plain `make'.
47414
47415         gnulib-tool: execute $MAKE not make
47416         * gnulib-tool: Default $MAKE to 'make'.
47417         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47418         than make.  Initialize $MAKE in the do-autobuild script.
47419
47420         gnulib-tool: use $MAKE not make in generated files
47421         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47422         make, in generated files.  Initialize $MAKE in the do-autobuild
47423         script.
47424
47425         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47426
47427         GNUmakefile: disable parallelism only for multiple, recursive targets
47428         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47429         additions in the Makefile.
47430         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47431         by Automake.
47432         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47433         are listed on the command line and at least one of them is
47434         listed in $(ALL_RECURSIVE_TARGETS).
47435
47436 2009-03-14  Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47439         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47440         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47441         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47442         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47443         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47444         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47445         unistr/u8-uctomb.
47446         * modules/unistr/u8-strchr (Depends-on): Likewise.
47447         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47448         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47449         unistr/u16-uctomb.
47450         * modules/unistr/u16-strchr (Depends-on): Likewise.
47451         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47452
47453 2009-03-12  Bruno Haible  <bruno@clisp.org>
47454
47455         Work around select() bug on Interix 3.5.
47456         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47457         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47458         * m4/select.m4: New file.
47459         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47460         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47461         * modules/select (Files): Add m4/select.m4.
47462         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47463         * modules/nanosleep (Depends-on): Add select.
47464         * modules/poll (Depends-on): Likewise.
47465         * doc/posix-functions/select.texi: Mention the Interix bug.
47466         Reported by Markus Duft <mduft@gentoo.org>.
47467
47468         * lib/select.c: Renamed from lib/winsock-select.c.
47469         * modules/select (Files): Add lib/select.c, remove
47470         lib/winsock-select.c.
47471         (configure.ac): Update.
47472
47473 2009-03-12  Jim Meyering  <meyering@redhat.com>
47474
47475         avoid gcc warnings about unused macro definitions
47476         * lib/readtokens.c (STREQ): Remove unused definition.
47477         * lib/xmalloc.c (SIZE_MAX): Likewise.
47478         * lib/openat-die.c (N_): Likewise.
47479         * lib/mountlist.c (SIZE_MAX): Remove definition.
47480         Instead, include <stdint.h>.
47481         * lib/readutmp.c: Likewise.
47482         * modules/readutmp (Depends-on): Add stdint.
47483         * modules/mountlist (Depends-on): Add stdint.
47484         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47485
47486 2009-03-10  Bruno Haible  <bruno@clisp.org>
47487
47488         Tests for module 'mbmemcasecoll'.
47489         * modules/mbmemcasecoll-tests: New file.
47490         * tests/test-mbmemcasecoll1.sh: New file.
47491         * tests/test-mbmemcasecoll2.sh: New file.
47492         * tests/test-mbmemcasecoll3.sh: New file.
47493         * tests/test-mbmemcasecoll.c: New file.
47494
47495         New module 'mbmemcasecoll'.
47496         * lib/mbmemcasecoll.h: New file.
47497         * lib/mbmemcasecoll.c: New file.
47498         * modules/mbmemcasecoll: New file.
47499
47500         * tests/test-mbmemcasecmp.h: New file, extracted from
47501         tests/test-mbmemcasecmp.c.
47502         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47503         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47504         (main): Update.
47505         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47506
47507 2009-03-09  Bruno Haible  <bruno@clisp.org>
47508
47509         Tests for module 'mbmemcasecmp'.
47510         * modules/mbmemcasecmp-tests: New file.
47511         * tests/test-mbmemcasecmp1.sh: New file.
47512         * tests/test-mbmemcasecmp2.sh: New file.
47513         * tests/test-mbmemcasecmp3.sh: New file.
47514         * tests/test-mbmemcasecmp.c: New file.
47515
47516         New module 'mbmemcasecmp'.
47517         * lib/mbmemcasecmp.h: New file.
47518         * lib/mbmemcasecmp.c: New file.
47519         * modules/mbmemcasecmp: New file.
47520
47521 2009-03-09  Bruno Haible  <bruno@clisp.org>
47522
47523         Tests for module 'unicase/ulc-casecoll'.
47524         * modules/unicase/ulc-casecoll-tests: New file.
47525         * tests/unicase/test-ulc-casecoll1.sh: New file.
47526         * tests/unicase/test-ulc-casecoll2.sh: New file.
47527         * tests/unicase/test-ulc-casecoll.c: New file.
47528
47529         New module 'unicase/ulc-casecoll'.
47530         * lib/unicase.h (ulc_casecoll): New declaration.
47531         * lib/unicase/ulc-casecoll.c: New file.
47532         * modules/unicase/ulc-casecoll: New file.
47533
47534         New module 'unicase/ulc-casexfrm'.
47535         * lib/unicase.h (ulc_casexfrm): New declaration.
47536         * lib/unicase/ulc-casexfrm.c: New file.
47537         * modules/unicase/ulc-casexfrm: New file.
47538
47539 2009-03-09  Bruno Haible  <bruno@clisp.org>
47540
47541         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47542         invocations.
47543
47544         * m4/mbscasecmp.m4: Remove file.
47545         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47546         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47547
47548         * m4/mbscasestr.m4: Remove file.
47549         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47550         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47551
47552         * m4/mbschr.m4: Remove file.
47553         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47554         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47555
47556         * m4/mbscspn.m4: Remove file.
47557         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47558         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47559
47560         * m4/mbslen.m4: Remove file.
47561         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47562         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47563
47564         * m4/mbsncasecmp.m4: Remove file.
47565         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47566         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47567
47568         * m4/mbsnlen.m4: Remove file.
47569         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47570         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47571
47572         * m4/mbspbrk.m4: Remove file.
47573         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47574         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47575
47576         * m4/mbspcasecmp.m4: Remove file.
47577         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47578         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47579
47580         * m4/mbsrchr.m4: Remove file.
47581         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47582         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47583
47584         * m4/mbssep.m4: Remove file.
47585         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47586         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47587
47588         * m4/mbsspn.m4: Remove file.
47589         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47590         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47591
47592         * m4/mbsstr.m4: Remove file.
47593         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47594         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47595
47596         * m4/mbstok_r.m4: Remove file.
47597         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47598         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47599
47600         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47601
47602         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47603         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47604
47605         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47606
47607 2009-03-08  Bruno Haible  <bruno@clisp.org>
47608
47609         Tests for module 'unicase/ulc-casecmp'.
47610         * modules/unicase/ulc-casecmp-tests: New file.
47611         * tests/unicase/test-ulc-casecmp1.sh: New file.
47612         * tests/unicase/test-ulc-casecmp2.sh: New file.
47613         * tests/unicase/test-ulc-casecmp.c: New file.
47614
47615         New module 'unicase/ulc-casecmp'.
47616         * lib/unicase.h (ulc_casecmp): New declaration.
47617         * lib/unicase/ulc-casecmp.c: New file.
47618         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47619         'const SRC_UNIT *'.
47620         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47621         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47622         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47623         * modules/unicase/ulc-casecmp: New file.
47624
47625         Tests for module 'unicase/u32-is-cased'.
47626         * modules/unicase/u32-is-cased-tests: New file.
47627         * tests/unicase/test-u32-is-cased.c: New file.
47628
47629         Tests for module 'unicase/u16-is-cased'.
47630         * modules/unicase/u16-is-cased-tests: New file.
47631         * tests/unicase/test-u16-is-cased.c: New file.
47632
47633         Tests for module 'unicase/u8-is-cased'.
47634         * modules/unicase/u8-is-cased-tests: New file.
47635         * tests/unicase/test-u8-is-cased.c: New file.
47636         * tests/unicase/test-is-cased.h: New file.
47637
47638         New module 'unicase/u32-is-cased'.
47639         * lib/unicase/u32-is-cased.c: New file.
47640         * modules/unicase/u32-is-cased: New file.
47641
47642         New module 'unicase/u16-is-cased'.
47643         * lib/unicase/u16-is-cased.c: New file.
47644         * modules/unicase/u16-is-cased: New file.
47645
47646         New module 'unicase/u8-is-cased'.
47647         * lib/unicase/u8-is-cased.c: New file.
47648         * lib/unicase/u-is-cased.h: New file.
47649         * modules/unicase/u8-is-cased: New file.
47650
47651         Tests for module 'unicase/u32-is-casefolded'.
47652         * modules/unicase/u32-is-casefolded-tests: New file.
47653         * tests/unicase/test-u32-is-casefolded.c: New file.
47654
47655         Tests for module 'unicase/u16-is-casefolded'.
47656         * modules/unicase/u16-is-casefolded-tests: New file.
47657         * tests/unicase/test-u16-is-casefolded.c: New file.
47658
47659         Tests for module 'unicase/u8-is-casefolded'.
47660         * modules/unicase/u8-is-casefolded-tests: New file.
47661         * tests/unicase/test-u8-is-casefolded.c: New file.
47662         * tests/unicase/test-is-casefolded.h: New file.
47663
47664         New module 'unicase/u32-is-casefolded'.
47665         * lib/unicase/u32-is-casefolded.c: New file.
47666         * modules/unicase/u32-is-casefolded: New file.
47667
47668         New module 'unicase/u16-is-casefolded'.
47669         * lib/unicase/u16-is-casefolded.c: New file.
47670         * modules/unicase/u16-is-casefolded: New file.
47671
47672         New module 'unicase/u8-is-casefolded'.
47673         * lib/unicase/u8-is-casefolded.c: New file.
47674         * modules/unicase/u8-is-casefolded: New file.
47675
47676         Tests for module 'unicase/u32-is-titlecase'.
47677         * modules/unicase/u32-is-titlecase-tests: New file.
47678         * tests/unicase/test-u32-is-titlecase.c: New file.
47679
47680         Tests for module 'unicase/u16-is-titlecase'.
47681         * modules/unicase/u16-is-titlecase-tests: New file.
47682         * tests/unicase/test-u16-is-titlecase.c: New file.
47683
47684         Tests for module 'unicase/u8-is-titlecase'.
47685         * modules/unicase/u8-is-titlecase-tests: New file.
47686         * tests/unicase/test-u8-is-titlecase.c: New file.
47687         * tests/unicase/test-is-titlecase.h: New file.
47688
47689         New module 'unicase/u32-is-titlecase'.
47690         * lib/unicase/u32-is-titlecase.c: New file.
47691         * modules/unicase/u32-is-titlecase: New file.
47692
47693         New module 'unicase/u16-is-titlecase'.
47694         * lib/unicase/u16-is-titlecase.c: New file.
47695         * modules/unicase/u16-is-titlecase: New file.
47696
47697         New module 'unicase/u8-is-titlecase'.
47698         * lib/unicase/u8-is-titlecase.c: New file.
47699         * modules/unicase/u8-is-titlecase: New file.
47700
47701         Tests for module 'unicase/u32-is-lowercase'.
47702         * modules/unicase/u32-is-lowercase-tests: New file.
47703         * tests/unicase/test-u32-is-lowercase.c: New file.
47704
47705         Tests for module 'unicase/u16-is-lowercase'.
47706         * modules/unicase/u16-is-lowercase-tests: New file.
47707         * tests/unicase/test-u16-is-lowercase.c: New file.
47708
47709         Tests for module 'unicase/u8-is-lowercase'.
47710         * modules/unicase/u8-is-lowercase-tests: New file.
47711         * tests/unicase/test-u8-is-lowercase.c: New file.
47712         * tests/unicase/test-is-lowercase.h: New file.
47713
47714         New module 'unicase/u32-is-lowercase'.
47715         * lib/unicase/u32-is-lowercase.c: New file.
47716         * modules/unicase/u32-is-lowercase: New file.
47717
47718         New module 'unicase/u16-is-lowercase'.
47719         * lib/unicase/u16-is-lowercase.c: New file.
47720         * modules/unicase/u16-is-lowercase: New file.
47721
47722         New module 'unicase/u8-is-lowercase'.
47723         * lib/unicase/u8-is-lowercase.c: New file.
47724         * modules/unicase/u8-is-lowercase: New file.
47725
47726         Tests for module 'unicase/u32-is-uppercase'.
47727         * modules/unicase/u32-is-uppercase-tests: New file.
47728         * tests/unicase/test-u32-is-uppercase.c: New file.
47729
47730         Tests for module 'unicase/u16-is-uppercase'.
47731         * modules/unicase/u16-is-uppercase-tests: New file.
47732         * tests/unicase/test-u16-is-uppercase.c: New file.
47733
47734         Tests for module 'unicase/u8-is-uppercase'.
47735         * modules/unicase/u8-is-uppercase-tests: New file.
47736         * tests/unicase/test-u8-is-uppercase.c: New file.
47737         * tests/unicase/test-is-uppercase.h: New file.
47738
47739         New module 'unicase/u32-is-uppercase'.
47740         * lib/unicase/u32-is-uppercase.c: New file.
47741         * modules/unicase/u32-is-uppercase: New file.
47742
47743         New module 'unicase/u16-is-uppercase'.
47744         * lib/unicase/u16-is-uppercase.c: New file.
47745         * modules/unicase/u16-is-uppercase: New file.
47746
47747         New module 'unicase/u8-is-uppercase'.
47748         * lib/unicase/u8-is-uppercase.c: New file.
47749         * modules/unicase/u8-is-uppercase: New file.
47750
47751         New module 'unicase/u32-is-invariant'.
47752         * lib/unicase/u32-is-invariant.c: New file.
47753         * modules/unicase/u32-is-invariant: New file.
47754
47755         New module 'unicase/u16-is-invariant'.
47756         * lib/unicase/u16-is-invariant.c: New file.
47757         * modules/unicase/u16-is-invariant: New file.
47758
47759         New module 'unicase/u8-is-invariant'.
47760         * lib/unicase/u8-is-invariant.c: New file.
47761         * lib/unicase/invariant.h: New file.
47762         * lib/unicase/u-is-invariant.h: New file.
47763         * modules/unicase/u8-is-invariant: New file.
47764
47765         Tests for module 'unicase/u32-casecoll'.
47766         * modules/unicase/u32-casecoll-tests: New file.
47767         * tests/unicase/test-u32-casecoll.c: New file.
47768
47769         Tests for module 'unicase/u16-casecoll'.
47770         * modules/unicase/u16-casecoll-tests: New file.
47771         * tests/unicase/test-u16-casecoll.c: New file.
47772
47773         Tests for module 'unicase/u8-casecoll'.
47774         * modules/unicase/u8-casecoll-tests: New file.
47775         * tests/unicase/test-u8-casecoll.c: New file.
47776
47777         New module 'unicase/u32-casecoll'.
47778         * lib/unicase/u32-casecoll.c: New file.
47779         * modules/unicase/u32-casecoll: New file.
47780
47781         New module 'unicase/u16-casecoll'.
47782         * lib/unicase/u16-casecoll.c: New file.
47783         * modules/unicase/u16-casecoll: New file.
47784
47785         New module 'unicase/u8-casecoll'.
47786         * lib/unicase/u8-casecoll.c: New file.
47787         * lib/unicase/u-casecoll.h: New file.
47788         * modules/unicase/u8-casecoll: New file.
47789
47790         New module 'unicase/u32-casexfrm'.
47791         * lib/unicase/u32-casexfrm.c: New file.
47792         * modules/unicase/u32-casexfrm: New file.
47793
47794         New module 'unicase/u16-casexfrm'.
47795         * lib/unicase/u16-casexfrm.c: New file.
47796         * modules/unicase/u16-casexfrm: New file.
47797
47798         New module 'unicase/u8-casexfrm'.
47799         * lib/unicase/u8-casexfrm.c: New file.
47800         * lib/unicase/u-casexfrm.h: New file.
47801         * modules/unicase/u8-casexfrm: New file.
47802
47803         Tests for module 'unicase/u32-casecmp'.
47804         * modules/unicase/u32-casecmp-tests: New file.
47805         * tests/unicase/test-u32-casecmp.c: New file.
47806
47807         Tests for module 'unicase/u16-casecmp'.
47808         * modules/unicase/u16-casecmp-tests: New file.
47809         * tests/unicase/test-u16-casecmp.c: New file.
47810
47811         Tests for module 'unicase/u8-casecmp'.
47812         * modules/unicase/u8-casecmp-tests: New file.
47813         * tests/unicase/test-u8-casecmp.c: New file.
47814         * tests/unicase/test-casecmp.h: New file.
47815
47816         New module 'unicase/u32-casecmp'.
47817         * lib/unicase/u32-casecmp.c: New file.
47818         * modules/unicase/u32-casecmp: New file.
47819
47820         New module 'unicase/u16-casecmp'.
47821         * lib/unicase/u16-casecmp.c: New file.
47822         * modules/unicase/u16-casecmp: New file.
47823
47824         New module 'unicase/u8-casecmp'.
47825         * lib/unicase/u8-casecmp.c: New file.
47826         * lib/unicase/u-casecmp.h: New file.
47827         * modules/unicase/u8-casecmp: New file.
47828
47829         Tests for module 'unicase/u32-casefold'.
47830         * modules/unicase/u32-casefold-tests: New file.
47831         * tests/unicase/test-u32-casefold.c: New file.
47832
47833         Tests for module 'unicase/u16-casefold'.
47834         * modules/unicase/u16-casefold-tests: New file.
47835         * tests/unicase/test-u16-casefold.c: New file.
47836
47837         Tests for module 'unicase/u8-casefold'.
47838         * modules/unicase/u8-casefold-tests: New file.
47839         * tests/unicase/test-u8-casefold.c: New file.
47840
47841         New module 'unicase/u32-casefold'.
47842         * lib/unicase/u32-casefold.c: New file.
47843         * modules/unicase/u32-casefold: New file.
47844
47845         New module 'unicase/u16-casefold'.
47846         * lib/unicase/u16-casefold.c: New file.
47847         * modules/unicase/u16-casefold: New file.
47848
47849         New module 'unicase/u8-casefold'.
47850         * lib/unicase/u8-casefold.c: New file.
47851         * lib/unicase/u-casefold.h: New file.
47852         * modules/unicase/u8-casefold: New file.
47853
47854         New module 'unicase/tocasefold'.
47855         * lib/unicase/casefold.h: New file.
47856         * lib/unicase/tocasefold.c: New file.
47857         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47858         * modules/unicase/tocasefold: New file.
47859
47860         Tests for module 'unicase/u32-totitle'.
47861         * modules/unicase/u32-totitle-tests: New file.
47862         * tests/unicase/test-u32-totitle.c: New file.
47863
47864         Tests for module 'unicase/u16-totitle'.
47865         * modules/unicase/u16-totitle-tests: New file.
47866         * tests/unicase/test-u16-totitle.c: New file.
47867
47868         Tests for module 'unicase/u8-totitle'.
47869         * modules/unicase/u8-totitle-tests: New file.
47870         * tests/unicase/test-u8-totitle.c: New file.
47871
47872         New module 'unicase/u32-totitle'.
47873         * lib/unicase/u32-totitle.c: New file.
47874         * modules/unicase/u32-totitle: New file.
47875
47876         New module 'unicase/u16-totitle'.
47877         * lib/unicase/u16-totitle.c: New file.
47878         * modules/unicase/u16-totitle: New file.
47879
47880         New module 'unicase/u8-totitle'.
47881         * lib/unicase/u8-totitle.c: New file.
47882         * lib/unicase/u-totitle.h: New file.
47883         * modules/unicase/u8-totitle: New file.
47884
47885         Tests for module 'unicase/u32-tolower'.
47886         * modules/unicase/u32-tolower-tests: New file.
47887         * tests/unicase/test-u32-tolower.c: New file.
47888
47889         Tests for module 'unicase/u16-tolower'.
47890         * modules/unicase/u16-tolower-tests: New file.
47891         * tests/unicase/test-u16-tolower.c: New file.
47892
47893         Tests for module 'unicase/u8-tolower'.
47894         * modules/unicase/u8-tolower-tests: New file.
47895         * tests/unicase/test-u8-tolower.c: New file.
47896
47897         New module 'unicase/u32-tolower'.
47898         * lib/unicase/u32-tolower.c: New file.
47899         * modules/unicase/u32-tolower: New file.
47900
47901         New module 'unicase/u16-tolower'.
47902         * lib/unicase/u16-tolower.c: New file.
47903         * modules/unicase/u16-tolower: New file.
47904
47905         New module 'unicase/u8-tolower'.
47906         * lib/unicase/u8-tolower.c: New file.
47907         * modules/unicase/u8-tolower: New file.
47908
47909         Tests for module 'unicase/u32-toupper'.
47910         * modules/unicase/u32-toupper-tests: New file.
47911         * tests/unicase/test-u32-toupper.c: New file.
47912
47913         Tests for module 'unicase/u16-toupper'.
47914         * modules/unicase/u16-toupper-tests: New file.
47915         * tests/unicase/test-u16-toupper.c: New file.
47916
47917         Tests for module 'unicase/u8-toupper'.
47918         * modules/unicase/u8-toupper-tests: New file.
47919         * tests/unicase/test-u8-toupper.c: New file.
47920
47921         New module 'unicase/u32-toupper'.
47922         * lib/unicase/u32-toupper.c: New file.
47923         * modules/unicase/u32-toupper: New file.
47924
47925         New module 'unicase/u16-toupper'.
47926         * lib/unicase/u16-toupper.c: New file.
47927         * modules/unicase/u16-toupper: New file.
47928
47929         New module 'unicase/u8-toupper'.
47930         * lib/unicase/u8-toupper.c: New file.
47931         * modules/unicase/u8-toupper: New file.
47932
47933         New module 'unicase/u32-casemap'.
47934         * lib/unicase/u32-casemap.c: New file.
47935         * modules/unicase/u32-casemap: New file.
47936
47937         New module 'unicase/u16-casemap'.
47938         * lib/unicase/u16-casemap.c: New file.
47939         * modules/unicase/u16-casemap: New file.
47940
47941         New module 'unicase/u8-casemap'.
47942         * lib/unicase/unicasemap.h: New file.
47943         * lib/unicase/u8-casemap.c: New file.
47944         * lib/unicase/u-casemap.h: New file.
47945         * modules/unicase/u8-casemap: New file.
47946
47947         New module 'unicase/special-casing'.
47948         * lib/unicase/special-casing.h: New file.
47949         * lib/unicase/special-casing.c: New file.
47950         * lib/unicase/special-casing-table.gperf: New file, generated by
47951         gen-uni-tables.c.
47952         * modules/unicase/special-casing: New file.
47953
47954         Tests for module 'unicase/locale-language'.
47955         * modules/unicase/locale-language-tests: New file.
47956         * tests/unicase/test-locale-language.sh: New file.
47957         * tests/unicase/test-locale-language.c: New file.
47958
47959         New module 'unicase/locale-language'.
47960         * lib/unicase/locale-language.c: New file.
47961         * lib/unicase/locale-languages.gperf: New file.
47962         * modules/unicase/locale-language: New file.
47963
47964         Generate more tables for case conversion and case folding.
47965         * lib/gen-uni-tables.c (SCC_*): New enum items.
47966         (struct special_casing_rule): New type.
47967         (casing_rules, num_casing_rules, allocated_casing_rules): New
47968         variables.
47969         (add_casing_rule, fill_casing_rules): New functions.
47970         (struct casefold_rule): New type.
47971         (casefolding_rules, num_casefolding_rules,
47972         allocated_casefolding_rules): New variables.
47973         (fill_casefolding_rules): New function.
47974         (unicode_casefold): New variable.
47975         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47976         sort_casing_rules, output_casing_rules): New functions.
47977         (main): Accept to more arguments: SpecialCasing.txt and
47978         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47979         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47980         Output mapping for casefolding.
47981
47982         * lib/unicase.h: Include stdbool.h, uninorm.h.
47983         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47984         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47985         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47986         arguments.
47987         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47988         resultp arguments.
47989         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47990         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47991         resultp arguments.
47992         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47993         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47994         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47995         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47996         declarations.
47997         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47998
47999 2009-03-08  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48002         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48003         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48004         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48005
48006 2009-03-07  Bruno Haible  <bruno@clisp.org>
48007
48008         Adjust u*_normcmp, u*_normcoll API.
48009         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48010         u16_normcoll, u32_normcoll): Change failure conventions.
48011         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48012         errno and return -1.
48013         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48014
48015 2009-03-07  Bruno Haible  <bruno@clisp.org>
48016
48017         Tests for module 'uninorm/u32-normcoll'.
48018         * modules/uninorm/u32-normcoll-tests: New file.
48019         * tests/uninorm/test-u32-normcoll.c: New file.
48020
48021         Tests for module 'uninorm/u16-normcoll'.
48022         * modules/uninorm/u16-normcoll-tests: New file.
48023         * tests/uninorm/test-u16-normcoll.c: New file.
48024
48025         Tests for module 'uninorm/u8-normcoll'.
48026         * modules/uninorm/u8-normcoll-tests: New file.
48027         * tests/uninorm/test-u8-normcoll.c: New file.
48028
48029 2009-03-07  Bruno Haible  <bruno@clisp.org>
48030
48031         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48032         tests/uninorm/test-u32-normcmp.c.
48033         * tests/uninorm/test-u32-normcmp.c: Include it.
48034         (test_nonascii): New function, extracted from main. Add some more
48035         tests.
48036         (main): Invoke test_ascii and test_nonascii.
48037         * modules/uninorm/u32-normcmp-tests (Files): Add
48038         tests/uninorm/test-u32-normcmp.h.
48039         (Depends-on): Remove uninorm/u32-normcmp.
48040
48041         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48042         tests/uninorm/test-u16-normcmp.c.
48043         * tests/uninorm/test-u16-normcmp.c: Include it.
48044         (test_nonascii): New function, extracted from main. Add some more
48045         tests.
48046         (main): Invoke test_ascii and test_nonascii.
48047         * modules/uninorm/u16-normcmp-tests (Files): Add
48048         tests/uninorm/test-u16-normcmp.h.
48049         (Depends-on): Remove uninorm/u16-normcmp.
48050
48051         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48052         tests/uninorm/test-u8-normcmp.c.
48053         * tests/uninorm/test-u8-normcmp.c: Include it.
48054         (test_nonascii): New function, extracted from main. Add some more
48055         tests.
48056         (main): Invoke test_ascii and test_nonascii.
48057         * modules/uninorm/u8-normcmp-tests (Files): Add
48058         tests/uninorm/test-u8-normcmp.h.
48059         (Depends-on): Remove uninorm/u8-normcmp.
48060
48061 2009-03-07  Bruno Haible  <bruno@clisp.org>
48062
48063         New module 'uninorm/u32-normcoll'.
48064         * lib/uninorm/u32-normcoll.c: New file.
48065         * modules/uninorm/u32-normcoll: New file.
48066
48067         New module 'uninorm/u16-normcoll'.
48068         * lib/uninorm/u16-normcoll.c: New file.
48069         * modules/uninorm/u16-normcoll: New file.
48070
48071         New module 'uninorm/u8-normcoll'.
48072         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48073         declarations.
48074         * lib/uninorm/u8-normcoll.c: New file.
48075         * lib/uninorm/u-normcoll.h: New file.
48076         * modules/uninorm/u8-normcoll: New file.
48077
48078         New module 'uninorm/u32-normxfrm'.
48079         * lib/uninorm/u32-normxfrm.c: New file.
48080         * modules/uninorm/u32-normxfrm: New file.
48081
48082         New module 'uninorm/u16-normxfrm'.
48083         * lib/uninorm/u16-normxfrm.c: New file.
48084         * modules/uninorm/u16-normxfrm: New file.
48085
48086         New module 'uninorm/u8-normxfrm'.
48087         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48088         declarations.
48089         * lib/uninorm/u8-normxfrm.c: New file.
48090         * lib/uninorm/u-normxfrm.h: New file.
48091         * modules/uninorm/u8-normxfrm: New file.
48092
48093 2009-03-07  Bruno Haible  <bruno@clisp.org>
48094
48095         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48096         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48097         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48098
48099 2009-03-07  Bruno Haible  <bruno@clisp.org>
48100
48101         New module 'memxfrm'.
48102         * lib/memxfrm.h: New file.
48103         * lib/memxfrm.c: New file.
48104         * modules/memxfrm: New file.
48105
48106 2009-03-07  Bruno Haible  <bruno@clisp.org>
48107
48108         New module 'memcmp2'.
48109         * lib/memcmp2.h: New file.
48110         * lib/memcmp2.c: New file.
48111         * modules/memcmp2: New file.
48112
48113 2009-03-07  Bruno Haible  <bruno@clisp.org>
48114
48115         Tests for module 'uninorm/decomposing-form'.
48116         * modules/uninorm/decomposing-form-tests: New file.
48117         * tests/uninorm/test-decomposing-form.c: New file.
48118
48119         New module 'uninorm/decomposing-form'.
48120         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48121         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48122         Add 'decomposing_variant' field.
48123         * lib/uninorm/decomposing-form.c: New file.
48124         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48125         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48126         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48127         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48128         * modules/uninorm/decomposing-form: New file.
48129         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48130         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48131
48132 2009-03-07  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48135         strings.
48136
48137 2009-03-06  Bruno Haible  <bruno@clisp.org>
48138
48139         Tests for module 'uninorm/u32-normcmp'.
48140         * tests/uninorm/test-u32-normcmp.c: New file.
48141         * modules/uninorm/u32-normcmp-tests: New file.
48142
48143         Tests for module 'uninorm/u16-normcmp'.
48144         * tests/uninorm/test-u16-normcmp.c: New file.
48145         * modules/uninorm/u16-normcmp-tests: New file.
48146
48147         Tests for module 'uninorm/u8-normcmp'.
48148         * tests/uninorm/test-u8-normcmp.c: New file.
48149         * modules/uninorm/u8-normcmp-tests: New file.
48150
48151         New module 'uninorm/u32-normcmp'.
48152         * lib/uninorm/u32-normcmp.c: New file.
48153         * modules/uninorm/u32-normcmp: New file.
48154
48155         New module 'uninorm/u16-normcmp'.
48156         * lib/uninorm/u16-normcmp.c: New file.
48157         * modules/uninorm/u16-normcmp: New file.
48158
48159         New module 'uninorm/u8-normcmp'.
48160         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48161         declarations.
48162         * lib/uninorm/u8-normcmp.c: New file.
48163         * lib/uninorm/u-normcmp.h: New file.
48164         * modules/uninorm/u8-normcmp: New file.
48165
48166 2009-03-06  Bruno Haible  <bruno@clisp.org>
48167
48168         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48169         Reported by Eric Blake.
48170
48171 2009-03-06  Eric Blake  <ebb9@byu.net>
48172             Bruno Haible  <bruno@clisp.org>
48173
48174         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48175         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48176         condition.
48177         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48178         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48179         condition.
48180         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48181
48182 2009-03-06  Eric Blake  <ebb9@byu.net>
48183
48184         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48185         to avoid compiler warnings.
48186         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48187
48188 2009-03-05  Bruno Haible  <bruno@clisp.org>
48189
48190         * tests/test-ftell.c (main): Disable test beyond end of file on
48191         FreeMiNT.
48192         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48193
48194 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48195
48196         * lib/filevercmp.c: Move hidden files up in ordering.
48197         * tests/test-filevercmp.c: Add tests for hidden files.
48198
48199 2009-03-04  Bruno Haible  <bruno@clisp.org>
48200
48201         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48202         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48203         AM_CFLAGS.
48204         Reported by Simon Josefsson.
48205
48206 2009-03-03  Bruno Haible  <bruno@clisp.org>
48207
48208         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48209         Reported by Simon Josefsson.
48210
48211         * doc/ld-version-script.texi: Update node reference.
48212
48213 2009-03-03  Bruno Haible  <bruno@clisp.org>
48214
48215         * modules/visibility (License): Change to 'unlimited'.
48216         Suggested by Simon Josefsson.
48217
48218 2009-03-03  Jim Meyering  <meyering@redhat.com>
48219
48220         unlinkdir: cannot_unlink_dir may modify process state
48221         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48222         it's neither thread-safe nor appropriate for use in a library.
48223
48224 2009-03-03  Eric Blake  <ebb9@byu.net>
48225
48226         test-closein: silence test under Darwin
48227         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48228         care if it dies from EPIPE or EBADF.
48229
48230 2009-03-03  Bruno Haible  <bruno@clisp.org>
48231
48232         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48233         earlier.
48234         * doc/visibility.texi: Fix @node and @section.
48235
48236 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48237
48238         * doc/gnulib.texi: Link to sections for ld version script and
48239         visibility.
48240         * doc/visibility.texi: Add @node and @section.
48241         * modules/ld-version-script: New module.
48242         * m4/ld-version-script.m4: New file.
48243         * doc/ld-version-script.texi: New file.
48244
48245 2009-03-02  David Lutterkort  <lutter@redhat.com>
48246
48247         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48249
48250 2009-03-02  Bruno Haible  <bruno@clisp.org>
48251
48252         * doc/visibility.texi: Mention libtool's -export-symbols option.
48253
48254 2009-03-02  Jim Meyering  <meyering@redhat.com>
48255
48256         announce-gen: new option: --no-print-checksums
48257         * build-aux/announce-gen (usage): Describe it.
48258         (print_checksums): Print a newline here, not in the [*] footnote.
48259         (main): Honor it.
48260
48261 2009-03-01  Bruno Haible  <bruno@clisp.org>
48262
48263         Use socklen_t in the native Windows replacements prototypes.
48264         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48265         instead of 'int'.
48266         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48267         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48268         * modules/getsockopt (Depends-on): Add socklen.
48269         * modules/setsockopt (Depends-on): Add socklen.
48270
48271 2009-03-01  Bruno Haible  <bruno@clisp.org>
48272
48273         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48274         least 4.2.
48275
48276 2009-03-01  Eric Blake  <ebb9@byu.net>
48277             Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48280         error messages.
48281         * lib/wait-process.c (wait_subprocess): Omit error message about
48282         deadly signal sent to the child of termsigp != NULL.
48283
48284 2009-03-01  Eric Blake  <ebb9@byu.net>
48285
48286         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48287
48288 2009-03-01  Bruno Haible  <bruno@clisp.org>
48289
48290         Avoid a gcc warning.
48291         * tests/test-sched.c (b): Make global.
48292         Reported by Eric Blake.
48293
48294 2009-01-19  Martin Lambers  <marlam@marlam.de>
48295
48296         Provide POSIX semantics for socket timeout options on W32.
48297         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48298         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48299         * modules/setsockopt: Depend on sys_time module for struct timeval.
48300         * modules/getsockopt: Depend on sys_time module for struct timeval.
48301
48302 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48303
48304         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48305         __USE_GNU, for consistency with netdb.in.h.
48306         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48307
48308 2009-03-01  Bruno Haible  <bruno@clisp.org>
48309
48310         More support for FreeMiNT.
48311         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48312         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48313
48314 2009-03-01  Bruno Haible  <bruno@clisp.org>
48315
48316         More support for FreeMiNT.
48317         * lib/fpurge.c (fpurge): Correct last commit.
48318         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48319
48320 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48321
48322         Fix unportable awk script in vc-list-files.
48323         * build-aux/vc-list-files: In the replacement awk script, use
48324         substr with a second argument of 1, not zero.
48325         Report by Simon Josefsson.
48326
48327 2009-02-28  Bruno Haible  <bruno@clisp.org>
48328
48329         More support for FreeMiNT.
48330         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48331         to FreeMiNT today.
48332         * lib/fwriting.c (fwriting): Likewise.
48333         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48334
48335 2009-02-28  Bruno Haible  <bruno@clisp.org>
48336
48337         * tests/test-freadseek.c (main): Disable test beyond end of file on
48338         FreeMiNT.
48339         * tests/test-ftello.c (main): Likewise.
48340         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48341
48342 2009-02-28  Bruno Haible  <bruno@clisp.org>
48343
48344         Add tentative support for FreeMiNT.
48345         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48346         * lib/fpurge.c (fpurge): Likewise.
48347         * lib/freadable.c (freadable): Likewise.
48348         * lib/freading.c (freading): Likewise.
48349         * lib/freadptr.c (freadptr): Likewise.
48350         * lib/freadseek.c (freadptrinc): Likewise.
48351         * lib/fseeko.c (rpl_fseeko): Likewise.
48352         * lib/fseterr.c (fseterr): Likewise.
48353         * lib/fwritable.c (fwritable): Likewise.
48354         * lib/fwriting.c (fwriting): Likewise.
48355         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48356         Hourihane.
48357         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48358
48359 2009-02-28  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48362         SIGCHLD.
48363         Reported by Jim Meyering.
48364
48365 2009-02-28  Bruno Haible  <bruno@clisp.org>
48366
48367         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48368         Mention the results of these tests on various platforms.
48369         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48370         order.
48371         * doc/posix-functions/printf.texi: Likewise.
48372         * doc/posix-functions/snprintf.texi: Likewise.
48373         * doc/posix-functions/sprintf.texi: Likewise.
48374         * doc/posix-functions/vfprintf.texi: Likewise.
48375         * doc/posix-functions/vprintf.texi: Likewise.
48376         * doc/posix-functions/vsnprintf.texi: Likewise.
48377         * doc/posix-functions/vsprintf.texi: Likewise.
48378         * doc/glibc-functions/obstack_printf.texi: Likewise.
48379         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48380
48381 2009-02-28  Bruno Haible  <bruno@clisp.org>
48382
48383         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48384         Reported by Loïc Minier <lool@dooz.org>.
48385
48386 2009-02-27  Bruno Haible  <bruno@clisp.org>
48387
48388         * gnulib-tool (func_import): Make the sed expression used to create the
48389         sed script for updating the .gitignore file POSIX compliant.
48390         Reported by Eric Blake.
48391
48392 2009-02-27  Bruno Haible  <bruno@clisp.org>
48393
48394         * gnulib-tool (sed): Don't alias as "sed --posix".
48395         Reported by Eric Blake.
48396
48397 2009-02-27  Bruno Haible  <bruno@clisp.org>
48398
48399         Avoid test link errors.
48400         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48401         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48402         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48403         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48405
48406 2009-02-27  Bruno Haible  <bruno@clisp.org>
48407
48408         Avoid spurious "(cached)" in configure output.
48409         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48410         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48411         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48413         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48414         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48415         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48416         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48417         Reported by Eric Blake.
48418
48419 2009-02-27  Eric Blake  <ebb9@byu.net>
48420
48421         printf: fix regression in previous patch
48422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48423
48424 2009-02-27  Bruno Haible  <bruno@clisp.org>
48425
48426         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48427         value.
48428         * lib/stdint.in.h: Likewise.
48429         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48430
48431 2009-02-27  Eric Blake  <ebb9@byu.net>
48432
48433         doc: mention more functions added in cygwin 1.7.0
48434         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48435         addition.
48436         * doc/posix-functions/open_wmemstream.texi: Likewise.
48437         * doc/posix-functions/wcsnlen.texi: Likewise.
48438         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48439         * doc/posix-functions/wcstod.texi: Likewise.
48440         * doc/posix-functions/wcstof.texi: Likewise.
48441         * doc/posix-functions/wcstoimax.texi: Likewise.
48442         * doc/posix-functions/wcstok.texi: Likewise.
48443         * doc/posix-functions/wcstoumax.texi: Likewise.
48444
48445         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48447         * doc/posix-functions/fprintf.texi: Update.
48448         * doc/posix-functions/printf.texi: Update.
48449         * doc/posix-functions/snprintf.texi: Update.
48450         * doc/posix-functions/sprintf.texi: Update.
48451         * doc/posix-functions/vfprintf.texi: Update.
48452         * doc/posix-functions/vprintf.texi: Update.
48453         * doc/posix-functions/vsnprintf.texi: Update.
48454         * doc/posix-functions/vsprintf.texi: Update.
48455         * doc/glibc-functions/obstack_printf.texi: Update.
48456         * doc/glibc-functions/obstack_vprintf.texi: Update.
48457
48458 2009-02-26  Eric Blake  <ebb9@byu.net>
48459
48460         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48461         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48462         compilation bug by using runtime conversion.
48463         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48464         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48465         * modules/ceill-tests (Files): Use nan.h.
48466         * modules/floorl-tests (Files): Likewise.
48467         * modules/frexpl-tests (Files): Likewise.
48468         * modules/isnanl-tests (Files): Likewise.
48469         * modules/ldexpl-tests (Files): Likewise.
48470         * modules/roundl-tests (Files): Likewise.
48471         * modules/truncl-tests (Files): Likewise.
48472         * tests/test-ceill.c (main): Use a working NaN.
48473         * tests/test-floorl.c (main): Likewise.
48474         * tests/test-frexpl.c (main): Likewise.
48475         * tests/test-isnan.c (test_long_double): Likewise.
48476         * tests/test-isnanl.h (main): Likewise.
48477         * tests/test-ldexpl.h (main): Likewise.
48478         * tests/test-roundl.h (main): Likewise.
48479         * tests/test-truncl.h (main): Likewise.
48480         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48481
48482 2009-02-26  Eric Blake  <ebb9@byu.net>
48483             Bruno Haible  <bruno@clisp.org>
48484
48485         Work around a *printf bug with %ls on Solaris.
48486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48487         precision is specified, sprintf stops converting the wide string
48488         argument when the number of bytes that have been produced by this
48489         conversion equals or exceeds the precision.
48490         * doc/posix-functions/fprintf.texi: Update.
48491         * doc/posix-functions/printf.texi: Update.
48492         * doc/posix-functions/snprintf.texi: Update.
48493         * doc/posix-functions/sprintf.texi: Update.
48494         * doc/posix-functions/vfprintf.texi: Update.
48495         * doc/posix-functions/vprintf.texi: Update.
48496         * doc/posix-functions/vsnprintf.texi: Update.
48497         * doc/posix-functions/vsprintf.texi: Update.
48498         * doc/glibc-functions/obstack_printf.texi: Update.
48499         * doc/glibc-functions/obstack_vprintf.texi: Update.
48500
48501 2009-02-26  Eric Blake  <ebb9@byu.net>
48502
48503         stdlib: favor compiler check of random.h
48504         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48505         to avoid an ObjC random.h installed by Swarm.
48506
48507 2009-02-26  Bruno Haible  <bruno@clisp.org>
48508
48509         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48510         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48511         Reported by Gary V. Vaughan <gary@gnu.org>.
48512
48513 2009-02-26  Bruno Haible  <bruno@clisp.org>
48514
48515         Fix *printf behaviour regarding the %ls directive.
48516         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48517         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48518         NEED_PRINTF_DIRECTIVE_LS.
48519         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48520         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48522         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48523         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48524         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48525         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48526         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48530         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48534         * doc/posix-functions/fprintf.texi: Update.
48535         * doc/posix-functions/printf.texi: Update.
48536         * doc/posix-functions/snprintf.texi: Update.
48537         * doc/posix-functions/sprintf.texi: Update.
48538         * doc/posix-functions/vfprintf.texi: Update.
48539         * doc/posix-functions/vprintf.texi: Update.
48540         * doc/posix-functions/vsnprintf.texi: Update.
48541         * doc/posix-functions/vsprintf.texi: Update.
48542         * doc/glibc-functions/obstack_printf.texi: Update.
48543         * doc/glibc-functions/obstack_vprintf.texi: Update.
48544         Reported by Eric Blake.
48545
48546 2009-02-25  Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48549         with known value.
48550         Reported by Gary V. Vaughan <gary@gnu.org>.
48551
48552 2009-02-25  Bruno Haible  <bruno@clisp.org>
48553
48554         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48555         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48556         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48557         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48558         Reported by Gary V. Vaughan <gary@gnu.org>.
48559
48560 2009-02-25  Bruno Haible  <bruno@clisp.org>
48561
48562         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48563         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48564         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48565         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48566         Reported by Gary V. Vaughan <gary@gnu.org>.
48567
48568 2009-02-25  Eric Blake  <ebb9@byu.net>
48569
48570         tests: skip fseek/ftell tests if ungetc is broken
48571         * m4/ungetc.m4: New file.
48572         * modules/fseek-tests: Split test, so ungetc dependency is
48573         separate from rest of test.
48574         * modules/fseeko-tests: Likewise.
48575         * modules/ftell-tests: Likewise.
48576         * modules/ftello-tests: Likewise.
48577         * tests/test-fseek.c (main): Isolate ungetc dependency.
48578         * tests/test-fseeko.c (main): Likewise.
48579         * tests/test-ftell.c (main): Likewise.
48580         * tests/test-ftello.c (main): Likewise.
48581         * tests/test-fseek2.sh: New file.
48582         * tests/test-fseeko2.sh: Likewise.
48583         * tests/test-ftell2.sh: Likewise.
48584         * tests/test-ftello2.sh: Likewise.
48585
48586 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
48587
48588         test-getaddrinfo: fix usage of skip return code 77
48589         * tests/test-gettaddrinfo.c: Return skip code 77 only
48590         for first occurrence of skip (4x77 is not 77)
48591
48592 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48593
48594         strtod: avoid C99 decl-after-statement
48595         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48596
48597 2009-02-24  Eric Blake  <ebb9@byu.net>
48598
48599         strtod: detect HP-UX 11.31 bug
48600         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48601         Reported by Gary V. Vaughan.
48602
48603 2009-02-23  Bruno Haible  <bruno@clisp.org>
48604
48605         Fix invalid read past end of memory block.
48606         * lib/vasnprintf.c (DCHAR_SET): Define.
48607         (local_wcslen): Define only when needed.
48608         (local_strnlen, local_wcsnlen): New functions.
48609         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48610         directives that involve a conversion ourselves.
48611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48612         wcsnlen, mbrtowc, wcrtomb.
48613         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48614         * tests/test-vasprintf-posix.c (test_function): Likewise.
48615         * tests/test-snprintf-posix.h (test_function): Likewise.
48616         * tests/test-sprintf-posix.h (test_function): Likewise.
48617         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48618
48619 2009-02-22  Bruno Haible  <bruno@clisp.org>
48620
48621         Implement new clarified decomposition of Hangul syllables.
48622         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48623         of type LTV, return only a pairwise decomposition.
48624         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48625         Likewise.
48626         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48627         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48628         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48629
48630 2009-02-22  Bruno Haible  <bruno@clisp.org>
48631
48632         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48633         zero-length results and shrink excess allocated memory.
48634         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48635         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48636         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48637         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48638         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48639         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48640         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48641         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48642         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48643         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48644         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48645         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48646
48647 2009-02-21  Bruno Haible  <bruno@clisp.org>
48648
48649         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48650         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48651         spaces after a period. Put a space between a macro name and its
48652         argument list. Trivial rewordings.
48653         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48654         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48655         (main): Return 0 explicitly.
48656
48657 2009-02-21  Bruno Haible  <bruno@clisp.org>
48658
48659         Tests for module 'uninorm/filter'.
48660         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48661         * modules/uninorm/filter-tests: New file.
48662
48663         New module 'uninorm/filter'.
48664         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48665         uninorm_filter_flush, uninorm_filter_free): New declarations.
48666         * lib/uninorm/uninorm-filter.c: New file.
48667         * modules/uninorm/filter: New file.
48668
48669 2009-02-21  Bruno Haible  <bruno@clisp.org>
48670
48671         Tests for module 'uninorm/nfkc'.
48672         * tests/uninorm/test-nfkc.c: New file.
48673         * tests/uninorm/test-u8-nfkc.c: New file.
48674         * tests/uninorm/test-u16-nfkc.c: New file.
48675         * tests/uninorm/test-u32-nfkc.c: New file.
48676         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48677         * tests/uninorm/test-u32-nfkc-big.c: New file.
48678         * modules/uninorm/nfkc-tests: New file.
48679
48680         New module 'uninorm/nfkc'.
48681         * lib/uninorm/nfkc.c: New file.
48682         * modules/uninorm/nfkc: New file.
48683
48684         Tests for module 'uninorm/nfkd'.
48685         * tests/uninorm/test-nfkd.c: New file.
48686         * tests/uninorm/test-u8-nfkd.c: New file.
48687         * tests/uninorm/test-u16-nfkd.c: New file.
48688         * tests/uninorm/test-u32-nfkd.c: New file.
48689         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48690         * tests/uninorm/test-u32-nfkd-big.c: New file.
48691         * modules/uninorm/nfkd-tests: New file.
48692
48693         New module 'uninorm/nfkd'.
48694         * lib/uninorm/nfkd.c: New file.
48695         * modules/uninorm/nfkd: New file.
48696
48697         Tests for module 'uninorm/nfc'.
48698         * tests/uninorm/test-nfc.c: New file.
48699         * tests/uninorm/test-u8-nfc.c: New file.
48700         * tests/uninorm/test-u16-nfc.c: New file.
48701         * tests/uninorm/test-u32-nfc.c: New file.
48702         * tests/uninorm/test-u32-nfc-big.sh: New file.
48703         * tests/uninorm/test-u32-nfc-big.c: New file.
48704         * modules/uninorm/nfc-tests: New file.
48705
48706         New module 'uninorm/nfc'.
48707         * lib/uninorm/nfc.c: New file.
48708         * modules/uninorm/nfc: New file.
48709
48710         Tests for module 'uninorm/nfd'.
48711         * tests/uninorm/test-nfd.c: New file.
48712         * tests/uninorm/test-u8-nfd.c: New file.
48713         * tests/uninorm/test-u16-nfd.c: New file.
48714         * tests/uninorm/test-u32-nfd.c: New file.
48715         * tests/uninorm/test-u32-nfd-big.sh: New file.
48716         * tests/uninorm/test-u32-nfd-big.c: New file.
48717         * tests/uninorm/test-u32-normalize-big.h: New file.
48718         * tests/uninorm/test-u32-normalize-big.c: New file.
48719         * tests/uninorm/NormalizationTest.txt: New file, created from
48720         Unicode 5.1.0 NormalizationTest.txt.
48721         * modules/uninorm/nfd-tests: New file.
48722
48723         New module 'uninorm/nfd'.
48724         * lib/uninorm/nfd.c: New file.
48725         * modules/uninorm/nfd: New file.
48726
48727         New module 'uninorm/u32-normalize'.
48728         * lib/uninorm/u32-normalize.c: New file.
48729         * modules/uninorm/u32-normalize: New file.
48730
48731         New module 'uninorm/u16-normalize'.
48732         * lib/uninorm/u16-normalize.c: New file.
48733         * modules/uninorm/u16-normalize: New file.
48734
48735         New module 'uninorm/u8-normalize'.
48736         * lib/uninorm/u8-normalize.c: New file.
48737         * lib/uninorm/normalize-internal.h: New file.
48738         * lib/uninorm/u-normalize-internal.h: New file.
48739         * modules/uninorm/u8-normalize: New file.
48740
48741         New module 'uninorm/decompose-internal'.
48742         * lib/uninorm/decompose-internal.c: New file.
48743         * modules/uninorm/decompose-internal: New file.
48744
48745         Tests for module 'uninorm/composition'.
48746         * tests/uninorm/test-composition.c: New file.
48747         * modules/uninorm/composition-tests: New file.
48748
48749         New module 'uninorm/composition'.
48750         * lib/uninorm/composition.c: New file.
48751         * lib/uninorm/composition-table.gperf: New file, generated by
48752         gen-uni-tables.
48753         * modules/uninorm/composition: New file.
48754
48755         Tests for module 'uninorm/compat-decomposition'.
48756         * tests/uninorm/test-compat-decomposition.c: New file.
48757         * modules/uninorm/compat-decomposition-tests: New file.
48758
48759         New module 'uninorm/compat-decomposition'.
48760         * lib/uninorm/decompose-internal.h: New file.
48761         * lib/uninorm/compat-decomposition.c: New file.
48762         * modules/uninorm/compat-decomposition: New file.
48763
48764         Tests for module 'uninorm/canonical-decomposition'.
48765         * tests/uninorm/test-canonical-decomposition.c: New file.
48766         * modules/uninorm/canonical-decomposition-tests: New file.
48767
48768         New module 'uninorm/canonical-decomposition'.
48769         * lib/uninorm/canonical-decomposition.c: New file.
48770         * modules/uninorm/canonical-decomposition: New file.
48771
48772         Tests for module 'uninorm/decomposition'.
48773         * tests/uninorm/test-decomposition.c: New file.
48774         * modules/uninorm/decomposition-tests: New file.
48775
48776         New module 'uninorm/decomposition'.
48777         * lib/uninorm/decomposition.c: New file.
48778         * modules/uninorm/decomposition: New file.
48779
48780         New module 'uninorm/decomposition-table'.
48781         * lib/uninorm/decomposition-table.h: New file.
48782         * lib/uninorm/decomposition-table.c: New file.
48783         * lib/uninorm/decomposition-table1.h: New file, generated by
48784         gen-uni-tables.
48785         * lib/uninorm/decomposition-table2.h: New file, generated by
48786         gen-uni-tables.
48787         * modules/uninorm/decomposition-table: New file.
48788
48789         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48790         (UC_DECOMP_*): New enumeration items.
48791         (get_decomposition): New function.
48792         (struct decomp_table): New type.
48793         (output_decomposition, output_decomposition_tables): New functions.
48794         (unicode_composition_exclusions): New variable.
48795         (fill_composition_exclusions, debug_output_composition_tables): New
48796         functions.
48797         (main): Accept one more argument. Invoke fill_composition_exclusions.
48798         Output decomposition and composition tables.
48799
48800         New module 'uninorm/base'.
48801         * lib/uninorm.h: New file.
48802         * lib/unictype.h: Update comment.
48803         * modules/uninorm/base: New file.
48804
48805 2009-02-21  David Lutterkort  <lutter@redhat.com>
48806
48807         Tests for module 'safe-alloc'.
48808         * tests/test-safe-alloc.c: New file.
48809         * modules/safe-alloc-tests: New file.
48810
48811         New module 'safe-alloc'.
48812         * lib/safe-alloc.h: New file.
48813         * lib/safe-alloc.c: New file.
48814         * m4/safe-alloc.m4: New file.
48815         * modules/safe-alloc: New file.
48816         * doc/safe-alloc.texi: New file.
48817         * doc/gnulib.texi: Include it.
48818         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48819         safe-alloc.
48820
48821 2009-02-18  Bruno Haible  <bruno@clisp.org>
48822
48823         Fix link error on non-glibc systems.
48824         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48825         variable.
48826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48827
48828 2009-02-18  Jim Meyering  <meyering@redhat.com>
48829
48830         fts: avoid used-uninitialized error due to recent change
48831         * lib/fts.c (fts_read): Guard uses of the new member,
48832         parent->fts_n_dirs_remaining, since it's not relevant for
48833         the parent of a directory specified on the command-line.
48834
48835 2009-02-17  James Youngman  <jay@gnu.org>
48836             Bruno Haible  <bruno@clisp.org>
48837
48838         * m4/include_next.m4: Reformulate comment.
48839
48840 2009-02-16  Jim Meyering  <meyering@redhat.com>
48841
48842         fts: add #if guards so that the fts_lgpl module still builds
48843         * lib/fts.c: Guard just-added hash-table-using parts with
48844         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48845         Reported by Simon Josefsson.
48846
48847 2009-02-15  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/array-mergesort-tests: New file.
48850         * tests/test-array-mergesort.c: New file.
48851
48852         New module 'array-mergesort'.
48853         * modules/array-mergesort: New file.
48854         * lib/array-mergesort.h: New file.
48855
48856 2009-02-15  Bruno Haible  <bruno@clisp.org>
48857
48858         Fix 2009-02-07 commit.
48859         * lib/gen-uni-tables.c (output_predicate, output_category,
48860         output_combclass, output_bidi_category, output_decimal_digit,
48861         output_digit, output_numeric, output_mirror, output_scripts,
48862         output_ident_category, output_simple_mapping): Fix format directives.
48863         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48864
48865 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48866
48867         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48868         fixes are available from IBM.
48869
48870 2009-02-13  Jim Meyering  <meyering@redhat.com>
48871
48872         fts: arrange not to stat non-directories in more cases
48873         This makes GNU find (when it doesn't need to stat each file)
48874         *much* more efficient at traversing reiserfs file systems.
48875         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48876         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48877         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48878         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48879         (leaf_optimization_applies): New function.
48880         (LCO_hash, LCO_compare): New helper functions.
48881         (link_count_optimize_ok): New function.
48882         (fts_stat): Initialize new member (if dir).
48883         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48884         we've just stat'ed a directory.  Skip the stat call when possible.
48885         ---
48886         Note this AFS-related exchange:
48887         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48888         and note find's pioctl call in find/fstype.c.
48889         But that is necessary only if you want to enable the
48890         optimization for AFS, and for now, I don't.
48891
48892         fts: move a function definition "up" (no semantic change)
48893         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48894         "up" to precede upcoming use of a related function.
48895
48896 2009-02-11  Jim Meyering  <meyering@redhat.com>
48897
48898         fts: correct internal computation of nlinks (optimization-related)
48899         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48900         whether the current entry is a directory, so don't test it.
48901
48902 2009-02-10  Bruno Haible  <bruno@clisp.org>
48903
48904         Tests for module 'uniwbrk/ulc-wordbreaks'.
48905         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48906         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48907         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48908
48909         Tests for module 'uniwbrk/u32-wordbreaks'.
48910         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48911         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48912
48913         Tests for module 'uniwbrk/u16-wordbreaks'.
48914         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48915         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48916
48917         Tests for module 'uniwbrk/u8-wordbreaks'.
48918         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48919         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48920
48921 2009-02-10  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48924         property.
48925         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48926         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48927         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48928
48929 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48930
48931         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48932         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48933
48934 2009-02-10  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48937         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48938         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48939         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48940         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48941         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48942
48943 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48944
48945         * lib/sockets.h (gl_fd_to_handle): New function.
48946
48947         * tests/test-sockets.c: Call gl_fd_to_handle.
48948
48949 2009-02-09  Bruno Haible  <bruno@clisp.org>
48950
48951         * doc/havelib.texi: Document the conventions on bi-arch systems.
48952
48953 2009-02-08  Bruno Haible  <bruno@clisp.org>
48954
48955         Document the AC_LIB_LINKFLAGS macro.
48956         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48957         * doc/gnulib.texi: Include it.
48958
48959 2009-02-08  Bruno Haible  <bruno@clisp.org>
48960
48961         Fix wrong order of sections, compared to TOC.
48962         * doc/gnulib.texi: Include relocatable-maint.texi after the
48963         "Regular expressions" node, not before.
48964
48965 2009-02-08  Bruno Haible  <bruno@clisp.org>
48966
48967         Tests for module 'unicase/totitle'.
48968         * modules/unicase/totitle-tests: New file.
48969
48970         Tests for module 'unicase/tolower'.
48971         * modules/unicase/tolower-tests: New file.
48972
48973         Tests for module 'unicase/toupper'.
48974         * modules/unicase/toupper-tests: New file.
48975         * tests/unicase/test-mapping-part1.h: New file.
48976         * tests/unicase/test-mapping-part2.h: New file.
48977
48978         New module 'unicase/totitle'.
48979         * modules/unicase/totitle: New file.
48980         * lib/unicase/totitle.c: New file.
48981
48982         New module 'unicase/tolower'.
48983         * modules/unicase/tolower: New file.
48984         * lib/unicase/tolower.c: New file.
48985
48986         New module 'unicase/toupper'.
48987         * modules/unicase/toupper: New file.
48988         * lib/unicase/toupper.c: New file.
48989         * lib/unicase/simple-mapping.h: New file.
48990
48991         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48992         (mapping_table): New structure.
48993         (output_simple_mapping): New function.
48994         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48995         * modules/gen-uni-tables (Description): Update.
48996         * lib/unicase/toupper.h: New file, automatically generated by
48997         gen-uni-tables.
48998         * lib/unicase/tolower.h: New file, automatically generated by
48999         gen-uni-tables.
49000         * lib/unicase/totitle.h: New file, automatically generated by
49001         gen-uni-tables.
49002         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49003         gen-uni-tables.
49004         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49005         gen-uni-tables.
49006         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49007         gen-uni-tables.
49008
49009         New module 'unicase/base'.
49010         * modules/unicase/base: New file.
49011         * lib/unicase.h: New file.
49012
49013 2009-02-08  Bruno Haible  <bruno@clisp.org>
49014
49015         New module 'uniwbrk/ulc-wordbreaks'.
49016         * modules/uniwbrk/ulc-wordbreaks: New file.
49017         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49018
49019         New module 'uniwbrk/u32-wordbreaks'.
49020         * modules/uniwbrk/u32-wordbreaks: New file.
49021         * lib/uniwbrk/u32-wordbreaks.c: New file.
49022
49023         New module 'uniwbrk/u16-wordbreaks'.
49024         * modules/uniwbrk/u16-wordbreaks: New file.
49025         * lib/uniwbrk/u16-wordbreaks.c: New file.
49026
49027         New module 'uniwbrk/u8-wordbreaks'.
49028         * modules/uniwbrk/u8-wordbreaks: New file.
49029         * lib/uniwbrk/u8-wordbreaks.c: New file.
49030         * lib/uniwbrk/u-wordbreaks.h: New file.
49031
49032         New module 'uniwbrk/table'.
49033         * modules/uniwbrk/table: New file.
49034         * lib/uniwbrk/wbrktable.h: New file.
49035         * lib/uniwbrk/wbrktable.c: New file.
49036
49037         New module 'uniwbrk/wordbreak-property'.
49038         * modules/uniwbrk/wordbreak-property: New file.
49039         * lib/uniwbrk/wordbreak-property.c: New file.
49040
49041         * lib/gen-uni-tables.c (WBP_*): New enum items.
49042         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49043         (unicode_org_wbp): New variable.
49044         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49045         New functions.
49046         (wbp_table): New structure.
49047         (output_wbp, output_wbrk_tables): New functions.
49048         (main): Accept additional argument. Invoke fill_org_wbp,
49049         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49050         output_wbrk_tables.
49051         * modules/gen-uni-tables (Description): Update.
49052         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49053         gen-uni-tables.
49054
49055         New module 'uniwbrk/base'.
49056         * modules/uniwbrk/base: New file.
49057         * lib/uniwbrk.h: New file.
49058
49059 2009-02-08  Bruno Haible  <bruno@clisp.org>
49060
49061         Update to Unicode 5.1.0.
49062         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49063         U+2185..U+2188.
49064         (is_property_default_ignorable_code_point): Don't include characters
49065         of category Cc or Cs and not-a-characters.
49066         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49067         U+0D79, U+109E, U+109F, U+A60C.
49068         * lib/unictype/bidi_of.h: Regenerated.
49069         * lib/unictype/blocks.h: Regenerated.
49070         * lib/unictype/categ_C.h: Regenerated.
49071         * lib/unictype/categ_Cf.h: Regenerated.
49072         * lib/unictype/categ_Cn.h: Regenerated.
49073         * lib/unictype/categ_L.h: Regenerated.
49074         * lib/unictype/categ_Ll.h: Regenerated.
49075         * lib/unictype/categ_Lm.h: Regenerated.
49076         * lib/unictype/categ_Lo.h: Regenerated.
49077         * lib/unictype/categ_Lu.h: Regenerated.
49078         * lib/unictype/categ_M.h: Regenerated.
49079         * lib/unictype/categ_Mc.h: Regenerated.
49080         * lib/unictype/categ_Me.h: Regenerated.
49081         * lib/unictype/categ_Mn.h: Regenerated.
49082         * lib/unictype/categ_N.h: Regenerated.
49083         * lib/unictype/categ_Nd.h: Regenerated.
49084         * lib/unictype/categ_Nl.h: Regenerated.
49085         * lib/unictype/categ_No.h: Regenerated.
49086         * lib/unictype/categ_P.h: Regenerated.
49087         * lib/unictype/categ_Pd.h: Regenerated.
49088         * lib/unictype/categ_Pe.h: Regenerated.
49089         * lib/unictype/categ_Pf.h: Regenerated.
49090         * lib/unictype/categ_Pi.h: Regenerated.
49091         * lib/unictype/categ_Po.h: Regenerated.
49092         * lib/unictype/categ_Ps.h: Regenerated.
49093         * lib/unictype/categ_S.h: Regenerated.
49094         * lib/unictype/categ_Sk.h: Regenerated.
49095         * lib/unictype/categ_Sm.h: Regenerated.
49096         * lib/unictype/categ_So.h: Regenerated.
49097         * lib/unictype/categ_of.h: Regenerated.
49098         * lib/unictype/combining.h: Regenerated.
49099         * lib/unictype/ctype_alnum.h: Regenerated.
49100         * lib/unictype/ctype_alpha.h: Regenerated.
49101         * lib/unictype/ctype_graph.h: Regenerated.
49102         * lib/unictype/ctype_lower.h: Regenerated.
49103         * lib/unictype/ctype_print.h: Regenerated.
49104         * lib/unictype/ctype_punct.h: Regenerated.
49105         * lib/unictype/ctype_upper.h: Regenerated.
49106         * lib/unictype/decdigit.h: Regenerated.
49107         * lib/unictype/digit.h: Regenerated.
49108         * lib/unictype/mirror.h: Regenerated.
49109         * lib/unictype/numeric.h: Regenerated.
49110         * lib/unictype/pr_alphabetic.h: Regenerated.
49111         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49112         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49113         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49114         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49115         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49116         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49117         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49118         * lib/unictype/pr_combining.h: Regenerated.
49119         * lib/unictype/pr_dash.h: Regenerated.
49120         * lib/unictype/pr_decimal_digit.h: Regenerated.
49121         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49122         * lib/unictype/pr_deprecated.h: Regenerated.
49123         * lib/unictype/pr_diacritic.h: Regenerated.
49124         * lib/unictype/pr_extender.h: Regenerated.
49125         * lib/unictype/pr_format_control.h: Regenerated.
49126         * lib/unictype/pr_grapheme_base.h: Regenerated.
49127         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49128         * lib/unictype/pr_grapheme_link.h: Regenerated.
49129         * lib/unictype/pr_id_continue.h: Regenerated.
49130         * lib/unictype/pr_id_start.h: Regenerated.
49131         * lib/unictype/pr_ideographic.h: Regenerated.
49132         * lib/unictype/pr_ignorable_control.h: Regenerated.
49133         * lib/unictype/pr_lowercase.h: Regenerated.
49134         * lib/unictype/pr_math.h: Regenerated.
49135         * lib/unictype/pr_numeric.h: Regenerated.
49136         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49137         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49138         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49139         * lib/unictype/pr_other_id_continue.h: Regenerated.
49140         * lib/unictype/pr_other_lowercase.h: Regenerated.
49141         * lib/unictype/pr_other_math.h: Regenerated.
49142         * lib/unictype/pr_punctuation.h: Regenerated.
49143         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49144         * lib/unictype/pr_soft_dotted.h: Regenerated.
49145         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49146         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49147         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49148         * lib/unictype/pr_uppercase.h: Regenerated.
49149         * lib/unictype/pr_xid_continue.h: Regenerated.
49150         * lib/unictype/pr_xid_start.h: Regenerated.
49151         * lib/unictype/pr_zero_width.h: Regenerated.
49152         * lib/unictype/scripts.h: Regenerated.
49153         * lib/unictype/scripts_byname.gperf: Regenerated.
49154         * lib/unictype/sy_java_ident.h: Regenerated.
49155         * lib/unilbrk/lbrkprop1.h: Regenerated.
49156         * lib/unilbrk/lbrkprop2.h: Regenerated.
49157         * tests/unictype/test-categ_C.c: Regenerated.
49158         * tests/unictype/test-categ_Cf.c: Regenerated.
49159         * tests/unictype/test-categ_Cn.c: Regenerated.
49160         * tests/unictype/test-categ_L.c: Regenerated.
49161         * tests/unictype/test-categ_Ll.c: Regenerated.
49162         * tests/unictype/test-categ_Lm.c: Regenerated.
49163         * tests/unictype/test-categ_Lo.c: Regenerated.
49164         * tests/unictype/test-categ_Lu.c: Regenerated.
49165         * tests/unictype/test-categ_M.c: Regenerated.
49166         * tests/unictype/test-categ_Mc.c: Regenerated.
49167         * tests/unictype/test-categ_Me.c: Regenerated.
49168         * tests/unictype/test-categ_Mn.c: Regenerated.
49169         * tests/unictype/test-categ_N.c: Regenerated.
49170         * tests/unictype/test-categ_Nd.c: Regenerated.
49171         * tests/unictype/test-categ_Nl.c: Regenerated.
49172         * tests/unictype/test-categ_No.c: Regenerated.
49173         * tests/unictype/test-categ_P.c: Regenerated.
49174         * tests/unictype/test-categ_Pd.c: Regenerated.
49175         * tests/unictype/test-categ_Pe.c: Regenerated.
49176         * tests/unictype/test-categ_Pf.c: Regenerated.
49177         * tests/unictype/test-categ_Pi.c: Regenerated.
49178         * tests/unictype/test-categ_Po.c: Regenerated.
49179         * tests/unictype/test-categ_Ps.c: Regenerated.
49180         * tests/unictype/test-categ_S.c: Regenerated.
49181         * tests/unictype/test-categ_Sk.c: Regenerated.
49182         * tests/unictype/test-categ_Sm.c: Regenerated.
49183         * tests/unictype/test-categ_So.c: Regenerated.
49184         * tests/unictype/test-ctype_alnum.c: Regenerated.
49185         * tests/unictype/test-ctype_alpha.c: Regenerated.
49186         * tests/unictype/test-ctype_graph.c: Regenerated.
49187         * tests/unictype/test-ctype_lower.c: Regenerated.
49188         * tests/unictype/test-ctype_print.c: Regenerated.
49189         * tests/unictype/test-ctype_punct.c: Regenerated.
49190         * tests/unictype/test-ctype_upper.c: Regenerated.
49191         * tests/unictype/test-decdigit.h: Regenerated.
49192         * tests/unictype/test-digit.h: Regenerated.
49193         * tests/unictype/test-numeric.h: Regenerated.
49194         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49195         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49196         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49197         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49198         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49199         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49200         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49201         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49202         * tests/unictype/test-pr_combining.c: Regenerated.
49203         * tests/unictype/test-pr_dash.c: Regenerated.
49204         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49205         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49206         * tests/unictype/test-pr_deprecated.c: Regenerated.
49207         * tests/unictype/test-pr_diacritic.c: Regenerated.
49208         * tests/unictype/test-pr_extender.c: Regenerated.
49209         * tests/unictype/test-pr_format_control.c: Regenerated.
49210         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49211         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49212         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49213         * tests/unictype/test-pr_id_continue.c: Regenerated.
49214         * tests/unictype/test-pr_id_start.c: Regenerated.
49215         * tests/unictype/test-pr_ideographic.c: Regenerated.
49216         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49217         * tests/unictype/test-pr_lowercase.c: Regenerated.
49218         * tests/unictype/test-pr_math.c: Regenerated.
49219         * tests/unictype/test-pr_numeric.c: Regenerated.
49220         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49221         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49222         Regenerated.
49223         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49224         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49225         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49226         * tests/unictype/test-pr_other_math.c: Regenerated.
49227         * tests/unictype/test-pr_punctuation.c: Regenerated.
49228         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49229         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49230         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49231         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49232         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49233         * tests/unictype/test-pr_uppercase.c: Regenerated.
49234         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49235         * tests/unictype/test-pr_xid_start.c: Regenerated.
49236         * tests/unictype/test-pr_zero_width.c: Regenerated.
49237
49238         Update to Unicode 5.1.0.
49239         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49240         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49241         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49242         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49243         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49244         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49245         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49246         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49247         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49248         (nonspacing_table_ind): Update.
49249         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49250
49251         Update to Unicode 5.1.0.
49252         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49253         code transform.
49254         * lib/uniname/uniname.c (unicode_character_name,
49255         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49256         * lib/uniname/uninames.h: Regenerated.
49257         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49258
49259 2009-02-07  Bruno Haible  <bruno@clisp.org>
49260
49261         Merge gen-ctype and gen-lbrk into a single program.
49262         * lib/gen-uni-tables.c: New file, incorporating
49263         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49264         Add directory prefixes to the names of the generated files.
49265         * lib/unictype/gen-ctype.c: Remove file.
49266         * lib/unilbrk/gen-lbrk.c: Remove file.
49267         * modules/gen-uni-tables: New file.
49268         * modules/unictype/gen-ctype: Remove file.
49269         * modules/unilbrk/gen-lbrk: Remove file.
49270
49271 2009-02-07  Bruno Haible  <bruno@clisp.org>
49272
49273         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49274
49275         New module 'unistr/u32-strcoll'.
49276         * modules/unistr/u32-strcoll: New file.
49277         * lib/unistr/u32-strcoll.c: New file.
49278
49279         New module 'unistr/u16-strcoll'.
49280         * modules/unistr/u16-strcoll: New file.
49281         * lib/unistr/u16-strcoll.c: New file.
49282
49283         New module 'unistr/u8-strcoll'.
49284         * modules/unistr/u8-strcoll: New file.
49285         * lib/unistr/u8-strcoll.c: New file.
49286         * lib/unistr/u-strcoll.h: New file.
49287
49288 2009-02-07  Bruno Haible  <bruno@clisp.org>
49289
49290         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49291         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49292         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49293         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49294         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49295         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49296
49297 2009-02-07  Bruno Haible  <bruno@clisp.org>
49298
49299         Make 64-bit clean.
49300         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49301         output_combclass, output_bidi_category, output_decimal_digit,
49302         output_digit, output_numeric, output_mirror, output_scripts,
49303         output_ident_category): Use proper width specifier in format strings.
49304
49305 2009-02-07  Bruno Haible  <bruno@clisp.org>
49306
49307         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49308         failure behaviour.
49309
49310 2009-02-07  Jim Meyering  <meyering@redhat.com>
49311
49312         regex: avoid compilation failure with upcoming gcc-4.4
49313         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49314         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49315         "... error: integer overflow in preprocessor expression".
49316
49317 2009-02-05  Ben Pfaff  <blp@gnu.org>
49318
49319         Fix link errors on Windows when close module is used.
49320         * modules/close: Add $(LIB_CLOSE) to Link section.
49321         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49322         $(LIB_CLOSE) on Windows.
49323
49324 2009-02-05  Jim Meyering  <meyering@redhat.com>
49325
49326         still avoid unused-parameter warnings, but do it cleanly
49327         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49328         (get_fs_usage): Cast to void instead.
49329         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49330         (dev_from_mount_options, read_file_system_list): Cast to void.
49331         Prompted by Bruno Haible.
49332
49333 2009-02-04  Jim Meyering  <meyering@redhat.com>
49334
49335         fsusage.c: correct copyright year
49336         * lib/fsusage.c: Reflect year in which the change is pushed into
49337
49338         avoid misc. warnings
49339         * lib/fsusage.c (UNUSED_PARAM): Define.
49340         (get_fs_usage): Mark parameter "disk" as unused.
49341         * lib/getugroups.c (getgrent): Use "void" in prototype.
49342         * lib/mountlist.c: Mark unused parameters.
49343         (read_file_system_list): Declare a local with "const".
49344         * lib/nanosleep.c (getnow): Declare static.
49345         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49346
49347         dirfd: set errno upon failure
49348         * lib/dirfd.c: Include <errno.h>.
49349         Set errno to ENOTSUP when returning -1.
49350         * modules/dirfd (Depends-on): Add errno.
49351         Suggested by John Kodis <kodis@comcast.net>.
49352
49353 2009-02-01  Bruno Haible  <bruno@clisp.org>
49354
49355         Don't assume sizeof (long) >= sizeof (void *).
49356         * lib/memcmp.c: Include stdint.h.
49357         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49358         srcp2 to 'const byte *'.
49359         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49360         types to uintptr_t.
49361         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49362         * modules/memcmp (Depends-on): Add stdint.
49363         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49364
49365 2009-01-30  Eric Blake  <ebb9@byu.net>
49366
49367         fix more require-before-expand issues
49368         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49369         expand, AC_PROG_AWK.
49370         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49371
49372 2009-01-28  Eric Blake  <ebb9@byu.net>
49373
49374         version-etc: use consistent URL formatting
49375         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49376         Improve formatting.  Use fputs for string without %.
49377
49378 2009-01-28  Jim Meyering  <meyering@redhat.com>
49379
49380         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49381         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49382         "underquoted definition of NAME" from autoconf-2.59.
49383
49384 2009-01-28  Bruno Haible  <bruno@clisp.org>
49385
49386         * doc/gnulib.texi: Add "Obsolete modules" to index.
49387
49388 2009-01-28  Jim Meyering  <meyering@redhat.com>
49389
49390         useless-if-before-free: recognize more variants
49391         * build-aux/useless-if-before-free: Also recognize e.g.,
49392         if (NULL != p) free (p);
49393
49394 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49395
49396         test-getaddrinfo: skip (don't fail) this test when there's no network
49397         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49398         on the presumption that it means you lack network access.
49399
49400 2009-01-26  Jim Meyering  <meyering@redhat.com>
49401
49402         fflush: avoid warnings on modern systems
49403         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49404         pos and result, into scopes where they're used.
49405
49406 2009-01-26  Eric Blake  <ebb9@byu.net>
49407
49408         Silence warning reintroduced by recent extensions patch.
49409         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49410         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49411         autoconf.
49412
49413         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49414         * m4/00gnulib.m4: New file.
49415         * gnulib-tool (func_get_filelist): Always use it.
49416         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49417         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49418
49419 2009-01-25  Bruno Haible  <bruno@clisp.org>
49420
49421         Make test-quotearg work on MacOS X and AIX.
49422         * tests/test-quotearg.sh: New file.
49423         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49424         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49425         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49426         include <libintl.h>.
49427         (fake_locale): Remove variable.
49428         (gettext, dgettext, dcgettext): Remove functions.
49429         (main): Instead of setting a fake locale, set a real locale. Call
49430         textdomain and bindtextdomain.
49431         * modules/quotearg-tests (Files): Add the new files.
49432         (Depends-on): Add gettext, setenv, unsetenv.
49433         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49434         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49435         Augment TESTS_ENVIRONMENT.
49436
49437 2009-01-25  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49440         fr_FR.ISO8859-1 locale on MacOS X.
49441         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49442         ja_JP.eucJP locale on MacOS X.
49443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49444         zh_CN.GB18030 locale on MacOS X.
49445
49446 2009-01-25  Bruno Haible  <bruno@clisp.org>
49447
49448         Avoid link errors on MacOS X 10.3.
49449         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49450         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49451
49452 2009-01-25  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49455         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49456         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49457         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49458         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49459         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49460         posix_spawnattr_init, posix_spawnattr_setsigmask,
49461         posix_spawnattr_setflags, posix_spawnattr_destroy.
49462
49463         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49464         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49465         * modules/execute (Files): Remove m4/posix_spawn.m4.
49466         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49467         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49468         posix_spawnattr_init, posix_spawnattr_setsigmask,
49469         posix_spawnattr_setflags, posix_spawnattr_destroy.
49470
49471 2009-01-25  Bruno Haible  <bruno@clisp.org>
49472
49473         * lib/glthread/threadlib.c: Include <stdlib.h>.
49474
49475 2009-01-25  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/glthread/threadlib.c (dummy): New declaration.
49478
49479 2009-01-25  Bruno Haible  <bruno@clisp.org>
49480
49481         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49482         multibyte characters also for the GB18030 encoding. Don't crash when
49483         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49484
49485 2009-01-25  Bruno Haible  <bruno@clisp.org>
49486
49487         Avoid redefining 'struct random_data' on OSF/1 5.1.
49488         * lib/stdlib.in.h: Include <random.h> if it exists.
49489         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49490         HAVE_RANDOM_H. Include <random.h> when testing whether
49491         'struct random_data' exists.
49492         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49493
49494 2009-01-25  Bruno Haible  <bruno@clisp.org>
49495
49496         Don't install charset.alias on MacOS X >= 10.3.
49497         * lib/localcharset.c (DARWIN7): New macro.
49498         (get_charset_aliases): Hardcode the result for Darwin7.
49499         * modules/localcharset (install-exec-local): Don't install
49500         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49501
49502 2009-01-25  Bruno Haible  <bruno@clisp.org>
49503
49504         Don't install charset.alias on mingw and Cygwin.
49505         * modules/localcharset (install-exec-local): Don't install
49506         charset.alias on mingw and Cygwin, if the file does not yet exist.
49507         The result for these platforms is hardcoded in localcharset.c.
49508
49509 2009-01-25  Bruno Haible  <bruno@clisp.org>
49510
49511         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49513         before requiring AC_USE_SYSTEM_EXTENSIONS.
49514
49515 2009-01-25  Jim Meyering  <meyering@redhat.com>
49516
49517         c-strtod: avoid warnings
49518         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49519         "assignment discards qualifiers from pointer target type" warnings.
49520
49521 2009-01-24  Bruno Haible  <bruno@clisp.org>
49522
49523         Add support for non-UTF-8 locales on MacOS X.
49524         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49525         canonical encodings. For Darwin 7 and newer, don't map traditional
49526         encodings to UTF-8.
49527         Reported by Vincent Lefevre <vincent@vinc17.org>
49528         at <http://savannah.gnu.org/bugs/?25235>.
49529
49530 2009-01-24  Bruno Haible  <bruno@clisp.org>
49531
49532         * doc/gnulib.texi (Obsolete modules): New section.
49533         Reported by Mike Frysinger <vapier@gentoo.org>.
49534
49535 2009-01-24  Bruno Haible  <bruno@clisp.org>
49536
49537         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49538         (%.dvi): New rule.
49539
49540 2009-01-24  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49543         Reported by Eric Blake.
49544
49545 2009-01-24  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49548         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49549         Reported by Gary V. Vaughan <gary@gnu.org>.
49550
49551 2009-01-24  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49554
49555 2009-01-23  Bruno Haible  <bruno@clisp.org>
49556
49557         Make c-strtod, c-strtold usable in libraries.
49558         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49559         (C_STRTOD): Call strdup instead of xstrdup.
49560         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49561         * modules/c-strtold (Depends-on): Likewise.
49562         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49563         * NEWS: Mention the change.
49564         Reported by Michael Gold <mgold@ncf.ca>.
49565
49566 2009-01-23  Jim Meyering  <meyering@redhat.com>
49567
49568         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49569         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49570         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49571
49572 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49573
49574         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49575         GNU CoreUtils.
49576         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49577         * modules/version-etc (Description): Update.
49578
49579 2009-01-22  Bruno Haible  <bruno@clisp.org>
49580
49581         Cache the C locale object.
49582         * lib/c-strtod.c (c_locale_cache): New variable.
49583         (c_locale): New function.
49584         (C_STRTOD): Use it, and don't call freelocale.
49585         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49586         Suggested by Paolo Bonzini.
49587
49588 2009-01-21  Bruno Haible  <bruno@clisp.org>
49589
49590         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49591         conditions other than overflow.
49592
49593 2009-01-21  Bruno Haible  <bruno@clisp.org>
49594
49595         * lib/c-strtod.c: Include errno.h.
49596         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49597         value from STRTOD_L and STRTOD.
49598
49599 2009-01-21  Bruno Haible  <bruno@clisp.org>
49600         and Jim Meyering  <meyering@redhat.com>
49601
49602         nanosleep: skip configure test (fail it) for apple universal builds
49603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49604         universal builds, assume that nanosleep does not work.
49605         * modules/nanosleep (Depends-on): Add multiarch.
49606
49607         mktime: skip configure test (fail it) for apple universal builds
49608         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49609         universal builds, assume that mktime does not work.
49610         * modules/mktime (Depends-on): Add multiarch.
49611
49612 2009-01-21  Eric Blake  <ebb9@byu.net>
49613
49614         multiarch: avoid expand-before-require warning
49615         * modules/multiarch (configure.ac): Require, rather than expand,
49616         gl_MULTIARCH.
49617         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49618         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49619         enforce that all clients require it.  Partial reversion of
49620         2008-12-29 patch.
49621
49622         error: avoid expand-before-require warning
49623         * modules/errno (configure.ac): Require, rather than expand,
49624         gl_HEADER_ERRNO_H.
49625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49626         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49627         enforce that all clients require it.
49628
49629         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49630         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49631         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49632         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49633
49634 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49635
49636         Revert:
49637         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49638
49639         regex: do not depend on obsolete modules.
49640         * modules/regex: Remove memcmp and memmove.
49641
49642 2009-01-20  Bruno Haible  <bruno@clisp.org>
49643
49644         Make the 'link' module link on Windows NT 4.
49645         * lib/link.c (_WIN32_WINNT): Don't define.
49646         (CreateHardLinkFuncType): New type.
49647         (CreateHardLinkFunc, initialized): New variables.
49648         (initialize): New function.
49649         (link): Invoke CreateHardLink indirectly through the function pointer.
49650
49651 2009-01-20  Bruno Haible  <bruno@clisp.org>
49652
49653         Fix compilation failure on mingw.
49654         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49655
49656 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49657
49658         * doc/c-strtod.texi: Mention a couple of restrictions.
49659
49660 2009-01-20  Jim Meyering  <meyering@redhat.com>
49661
49662         gettimeofday: move more declarations out of functions
49663         * lib/gettimeofday.c: Move extern declarations of tzset and
49664         gmtime out of containing functions.  Prompted by Bruno Haible.
49665
49666 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49667
49668         regex: do not depend on obsolete modules.
49669         * modules/regex: Remove memcmp and memmove.
49670
49671 2009-01-19  Bruno Haible  <bruno@clisp.org>
49672
49673         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49674         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49675         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49676         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49677         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49678
49679 2009-01-19  Bruno Haible  <bruno@clisp.org>
49680
49681         * tests/test-link.c: Include <errno.h>.
49682         (main): Exit with code 77 when a hard link cannot be created due to
49683         the file system.
49684         * tests/test-link.sh: Skip test when a hard link cannot be created due
49685         to the file system.
49686         Suggested by Eric Blake.
49687
49688 2009-01-19  Martin Lambers  <marlam@marlam.de>
49689
49690         * modules/link-tests: New file.
49691         * tests/test-link.sh: New file.
49692         * tests/test-link.c: New file.
49693
49694 2009-01-19  Eric Blake  <ebb9@byu.net>
49695
49696         doc: mention another function added in cygwin 1.7.0
49697         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49698         Another new function in cygwin 1.7.
49699
49700 2009-01-19  Bruno Haible  <bruno@clisp.org>
49701
49702         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49703         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49704         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49705         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49706         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49707         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49708         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49709         * m4/md4.m4 (gl_MD4): Likewise.
49710         * m4/md5.m4 (gl_MD5): Likewise.
49711         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49712         * m4/sha1.m4 (gl_SHA1): Likewise.
49713         * m4/sha256.m4 (gl_SHA256): Likewise.
49714         * m4/sha512.m4 (gl_SHA512): Likewise.
49715
49716 2009-01-19  Bruno Haible  <bruno@clisp.org>
49717
49718         * modules/uniname/uniname-tests (Depends-on): Add progname.
49719         * tests/uniname/test-uninames.c: Include progname.h.
49720         (main): Call set_program_name.
49721
49722         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49723         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49724         (main): Call set_program_name.
49725
49726         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49727         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49728         (main): Call set_program_name.
49729
49730         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49731         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49732         (main): Call set_program_name.
49733
49734         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49735         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49736         (main): Call set_program_name.
49737
49738         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49739         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49740         (main): Call set_program_name.
49741
49742         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49743         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49744         (main): Call set_program_name.
49745
49746         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49747         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49748         (main): Call set_program_name.
49749
49750         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49751         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49752         (main): Call set_program_name.
49753
49754 2009-01-19  Eric Blake  <ebb9@byu.net>
49755
49756         test-unistd: test previous patch
49757         * tests/test-unistd.c: Test *_FILENO macros.
49758
49759         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49760         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49761         Guarantee a definition.
49762         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49763         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49764         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49765         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49766         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49767         Likewise.
49768         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49769         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49770         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49771         Likewise.
49772         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49773         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49774         (STDERR_FILENO): Likewise.
49775         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49776         (STDERR_FILENO): Likewise.
49777         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49778         (STDERR_FILENO): Likewise.
49779         Reported by Elbert Pol.
49780
49781 2009-01-19  Eric Blake  <ebb9@byu.net>
49782
49783         doc: mention more functions added in cygwin 1.7.0
49784         * doc/posix-functions/abort.texi (abort): Update wording related
49785         to cygwin.
49786         * doc/posix-functions/daylight.texi (daylight): Likewise.
49787         * doc/posix-functions/optarg.texi (optarg): Likewise.
49788         * doc/posix-functions/optarg.texi (opterr): Likewise.
49789         * doc/posix-functions/optarg.texi (optind): Likewise.
49790         * doc/posix-functions/optarg.texi (optopt): Likewise.
49791         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49792         worked in 1.5.x, and was withdrawn in 1.7.
49793         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49794         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49795         cygwin versions.
49796         * doc/posix-functions/perror.texi (perror): Likewise.
49797         * doc/posix-functions/printf.texi (printf): Likewise.
49798         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49799         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49800         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49801         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49802         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49803         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49804         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49805         Likewise.
49806         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49807         Likewise.
49808         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49809         this function.
49810         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49811         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49812         Likewise.
49813         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49814         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49815         * doc/posix-functions/confstr.texi (confstr): Likewise.
49816         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49817         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49818         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49819         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49820         * doc/posix-functions/fputws.texi (fputws): Likewise.
49821         * doc/posix-functions/fwide.texi (fwide): Likewise.
49822         * doc/posix-functions/getwc.texi (getwc): Likewise.
49823         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49824         * doc/posix-functions/putwc.texi (putwc): Likewise.
49825         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49826         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49827         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49828         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49829         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49830         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49831         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49832         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49833         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49834         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49835         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49836
49837 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49838
49839         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49840         * lib/ioctl.c: Include <sys/ioctl.h>.
49841
49842 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49843
49844         * modules/getdate-tests (Depends-on): Add progname.
49845         * tests/test-getdate.c: Use progname module, to avoid link errors
49846         on non-glibc systems.
49847
49848 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49849
49850         * modules/filenamecat-tests (Depends-on): Add progname.
49851         * modules/fstrcmp-tests (Depends-on): Likewise.
49852
49853         * tests/test-filenamecat.c: Use progname module, to avoid link
49854         errors on non-glibc systems.
49855         * tests/test-fstrcmp.c: Likewise.
49856
49857 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49858
49859         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49860         * lib/gettimeofday.c: Move extern declaration out of function.
49861
49862 2009-01-18  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49865         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49866         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49867
49868 2009-01-18  Bruno Haible  <bruno@clisp.org>
49869
49870         * lib/strftime.c (MEMPCPY): Remove unused macro.
49871         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49872
49873 2009-01-18  Martin Lambers  <marlam@marlam.de>
49874
49875         New module 'link'.
49876         * lib/unistd.in.h (link): New declaration.
49877         * lib/link.c: New file.
49878         * m4/link.m4: New file.
49879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49880         HAVE_LINK.
49881         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49882         * modules/link: New file.
49883         * doc/posix-functions/link.texi: Mention the new module.
49884
49885 2009-01-18  Bruno Haible  <bruno@clisp.org>
49886
49887         * tests/test-avltree_list.c (main): Call set_program_name.
49888         * tests/test-avltree_oset.c (main): Likewise.
49889         * tests/test-obstack-printf.c: Include progname.h.
49890         (main): Call set_program_name.
49891         * tests/test-quotearg.c: Include progname.h.
49892         (main): Call set_program_name.
49893         * tests/test-xmemdup0.c: Include progname.h.
49894         (main): Call set_program_name.
49895
49896 2009-01-18  Bruno Haible  <bruno@clisp.org>
49897
49898         New module 'alphasort'.
49899         * lib/dirent.in.h (alphasort): New declaration.
49900         * lib/alphasort.c: New file, from glibc with modifications.
49901         * m4/alphasort.m4: New file.
49902         * modules/alphasort: New file.
49903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49904         HAVE_ALPHASORT.
49905         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49906         HAVE_ALPHASORT.
49907         * doc/posix-functions/alphasort.texi: Mention the new module and the
49908         portability problems.
49909
49910 2009-01-18  Bruno Haible  <bruno@clisp.org>
49911
49912         New module 'scandir'.
49913         * lib/dirent.in.h (scandir): New declaration.
49914         * lib/scandir.c: New file, from glibc with modifications.
49915         * m4/scandir.m4: New file.
49916         * modules/scandir: New file.
49917         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49918         HAVE_SCANDIR.
49919         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49920         HAVE_SCANDIR.
49921         * doc/posix-functions/scandir.texi: Mention the new module and the
49922         portability problems.
49923
49924 2009-01-17  Bruno Haible  <bruno@clisp.org>
49925
49926         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49927         Update documentation.
49928         (func_remove_suffix): Escape all dots in the suffix. Update
49929         documentation.
49930         (func_filter_filelist): Update documentation.
49931         Reported by Ralf Wildenhues.
49932
49933 2009-01-17  Bruno Haible  <bruno@clisp.org>
49934
49935         * modules/dprintf-posix-tests: New file.
49936         * tests/test-dprintf-posix.sh: New file.
49937         * tests/test-dprintf-posix.c: New file.
49938
49939         New modules 'dprintf', 'dprintf-posix'.
49940         * lib/stdio.in.h (dprintf): New declaration.
49941         * lib/dprintf.c: New file.
49942         * m4/dprintf.m4: New file.
49943         * m4/dprintf-posix.m4: New file.
49944         * modules/dprintf: New file.
49945         * modules/dprintf-posix: New file.
49946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49947         HAVE_DPRINTF, REPLACE_DPRINTF.
49948         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49949         HAVE_DPRINTF, REPLACE_DPRINTF.
49950         * doc/posix-functions/dprintf.texi: Mention the new modules.
49951
49952 2009-01-17  Bruno Haible  <bruno@clisp.org>
49953
49954         * modules/vdprintf-posix-tests: New file.
49955         * tests/test-vdprintf-posix.sh: New file.
49956         * tests/test-vdprintf-posix.c: New file.
49957
49958         New modules 'vdprintf', 'vdprintf-posix'.
49959         * lib/stdio.in.h (vdprintf): New declaration.
49960         * lib/vdprintf.c: New file.
49961         * m4/vdprintf.m4: New file.
49962         * m4/vdprintf-posix.m4: New file.
49963         * modules/vdprintf: New file.
49964         * modules/vdprintf-posix: New file.
49965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49966         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49967         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49968         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49969         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49970
49971 2009-01-17  Bruno Haible  <bruno@clisp.org>
49972
49973         Fix replacement of fopen on mingw.
49974         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49975         mingw.
49976
49977 2009-01-17  Bruno Haible  <bruno@clisp.org>
49978
49979         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49980         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49981
49982 2009-01-17  Bruno Haible  <bruno@clisp.org>
49983
49984         Avoid test-fflush2.sh failure on mingw.
49985         * tests/test-fflush2.c: Include binary-io.h.
49986         (main): Put standard input into binary mode.
49987         * modules/fflush-tests (Depends-on): Add binary-io.
49988
49989 2009-01-17  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/wchar.in.h: In another particular situation, include only the
49992         system's <wchar.h> file.
49993         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49994         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49995         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49996
49997 2009-01-17  Bruno Haible  <bruno@clisp.org>
49998
49999         Support for stripping executables in --enable-relocatable.
50000         * build-aux/install-reloc: Expect one more argument, or an environment
50001         variable RELOC_STRIP_PROG. If set, strip the destination program and
50002         its wrapper.
50003         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50004         RELOC_STRIP_PROG.
50005         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50006         to set RELOCATABLE_STRIP.
50007         * NEWS: Mention the new Makefile requirement.
50008
50009 2009-01-17  Bruno Haible  <bruno@clisp.org>
50010
50011         * build-aux/install-reloc: Remove debugging information left over by
50012         C compiler on MacOS X.
50013
50014 2009-01-17  Bruno Haible  <bruno@clisp.org>
50015
50016         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50017         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50018         _NSGetExecutablePath.
50019
50020 2009-01-16  Jim Meyering  <meyering@redhat.com>
50021
50022         strerror: avoid warnings about discarding "const"
50023         * lib/strerror.c (rpl_strerror): Instead of returning a const
50024         string from each and every "case", use a variable, and add a single
50025         cast after the switch.
50026
50027 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50028
50029         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50030
50031 2009-01-16  Bruno Haible  <bruno@clisp.org>
50032
50033         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50034         array initializer syntax that also works in C++ mode.
50035         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50036
50037 2009-01-16  Jim Meyering  <meyering@redhat.com>
50038
50039         poll: suppress a warning
50040         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50041         to ignore "...unsigned expression < 0 is always false" warnings.
50042
50043 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50044
50045         poll: remove declarations of unused variables
50046         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50047         sockbuf and optlen.
50048
50049 2009-01-15  Bruno Haible  <bruno@clisp.org>
50050
50051         Make fflush-after-ungetc POSIX compliant on BSD systems.
50052         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50053         (clear_ungetc_buffer): Implement also for other systems.
50054         (rpl_fflush): On glibc systems, invoke
50055         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50056         clear_ungetc_buffer after fetching the stream's position, not before.
50057
50058 2009-01-15  Bruno Haible  <bruno@clisp.org>
50059
50060         Make fflush-after-ungetc POSIX compliant on glibc systems.
50061         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50062         after ungetc.
50063         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50064         (rpl_fflush): On glibc systems, simply call the system's fflush
50065         function after clearing the ungetc buffer.
50066         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50067         Instead, lseek only to the end of file, then use the system's fseeko
50068         for the rest. On glibc systems, reset the EOF indicator bit.
50069
50070 2009-01-15  Jim Meyering  <meyering@redhat.com>
50071
50072         openmp.m4: revert quote-adding change, for portability to older autoconf
50073         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50074         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50075         Simon Josefsson noticed the problem when using autoconf-2.61.
50076
50077 2009-01-15  Bruno Haible  <bruno@clisp.org>
50078
50079         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50080         * tests/test-fflush2.c (ASSERT): Always fail.
50081         (main): Add two tests for fflush() after ungetc(), taking into account
50082         the Austin Group's clarification.
50083         Suggested by Eric Blake.
50084
50085 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50086
50087         mktime.m4: remove K&R-style function prototypes
50088         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50089         for the Sun C++ compiler.
50090
50091 2009-01-14  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50094         while including <wchar.h>.
50095         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50096         the system's <wchar.h> file.
50097         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50098
50099 2009-01-14  Bruno Haible  <bruno@clisp.org>
50100
50101         * m4/csharp.m4: Don't mention gettext on the serial number line.
50102         * m4/csharpexec.m4: Likewise.
50103         * m4/eaccess.m4: Likewise.
50104         * m4/javaexec.m4: Likewise.
50105         * m4/sig_atomic_t.m4: Likewise.
50106         * m4/tmpdir.m4: Likewise.
50107         * m4/intldir.m4: Bump gettext version.
50108         * m4/lib-ld.m4: Likewise.
50109
50110 2009-01-14  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/progname.c (set_program_name): Add more comments.
50113         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50114
50115 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50116
50117         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50118         were sys/stat.h does not define it.
50119
50120 2009-01-14  Jim Meyering  <meyering@redhat.com>
50121
50122         many *.m4 files: improve m4 quoting
50123         99% of this change was performed by running the following commands:
50124         git ls-files | grep '\.m4$' | xargs perl -pi \
50125           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50126           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50127           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50128           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50129         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50130         The remainder were to add Copyright dates, increment serial numbers,
50131         undo some changes in comments, exclude m4/intl.m4, and add quotes
50132         around the "1" in ",1" where the unusual spacing prohibited the
50133         above regexps from doing the job.  For more details, see
50134         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50135         * m4/acl.m4: Modified.
50136         * m4/afs.m4: Likewise.
50137         * m4/alloca.m4: Likewise.
50138         * m4/argp.m4: Likewise.
50139         * m4/argz.m4: Likewise.
50140         * m4/atexit.m4: Likewise.
50141         * m4/bison-i18n.m4: Likewise.
50142         * m4/bison.m4: Likewise.
50143         * m4/byteswap.m4: Likewise.
50144         * m4/c-stack.m4: Likewise.
50145         * m4/c-strtod.m4: Likewise.
50146         * m4/calloc.m4: Likewise.
50147         * m4/canonicalize-lgpl.m4: Likewise.
50148         * m4/chown.m4: Likewise.
50149         * m4/clock_time.m4: Likewise.
50150         * m4/codeset.m4: Likewise.
50151         * m4/copy-file.m4: Likewise.
50152         * m4/csharp.m4: Likewise.
50153         * m4/csharpcomp.m4: Likewise.
50154         * m4/csharpexec.m4: Likewise.
50155         * m4/d-ino.m4: Likewise.
50156         * m4/d-type.m4: Likewise.
50157         * m4/dirfd.m4: Likewise.
50158         * m4/double-slash-root.m4: Likewise.
50159         * m4/eaccess.m4: Likewise.
50160         * m4/eealloc.m4: Likewise.
50161         * m4/environ.m4: Likewise.
50162         * m4/errno_h.m4: Likewise.
50163         * m4/euidaccess.m4: Likewise.
50164         * m4/execute.m4: Likewise.
50165         * m4/fatal-signal.m4: Likewise.
50166         * m4/fchdir.m4: Likewise.
50167         * m4/fcntl_h.m4: Likewise.
50168         * m4/fileblocks.m4: Likewise.
50169         * m4/filenamecat.m4: Likewise.
50170         * m4/findprog.m4: Likewise.
50171         * m4/flexmember.m4: Likewise.
50172         * m4/fnmatch.m4: Likewise.
50173         * m4/fopen.m4: Likewise.
50174         * m4/fpending.m4: Likewise.
50175         * m4/fprintf-posix.m4: Likewise.
50176         * m4/free.m4: Likewise.
50177         * m4/frexp.m4: Likewise.
50178         * m4/frexpl.m4: Likewise.
50179         * m4/fsusage.m4: Likewise.
50180         * m4/ftruncate.m4: Likewise.
50181         * m4/gc-camellia.m4: Likewise.
50182         * m4/gc-random.m4: Likewise.
50183         * m4/gc.m4: Likewise.
50184         * m4/getaddrinfo.m4: Likewise.
50185         * m4/getcwd-abort-bug.m4: Likewise.
50186         * m4/getcwd-path-max.m4: Likewise.
50187         * m4/getdate.m4: Likewise.
50188         * m4/getdomainname.m4: Likewise.
50189         * m4/getgroups.m4: Likewise.
50190         * m4/gethostname.m4: Likewise.
50191         * m4/gethrxtime.m4: Likewise.
50192         * m4/getline.m4: Likewise.
50193         * m4/getloadavg.m4: Likewise.
50194         * m4/getndelim2.m4: Likewise.
50195         * m4/getpass.m4: Likewise.
50196         * m4/gettext.m4: Likewise.
50197         * m4/gettime.m4: Likewise.
50198         * m4/gettimeofday.m4: Likewise.
50199         * m4/gnulib-common.m4: Likewise.
50200         * m4/group-member.m4: Likewise.
50201         * m4/host-os.m4: Likewise.
50202         * m4/iconv.m4: Likewise.
50203         * m4/iconv_open.m4: Likewise.
50204         * m4/inet_ntop.m4: Likewise.
50205         * m4/inet_pton.m4: Likewise.
50206         * m4/inline.m4: Likewise.
50207         * m4/intldir.m4: Likewise.
50208         * m4/intlmacosx.m4: Likewise.
50209         * m4/intmax.m4: Likewise.
50210         * m4/intmax_t.m4: Likewise.
50211         * m4/inttypes.m4: Likewise.
50212         * m4/inttypes_h.m4: Likewise.
50213         * m4/inttypes-pri.m4: Likewise.
50214         * m4/isapipe.m4: Likewise.
50215         * m4/isnand.m4: Likewise.
50216         * m4/isnanf.m4: Likewise.
50217         * m4/isnanl.m4: Likewise.
50218         * m4/javacomp.m4: Likewise.
50219         * m4/javaexec.m4: Likewise.
50220         * m4/jm-winsz1.m4: Likewise.
50221         * m4/jm-winsz2.m4: Likewise.
50222         * m4/lchown.m4: Likewise.
50223         * m4/lcmessage.m4: Likewise.
50224         * m4/ldexpl.m4: Likewise.
50225         * m4/lib-ld.m4: Likewise.
50226         * m4/lib-link.m4: Likewise.
50227         * m4/libsigsegv.m4: Likewise.
50228         * m4/link-follow.m4: Likewise.
50229         * m4/localcharset.m4: Likewise.
50230         * m4/locale-fr.m4: Likewise.
50231         * m4/locale-ja.m4: Likewise.
50232         * m4/locale-tr.m4: Likewise.
50233         * m4/locale-zh.m4: Likewise.
50234         * m4/lock.m4: Likewise.
50235         * m4/longlong.m4: Likewise.
50236         * m4/ls-mntd-fs.m4: Likewise.
50237         * m4/lstat.m4: Likewise.
50238         * m4/malloc.m4: Likewise.
50239         * m4/mathl.m4: Likewise.
50240         * m4/mbrtowc.m4: Likewise.
50241         * m4/mbstate_t.m4: Likewise.
50242         * m4/mbswidth.m4: Likewise.
50243         * m4/memchr.m4: Likewise.
50244         * m4/memcmp.m4: Likewise.
50245         * m4/memcpy.m4: Likewise.
50246         * m4/memmem.m4: Likewise.
50247         * m4/memmove.m4: Likewise.
50248         * m4/mempcpy.m4: Likewise.
50249         * m4/memrchr.m4: Likewise.
50250         * m4/memset.m4: Likewise.
50251         * m4/minmax.m4: Likewise.
50252         * m4/mkdir-slash.m4: Likewise.
50253         * m4/mkdtemp.m4: Likewise.
50254         * m4/mktime.m4: Likewise.
50255         * m4/mmap-anon.m4: Likewise.
50256         * m4/mountlist.m4: Likewise.
50257         * m4/nanosleep.m4: Likewise.
50258         * m4/nls.m4: Likewise.
50259         * m4/nocrash.m4: Likewise.
50260         * m4/open.m4: Likewise.
50261         * m4/openat.m4: Likewise.
50262         * m4/openmp.m4: Likewise.
50263         * m4/pathmax.m4: Likewise.
50264         * m4/perl.m4: Likewise.
50265         * m4/physmem.m4: Likewise.
50266         * m4/pipe.m4: Likewise.
50267         * m4/po.m4: Likewise.
50268         * m4/poll.m4: Likewise.
50269         * m4/posixtm.m4: Likewise.
50270         * m4/posixver.m4: Likewise.
50271         * m4/printf-frexp.m4: Likewise.
50272         * m4/printf-frexpl.m4: Likewise.
50273         * m4/printf-posix.m4: Likewise.
50274         * m4/printf-posix-rpl.m4: Likewise.
50275         * m4/printf.m4: Likewise.
50276         * m4/progtest.m4: Likewise.
50277         * m4/putenv.m4: Likewise.
50278         * m4/readline.m4: Likewise.
50279         * m4/readlink.m4: Likewise.
50280         * m4/readutmp.m4: Likewise.
50281         * m4/realloc.m4: Likewise.
50282         * m4/regex.m4: Likewise.
50283         * m4/relocatable.m4: Likewise.
50284         * m4/relocatable-lib.m4: Likewise.
50285         * m4/rename-dest-slash.m4: Likewise.
50286         * m4/rename.m4: Likewise.
50287         * m4/rmdir-errno.m4: Likewise.
50288         * m4/rmdir.m4: Likewise.
50289         * m4/roundf.m4: Likewise.
50290         * m4/roundl.m4: Likewise.
50291         * m4/rpmatch.m4: Likewise.
50292         * m4/save-cwd.m4: Likewise.
50293         * m4/selinux-selinux-h.m4: Likewise.
50294         * m4/setenv.m4: Likewise.
50295         * m4/settime.m4: Likewise.
50296         * m4/sig2str.m4: Likewise.
50297         * m4/sig_atomic_t.m4: Likewise.
50298         * m4/signalblocking.m4: Likewise.
50299         * m4/signbit.m4: Likewise.
50300         * m4/sigpipe.m4: Likewise.
50301         * m4/sockets.m4: Likewise.
50302         * m4/sockpfaf.m4: Likewise.
50303         * m4/st_dm_mode.m4: Likewise.
50304         * m4/stat-time.m4: Likewise.
50305         * m4/stdbool.m4: Likewise.
50306         * m4/stdint.m4: Likewise.
50307         * m4/stdint_h.m4: Likewise.
50308         * m4/stpcpy.m4: Likewise.
50309         * m4/stpncpy.m4: Likewise.
50310         * m4/strcase.m4: Likewise.
50311         * m4/strchrnul.m4: Likewise.
50312         * m4/strcspn.m4: Likewise.
50313         * m4/strdup.m4: Likewise.
50314         * m4/strftime.m4: Likewise.
50315         * m4/strndup.m4: Likewise.
50316         * m4/strnlen.m4: Likewise.
50317         * m4/strpbrk.m4: Likewise.
50318         * m4/strptime.m4: Likewise.
50319         * m4/strsep.m4: Likewise.
50320         * m4/strtod.m4: Likewise.
50321         * m4/strtoimax.m4: Likewise.
50322         * m4/strtok_r.m4: Likewise.
50323         * m4/strtol.m4: Likewise.
50324         * m4/strtoll.m4: Likewise.
50325         * m4/strtoul.m4: Likewise.
50326         * m4/strtoull.m4: Likewise.
50327         * m4/strtoumax.m4: Likewise.
50328         * m4/strverscmp.m4: Likewise.
50329         * m4/threadlib.m4: Likewise.
50330         * m4/timegm.m4: Likewise.
50331         * m4/tm_gmtoff.m4: Likewise.
50332         * m4/tmpdir.m4: Likewise.
50333         * m4/tmpfile.m4: Likewise.
50334         * m4/tzset.m4: Likewise.
50335         * m4/uintmax_t.m4: Likewise.
50336         * m4/unlinkdir.m4: Likewise.
50337         * m4/unlocked-io.m4: Likewise.
50338         * m4/uptime.m4: Likewise.
50339         * m4/userspec.m4: Likewise.
50340         * m4/utimbuf.m4: Likewise.
50341         * m4/utime.m4: Likewise.
50342         * m4/utimes-null.m4: Likewise.
50343         * m4/utimes.m4: Likewise.
50344         * m4/vararrays.m4: Likewise.
50345         * m4/vasnprintf.m4: Likewise.
50346         * m4/vfprintf-posix.m4: Likewise.
50347         * m4/vprintf-posix.m4: Likewise.
50348         * m4/wait-process.m4: Likewise.
50349         * m4/wchar_t.m4: Likewise.
50350         * m4/wint_t.m4: Likewise.
50351         * m4/write-any-file.m4: Likewise.
50352         * m4/yield.m4: Likewise.
50353
50354 2009-01-13  Bruno Haible  <bruno@clisp.org>
50355
50356         Avoid test-copy-file.sh failures when ACL support insufficient.
50357         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50358         TESTS_ENVIRONMENT.
50359         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50360         Reported by Jim Meyering.
50361
50362 2009-01-13  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50365         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50366         * modules/unistdio/u8-printf-parse (Files): Likewise.
50367         * modules/unistdio/u32-printf-parse (Files): Likewise.
50368         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50369
50370 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50371
50372         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50373         and m4/inttypes_h.m4 too.
50374
50375 2009-01-12  Eric Blake  <ebb9@byu.net>
50376
50377         tests: IRIX 6.2 cc can't compile -0.0 into .data
50378         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50379         rather than at compile-time.
50380         * tests/test-floorl.c (minus_zero): Likewise.
50381         * tests/test-frexpl.c (minus_zero): Likewise.
50382         * tests/test-isnan.c (minus_zerol): Likewise.
50383         * tests/test-isnanl.h (minus_zero): Likewise.
50384         * tests/test-ldexpl.c (minus_zero): Likewise.
50385         * tests/test-roundl.c (minus_zero): Likewise.
50386         * tests/test-signbit.c (minus_zerol): Likewise.
50387         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50388         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50389         * tests/test-truncl.c (minus_zero): Likewise.
50390         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50391         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50392         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50393
50394 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50395
50396         regex: fix glibc bug 9697
50397         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50398         handling.
50399
50400 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50401
50402         regex: fix glibc bug 697
50403         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50404         being NULL also if there are no backreferences.
50405
50406 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50407
50408         regex: merge glibc changes
50409         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50410         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50411         re_string_skip_chars, re_string_reconstruct): Likewise.
50412         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50413
50414 2009-01-07  Jim Meyering  <meyering@redhat.com>
50415
50416         poll: filter through cppi
50417         * lib/poll.c: Indent cpp directives to reflect nesting.
50418
50419 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50420
50421         poll: don't return uninitialized
50422         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50423
50424 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50425
50426         avoid compile failure on AIX 6.1
50427         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50428         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50429
50430 2009-01-04  Jim Meyering  <meyering@redhat.com>
50431
50432         remove duplicate inclusion of <stdio.h>
50433         * tests/test-fprintf-posix.c: Likewise.
50434         * tests/test-printf-posix.c: Likewise.
50435         * tests/test-snprintf-posix.c: Likewise.
50436         * tests/test-sprintf-posix.c: Likewise.
50437         * tests/test-vasprintf-posix.c: Likewise.
50438         * tests/test-vfprintf-posix.c: Likewise.
50439         * tests/test-vprintf-posix.c: Likewise.
50440         * tests/test-vsnprintf-posix.c: Likewise.
50441         * tests/test-vsprintf-posix.c: Likewise.
50442
50443 2009-01-03  Jim Meyering  <meyering@redhat.com>
50444
50445         gnulib-tool: fix sed-based filtering
50446         * gnulib-tool (func_filter_filelist): Remove extra backslash
50447         in sed_fff_filter definition.
50448
50449 2009-01-02  Jim Meyering  <meyering@redhat.com>
50450
50451         strftime: avoid compilation failure on Solaris 2.6
50452         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50453         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50454         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50455         be available.  Reported by Tom G. Christensen.  Details in
50456         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50457
50458 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50459             Bruno Haible  <bruno@clisp.org>
50460
50461         Speed up gnulib-tool by doing more string processing through shell
50462         built-ins.
50463         * gnulib-tool (fast_func_append): New variable.
50464         (func_remove_prefix, func_remove_suffix): New functions.
50465         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50466         (func_filter_filelist): New function.
50467         (func_get_dependencies): Use func_remove_suffix instead of sed.
50468         (func_get_automake_snippet): Use func_filter_filelist instead of a
50469         subshell and sed invocation.
50470
50471 2009-01-01  Bruno Haible  <bruno@clisp.org>
50472
50473         Fix a security bug.
50474         * gnulib-tool (func_import, import, update): Don't allow the characters
50475         '"', '$', '`', '\' in macro arguments that become part of commands that
50476         are evaluated.
50477
50478 2009-01-01  Bruno Haible  <bruno@clisp.org>
50479
50480         * gnulib-tool (func_reset_sigpipe): Add more comments.
50481
50482 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50483
50484         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50485         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50486         already know the answer.
50487
50488 2009-01-01  Jim Meyering  <meyering@redhat.com>
50489
50490         * lib/version-etc.c (version_etc_va): Update copyright year.
50491
50492 2008-12-30  Bruno Haible  <bruno@clisp.org>
50493
50494         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50495         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50496         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50497
50498 2008-12-29  Eric Blake  <ebb9@byu.net>
50499
50500         multiarch: avoid autoconf AC_REQUIRE bug
50501         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50502         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50503         2.63 and older.
50504         Reported by Bruno Haible, and analyzed in
50505         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50506
50507 2008-12-29  Bruno Haible  <bruno@clisp.org>
50508
50509         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50510         files in subdirectories correctly.
50511         Reported by Ralf Wildenhues.
50512
50513 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50514
50515         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50516         rather than 'join FILE -', for Solaris join.
50517
50518 2008-12-29  Bruno Haible  <bruno@clisp.org>
50519
50520         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50521         quoting.
50522         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50523         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50524         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50525         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50526         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50527         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50528         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50529         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50530         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50531         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50532         * m4/nls.m4 (AM_NLS): Likewise.
50533         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50534         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50535         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50536         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50537         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50538         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50539         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50540         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50541         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50542         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50543         * m4/xsize.m4 (gl_XSIZE): Likewise.
50544         Suggested by Jim Meyering.
50545
50546 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50547
50548         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50549         * lib/parse-duration.c: use a switch instead of cascading if's.
50550
50551 2008-12-29  Eric Blake  <ebb9@byu.net>
50552
50553         wchar.h: supply WEOF on Irix 5.3
50554         * lib/wchar.in.h (wint_t): Also supply WEOF.
50555         * lib/wctype.in.h (wint_t): Likewise.
50556         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50557         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50558         Reported by Tom G. Christensen.
50559
50560 2008-12-26  Bruno Haible  <bruno@clisp.org>
50561
50562         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50563         i486, i586, i686.
50564
50565 2008-12-26  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50568
50569 2008-12-26  Bruno Haible  <bruno@clisp.org>
50570
50571         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50572         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50573         not __STDC_CONSTANT_MACROS.
50574         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50575
50576 2008-12-25  Bruno Haible  <bruno@clisp.org>
50577
50578         Add support for universal builds to vasnprintf.
50579         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50580         universal builds, guess no.
50581         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50582         * modules/vasprintf-posix (Depends-on): Likewise.
50583         * modules/fprintf-posix (Depends-on): Likewise.
50584         * modules/vfprintf-posix (Depends-on): Likewise.
50585         * modules/snprintf-posix (Depends-on): Likewise.
50586         * modules/vsnprintf-posix (Depends-on): Likewise.
50587         * modules/sprintf-posix (Depends-on): Likewise.
50588         * modules/vsprintf-posix (Depends-on): Likewise.
50589         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50590         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50591         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50593         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50594         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50595         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50596
50597         Add support for universal builds to <inttypes.h>.
50598         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50599         _SCNu64_PREFIX): In Apple
50600         universal builds, define directly, using _LP64.
50601         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50602         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50603         * modules/inttypes (Depends-on): Add multiarch.
50604         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50605
50606         Add support for universal builds to <stdint.h>.
50607         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50608         universal builds, define directly, using _LP64.
50609         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50610         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50611         and size_t.
50612         * modules/stdint (Depends-on): Add multiarch.
50613         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50614
50615         New module 'multiarch'.
50616         * modules/multiarch: New file.
50617         * m4/multiarch.m4: New file.
50618
50619 2008-12-25  Bruno Haible  <bruno@clisp.org>
50620
50621         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50622
50623 2008-12-25  Bruno Haible  <bruno@clisp.org>
50624
50625         * modules/btowc (License): Relicense under LGPLv2+.
50626         * modules/mbsinit (License): Likewise.
50627         * modules/mbrtowc (License): Likewise.
50628         * modules/wcrtomb (License): Likewise.
50629         * modules/streq (License): Likewise.
50630         Reported by David Lutterkort <lutter@redhat.com>.
50631
50632 2008-12-23  Bruno Haible  <bruno@clisp.org>
50633
50634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50635
50636 2008-12-23  Bruno Haible  <bruno@clisp.org>
50637
50638         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50640         GETADDRINFO_LIB, not in LIBS.
50641         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50642         * modules/canon-host (Link): Likewise.
50643         * NEWS: Mention the change.
50644         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50645         GETADDRINFO_LIB.
50646
50647 2008-12-22  Bruno Haible  <bruno@clisp.org>
50648
50649         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50650         * doc/posix-functions/iswalpha_l.texi: Likewise.
50651         * doc/posix-functions/iswblank_l.texi: Likewise.
50652         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50653         * doc/posix-functions/iswctype_l.texi: Likewise.
50654         * doc/posix-functions/iswdigit_l.texi: Likewise.
50655         * doc/posix-functions/iswgraph_l.texi: Likewise.
50656         * doc/posix-functions/iswlower_l.texi: Likewise.
50657         * doc/posix-functions/iswprint_l.texi: Likewise.
50658         * doc/posix-functions/iswpunct_l.texi: Likewise.
50659         * doc/posix-functions/iswspace_l.texi: Likewise.
50660         * doc/posix-functions/iswupper_l.texi: Likewise.
50661         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50662         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50663         * doc/posix-functions/open_wmemstream.texi: Likewise.
50664         * doc/posix-functions/swscanf.texi: Likewise.
50665         * doc/posix-functions/towctrans_l.texi: Likewise.
50666         * doc/posix-functions/towlower.texi: Likewise.
50667         * doc/posix-functions/towlower_l.texi: Likewise.
50668         * doc/posix-functions/towupper.texi: Likewise.
50669         * doc/posix-functions/towupper_l.texi: Likewise.
50670         * doc/posix-functions/vfwprintf.texi: Likewise.
50671         * doc/posix-functions/vfwscanf.texi: Likewise.
50672         * doc/posix-functions/vswscanf.texi: Likewise.
50673         * doc/posix-functions/vwprintf.texi: Likewise.
50674         * doc/posix-functions/vwscanf.texi: Likewise.
50675         * doc/posix-functions/wcpcpy.texi: Likewise.
50676         * doc/posix-functions/wcpncpy.texi: Likewise.
50677         * doc/posix-functions/wcscasecmp.texi: Likewise.
50678         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50679         * doc/posix-functions/wcscoll_l.texi: Likewise.
50680         * doc/posix-functions/wcsdup.texi: Likewise.
50681         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50682         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50683         * doc/posix-functions/wcsnlen.texi: Likewise.
50684         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50685         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50686         * doc/posix-functions/wctrans_l.texi: Likewise.
50687         * doc/posix-functions/wctype_l.texi: Likewise.
50688         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50689         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50690         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50691         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50692         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50693         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50694         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50695         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50696         * doc/glibc-functions/wcschrnul.texi: Likewise.
50697         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50698         * doc/glibc-functions/wcstod_l.texi: Likewise.
50699         * doc/glibc-functions/wcstof_l.texi: Likewise.
50700         * doc/glibc-functions/wcstol_l.texi: Likewise.
50701         * doc/glibc-functions/wcstold_l.texi: Likewise.
50702         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50703         * doc/glibc-functions/wcstoq.texi: Likewise.
50704         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50705         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50706         * doc/glibc-functions/wcstouq.texi: Likewise.
50707         * doc/glibc-functions/wmempcpy.texi: Likewise.
50708
50709 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50710             Eric Blake  <ebb9@byu.net>
50711             Paolo Bonzini  <bonzini@gnu.org>
50712             Bruno Haible  <bruno@clisp.org>
50713
50714         Make c-stack work on Haiku.
50715         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50716         (c_stack_action): Use SA_ONSTACK flag.
50717
50718 2008-12-22  Bruno Haible  <bruno@clisp.org>
50719
50720         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50721
50722 2008-12-22  Bruno Haible  <bruno@clisp.org>
50723
50724         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50725         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50726         being overridden.
50727         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50728         New macros.
50729         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50731         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50732         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50733
50734 2008-12-22  Bruno Haible  <bruno@clisp.org>
50735
50736         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50737         from test code.
50738
50739 2008-12-22  Eric Blake  <ebb9@byu.net>
50740
50741         Avoid gcc warnings on cygwin.
50742         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50743         Avoid unused variable.
50744         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50745         Likewise.
50746
50747 2008-12-22  Bruno Haible  <bruno@clisp.org>
50748
50749         Remove HAVE_MBRTOWC conditionals.
50750         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50751         (mbscasecmp): Assume mbrtowc function.
50752         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50753         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50754         * lib/mbschr.c: Include mbuiter.h unconditionally.
50755         (mbschr): Assume mbrtowc function.
50756         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50757         (mbscspn): Assume mbrtowc function.
50758         * lib/mbslen.c: Include mbuiter.h unconditionally.
50759         (mbslen): Assume mbrtowc function.
50760         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50761         (mbsncasecmp): Assume mbrtowc function.
50762         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50763         (mbsnlen): Assume mbrtowc function.
50764         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50765         (mbspbrk): Assume mbrtowc function.
50766         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50767         (mbspcasecmp): Assume mbrtowc function.
50768         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50769         (mbsrchr): Assume mbrtowc function.
50770         * lib/mbssep.c: Include mbuiter.h unconditionally.
50771         (mbssep): Assume mbrtowc function.
50772         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50773         (mbsspn): Assume mbrtowc function.
50774         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50775         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50776         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50777         (mbstok_r): Assume mbrtowc function.
50778         * lib/propername.c: Include mbuiter.h unconditionally.
50779         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50780         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50781         (trim2): Assume mbrtowc function.
50782         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50783         (mbsnwidth): Assume mbrtowc function.
50784         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50785         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50786         fallback definitions.
50787         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50788
50789 2008-12-22  Bruno Haible  <bruno@clisp.org>
50790
50791         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50792
50793 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50794
50795         * modules/regex: Request emulations for the mb*/wc* functions we need.
50796         * m4/regex.m4: Don't look for those functions here.
50797         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50798
50799 2008-12-22  Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50802
50803 2008-12-21  Bruno Haible  <bruno@clisp.org>
50804
50805         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50806         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50807         (Include): Remove conditionalization.
50808         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50809         (Include): Remove conditionalization.
50810         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50811         (Include): Remove conditionalization.
50812         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50813         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50814         * NEWS: Mention the change.
50815         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50816         via Sergey Poznyakoff <gray@gnu.org.ua>.
50817
50818 2008-12-21  Bruno Haible  <bruno@clisp.org>
50819
50820         * MODULES.html.sh (Extended multibyte and wide character utilities
50821         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50822         wcrtomb, wcsrtombs.
50823         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50824         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50825         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50826         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50827
50828 2008-12-21  Bruno Haible  <bruno@clisp.org>
50829
50830         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50831
50832 2008-12-21  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/wcsnrtombs-tests: New file.
50835         * tests/test-wcsnrtombs1.sh: New file.
50836         * tests/test-wcsnrtombs2.sh: New file.
50837         * tests/test-wcsnrtombs3.sh: New file.
50838         * tests/test-wcsnrtombs4.sh: New file.
50839         * tests/test-wcsnrtombs.c: New file.
50840
50841         New module 'wcsnrtombs'.
50842         * lib/wchar.in.h (wcsnrtombs): New declaration.
50843         * lib/wcsnrtombs.c: New file.
50844         * lib/wcsrtombs-state.c: New file.
50845         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50846         (internal_state): Remove variable.
50847         * m4/wcsnrtombs.m4: New file.
50848         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50849         compilation units.
50850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50851         HAVE_WCSNRTOMBS.
50852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50853         HAVE_WCSNRTOMBS.
50854         * modules/wcsnrtombs: New file.
50855         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50856         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50857
50858 2008-12-21  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/wcsrtombs-tests: New file.
50861         * tests/test-wcsrtombs1.sh: New file.
50862         * tests/test-wcsrtombs2.sh: New file.
50863         * tests/test-wcsrtombs3.sh: New file.
50864         * tests/test-wcsrtombs4.sh: New file.
50865         * tests/test-wcsrtombs.c: New file.
50866
50867         New module 'wcsrtombs'.
50868         * lib/wchar.in.h (wcsrtombs): New declaration.
50869         * lib/wcsrtombs.c: New file.
50870         * m4/wcsrtombs.m4: New file.
50871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50872         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50873         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50874         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50875         * modules/wcsrtombs: New file.
50876         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50877         bugs.
50878
50879 2008-12-21  Bruno Haible  <bruno@clisp.org>
50880
50881         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50882         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50883         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50884         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50885         if not correct.
50886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50887         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50888         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50889         m4/locale-zh.m4, m4/codeset.m4.
50890         * doc/posix-functions/wcrtomb.texi: Document the bug.
50891
50892 2008-12-21  Bruno Haible  <bruno@clisp.org>
50893
50894         Work around a btowc() bug on IRIX 6.5.
50895         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50896         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50897         REPLACE_WTOBC if not.
50898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50899         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50900         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50901
50902 2008-12-21  Bruno Haible  <bruno@clisp.org>
50903
50904         * modules/wcrtomb-tests: New file.
50905         * tests/test-wcrtomb.sh: New file.
50906         * tests/test-wcrtomb.c: New file.
50907
50908         New module 'wcrtomb'.
50909         * lib/wchar.in.h (wcrtomb): New declaration.
50910         * lib/wcrtomb.c: New file.
50911         * m4/wcrtomb.m4: New file.
50912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50913         HAVE_WCRTOMB.
50914         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50915         HAVE_WCRTOMB.
50916         * modules/wcrtomb: New file.
50917         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50918
50919 2008-12-21  Bruno Haible  <bruno@clisp.org>
50920
50921         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50922         * modules/mbsrtowcs (Files): Likewise.
50923         * modules/wctob (Files): Likewise.
50924         * modules/c-strcase-tests (Files): Likewise.
50925         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50926         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50927         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50928         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50929         * modules/vasnprintf-posix-tests (Files): Likewise.
50930
50931 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50932
50933         gitlog-to-changelog: pass all command-line arguments to git-log
50934         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50935         it is sometimes convenient to filter the commits in various ways.
50936         gitlog-to-changelog only allows --since to specify a start date,
50937         but git-log itself supports many other filtering mechanisms.
50938         At the moment, I want to filter by branch name.  Rather than
50939         adding a --branch option to gitlog-to-changelog, it seems more
50940         flexible to simply pass all options directly to git-log and let
50941         git do the work.  Notice that this effectively makes --since a
50942         redundant option for gitlog-to-changelog, but removing it would
50943         require current usage to change since calls would then require
50944         an additional '--'.
50945
50946 2008-12-21  Bruno Haible  <bruno@clisp.org>
50947
50948         * modules/mbsnrtowcs-tests: New file.
50949         * tests/test-mbsnrtowcs1.sh: New file.
50950         * tests/test-mbsnrtowcs2.sh: New file.
50951         * tests/test-mbsnrtowcs3.sh: New file.
50952         * tests/test-mbsnrtowcs4.sh: New file.
50953         * tests/test-mbsnrtowcs.c: New file.
50954
50955         New module 'mbsnrtowcs'.
50956         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50957         * lib/mbsnrtowcs.c: New file.
50958         * lib/mbsrtowcs-state.c: New file.
50959         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50960         (internal_state): Remove variable.
50961         * m4/mbsnrtowcs.m4: New file.
50962         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50963         compilation units.
50964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50965         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50966         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50967         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50968         * modules/mbsnrtowcs: New file.
50969         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50970         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50971         portability problem.
50972
50973 2008-12-21  Bruno Haible  <bruno@clisp.org>
50974
50975         Work around mbsrtowcs bug.
50976         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50977         (gl_FUNC_MBSRTOWCS): Invoke it.
50978         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50979         m4/locale-zh.m4.
50980         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50981
50982 2008-12-21  Bruno Haible  <bruno@clisp.org>
50983
50984         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50985
50986 2008-12-21  Bruno Haible  <bruno@clisp.org>
50987
50988         Update doc for AIX.
50989         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50990         16-bit wchar_t type.
50991         * doc/posix-functions/btowc.texi: Likewise.
50992         * doc/posix-functions/fgetwc.texi: Likewise.
50993         * doc/posix-functions/fgetws.texi: Likewise.
50994         * doc/posix-functions/fputwc.texi: Likewise.
50995         * doc/posix-functions/fputws.texi: Likewise.
50996         * doc/posix-functions/fwide.texi: Likewise.
50997         * doc/posix-functions/fwprintf.texi: Likewise.
50998         * doc/posix-functions/fwscanf.texi: Likewise.
50999         * doc/posix-functions/getwchar.texi: Likewise.
51000         * doc/posix-functions/getwc.texi: Likewise.
51001         * doc/posix-functions/iswalnum.texi: Likewise.
51002         * doc/posix-functions/iswalpha.texi: Likewise.
51003         * doc/posix-functions/iswblank.texi: Likewise.
51004         * doc/posix-functions/iswcntrl.texi: Likewise.
51005         * doc/posix-functions/iswctype.texi: Likewise.
51006         * doc/posix-functions/iswdigit.texi: Likewise.
51007         * doc/posix-functions/iswgraph.texi: Likewise.
51008         * doc/posix-functions/iswlower.texi: Likewise.
51009         * doc/posix-functions/iswprint.texi: Likewise.
51010         * doc/posix-functions/iswpunct.texi: Likewise.
51011         * doc/posix-functions/iswspace.texi: Likewise.
51012         * doc/posix-functions/iswupper.texi: Likewise.
51013         * doc/posix-functions/iswxdigit.texi: Likewise.
51014         * doc/posix-functions/mbrtowc.texi: Likewise.
51015         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51016         * doc/posix-functions/mbstowcs.texi: Likewise.
51017         * doc/posix-functions/mbtowc.texi: Likewise.
51018         * doc/posix-functions/putwchar.texi: Likewise.
51019         * doc/posix-functions/putwc.texi: Likewise.
51020         * doc/posix-functions/swprintf.texi: Likewise.
51021         * doc/posix-functions/tolower.texi: Likewise.
51022         * doc/posix-functions/toupper.texi: Likewise.
51023         * doc/posix-functions/towctrans.texi: Likewise.
51024         * doc/posix-functions/ungetwc.texi: Likewise.
51025         * doc/posix-functions/vswprintf.texi: Likewise.
51026         * doc/posix-functions/wcrtomb.texi: Likewise.
51027         * doc/posix-functions/wcscat.texi: Likewise.
51028         * doc/posix-functions/wcschr.texi: Likewise.
51029         * doc/posix-functions/wcscmp.texi: Likewise.
51030         * doc/posix-functions/wcscoll.texi: Likewise.
51031         * doc/posix-functions/wcscpy.texi: Likewise.
51032         * doc/posix-functions/wcscspn.texi: Likewise.
51033         * doc/posix-functions/wcsftime.texi: Likewise.
51034         * doc/posix-functions/wcslen.texi: Likewise.
51035         * doc/posix-functions/wcsncat.texi: Likewise.
51036         * doc/posix-functions/wcsncmp.texi: Likewise.
51037         * doc/posix-functions/wcsncpy.texi: Likewise.
51038         * doc/posix-functions/wcspbrk.texi: Likewise.
51039         * doc/posix-functions/wcsrchr.texi: Likewise.
51040         * doc/posix-functions/wcsrtombs.texi: Likewise.
51041         * doc/posix-functions/wcsspn.texi: Likewise.
51042         * doc/posix-functions/wcsstr.texi: Likewise.
51043         * doc/posix-functions/wcstod.texi: Likewise.
51044         * doc/posix-functions/wcstof.texi: Likewise.
51045         * doc/posix-functions/wcstoimax.texi: Likewise.
51046         * doc/posix-functions/wcstok.texi: Likewise.
51047         * doc/posix-functions/wcstold.texi: Likewise.
51048         * doc/posix-functions/wcstoll.texi: Likewise.
51049         * doc/posix-functions/wcstol.texi: Likewise.
51050         * doc/posix-functions/wcstombs.texi: Likewise.
51051         * doc/posix-functions/wcstoull.texi: Likewise.
51052         * doc/posix-functions/wcstoul.texi: Likewise.
51053         * doc/posix-functions/wcstoumax.texi: Likewise.
51054         * doc/posix-functions/wcswidth.texi: Likewise.
51055         * doc/posix-functions/wcsxfrm.texi: Likewise.
51056         * doc/posix-functions/wctob.texi: Likewise.
51057         * doc/posix-functions/wctomb.texi: Likewise.
51058         * doc/posix-functions/wctrans.texi: Likewise.
51059         * doc/posix-functions/wctype.texi: Likewise.
51060         * doc/posix-functions/wcwidth.texi: Likewise.
51061         * doc/posix-functions/wmemchr.texi: Likewise.
51062         * doc/posix-functions/wmemcmp.texi: Likewise.
51063         * doc/posix-functions/wmemcpy.texi: Likewise.
51064         * doc/posix-functions/wmemmove.texi: Likewise.
51065         * doc/posix-functions/wmemset.texi: Likewise.
51066         * doc/posix-functions/wprintf.texi: Likewise.
51067         * doc/posix-functions/wscanf.texi: Likewise.
51068
51069 2008-12-21  Bruno Haible  <bruno@clisp.org>
51070
51071         Update doc for HP-UX 11.11.
51072         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51073         in HP-UX version 11.00, not in all versions of HP-UX 11.
51074         * doc/posix-functions/fwide.texi: Likewise.
51075         * doc/posix-functions/fwprintf.texi: Likewise.
51076         * doc/posix-functions/fwscanf.texi: Likewise.
51077         * doc/posix-functions/inet_ntop.texi: Likewise.
51078         * doc/posix-functions/inet_pton.texi: Likewise.
51079         * doc/posix-functions/mbrlen.texi: Likewise.
51080         * doc/posix-functions/mbrtowc.texi: Likewise.
51081         * doc/posix-functions/mbsinit.texi: Likewise.
51082         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51083         * doc/posix-functions/swprintf.texi: Likewise.
51084         * doc/posix-functions/swscanf.texi: Likewise.
51085         * doc/posix-functions/towctrans.texi: Likewise.
51086         * doc/posix-functions/vfwprintf.texi: Likewise.
51087         * doc/posix-functions/vswprintf.texi: Likewise.
51088         * doc/posix-functions/vwprintf.texi: Likewise.
51089         * doc/posix-functions/wcrtomb.texi: Likewise.
51090         * doc/posix-functions/wcsrtombs.texi: Likewise.
51091         * doc/posix-functions/wcsstr.texi: Likewise.
51092         * doc/posix-functions/wctob.texi: Likewise.
51093         * doc/posix-functions/wctrans.texi: Likewise.
51094         * doc/posix-functions/wmemchr.texi: Likewise.
51095         * doc/posix-functions/wmemcmp.texi: Likewise.
51096         * doc/posix-functions/wmemcpy.texi: Likewise.
51097         * doc/posix-functions/wmemmove.texi: Likewise.
51098         * doc/posix-functions/wmemset.texi: Likewise.
51099         * doc/posix-functions/wprintf.texi: Likewise.
51100         * doc/posix-functions/wscanf.texi: Likewise.
51101
51102 2008-12-21  Bruno Haible  <bruno@clisp.org>
51103
51104         Work around a portability problem.
51105         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51106         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51107
51108 2008-12-20  Bruno Haible  <bruno@clisp.org>
51109
51110         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51111         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51112         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51113         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51114         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51115
51116         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51117         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51118         set.
51119         (GNULIB_defined_mbstate_t): New macro.
51120         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51121         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51122         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51123         reuses the system's mbrtowc function but works around the bugs.
51124         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51125         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51126         macros.
51127         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51128         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51129         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51130         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51131         REPLACE_MBSINIT if mbsinit needs to be overridden.
51132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51133         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51134         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51135         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51136         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51137         m4/locale-zh.m4.
51138         (Depends): Add mbsinit.
51139         * modules/mbsinit (Depends): Add mbrtowc.
51140         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51141
51142 2008-12-20  Bruno Haible  <bruno@clisp.org>
51143
51144         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51145         so that there are no conversion errors on AIX.
51146         * tests/test-mbsrtowcs.c (main): LIkewise.
51147
51148 2008-12-20  Bruno Haible  <bruno@clisp.org>
51149
51150         Work around wctob bug on Solaris <= 9.
51151         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51152         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51153         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51154         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51155         * modules/wctob (Files): Add m4/locale-fr.m4.
51156         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51157
51158 2008-12-20  Bruno Haible  <bruno@clisp.org>
51159
51160         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51161         /dev/null.
51162         * tests/test-select-in.sh: Likewise.
51163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51164
51165 2008-12-20  Bruno Haible  <bruno@clisp.org>
51166
51167         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51168         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51169         Cygwin 1.5.x.
51170
51171 2008-12-20  Bruno Haible  <bruno@clisp.org>
51172
51173         Ensure mbstate_t is defined on HP-UX 11.11.
51174         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51175         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51176         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51177         AC_USE_SYSTEM_EXTENSIONS.
51178         * modules/fnmatch (Depends-on): Add extensions.
51179         * modules/mbrlen (Depends-on): Likewise.
51180         * modules/mbrtowc (Depends-on): Likewise.
51181         * modules/mbsinit (Depends-on): Likewise.
51182         * modules/mbsrtowcs (Depends-on): Likewise.
51183         * modules/mbswidth (Depends-on): Likewise.
51184         * modules/quotearg (Depends-on): Likewise.
51185         * modules/strftime (Depends-on): Likewise.
51186
51187 2008-12-20  Bruno Haible  <bruno@clisp.org>
51188
51189         Ensure wctob is declared on IRIX 6.5.
51190         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51191         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51192         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51194         of HAVE_WCTOB.
51195         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51196         HAVE_WCTOB.
51197         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51198
51199 2008-12-19  Bruno Haible  <bruno@clisp.org>
51200
51201         * modules/mbsrtowcs-tests: New file.
51202         * tests/test-mbsrtowcs1.sh: New file.
51203         * tests/test-mbsrtowcs2.sh: New file.
51204         * tests/test-mbsrtowcs3.sh: New file.
51205         * tests/test-mbsrtowcs4.sh: New file.
51206         * tests/test-mbsrtowcs.c: New file.
51207
51208         New module 'mbsrtowcs'.
51209         * lib/wchar.in.h (mbsrtowcs): New declaration.
51210         * lib/mbsrtowcs.c: New file.
51211         * m4/mbsrtowcs.m4: New file.
51212         * modules/mbsrtowcs: New file.
51213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51214         HAVE_MBSRTOWCS.
51215         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51216         HAVE_MBSRTOWCS.
51217         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51218
51219 2008-12-19  Bruno Haible  <bruno@clisp.org>
51220
51221         New module 'mbrlen'.
51222         * lib/wchar.in.h (mbrlen): New declaration.
51223         * lib/mbrlen.c: New file.
51224         * m4/mbrlen.m4: New file.
51225         * modules/mbrlen: New file.
51226         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51227         HAVE_MBRLEN.
51228         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51229         HAVE_MBRLEN.
51230         * doc/posix-functions/mbrlen.texi: Document the new module.
51231
51232 2008-12-19  Bruno Haible  <bruno@clisp.org>
51233
51234         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51235         * modules/mbrtowc (Depends-on): Add verify.
51236         Suggested by Paul Eggert.
51237
51238 2008-12-18  Bruno Haible  <bruno@clisp.org>
51239
51240         * modules/mbsinit-tests: New file.
51241         * tests/test-mbsinit.sh: New file.
51242         * tests/test-mbsinit.c: New file.
51243
51244 2008-12-18  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/mbrtowc-tests: New file.
51247         * tests/test-mbrtowc1.sh: New file.
51248         * tests/test-mbrtowc2.sh: New file.
51249         * tests/test-mbrtowc3.sh: New file.
51250         * tests/test-mbrtowc4.sh: New file.
51251         * tests/test-mbrtowc.c: New file.
51252
51253         New module 'mbrtowc'.
51254         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51255         mbsinit and mbrtowc.
51256         (mbrtowc): New declaration.
51257         * lib/mbrtowc.c: New file.
51258         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51259         * modules/mbrtowc: New file.
51260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51261         HAVE_MBRTOWC.
51262         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51263         HAVE_MBRTOWC.
51264         * doc/posix-functions/mbrtowc.texi: Document the new module.
51265
51266 2008-12-18  Bruno Haible  <bruno@clisp.org>
51267
51268         New module 'wctob'.
51269         * lib/wchar.in.h (wctob): New declaration.
51270         * lib/wctob.c: New file.
51271         * m4/wctob.m4: New file.
51272         * modules/wctob: New file.
51273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51274         HAVE_WCTOB.
51275         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51276         * doc/posix-functions/wctob.texi: Document the new module.
51277
51278 2008-12-18  Bruno Haible  <bruno@clisp.org>
51279
51280         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51281         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51282
51283 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51284
51285         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51286         G. Christensen" <tgc@jupiterrise.com>.
51287
51288         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51289         G. Christensen" <tgc@jupiterrise.com>.
51290
51291         * lib/flock.c: Need to include string.h.  Reported by "Tom
51292         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51293         <ebb9@byu.net>.
51294
51295 2008-12-18  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/locale-ja.m4: New file, from GNU gettext.
51298
51299 2008-12-17  Bruno Haible  <bruno@clisp.org>
51300
51301         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51302         Suggested by Eric Blake.
51303
51304 2008-12-17  Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51307
51308 2008-12-17  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51311         * modules/mbsinit (Depends-on): Add verify.
51312         Suggested by Paul Eggert.
51313
51314 2008-12-17  Bruno Haible  <bruno@clisp.org>
51315
51316         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51317         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51318         gl_FUNC_MBRTOWC.
51319         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51320         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51321         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51322         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51323         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51324         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51325         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51326         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51327         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51328         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51329         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51330         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51331         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51332         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51333         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51334         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51335         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51336         * modules/trim (configure.ac): Likewise.
51337
51338 2008-12-17  Bruno Haible  <bruno@clisp.org>
51339
51340         * modules/btowc-tests: New file.
51341         * tests/test-btowc1.sh: New file.
51342         * tests/test-btowc2.sh: New file.
51343         * tests/test-btowc.c: New file.
51344
51345         New module 'btowc'.
51346         * lib/wchar.in.h (btowc): New declaration.
51347         * lib/btowc.c: New file.
51348         * m4/btowc.m4: New file.
51349         * modules/btowc: New file.
51350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51351         HAVE_BTOWC.
51352         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51353         * doc/posix-functions/btowc.texi: Document the new module.
51354
51355 2008-12-17  Bruno Haible  <bruno@clisp.org>
51356
51357         New module 'mbsinit'.
51358         * lib/wchar.in.h (mbsinit): New declaration.
51359         * lib/mbsinit.c: New file.
51360         * m4/mbsinit.m4: New file.
51361         * modules/mbsinit: New file.
51362         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51363         HAVE_MBSINIT.
51364         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51365         HAVE_MBSINIT.
51366         * doc/posix-functions/mbsinit.texi: Document the new module.
51367
51368 2008-12-16  Bruno Haible  <bruno@clisp.org>
51369
51370         * lib/unistd.in.h: Add comment.
51371         * tests/test-environ.c: Don't include <stdlib.h>.
51372
51373 2008-12-16  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/parse-duration.h (parse_duration): Document return value
51376         convention.
51377         * lib/parse-duration.c: Include specification header first. Add
51378         comments.
51379         (_): Remove macro.
51380         (parse_year_month_day, parse_hour_minute_second): Move side effects
51381         outside of strchr call.
51382         (parse_non_iso8601): Move side effects outside of isspace call.
51383         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51384         call.
51385
51386 2008-12-16  Bruno Haible  <bruno@clisp.org>
51387
51388         * tests/test-parse-duration.sh: Produce no output when the test
51389         succeeds.
51390
51391 2008-12-16  Bruno Haible  <bruno@clisp.org>
51392
51393         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51394         expressions.
51395
51396 2008-12-15  Bruno Haible  <bruno@clisp.org>
51397
51398         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51399         * doc/glibc-functions/flistxattr.texi: Likewise.
51400         * doc/glibc-functions/fopencookie.texi: Likewise.
51401         * doc/glibc-functions/fremovexattr.texi: Likewise.
51402         * doc/glibc-functions/fsetxattr.texi: Likewise.
51403         * doc/glibc-functions/getxattr.texi: Likewise.
51404         * doc/glibc-functions/lgetxattr.texi: Likewise.
51405         * doc/glibc-functions/listxattr.texi: Likewise.
51406         * doc/glibc-functions/llistxattr.texi: Likewise.
51407         * doc/glibc-functions/lremovexattr.texi: Likewise.
51408         * doc/glibc-functions/lsetxattr.texi: Likewise.
51409         * doc/glibc-functions/removexattr.texi: Likewise.
51410         * doc/glibc-functions/setxattr.texi: Likewise.
51411         * doc/posix-functions/open_memstream.texi: Likewise.
51412
51413 2008-12-15  Eric Blake  <ebb9@byu.net>
51414
51415         Update doc for cygwin 1.7.
51416         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51417         functions.
51418         * doc/posix-functions/fchmodat.texi: Likewise.
51419         * doc/posix-functions/fchownat.texi: Likewise.
51420         * doc/posix-functions/fdopendir.texi: Likewise.
51421         * doc/posix-functions/fmemopen.texi: Likewise.
51422         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51423         * doc/posix-functions/fstatat.texi: Likewise.
51424         * doc/posix-functions/futimens.texi: Likewise.
51425         * doc/posix-functions/gai_strerror.texi: Likewise.
51426         * doc/posix-functions/getaddrinfo.texi: Likewise.
51427         * doc/posix-functions/getnameinfo.texi: Likewise.
51428         * doc/posix-functions/if_freenameindex.texi: Likewise.
51429         * doc/posix-functions/if_indextoname.texi: Likewise.
51430         * doc/posix-functions/if_nameindex.texi: Likewise.
51431         * doc/posix-functions/if_nametoindex.texi: Likewise.
51432         * doc/posix-functions/insque.texi: Likewise.
51433         * doc/posix-functions/linkat.texi: Likewise.
51434         * doc/posix-functions/llrint.texi: Likewise.
51435         * doc/posix-functions/llrintf.texi: Likewise.
51436         * doc/posix-functions/llrintl.texi: Likewise.
51437         * doc/posix-functions/lockf.texi: Likewise.
51438         * doc/posix-functions/lrintl.texi: Likewise.
51439         * doc/posix-functions/mkdirat.texi: Likewise.
51440         * doc/posix-functions/mkfifoat.texi: Likewise.
51441         * doc/posix-functions/mknodat.texi: Likewise.
51442         * doc/posix-functions/mq_close.texi: Likewise.
51443         * doc/posix-functions/mq_getattr.texi: Likewise.
51444         * doc/posix-functions/mq_notify.texi: Likewise.
51445         * doc/posix-functions/mq_open.texi: Likewise.
51446         * doc/posix-functions/mq_receive.texi: Likewise.
51447         * doc/posix-functions/mq_send.texi: Likewise.
51448         * doc/posix-functions/mq_setattr.texi: Likewise.
51449         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51450         * doc/posix-functions/mq_timedsend.texi: Likewise.
51451         * doc/posix-functions/mq_unlink.texi: Likewise.
51452         * doc/posix-functions/open_memstream.texi: Likewise.
51453         * doc/posix-functions/openat.texi: Likewise.
51454         * doc/posix-functions/posix_fadvise.texi: Likewise.
51455         * doc/posix-functions/posix_fallocate.texi: Likewise.
51456         * doc/posix-functions/posix_madvise.texi: Likewise.
51457         * doc/posix-functions/posix_memalign.texi: Likewise.
51458         * doc/posix-functions/posix_openpt.texi: Likewise.
51459         * doc/posix-functions/readlinkat.texi: Likewise.
51460         * doc/posix-functions/remque.texi: Likewise.
51461         * doc/posix-functions/renameat.texi: Likewise.
51462         * doc/posix-functions/rintl.texi: Likewise.
51463         * doc/posix-functions/sem_unlink.texi: Likewise.
51464         * doc/posix-functions/shm_open.texi: Likewise.
51465         * doc/posix-functions/shm_unlink.texi: Likewise.
51466         * doc/posix-functions/signgam.texi: Likewise.
51467         * doc/posix-functions/sigset.texi: Likewise.
51468         * doc/posix-functions/stpcpy.texi: Likewise.
51469         * doc/posix-functions/stpncpy.texi: Likewise.
51470         * doc/posix-functions/strerror.texi: Likewise.
51471         * doc/posix-functions/strtod.texi: Likewise.
51472         * doc/posix-functions/symlinkat.texi: Likewise.
51473         * doc/posix-functions/unlinkat.texi: Likewise.
51474         * doc/posix-functions/utimensat.texi: Likewise.
51475         * doc/glibc-functions/bindresvport.texi: Likewise.
51476         * doc/glibc-functions/dn_expand.texi: Likewise.
51477         * doc/glibc-functions/exp10.texi: Likewise.
51478         * doc/glibc-functions/exp10f.texi: Likewise.
51479         * doc/glibc-functions/fgetxattr.texi: Likewise.
51480         * doc/glibc-functions/flistxattr.texi: Likewise.
51481         * doc/glibc-functions/fopencookie.texi: Likewise.
51482         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51483         * doc/glibc-functions/fremovexattr.texi: Likewise.
51484         * doc/glibc-functions/fsetxattr.texi: Likewise.
51485         * doc/glibc-functions/getifaddrs.texi: Likewise.
51486         * doc/glibc-functions/getxattr.texi: Likewise.
51487         * doc/glibc-functions/lgetxattr.texi: Likewise.
51488         * doc/glibc-functions/listxattr.texi: Likewise.
51489         * doc/glibc-functions/llistxattr.texi: Likewise.
51490         * doc/glibc-functions/lremovexattr.texi: Likewise.
51491         * doc/glibc-functions/lsetxattr.texi: Likewise.
51492         * doc/glibc-functions/pow10.texi: Likewise.
51493         * doc/glibc-functions/pow10f.texi: Likewise.
51494         * doc/glibc-functions/rcmd_af.texi: Likewise.
51495         * doc/glibc-functions/removexattr.texi: Likewise.
51496         * doc/glibc-functions/res_init.texi: Likewise.
51497         * doc/glibc-functions/res_mkquery.texi: Likewise.
51498         * doc/glibc-functions/res_query.texi: Likewise.
51499         * doc/glibc-functions/res_querydomain.texi: Likewise.
51500         * doc/glibc-functions/res_send.texi: Likewise.
51501         * doc/glibc-functions/rresvport_af.texi: Likewise.
51502         * doc/glibc-functions/setxattr.texi: Likewise.
51503         * doc/glibc-functions/strcasestr.texi: Likewise.
51504
51505 2008-12-15  Bruno Haible  <bruno@clisp.org>
51506
51507         Fix compilation error on OSF/1 4.0.
51508         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51509         <sys/time.h>, simply delegate to the system header.
51510         Reported by Daniel Richard G. <oss@teragram.com>.
51511
51512 2008-12-15  Bruno Haible  <bruno@clisp.org>
51513
51514         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51515         * doc/posix-functions/fchmodat.texi: Likewise.
51516         * doc/posix-functions/fchownat.texi: Likewise.
51517         * doc/posix-functions/fdopendir.texi: Likewise.
51518         * doc/posix-functions/fstatat.texi: Likewise.
51519         * doc/posix-functions/mkdirat.texi: Likewise.
51520         * doc/posix-functions/unlinkat.texi: Likewise.
51521
51522 2008-12-14  Bruno Haible  <bruno@clisp.org>
51523
51524         Update doc for POSIX:2008.
51525         * doc/posix-functions/faccessat.texi: New file.
51526         * doc/posix-functions/fchmodat.texi: New file.
51527         * doc/posix-functions/fchownat.texi: New file.
51528         * doc/posix-functions/fdopendir.texi: New file.
51529         * doc/posix-functions/fstatat.texi: New file.
51530         * doc/posix-functions/futimens.texi: New file.
51531         * doc/posix-functions/linkat.texi: New file.
51532         * doc/posix-functions/mkdirat.texi: New file.
51533         * doc/posix-functions/mkfifoat.texi: New file.
51534         * doc/posix-functions/mknodat.texi: New file.
51535         * doc/posix-functions/open_wmemstream.texi: New file.
51536         * doc/posix-functions/openat.texi: New file.
51537         * doc/posix-functions/psiginfo.texi: New file.
51538         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51539         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51540         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51541         * doc/posix-functions/readlinkat.texi: New file.
51542         * doc/posix-functions/renameat.texi: New file.
51543         * doc/posix-functions/strerror_l.texi: New file.
51544         * doc/posix-functions/symlinkat.texi: New file.
51545         * doc/posix-functions/unlinkat.texi: New file.
51546         * doc/posix-functions/utimensat.texi: New file.
51547         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51548
51549 2008-12-14  Bruno Haible  <bruno@clisp.org>
51550
51551         Update doc for POSIX:2008.
51552         * doc/posix-functions/alphasort.texi: Renamed from
51553         doc/glibc-functions/alphasort.texi.
51554         * doc/posix-functions/dirfd.texi: Renamed from
51555         doc/glibc-functions/dirfd.texi.
51556         * doc/posix-functions/dprintf.texi: Renamed from
51557         doc/glibc-functions/dprintf.texi.
51558         * doc/posix-functions/duplocale.texi: Renamed from
51559         doc/glibc-functions/duplocale.texi.
51560         * doc/posix-functions/fexecve.texi: Renamed from
51561         doc/glibc-functions/fexecve.texi.
51562         * doc/posix-functions/fmemopen.texi: Renamed from
51563         doc/glibc-functions/fmemopen.texi.
51564         * doc/posix-functions/freelocale.texi: Renamed from
51565         doc/glibc-functions/freelocale.texi.
51566         * doc/posix-functions/getdate_err.texi: Renamed from
51567         doc/glibc-functions/getdate_err.texi.
51568         * doc/posix-functions/isalnum_l.texi: Renamed from
51569         doc/glibc-functions/isalnum_l.texi.
51570         * doc/posix-functions/isalpha_l.texi: Renamed from
51571         doc/glibc-functions/isalpha_l.texi.
51572         * doc/posix-functions/isblank_l.texi: Renamed from
51573         doc/glibc-functions/isblank_l.texi.
51574         * doc/posix-functions/iscntrl_l.texi: Renamed from
51575         doc/glibc-functions/iscntrl_l.texi.
51576         * doc/posix-functions/isdigit_l.texi: Renamed from
51577         doc/glibc-functions/isdigit_l.texi.
51578         * doc/posix-functions/isgraph_l.texi: Renamed from
51579         doc/glibc-functions/isgraph_l.texi.
51580         * doc/posix-functions/islower_l.texi: Renamed from
51581         doc/glibc-functions/islower_l.texi.
51582         * doc/posix-functions/isprint_l.texi: Renamed from
51583         doc/glibc-functions/isprint_l.texi.
51584         * doc/posix-functions/ispunct_l.texi: Renamed from
51585         doc/glibc-functions/ispunct_l.texi.
51586         * doc/posix-functions/isspace_l.texi: Renamed from
51587         doc/glibc-functions/isspace_l.texi.
51588         * doc/posix-functions/isupper_l.texi: Renamed from
51589         doc/glibc-functions/isupper_l.texi.
51590         * doc/posix-functions/iswalnum_l.texi: Renamed from
51591         doc/glibc-functions/iswalnum_l.texi.
51592         * doc/posix-functions/iswalpha_l.texi: Renamed from
51593         doc/glibc-functions/iswalpha_l.texi.
51594         * doc/posix-functions/iswblank_l.texi: Renamed from
51595         doc/glibc-functions/iswblank_l.texi.
51596         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51597         doc/glibc-functions/iswcntrl_l.texi.
51598         * doc/posix-functions/iswctype_l.texi: Renamed from
51599         doc/glibc-functions/iswctype_l.texi.
51600         * doc/posix-functions/iswdigit_l.texi: Renamed from
51601         doc/glibc-functions/iswdigit_l.texi.
51602         * doc/posix-functions/iswgraph_l.texi: Renamed from
51603         doc/glibc-functions/iswgraph_l.texi.
51604         * doc/posix-functions/iswlower_l.texi: Renamed from
51605         doc/glibc-functions/iswlower_l.texi.
51606         * doc/posix-functions/iswprint_l.texi: Renamed from
51607         doc/glibc-functions/iswprint_l.texi.
51608         * doc/posix-functions/iswpunct_l.texi: Renamed from
51609         doc/glibc-functions/iswpunct_l.texi.
51610         * doc/posix-functions/iswspace_l.texi: Renamed from
51611         doc/glibc-functions/iswspace_l.texi.
51612         * doc/posix-functions/iswupper_l.texi: Renamed from
51613         doc/glibc-functions/iswupper_l.texi.
51614         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51615         doc/glibc-functions/iswxdigit_l.texi.
51616         * doc/posix-functions/isxdigit_l.texi: Renamed from
51617         doc/glibc-functions/isxdigit_l.texi.
51618         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51619         doc/glibc-functions/mbsnrtowcs.texi.
51620         * doc/posix-functions/mkdtemp.texi: Renamed from
51621         doc/glibc-functions/mkdtemp.texi.
51622         * doc/posix-functions/newlocale.texi: Renamed from
51623         doc/glibc-functions/newlocale.texi.
51624         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51625         doc/glibc-functions/nl_langinfo_l.texi.
51626         * doc/posix-functions/open_memstream.texi: Renamed from
51627         doc/glibc-functions/open_memstream.texi.
51628         * doc/posix-functions/opterr.texi: Renamed from
51629         doc/glibc-functions/opterr.texi.
51630         * doc/posix-functions/optind.texi: Renamed from
51631         doc/glibc-functions/optind.texi.
51632         * doc/posix-functions/optopt.texi: Renamed from
51633         doc/glibc-functions/optopt.texi.
51634         * doc/posix-functions/psignal.texi: Renamed from
51635         doc/glibc-functions/psignal.texi.
51636         * doc/posix-functions/scandir.texi: Renamed from
51637         doc/glibc-functions/scandir.texi.
51638         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51639         doc/glibc-functions/sched_get_priority_min.texi.
51640         * doc/posix-functions/signgam.texi: Renamed from
51641         doc/glibc-functions/signgam.texi.
51642         * doc/posix-functions/stpcpy.texi: Renamed from
51643         doc/glibc-functions/stpcpy.texi.
51644         * doc/posix-functions/stpncpy.texi: Renamed from
51645         doc/glibc-functions/stpncpy.texi.
51646         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51647         doc/glibc-functions/strcasecmp_l.texi.
51648         * doc/posix-functions/strcoll_l.texi: Renamed from
51649         doc/glibc-functions/strcoll_l.texi.
51650         * doc/posix-functions/strfmon_l.texi: Renamed from
51651         doc/glibc-functions/strfmon_l.texi.
51652         * doc/posix-functions/strftime_l.texi: Renamed from
51653         doc/glibc-functions/strftime_l.texi.
51654         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51655         doc/glibc-functions/strncasecmp_l.texi.
51656         * doc/posix-functions/strndup.texi: Renamed from
51657         doc/glibc-functions/strndup.texi.
51658         * doc/posix-functions/strnlen.texi: Renamed from
51659         doc/glibc-functions/strnlen.texi.
51660         * doc/posix-functions/strsignal.texi: Renamed from
51661         doc/glibc-functions/strsignal.texi.
51662         * doc/posix-functions/strxfrm_l.texi: Renamed from
51663         doc/glibc-functions/strxfrm_l.texi.
51664         * doc/posix-functions/timer_gettime.texi: Renamed from
51665         doc/glibc-functions/timer_gettime.texi.
51666         * doc/posix-functions/tolower_l.texi: Renamed from
51667         doc/glibc-functions/tolower_l.texi.
51668         * doc/posix-functions/toupper_l.texi: Renamed from
51669         doc/glibc-functions/toupper_l.texi.
51670         * doc/posix-functions/towctrans_l.texi: Renamed from
51671         doc/glibc-functions/towctrans_l.texi.
51672         * doc/posix-functions/towlower_l.texi: Renamed from
51673         doc/glibc-functions/towlower_l.texi.
51674         * doc/posix-functions/towupper_l.texi: Renamed from
51675         doc/glibc-functions/towupper_l.texi.
51676         * doc/posix-functions/uselocale.texi: Renamed from
51677         doc/glibc-functions/uselocale.texi.
51678         * doc/posix-functions/vdprintf.texi: Renamed from
51679         doc/glibc-functions/vdprintf.texi.
51680         * doc/posix-functions/wcpcpy.texi:
51681         Renamed from doc/glibc-functions/wcpcpy.texi.
51682         * doc/posix-functions/wcpncpy.texi: Renamed from
51683         doc/glibc-functions/wcpncpy.texi.
51684         * doc/posix-functions/wcscasecmp.texi: Renamed from
51685         doc/glibc-functions/wcscasecmp.texi.
51686         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51687         doc/glibc-functions/wcscasecmp_l.texi.
51688         * doc/posix-functions/wcscoll_l.texi: Renamed from
51689         doc/glibc-functions/wcscoll_l.texi.
51690         * doc/posix-functions/wcsdup.texi: Renamed from
51691         doc/glibc-functions/wcsdup.texi.
51692         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51693         doc/glibc-functions/wcsncasecmp.texi.
51694         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51695         doc/glibc-functions/wcsncasecmp_l.texi.
51696         * doc/posix-functions/wcsnlen.texi: Renamed from
51697         doc/glibc-functions/wcsnlen.texi.
51698         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51699         doc/glibc-functions/wcsnrtombs.texi.
51700         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51701         doc/glibc-functions/wcsxfrm_l.texi.
51702         * doc/posix-functions/wctrans_l.texi: Renamed from
51703         doc/glibc-functions/wctrans_l.texi.
51704         * doc/posix-functions/wctype_l.texi: Renamed from
51705         doc/glibc-functions/wctype_l.texi.
51706         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51707         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51708         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51709         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51710         these subsections.
51711         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51712         Remove sections.
51713
51714 2008-12-14  Bruno Haible  <bruno@clisp.org>
51715
51716         Update doc for POSIX:2008.
51717         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51718
51719 2008-12-14  Bruno Haible  <bruno@clisp.org>
51720
51721         Update doc for POSIX:2008.
51722         * doc/pastposix-functions/bcmp.texi: Renamed from
51723         doc/posix-functions/bcmp.texi.
51724         * doc/pastposix-functions/bcopy.texi: Renamed from
51725         doc/posix-functions/bcopy.texi.
51726         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51727         doc/posix-functions/bsd_signal.texi.
51728         * doc/pastposix-functions/bzero.texi: Renamed from
51729         doc/posix-functions/bzero.texi.
51730         * doc/pastposix-functions/ecvt.texi: Renamed from
51731         doc/posix-functions/ecvt.texi.
51732         * doc/pastposix-functions/fcvt.texi: Renamed from
51733         doc/posix-functions/fcvt.texi.
51734         * doc/pastposix-functions/ftime.texi: Renamed from
51735         doc/posix-functions/ftime.texi.
51736         * doc/pastposix-functions/gcvt.texi: Renamed from
51737         doc/posix-functions/gcvt.texi.
51738         * doc/pastposix-functions/getcontext.texi: Renamed from
51739         doc/posix-functions/getcontext.texi.
51740         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51741         doc/posix-functions/gethostbyaddr.texi.
51742         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51743         doc/posix-functions/gethostbyname.texi.
51744         * doc/pastposix-functions/getwd.texi: Renamed from
51745         doc/posix-functions/getwd.texi.
51746         * doc/pastposix-functions/h_errno.texi: Renamed from
51747         doc/posix-functions/h_errno.texi.
51748         * doc/pastposix-functions/index.texi: Renamed from
51749         doc/posix-functions/index.texi.
51750         * doc/pastposix-functions/makecontext.texi: Renamed from
51751         doc/posix-functions/makecontext.texi.
51752         * doc/pastposix-functions/mktemp.texi: Renamed from
51753         doc/posix-functions/mktemp.texi.
51754         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51755         doc/posix-functions/pthread_attr_getstackaddr.texi.
51756         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51757         doc/posix-functions/pthread_attr_setstackaddr.texi.
51758         * doc/pastposix-functions/rindex.texi: Renamed from
51759         doc/posix-functions/rindex.texi.
51760         * doc/pastposix-functions/scalb.texi: Renamed from
51761         doc/posix-functions/scalb.texi.
51762         * doc/pastposix-functions/setcontext.texi: Renamed from
51763         doc/posix-functions/setcontext.texi.
51764         * doc/pastposix-functions/swapcontext.texi: Renamed from
51765         doc/posix-functions/swapcontext.texi.
51766         * doc/pastposix-functions/ualarm.texi: Renamed from
51767         doc/posix-functions/ualarm.texi.
51768         * doc/pastposix-functions/usleep.texi: Renamed from
51769         doc/posix-functions/usleep.texi.
51770         * doc/pastposix-functions/vfork.texi: Renamed from
51771         doc/posix-functions/vfork.texi.
51772         * doc/pastposix-functions/wcswcs.texi: Renamed from
51773         doc/posix-functions/wcswcs.texi.
51774         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51775         (Function Substitutes): Update.
51776
51777 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51778
51779         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51780         m4/strerror.m4.
51781
51782 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51783             Bruno Haible  <bruno@clisp.org>
51784
51785         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51786
51787 2008-12-13  Bruno Haible  <bruno@clisp.org>
51788
51789         * modules/strtoull (Depends-on): Remove unistd.
51790
51791 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51792
51793         * modules/strtoull (Depends-on): Add stdlib.
51794
51795 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51796
51797         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51798
51799 2008-12-10  Jim Meyering  <meyering@redhat.com>
51800
51801         gl_ASSERT: don't say assertions are disabled when they're not
51802         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51803         "checking whether to enable assertions... no", when they are in
51804         fact enabled.  This is solely a bug in the output of configure.
51805         In spite of saying "no", NDEBUG was not defined in that case.
51806         Also, as noted by Eric Blake, leave assertions enabled upon
51807         --enable-assert=INVALID.
51808
51809 2008-12-10  Bruno Haible  <bruno@clisp.org>
51810
51811         Change MODULES.html to refer to POSIX:2008 where possible.
51812         * MODULES.html.sh (POSIX2008_URL): New variable.
51813         (posix_headers): Remove sys/timeb, ucontext.
51814         (posix2001_headers): New variable.
51815         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51816         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51817         index, makecontext, mktemp, pthread_attr_getstackaddr,
51818         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51819         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51820         (posix2001_functions): New variable.
51821         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51822         otherwise.
51823
51824 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51825
51826         add missing include to parse-duration.c
51827         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51828         * modules/parse-duration (Depends-on): Add xalloc.
51829
51830         fix sed script reading maint.mk
51831         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51832         (syntax-check-rules): Use it.
51833
51834 2008-12-09  Bruno Haible  <bruno@clisp.org>
51835
51836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51837         MacOS X 10.4/PowerPC.
51838         Reported by Simon Josefsson.
51839
51840 2008-12-08  Jim Meyering  <meyering@redhat.com>
51841
51842         work around mingw's lack of some S_IF definitions
51843         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51844         Reported by Simon Josefsson.
51845
51846 2008-12-08  Bruno Haible  <bruno@clisp.org>
51847
51848         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51849         applied to variables. Needed on MacOS X 10.4/PowerPC.
51850         Reported by Simon Josefsson.
51851
51852 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51853         and Eric Blake  <ebb9@byu.net>
51854
51855         assert: honor --enable-assert
51856         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51857         order to honor --enable-assert, rather than treating it as a
51858         synonym for --disable-assert.
51859
51860 2008-12-08  Jim Meyering  <meyering@redhat.com>
51861
51862         * lib/posixtm.c: Remove now-useless declaration of mktime.
51863
51864         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51865
51866 2008-12-07  Bruno Haible  <bruno@clisp.org>
51867
51868         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51869         test_once): Mark functions as static.
51870         * tests/test-tls.c (test_tls): Likewise.
51871
51872 2008-12-07  Bruno Haible  <bruno@clisp.org>
51873
51874         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51875         iconv_register_autodetect.
51876
51877 2008-12-07  Jim Meyering  <meyering@redhat.com>
51878
51879         posixtm.c: avoid a warning
51880         * lib/posixtm.c (posixtime): Don't initialize tm0.
51881         It's no longer needed to placate gcc4's -Wuninitialized,
51882         and the attempt to placate would elicit a new warning.
51883
51884         unicodeio.c: mark unused parameters
51885         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51886         (fallback_failure_callback): Likewise.
51887
51888 2008-12-07  Bruno Haible  <bruno@clisp.org>
51889
51890         * gnulib-tool (func_create_testdir): When building the tests
51891         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51892         Reported by Simon Josefsson.
51893
51894 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51895
51896         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51897
51898 2008-12-06  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51901         Suggested by Eric Blake.
51902
51903 2008-12-06  Bruno Haible  <bruno@clisp.org>
51904
51905         Fix a c-stack test failure on MacOS X.
51906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51907         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51908         handler for SIGBUS as well.
51909         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51910         install a signal handler for SIGBUS as well.
51911         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51912
51913 2008-12-06  Bruno Haible  <bruno@clisp.org>
51914
51915         Advocacy documentation.
51916         * doc/gnulib-intro.texi (Benefits): New section.
51917         * doc/gnulib.texi: Update.
51918
51919 2008-12-06  Bruno Haible  <bruno@clisp.org>
51920
51921         Document the 'manywarnings' module.
51922         * doc/manywarnings.texi: New file.
51923         * doc/gnulib.texi: Include it.
51924
51925 2008-12-05  Eric Blake  <ebb9@byu.net>
51926
51927         tests: silence some gcc warnings
51928         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51929         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51930         type mismatches.
51931
51932 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51933             Bruno Haible  <bruno@clisp.org>
51934
51935         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51936
51937 2008-11-29  Jim Meyering  <meyering@redhat.com>
51938
51939         unicodeio.c: mark unused parameters
51940         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51941         (fallback_failure_callback): Likewise.
51942
51943         fts: fix a thinko
51944         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51945         (set_stat_type): Return S_IF*-valued "type" directly.
51946         Prompted by James Youngman's spotting a related bug.
51947         Confirmed by further testing through find.
51948
51949         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51950         * lib/fts.c (D_TYPE): Define.
51951         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51952         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51953         (s_ifmt_shift_bits): New function.
51954         (set_stat_type): New function.
51955         (fts_build): When not calling fts_stat, call set_stat_type
51956         to propagate dirent.d_type info to fts_read caller.
51957         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51958         fts_statp->st_mode type information may be valid.
51959
51960 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51961
51962         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51963         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51964         <sds@gnu.org>.
51965
51966 2008-11-20  Bruno Haible  <bruno@clisp.org>
51967
51968         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51969         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51970         INCLUDE_NEXT.
51971         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51972         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51973         * modules/math (Makefile.am): Substitute
51974         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51975         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51976
51977 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51978             Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/stdint.in.h: Define all type macros so that their expansion is
51981         a single typedef'ed token. Fixes a compilation failure in Boost which
51982         does "using ::int8_t;".
51983
51984 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51985
51986         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51987         gl_MANYWARN_ALL_GCC.
51988         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51989         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51990         * modules/manywarnings: New file.
51991         * MODULES.html.sh: Mention manywarnings module.
51992
51993 2008-11-18  Bruno Haible  <bruno@clisp.org>
51994
51995         * doc/gnulib-tool.texi (Unit tests): New section.
51996
51997 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51998
51999         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52000         paths like 'lib/po/foo.po'.
52001
52002 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52003
52004         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52005         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52006
52007 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52008
52009         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52010         parameter works.
52011
52012 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52013
52014         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52015
52016 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52017
52018         * modules/parse-duration-tests: New file.
52019         * tests/test-parse-duration.sh: New file.
52020         * tests/test-parse-duration.c: New file.
52021
52022         New module 'parse-duration'.
52023         * lib/parse-duration.h: New file.
52024         * lib/parse-duration.c: New file.
52025         * modules/parse-duration: New file.
52026
52027 2008-11-17  Bruno Haible  <bruno@clisp.org>
52028
52029         * tests/test-select-out.sh: Comment out the first pipe test.
52030         Reported by Simon Josefsson.
52031
52032 2008-11-17  Bruno Haible  <bruno@clisp.org>
52033
52034         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52035         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52036         gl_HOSTENT.
52037
52038 2008-11-17  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52041         -lnetwork and -lnet. Needed for Haiku and BeOS.
52042
52043 2008-11-16  Bruno Haible  <bruno@clisp.org>
52044
52045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52046
52047 2008-11-16  Bruno Haible  <bruno@clisp.org>
52048
52049         Avoid test failure on Haiku.
52050         * tests/test-fsync.c: Include <errno.h>.
52051         (main): Don't require that fsync (0) fails.
52052
52053 2008-11-15  Bruno Haible  <bruno@clisp.org>
52054
52055         New module 'hostent'.
52056         * modules/hostent: New file.
52057         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52058
52059 2008-11-15  Bruno Haible  <bruno@clisp.org>
52060
52061         New module 'servent'.
52062         * modules/servent: New file.
52063         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52064
52065 2008-11-15  Bruno Haible  <bruno@clisp.org>
52066
52067         Avoid generating same test program with two different rules.
52068         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52069         test-frexp to test-frexp-nolibm.
52070         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52071         test-frexpl to test-frexpl-nolibm.
52072
52073 2008-11-15  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52076         $(FREXPL_LIBM).
52077
52078 2008-11-15  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/netdb.in.h: Activate the definitions also when the system's
52081         <netdb.h> has 'struct addrinfo'.
52082         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52083         EAI_OVERFLOW or AI_NUMERICSERV.
52084         * doc/posix-headers/netdb.texi: Document the problem.
52085
52086 2008-11-15  Bruno Haible  <bruno@clisp.org>
52087
52088         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52089
52090         Make the 'sched' module work on platforms where <sched.h> exists but
52091         is incomplete (such as Haiku).
52092         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52093         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52094         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52095         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52096         HAVE_STRUCT_SCHED_PARAM.
52097         * modules/sched (Depends-on): Add include_next.
52098         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52099         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52100         * doc/posix-headers/sched.texi: Document the issue.
52101
52102 2008-11-13  Jim Meyering  <meyering@redhat.com>
52103
52104         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52105         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52106         test would fail due to the difference in the Report bugs to ...
52107         line.  The expected address is empty, "<>", while the actual
52108         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52109
52110 2008-11-12  Bruno Haible  <bruno@clisp.org>
52111
52112         lstat: don't compile lstat.c on systems lacking lstat
52113         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52114         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52115         Reported by Daniel P. Berrange via Jim Meyering.
52116
52117 2008-11-12  Jim Meyering  <meyering@redhat.com>
52118
52119         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52120
52121 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52122
52123         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52124         instead.
52125
52126 2008-11-12  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/unicodeio.c: Include unistr.h.
52129         (utf8_wctomb): Remove function.
52130         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52131
52132 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52133
52134         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52135         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52136         <bruno@clisp.org>.
52137         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52138
52139 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52140
52141         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52142         * doc/gnulib.texi: Add section for warnings.
52143
52144 2008-11-11  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/sockets.h: Add a comment.
52147
52148 2008-11-11  Karl Berry  <karl@gnu.org>
52149
52150         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52151
52152 2008-11-11  Eric Blake  <ebb9@byu.net>
52153
52154         fdl.texi: avoid git symlinks
52155         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52156
52157 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52158
52159         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52160
52161 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52162
52163         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52164         (gl_WARN_ADD): Substitute $2 if literal.
52165
52166 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52167
52168         * m4/warning.m4: Remove.
52169
52170 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52171
52172         * m4/warnings.m4: Almost complete rewrite. :-)
52173
52174 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52175
52176         * modules/warnings: New module.
52177         * m4/warnings.m4: New file.
52178         * MODULES.html.sh: Mention warnings module.
52179         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52180         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52181
52182 2008-11-10  Eric Blake  <ebb9@byu.net>
52183
52184         fdl.texi: make a symlink to the latest version
52185         * doc/standards.texi: Revert today's earlier change.
52186         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52187         * doc/fdl.texi: ...and replace this with a symlink to the newer
52188         fdl-1.3.texi.
52189
52190 2008-11-10  Bruno Haible  <bruno@clisp.org>
52191
52192         * tests/test-select-fd.c (main): Accept the result file name as fourth
52193         argument.
52194         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52195         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52196
52197 2008-11-10  Bruno Haible  <bruno@clisp.org>
52198
52199         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52200         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52201         as autoconf-substituted macros.
52202         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52204         gl_NETDB_H_DEFAULTS. Set these variables.
52205         * modules/netdb (Makefile.am): Substitute these variables.
52206
52207 2008-11-10  Eric Blake  <ebb9@byu.net>
52208
52209         standards.texi: include correct file for FDL 1.3
52210         * doc/standards.texi (GNU Free Documentation License): Change
52211         include file to pull in FDL 1.3, not 1.2.
52212
52213         fdl.texi: revert accidental change to license
52214         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52215
52216 2008-11-10  Bruno Haible  <bruno@clisp.org>
52217
52218         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52219         cross-compiling guesses also when the native compile gives no result.
52220
52221 2008-11-10  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/spawni.c (__spawni): Force variable into the stack.
52224
52225 2008-11-10  Bruno Haible  <bruno@clisp.org>
52226
52227         Add support for Haiku.
52228         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52229         glibc and BeOS, but also on Haiku.
52230         * lib/fpurge.c (fpurge): Likewise.
52231         * lib/freadable.c (freadable): Likewise.
52232         * lib/freadahead.c (freadahead): Likewise.
52233         * lib/freading.c (freading): Likewise.
52234         * lib/freadptr.c (freadptr): Likewise.
52235         * lib/freadseek.c (freadptrinc): Likewise.
52236         * lib/fseeko.c (rpl_fseeko): Likewise.
52237         * lib/fseterr.c (fseterr): Likewise.
52238         * lib/fwritable.c (fwritable): Likewise.
52239         * lib/fwriting.c (fwriting): Likewise.
52240         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52241
52242 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52243
52244         * lib/config.charset: Treat Haiku like BeOS.
52245
52246 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52247
52248         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52249         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52250
52251 2008-11-08  Bruno Haible  <bruno@clisp.org>
52252
52253         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52254         AC_CACHE_CHECK.
52255
52256 2008-11-08  Bruno Haible  <bruno@clisp.org>
52257
52258         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52259
52260 2008-11-08  Bruno Haible  <bruno@clisp.org>
52261
52262         * tests/test-select-fd.c: New file.
52263         * tests/test-select-in.sh: New file.
52264         * tests/test-select-out.sh: New file.
52265         * tests/test-select-stdin.c: New file.
52266         * modules/select-tests (Files): Add the new files.
52267         (Depends-on): Add gettimeofday.
52268         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52269         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52270         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52271
52272 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52273             Bruno Haible  <bruno@clisp.org>
52274
52275         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52276
52277 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52278
52279         * build-aux/pmccabe2html: Added support for C++ source files.
52280
52281 2008-11-05  Ben Pfaff  <blp@gnu.org>
52282
52283         Fix lib/close.c build on Windows.
52284         * modules/close (Files): Add lib/w32sock.h.
52285
52286 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52287
52288         Accept Bison's NEWS format.
52289         * build-aux/announce-gen (print_news_deltas): Tweak
52290         $re_prefix.
52291
52292 2008-11-04  Bruno Haible  <bruno@clisp.org>
52293
52294         * modules/random_r (Maintainer): Add glibc.
52295
52296 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52297
52298         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52299         by karl@freefriends.org (Karl Berry).
52300         * doc/alloca.texi: Likewise.
52301         * doc/c-ctype.texi: Likewise.
52302         * doc/c-strcase.texi: Likewise.
52303         * doc/c-strcaseeq.texi: Likewise.
52304         * doc/c-strcasestr.texi: Likewise.
52305         * doc/c-strstr.texi: Likewise.
52306         * doc/c-strtod.texi: Likewise.
52307         * doc/c-strtold.texi: Likewise.
52308         * doc/ctime.texi: Likewise.
52309         * doc/error.texi: Likewise.
52310         * doc/fdl.texi: Likewise.
52311         * doc/gcd.texi: Likewise.
52312         * doc/getdate.texi: Likewise.
52313         * doc/gnulib-intro.texi: Likewise.
52314         * doc/gnulib-tool.texi: Likewise.
52315         * doc/gnulib.texi: Likewise.
52316         * doc/inet_ntoa.texi: Likewise.
52317         * doc/maintain.texi: Likewise.
52318         * doc/make-stds.texi: Likewise.
52319         * doc/quote.texi: Likewise.
52320         * doc/regexprops-generic.texi: Likewise.
52321         * doc/standards.texi: Likewise.
52322         * doc/verify.texi: Likewise.
52323         * doc/visibility.texi: Likewise.
52324         * doc/gnulib.texi (GNU Free Documentation License): Include
52325         fdl-1.3.texi instead of fdl.texi.
52326
52327 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52328
52329         * doc/fdl-1.3.texi: New file, from
52330         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52331         * modules/fdl-1.3: Add.
52332         * MODULES.html.sh: Add fdl-1.3.
52333
52334 2008-11-03  Bruno Haible  <bruno@clisp.org>
52335
52336         Make determination of absolute name of header file work with AIX xlc.
52337         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52338         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52339         preprocessing.
52340         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52341         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52342
52343 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52344
52345         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52346         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52347         <ludo@gnu.org>.
52348
52349 2008-11-02  Bruno Haible  <bruno@clisp.org>
52350
52351         Mark 'strpbrk' obsolete.
52352         * modules/strpbrk (Status, Notice): New sections.
52353         * modules/strtok_r (Depends-on): Add strpbrk.
52354
52355 2008-11-02  Bruno Haible  <bruno@clisp.org>
52356
52357         Mark 'strdup' obsolete.
52358         * modules/strdup (Status, Notice): New sections.
52359         * modules/findprog (Depends-on): Add strdup.
52360         * modules/getaddrinfo (Depends-on): Likewise.
52361         * modules/localename (Depends-on): Likewise.
52362         * modules/relocatable-lib (Depends-on): Likewise.
52363         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52364         * modules/relocatable-prog (Depends-on): Likewise.
52365         * modules/trim (Depends-on): Likewise.
52366         * modules/unictype/gen-ctype (Depends-on): Likewise.
52367         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52368
52369 2008-11-02  Bruno Haible  <bruno@clisp.org>
52370
52371         Mark 'strcspn' obsolete.
52372         * modules/strcspn (Status, Notice): New sections.
52373
52374 2008-11-02  Bruno Haible  <bruno@clisp.org>
52375
52376         Mark 'rmdir' obsolete.
52377         * modules/rmdir (Status, Notice): New sections.
52378         * modules/clean-temp (Depends-on): Add rmdir.
52379         * modules/openat (Depends-on): Likewise.
52380
52381 2008-11-02  Bruno Haible  <bruno@clisp.org>
52382
52383         Mark 'raise' obsolete.
52384         * modules/raise (Status, Notice): New sections.
52385         (Include): Specify <signal.h>.
52386         * modules/stdio (Depends-on): Add raise.
52387         * modules/write (Depends-on): Likewise.
52388
52389 2008-11-02  Bruno Haible  <bruno@clisp.org>
52390
52391         Mark 'memset' obsolete.
52392         * modules/memset (Status, Notice): New sections.
52393
52394 2008-11-02  Bruno Haible  <bruno@clisp.org>
52395
52396         Mark 'memmove' obsolete.
52397         * modules/memmove (Status, Notice): New sections.
52398         * modules/argp (Depends-on): Add memmove.
52399         * modules/argz (Depends-on): Likewise.
52400         * modules/canonicalize (Depends-on): Likewise.
52401         * modules/canonicalize-lgpl (Depends-on): Likewise.
52402         * modules/fts (Depends-on): Likewise.
52403         * modules/getcwd (Depends-on): Likewise.
52404         * modules/human (Depends-on): Likewise.
52405         * modules/regex (Depends-on): Likewise.
52406         * modules/striconveh (Depends-on): Likewise.
52407         * modules/trim (Depends-on): Likewise.
52408         * modules/unistr/u8-move (Depends-on): Likewise.
52409         * modules/unistr/u16-move (Depends-on): Likewise.
52410         * modules/unistr/u32-move (Depends-on): Likewise.
52411
52412 2008-11-02  Bruno Haible  <bruno@clisp.org>
52413
52414         Mark 'memcpy' obsolete.
52415         * modules/memcpy (Status, Notice): New sections.
52416
52417 2008-11-02  Bruno Haible  <bruno@clisp.org>
52418
52419         Mark 'memcmp' obsolete.
52420         * modules/memcmp (Status, Notice): New sections.
52421         * modules/argmatch (Depends-on): Add memchr.
52422         * modules/backupfile (Depends-on): Likewise.
52423         * modules/c-strcasestr (Depends-on): Likewise.
52424         * modules/crypto/des (Depends-on): Likewise.
52425         * modules/csharpcomp (Depends-on): Likewise.
52426         * modules/fnmatch (Depends-on): Likewise.
52427         * modules/git-merge-changelog (Depends-on): Likewise.
52428         * modules/isnand (Depends-on): Likewise.
52429         * modules/isnand-nolibm (Depends-on): Likewise.
52430         * modules/isnanf (Depends-on): Likewise.
52431         * modules/isnanf-nolibm (Depends-on): Likewise.
52432         * modules/isnanl (Depends-on): Likewise.
52433         * modules/isnanl-nolibm (Depends-on): Likewise.
52434         * modules/mbchar (Depends-on): Likewise.
52435         * modules/memcoll (Depends-on): Likewise.
52436         * modules/quotearg (Depends-on): Likewise.
52437         * modules/regex (Depends-on): Likewise.
52438         * modules/relocatable-prog (Depends-on): Likewise.
52439         * modules/same (Depends-on): Likewise.
52440         * modules/signbit (Depends-on): Likewise.
52441         * modules/strcasestr-simple (Depends-on): Likewise.
52442         * modules/unictype/gen-ctype (Depends-on): Likewise.
52443         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52444         * modules/uniname/uniname (Depends-on): Likewise.
52445         * modules/unistr/u8-cmp (Depends-on): Likewise.
52446
52447 2008-11-02  Bruno Haible  <bruno@clisp.org>
52448
52449         Mark 'memchr' obsolete.
52450         * modules/memchr (Status, Notice): New sections.
52451         * modules/argp (Depends-on): Add memchr.
52452         * modules/base64 (Depends-on): Likewise.
52453         * modules/c-strcasestr (Depends-on): Likewise.
52454         * modules/chdir-long (Depends-on): Likewise.
52455         * modules/fnmatch (Depends-on): Likewise.
52456         * modules/getsubopt (Depends-on): Likewise.
52457         * modules/git-merge-changelog (Depends-on): Likewise.
52458         * modules/glob (Depends-on): Likewise.
52459         * modules/strcasestr-simple (Depends-on): Likewise.
52460         * modules/strnlen (Depends-on): Likewise.
52461
52462 2008-11-02  Bruno Haible  <bruno@clisp.org>
52463
52464         Mark 'atexit' obsolete.
52465         * modules/atexit (Status, Notice): New sections.
52466         * modules/chdir-long (Depends-on): Add atexit.
52467         * modules/wait-process (Depends-on): Likewise.
52468
52469 2008-11-02  Bruno Haible  <bruno@clisp.org>
52470
52471         * gnulib-tool: New option --with-obsolete.
52472         (func_usage): Document it.
52473         (func_modules_transitive_closure): Drop obsolete dependencies if
52474         incobsolete is not true.
52475         (func_import): Read and save the incobsolete variable to the cache.
52476
52477 2008-11-02  Bruno Haible  <bruno@clisp.org>
52478
52479         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52480         * gnulib-tool: New option --extract-status.
52481         (func_usage): Document it.
52482         (sed_extract_prog): Recognize it.
52483         (func_get_status): New function.
52484
52485 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52486
52487         * modules/sockets (License): Change from LGPL to LGPLv2+.
52488
52489 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52490
52491         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52492
52493 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52494
52495         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52496         Mention times and sys_times.
52497         * modules/sys_times, modules/sys_times-tests: New modules.
52498         * modules/times, modules/times-tests: Likewise
52499         * m4/sys_times_h.m4: New file.
52500         * lib/sys_times.in.h: Likewise
52501         * lib/times.c: Likewise.
52502         * tests/test-sys_times.c: Likewise.
52503         * tests/test-times.c: Likewise.
52504         * doc/posix-headers/sys_times.texi: Update.
52505         * doc/posix-functions/times.texi: Update.
52506
52507 2008-10-28  Jim Meyering  <meyering@redhat.com>
52508
52509         * modules/tempname (Depends-on): Add lstat.
52510
52511         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52512
52513 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52514
52515         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52516         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52517         using idiom used elsewhere in gnulib.
52518
52519 2008-10-27  Jim Meyering  <meyering@redhat.com>
52520
52521         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52522
52523 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52524
52525         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52526         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52527         programs.
52528         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52529
52530 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52531
52532         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52533
52534 2008-10-27  Bruno Haible  <bruno@clisp.org>
52535
52536         * tests/test-lstat.c: Include <stdio.h>.
52537
52538 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52539
52540         * modules/lstat-tests: New module.
52541         * tests/test-lstat.c: New file.
52542
52543 2008-10-26  Jim Meyering  <meyering@redhat.com>
52544
52545         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52546
52547 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52551         * modules/configmake (Include): Add a note that the include must come
52552         after all system headers.
52553         * lib/javaversion.c: Include configmake.h after all other includes.
52554
52555 2008-10-26  Bruno Haible  <bruno@clisp.org>
52556
52557         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52558         HAVE_STRUCT_RANDOM_DATA to 1.
52559         (gl_STDLIB_H): Simplify.
52560
52561 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52562
52563         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52564         substitute HAVE_STRUCT_RANDOM_DATA.
52565         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52566         random_data.
52567         * modules/stdlib (Makefile.am): Substitute
52568         HAVE_STRUCT_RANDOM_DATA.
52569
52570 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52571
52572         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52573         * doc/gnulib-intro.texi (Copyright): Likewise.
52574
52575 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52576
52577         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52578         findings.
52579
52580 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52581             Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/unistd.in.h: Include <winsock2.h>.
52584         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52585         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52586         Provide dummy declarations.
52587         (gethostname): Override.
52588         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52589         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52590         gl_PREREQ_SYS_H_WINSOCK2.
52591         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52592         * doc/posix-functions/gethostname.texi: More details.
52593
52594 2008-10-25  Bruno Haible  <bruno@clisp.org>
52595
52596         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52597         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52598         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52599
52600         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52601         here ...
52602         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52603         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52604         gl_UNISTD_H_DEFAULTS.
52605
52606 2008-10-25  Eric Blake  <ebb9@byu.net>
52607
52608         signbit: avoid spurious compiler failure
52609         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52610         declarations inside function.
52611
52612 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52613             Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52616         * modules/random_r (Depends-on): Add stdint.
52617
52618 2008-10-24  Bruno Haible  <bruno@clisp.org>
52619
52620         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52621         Eggert.
52622         * modules/strerror (License): Likewise.
52623
52624 2008-10-24  Jim Meyering  <meyering@redhat.com>
52625
52626         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52627         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52628
52629 2008-10-24  Eric Blake  <ebb9@byu.net>
52630
52631         getgroups: fix compilation when getgroups is available
52632         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52633         but with <config.h> override of getgroups disabled.
52634
52635 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52636
52637         * doc/gnulib.texi (Header files): Add note about C++ problems.
52638         Explained by Bruno Haible <bruno@clisp.org>.
52639
52640 2008-10-23  Bruno Haible  <bruno@clisp.org>
52641
52642         Define a dummy SA_NODEFER macro on Interix.
52643         * lib/signal.in.h (SA_NODEFER): Define fallback.
52644         Reported by Aleksey Cheusov <cheusov@tut.by> via
52645         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52646
52647 2008-10-23  Bruno Haible  <bruno@clisp.org>
52648
52649         * modules/freadahead (License): Change to LGPLv2+.
52650         Suggested by Simon Josefsson.
52651
52652 2008-10-23  Jim Meyering  <meyering@redhat.com>
52653
52654         random_r: new module
52655         * modules/random_r: New file.
52656         * m4/random_r.m4: New file.
52657         * lib/random_r.c: New file, from glibc.
52658         * modules/random_r-tests: New file.
52659         * tests/test-random_r.c: New file.
52660         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52661          Declare.
52662         (RAND_MAX): Define.
52663         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52664         * modules/stdlib: Substitute them, too.
52665         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52666         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52667         * doc/glibc-functions/random_r.texi: Likewise.
52668         * doc/glibc-functions/setstate_r.texi: Likewise.
52669         * doc/glibc-functions/srandom_r.texi: Likewise.
52670         * config/srclist.txt: Mention it.
52671
52672 2008-10-23  David Lutterkort  <lutter@redhat.com>
52673
52674         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52675         link requirement
52676
52677 2008-10-23  Jim Meyering  <meyering@redhat.com>
52678
52679         selinux-h: mark parameters of stub functions as intentionally unused
52680         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52681         * lib/se-context.in.h: Likewise.
52682
52683 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52684
52685         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52686
52687 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52688
52689         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52690
52691 2008-10-22  Eric Blake  <ebb9@byu.net>
52692
52693         glthread/thread: avoid compiler warning
52694         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52695         Add unreachable abort to silence compiler.
52696
52697 2008-10-22  Eric Blake  <ebb9@byu.net>
52698
52699         netdb: also supply struct addrinfo for cygwin 1.5.x
52700         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52701         older cygwin.
52702         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52703         cygwin.
52704         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52705
52706 2008-10-22  Bruno Haible  <bruno@clisp.org>
52707
52708         * users.txt: Update entry about pspp.
52709
52710 2008-10-21  Bruno Haible  <bruno@clisp.org>
52711
52712         Simplification.
52713         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52714         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52715
52716         Simplification.
52717         * lib/ioctl.c (ioctl): Don't undefine.
52718         * lib/socket.c (socket): Don't undefine.
52719
52720         Remove unused module indicator macros.
52721         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52722         GNULIB_$1 as a C macro.
52723
52724         * doc/posix-functions/close.texi: Undo last change.
52725         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52726         Windows platforms.
52727
52728 2008-10-21  Bruno Haible  <bruno@clisp.org>
52729
52730         Add gethostname() declaration to <unistd.h>.
52731         * lib/unistd.in.h (gethostname): New declaration.
52732         * lib/gethostname.c: Include <unistd.h>.
52733         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52734         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52736         and HAVE_GETHOSTNAME.
52737         * modules/gethostname (Depends-on): Add unistd.
52738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52739         (Include): Specify <unistd.h>.
52740         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52741         HAVE_GETHOSTNAME.
52742         * tests/test-gethostname.c: Include <unistd.h> first.
52743
52744 2008-10-21  Bruno Haible  <bruno@clisp.org>
52745
52746         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52747         * modules/select-tests (Depends-on): Likewise.
52748         Reported by Simon Josefsson.
52749
52750 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52751
52752         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52753         * lib/accept.c: New file, based on winsock.c.
52754         * lib/bind.c: New file, based on winsock.c.
52755         * lib/connect.c: New file, based on winsock.c.
52756         * lib/getpeername.c: New file, based on winsock.c.
52757         * lib/getsockname.c: New file, based on winsock.c.
52758         * lib/getsockopt.c: New file, based on winsock.c.
52759         * lib/ioctl.c: New file, based on winsock.c.
52760         * lib/listen.c: New file, based on winsock.c.
52761         * lib/recv.c: New file, based on winsock.c.
52762         * lib/recvfrom.c: New file, based on winsock.c.
52763         * lib/send.c: New file, based on winsock.c.
52764         * lib/sendto.c: New file, based on winsock.c.
52765         * lib/setsockopt.c: New file, based on winsock.c.
52766         * lib/shutdown.c: New file, based on winsock.c.
52767         * lib/socket.c: New file, based on winsock.c.
52768         * lib/w32sock.h: New file, based on winsock.c.
52769         * lib/winsock.c: Remove file.
52770         * modules/accept: Likewise.
52771         * modules/bind: Likewise.
52772         * modules/connect: Likewise.
52773         * modules/getpeername: Likewise.
52774         * modules/getsockname: Likewise.
52775         * modules/getsockopt: Likewise.
52776         * modules/ioctl: Likewise.
52777         * modules/listen: Likewise.
52778         * modules/recv: Likewise.
52779         * modules/recvfrom: Likewise.
52780         * modules/send: Likewise.
52781         * modules/sendto: Likewise.
52782         * modules/setsockopt: Likewise.
52783         * modules/shutdown: Likewise.
52784         * modules/socket: Use socket.c instead of winsock.c.
52785         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52786         * doc/posix-functions/accept.texi: Doc fix.
52787         * doc/posix-functions/bind.texi: Doc fix.
52788         * doc/posix-functions/close.texi: Doc fix.
52789         * doc/posix-functions/connect.texi: Doc fix.
52790         * doc/posix-functions/getpeername.texi: Doc fix.
52791         * doc/posix-functions/getsockname.texi: Doc fix.
52792         * doc/posix-functions/getsockopt.texi: Doc fix.
52793         * doc/posix-functions/ioctl.texi: Doc fix.
52794         * doc/posix-functions/listen.texi: Doc fix.
52795         * doc/posix-functions/recv.texi: Doc fix.
52796         * doc/posix-functions/recvfrom.texi: Doc fix.
52797         * doc/posix-functions/send.texi: Doc fix.
52798         * doc/posix-functions/sendto.texi: Doc fix.
52799         * doc/posix-functions/setsockopt.texi: Doc fix.
52800         * doc/posix-functions/shutdown.texi: Doc fix.
52801         * doc/posix-functions/socket.texi: Doc fix.
52802
52803 2008-10-20  Bruno Haible  <bruno@clisp.org>
52804
52805         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52806         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52807         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52808         as an alias for SIGABRT.
52809         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52810         (sigaction): Map it to SIGABRT.
52811         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52812
52813 2008-10-20  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/fts.c: Don't include lstat.h.
52816         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52817
52818         Move the lstat() declaration to <sys/stat.h>.
52819         * lib/lstat.h: Remove file.
52820         * lib/sys_stat.in.h: Add special invocation convention.
52821         (lstat): New declaration.
52822         * lib/lstat.c (orig_lstat): New function.
52823         (rpl_lstat): Use orig_lstat instead of lstat.
52824         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52825         AC_C_INLINE. Set REPLACE_LSTAT.
52826         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52827         and REPLACE_LSTAT.
52828         * modules/lstat (Files): Remove lib/lstat.h.
52829         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52830         (Include): Specify <sys/stat.h> instead of lstat.h.
52831         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52832         REPLACE_LSTAT.
52833         * NEWS: Mention the change.
52834
52835 2008-10-20  Bruno Haible  <bruno@clisp.org>
52836
52837         * modules/posix_spawn-tests: New file.
52838         * tests/test-posix_spawn3.c: New file.
52839
52840 2008-10-20  Bruno Haible  <bruno@clisp.org>
52841
52842         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52843         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52844         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52845         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52846         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52847
52848 2008-10-20  Bruno Haible  <bruno@clisp.org>
52849
52850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52851         of posix_spawn on AIX 5.3.
52852
52853 2008-10-20  Bruno Haible  <bruno@clisp.org>
52854
52855         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52856
52857 2008-10-20  Bruno Haible  <bruno@clisp.org>
52858
52859         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52860         of AC_LANG_PROGRAM.
52861
52862 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52863
52864         * lib/netdb.in.h: Don't define GNU specific constants until they
52865         are supported or needed.  Reported by Bruno Haible
52866         <bruno@clisp.org>.
52867
52868 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52869
52870         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52871
52872 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52873
52874         * lib/getaddrinfo.h: Remove file.
52875         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52876         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52877         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52878         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52879         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52880         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52881         * tests/test-getaddrinfo.c: Likewise.
52882         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52883         * NEWS: Mention change.
52884
52885 2008-10-19  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52888
52889 2008-10-19  Bruno Haible  <bruno@clisp.org>
52890
52891         * lib/wait-process.c: Include simply <sys/wait.h>.
52892         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52893         WIFSTOPPED): Remove fallback definitions.
52894         * modules/wait-process (Depends-on): Add sys_wait.
52895
52896         New module 'sys_wait'.
52897         * modules/sys_wait: New file.
52898         * lib/sys_wait.in.h: New file, partially copied from
52899         lib/wait-process.c.
52900         * m4/sys_wait_h.m4: New file.
52901         * doc/posix-headers/sys_wait.texi: Mention the new module.
52902
52903 2008-10-19  Bruno Haible  <bruno@clisp.org>
52904
52905         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52906
52907 2008-10-19  Bruno Haible  <bruno@clisp.org>
52908
52909         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52910         * lib/wait-process.c (WAIT_T): Remove type.
52911         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52912         (wait_subprocess): Update.
52913
52914 2008-10-19  Bruno Haible  <bruno@clisp.org>
52915
52916         New module 'atoll'.
52917         * modules/atoll: New file.
52918         * lib/stdlib.in.h (atoll): New declaration.
52919         * lib/atoll.c: New file, from glibc with modifications.
52920         * m4/atoll.m4: New file.
52921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52922         HAVE_ATOLL.
52923         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52924         * doc/posix-functions/atoll.texi: Mention the new module.
52925
52926 2008-10-19  Bruno Haible  <bruno@clisp.org>
52927
52928         Add strtoull() declaration to <stdlib.h>.
52929         * lib/stdlib.in.h (strtoull): New declaration.
52930         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52931         Set HAVE_STRTOULL.
52932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52933         HAVE_STRTOULL.
52934         * modules/strtoull (Depends-on): Add stdlib.
52935         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52936         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52937         HAVE_STRTOULL.
52938
52939 2008-10-19  Bruno Haible  <bruno@clisp.org>
52940
52941         Add strtoll() declaration to <stdlib.h>.
52942         * lib/stdlib.in.h (strtoll): New declaration.
52943         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52944         Set HAVE_STRTOLL.
52945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52946         HAVE_STRTOLL.
52947         * modules/strtoll (Depends-on): Add stdlib.
52948         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52949         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52950
52951 2008-10-19  Bruno Haible  <bruno@clisp.org>
52952
52953         * modules/bcopy (Depends-on): Add strings.
52954         (Include): Specify <strings.h>.
52955
52956 2008-10-19  Bruno Haible  <bruno@clisp.org>
52957
52958         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52959
52960 2008-10-19  Bruno Haible  <bruno@clisp.org>
52961
52962         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52963         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52964         mingw.
52965
52966 2008-10-19  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/atanl.c: Don't include isnanl.h.
52969         * lib/cosl.c: Likewise.
52970         * lib/ldexpl.c: Likewise.
52971         * lib/logl.c: Likewise.
52972         * lib/sinl.c: Likewise.
52973         * lib/sqrtl.c: Likewise.
52974         * lib/tanl.c: Likewise.
52975
52976         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52977         * lib/isnanf.h: Remove file.
52978         * lib/isnand.h: Remove file.
52979         * lib/isnanl.h: Remove file.
52980         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52981         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52982         macros.
52983         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52984         HAVE_ISNANF, don't define it as a C macro.
52985         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52986         HAVE_ISNAND, don't define it as a C macro.
52987         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52988         HAVE_ISNANL, don't define it as a C macro.
52989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52990         HAVE_ISNAN[FDL].
52991         * modules/isnanf (Files): Remove lib/isnanf.h.
52992         (Depends-on): Add math.
52993         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52994         (Include): Specify <math.h> instead of isnanf.h.
52995         * modules/isnand (Files): Remove lib/isnand.h.
52996         (Depends-on): Add math.
52997         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52998         (Include): Specify <math.h> instead of isnand.h.
52999         * modules/isnanl (Files): Remove lib/isnanl.h.
53000         (Depends-on): Add math.
53001         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53002         (Include): Specify <math.h> instead of isnanl.h.
53003         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53004         HAVE_ISNAN[FDL].
53005         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53006         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53007         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53008         * NEWS: Mention the change.
53009
53010 2008-10-18  Bruno Haible  <bruno@clisp.org>
53011
53012         Add getusershell(), setusershell(), endusershell() declarations to
53013         <unistd.h>.
53014         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53015         declarations.
53016         * lib/getusershell.c: Include unistd.h.
53017         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53018         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53019         HAVE_GETUSERSHELL.
53020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53021         and HAVE_GETUSERSHELL.
53022         * modules/getusershell (Depends-on): Add unistd, extensions.
53023         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53024         (Include): Specify <unistd.h>.
53025         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53026         HAVE_GETUSERSHELL.
53027
53028 2008-10-18  Bruno Haible  <bruno@clisp.org>
53029
53030         Add a getloadavg() declaration to <stdlib.h>.
53031         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53032         getloadavg declaration.
53033         (getloadavg): New declaration.
53034         * lib/getloadavg.c: Include <stdlib.h> first.
53035         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53036         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53037         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53039         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53040         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53042         (Include): Specify <stdlib.h>.
53043         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53044         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53045
53046 2008-10-18  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/dirchownmod.c: Don't include lchmod.h.
53049
53050         Move the lchmod() declaration to <sys/stat.h>.
53051         * lib/lchmod.h: Remove file.
53052         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53053         (lchmod): New declaration, moved here from lib/lchown.h.
53054         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53055         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53057         and HAVE_LCHMOD.
53058         * modules/lchmod (Files): Remove lib/lchmod.h.
53059         (Depends-on): Add sys_stat, extensions.
53060         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53061         (Include): Specify <sys/stat.h> instead of lchmod.h.
53062         * modules/sys_stat (Depends-on): Add link-warning.
53063         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53064         definition of GL_LINK_WARNING.
53065         * NEWS: Mention the change.
53066
53067 2008-10-18  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/fchdir.c: Don't include dirfd.h.
53070         * lib/fts.c: Likewise.
53071         * lib/getcwd.c: Likewise.
53072         * lib/glob.c: Likewise.
53073
53074         Move the dirfd() declaration to <dirent.h>.
53075         * lib/dirfd.h: Remove file.
53076         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53077         (dirfd): New declaration.
53078         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53079         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53080         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53081         HAVE_DECL_DIRFD.
53082         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53083         HAVE_DECL_DIRFD.
53084         * modules/dirfd (Files): Remove lib/dirfd.h.
53085         (Depends-on): Add dirent, extensions.
53086         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53087         (Include): Specify <dirent.h> instead of dirfd.h.
53088         * modules/dirent (Depends-on): Add link-warning.
53089         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53090         definition of GL_LINK_WARNING.
53091         * NEWS: Mention the change.
53092
53093 2008-10-18  Bruno Haible  <bruno@clisp.org>
53094
53095         Move the euidaccess() declaration to <unistd.h>.
53096         * lib/euidaccess.h: Remove file.
53097         * lib/unistd.in.h (euidaccess): New declaration.
53098         * lib/euidaccess.c: Don't include euidaccess.h.
53099         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53100         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53102         and HAVE_EUIDACCESS.
53103         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53104         (Depends-on): Add unistd.
53105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53106         (Include): Specify <unistd.h> instead of euidaccess.h.
53107         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53108         HAVE_EUIDACCESS.
53109         * NEWS: Mention the change.
53110
53111 2008-10-18  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53114
53115         Move the getdomainname() declaration to <unistd.h>.
53116         * lib/getdomainname.h: Remove file.
53117         * lib/unistd.in.h (getdomainname): New declaration.
53118         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53119         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53120         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53121         HAVE_GETDOMAINNAME.
53122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53123         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53124         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53125         (Depends-on): Add unistd, extensions.
53126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53127         (Includes): Specify <unistd.h> instead of getdomainname.h.
53128         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53129         HAVE_GETDOMAINNAME.
53130         * NEWS: Mention the change.
53131
53132 2008-10-18  Bruno Haible  <bruno@clisp.org>
53133
53134         * modules/dirent: New file.
53135         * m4/dirent_h.m4: New file.
53136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53137         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53138         * modules/fchdir (Files): Remove lib/dirent.in.h.
53139         (Depends-on): Add dirent.
53140         (Makefile.am): Move rules to modules/dirent.
53141         * doc/posix-headers/dirent.texi: Mention the new module.
53142
53143 2008-10-18  Bruno Haible  <bruno@clisp.org>
53144
53145         Avoid -Wunused-parameter warnings in public gnulib header files.
53146         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53147         macro.
53148         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53149
53150 2008-10-18  Bruno Haible  <bruno@clisp.org>
53151
53152         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53153         * doc/glibc-functions/error.texi: Mention the module 'error'.
53154         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53155         * doc/glibc-functions/getdomainname.texi: Mention the module
53156         'getdomainname'.
53157         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53158         * doc/glibc-functions/getpagesize.texi: Mention the module
53159         'getpagesize'.
53160         * doc/glibc-functions/getusershell.texi: Mention the module
53161         'getusershell'.
53162         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53163         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53164         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53165         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53166         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53167         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53168         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53169         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53170         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53171         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53172         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53173         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53174         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53175         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53176
53177 2008-10-17  Bruno Haible  <bruno@clisp.org>
53178
53179         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53180         HP-UX and IRIX, use -0.0L.
53181         * tests/test-ceill.c (minus_zero): Likewise.
53182         * tests/test-floorl.c (minus_zero): Likewise.
53183         * tests/test-frexpl.c (minus_zero): Likewise.
53184         * tests/test-isnan.c (minus_zerol): Likewise.
53185         * tests/test-isnanl.h (minus_zero): Likewise.
53186         * tests/test-ldexpl.c (minus_zero): Likewise.
53187         * tests/test-roundl.c (minus_zero): Likewise.
53188         * tests/test-signbit.c (minus_zerol): Likewise.
53189         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53190         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53191         * tests/test-truncl.c (minus_zero): Likewise.
53192         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53193         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53194         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53195         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53196
53197 2008-10-17  Bruno Haible  <bruno@clisp.org>
53198
53199         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53200         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53201         that it gets activated only for gcc >= 3.0.
53202         * lib/dirent.in.h: Likewise.
53203         * lib/errno.in.h: Likewise.
53204         * lib/fcntl.in.h: Likewise.
53205         * lib/float.in.h: Likewise.
53206         * lib/iconv.in.h: Likewise.
53207         * lib/inttypes.in.h: Likewise.
53208         * lib/locale.in.h: Likewise.
53209         * lib/math.in.h: Likewise.
53210         * lib/netdb.in.h: Likewise.
53211         * lib/netinet_in.in.h: Likewise.
53212         * lib/search.in.h: Likewise.
53213         * lib/signal.in.h: Likewise.
53214         * lib/spawn.in.h: Likewise.
53215         * lib/stdarg.in.h: Likewise.
53216         * lib/stdint.in.h: Likewise.
53217         * lib/stdio.in.h: Likewise.
53218         * lib/stdlib.in.h: Likewise.
53219         * lib/string.in.h: Likewise.
53220         * lib/strings.in.h: Likewise.
53221         * lib/sys_file.in.h: Likewise.
53222         * lib/sys_ioctl.in.h: Likewise.
53223         * lib/sys_select.in.h: Likewise.
53224         * lib/sys_socket.in.h: Likewise.
53225         * lib/sys_stat.in.h: Likewise.
53226         * lib/sys_time.in.h: Likewise.
53227         * lib/sysexits.in.h: Likewise.
53228         * lib/time.in.h: Likewise.
53229         * lib/unistd.in.h: Likewise.
53230         * lib/wchar.in.h: Likewise.
53231         * lib/wctype.in.h: Likewise.
53232         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53233
53234 2008-10-17  Jim Meyering  <meyering@redhat.com>
53235
53236         ignore-value: don't depend on inline module
53237         * modules/ignore-value (Depends-on): Remove 'inline'.
53238         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53239         Suggestion from Bruno Haible.
53240
53241 2008-10-17  Bruno Haible  <bruno@clisp.org>
53242
53243         New implementation of condition variables for Win32.
53244         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53245         (gl_linked_waitqueue_t): New type.
53246         (gl_cond_t): Use it.
53247         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53248         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53249         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53250         (glthread_cond_init_func, glthread_cond_wait_func,
53251         glthread_cond_timedwait_func, glthread_cond_signal_func,
53252         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53253         Reimplemented on the basis of gl_linked_waitqueue_t.
53254         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53255         gl_waitqueue_t.
53256         (gl_rwlock_t): Update.
53257         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53258
53259 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53260
53261         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53262         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53263
53264 2008-10-17  Jim Meyering  <meyering@redhat.com>
53265
53266         ignore-value: new module
53267         * modules/ignore-value: New file.
53268         * lib/ignore-value.h: New file.
53269         * MODULES.html.sh (Compiler warning management): New section,
53270         just for this module.  More to come.
53271
53272 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53273
53274         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53275         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53276         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53277
53278 2008-10-16  Jim Meyering  <meyering@redhat.com>
53279
53280         openat-die.c: avoid 'no previous prototype' warning
53281         * lib/openat-die.c: Include "openat.h".
53282         Reported by Reuben Thomas <rrt@sc3d.org>.
53283
53284 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53285
53286         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53287         * lib/netdb.in.h: Fix typo.
53288         Reported by Bruno Haible  <bruno@clisp.org>
53289
53290         * lib/netdb.in.h: Include sys/socket.h for platforms without
53291         netdb.h, to get structures like hostent on MinGW.
53292         * modules/netdb (Depends-on): Add sys_socket.
53293
53294 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53295
53296         * modules/netdb, modules/netdb-tests: New file.
53297         * m4/netdb_h.m4: New file.
53298         * lib/netdb.in.h: Add, currently just an empty file pending
53299         definitions.
53300         * tests/test-netdb.c: New file.
53301         * doc/posix-headers/netdb.texi: Mention that we replace it if
53302         needed.
53303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53304         netdb.
53305
53306 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53307
53308         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53309         with code.
53310
53311 2008-10-13  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/glthread/cond.c (glthread_cond_wait_func,
53314         glthread_cond_timedwait_func): Add a comment.
53315
53316 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53317
53318         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53319         * tests/test-select.c: Likewise,
53320
53321 2008-10-13  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/glthread/cond.c (glthread_cond_wait_func,
53324         glthread_cond_timedwait_func): Fix variable name.
53325         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53326
53327 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53328
53329         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53331         struct sockaddr.sa_len.
53332         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53333
53334 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53335
53336         * build-aux/pmccabe2html: Add css and css_url parameters.
53337
53338 2008-10-12  Bruno Haible  <bruno@clisp.org>
53339
53340         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53341         calling aclx_get.
53342         Reported by Rainer Tammer <tammer@tammer.net>.
53343
53344 2008-10-12  Bruno Haible  <bruno@clisp.org>
53345
53346         Use msvcrt aware primitives for creation/termination of Win32 threads.
53347         * lib/glthread/thread.c: Include <process.h>.
53348         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53349         (wrapper_func): Update signature.
53350         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53351
53352 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53353             Bruno Haible  <bruno@clisp.org>
53354
53355         Provide a Win32 implementation of the 'cond' module.
53356         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53357         * lib/glthread/cond.c (glthread_cond_init_func,
53358         glthread_cond_wait_func, glthread_cond_timedwait_func,
53359         glthread_cond_signal_func, glthread_cond_broadcast_func,
53360         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53361         * modules/cond (Dependencies): Add gettimeofday.
53362
53363 2008-10-11  Bruno Haible  <bruno@clisp.org>
53364
53365         Make sleep work on older versions of mingw.
53366         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53367         only whether it exists.
53368         * doc/posix-functions/sleep.texi: Mention the problem with older
53369         versions of mingw.
53370
53371 2008-10-11  Bruno Haible  <bruno@clisp.org>
53372
53373         New module 'shutdown'.
53374         * modules/shutdown: New file.
53375         * lib/sys_socket.in.h (shutdown): New declaration.
53376         * lib/winsock.c (shutdown): New function.
53377         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53378         GNULIB_SHUTDOWN.
53379         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53380         * doc/posix-functions/shutdown.texi: Document the new module.
53381
53382 2008-10-11  Jim Meyering  <meyering@redhat.com>
53383
53384         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53385
53386 2008-10-11  Bruno Haible  <bruno@clisp.org>
53387
53388         New module 'fclose'.
53389         * modules/fclose: New file.
53390         * lib/stdio.in.h (fclose): New declaration.
53391         * lib/fclose.c: New file.
53392         * m4/fclose.m4: New file.
53393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53394         REPLACE_FCLOSE.
53395         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53396         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53397         REPLACE_FCLOSE.
53398         * modules/close (Depends-on): fclose.
53399         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53400
53401 2008-10-11  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53404         set errno and don't call _close.
53405
53406 2008-10-10  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53409         ACL, not afterwards. Fixes test failure on Cygwin.
53410
53411 2008-10-09  Ben Pfaff  <blp@gnu.org>
53412
53413         * build-aux/announce-gen: Fix gnulib version related part of usage
53414         message.  Die with a useful error message if no tarballs are
53415         found.
53416
53417 2008-10-10  Jim Meyering  <meyering@redhat.com>
53418
53419         bootstrap: use git's --depth=N option only if it's supported
53420         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53421         recognize the --depth option.  Reported by Pádraig Brady.
53422
53423 2008-10-09  Bruno Haible  <bruno@clisp.org>
53424
53425         New module 'ioctl'.
53426         * modules/ioctl: New file.
53427         * lib/sys_socket.in.h (ioctl): Remove declaration.
53428         * lib/winsock.c: Include <sys/ioctl.h>.
53429         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53430         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53431         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53432         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53433         * doc/posix-functions/ioctl.texi: Mention the new module.
53434
53435 2008-10-09  Bruno Haible  <bruno@clisp.org>
53436
53437         New module 'sys_ioctl'.
53438         * lib/sys_ioctl.in.h: New file.
53439         * m4/sys_ioctl_h.m4: New file.
53440         * modules/sys_ioctl: New file.
53441         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53442
53443 2008-10-09  Bruno Haible  <bruno@clisp.org>
53444
53445         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53446         * lib/winsock.c: Include <stdarg.h>.
53447         (rpl_ioctl): Change to second argument 'int' and then varargs.
53448
53449 2008-10-09  Bruno Haible  <bruno@clisp.org>
53450
53451         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53452         when the sys_socket module is present and the system has <winsock2.h>.
53453
53454 2008-10-09  Bruno Haible  <bruno@clisp.org>
53455
53456         * doc/posix-functions/close.texi: Mention module 'close' instead of
53457         module 'sys_socket'.
53458
53459 2008-10-09  Bruno Haible  <bruno@clisp.org>
53460
53461         * doc/glibc-headers/sys_ioctl.texi: New file.
53462         * doc/gnulib.texi: Include it.
53463
53464 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53465             Bruno Haible  <bruno@clisp.org>
53466
53467         Combine the two replacements of 'close'.
53468         * lib/sys_socket.in.h (close): Define to a reminder to include
53469         <unistd.h>.
53470         (_gl_close_fd_maybe_socket): New declaration.
53471         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53472         * lib/winsock.c (close): Remove undefinition.
53473         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53474         needed for the gnulib module 'close'.
53475         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53476         define to an error symbol or to a warning, if suitable.
53477         * lib/close.c: Include <sys/socket.h>.
53478         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53479         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53480         UNISTD_H_HAVE_WINSOCK2_H.
53481         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53483         UNISTD_H_HAVE_WINSOCK2_H.
53484         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53485         (configure.ac): Set a module indicator.
53486         (Makefile.am): Substitute GNULIB_CLOSE.
53487         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53488         * modules/poll-tests (Depends-on): Add close.
53489         * modules/select-tests (Depends-on): Likewise.
53490
53491 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53492             Bruno Haible  <bruno@clisp.org>
53493
53494         New module 'close'.
53495         * modules/close: New file.
53496         * lib/unistd.in.h (close): Move declaration out of the
53497         FCHDIR_REPLACEMENT scope.
53498         (_gl_unregister_fd): New declaration.
53499         * lib/close.c: New file.
53500         * lib/fchdir.c (rpl_close): Remove function.
53501         * m4/close.m4: New file.
53502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53503         close.
53504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53505         REPLACE_CLOSE.
53506         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53507         REPLACE_CLOSE.
53508         * modules/fchdir (Depends-on): Add close.
53509
53510 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53511             Bruno Haible  <bruno@clisp.org>
53512
53513         * lib/fcntl.in.h (open): Simplify conditionals.
53514         (_gl_register_fd): New declaration.
53515         * lib/fchdir.c (rpl_open): Remove function.
53516         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53517         also.
53518         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53520         open.
53521
53522 2008-10-09  Jim Meyering  <meyering@redhat.com>
53523
53524         GNUmakefile: use the more name-space-friendly "_version"
53525         * top/GNUmakefile (_dummy): Update.
53526         (_version): Rename from "version".
53527
53528 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53529             Bruno Haible  <bruno@clisp.org>
53530
53531         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53532         rpl_close.
53533         (_gl_register_fd): New function, extracted from rpl_open.
53534         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53535         (rpl_open, rpl_opendir): Use _gl_register_fd.
53536
53537 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53538
53539         Fix organization of 'open' replacement.
53540         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53541         (gl_FUNC_OPEN): Use it.
53542         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53543
53544 2008-10-08  Bruno Haible  <bruno@clisp.org>
53545
53546         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53547
53548 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53549
53550         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53551         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53552         listen).
53553
53554 2008-10-08  Eric Blake  <ebb9@byu.net>
53555
53556         GNUmakefile: add 'make version' target
53557         * top/GNUmakefile (_curr-ver): Split version update rules...
53558         (version): ...into a target.
53559
53560 2008-10-07  Bruno Haible  <bruno@clisp.org>
53561
53562         Use a more portable replacement expression for -0.0L.
53563         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53564         instead of -0.0L. Fix m4 quotation.
53565
53566         * tests/test-signbit.c: Include <float.h>.
53567         (minus_zero): New variable.
53568         (test_signbitl): Use minus_zero instead of -zero.
53569         * modules/signbit-tests (Depends-on): Add float.
53570
53571         * tests/test-ceill.c: Include <float.h>.
53572         (zero): Remove variable.
53573         (minus_zero): New variable.
53574         (main): Use minus_zero instead of -zero.
53575         * modules/ceill-tests (Depends-on): Add float.
53576
53577         * tests/test-floorl.c: Include <float.h>.
53578         (zero): Remove variable.
53579         (minus_zero): New variable.
53580         (main): Use minus_zero instead of -zero.
53581         * modules/floorl-tests (Depends-on): Add float.
53582
53583         * tests/test-roundl.c: Include <float.h>.
53584         (zero): Remove variable.
53585         (minus_zero): New variable.
53586         (main): Use minus_zero instead of -zero.
53587         * modules/roundl-tests (Depends-on): Add float.
53588
53589         * tests/test-truncl.c: Include <float.h>.
53590         (zero): Remove variable.
53591         (minus_zero): New variable.
53592         (main): Use minus_zero instead of -zero.
53593         * modules/truncl-tests (Depends-on): Add float.
53594
53595         * tests/test-frexpl.c (zero): Remove variable.
53596         (minus_zero): New variable.
53597         (main): Use minus_zero instead of -zero.
53598         * modules/frexpl-tests (Depends-on): Add float.
53599
53600         * tests/test-isnan.c (zerol): Remove variable.
53601         (minus_zerol): New variable.
53602         (test_long_double): Use minus_zerol instead of -zerol.
53603         * modules/isnan-tests (Depends-on): Add float.
53604
53605         * tests/test-isnanl.h (zero): Remove variable.
53606         (minus_zero): New variable.
53607         (main): Use minus_zero instead of -zero.
53608         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53609         * modules/isnanl-tests (Depends-on): Add float.
53610
53611         * tests/test-ldexpl.c (zero): Remove variable.
53612         (minus_zero): New variable.
53613         (main): Use minus_zero instead of -zero.
53614         * modules/ldexpl-tests (Depends-on): Add float.
53615
53616         * tests/test-snprintf-posix.h (zerol): Remove variable.
53617         (minus_zerol): New variable.
53618         (test_function): Use minus_zerol instead of -zerol.
53619         * modules/snprintf-posix-tests (Depends-on): Add float.
53620         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53621
53622         * tests/test-sprintf-posix.h (zerol): Remove variable.
53623         (minus_zerol): New variable.
53624         (test_function): Use minus_zerol instead of -zerol.
53625         * modules/sprintf-posix-tests (Depends-on): Add float.
53626         * modules/vsprintf-posix-tests (Depends-on): Add float.
53627
53628         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53629         (minus_zerol): New variable.
53630         (test_function): Use minus_zerol instead of -zerol.
53631         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53632
53633         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53634         (minus_zerol): New variable.
53635         (test_function): Use minus_zerol instead of -zerol.
53636         * modules/vasprintf-posix-tests (Depends-on): Add float.
53637
53638 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53639
53640         * MODULES.html.sh (Support for building documentation): Mention
53641         pmccabe2html.  Sort entries.
53642
53643         Add pmccabe2html module, from gnupdf.
53644         * build-aux/pmccabe.css: New file.
53645         * build-aux/pmccabe2html: New file.
53646         * m4/pmccabe2html.m4: New file.
53647         * modules/pmccabe2html: New file.
53648
53649 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53650
53651         flock: new module
53652         * MODULES.html.sh: Add to list of modules.
53653         * lib/flock.c: flock implementation for Windows and Unix systems
53654         which have fcntl.
53655         * doc/glibc-functions/flock.texi: Update documentation.
53656         * lib/sys_file.in.h: <sys/file.h> header file.
53657         * m4/flock.m4: M4 macros.
53658         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53659         * modules/flock: flock module.
53660         * modules/flock-tests: flock tests module.
53661         * modules/sys_file: sys/file.h module.
53662         * tests/test-flock.c: test suite for flock.
53663
53664 2008-10-06  Jim Meyering  <meyering@redhat.com>
53665
53666         bootstrap: check for LT_INIT more portably still ;-)
53667         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53668         Spotted by Bruno Haible.
53669
53670 2008-10-06  Eric Blake  <ebb9@byu.net>
53671
53672         test-signbit: avoid tripping Irix cc bug on -0.0L
53673         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53674         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53675         entire testsuite consistent and avoids an Irix 6.2 bug.
53676
53677 2008-10-05  Bruno Haible  <bruno@clisp.org>
53678             Jim Meyering  <jim@meyering.net>
53679
53680         Add an option for ignoring EPIPE during close_stdout.
53681         * lib/closeout.h: Include <stdbool.h>.
53682         (close_stdout_set_ignore_EPIPE): New declaration.
53683         * lib/closeout.c: Include <stdbool.h>.
53684         (ignore_EPIPE): New variable.
53685         (close_stdout_set_ignore_EPIPE): New function.
53686         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53687         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53688         failure.
53689         * modules/closeout (Depends-on): Add stdbool.
53690
53691 2008-10-05  Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/accept: New file.
53694         * modules/bind: New file.
53695         * modules/connect: New file.
53696         * modules/getpeername: New file.
53697         * modules/getsockname: New file.
53698         * modules/getsockopt: New file.
53699         * modules/listen: New file.
53700         * modules/recv: New file.
53701         * modules/recvfrom: New file.
53702         * modules/send: New file.
53703         * modules/sendto: New file.
53704         * modules/setsockopt: New file.
53705         * modules/socket: New file.
53706         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53707         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53708         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53709         the particular module is requested. Add a link warning when the
53710         particular module is not requested.
53711         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53712         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53713         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53714         the particular module is requested.
53715         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53716         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53717         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53718         * modules/sys_socket (Depends-on): Add link-warning.
53719         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53720         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53721         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53722         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53723         GL_LINK_WARNING.
53724         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53725         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53726         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53727         * doc/posix-functions/getpeername.texi: Mention the new module
53728         'getpeername'.
53729         * doc/posix-functions/getsockname.texi: Mention the new module
53730         'getsockname'.
53731         * doc/posix-functions/getsockopt.texi: Mention the new module
53732         'getsockopt'.
53733         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53734         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53735         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53736         * doc/posix-functions/send.texi: Mention the new module 'send'.
53737         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53738         * doc/posix-functions/setsockopt.texi: Mention the new module
53739         'setsockopt'.
53740         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53741         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53742         listen, connect, accept.
53743         * modules/select-tests (Depends-on): Likewise.
53744
53745 2008-10-05  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/winsock.c (strerror): Remove unused #undef.
53748         (rpl_close): Remove unused local variable.
53749
53750         * modules/sys_socket (Depends-on); Add errno.
53751
53752 2008-10-05  Bruno Haible  <bruno@clisp.org>
53753
53754         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53755         (select): Add a link warning when the 'select' module is not used.
53756         * modules/sys_select (Depends-on): Add link-warning.
53757         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53758         Suggested by Paolo Bonzini.
53759
53760 2008-10-05  Jim Meyering  <meyering@redhat.com>
53761
53762         bootstrap: check for LT_INIT more portably
53763         * build-aux/bootstrap: Avoid using grep -E, since it's not
53764         portable enough.  Suggestion from Bruno Haible.
53765
53766 2008-10-05  Bruno Haible  <bruno@clisp.org>
53767
53768         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53769         as being fixed by gnulib.
53770
53771 2008-10-05  Bruno Haible  <bruno@clisp.org>
53772
53773         * modules/select-tests: New file, mostly copied from
53774         modules/sys_select-tests.
53775         * tests/test-select.c: New file, mostly copied from
53776         tests/test-sys_select.c.
53777         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53778         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53779         (Makefile.am): Remove test_sys_select_LDADD.
53780
53781         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53782         to an undefined symbol, for an error message.
53783         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53784         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53785         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53786         winsock-select.c here.
53787         * modules/sys_select (Files): Remove lib/winsock-select.c.
53788         (Depends-on): Remove alloca.
53789         (Makefile.am): Substitute GNULIB_SELECT.
53790         * modules/select: New file.
53791         * doc/posix-functions/select.texi: Update.
53792
53793 2008-10-05  Bruno Haible  <bruno@clisp.org>
53794
53795         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53796         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53797         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53798         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53799         getdtablesize.
53800         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53801         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53802
53803 2008-10-05  Bruno Haible  <bruno@clisp.org>
53804
53805         * modules/getdtablesize-tests: New file.
53806         * tests/test-getdtablesize.c: New file.
53807
53808         New module 'getdtablesize'.
53809         * lib/unistd.in.h (getdtablesize): New declaration.
53810         * lib/getdtablesize.c: New file.
53811         * m4/getdtablesize.m4: New file.
53812         * modules/getdtablesize: New file.
53813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53814         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53815         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53816         HAVE_GETDTABLESIZE.
53817         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53818
53819 2008-10-05  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/sched (Makefile.am): Fix typo.
53822         Reported by Simon Josefsson.
53823
53824 2008-10-05  Jim Meyering  <meyering@redhat.com>
53825
53826         bootstrap: check for LT_INIT, too
53827         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53828         are deprecated.  Suggestion from Ralf Wildenhues.
53829
53830 2008-10-05  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53833         overriding them by ours.
53834         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53835
53836 2008-10-05  Jim Meyering  <meyering@redhat.com>
53837
53838         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53839         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53840         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53841
53842 2008-10-04  Bruno Haible  <bruno@clisp.org>
53843
53844         * modules/dup2 (License): Change to LGPLv2+.
53845         * modules/sleep (License): Likewise.
53846         * modules/perror (License): Likewise.
53847         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53848         Blake.
53849         * modules/signal (License): Likewise.
53850         * modules/sigprocmask (License): Likewise.
53851         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53852         Meyering.
53853
53854 2008-10-04  Bruno Haible  <bruno@clisp.org>
53855
53856         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53857         Reported by Rainer Tammer <tammer@tammer.net>.
53858
53859 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53860             Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53863         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53864         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53865
53866 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53867
53868         filevercmp: new module
53869         * lib/filevercmp.h: New function filevercmp comparing version strings.
53870         * lib/filevercmp.c: Implementation of filevercmp function.
53871         * modules/filevercmp: Module metadata.
53872         * tests/test-filevercmp.c: Unit test for new module.
53873         * modules/filevercmp-tests: Unit test metadata.
53874         * MODULES.html.sh: Add filevercmp module.
53875
53876 2008-10-03  Bruno Haible  <bruno@clisp.org>
53877
53878         * lib/c-ctype.h: Add comment.
53879         Reported by Jim Meyering.
53880
53881 2008-10-02  Bruno Haible  <bruno@clisp.org>
53882
53883         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53884
53885 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53886
53887         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53888         name of bootstrap.conf accordingly.
53889
53890 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53891
53892         * build-aux/bootstrap: Install git-merge-changelog configuration
53893         items into .gitconfig if needed.
53894
53895 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53896
53897         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53898         git repository, and initialize/update it accordingly.
53899
53900 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53901
53902         * modules/fsync-tests: New file.
53903         * tests/test-fsync.c: New file.
53904
53905         New module 'fsync'.
53906         * lib/fsync.c: New file.
53907         * m4/fsync.m4: New file.
53908         * modules/fsync: New file.
53909         * lib/unistd.in.h (fsync): New declaration.
53910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53911         GNULIB_FSYNC and HAVE_FSYNC.
53912         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53913         * MODULES.html.sh (posix_functions): Add fsync.
53914         * doc/posix-functions/fsync.texi: Mention the new module.
53915
53916 2008-10-02  Jim Meyering  <meyering@redhat.com>
53917
53918         fts.c: sync with similar code from coreutils' remove.c
53919         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53920         Guard also with "#if defined __linux__", since for now at least,
53921         this code is Linux-kernel-specific.
53922
53923 2008-10-02  Jim Meyering  <meyering@redhat.com>
53924
53925         fts: bug fixes
53926         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53927         Include <sys/vfs.h>, not <sys/statfs.h>.
53928
53929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53930         Include <sys/vfs.h>, not <sys/statfs.h>.
53931
53932 2008-10-01  Bruno Haible  <bruno@clisp.org>
53933
53934         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53935         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53936         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53937         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53938         * doc/posix-functions/posix_spawnp.texi: Likewise.
53939         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53940         whether posix_spawn actually works.
53941         * m4/pipe.m4 (gl_PIPE): Likewise.
53942         * modules/execute (Files): Add m4/posix_spawn.m4.
53943         * modules/pipe (Files): Add m4/posix_spawn.m4.
53944         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53945
53946 2008-10-01  Jim Meyering  <meyering@redhat.com>
53947
53948         remove trailing spaces
53949         * NEWS: Likewise.
53950         * lib/poll.c (poll): Likewise.
53951         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53952         * lib/winsock.c (rpl_close): Likewise.
53953         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53954         * modules/yield: Likewise.
53955         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53956         * tests/test-sys_select.c (connect_to_socket): Likewise.
53957
53958         fts.c: adjust a new interface to be more generally useful
53959         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53960         (fts_build): Adjust caller.
53961
53962 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53963
53964         * modules/cond-tests: New file.
53965         * tests/test-cond.c: New file.
53966
53967 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53968             Bruno Haible  <bruno@clisp.org>
53969
53970         * modules/cond (Dependencies): Add errno, time.
53971         * lib/glthread/cond.h: Include <time.h>.
53972         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53973         across platforms.
53974
53975 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53976             Bruno Haible  <bruno@clisp.org>
53977
53978         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53979
53980 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53981             Bruno Haible  <bruno@clisp.org>
53982
53983         * modules/tls-tests (Depends-on): Add thread, yield.
53984         (configure.ac): Remove all checks.
53985         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53986         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53987         gl_thread_self): Remove definitions. Include glthread/thread.h and
53988         glthread/yield.h instead.
53989         (test_tls): Pass an additional NULL argument to gl_thread_join.
53990
53991 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53992             Bruno Haible  <bruno@clisp.org>
53993
53994         * modules/lock-tests (Depends-on): Add thread, yield.
53995         (configure.ac): Remove all checks.
53996         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53997         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53998         gl_thread_self): Remove definitions. Include glthread/thread.h and
53999         glthread/yield.h instead.
54000         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54001         additional NULL argument to gl_thread_join.
54002
54003 2008-09-30  Bruno Haible  <bruno@clisp.org>
54004
54005         Fix the Win32 implementation of the 'thread' module.
54006         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54007         pointer type.
54008         (gl_thread_self): Invoke gl_thread_self_func.
54009         (gl_thread_self_func): New declaration.
54010         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54011         (do_init_self_key, init_self_key): New functions.
54012         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54013         Remove some fields.
54014         (running_threads, running_lock): Remove variables.
54015         (get_current_thread_handle): New function.
54016         (gl_thread_self_func, wrapper_func, glthread_create_func,
54017         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54018         simplified.
54019
54020 2008-09-30  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54023         files.
54024
54025 2008-09-30  Jim Meyering  <meyering@redhat.com>
54026
54027         fts.m4: correct the test for statfs.f_type
54028         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54029         when checking for statfs.f_type.
54030
54031 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54032
54033         tests: avoid some compiler warnings
54034         * tests/test-memchr.c (main): Pass NULL indirectly.
54035         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54036
54037 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54038
54039         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54040         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54041         exactly specified dayshifts.
54042         (dayshift): New rule.
54043         (rel): Add dayshift.
54044         (relative_time_table) [tomorrow, yesterday, today, now]:
54045         Use tDAY_SHIFT in place of tDAY_UNIT.
54046         * tests/test-getdate.c: Add tests for now-disallowed countable
54047         dayshifts, e.g., "4 yesterday ago".
54048
54049 2008-09-29  Bruno Haible  <bruno@clisp.org>
54050
54051         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54052         * tests/test-posix_spawn1.in.sh: Renamed from
54053         tests/test-posix_spawn.in.sh.
54054         * tests/test-posix_spawn2.c: New file.
54055         * tests/test-posix_spawn2.in.sh: New file.
54056         * modules/posix_spawnp-tests (Files): Update.
54057         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54058
54059 2008-09-29  Bruno Haible  <bruno@clisp.org>
54060
54061         Propagate effects of putenv/setenv/unsetenv to child processes.
54062         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54063         * lib/pipe.c (create_pipe): Likewise.
54064
54065 2008-09-29  Bruno Haible  <bruno@clisp.org>
54066
54067         Enable use of shell scripts as executables in mingw.
54068         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54069         run the program as a shell script.
54070         * lib/pipe.c (create_pipe): Likewise.
54071         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54072         resulting array.
54073
54074 2008-09-29  Eric Blake  <ebb9@byu.net>
54075
54076         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54077
54078 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54079
54080         * doc/posix-functions/accept.texi: Update mingw problems.
54081         * doc/posix-functions/bind.texi: Update mingw problems.
54082         * doc/posix-functions/close.texi: Update mingw problems.
54083         * doc/posix-functions/connect.texi: Update mingw problems.
54084         * doc/posix-functions/getpeername.texi: Update mingw problems.
54085         * doc/posix-functions/getsockname.texi: Update mingw problems.
54086         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54087         * doc/posix-functions/ioctl.texi: Update mingw problems.
54088         * doc/posix-functions/listen.texi: Update mingw problems.
54089         * doc/posix-functions/recv.texi: Update mingw problems.
54090         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54091         * doc/posix-functions/select.texi: Update mingw problems.
54092         * doc/posix-functions/send.texi: Update mingw problems.
54093         * doc/posix-functions/sendto.texi: Update mingw problems.
54094         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54095         * doc/posix-functions/socket.texi: Update mingw problems.
54096
54097 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54098             Bruno Haible  <bruno@clisp.org>
54099
54100         * lib/sys_select.in.h: Include sys/time.h.
54101         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54102         * modules/sys_select: Depend on sys_time.
54103         * tests/test-sys_select.c: Test that sys/select.h defines struct
54104         timeval fully.
54105
54106 2008-09-29  Bruno Haible  <bruno@clisp.org>
54107
54108         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54109         * lib/sys_select.in.h: Likewise.
54110
54111 2008-09-29  Bruno Haible  <bruno@clisp.org>
54112
54113         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54114
54115 2008-09-29  Bruno Haible  <bruno@clisp.org>
54116
54117         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54118         Set LIBSOCKET instead of augmenting LIBS.
54119         * modules/sockets (Link): New section.
54120         * modules/sockets-tests (test_sockets_LDADD): New variable.
54121         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54122         * modules/poll-tests (test_poll_LDADD): New variable.
54123         * NEWS: Document the change.
54124
54125 2008-09-29  Bruno Haible  <bruno@clisp.org>
54126
54127         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54128         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54129         ARPA_INET_H directly.
54130         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54131
54132 2008-09-28  Bruno Haible  <bruno@clisp.org>
54133
54134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54135         from gl_HEADER_SYS_SOCKET.
54136         (gl_HEADER_SYS_SOCKET): Invoke it.
54137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54138
54139 2008-09-28  Bruno Haible  <bruno@clisp.org>
54140
54141         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54142         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54143         Needed on OSF/1 4.0.
54144
54145 2008-09-28  Bruno Haible  <bruno@clisp.org>
54146
54147         Override open more carefully.
54148         * lib/open.c (orig_open): New function.
54149         (rpl_open): Use orig_open instead of open.
54150         * lib/fcntl.in.h: Add special invocation convention.
54151         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54152         (gl_FUNC_OPEN): Invoke it.
54153
54154         Override freopen more carefully.
54155         * lib/freopen.c (orig_freopen): New function.
54156         (rpl_freopen): Use orig_freopen instead of freopen.
54157         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54158         (gl_FUNC_FREOPEN): Invoke it.
54159
54160         Override fopen more carefully.
54161         * lib/fopen.c (orig_fopen): New function.
54162         (rpl_fopen): Use orig_fopen instead of fopen.
54163         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54164         (gl_FUNC_FOPEN): Invoke it.
54165         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54166
54167 2008-09-28  Bruno Haible  <bruno@clisp.org>
54168
54169         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54170         SIGPIPE.
54171
54172 2008-09-28  Bruno Haible  <bruno@clisp.org>
54173
54174         * tests/test-sigaction.c (handler, main): Disable the check whether
54175         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54176         glibc systems with LinuxThreads.
54177
54178 2008-09-28  Bruno Haible  <bruno@clisp.org>
54179
54180         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54181
54182         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54183         with AIX xlc.
54184         * lib/fcntl.in.h (open): Likewise.
54185         Reported by Rainer Tammer <tammer@tammer.net>.
54186
54187 2008-09-28  Bruno Haible  <bruno@clisp.org>
54188
54189         * modules/posix_spawnp-tests: New file.
54190         * tests/test-posix_spawn.c: New file.
54191         * tests/test-posix_spawn.in.sh: New file.
54192
54193         New module 'posix_spawnp'.
54194         * modules/posix_spawnp: New file.
54195         * lib/spawnp.c: New file, from GNU libc with modifications.
54196         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54197
54198         New module 'posix_spawn'.
54199         * modules/posix_spawn: New file.
54200         * lib/spawn.c: New file, from GNU libc with modifications.
54201         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54202
54203         New module 'posix_spawnattr_destroy'.
54204         * modules/posix_spawnattr_destroy: New file.
54205         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54206         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54207         module.
54208
54209         New module 'posix_spawnattr_setsigmask'.
54210         * modules/posix_spawnattr_setsigmask: New file.
54211         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54212         modifications.
54213         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54214         new module.
54215
54216         New module 'posix_spawnattr_getsigmask'.
54217         * modules/posix_spawnattr_getsigmask: New file.
54218         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54219         modifications.
54220         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54221         new module.
54222
54223         New module 'posix_spawnattr_setsigdefault'.
54224         * modules/posix_spawnattr_setsigdefault: New file.
54225         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54226         modifications.
54227         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54228         new module.
54229
54230         New module 'posix_spawnattr_getsigdefault'.
54231         * modules/posix_spawnattr_getsigdefault: New file.
54232         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54233         modifications.
54234         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54235         new module.
54236
54237         New module 'posix_spawnattr_setschedpolicy'.
54238         * modules/posix_spawnattr_setschedpolicy: New file.
54239         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54240         modifications.
54241         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54242         new module.
54243
54244         New module 'posix_spawnattr_getschedpolicy'.
54245         * modules/posix_spawnattr_getschedpolicy: New file.
54246         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54247         modifications.
54248         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54249         new module.
54250
54251         New module 'posix_spawnattr_setschedparam'.
54252         * modules/posix_spawnattr_setschedparam: New file.
54253         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54254         modifications.
54255         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54256         new module.
54257
54258         New module 'posix_spawnattr_getschedparam'.
54259         * modules/posix_spawnattr_getschedparam: New file.
54260         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54261         modifications.
54262         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54263         new module.
54264
54265         New module 'posix_spawnattr_setpgroup'.
54266         * modules/posix_spawnattr_setpgroup: New file.
54267         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54268         modifications.
54269         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54270         module.
54271
54272         New module 'posix_spawnattr_getpgroup'.
54273         * modules/posix_spawnattr_getpgroup: New file.
54274         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54275         modifications.
54276         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54277         module.
54278
54279         New module 'posix_spawnattr_setflags'.
54280         * modules/posix_spawnattr_setflags: New file.
54281         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54282         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54283         module.
54284
54285         New module 'posix_spawnattr_getflags'.
54286         * modules/posix_spawnattr_getflags: New file.
54287         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54288         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54289         module.
54290
54291         New module 'posix_spawnattr_init'.
54292         * modules/posix_spawnattr_init: New file.
54293         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54294         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54295         module.
54296
54297         New module 'posix_spawn_file_actions_destroy'.
54298         * modules/posix_spawn_file_actions_destroy: New file.
54299         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54300         modifications.
54301         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54302         the new module.
54303
54304         New module 'posix_spawn_file_actions_addopen'.
54305         * modules/posix_spawn_file_actions_addopen: New file.
54306         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54307         modifications.
54308         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54309         the new module.
54310
54311         New module 'posix_spawn_file_actions_adddup2'.
54312         * modules/posix_spawn_file_actions_adddup2: New file.
54313         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54314         modifications.
54315         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54316         the new module.
54317
54318         New module 'posix_spawn_file_actions_addclose'.
54319         * modules/posix_spawn_file_actions_addclose: New file.
54320         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54321         modifications.
54322         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54323         the new module.
54324
54325         New module 'posix_spawn_file_actions_init'.
54326         * modules/posix_spawn_file_actions_init: New file.
54327         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54328         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54329         new module.
54330
54331         New module 'posix_spawn-internal'.
54332         * modules/posix_spawn-internal: New file.
54333         * lib/spawn_int.h: New file, from GNU libc with modifications.
54334         * lib/spawni.c: New file, from GNU libc with modifications.
54335         * m4/posix_spawn.m4: New file.
54336
54337         New module 'spawn'.
54338         * modules/spawn: New file.
54339         * lib/spawn.in.h: New file, from GNU libc with modifications.
54340         * m4/spawn_h.m4: New file.
54341         * doc/posix-headers/spawn.texi: Mention the new module.
54342
54343 2008-09-28  Bruno Haible  <bruno@clisp.org>
54344
54345         * modules/sched-tests: New file.
54346         * tests/test-sched.c: New file.
54347
54348         New module 'sched'.
54349         * modules/sched: New file.
54350         * lib/sched.in.h: New file.
54351         * m4/sched_h.m4: New file.
54352         * doc/posix-headers/sched.texi: Mention the new module.
54353
54354 2008-09-27  Eric Blake  <ebb9@byu.net>
54355
54356         Fix previous patch, and tweak references to $0.
54357         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54358         (func_version, func_gnulib_dir): Don't call this program
54359         gnulib-tool.
54360         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54361         with using $0 in function.
54362         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54363         (func_fatal_error): Reuse the name the user invoked us with.
54364
54365 2008-09-27  Bruno Haible  <bruno@clisp.org>
54366
54367         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54368         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54369         (gl_ICONV_H): Not here.
54370         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54371         instead of assigning ICONV_H directly.
54372
54373         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54375         WCHAR_H directly.
54376
54377 2008-09-27  Bruno Haible  <bruno@clisp.org>
54378
54379         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54380         * modules/arpa_inet (Depends-on): Add link-warning.
54381         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54382         * modules/unistd (Makefile.am): Likewise.
54383
54384 2008-09-26  Bruno Haible  <bruno@clisp.org>
54385
54386         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54387         variables.
54388         (func_version): Essentially copied from gnulib-tool.
54389         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54390         func_readlink): Copied from gnulib-tool.
54391
54392 2008-09-26  Bruno Haible  <bruno@clisp.org>
54393
54394         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54395         invoking git-version-gen.
54396
54397 2008-09-26  Bruno Haible  <bruno@clisp.org>
54398
54399         * posix-modules: Update to directory names changed on 2008-01-19.
54400         Remove commas in output before splitting into words. No more need to
54401         avoid 'ftruncate' since 2007-02-19.
54402
54403 2008-09-26  Bruno Haible  <bruno@clisp.org>
54404
54405         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54406
54407 2008-09-26  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54410         * modules/fwriteerror (Depends-on): Add errno.
54411
54412 2008-09-26  Bruno Haible  <bruno@clisp.org>
54413
54414         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54415         * tests/test-vc-list-files-cvs.sh: Likewise.
54416
54417 2008-09-26  Bruno Haible  <bruno@clisp.org>
54418
54419         * doc/posix-headers/sys_resource.texi: Reorder items.
54420
54421 2008-09-26  Jim Meyering  <meyering@redhat.com>
54422
54423         fts: tweak inode comparison function
54424         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54425         inode numbers, as documented.
54426
54427         fts: sort dirent entries on inode number before traversing
54428         This avoids a quadratic, seek-related performance penalty when
54429         operating on a directory containing many entries (measurable at 10k;
54430         3.5 hours at 2 million entries with a cold cache) on certain types
54431         of file systems, including ext3 and ext4, but not tmpfs.
54432         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54433         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54434         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54435         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54436         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54437         (fts_build): Set the stat.st_ino member from D_INO.
54438         If it is likely to be useful, sort dirent entries on inode number.
54439
54440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54441         and the struct statfs.f_type member.
54442         * modules/fts (Depends-on): Add d-ino.
54443
54444 2008-09-26  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/sigpipe-die (Depends-on): Add sigpipe.
54447
54448         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54449         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54450         and GNULIB_STDIO_H_SIGPIPE are set.
54451         * lib/stdio-write.c: New file.
54452         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54453         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54454         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54455         REPLACE_STDIO_WRITE_FUNCS.
54456         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54457         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54458         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54459         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54460         * modules/stdio (Files): Add lib/stdio-write.c.
54461         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54462         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54463         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54464         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54465         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54466         REPLACE_FPRINTF_POSIX.
54467         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54468         REPLACE_PRINTF_POSIX.
54469         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54470         REPLACE_VFPRINTF_POSIX.
54471         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54472         REPLACE_VPRINTF_POSIX.
54473         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54474         SIGPIPE issue.
54475         * doc/posix-functions/fputc.texi: Likewise.
54476         * doc/posix-functions/fputs.texi: Likewise.
54477         * doc/posix-functions/fwrite.texi: Likewise.
54478         * doc/posix-functions/printf.texi: Likewise.
54479         * doc/posix-functions/putc.texi: Likewise.
54480         * doc/posix-functions/putchar.texi: Likewise.
54481         * doc/posix-functions/puts.texi: Likewise.
54482         * doc/posix-functions/vfprintf.texi: Likewise.
54483         * doc/posix-functions/vprintf.texi: Likewise.
54484
54485         * modules/safe-write (Depends-on): Add write.
54486
54487         * modules/sigpipe-tests: New file.
54488         * tests/test-sigpipe.c: New file.
54489         * tests/test-sigpipe.sh: New file.
54490
54491         * modules/write: New file.
54492         * lib/unistd.in.h: Include <sys/types.h>.
54493         (write): New declaration.
54494         * lib/write.c: New file.
54495         * m4/write.m4: New file.
54496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54497         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54498         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54499         GNULIB_WRITE, REPLACE_WRITE.
54500         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54501         and the SIGPIPE issue.
54502
54503         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54504         (raise): New declaration.
54505         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54506         (ext_signal): New function.
54507         (rpl_raise): New function.
54508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54509         GNULIB_SIGNAL_H_SIGPIPE.
54510         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54511         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54512
54513         * modules/sigpipe: New file.
54514         * m4/sigpipe.m4: New file.
54515
54516 2008-09-25  Derek Price  <derek@ximbiot.com>
54517             Bruno Haible  <bruno@clisp.org>
54518
54519         * gnulib-tool (func_import): Report all license incompatibilities, not
54520         just the first one.
54521
54522 2008-09-25  Bruno Haible  <bruno@clisp.org>
54523
54524         * gnulib-tool (func_import): When computing the edits, consider not
54525         only the Makefile.ams that exist but also those that will be generated.
54526
54527 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54528
54529         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54530         fixes gnulib-tool --test warning about duplicate dependency.
54531
54532 2008-09-25  Bruno Haible  <bruno@clisp.org>
54533
54534         * gnulib-tool: Don't ask the user to perform edits in the generated
54535         Makefile.ams.
54536         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54537         apply to the Makefile.am being generated.
54538         (func_emit_tests_Makefile_am): Execute edits that apply to the
54539         Makefile.am being generated.
54540         (func_import): Setup list of Makefile.am edits before emitting the
54541         Makefile.ams, not at the end.
54542         (func_create_testdir): Update.
54543         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54544
54545 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54546
54547         * gnulib-tool (func_import): Store the --tests-base option in the
54548         comment in gnulib-cache.m4.
54549
54550 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54551
54552         * NEWS: Document increased portability that sys_select now provides.
54553
54554         * lib/sys_select.in.h: Install select wrapper.
54555         * lib/sys_socket.in.h: Use more descriptive name when there is no
54556         select wrapper.
54557         * lib/winsock-select.c: New.
54558         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54559         Require gl_HEADER_SYS_SOCKET.
54560         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54561         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54562         * tests/test-sys_select.c: Add functional tests.
54563
54564 2008-09-24  Eric Blake  <ebb9@byu.net>
54565
54566         open, fopen: close fd leak in last patch
54567         * lib/open.c (rpl_open): Close fd before returning error.
54568         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54569         * doc/posix-functions/open.texi (open): Document that Irix also
54570         has the bug.
54571         * doc/posix-functions/fopen.texi (fopen): Likewise.
54572         Reported by Paolo Bonzini.
54573
54574 2008-09-24  Bruno Haible  <bruno@clisp.org>
54575
54576         Ensure that a filename ending in a slash cannot be used to access a
54577         non-directory.
54578         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54579         to check whether it's really a directory.
54580         * lib/fopen.c: Include fcntl.h, unistd.h.
54581         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54582         and fdopen().
54583         * modules/fopen (Depends-on): Add unistd.
54584         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54585         * tests/test-fopen.c (main): Likewise.
54586         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54587         * doc/posix-functions/fopen.texi: Likewise.
54588         Reported by Eric Blake.
54589
54590 2008-09-23  Eric Blake  <ebb9@byu.net>
54591
54592         c-stack: avoid compiler optimizations when provoking overflow
54593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54594         recursion harder to optimize, to ensure a stack overflow occurs.
54595         * tests/test-c-stack.c (recurse): Likewise.
54596         Borrowed from libsigsegv.
54597
54598         c-stack: work around Irix sigaltstack bug
54599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54600         whether sigaltstack uses wrong end of stack_t (copied in part from
54601         libsigsegv).
54602         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54603         Irix bug, without requiring an over-allocation.
54604         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54605         bug.
54606
54607         fopen: document mingw bug on directories
54608         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54609         not allowing a stream visiting a directory, even though reading
54610         from such a stream is not portable.
54611
54612 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54613
54614         * lib/poll.c: Rewrite.
54615         * modules/poll: Depend on alloca.
54616
54617 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54618
54619         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54620         instead define prototypes for a full set of wrappers.  Ensure
54621         that Cygwin does not use the compatibility code, which is only
54622         for MinGW.
54623         * lib/winsock.c: New.
54624         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54625         * modules/sys_socket: Add lib/winsock.c.
54626
54627         * modules/poll-tests: Add errno and perror.
54628         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54629
54630 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54631
54632         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54633
54634 2008-09-23  Bruno Haible  <bruno@clisp.org>
54635
54636         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54637         * doc/glibc-functions/*: Likewise.
54638
54639 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54640
54641         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54642         success.
54643
54644 2008-09-22  Eric Blake  <ebb9@byu.net>
54645             Bruno Haible  <bruno@clisp.org>
54646
54647         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54648         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54649         supply %A but mishandle pseudo-NaN.
54650         Reported by Simon Josefsson.
54651
54652 2008-09-21  Bruno Haible  <bruno@clisp.org>
54653
54654         * tests/test-lock.c (main): Tweak skip message.
54655         * tests/test-tls.c (main): Likewise.
54656
54657 2008-09-21  Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54660         whether 'struct sigaction' has sa_sigaction here...
54661         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54662         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54663
54664 2008-09-21  Bruno Haible  <bruno@clisp.org>
54665
54666         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54667         section.
54668         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54669         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54670         the new section.
54671         (Support for obsolete systems lacking POSIX:2001): New section.
54672         (String handling <string.h>): Move strdup to the new section.
54673         Suggested by Simon Josefsson and Paolo Bonzini.
54674
54675 2008-09-21  Bruno Haible  <bruno@clisp.org>
54676
54677         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54678         exponents in %e and %g results on 'long double'. Needed for mingw's
54679         improved *printf functions.
54680         * tests/test-vasprintf-posix.c (test_function): Likewise.
54681         * tests/test-snprintf-posix.h (test_function): Likewise.
54682         * tests/test-sprintf-posix.h (test_function): Likewise.
54683         Reported by Eric Blake.
54684
54685 2008-09-21  Bruno Haible  <bruno@clisp.org>
54686
54687         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54688         * tests/test-sprintf-posix.h (test_function): Likewise.
54689
54690 2008-09-21  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/getpass (Depends-on): Add strdup-posix.
54693
54694         New module 'strdup-posix'.
54695         * modules/strdup-posix: New file.
54696         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54697         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54699         REPLACE_STRDUP.
54700         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54701         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54703         strdup-posix.
54704
54705         * modules/strdup (Depends-on): Remove malloc-posix.
54706
54707 2008-09-20  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54710         Wildenhues.
54711
54712 2008-09-20  Bruno Haible  <bruno@clisp.org>
54713
54714         Ensure that wint_t gets defined on IRIX 5.3.
54715         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54716         * lib/wctype.in.h (wint_t): Likewise.
54717         (__wctype_wint_t): Remove type.
54718         (isw*): Use wint_t instead of __wctype_wint_t.
54719         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54720         * modules/wchar (Files): Add m4/wint_t.m4.
54721         (Makefile.am): Substitute HAVE_WINT_T.
54722         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54723         * tests/test-wctype.c: Check that wint_t is defined.
54724         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54725         * doc/posix-headers/wctype.texi: Likewise.
54726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54727
54728 2008-09-18  Bruno Haible  <bruno@clisp.org>
54729
54730         * gnulib-tool (func_exit): Update comment.
54731
54732 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54733
54734         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54735         assumes strdup exists and does not depend on strdup to return
54736         ENOMEM on out of memory conditions.
54737
54738 2008-09-18  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54741         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54742         digits for the exponent.
54743
54744 2008-09-18  Jim Meyering  <meyering@redhat.com>
54745             Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/vasnprintf.c (decimal_point_char): Define also if
54748         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54749
54750 2008-09-16  Bruno Haible  <bruno@clisp.org>
54751         and Eric Blake  <ebb9@byu.net>
54752
54753         vasnprintf: support Irix 5.3
54754         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54755         that mishandle long double infinity.
54756         Reported by Tom G. Christensen.
54757
54758 2008-09-16  Bruno Haible  <bruno@clisp.org>
54759
54760         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54761         Solaris 9.
54762         * doc/glibc-functions/alphasort.texi: Likewise.
54763         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54764
54765 2008-09-16  Jim Meyering  <meyering@redhat.com>
54766
54767         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54768         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54769         a umask modification leak out of a subshell.  Otherwise, the
54770         opensolaris /bin/sh would be accepted and thus cause unwarranted
54771         failures in the coreutils test suite.
54772
54773 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54774
54775         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54776         to succeed.
54777
54778 2008-09-16  Jim Meyering  <meyering@redhat.com>
54779
54780         avoid spurious test failure when library is built without ACL support
54781         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54782         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54783         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54784         * tests/test-copy-acl.sh: Likewise.
54785
54786 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54787
54788         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54789         based on character occurrence counts.
54790
54791 2008-09-15  Eric Blake  <ebb9@byu.net>
54792
54793         tests: avoid some compiler warnings
54794         * tests/test-memchr.c (main): Pass NULL indirectly.
54795         * tests/test-closein.c (main): Avoid unused variable.
54796
54797 2008-09-15  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54800         are missing on OpenBSD 4.0 individually.
54801         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54802
54803 2008-09-15  Bruno Haible  <bruno@clisp.org>
54804
54805         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54806         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54807         * doc/posix-functions/perror.texi: Likewise.
54808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54809         is missing.
54810         Reported by Eric Blake.
54811
54812         * lib/errno.in.h: Use replacement values >= 2000.
54813         Reported by Eric Blake.
54814
54815 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54816
54817         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54818         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54819         limit.
54820         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54821         compareseq was aborted.
54822
54823 2008-09-14  Bruno Haible  <bruno@clisp.org>
54824
54825         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54826         yvec_edit_count.
54827         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54828         (fstrcmp_bounded): Simplify result computation accordingly.
54829
54830 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54831
54832         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54833         (fstrcmp): Define in terms of fstrcmp_bounded.
54834         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54835         lower_bound argument.
54836         Return quickly if the result is certainly < lower_bound.
54837         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54838
54839 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54840
54841         * lib/diffseq.h (EARLY_ABORT): New macro.
54842         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54843         evaluates to true.
54844
54845 2008-09-14  Bruno Haible  <bruno@clisp.org>
54846
54847         * modules/perror-tests: New file.
54848         * tests/test-perror.sh: New file.
54849         * tests/test-perror.c: New file.
54850
54851         New module 'perror'.
54852         * lib/stdio.in.h (perror): New declaration.
54853         * lib/perror.c: New file.
54854         * m4/perror.m4: New file.
54855         * modules/perror: New file.
54856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54857         * doc/posix-functions/perror.texi: Mention the perror module.
54858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54859         REPLACE_PERROR.
54860         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54861         REPLACE_PERROR.
54862
54863 2008-09-14  Bruno Haible  <bruno@clisp.org>
54864
54865         * modules/stdio (Makefile.am): Reorder to match the order in
54866         lib/stdio.in.h.
54867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54868
54869 2008-09-13  Bruno Haible  <bruno@clisp.org>
54870
54871         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54872
54873 2008-09-13  Bruno Haible  <bruno@clisp.org>
54874
54875         Extend strerror to cover the added errno values.
54876         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54877         (rpl_strerror): Provide error messages for the added errno values and
54878         for the WSA* values.
54879         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54880         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54881         strerror.
54882         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54883         * modules/strerror (Depends-on): Add errno.
54884         * doc/posix-functions/strerror.texi: Document the change.
54885         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54886         and EOVERFLOW.
54887
54888 2008-09-13  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/EOVERFLOW: Remove file.
54891         * m4/eoverflow.m4: Remove file.
54892         * modules/EOVERFLOW-tests: Remove file.
54893         * tests/test-EOVERFLOW.c: Remove file.
54894         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54895         * modules/ftell (Depends-on): Likewise.
54896         * modules/getdelim (Depends-on): Likewise.
54897         * modules/getugroups (Depends-on): Likewise.
54898         * modules/poll (Depends-on): Likewise.
54899         * modules/snprintf (Depends-on): Likewise.
54900         * modules/sprintf-posix (Depends-on): Likewise.
54901         * modules/vasnprintf (Depends-on): Likewise.
54902         * modules/vasprintf (Depends-on): Likewise.
54903         * modules/vfprintf-posix (Depends-on): Likewise.
54904         * modules/vsnprintf (Depends-on): Likewise.
54905         * modules/vsprintf-posix (Depends-on): Likewise.
54906         * modules/xvasprintf (Depends-on): Likewise.
54907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54908         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54909         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54910         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54911         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54912         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54913         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54914         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54915         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54916         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54917         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54918         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54919         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54920         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54921         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54922         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54923         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54924         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54925         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54926         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54927         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54928         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54929         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54930         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54931         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54932         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54933         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54934         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54935         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54936         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54937         * MODULES.html.sh: Remove EOVERFLOW.
54938         * NEWS: Mention the change.
54939
54940 2008-09-13  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/errno-tests: New file.
54943         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54944
54945         * lib/errno.in.h: New file.
54946         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54947         * modules/errno: New file.
54948         * doc/posix-headers/errno.texi: Update documentation.
54949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54950
54951 2008-09-13  Bruno Haible  <bruno@clisp.org>
54952
54953         * tests/test-poll.c: Use #if for native Windows, rather than testing
54954         __MSVCRT__.
54955
54956 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54957             Bruno Haible  <bruno@clisp.org>
54958
54959         * lib/glob.c: Don't include <pwd.h> on native Windows.
54960         (WINDOWS32): New macro.
54961         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54962
54963 2008-09-13  Bruno Haible  <bruno@clisp.org>
54964
54965         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54966         (ETIMEDOUT): Remove macro.
54967         (glthread_cond_timedwait_multithreaded): New declaration.
54968         (glthread_cond_timedwait): Use it.
54969         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54970         (glthread_cond_timedwait_multithreaded): New function.
54971
54972 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54973
54974         * modules/poll-tests: Do not check for io.h.
54975         * tests/test-poll.c: Check for __MSVCRT__ instead.
54976
54977 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54978
54979         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54980         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54981         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54982
54983 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54984
54985         * modules/poll-tests: New.
54986         * tests/test-poll.c: New.
54987
54988 2008-09-12  Eric Blake  <ebb9@byu.net>
54989
54990         frexp: test for NetBSD failure on -0.0
54991         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54992         not all, bugs from NetBSD 3.0 have been fixed.
54993         * doc/posix-functions/frexp.texi (frexp): Document bug.
54994         Reported by Thomas Klausner.
54995
54996         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54997         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54998         literal -0.0.
54999         Reported by Jonathan C. Patschke <jp@centtech.com>.
55000
55001 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55002
55003         * lib/glthread/cond.h: Use dummy implementation also if
55004         USE_WIN32_THREADS.
55005
55006 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55007
55008         * modules/fnmatch-posix (License): Change to LGPLv2+.
55009         * modules/fnmatch-gnu (License): Likewise.
55010
55011 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55012
55013         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55014
55015 2008-09-11  Jim Meyering  <meyering@redhat.com>
55016
55017         * users.txt: Add gtk-vnc.
55018
55019 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55020
55021         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55022         rotate amounts.
55023
55024         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55025         required for 16-bit and 8-bit rotates.
55026         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55027         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55028         UINT8_MAX instead of hard-coded constants.
55029         Suggested by Paul Eggert.
55030
55031 2008-09-07  Bruno Haible  <bruno@clisp.org>
55032
55033         * tests/test-striconveh.c (main): Check behaviour when converting from
55034         UTF-7.
55035
55036         Make striconveh work better with stateful encodings.
55037         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55038         that iconv does not increment the inptr when returning -1/EINVAL.
55039
55040 2008-09-07  Bruno Haible  <bruno@clisp.org>
55041
55042         * build-aux/config.rpath: Update according to libtool-2.2.6.
55043         * build-aux/config.libpath: Likewise.
55044
55045 2008-09-06  Bruno Haible  <bruno@clisp.org>
55046
55047         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55048         * lib/freadptr.c (freadptr): Likewise.
55049         * lib/freadseek.c (freadptrinc): Likewise.
55050         Reported by Simon Josefsson.
55051
55052 2008-09-06  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/freadptr (License): Change to LGPLv2+.
55055         * modules/freadseek (License): Likewise.
55056         Suggested by Eric Blake.
55057
55058         * modules/memchr2 (License): Change to LGPLv2+.
55059         Approved by Eric Blake.
55060
55061 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55062             Bruno Haible  <bruno@clisp.org>
55063
55064         Make gnulib-tool work with native 'sed' on AIX.
55065         * gnulib-tool (sed_noop): New variable.
55066         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55067         func_add_or_update, func_create_testdir): Use it to initialize sed
55068         script variables.
55069         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55070
55071 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55072             Bruno Haible  <bruno@clisp.org>
55073
55074         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55075         also works after #include directives.
55076
55077 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55078
55079         getdate.y: reject an out-of-range timezone value
55080         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55081         the range [-24...+24].  When specified with only one or two digits,
55082         * tests/test-getdate.c: Tests for the fix.
55083         * doc/getdate.texi: Document this change.
55084
55085 2008-09-03  Bruno Haible  <bruno@clisp.org>
55086
55087         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55088
55089 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55090
55091         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55092         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55093         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55094         Blake <ebb9@byu.net>.
55095
55096         * tests/test-bitrotate.c: Add more test vectors.
55097
55098 2008-09-02  Eric Blake  <ebb9@byu.net>
55099
55100         vasnprintf-posix: handle large precision via %.*d
55101         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55102         when handling it ourselves.
55103         * tests/test-vasnprintf-posix.c (test_function): Add test.
55104         * tests/test-snprintf-posix.h (test_function): Likewise.
55105         * tests/test-sprintf-posix.h (test_function): Likewise.
55106         * tests/test-vasprintf-posix.c (test_function): Likewise.
55107         Reported by Alain Guibert.
55108
55109 2008-09-01  Eric Blake  <ebb9@byu.net>
55110
55111         c-stack: make configure-time check more robust
55112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55113         successful sigaction call.
55114         Reported by Tom G. Christensen.
55115
55116 2008-09-01  Bruno Haible  <bruno@clisp.org>
55117
55118         New module 'findprog-lgpl'.
55119         * modules/findprog-lgpl: New file.
55120         * lib/findprog-lgpl.c: New file.
55121         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55122         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55123         to decide whether to use strdup or xstrdup, concatenated_filename or
55124         xconcatenated_filename.
55125
55126 2008-09-01  Bruno Haible  <bruno@clisp.org>
55127
55128         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55129         'xconcat-filename' (GPL).
55130         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55131         (License): Change to LGPLv2+.
55132         * modules/xconcat-filename: New file.
55133         * lib/concat-filename.h (concatenated_filename): Change specification.
55134         (xconcatenated_filename): New declaration.
55135         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55136         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55137         memory situations.
55138         * lib/xconcat-filename.c: New file.
55139         * NEWS: Mention the change.
55140         * lib/findprog.c: Include concat-filename.h, not filename.h.
55141         (find_in_path): Use xconcatenated_filename instead of
55142         concatenated_filename.
55143         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55144         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55145         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55146         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55147         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55148         instead of concatenated_filename.
55149         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55150         (execute_java_class): Use xconcatenated_filename instead of
55151         concatenated_filename.
55152         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55153         * modules/javacomp (Depends-on): Likewise.
55154         * modules/javaexec (Depends-on): Likewise.
55155
55156 2008-09-01  Bruno Haible  <bruno@clisp.org>
55157
55158         Split module 'filename' into 'filename' and 'concat-filename'.
55159         * modules/filename: Keep only lib/filename.h.
55160         (License): Change to LGPLv2+.
55161         * modules/concat-filename: New file, extracted from modules/filename.
55162         * lib/filename.h (concatenated_filename): Remove declaration.
55163         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55164         * lib/concat-filename.c: Include concat-filename.h.
55165         * NEWS: Mention the change.
55166
55167 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55168
55169         * lib/bitrotate.h (rotl8, rotr8): Add.
55170
55171         * modules/bitrotate (configure.ac): Need
55172         AC_REQUIRE([AC_C_INLINE]).
55173         (Description): Mention stdint.h.  Reported by Bruno Haible
55174         <bruno@clisp.org>.
55175
55176         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55177         Paolo Bonzini <bonzini@gnu.org>.
55178
55179 2008-08-31  Bruno Haible  <bruno@clisp.org>
55180
55181         Assume Solaris specific bi-arch conventions on Solaris systems.
55182         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55183         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55184         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55185         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55186         like acl_libdirstem.
55187         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55188         acl_libdirstem.
55189         * NEWS: Mention the change.
55190         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55191
55192 2008-08-31  Jim Meyering  <meyering@redhat.com>
55193
55194         * lib/strftime.h: Add comments describing the two added arguments.
55195
55196         remove duplicate #include directives
55197         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55198         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55199
55200 2008-08-31  Bruno Haible  <bruno@clisp.org>
55201
55202         New module 'sigpipe-die'.
55203         * modules/sigpipe-die: New file.
55204         * lib/sigpipe-die.h: New file.
55205         * lib/sigpipe-die.c: New file.
55206         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55207
55208 2008-08-31  Bruno Haible  <bruno@clisp.org>
55209
55210         Don't override previously installed signal handlers.
55211         * lib/fatal-signal.c (saved_sigactions): New variable.
55212         (uninstall_handlers): Reset the signal to the saved handler, not
55213         to SIG_DFL (except when ignored).
55214         (install_handlers): Save the previous handlers.
55215
55216 2008-08-30  Bruno Haible  <bruno@clisp.org>
55217
55218         * gnulib-tool (func_reset_sigpipe): New function.
55219         (func_get_automake_snippet, func_modules_transitive_closure,
55220         func_import): Invoke it before a join command that reads from stdin,
55221         to avoid "echo: write error: Broken pipe" error messages on stderr.
55222         Reported by Sam Steingold <sds@gnu.org>.
55223
55224 2008-08-30  Bruno Haible  <bruno@clisp.org>
55225
55226         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55227         Code copied from m4/open.m4.
55228         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55229         access and the filename ends in a slash. Code copied from lib/open.c.
55230         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55231         * tests/test-fopen.c (main): Check against bug with trailing slash.
55232
55233 2008-08-29  Bruno Haible  <bruno@clisp.org>
55234
55235         Avoid some "gcc -pedantic" warnings.
55236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55237         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55238         * lib/dirent.in.h: Likewise.
55239         * lib/fcntl.in.h: Likewise.
55240         * lib/float.in.h: Likewise.
55241         * lib/iconv.in.h: Likewise.
55242         * lib/inttypes.in.h: Likewise.
55243         * lib/locale.in.h: Likewise.
55244         * lib/math.in.h: Likewise.
55245         * lib/netinet_in.in.h: Likewise.
55246         * lib/search.in.h: Likewise.
55247         * lib/signal.in.h: Likewise.
55248         * lib/stdarg.in.h: Likewise.
55249         * lib/stdint.in.h: Likewise.
55250         * lib/stdio.in.h: Likewise.
55251         * lib/stdlib.in.h: Likewise.
55252         * lib/string.in.h: Likewise.
55253         * lib/strings.in.h: Likewise.
55254         * lib/sys_select.in.h: Likewise.
55255         * lib/sys_socket.in.h: Likewise.
55256         * lib/sys_stat.in.h: Likewise.
55257         * lib/sys_time.in.h: Likewise.
55258         * lib/sysexits.in.h: Likewise.
55259         * lib/time.in.h: Likewise.
55260         * lib/unistd.in.h: Likewise.
55261         * lib/wchar.in.h: Likewise.
55262         * lib/wctype.in.h: Likewise.
55263         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55264         * modules/fchdir (Makefile.am): Likewise.
55265         * modules/fcntl (Makefile.am): Likewise.
55266         * modules/float (Makefile.am): Likewise.
55267         * modules/iconv_open (Makefile.am): Likewise.
55268         * modules/inttypes (Makefile.am): Likewise.
55269         * modules/locale (Makefile.am): Likewise.
55270         * modules/math (Makefile.am): Likewise.
55271         * modules/netinet_in (Makefile.am): Likewise.
55272         * modules/search (Makefile.am): Likewise.
55273         * modules/signal (Makefile.am): Likewise.
55274         * modules/stdarg (Makefile.am): Likewise.
55275         * modules/stdint (Makefile.am): Likewise.
55276         * modules/stdio (Makefile.am): Likewise.
55277         * modules/stdlib (Makefile.am): Likewise.
55278         * modules/string (Makefile.am): Likewise.
55279         * modules/strings (Makefile.am): Likewise.
55280         * modules/sys_select (Makefile.am): Likewise.
55281         * modules/sys_socket (Makefile.am): Likewise.
55282         * modules/sys_stat (Makefile.am): Likewise.
55283         * modules/sys_time (Makefile.am): Likewise.
55284         * modules/sysexits (Makefile.am): Likewise.
55285         * modules/time (Makefile.am): Likewise.
55286         * modules/unistd (Makefile.am): Likewise.
55287         * modules/wchar (Makefile.am): Likewise.
55288         * modules/wctype (Makefile.am): Likewise.
55289         Reported by Reuben Thomas <rrt@sc3d.org>.
55290
55291 2008-08-29  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55294         any more.
55295
55296 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55297
55298         * MODULES.html.sh (Misc): Add bitrotate.
55299
55300         * modules/bitrotate: New file.
55301
55302         * lib/bitrotate.h: New file.
55303
55304         * modules/bitrotate-tests: New file.
55305
55306         * tests/test-bitrotate.c: New file.
55307
55308         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55309         on the bitrotate module.
55310
55311         * lib/arctwo.c: Use new bitrotate module.
55312
55313 2008-08-29  Jim Meyering  <meyering@redhat.com>
55314
55315         bootstrap: merge changes from coreutils
55316         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55317         of copied files.  Remove a kludge, now that this is fixed.
55318         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55319         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55320         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55321
55322 2008-08-29  Bruno Haible  <bruno@clisp.org>
55323
55324         * MODULES.html.sh: Remove --cvs-urls option.
55325
55326 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55327
55328         maint.mk: adjust to file name change
55329         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55330
55331 2008-08-28  Jim Meyering  <meyering@redhat.com>
55332
55333         * modules/getndelim2 (License): Relicense to LGPLv2+.
55334         Approved by Richard Stallman for the version of 1995, and by
55335         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55336
55337 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55338
55339         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55340         dummy if one is not available.  Do not touch them if
55341         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55342         (getc_maybe_unlocked): New.
55343         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55344
55345 2008-08-26  Eric Blake  <ebb9@byu.net>
55346
55347         doc/INSTALL: resync from autoconf
55348         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55349         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55350         moving...
55351         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55352         * INSTALL: Regenerate.
55353         * INSTALL.ISO: New file.
55354         * INSTALL.UTF-8: Likewise.
55355
55356 2008-08-26  Jim Meyering  <meyering@redhat.com>
55357
55358         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55359         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55360         these definitions conditional, so that they may be overridden, too.
55361
55362 2008-08-26  Bruno Haible  <bruno@clisp.org>
55363
55364         Generate INSTALL file variants with prettier quotes.
55365         * doc/Makefile (INSTALL_PRELUDE): New macro.
55366         (INSTALL): Use it.
55367         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55368
55369 2008-08-26  Bruno Haible  <bruno@clisp.org>
55370
55371         Run makeinfo in an English locale.
55372         * doc/Makefile (MAKEINFO): New variable.
55373
55374 2008-08-26  Bruno Haible  <bruno@clisp.org>
55375
55376         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55377         Suggested by Eric Blake.
55378
55379 2008-08-25  Bruno Haible  <bruno@clisp.org>
55380
55381         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55382
55383 2008-08-25  Eric Blake  <ebb9@byu.net>
55384
55385         c-stack: test that stack overflow can be caught
55386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55387         that platform allows handling stack overflow; at least OS/2 EMX
55388         has sigaltstack, but crashes before transferring control to
55389         handler on stack overflow.
55390         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55391         check for HAVE_STACK_OVERFLOW_HANDLING.
55392         Reported by Elbert Pol.
55393
55394 2008-08-25  Bruno Haible  <bruno@clisp.org>
55395
55396         * doc/posix-functions/strftime.texi: Fix description of strftime
55397         module.
55398
55399 2008-08-24  Bruno Haible  <bruno@clisp.org>
55400
55401         * tests/uniwidth/test-uc_width2.c: New file.
55402         * tests/uniwidth/test-uc_width2.sh: New file.
55403         * modules/uniwidth/width-tests (Files): Add the new files.
55404         (TESTS): Add uniwidth/test-uc_width2.sh.
55405         (TESTS_ENVIRONMENT): New variable.
55406         (check_PROGRAMS): Add test-uc_width2.
55407         (test_uc_width2_SOURCES): New variable.
55408
55409         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55410         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55411         not 0x00AB.
55412         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55413
55414 2008-08-22  Eric Blake  <ebb9@byu.net>
55415
55416         test-lock, test-tls: mention why a test is skipped
55417         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55418         skipped.
55419         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55420
55421         count-one-bits: relax license
55422         * modules/count-one-bits (License): Relicense to LGPLv2+.
55423         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55424
55425 2008-08-22  Andreas Schwab  <schwab@suse.de>
55426
55427         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55428         Remove spurious space in assignment.
55429
55430 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55431
55432         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55433         Paul Eggert <eggert@CS.UCLA.EDU>.
55434
55435 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55436
55437         * modules/gettext: Add m4/threadlib.m4.
55438
55439 2008-08-19  Eric Blake  <ebb9@byu.net>
55440
55441         test-c-stack: fix compilation failure on FreeBSD 5.0
55442         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55443         headers before <sys/resource.h>.
55444         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55445         the bug.
55446         Reported by Nelson H. F. Beebe.
55447
55448         strverscmp: migrate from "strverscmp.h" to <string.h>
55449         * modules/string (Makefile.am): Add new hooks.
55450         * modules/strverscmp (Files): Remove strverscmp.h.
55451         (Depends-on): Add string.
55452         (configure.ac): Add indicator.
55453         (Include): Mention new header.
55454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55455         defaults.
55456         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55457         results.
55458         * lib/strverscmp.h: Delete.
55459         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55460         * tests/test-strverscmp.c (includes): Adjust client.
55461         * lib/check-version.c (includes): Likewise.
55462         * NEWS: Document the change.
55463
55464         strverscmp: add unit test
55465         * modules/strverscmp-tests: New file.
55466         * tests/test-strverscmp.c: Likewise.
55467
55468 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55469
55470         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55471         regarding Windows crypto stuff, from Mono.
55472
55473 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55474
55475         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55476         if present, for intel RND.  Return error on failures.
55477
55478 2008-08-18  Ben Pfaff  <blp@gnu.org>
55479
55480         gitlog-to-changelog: give better diagnostic for failed pipe-open
55481         * build-aux/gitlog-to-changelog: Improve error message: suggest
55482         that the version of Git may be too old.
55483
55484 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55485
55486         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55487         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55488
55489 2008-08-18  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55492         pthread_in_use().
55493
55494 2008-08-18  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/glthread/threadlib.c: Include <pthread.h>.
55497
55498 2008-08-18  Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55501         glthread_recursive_lock_* macros.
55502         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55503         Fix syntax error.
55504
55505 2008-08-18  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/glthread/thread.c: Avoid forcing a context switch right after
55508         thread creation.
55509
55510 2008-08-17  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55513         * lib/glthread/thread.h: Provide Win32 specific implementation.
55514         * modules/thread (Files): Add lib/glthread/thread.c.
55515         (Depends-on): Add lock.
55516         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55517
55518 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55519
55520         New module 'yield'.
55521         * modules/yield: New file.
55522         * lib/glthread/yield.h: New file.
55523         * m4/yield.m4: New file.
55524         * MODULES.html.sh (Multithreading): Add yield.
55525
55526 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55527
55528         New module 'thread'.
55529         * modules/thread: New file.
55530         * lib/glthread/thread.h: New file.
55531         * m4/thread.m4: New file.
55532         * MODULES.html.sh (Multithreading): Add thread.
55533
55534 2008-08-17  Bruno Haible  <bruno@clisp.org>
55535
55536         * lib/glthread/lock.h: Include <stdlib.h> always.
55537         * lib/glthread/tls.h: Likewise.
55538         * lib/glthread/cond.h: Likewise.
55539
55540 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55541
55542         New module 'cond'.
55543         * modules/cond: New file.
55544         * lib/glthread/cond.h: New file.
55545         * lib/glthread/cond.c: New file.
55546         * m4/cond.m4: New file.
55547         * MODULES.html.sh (Multithreading): Add cond.
55548
55549 2008-08-16  Eric Blake  <ebb9@byu.net>
55550
55551         c-stack: fix regression on Irix 5.3 from 2008-06-21
55552         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55553         sa_sigaction...
55554         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55555         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55556         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55557         * modules/signal (Makefile.am): Use the value.
55558         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55559         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55560         * doc/posix-headers/signal.texi (signal.h): Document this
55561         portability issue.
55562         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55563         Reported by Tom G. Christensen.
55564
55565 2008-08-17  Bruno Haible  <bruno@clisp.org>
55566
55567         New module 'threadlib'.
55568         * modules/threadlib: New file.
55569         * lib/glthread/threadlib.c: New file, extracted from
55570         lib/glthread/lock.c.
55571         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55572         functions.
55573         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55574         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55575         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55576         macros.
55577         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55578         (gl_DISABLE_THREADS): Remove macro.
55579         * modules/lock (Files): Remove build-aux/config.rpath.
55580         (Depends-on): Remove havelib. Add threadlib.
55581         (configure.ac-early): Remove section.
55582         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55583         * modules/tls (Depends-on): Remove lock. Add threadlib.
55584         (Link): New section, copied from threadlib.
55585         * MODULES.html.sh (Multithreading): Add threadlib.
55586
55587 2008-08-14  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55590         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55591         glthread_rwlock_unlock, glthread_rwlock_destroy,
55592         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55593         glthread_recursive_lock_destroy): Define as macros always.
55594         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55595         glthread_lock_lock.
55596         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55597         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55598         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55599         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55600         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55601         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55602         (glthread_recursive_lock_lock_func): Renamed from
55603         glthread_recursive_lock_lock.
55604         (glthread_recursive_lock_unlock_func): Renamed from
55605         glthread_recursive_lock_unlock.
55606         (glthread_recursive_lock_destroy_func): Renamed from
55607         glthread_recursive_lock_destroy.
55608
55609 2008-08-14  Bruno Haible  <bruno@clisp.org>
55610
55611         * lib/glthread/lock.h: Renamed from lib/lock.h.
55612         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55613         * lib/glthread/tls.h: Renamed from lib/tls.h.
55614         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55615         * lib/fstrcmp.c: Update includes.
55616         * lib/strsignal.c: Update includes.
55617         * modules/lock (Files, Makefile.am): Update.
55618         (Include): Change to "glthread/lock.h".
55619         * modules/tls (Files, Makefile.am): Update.
55620         (Include): Change to "glthread/tls.h".
55621         * tests/test-lock.c: Update includes.
55622         * tests/test-tls.c: Update includes.
55623         * NEWS: Mention the renamed header files.
55624
55625 2008-08-11  Jim Meyering  <meyering@redhat.com>
55626
55627         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55628
55629 2008-08-11  Eric Blake  <ebb9@byu.net>
55630
55631         test-c-stack: avoid C99-ism
55632         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55633         before statement.
55634         Reported by Alain Guibert.
55635
55636 2008-08-10  Jim Meyering  <meyering@redhat.com>
55637
55638         ensure that return value of uinttostr et al are not ignored
55639         * lib/inttostr.h (__GNUC_PREREQ): Define.
55640         (__attribute_warn_unused_result__): Define.
55641         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55642
55643 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55644
55645         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55646         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55647
55648 2008-08-07  Jim Meyering  <meyering@redhat.com>
55649
55650         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55651
55652         * modules/mkstemp (License): Relicense under LGPLv2+.
55653         * modules/tempname (License): Likewise.
55654
55655 2008-08-06  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/poll.c (poll): Further micro-optimization.
55658
55659 2008-08-06  Jim Meyering  <meyering@redhat.com>
55660
55661         inet_pton.c: use locale-independent tolower
55662         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55663         (inet_pton6): Use c_tolower rather than tolower.
55664         * modules/inet_pton (Depends-on): Add c-ctype.
55665
55666 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55667
55668         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55669         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55670
55671 2008-08-06  Jim Meyering  <meyering@redhat.com>
55672
55673         * modules/inet_pton (License): Relicense under LGPLv2+.
55674
55675 2008-08-03  Bruno Haible  <bruno@clisp.org>
55676
55677         Additional non-aborting API for lock and tls.
55678         * lib/lock.h: Include <errno.h>.
55679         (glthread_lock_init): New macro/function.
55680         (gl_lock_init): Define as wrapper around glthread_lock_init.
55681         (glthread_lock_lock): New macro/function.
55682         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55683         (glthread_lock_unlock): New macro/function.
55684         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55685         (glthread_lock_destroy): New macro/function.
55686         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55687         (glthread_rwlock_init): New macro/function.
55688         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55689         (glthread_rwlock_rdlock): New macro/function.
55690         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55691         (glthread_rwlock_wrlock): New macro/function.
55692         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55693         (glthread_rwlock_unlock): New macro/function.
55694         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55695         (glthread_rwlock_destroy): New macro/function.
55696         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55697         (glthread_recursive_lock_init): New macro/function.
55698         (gl_recursive_lock_init): Define as wrapper around
55699         glthread_recursive_lock_init.
55700         (glthread_recursive_lock_lock): New macro/function.
55701         (gl_recursive_lock_lock): Define as wrapper around
55702         glthread_recursive_lock_lock.
55703         (glthread_recursive_lock_unlock): New macro/function.
55704         (gl_recursive_lock_unlock): Define as wrapper around
55705         glthread_recursive_lock_unlock.
55706         (glthread_recursive_lock_destroy): New macro/function.
55707         (gl_recursive_lock_destroy): Define as wrapper around
55708         glthread_recursive_lock_destroy.
55709         (glthread_once): New macro/function.
55710         (gl_once): Define as wrapper around glthread_once.
55711         Update function declarations.
55712         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55713         glthread_rwlock_init. Return error code.
55714         (glthread_rwlock_rdlock_multithreaded): Renamed from
55715         glthread_rwlock_rdlock. Return error code.
55716         (glthread_rwlock_wrlock_multithreaded): Renamed from
55717         glthread_rwlock_wrlock. Return error code.
55718         (glthread_rwlock_unlock_multithreaded): Renamed from
55719         glthread_rwlock_unlock. Return error code.
55720         (glthread_rwlock_destroy_multithreaded): Renamed from
55721         glthread_rwlock_destroy. Return error code.
55722         (glthread_recursive_lock_init_multithreaded): Renamed from
55723         glthread_recursive_lock_init. Return error code.
55724         (glthread_recursive_lock_lock_multithreaded): Renamed from
55725         glthread_recursive_lock_lock. Return error code.
55726         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55727         glthread_recursive_lock_unlock. Return error code.
55728         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55729         glthread_recursive_lock_destroy. Return error code.
55730         (glthread_once_call): Make static.
55731         (glthread_once_multithreaded): Renamed from glthread_once.
55732         * lib/tls.h: Include <errno.h>.
55733         (glthread_tls_key_init): New macro/function.
55734         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55735         (glthread_tls_set): New macro/function.
55736         (gl_tls_set): Define as wrapper around glthread_tls_set.
55737         (glthread_tls_key_destroy): New macro/function.
55738         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55739         Update function declarations.
55740         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55741         glthread_tls_get.
55742         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55743
55744 2008-08-04  Eric Blake  <ebb9@byu.net>
55745
55746         gnumakefile: use space, not TAB, outside of targets
55747         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55748
55749 2008-08-02  Jim Meyering  <meyering@redhat.com>
55750
55751         getdate.y: avoid locale-dependent date parsing failure
55752         In Turkish locales, getdate would fail to recognize keywords
55753         containing a lowercase "i".  The solution is not to rely on
55754         locale-sensitive case-conversion.
55755         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55756         (lookup_word): Use c_toupper in place of toupper.
55757         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55758         Reported by Vefa Bicakci <bicave@superonline.com> in
55759         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55760         * modules/getdate (Depends-on): Add c-ctype.
55761
55762 2008-08-02  Bruno Haible  <bruno@clisp.org>
55763
55764         * gnulib-tool (func_import): When updating or creating a .gitignore
55765         file, prepend each added line with a slash, and ignore leading slashes
55766         from the existing lines.
55767         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55768
55769 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55770
55771         Portability fix for GNU make 3.79.1.
55772         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55773         versions do not understand.
55774
55775 2008-08-01  Bruno Haible  <bruno@clisp.org>
55776
55777         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55778         * tests/test-isnanf.h (zero): New variable.
55779         (main): Avoid literal -0.0f.
55780         * tests/test-isnand.h (zero): New variable.
55781         (main): Avoid literal -0.0.
55782         * tests/test-isnanl.h (zero): New variable.
55783         (main): Avoid literal -0.0L.
55784         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55785         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55786         -0.0, -0.0L.
55787         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55788         (test_signbitd): Avoid literal -0.0.
55789         (test_signbitl): Avoid literal -0.0L.
55790         * tests/test-ceilf1.c (zero): New variable.
55791         (main): Avoid literal -0.0f.
55792         * tests/test-ceill.c (zero): New variable.
55793         (main): Avoid literal -0.0L.
55794         * tests/test-floorf1.c (zero): New variable.
55795         (main): Avoid literal -0.0f.
55796         * tests/test-floorl.c (zero): New variable.
55797         (main): Avoid literal -0.0L.
55798         * tests/test-roundf1.c (zero): New variable.
55799         (main): Avoid literal -0.0f.
55800         * tests/test-round1.c (zero): New variable.
55801         (main): Avoid literal -0.0.
55802         * tests/test-roundl.c (zero): New variable.
55803         (main): Avoid literal -0.0L.
55804         * tests/test-truncf1.c (zero): New variable.
55805         (main): Avoid literal -0.0f.
55806         * tests/test-trunc1.c (zero): New variable.
55807         (main): Avoid literal -0.0.
55808         * tests/test-truncl.c (zero): New variable.
55809         (main): Avoid literal -0.0L.
55810         * tests/test-frexp.c (zero): New variable.
55811         (main): Avoid literal -0.0.
55812         * tests/test-frexpl.c (zero): New variable.
55813         (main): Avoid literal -0.0L.
55814         * tests/test-ldexpl.c (zero): New variable.
55815         (main): Avoid literal -0.0L.
55816         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55817         (zerod, zerol): New variables.
55818         (test_function): Avoid literals -0.0, -0.0L.
55819         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55820         (zerod, zerol): New variables.
55821         (test_function): Avoid literals -0.0, -0.0L.
55822         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55823         (zerod, zerol): New variables.
55824         (test_function): Avoid literals -0.0, -0.0L.
55825         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55826         (zerod, zerol): New variables.
55827         (test_function): Avoid literals -0.0, -0.0L.
55828         * tests/test-strtod.c (zero): New variable.
55829         (main): Avoid literal -0.0.
55830         Reported by Jonathan C. Patschke <jp@centtech.com>.
55831
55832 2008-07-31  Jim Meyering  <meyering@redhat.com>
55833
55834         sha256.h: correct definition of SHA224_DIGEST_SIZE
55835         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55836         Reported by Paulie Pena IV <paulie4@gmail.com>.
55837         Define as 224 / 8, rather than as a literal.
55838         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55839         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55840         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55841
55842 2008-07-31  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55845         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55846         Reported by Jonathan Patschke <jp@centtech.com>.
55847
55848 2008-07-31  Bruno Haible  <bruno@clisp.org>
55849
55850         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55851         Reported by Paolo Bonzini <bonzini@gnu.org>.
55852
55853 2008-07-30  Eric Blake  <ebb9@byu.net>
55854
55855         test-strtod: allow compilation without -lm
55856         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55857         Reported by Dennis Clarke <blastwave@gmail.com>.
55858
55859 2008-07-28  Jim Meyering  <meyering@redhat.com>
55860
55861         bootstrap: work also when there are no .po files in po/
55862         * build-aux/bootstrap (update_po_files): Complete the change
55863         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55864
55865 2008-07-27  Jim Meyering  <meyering@redhat.com>
55866
55867         * users.txt: Add zile.
55868
55869 2008-07-26  Ben Pfaff  <blp@gnu.org>
55870
55871         Add missing dependencies on new m4/exponent[fdl].m4 files.
55872         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55873         * modules/isnand-nolibm: Add m4/exponentd.m4.
55874         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55875         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55876         m4/isnan[fdl].m4, because the macros actually used moved.
55877         Reported by Jim Meyering.
55878
55879 2008-07-14  Ben Pfaff  <blp@gnu.org>
55880
55881         Add isinf module.
55882         * lib/isinf.c: New file.
55883         * lib/math.in.h: Define isinf macro if we have decided to replace
55884         it.
55885         * m4/isinf.m4: New file.
55886         * m4/math_h.m4: Initialize and substitute variables for isinf
55887         module.
55888         * modules/isinf: New file.
55889         * modules/isinf-tests: New file.
55890         * modules/math: Add substitutions for new module.
55891         * tests/test-isinf.c: New file.
55892         * doc/posix-functions/isinf.texi: Mention new module.
55893         * MODULES.html.sh: Mention new module.
55894
55895 2008-07-14  Ben Pfaff  <blp@gnu.org>
55896
55897         Factor out some macros for use by additional modules.
55898         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55899         exponentf.m4.
55900         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55901         exponentd.m4.
55902         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55903         file exponentl.m4.
55904         * m4/exponentf.m4: New file.
55905         * m4/exponentd.m4: New file.
55906         * m4/exponentl.m4: New file.
55907         * modules/isnanf: Use new file m4/exponentf.m4.
55908         * modules/isnand: Use new file m4/exponentd.m4.
55909         * modules/isnanl: Use new file m4/exponentl.m4.
55910
55911 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55912
55913         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55914         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55915         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55916         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55917
55918         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55919         readlink on platforms without PATH_MAX.
55920
55921 2008-07-21  Eric Blake  <ebb9@byu.net>
55922
55923         Warn, not fail, on stale version.
55924         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55925
55926         Don't allow installation with stale devel version number.
55927         * top/GNUmakefile (_is-install-target): New macro.
55928         (_curr-ver): Forbid installation with stale version number.
55929
55930 2008-07-20  Bruno Haible  <bruno@clisp.org>
55931
55932         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55933         TESTS_ENVIRONMENT.
55934         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55935
55936 2008-07-20  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/c-stack.h (c_stack_action): Add documentation.
55939         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55940
55941 2008-07-20  Bruno Haible  <bruno@clisp.org>
55942
55943         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55944         * modules/readlink (License): Likewise.
55945
55946 2008-07-17  Eric Blake  <ebb9@byu.net>
55947
55948         * modules/c-stack (Link): Fix typo.
55949
55950         Make c-stack use libsigsegv, when available.
55951         * modules/c-stack (Depends-on): Add libsigsegv.
55952         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55953         needed.
55954         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55955         (segv_handler, overflow_handler, c_stack_action)
55956         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55957         implementation when libsigsegv is available, but only when using
55958         the library is necessary.
55959         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55960         comment, explaining why XSI check fails on Linux.
55961         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55962         * tests/test-c-stack2.sh: Tweak skip message.
55963         * NEWS: Document new link-time requirements.
55964
55965 2008-07-16  Eric Blake  <ebb9@byu.net>
55966
55967         c-stack: Expose false positives when not using libsigsegv.
55968         * modules/c-stack-tests (Files): Expand test.
55969         * tests/test-c-stack.c (main): Add means to conditionally trigger
55970         non-overflow SIGSEGV.
55971         * tests/test-c-stack2.sh: New file.
55972
55973 2008-07-14  Bruno Haible  <bruno@clisp.org>
55974
55975         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55976         Reported by Eric Blake.
55977
55978 2008-07-14  Sam Steingold  <sds@gnu.org>
55979             Bruno Haible  <bruno@clisp.org>
55980
55981         New module libsigsegv.
55982         * modules/libsigsegv: New file.
55983         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55984         modifications.
55985         * MODULES.html.sh (Signal handling): New section.
55986
55987 2008-07-14  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/unictype/ctype-* (Description): Add the word "function".
55990         Improves the resulting doc in MODULES.html.
55991
55992 2008-07-12  Ben Pfaff  <blp@gnu.org>
55993
55994         Add longlong module.
55995         * modules/longlong: New file.
55996
55997 2008-07-12  Bruno Haible  <bruno@clisp.org>
55998
55999         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56000         to empty.
56001
56002 2008-07-10  Ben Pfaff  <blp@gnu.org>
56003
56004         Add isnan module.
56005         * doc/posix-functions/isnan.texi: Mention new module.
56006         * lib/math.in.h: Define isnan macro if we have decided to replace
56007         it.
56008         * m4/isnan.m4: New file.
56009         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56010         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56011         also.
56012         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56013         redundancy.
56014         * m4/math_h.m4: Initialize and substitute variables for isnan
56015         module.
56016         * modules/isnan: New file.
56017         * modules/isnan-tests: New file.
56018         * modules/math: Add substitutions for new module.
56019         * tests/test-isnan.c: New file.
56020         * MODULES.html.sh: Mention new module.
56021
56022 2008-07-10  Ben Pfaff  <blp@gnu.org>
56023
56024         Add isnanf module.
56025         * lib/isnanf.m4: New file.
56026         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56027         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56028         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56029         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56030         * modules/isnanf: New file.
56031         * modules/isnanf-tests: New file.
56032         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56033         files.
56034         * tests/test-isnanf-nolibm.c: factored most of its contents into
56035         new file tests/test-isnanf.h.
56036         * tests/test-isnanf.h: New file.
56037         * tests/test-isnanf.c: New file.
56038         * MODULES.html.sh: Mention new module.
56039         * doc/glibc-functions/isnanf.texi: Mention new module.
56040
56041 2008-07-10  Ben Pfaff  <blp@gnu.org>
56042
56043         Add isnand module.
56044         * lib/isnand.h: New file.
56045         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56046         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56047         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56048         functionality also.
56049         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56050         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56051         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56052         * modules/isnand: New file.
56053         * modules/isnand-tests: New file.
56054         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56055         files.
56056         * tests/test-isnand-nolibm.c: factored most of its contents into
56057         new file tests/test-isnand.h.
56058         * tests/test-isnand.h: New file.
56059         * tests/test-isnand.c: New file.
56060         * MODULES.html.sh: Mention new module.
56061
56062 2008-07-10  Ben Pfaff  <blp@gnu.org>
56063
56064         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56065         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56066         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56067         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56068         * modules/isnanf-nolibm: Update references to renamed files.
56069         * modules/isnand-nolibm: Likewise.
56070         * modules/isnanf-nolibm-tests: Likewise.
56071         * modules/isnand-nolibm-tests: Likewise.
56072         * lib/frexp.c: Likewise.
56073         * lib/isfinite.c: Likewise.
56074         * lib/signbitd.c: Likewise.
56075         * lib/signbitf.c: Likewise.
56076         * lib/vasnprintf.c: Likewise.
56077         * tests/test-ceilf1.c: Likewise.
56078         * tests/test-ceilf2.c: Likewise.
56079         * tests/test-floorf1.c: Likewise.
56080         * tests/test-floorf2.c: Likewise.
56081         * tests/test-frexp.c: Likewise.
56082         * tests/test-round1.c: Likewise.
56083         * tests/test-round2.c: Likewise.
56084         * tests/test-roundf1.c: Likewise.
56085         * tests/test-strtod.c: Likewise.
56086         * tests/test-trunc1.c: Likewise.
56087         * tests/test-trunc2.c: Likewise.
56088         * tests/test-truncf1.c: Likewise.
56089         * tests/test-truncf2.c: Likewise.
56090         * NEWS: Mention the renamed header files.
56091
56092 2008-07-11  Jim Meyering  <meyering@redhat.com>
56093
56094         vc-list-files: make the last-resort awk code more portable
56095         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56096         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56097         does not support it.
56098
56099 2008-07-10  Eric Blake  <ebb9@byu.net>
56100
56101         Work with tar's bootstrap.
56102         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56103         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56104         an m4 comment.
56105
56106 2008-07-09  Jim Meyering  <meyering@redhat.com>
56107
56108         posix-shell.m4: fix typo that made this test malfunction
56109         * m4/posix-shell.m4: Remove capitalization in variable name.
56110
56111 2008-07-08  Bruno Haible  <bruno@clisp.org>
56112
56113         * m4/onceonly.m4: Update comments.
56114         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56115
56116 2008-07-04  Jim Meyering  <meyering@redhat.com>
56117
56118         * users.txt: Add vc-dwim.
56119         (bison, coreutils): Use the gitweb URL.
56120
56121 2008-07-03  Jim Meyering  <meyering@redhat.com>
56122
56123         * users.txt: Add libffcall.  From Sam Steingold.
56124
56125 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56126
56127         getdate.y: do not ignore TZ with relative day, month or year offset
56128         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56129         relative-date-handling, since otherwise, the latter would clobber the
56130         sole output (an updated Start value) of the tz-handling block.
56131         * tests/test-getdate.c: Tests for the fix
56132
56133 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56134
56135         Recognize 'foo_LIBRARIES += libgnu.a'.
56136         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56137         makefile snippet has already specified an installation location,
56138         also using '+='.
56139
56140 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56141
56142         getdate.y: factor out common actions
56143         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56144         Use them in place of open-coded actions.
56145
56146 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56147
56148         Add self-test for getdate module.
56149         * modules/getdate-tests: New file.
56150         * tests/test-getdate.c: New file.
56151
56152 2008-06-29  Bruno Haible  <bruno@clisp.org>
56153
56154         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56155         .gitignore.
56156         Reported by Sylvain Beucler <beuc@beuc.net>.
56157
56158 2008-06-29  Bruno Haible  <bruno@clisp.org>
56159
56160         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56161         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56162
56163 2008-06-29  Bruno Haible  <bruno@clisp.org>
56164
56165         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56166         EXTRA_DIST.
56167         Reported by Sylvain Beucler <beuc@beuc.net>.
56168
56169 2008-06-26  Jim Meyering  <meyering@redhat.com>
56170
56171         make several modules depend on the "open" module
56172         This provides slightly increased consistency when opening-for-write
56173         the name of a non-directory spelled with a trailing slash.
56174         * modules/chdir-safer: Likewise.
56175         * modules/chown: Likewise.
56176         * modules/clean-temp: Likewise.
56177         * modules/copy-file: Likewise.
56178         * modules/fchdir: Likewise.
56179         * modules/fcntl-safer: Likewise.
56180         * modules/pipe: Likewise.
56181         * modules/utime: Likewise.
56182         Prompted by Eric Blake and Bruno Haible.
56183
56184 2008-06-24  Andreas Schwab  <schwab@suse.de>
56185
56186         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56187         literals can be used as initializers for global variables.
56188
56189 2008-06-23  Eric Blake  <ebb9@byu.net>
56190
56191         Make gnulib-cache.m4 easier to diff.
56192         * gnulib-tool (func_import): Allow newlines when reading cached
56193         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56194
56195 2008-06-23  Bruno Haible  <bruno@clisp.org>
56196
56197         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56198         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56199         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56200         m4/signalblocking.m4.
56201         (gl_PREREQ_SIGACTION): Don't invoke it.
56202         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56203         gl_PREREQ_SIG_HANDLER_H.
56204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56205         Don't check for sigaction here.
56206
56207 2008-06-23  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56210         (install_handlers): Don't set the SA_RESETHAND flag.
56211
56212 2008-06-23  Bruno Haible  <bruno@clisp.org>
56213
56214         * m4/sigaction.m4: Comment fixes.
56215         * lib/signal.in.h: Likewise.
56216
56217 2008-06-23  Eric Blake  <ebb9@byu.net>
56218
56219         Fix typo.
56220         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56221
56222         Avoid SA_ namespace.
56223         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56224         Reported by Ralf Wildenhues.
56225
56226         Avoid test failure due to SA_RESTORER.
56227         * tests/test-sigaction.c (SA_MASK): New macro.
56228         (main): Avoid failing due to extension flags being set.
56229         Reported by Jim Meyering.
56230
56231         Revert use of sig-handler.h in sigprocmask.c.
56232         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56233         it requires the existence of struct sigaction.
56234         * lib/sigprocmask.c (handler_t): Restore typedef.
56235         (rpl_signal, old_handlers): Use local type.
56236
56237 2008-06-22  Bruno Haible  <bruno@clisp.org>
56238
56239         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56240         conditionally.
56241         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56242
56243 2008-06-22  Bruno Haible  <bruno@clisp.org>
56244
56245         * doc/posix-functions/siginterrupt.texi: Move note.
56246
56247         * lib/signal.in.h (SA_RESTART): New macro.
56248         * lib/sigaction.c: Update comment.
56249
56250         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56251
56252         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56253         (gl_PREREQ_SIGPROCMASK): Invoke it.
56254         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56255
56256         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56257
56258         * lib/sigprocmask.c: Update a comment.
56259
56260 2008-06-21  Eric Blake  <ebb9@byu.net>
56261
56262         Use sigaction module rather than signal().
56263         * modules/c-stack (Depends-on): Add sigaction.
56264         * modules/fatal-signal (Depends-on): Likewise.
56265         * modules/nanosleep (Depends-on): Likewise.
56266         * modules/sigprocmask (Files): Add sig-handler.h.
56267         * modules/sigaction (Files): Likewise.
56268         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56269         Eggert.
56270         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56271         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56272         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56273         (init_fatal_signals): Likewise.
56274         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56275         (siginterrupt): Delete fallback.
56276         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56277         instead.
56278         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56279         siginterrupt.
56280
56281         New module sigaction, for mingw.
56282         * modules/sigaction: New module...
56283         * modules/sigaction-tests: ...and its test.
56284         * m4/sigaction.m4: New file.
56285         * lib/sigaction.c: Likewise.
56286         * tests/test-sigaction.c: Likewise.
56287         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56288         * modules/signal (Makefile.am): Likewise.
56289         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56290         needed.
56291         * doc/posix-headers/signal.texi (signal.h): Mention provided
56292         types.
56293         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56294         that sigaction is preferable.
56295         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56296         module.
56297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56298         sigaction.
56299
56300         Improve robustness of sigprocmask by overriding signal.
56301         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56302         is in use.
56303         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56304         (SIGKILL, SIGSTOP): Provide fallbacks.
56305         (rpl_signal): Implement.
56306         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56307         signal can be called inside handlers.
56308
56309         Fix nanosleep module on mingw.
56310         * modules/nanosleep (Depends-on): Add sys_select.
56311         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56312
56313         Fix licensing of sigprocmask.
56314         * modules/raise (License): Relicense as LGPL.
56315
56316 2008-06-21  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56319         result if it contains question marks.
56320         Reported by Michael Geng <linux@michaelgeng.de>.
56321
56322 2008-06-19  Bruno Haible  <bruno@clisp.org>
56323
56324         Fix CVS-ism.
56325         * doc/gnulib.texi: Include updated-stamp.texi.
56326         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56327         (updated-stamp.texi): New rule.
56328         (gnulib.info): Depend on it.
56329         * doc/.gitignore: Add updated-stamp.texi.
56330         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56331
56332 2008-06-19  Bruno Haible  <bruno@clisp.org>
56333
56334         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56335         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56336
56337 2008-06-19  Eric Blake  <ebb9@byu.net>
56338
56339         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56340         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56341         Reported by Stepan Kasal.
56342
56343 2008-06-18  Bruno Haible  <bruno@clisp.org>
56344
56345         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56346         Reported by Eric Blake.
56347
56348 2008-06-18  Eric Blake  <ebb9@byu.net>
56349
56350         Work around cygwin 1.5.25 strsignal bug.
56351         * tests/test-strsignal.c: Allow for const char *.
56352         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56353
56354 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56355
56356         * users.txt: Update URL to article and add author/date
56357         information.
56358
56359 2008-06-17  Bruno Haible  <bruno@clisp.org>
56360
56361         New macro gl_DISABLE_THREADS.
56362         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56363         if the user did not pass --enable-threads or --disable-threads option.
56364         (gl_DISABLE_THREADS): New macro.
56365         Reported by Eric Blake <ebb9@byu.net>.
56366
56367 2008-06-17  Bruno Haible  <bruno@clisp.org>
56368
56369         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56370         when the macro ignores it.
56371         Based on a patch by Eric Blake <ebb9@byu.net>.
56372
56373 2008-06-17  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/tls (License): Change to LGPLv2+.
56376         Reported by Eric Blake.
56377
56378 2008-06-17  Eric Blake  <ebb9@byu.net>
56379
56380         Simplify c-stack prerequisites.
56381         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56383         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56384         check.
56385         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56386         <sys/resource.h>.
56387
56388         Move c-stack test into testsuite.
56389         * modules/c-stack-tests: New file.
56390         * lib/c-stack.c [DEBUG]: Move test program...
56391         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56392         fail test if sigaltstack is lacking.
56393         * tests/test-c-stack.sh: New driver file.
56394
56395 2008-06-16  Eric Blake  <ebb9@byu.net>
56396
56397         Use raise module consistently.
56398         * modules/fatal-signal (Depends-on): Add raise.
56399         * modules/sigprocmask (Depends-on): Likewise.
56400         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56401         * lib/sigprocmask.c (sigprocmask): Likewise.
56402         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56403         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56404
56405         Fix compliance bug in sigpending.
56406         * lib/sigprocmask.c (sigpending): Return pending array via
56407         parameter, not return value.
56408
56409 2008-06-14  Eric Blake  <ebb9@byu.net>
56410
56411         Improve obstack-printf test code.
56412         * tests/test-obstack-printf.c (test_function): Fix comment, and
56413         simplify usage of obstack_* in macros.  Add a test for coverage.
56414         Reported by Bruno Haible.
56415
56416 2008-06-14  Bruno Haible  <bruno@clisp.org>
56417
56418         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56419         array size as a constant, not as a const variable.
56420         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56421         AC_USE_SYSTEM_EXTENSIONS.
56422         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56423         Test whether the obstack_printf function actually exists.
56424         * modules/obstack-printf (Depends-on): Add extensions.
56425         (Include): Remove obstack.h.
56426         * modules/obstack-printf-posix (Depends-on): Add extensions.
56427         (Include): Remove obstack.h.
56428
56429 2008-06-13  Eric Blake  <ebb9@byu.net>
56430
56431         Add obstack-printf and obstack-printf-posix modules.
56432         * modules/obstack-printf: New file.
56433         * modules/obstack-printf-posix: Likewise.
56434         * MODULES.html.sh (Misc): Mention them.
56435         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56436         Likewise.
56437         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56438         Likewise.
56439         * modules/stdio (Makefile.am): Accomodate new modules.
56440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56441         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56442         Declare.
56443         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56444         functions.
56445         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56446         (gl_REPLACE_OBSTACK_PRINTF): New macros
56447         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56448         * tests/test-obstack-printf.c: New file.
56449         * modules/obstack-printf-tests: Likewise.
56450         * modules/obstack-printf-posix-tests: Likewise.
56451
56452 2008-06-11  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56455         * lib/open.c: Include errno.h.
56456         (open): Fail when attempting to write to a file that has a trailing
56457         slash.
56458         * tests/test-open.c (main): Test against trailing slash bug.
56459         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56460
56461 2008-06-10  Bruno Haible  <bruno@clisp.org>
56462
56463         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56464         for $? to work inside the trap command, with various /bin/sh-s.
56465         * tests/test-vc-list-files-cvs.sh: Likewise.
56466
56467 2008-06-10  Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/acl-internal.h: Don't include gettext.h here.
56470         * lib/set-mode-acl.c: Include gettext.h here.
56471         * lib/copy-acl.c: Likewise.
56472
56473 2008-06-10  Bruno Haible  <bruno@clisp.org>
56474
56475         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56476         * lib/wait-process.c (wait_subprocess): Likewise.
56477         * lib/execute.h (execute): Add termsigp argument.
56478         * lib/execute.c (execute): Likewise.
56479         * lib/csharpcomp.c (compile_csharp_using_pnet,
56480         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56481         * lib/csharpexec.c (execute_csharp_using_pnet,
56482         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56483         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56484         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56485         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56486         is_jikes_present): Update.
56487         * lib/javaexec.c (execute_java_class): Update.
56488         * lib/javaversion.c (execute_and_read_line): Update.
56489         * NEWS: Document the changes.
56490         Reported by Eric Blake.
56491
56492 2008-06-10  Eric Blake  <ebb9@byu.net>
56493
56494         Add missing include.
56495         * tests/test-strstr.c (includes): Add <signal.h>.
56496         * tests/test-strcasestr.c (includes): Likewise.
56497         * tests/test-memmem.c (includes): Likewise.
56498
56499 2008-06-10  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/wait-process.c (wait_subprocess): Add an assertion.
56502
56503 2008-06-10  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56506
56507 2008-06-10  Bruno Haible  <bruno@clisp.org>
56508
56509         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56510         using alarm().
56511         * tests/test-strcasestr.c (main): Likewise.
56512         * tests/test-strstr.c (main): Likewise.
56513
56514 2008-06-09  Bruno Haible  <bruno@clisp.org>
56515
56516         Work around the Solaris 10 ACE ACLs ABI change.
56517         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56518         declare if ACL_NO_TRIVIAL is present.
56519         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56520         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56521         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56522         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56523         define if ACL_NO_TRIVIAL is present.
56524         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56525         and use the current ABI.
56526         (file_has_acl): Use same #if condition as elsewhere.
56527         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56528         in use, and use the current ABI.
56529         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56530         Reported by Jim Meyering.
56531
56532 2008-06-09  Eric Blake  <ebb9@byu.net>
56533
56534         Work around environments that (stupidly) ignore SIGALRM.
56535         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56536         before using alarm().
56537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56539         Reported by Ian Beckwith <ianb@erislabs.net>.
56540
56541         Produce autobuild blurb earlier in log.
56542         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56543
56544 2008-06-09  Jim Meyering  <meyering@redhat.com>
56545         and OndÅ™ej Vašík  <ovasik@redhat.com>
56546
56547         utimens.c: correct kernel bug work-around
56548         OndÅ™ej Vašík found that the invalid return value of 280 indicates
56549         failure, not success, and the kernel bug we're trying to work
56550         around affects not just the utimensat call, but also the fallback
56551         futimens call.
56552         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56553         not success.
56554         [HAVE_FUTIMENS]: Use the same work-around, here.
56555
56556 2008-06-09  Jim Meyering  <meyering@redhat.com>
56557
56558         add more guards around definition of ACE_-related code
56559         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56560         ALLOW and ACE_OWNER are also defined.
56561
56562 2008-06-08  Bruno Haible  <bruno@clisp.org>
56563
56564         * lib/acl-internal.h: Add me as co-author.
56565         * lib/file-has-acl.c: Likewise.
56566         * lib/set-mode-acl.c: Likewise.
56567         * lib/copy-acl.c: Likewise.
56568
56569 2008-06-08  Bruno Haible  <bruno@clisp.org>
56570
56571         Add support for AIX ACLs.
56572         * lib/acl-internal.h (acl_nontrivial): New declaration.
56573         * lib/file-has-acl.c (acl_nontrivial): New function.
56574         (file_has_acl): Add implementation using AIX 4 ACL API.
56575         * lib/set-mode-acl.c (qset_acl): Likewise.
56576         * lib/copy-acl.c (qcopy_acl): Likewise.
56577
56578 2008-06-08  Bruno Haible  <bruno@clisp.org>
56579
56580         Add support for HP-UX ACLs.
56581         * lib/acl-internal.h (acl_nontrivial): New declaration.
56582         * lib/file-has-acl.c (acl_nontrivial): New function.
56583         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56584         * lib/set-mode-acl.c (qset_acl): Likewise.
56585         * lib/copy-acl.c (qcopy_acl): Likewise.
56586
56587 2008-06-08  Bruno Haible  <bruno@clisp.org>
56588
56589         Add support for Cygwin ACLs.
56590         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56591         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56592         the chmod_or_fchmod call.
56593         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56594
56595 2008-06-08  Bruno Haible  <bruno@clisp.org>
56596
56597         Fix bug with setuid modes in Solaris 10+ code.
56598         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56599         succeeded, when the mode contains some special bits.
56600
56601 2008-06-08  Bruno Haible  <bruno@clisp.org>
56602
56603         Add support for Solaris 7..10 ACLs.
56604         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56605         declarations.
56606         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56607         functions.
56608         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56609         * lib/set-mode-acl.c (qset_acl): Likewise.
56610         * lib/copy-acl.c (qcopy_acl): Likewise.
56611
56612 2008-06-08  Bruno Haible  <bruno@clisp.org>
56613
56614         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56615         declaration.
56616         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56617         (acl_access_nontrivial): Remove MacOS X case.
56618         (file_has_acl): Use acl_extended_nontrivial.
56619         * lib/copy-acl.c (qcopy_acl): Likewise.
56620
56621 2008-06-08  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56624
56625 2008-06-08  Jim Meyering  <meyering@redhat.com>
56626
56627         * modules/acl (Maintainer): Add Bruno Haible.
56628
56629 2008-06-07  Bruno Haible  <bruno@clisp.org>
56630
56631         Improve support for Tru64 ACLs.
56632         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56633         ACL on OSF/1.
56634
56635 2008-06-07  Bruno Haible  <bruno@clisp.org>
56636
56637         Add support for MacOS X ACLs.
56638         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56639         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56640         * lib/set-mode-acl.c (qset_acl): Likewise.
56641         * lib/copy-acl.c (qcopy_acl): Likewise.
56642
56643 2008-06-07  Bruno Haible  <bruno@clisp.org>
56644
56645         Fix memory leak introduced on 2008-05-22.
56646         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56647         use.
56648
56649 2008-06-07  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56652         to construct an empty ACL.
56653
56654 2008-06-07  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56657         precisely.
56658         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56659
56660 2008-06-07  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56663         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56664
56665 2008-06-07  Bruno Haible  <bruno@clisp.org>
56666
56667         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56668         regardless of POSIX.
56669         * doc/posix-functions/_longjmp.texi: Likewise.
56670         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56671         SystemV platform in this case.
56672
56673 2008-06-06  Eric Blake  <ebb9@byu.net>
56674
56675         Document abort() bugs.
56676         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56677
56678         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56679         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56680         sigsetjmp.
56681         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56682         siglongjmp, but only as a macro.
56683         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56684         is obsolete.
56685         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56686
56687         Tweak documentation to cover cygwin argz bugs.
56688         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56689         argz bug fix; no code change needed since no cygwin releases
56690         occurred between the last fix and the bug being tested.
56691         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56692         module and recently fixed cygwin bugs.
56693         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56694         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56695         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56696         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56697         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56698         Likewise.
56699         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56700         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56701         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56702         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56703         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56704         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56705         Likewise.
56706
56707         Avoid gcc warning on cygwin.
56708         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56709         !ACL_NO_TRIVIAL]: Avoid unused variable.
56710
56711 2008-06-05  Eric Blake  <ebb9@byu.net>
56712
56713         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56714         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56715         git-version-gen fails to come up with a version.
56716         Reported by Simon Josefsson.
56717
56718 2008-06-05  Jim Meyering  <meyering@redhat.com>
56719             Paul Eggert  <eggert@cs.ucla.edu>
56720
56721         utimens.c: work around a probable Linux kernel bug
56722         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56723         appears to be a kernel bug that causes utimensat to return 280
56724         instead of 0, indicating success.
56725
56726 2008-06-04  Bruno Haible  <bruno@clisp.org>
56727
56728         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56729         2008-06-01 commit.
56730
56731 2008-06-04  Bruno Haible  <bruno@clisp.org>
56732
56733         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56734         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56735         (file_has_acl): Use it. Save errno afterwards.
56736         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56737
56738 2008-06-03  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56741         draft code. Simplify #ifs.
56742         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56743         Put Solaris code after POSIX-draft code. Fix comments regarding
56744         Solaris 10, HP-UX. Mention Cygwin.
56745         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56746
56747 2008-06-03  Eric Blake  <ebb9@byu.net>
56748
56749         Provide fallback for older kernels.
56750         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56751         Provide runtime fallback if kernel lacks support.
56752         Reported by Mike Frysinger.
56753
56754 2008-06-02  Bruno Haible  <bruno@clisp.org>
56755
56756         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56757         it exists.
56758
56759 2008-06-02  Bruno Haible  <bruno@clisp.org>
56760
56761         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56762         * lib/copy-acl.c (qcopy_acl): Update comment.
56763
56764 2008-06-02  Bruno Haible  <bruno@clisp.org>
56765
56766         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56767         like ACL APIs.
56768
56769 2008-06-02  Bruno Haible  <bruno@clisp.org>
56770
56771         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56772         * tests/test-set-mode-acl.sh: Likewise.
56773         * tests/test-copy-acl.sh: Likewise.
56774         * tests/test-copy-file.sh: Likewise.
56775
56776 2008-06-02  Bruno Haible  <bruno@clisp.org>
56777
56778         * tests/test-file-has-acl.sh: Remove unused code.
56779
56780 2008-06-01  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56783         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56784         messages.
56785         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56786
56787 2008-06-01  Bruno Haible  <bruno@clisp.org>
56788
56789         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56790         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56791         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56792         APIs.
56793         * modules/acl-tests (configure.ac): Remove tests now contained in
56794         m4/acl.m4.
56795
56796 2008-06-02  Jim Meyering  <meyering@redhat.com>
56797
56798         announce-gen: use a better key-server host name
56799         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56800         it may be more consistently reliable.  Suggested by Werner Koch
56801         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56802
56803 2008-06-01  Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56806         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56807
56808 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56809
56810         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56811
56812 2008-06-01  Bruno Haible  <bruno@clisp.org>
56813
56814         New ACL tests.
56815         * tests/test-file-has-acl.sh: New file.
56816         * tests/test-file-has-acl.c: New file.
56817         * tests/test-set-mode-acl.sh: New file.
56818         * tests/test-set-mode-acl.c: New file.
56819         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56820         * tests/test-copy-acl.c: New file.
56821         * modules/acl-tests: New file, based on modules/copy-file-tests.
56822         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56823         (Depends-on): Add acl-tests.
56824         (configure.ac): Remove checks.
56825         (Makefile.am): Don't create test-sameacls program here any more.
56826
56827 2008-06-01  Bruno Haible  <bruno@clisp.org>
56828
56829         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56830         * tests/test-sameacls.c: Include progname.h.
56831         (main): Invoke set_program_name. Portability fixes for MacOS X,
56832         Solaris, HP-UX.
56833
56834 2008-06-01  Bruno Haible  <bruno@clisp.org>
56835
56836         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56837         function.
56838         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56839
56840 2008-06-01  Bruno Haible  <bruno@clisp.org>
56841
56842         * modules/rpmatch (Depends-on): Add strdup.
56843
56844 2008-06-01  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/pipe.c: Include unistd-safer.h.
56847         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56848         * modules/pipe (Depends-on): Add unistd-safer.
56849
56850 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56851
56852         * modules/autobuild (configure.ac): Call AB_INIT.
56853
56854 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56855
56856         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56857         Suggested by Bruno Haible <bruno@clisp.org>.
56858
56859 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56860
56861         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56862         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56863         <bruno@clisp.org>.
56864
56865 2008-05-29  Eric Blake  <ebb9@byu.net>
56866
56867         Prefer new POSIX 200x interfaces over futimesat.
56868         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56869         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56870         when available.
56871         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56872
56873 2008-05-28  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/stpcpy (License): Change to LGPLv2+.
56876         Requested by David Lutterkort <dlutter@redhat.com>.
56877
56878 2008-05-27  Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56881         current mingw.
56882         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56883
56884 2008-05-27  Bruno Haible  <bruno@clisp.org>
56885
56886         * modules/iconv_open (Link): New section, from module 'iconv'.
56887         * modules/striconv (Link): Likewise.
56888         * modules/striconveh (Link): Likewise.
56889         * modules/xstriconv (Link): Likewise.
56890         * modules/unicodeio (Link): Likewise.
56891         * modules/propername (Link): Likewise.
56892         Reported by Jim Meyering.
56893
56894 2008-05-26  Jim Meyering  <meyering@redhat.com>
56895
56896         sha256: do not artificially restrict buffer length to be < 2^32
56897         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56898         uint32_t to size_t.
56899         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56900         to match.
56901
56902         avoid unaligned access errors, e.g., on sparc
56903         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56904         direct access through a possibly-unaligned uint64* pointer.
56905         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56906         direct access through a possibly-unaligned uint32* pointer.
56907         Prompted by this patch from Tom "spot" Callaway:
56908         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56909
56910         sha512.c: fix typo in comment
56911         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56912
56913 2008-05-25  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56916         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56917         (Makefile.am): Update lib_SOURCES.
56918
56919 2008-05-25  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56922
56923 2008-05-25  Jim Meyering  <meyering@redhat.com>
56924
56925         useless-if-before-free: freed expr may have white-space differences
56926         * build-aux/useless-if-before-free: Recognize cases in which the
56927         freed expression differs from the tested one in embedded white
56928         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56929         $1 was used, so we can't make any regexp shy.  Improved tests now
56930         detect this.
56931
56932         useless-if-before-free: accept white space in the expression.
56933         * build-aux/useless-if-before-free: For now, any white space
56934         in the expression must be identical in the free argument.
56935
56936         useless-if-before-free: efficiency tweak
56937         * build-aux/useless-if-before-free: Make the expression-matching
56938         regexp "shy".
56939         Make the *outer* regexp shy, not the expr-matching one.
56940
56941         update code-in-comment to accept cast of free arg
56942         * build-aux/useless-if-before-free: Update regexp.
56943
56944 2008-05-25  Bruno Haible  <bruno@clisp.org>
56945
56946         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56947         * modules/copy-file-tests (Files, Makefile.am): Update.
56948         * tests/test-copy-file.c (func_test_copy): Update.
56949
56950 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56951
56952         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56953
56954 2008-05-23  Bruno Haible  <bruno@clisp.org>
56955
56956         Improve support for ACLs on OSF/1.
56957         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56958         Remove fallback for unknown flavors of ACLs.
56959
56960 2008-05-22  Bruno Haible  <bruno@clisp.org>
56961
56962         Add support for ACLs on OSF/1.
56963         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56964         replacements.
56965         (acl_free_text): New macro fallback.
56966         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56967         acl_free.
56968         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56969         acl_free_text function. Require AC_C_INLINE.
56970
56971 2008-05-22  Bruno Haible  <bruno@clisp.org>
56972
56973         Make copy_acl work on MacOS X 10.5.
56974         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56975         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56976         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56977         If MODE_INSIDE_ACL, don't assume that every system has the same text
56978         representation for ACLs as FreeBSD.
56979         * lib/copy-acl.c (copy_acl): Add support for platforms with
56980         !MODE_INSIDE_ACL.
56981         * lib/file-has-acl.c (file_has_acl): Likewise.
56982         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56983         FreeBSD, MacOS X, or IRIX, respectively.
56984
56985 2008-05-22  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/acl.h: Don't include <sys/acl.h>.
56988         (GETACLCNT): Move fallback to lib/acl-internal.h.
56989         * lib/acl-internal.h: Include <sys/acl.h> here.
56990         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56991
56992 2008-05-22  Bruno Haible  <bruno@clisp.org>
56993
56994         Split off copy_acl function to separate file.
56995         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56996         * lib/acl.c (copy_acl): Moved function to separate file.
56997         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56998         * modules/acl (Files): Add lib/copy-acl.c.
56999         (Makefiles.am): Augment lib_SOURCES.
57000
57001 2008-05-22  Bruno Haible  <bruno@clisp.org>
57002
57003         * modules/copy-file-tests: New file.
57004         * tests/test-copy-file.sh: New file.
57005         * tests/test-copy-file.c: New file.
57006         * tests/test-copy-file-sameacls.c: New file.
57007
57008 2008-05-22  Eric Blake  <ebb9@byu.net>
57009
57010         Avoid gcc warning.
57011         * tests/test-memcmp.c (main): Pass NULL indirectly.
57012
57013 2008-05-21  Bruno Haible  <bruno@clisp.org>
57014
57015         Add reference doc about ACLs.
57016         * doc/acl-resources.txt: New file.
57017         * doc/acl-cygwin.txt: New file.
57018
57019 2008-05-21  Bruno Haible  <bruno@clisp.org>
57020
57021         Avoid one more warning from gcc.
57022         * lib/vasnprintf.c (IF_LINT): Update comments.
57023         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57024
57025 2008-05-21  Jim Meyering  <meyering@redhat.com>
57026
57027         avoid a warning from gcc
57028         * lib/vasnprintf.c (IF_LINT): Define.
57029         (scale10_round_decimal_long_double):
57030         Use it to avoid a "may be used uninitialized" warning.
57031         (scale10_round_decimal_double): Likewise.
57032
57033 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57034
57035         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57036         declared.
57037
57038 2008-05-20  Bruno Haible  <bruno@clisp.org>
57039
57040         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57041         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57042
57043 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57044
57045         * modules/memcmp-tests: New file.
57046         * tests/test-memcmp.c: New file.
57047
57048 2008-05-19  Bruno Haible  <bruno@clisp.org>
57049
57050         * modules/propername (Notice, configure.ac): Put quoted "..." into
57051         --keyword option.
57052         * lib/propername.h: Update comments accordingly.
57053         Reported by Eric Blake.
57054
57055 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57056
57057         * modules/getpass-gnu (Depends-on): Add fseeko.
57058
57059 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57060
57061         * modules/base64-tests: New file.
57062
57063 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57064
57065         * lib/base64.c (base64_decode_ctx): If a decode context structure
57066         was passed in use it to ignore newlines.  If a context structure
57067         was _not_ passed in, continue to treat newlines as garbage (this
57068         is the historical behavior).  Formerly base64_decode.
57069         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57070         takes a decode context structure.
57071         * lib/base64.h (base64_decode): Macro for four-argument calls.
57072         (base64_decode_alloc): Likewise.
57073         * lib/base64.c (base64_decode_ctx): If a decode context structure
57074         was passed in use it to ignore newlines.  If a context structure
57075         was _not_ passed in, continue to treat newlines as garbage (this
57076         is the historical behavior).  Formerly base64_decode.
57077         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57078         takes a decode context structure.
57079         * lib/base64.h (base64_decode): Macro for four-argument calls.
57080         (base64_decode_alloc): Likewise.
57081
57082 2008-05-19  Jim Meyering  <meyering@redhat.com>
57083
57084         avoid a warning from gcc
57085         * lib/trim.c (IF_LINT): Define.
57086         (trim2): Use it to avoid a "may be used uninitialized" warning.
57087
57088         Fix doc typo.
57089         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57090
57091 2008-05-19  Bruno Haible  <bruno@clisp.org>
57092
57093         * doc/glibc-functions/getpass.texi: Document limits of other
57094         implementations.
57095
57096 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57097             Bruno Haible <bruno@clisp.org>
57098
57099         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57100
57101 2008-05-18  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/propername: New file, from GNU gettext.
57104         * lib/propername.h: New file, from GNU gettext.
57105         * lib/propername.c: New file, from GNU gettext.
57106         * MODULES.html.sh (Internationalization functions): Add propername.
57107
57108 2008-05-16  Jim Meyering  <meyering@redhat.com>
57109             Bruno Haible  <bruno@clisp.org>
57110
57111         Avoid some warnings from "gcc -Wshadow".
57112         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57113
57114 2008-05-15  Eric Blake  <ebb9@byu.net>
57115
57116         Extend previous patch to cygwin 1.7.0.
57117         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57118         fast implementation in cygwin >= 1.7.0.
57119         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57121
57122 2008-05-15  Bruno Haible  <bruno@clisp.org>
57123
57124         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57125         implementation in glibc >= 2.9.
57126         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57128
57129 2008-05-15  Bruno Haible  <bruno@clisp.org>
57130
57131         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57132         (Unicode string functions): Add unilbrk/*.
57133         Reported by Karl Berry.
57134
57135 2008-05-15  Eric Blake  <ebb9@byu.net>
57136
57137         Fix violation of <stdbool.h> replacement in regex.
57138         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57139         * lib/regexec.c (re_search_internal): Likewise.
57140         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57141
57142 2008-05-15  Jim Meyering  <meyering@redhat.com>
57143
57144         avoid distracting test output when git or cvs is not found
57145         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57146         * tests/test-vc-list-files-git.sh: Likewise.
57147
57148 2008-05-15  Eric Blake  <ebb9@byu.net>
57149
57150         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57151         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57152         glibc version.
57153         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57154         * doc/posix-functions/strstr.texi (strstr): Likewise.
57155         * lib/str-two-way.h (MAX): Sychronize with glibc.
57156
57157 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57158
57159         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57160         opr.ctx_type.
57161         (calc_first): Initialize constraint field.
57162         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57163         Fix grammar.
57164         (duplicate_node): Merge constraint field for all node types.
57165         (calc_eclosure_iter): Look at constraint field for all node types.
57166         * lib/regex_internal.c (create_cd_newstate): Don't look at
57167         opr.ctx_type.
57168
57169 2008-05-14  Bruno Haible  <bruno@clisp.org>
57170
57171         Help GCC to do better code generation.
57172         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57173         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57174         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57175         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57176         Declare with attribute 'malloc' if supported.
57177
57178 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57179
57180         use "echo STR|wc -c" rather than unportable "expr length STR"
57181         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57182         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57183
57184 2008-05-14  Jim Meyering  <meyering@redhat.com>
57185
57186         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57187         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57188         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57189         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57190         via Collin Lasse.
57191
57192 2008-05-14  Eric Blake  <ebb9@byu.net>
57193
57194         Avoid quadratic growth in gl_LIBSOURCES.
57195         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57196         Suggested by Bruno Haible.
57197
57198         Test xmemdup0.
57199         * modules/xmemdup0-tests: New file.
57200         * tests/test-xmemdup0.c: Likewise.
57201
57202 2008-05-13  Eric Blake  <ebb9@byu.net>
57203
57204         Split xmemdup0 into its own module.
57205         * modules/xmemdup0: New file.
57206         * lib/xmemdup0.h: Likewise.
57207         * lib/xmemdup0.c: Likewise.
57208         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57209         * lib/xalloc.h (xmemdup0): Remove.
57210         * lib/xmalloc.c (xmemdup0): Likewise.
57211
57212 2008-05-13  Eric Blake  <ebb9@byu.net>
57213             Bruno Haible  <bruno@clisp.org>
57214
57215         Reduce number of forks required during autoconf.
57216         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57217         and gl_LIBSOURCES_DIR.
57218         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57219         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57220         m4_syscmd per file.
57221         <m4_foreach_w>: Move...
57222         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57223
57224 2008-05-13  Eric Blake  <ebb9@byu.net>
57225
57226         * gnulib-tool: Fix various comment typos.
57227
57228 2008-05-12  Bruno Haible  <bruno@clisp.org>
57229
57230         Tailor the linebreaking algorithm.
57231         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57232
57233 2008-05-12  Bruno Haible  <bruno@clisp.org>
57234
57235         Update to Unicode 5.0.0.
57236         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57237         LBP_JV, LBP_JT. Redistribute values.
57238         (unilbrk_table): Change size.
57239         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57240         Unicode TR#14 rev. 22.
57241         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57242         LBP_JV, LBP_JT. Redistribute values.
57243         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57244         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57245         Update.
57246         * lib/unilbrk/lbrkprop1.h: Regenerated.
57247         * lib/unilbrk/lbrkprop2.h: Regenerated.
57248         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57249         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57250         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57251         Likewise.
57252         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57253         Likewise.
57254         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57255         result.
57256         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57257         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57258         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57259         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57260         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57261         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57262
57263 2008-05-11  Bruno Haible  <bruno@clisp.org>
57264
57265         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57266
57267 2008-05-11  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57270         * modules/unilbrk/gen-lbrk: New file.
57271
57272 2008-05-11  Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57275         * m4/sha512.m4 (gl_SHA512): Likewise.
57276
57277 2008-05-11  Jim Meyering  <meyering@redhat.com>
57278
57279         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57280         * modules/crypto/sha256: New file.
57281         * modules/crypto/sha512: Likewise.
57282         * lib/sha256.c: Likewise.
57283         * lib/sha256.h: Likewise.
57284         * lib/sha512.c: Likewise.
57285         * lib/sha512.h: Likewise.
57286         * lib/u64.h: Likewise.
57287         * m4/sha256.m4: Likewise.
57288         * m4/sha512.m4: Likewise.
57289         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57290
57291 2008-05-10  Bruno Haible  <bruno@clisp.org>
57292
57293         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57294         (Input/Output <stdio.h>): Add xprintf.
57295         (Signal handling <signal.h>): Add strsignal.
57296         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57297         (Core language properties): Add func.
57298         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57299         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57300         strings.
57301         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57302         (Input/output): New section.
57303         (File system functions): Add openat-die, stat-macros.
57304         (Networking functions): Add sockets.
57305         (Unicode string functions): Add unictype/*.
57306         (Support for building libraries and executables): Add gperf.
57307         (Support for building documentation): Add agpl-3.0.
57308         (Misc): Add nocrash.
57309
57310 2008-05-10  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/unictype/gen-ctype: New file.
57313
57314 2008-05-10  Jim Meyering  <meyering@redhat.com>
57315
57316         Make chdir-safer.c more efficient on a system with no symlinks.
57317         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57318         also if ELOOP is zero.  Suggested by Bruno Haible.
57319
57320         Make chdir-safer.c slightly safer.
57321         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57322         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57323
57324         Avoid compile failure on systems without ELOOP (like mingw).
57325         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57326         Reported by Bruno Haible.
57327
57328 2008-05-10  Bruno Haible  <bruno@clisp.org>
57329
57330         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57331         (is_utf8_encoding): Use a case-insensitive comparison.
57332         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57333         streq.
57334
57335 2008-05-10  Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57338         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57339         * lib/unilbrk/ulc-common.h (iconv_string_length,
57340         iconv_string_keeping_offsets): Remove declarations.
57341         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57342         Don't include <iconv.h>, streq.h, xsize.h.
57343         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57344         conversion.
57345         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57346         <iconv.h>, streq.h, xsize.h.
57347         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57348         conversion.
57349         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57350         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57351         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57352         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57353
57354 2008-05-10  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57357         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57358
57359         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57360         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57361
57362         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57363         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57364
57365         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57366         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57367
57368         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57369         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57370
57371         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57372         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57373
57374         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57375         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57376
57377         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57378         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57379
57380 2008-05-10  Bruno Haible  <bruno@clisp.org>
57381
57382         Split up 'linebreak' module.
57383         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57384         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57385         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57386         modifications.
57387         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57388         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57389         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57390         lib/linebreak.c.
57391         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57392         lib/linebreak.c.
57393         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57394         lib/linebreak.c.
57395         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57396         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57397         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57398         lib/linebreak.c.
57399         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57400         lib/linebreak.c.
57401         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57402         lib/linebreak.c.
57403         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57404         lib/linebreak.c.
57405         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57406         lib/linebreak.c.
57407         * modules/unilbrk/base: New file.
57408         * modules/unilbrk/tables: New file.
57409         * modules/unilbrk/u8-possible-linebreaks: New file.
57410         * modules/unilbrk/u16-possible-linebreaks: New file.
57411         * modules/unilbrk/u32-possible-linebreaks: New file.
57412         * modules/unilbrk/ulc-common: New file.
57413         * modules/unilbrk/ulc-possible-linebreaks: New file.
57414         * modules/unilbrk/u8-width-linebreaks: New file.
57415         * modules/unilbrk/u16-width-linebreaks: New file.
57416         * modules/unilbrk/u32-width-linebreaks: New file.
57417         * modules/unilbrk/ulc-width-linebreaks: New file.
57418         * lib/linebreak.h: Remove file.
57419         * lib/linebreak.c: Remove file.
57420         * m4/linebreak.m4: Remove file.
57421         * modules/linebreak: Remove file.
57422         * NEWS: Mention the changes.
57423
57424 2008-05-09  Eric Blake  <ebb9@byu.net>
57425
57426         Add xmemdup0.
57427         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57428         implementation.
57429         * lib/xmalloc.c (xmemdup0): New C implementation.
57430
57431 2008-05-08  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57434
57435 2008-05-07  Eric Blake  <ebb9@byu.net>
57436
57437         Support cross-compilation of <wctype.h>.
57438         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57439         AC_CACHE_CHECK.
57440
57441 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57442
57443         * build-aux/vc-list-files: Add support for bzr.
57444
57445 2008-05-03  Jim Meyering  <meyering@redhat.com>
57446
57447         avoid failed assertion with tight malloc
57448         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57449
57450 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57451
57452         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57453         are needed from arpa/inet.h.
57454         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57455         Reported by Bruno Haible.
57456
57457 2008-05-02  Jim Meyering  <meyering@redhat.com>
57458
57459         avoid compilation error on FreeBSD 6
57460         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57461
57462 2008-05-01  Jim Meyering  <meyering@redhat.com>
57463
57464         useless-if-before-free: correct --help's exit status description
57465         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57466         for one or more matches, etc.  Reported by Bruno Haible.
57467
57468         vc-list-files: make the stand-alone gnulib test work
57469         * modules/vc-list-files-tests (configure.ac):
57470         Define and AC_SUBST abs_aux_dir.
57471         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57472         $(abs_top_srcdir) to each script and having each of them
57473         duplicate the work of setting PATH, set PATH here, using
57474         the new variable, abs_aux_dir instead.
57475         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57476         * tests/test-vc-list-files-git.sh: Likewise.
57477         Reported by Bruno Haible.
57478
57479 2008-05-01  Bruno Haible  <bruno@clisp.org>
57480
57481         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57482         reallocation. Rename 'done' to 'found_delimiter'.
57483
57484 2008-05-01  Jim Meyering  <meyering@redhat.com>
57485
57486         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57487         * build-aux/vc-list-files: Use `...`, not $(...).
57488
57489 2008-04-30  Jim Meyering  <meyering@redhat.com>
57490
57491         add tests for vc-list-files
57492         * modules/vc-list-files-tests: New module.
57493         * tests/test-vc-list-files-cvs.sh: New file.
57494         * tests/test-vc-list-files-git.sh: New file.
57495
57496         avoid a warning from gcc
57497         * lib/getndelim2.c (IF_LINT): Define.
57498         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57499
57500         vc-list-files: work properly with build-aux/cvsu, too
57501         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57502         to all cvs-based clauses.
57503
57504         vc-list-files: work properly in the CVS+awk case, too
57505         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57506
57507         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57508         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57509         take more than one file argument, so .  Add quotes, just in case $dir
57510         ever contains a shell meta-character.  Prompted by Soren Hansen in
57511         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57512
57513 2008-04-29  Eric Blake  <ebb9@byu.net>
57514
57515         Optimize getndelim2 to use block operations when possible.
57516         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57517         freadseek, and memchr2.
57518         * lib/getndelim2.c (getndelim2): Use them for block reads.
57519
57520 2008-04-29  Bruno Haible  <bruno@clisp.org>
57521
57522         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57523         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57524         * modules/inet_ntop (Depends-on): Add extensions.
57525         * modules/inet_pton (Depends-on): Likewise.
57526         Reported by Simon Josefsson.
57527
57528 2008-04-29  Jim Meyering  <meyering@redhat.com>
57529
57530         When the is more than one match in a block, match all of them.
57531         * build-aux/useless-if-before-free: Iterate through each block
57532         until there are no more matches.
57533
57534         Fix broken useless-if-before-free script.
57535         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57536         the expression to match cast of argument to free-like function.
57537
57538 2008-04-29  Eric Blake  <ebb9@byu.net>
57539
57540         Use new header.
57541         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57542
57543 2008-04-29  Jim Meyering  <meyering@redhat.com>
57544
57545         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57546         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57547         by gnulib to exist and to declare e.g., inet_ntop.
57548         Don't include "inet_ntop.h", now removed.
57549
57550         * m4/arpa_inet_h.m4: Remove trailing blanks.
57551
57552 2008-04-29  Eric Blake  <ebb9@byu.net>
57553
57554         Silence valgrind on safe reads beyond potential array bounds.
57555         * lib/rawmemchr.valgrind: New file.
57556         * lib/strchrnul.valgrind: Likewise.
57557         * modules/rawmemchr (Files): Distribute new file.
57558         * modules/strchrnul (Files): Likewise.
57559         Suggested by Bruno Haible.
57560
57561 2008-04-29  Bruno Haible  <bruno@clisp.org>
57562
57563         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57564         (inet_ntop, inet_pton): Change portability warning's wording.
57565         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57566         Invoke gl_CHECK_NEXT_HEADERS.
57567         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57568         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57569         set ARPA_INET_H.
57570         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57571         * modules/arpa_inet (Description): No longer only for systems that
57572         lack it.
57573         (Depends-on): Add include_next.
57574         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57575         HAVE_ARPA_INET_H.
57576
57577 2008-04-29  Jim Meyering  <meyering@redhat.com>
57578
57579         * modules/mkdir (License): Re-license as LGPLv2+.
57580
57581 2008-04-29  Bruno Haible  <bruno@clisp.org>
57582
57583         * modules/rawmemchr (Maintainer): Set to Eric.
57584         * modules/strchrnul (Maintainer): Likewise.
57585
57586 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57587
57588         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57589         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57590
57591         * modules/arpa_inet (arpa/inet.h): Use them.
57592
57593 2008-04-28  Eric Blake  <ebb9@byu.net>
57594
57595         Test getndelim2.
57596         * modules/getndelim2-tests: New file.
57597         * tests/test-getndelim2.c: Likewise.
57598         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57599         stream.
57600         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57601
57602         * MODULES.html.sh: Document new module.
57603
57604 2008-04-20  Bruno Haible  <bruno@clisp.org>
57605
57606         * lib/c-stack.c (die): Use raise.
57607         * modules/c-stack (Depends-on): Add raise.
57608
57609 2008-04-28  Bruno Haible  <bruno@clisp.org>
57610
57611         Expect rpmatch to be declared.
57612         * lib/yesno.c (rpmatch): Remove declaration.
57613
57614         Declare rpmatch.
57615         * lib/stdlib.in.h (rpmatch): New declaration.
57616         * lib/rpmatch.c: Include <stdlib.h> first.
57617         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57618         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57620         HAVE_RPMATCH.
57621         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57623         (Include): Set to <stdlib.h>.
57624         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57625         HAVE_RPMATCH.
57626         * NEWS: Document the change.
57627
57628 2008-04-28  Bruno Haible  <bruno@clisp.org>
57629
57630         Change rpmatch to use nl_langinfo when appropriate.
57631         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57632         (N_): New macro.
57633         (localized_pattern): New function/macro.
57634         (try): Remove match, nomatch arguments. Copy the pattern into safe
57635         memory before caching it.
57636         (rpmatch): Use localized_pattern. Add translator comments.
57637         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57638         Suggested by Eric Blake.
57639         * modules/rpmatch (Depends-on): Add stdbool.
57640
57641 2008-04-28  Eric Blake  <ebb9@byu.net>
57642
57643         Add rawmemchr module, matching glibc.
57644         * modules/string (Makefile.am): New indicator.
57645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57646         * lib/string.in.h (rawmemchr): Declare when appropriate.
57647         * modules/rawmemchr: New file.
57648         * m4/rawmemchr.m4: Likewise.
57649         * lib/rawmemchr.c: Likewise.
57650         * modules/rawmemchr-tests: Likewise.
57651         * tests/test-rawmemchr.c: Likewise.
57652         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57653         module.
57654         * modules/strchrnul (Depends-on): Add rawmemchr.
57655         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57656
57657         Whitespace cleanup.
57658         * tests/test-strchrnul.c: Reindent.
57659         * lib/strchrnul.c: Likewise.
57660
57661         Optimize and test strchrnul.
57662         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57663         * modules/strchrnul-tests: New file.
57664         * tests/test-strchrnul.c: Likewise.
57665
57666         Remove intprops dependency.
57667         * modules/memchr (Depends-on): Remove intprops.
57668         * modules/memrchr (Depends-on): Likewise.
57669         * modules/memchr2 (Depends-on): Likewise.
57670         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57671         * lib/memrchr.c (__memrchr): Likewise.
57672         * lib/memrchr2.c (memchr2): Likewise.
57673         Reported by Simon Josefsson.
57674
57675 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57676
57677         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57678         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57679
57680 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57681
57682         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57683
57684         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57685
57686         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57687
57688         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57689         declarations.
57690         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57691
57692         * m4/inet_pton.m4: Don't check for header files.
57693
57694         * m4/inet_ntop.m4: Don't check for header files.
57695
57696 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57697
57698         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57699         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57700         trigger for cygwin).
57701         Reported by Bruno Haible  <bruno@clisp.org>.
57702
57703 2008-04-28  Bruno Haible  <bruno@clisp.org>
57704
57705         * doc/posix-functions/strdup.texi: Mention mingw problem.
57706
57707 2008-04-27  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/stat-time-tests (Depends-on): Add sleep.
57710         * tests/test-stat-time.c (force_unlink): New function.
57711         (cleanup): Use it.
57712         (test_mtime): Remove the ctime related tests.
57713         (test_ctime): New function, containing the ctime related tests.
57714         (main): Call test_ctime, except on native Windows platforms.
57715
57716 2008-04-27  Bruno Haible  <bruno@clisp.org>
57717
57718         * lib/rpmatch.c (rpmatch): Add some comments.
57719         Reported by James Youngman <jay@gnu.org>.
57720
57721 2008-04-27  Bruno Haible  <bruno@clisp.org>
57722
57723         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57724         quiet NaNs.
57725
57726 2008-04-27  Bruno Haible  <bruno@clisp.org>
57727
57728         Make test-yesno.sh work on mingw.
57729         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57730         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57731         (main): Set stdin to binary mode.
57732         * modules/yesno-tests (Depends-on): Add binary-io.
57733
57734 2008-04-27  Bruno Haible  <bruno@clisp.org>
57735
57736         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57737         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57738         argument that lie outside the IEEE 854 domain.
57739         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57740         (gl_ISFINITE): Use it.
57741         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57742
57743 2008-04-27  Bruno Haible  <bruno@clisp.org>
57744
57745         Allow local renaming in config.h.
57746         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57747
57748 2008-04-27  Bruno Haible  <bruno@clisp.org>
57749
57750         * lib/memchr.c (__memchr): Change type of 'i'.
57751         * lib/memchr2.c (memchr2): Likewise.
57752
57753 2008-04-26  Eric Blake  <ebb9@byu.net>
57754         and Bruno Haible  <bruno@clisp.org>
57755
57756         Optimize and test memrchr.
57757         * modules/memrchr (Depends-on): Add intprops.
57758         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57759         * modules/memrchr-tests: New file.
57760         * tests/test-memrchr.c: New file.
57761
57762 2008-04-26  Bruno Haible  <bruno@clisp.org>
57763
57764         Add tentative support for DragonFly BSD.
57765         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57766         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57767         fp.
57768         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57769         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57770         * lib/fpurge.c (fpurge): Likewise.
57771         * lib/freadable.c (freaadable): Likewise.
57772         * lib/freadahead.c (freadahead): Likewise.
57773         * lib/freading.c (freading): Likewise.
57774         * lib/freadptr.c (freadptr): Likewise.
57775         * lib/freadseek.c (freadptrinc): Likewise.
57776         * lib/fseeko.c (fseeko): Likewise.
57777         * lib/fseterr.c (fseterr): Likewise.
57778         * lib/fwritable.c (fwritable): Likewise.
57779         * lib/fwriting.c (fwriting): Likewise.
57780
57781 2008-04-26  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/stdio-impl.h: New file.
57784         * lib/fbufmode.c: Include stdio-impl.h.
57785         (fbufmode): Use fp_, remove redundant #defines.
57786         * lib/fflush.c: Include stdio-impl.h.
57787         (clear_ungetc_buffer): Remove redundant #defines.
57788         * lib/fpurge.c: Include stdio-impl.h.
57789         (fpurge): Remove redundant #defines.
57790         * lib/freadable.c: Include stdio-impl.h.
57791         (freadable): Remove redundant #defines.
57792         * lib/freadahead.c: Include stdio-impl.h.
57793         (freadahead): Remove redundant #defines.
57794         * lib/freading.c: Include stdio-impl.h.
57795         (freading): Remove redundant #defines.
57796         * lib/freadptr.c: Include stdio-impl.h.
57797         (freadptr): Remove redundant #defines.
57798         * lib/freadseek.c: Include stdio-impl.h.
57799         (freadptrinc): Remove redundant #defines.
57800         * lib/fseeko.c: Include stdio-impl.h.
57801         (rpl_fseeko): Remove redundant #defines.
57802         * lib/fseterr.c: Include stdio-impl.h.
57803         (fseterr): Remove redundant #defines.
57804         * lib/fwritable.c: Include stdio-impl.h.
57805         (fwritable: Remove redundant #defines.
57806         * lib/fwriting.c: Include stdio-impl.h.
57807         (fwriting): Remove redundant #defines.
57808         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57809         * modules/fflush (Files): Likewise.
57810         * modules/fpurge (Files): Likewise.
57811         * modules/freadable (Files): Likewise.
57812         * modules/freadahead (Files): Likewise.
57813         * modules/freading (Files): Likewise.
57814         * modules/freadptr (Files): Likewise.
57815         * modules/freadseek (Files): Likewise.
57816         * modules/fseeko (Files): Likewise.
57817         * modules/fseterr (Files): Likewise.
57818         * modules/fwritable (Files): Likewise.
57819         * modules/fwriting (Files): Likewise.
57820
57821 2008-04-26  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57824         restore_seek_optimization, update_fpos_cache): New functions, extracted
57825         from rpl_fflush.
57826         (rpl_fflush): Use them.
57827         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57828         (gl_REPLACE_FFLUSH): Use it.
57829
57830 2008-04-26  Bruno Haible  <bruno@clisp.org>
57831
57832         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57833         on Solaris.
57834         * tests/test-xstrtoimax.sh: Likewise.
57835         * tests/test-xstrtoumax.sh: Likewise.
57836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57837
57838 2008-04-26  Bruno Haible  <bruno@clisp.org>
57839
57840         * modules/memchr-tests: New file.
57841         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57842
57843 2008-04-26  Eric Blake  <ebb9@byu.net>
57844             Bruno Haible  <bruno@clisp.org>
57845
57846         * lib/memchr.c: Include intprops.h.
57847         (__memchr): Optimize parallel detection of matching bytes. Rename local
57848         variables. Add explanatory comments.
57849
57850 2008-04-26  Bruno Haible  <bruno@clisp.org>
57851
57852         Fix module 'memchr', broken since 2000-10-28.
57853         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57854
57855 2008-04-26  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57858         comments.
57859
57860 2008-04-25  Eric Blake  <ebb9@byu.net>
57861
57862         Use native fstatat on cygwin 1.7.0.
57863         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57864         first.
57865
57866 2008-04-23  Eric Blake  <ebb9@byu.net>
57867
57868         Improve memchr2 performance.
57869         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57870         NUL bytes.
57871         * modules/memchr2 (Depends-on): Use intprops.h.
57872
57873 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57874
57875         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57876         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57877         <blp@cs.stanford.edu>.
57878
57879 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57880
57881         * lib/arpa_inet.in.h: New file.
57882
57883         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57884         (Makefile.am): Sed in substitute header file.
57885
57886         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57887         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57888
57889         * modules/inet_ntop (configure.ac): Use
57890         gl_ARPA_INET_MODULE_INDICATOR.
57891
57892         * modules/inet_pton (configure.ac): Use
57893         gl_ARPA_INET_MODULE_INDICATOR.
57894
57895 2008-04-22  Jim Meyering  <meyering@redhat.com>
57896
57897         * modules/verify (License): Re-license as LGPLv2+.
57898
57899 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57900
57901         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57902         parameter to void* as per POSIX standard (MinGW uses char*).
57903
57904 2008-04-21  Bruno Haible  <bruno@clisp.org>
57905
57906         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57907         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57908         Define to replacements if REPLACE_ISWCNTRL is 1.
57909         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57910         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57911         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57912         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57913         what it fixes.
57914         * doc/posix-functions/iswalpha.texi: Likewise.
57915         * doc/posix-functions/iswblank.texi: Likewise.
57916         * doc/posix-functions/iswcntrl.texi: Likewise.
57917         * doc/posix-functions/iswdigit.texi: Likewise.
57918         * doc/posix-functions/iswgraph.texi: Likewise.
57919         * doc/posix-functions/iswlower.texi: Likewise.
57920         * doc/posix-functions/iswprint.texi: Likewise.
57921         * doc/posix-functions/iswpunct.texi: Likewise.
57922         * doc/posix-functions/iswspace.texi: Likewise.
57923         * doc/posix-functions/iswupper.texi: Likewise.
57924         * doc/posix-functions/iswxdigit.texi: Likewise.
57925         Reported by Alain Guibert.
57926
57927 2008-04-21  Bruno Haible  <bruno@clisp.org>
57928
57929         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57930         Patch by Alain Guibert.
57931
57932 2008-04-21  Bruno Haible  <bruno@clisp.org>
57933
57934         Fix test failures on mingw.
57935         * tests/test-xstrtol.c (print_no_progname): New function.
57936         (main): Install it in error_print_progname hook.
57937         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57938         * tests/test-xstrtoimax.sh: Likewise.
57939         * tests/test-xstrtoumax.sh: Likewise.
57940
57941 2008-04-21  Bruno Haible  <bruno@clisp.org>
57942
57943         Fix test failure on mingw.
57944         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57945
57946 2008-04-21  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57949         Actually assign a value.
57950
57951 2008-04-20  Bruno Haible  <bruno@clisp.org>
57952
57953         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57954         take 2.
57955         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57956         'canonicalize-lgpl' module is also used.
57957         * lib/canonicalize-lgpl.c: Undo last change.
57958         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57959
57960 2008-04-20  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57963         config.h. Provide _mkdir based fallback for mingw.
57964         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57965         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57966         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57967         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57968         rather than defining mkdir in config.h.
57969         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57970         (gl_SYS_STAT_H_DEFAULTS): New macro.
57971         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57972         HAVE_IO_H any more.
57973         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57974         HAVE_DECL_MKDIR and HAVE_IO_H.
57975
57976 2008-04-20  Bruno Haible  <bruno@clisp.org>
57977
57978         * lib/isapipe.c: Port to native Windows platforms.
57979
57980 2008-04-20  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57983
57984 2008-04-21  Eric Blake  <ebb9@byu.net>
57985
57986         Work around preprocessors that don't handle UINTMAX_MAX.
57987         * lib/memchr2.c (memchr2): Avoid embedded #if.
57988         Reported by Alain Guibert, fix suggested by Bruno Haible.
57989
57990 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57991
57992         * doc/posix-functions/strftime.texi (strftime): Explain better
57993         Windows incompatibility.  Suggested by Micah Cowan
57994         <micah@cowan.name>.
57995
57996 2008-04-20  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57999         unistr/u8-mblen.
58000
58001 2008-04-20  Bruno Haible  <bruno@clisp.org>
58002
58003         Fix test failure on platforms with non-GNU iconv.
58004         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58005         (U_TO_U8): Use it, rather than u16_to_u8.
58006         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58007         units at the end of the input string.
58008         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58009
58010 2008-04-20  Bruno Haible  <bruno@clisp.org>
58011
58012         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58013         when the resulting length is 0.
58014         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58015
58016 2008-04-20  Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58019         works.
58020         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58021
58022 2008-04-20  Bruno Haible  <bruno@clisp.org>
58023
58024         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58025         * modules/tsearch-tests (configure.ac): Test for initstate function.
58026
58027 2008-04-20  Bruno Haible  <bruno@clisp.org>
58028
58029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58030         for nlink_t if missing.
58031         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58032
58033 2008-04-19  Bruno Haible  <bruno@clisp.org>
58034
58035         Work around snprintf bug on Linux libc5.
58036         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58038         gl_SNPRINTF_SIZE1.
58039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58040         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58041         that test failed.
58042         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58043         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58044         * modules/snprintf (Files): Add m4/printf.m4.
58045         * modules/vsnprintf (Files): Likewise.
58046         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58047         * doc/posix-functions/vsnprintf.texi: Likewise.
58048
58049 2008-04-19  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58052         from 0.0058 to less than 10^-7.
58053
58054 2008-04-19  Bruno Haible  <bruno@clisp.org>
58055
58056         Fix rounding when a precision is given.
58057         * lib/vasnprintf.c (is_borderline): New function.
58058         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58059         9...9x.
58060         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58061         %e, %g.
58062         * tests/test-vasprintf-posix.c (test_function): Likewise.
58063         * tests/test-snprintf-posix.h (test_function): Likewise.
58064         * tests/test-sprintf-posix.h (test_function): Likewise.
58065         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58066         * tests/test-printf-posix.h (test_function): Likewise.
58067         * tests/test-printf-posix.output: Update.
58068         Reported by John Darrington <john@darrington.wattle.id.au> via
58069         Ben Pfaff <blp@cs.stanford.edu>.
58070
58071 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58072
58073         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58074         Suggested by Bruno Haible <bruno@clisp.org>.
58075
58076 2008-04-17  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58079         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58080         implementation.
58081         Patch by Bruce Merry <bmerry@gmail.com>.
58082
58083 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58084
58085         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58086         doesn't work under Windows.
58087
58088 2008-04-16  Bruno Haible  <bruno@clisp.org>
58089
58090         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58091         New macros.
58092         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58093         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58094         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58095         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58096         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58097         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58098         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58099         macros.
58100         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58101         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58102         Northern Sotho, Uighur.
58103
58104 2008-04-16  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58107         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58108         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58109         Reported by Daniel Bergström <daniel@octocode.com>.
58110
58111 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58112             Bruno Haible  <bruno@clisp.org>
58113
58114         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58115         function.
58116         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58117         New functions, mostly extracted from gl_locale_name_default.
58118         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58119
58120 2008-04-16  Eric Blake  <ebb9@byu.net>
58121
58122         Adjust strtod detection to catch glibc 2.7 bug.
58123         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58124         Reported by John Gatewood Ham.
58125
58126 2008-04-16  Bruno Haible  <bruno@clisp.org>
58127
58128         Add tentative support for Linux libc5.
58129         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58130         * lib/fpurge.c (fpurge): Likewise.
58131         * lib/freadable.c (freadable): Likewise.
58132         * lib/freadahead.c (freadahead): Likewise.
58133         * lib/freading.c (freading): Likewise.
58134         * lib/freadptr.c (freadptr): Likewise.
58135         * lib/freadseek.c (freadptrinc): Likewise.
58136         * lib/fseeko.c (rpl_fseeko): Likewise.
58137         * lib/fseterr.c (fseterr): Likewise.
58138         * lib/fwritable.c (fwritable): Likewise.
58139         * lib/fwriting.c (fwriting): Likewise.
58140         Reported by Alain Guibert <alguibert+bts@free.fr>.
58141
58142 2008-04-15  Bruno Haible  <bruno@clisp.org>
58143
58144         * modules/mathl (configure.ac): Define module indicator.
58145
58146 2008-04-15  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/logl.c (logl): Remove unused variables.
58149
58150 2008-04-15  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58153         fails.
58154
58155 2008-04-15  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/trim.c (trim2): Fix argument of isspace() macro.
58158
58159 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58160
58161         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58162         to 0.
58163         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58164
58165 2008-04-14  Bruno Haible  <bruno@clisp.org>
58166
58167         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58168         AC_LANG_PROGRAM argument.
58169         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58170         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58172         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58173         * m4/math_h.m4 (gl_MATH_H): Likewise.
58174         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58176         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58177         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58178         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58179         * m4/regex.m4 (gl_REGEX): Likewise.
58180         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58181         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58184         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58185         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58188
58189 2008-04-14  Jim Meyering  <meyering@redhat.com>
58190
58191         test-strtod: fix typos: s/abs/fabs/
58192         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58193
58194 2008-04-13  Bruno Haible  <bruno@clisp.org>
58195
58196         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58197         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58198         module is also used and while not building the reloc-wrapper.
58199
58200 2008-04-13  Bruno Haible  <bruno@clisp.org>
58201
58202         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58203
58204 2008-04-13  Bruno Haible  <bruno@clisp.org>
58205
58206         Fix AIX compilation failure introduced on 2008-04-02.
58207         * tests/test-frexp.c (exp): Undefine before redefining.
58208         * tests/test-frexpl.c (exp): Likewise.
58209
58210 2008-04-13  Bruno Haible  <bruno@clisp.org>
58211
58212         Work around a HP-UX stdio bug.
58213         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58214         * tests/test-ftello.c (main): Likewise.
58215         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58216         * doc/posix-functions/ftello.texi: Likewise.
58217
58218 2008-04-13  Bruno Haible  <bruno@clisp.org>
58219
58220         Make test-signbit pass on HP-UX/hppa.
58221         * tests/test-signbit.c (minus_zerol): New variable.
58222         (test_signbitl): Use it.
58223
58224 2008-04-13  Bruno Haible  <bruno@clisp.org>
58225
58226         Make truncl work on OSF/1 4.0.
58227         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58228         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58229         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58231         HAVE_DECL_TRUNCL.
58232         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58233         HAVE_DECL_TRUNCL.
58234         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58235
58236 2008-04-13  Bruno Haible  <bruno@clisp.org>
58237
58238         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58239
58240 2008-04-13  Bruno Haible  <bruno@clisp.org>
58241
58242         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58243         expression, so as to avoid HP-UX 11 cc compiler bug.
58244
58245 2008-04-13  Bruno Haible  <bruno@clisp.org>
58246
58247         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58248
58249 2008-04-13  Bruno Haible  <bruno@clisp.org>
58250
58251         * lib/git-merge-changelog.c: Remove empty declaration outside of
58252         functions.
58253
58254 2008-04-13  Bruno Haible  <bruno@clisp.org>
58255
58256         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58257
58258 2008-04-13  Bruno Haible  <bruno@clisp.org>
58259
58260         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58261         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58262         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58263         also if it exists but lacks definitions of the SHUT_* macros.
58264         * modules/sys_socket (Description): Update.
58265         Reported by Elbert Pol <e.pol@chello.nl>.
58266
58267 2008-04-13  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/localcharset.c (OS2): Don't redefine if already defined.
58270         Reported by Elbert Pol <e.pol@chello.nl>.
58271
58272 2008-04-13  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/binary-io.h [__EMX__]: Include <io.h>.
58275         Reported by Elbert Pol <e.pol@chello.nl>.
58276
58277 2008-04-12  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/fpucw.h: Enable the definitions also for x86_64.
58280         Needed for NetBSD/x86_64.
58281         Reported by Thomas Klausner <tk@giga.or.at>.
58282
58283 2008-04-12  Bruno Haible  <bruno@clisp.org>
58284
58285         * tests/test-strtod.c: Include isnand.h.
58286         (main): Use isnand instead of isnan.
58287         Reported by Jim Meyering.
58288
58289 2008-04-12  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58292         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58293
58294 2008-04-12  Jim Meyering  <meyering@redhat.com>
58295
58296         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58297
58298 2008-04-12  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58301         Reported by Elbert Pol <e.pol@chello.nl>.
58302
58303 2008-04-12  Eric Blake  <ebb9@byu.net>
58304
58305         Work around Solaris 10 math.h bug.
58306         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58307         (gl_MATH_H_DEFAULTS): Set up default.
58308         * modules/math (Makefile.am): Replace new indicators.
58309         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58310         * tests/test-math.c (main): Test this.
58311         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58312         * doc/posix-headers/math.texi (math.h): Mention bug.
58313         Reported by Nelson H. F. Beebe and Jim Meyering.
58314
58315 2008-04-11  Bruno Haible  <bruno@clisp.org>
58316
58317         Adapt to future versions of Apple GCC.
58318         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58319         Reported by Peter O'Gorman <peter@pogma.com>.
58320
58321 2008-04-11  Bruno Haible  <bruno@clisp.org>
58322
58323         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58324
58325 2008-04-11  Bruno Haible  <bruno@clisp.org>
58326
58327         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58328
58329         * modules/getaddrinfo-tests (Makefile.am): Define
58330         test_getaddrinfo_LDADD.
58331
58332 2008-04-11  Bruno Haible  <bruno@clisp.org>
58333
58334         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58335         (init): Fix syntax error.
58336         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58337         is declared.
58338
58339 2008-04-11  Bruno Haible  <bruno@clisp.org>
58340
58341         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58342         * modules/glob (Depends-on): Add stdbool.
58343
58344 2008-04-11  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/trim.c: Include <string.h>.
58347
58348 2008-04-11  Eric Blake  <ebb9@byu.net>
58349
58350         Avoid compile failure on OS/2.
58351         * lib/regex_internal.h (internal_function): Disable optimization
58352         on OS/2 (__EMX__), where it caused compiler error.
58353         Reported by Elbert Pol.
58354
58355 2008-04-11  Bruno Haible  <bruno@clisp.org>
58356
58357         Flush the standard error stream before aborting. Needed on mingw.
58358         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58359         * tests/test-array_list.c (ASSERT): Likewise.
58360         * tests/test-array_oset.c (ASSERT): Likewise.
58361         * tests/test-avltree_list.c (ASSERT): Likewise.
58362         * tests/test-avltree_oset.c (ASSERT): Likewise.
58363         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58364         * tests/test-binary-io.c (ASSERT): Likewise.
58365         * tests/test-byteswap.c (ASSERT): Likewise.
58366         * tests/test-c-ctype.c (ASSERT): Likewise.
58367         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58368         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58369         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58370         * tests/test-c-strstr.c (ASSERT): Likewise.
58371         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58372         * tests/test-canonicalize.c (ASSERT): Likewise.
58373         * tests/test-carray_list.c (ASSERT): Likewise.
58374         * tests/test-ceilf1.c (ASSERT): Likewise.
58375         * tests/test-ceilf2.c (ASSERT): Likewise.
58376         * tests/test-ceill.c (ASSERT): Likewise.
58377         * tests/test-count-one-bits.c (ASSERT): Likewise.
58378         * tests/test-fbufmode.c (ASSERT): Likewise.
58379         * tests/test-fflush2.c (ASSERT): Likewise.
58380         * tests/test-floorf1.c (ASSERT): Likewise.
58381         * tests/test-floorf2.c (ASSERT): Likewise.
58382         * tests/test-floorl.c (ASSERT): Likewise.
58383         * tests/test-fopen.c (ASSERT): Likewise.
58384         * tests/test-fpending.c (ASSERT): Likewise.
58385         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58386         * tests/test-fpurge.c (ASSERT): Likewise.
58387         * tests/test-freadable.c (ASSERT): Likewise.
58388         * tests/test-freadahead.c (ASSERT): Likewise.
58389         * tests/test-freading.c (ASSERT): Likewise.
58390         * tests/test-freadptr.c (ASSERT): Likewise.
58391         * tests/test-freadptr2.c (ASSERT): Likewise.
58392         * tests/test-freadseek.c (ASSERT): Likewise.
58393         * tests/test-freopen.c (ASSERT): Likewise.
58394         * tests/test-frexp.c (ASSERT): Likewise.
58395         * tests/test-frexpl.c (ASSERT): Likewise.
58396         * tests/test-fseek.c (ASSERT): Likewise.
58397         * tests/test-fseeko.c (ASSERT): Likewise.
58398         * tests/test-fstrcmp.c (ASSERT): Likewise.
58399         * tests/test-ftell.c (ASSERT): Likewise.
58400         * tests/test-ftello.c (ASSERT): Likewise.
58401         * tests/test-func.c (ASSERT): Likewise.
58402         * tests/test-fwritable.c (ASSERT): Likewise.
58403         * tests/test-fwriting.c (ASSERT): Likewise.
58404         * tests/test-getdelim.c (ASSERT): Likewise.
58405         * tests/test-getline.c (ASSERT): Likewise.
58406         * tests/test-i-ring.c (ASSERT): Likewise.
58407         * tests/test-iconv-utf.c (ASSERT): Likewise.
58408         * tests/test-iconv.c (ASSERT): Likewise.
58409         * tests/test-isfinite.c (ASSERT): Likewise.
58410         * tests/test-isnand.c (ASSERT): Likewise.
58411         * tests/test-isnanf.c (ASSERT): Likewise.
58412         * tests/test-isnanl.h (ASSERT): Likewise.
58413         * tests/test-ldexpl.c (ASSERT): Likewise.
58414         * tests/test-linked_list.c (ASSERT): Likewise.
58415         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58416         * tests/test-localename.c (ASSERT): Likewise.
58417         * tests/test-lseek.c (ASSERT): Likewise.
58418         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58419         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58420         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58421         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58422         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58423         * tests/test-mbschr.c (ASSERT): Likewise.
58424         * tests/test-mbscspn.c (ASSERT): Likewise.
58425         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58426         * tests/test-mbspbrk.c (ASSERT): Likewise.
58427         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58428         * tests/test-mbsrchr.c (ASSERT): Likewise.
58429         * tests/test-mbsspn.c (ASSERT): Likewise.
58430         * tests/test-mbsstr1.c (ASSERT): Likewise.
58431         * tests/test-mbsstr2.c (ASSERT): Likewise.
58432         * tests/test-mbsstr3.c (ASSERT): Likewise.
58433         * tests/test-memchr2.c (ASSERT): Likewise.
58434         * tests/test-memmem.c (ASSERT): Likewise.
58435         * tests/test-open.c (ASSERT): Likewise.
58436         * tests/test-printf-frexp.c (ASSERT): Likewise.
58437         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58438         * tests/test-printf-posix.c (ASSERT): Likewise.
58439         * tests/test-quotearg.c (ASSERT): Likewise.
58440         * tests/test-rbtree_list.c (ASSERT): Likewise.
58441         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58442         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58443         * tests/test-round1.c (ASSERT): Likewise.
58444         * tests/test-roundf1.c (ASSERT): Likewise.
58445         * tests/test-roundl.c (ASSERT): Likewise.
58446         * tests/test-signbit.c (ASSERT): Likewise.
58447         * tests/test-sleep.c (ASSERT): Likewise.
58448         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58449         * tests/test-snprintf.c (ASSERT): Likewise.
58450         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58451         * tests/test-stat-time.c (ASSERT): Likewise.
58452         * tests/test-strcasestr.c (ASSERT): Likewise.
58453         * tests/test-strerror.c (ASSERT): Likewise.
58454         * tests/test-striconv.c (ASSERT): Likewise.
58455         * tests/test-striconveh.c (ASSERT): Likewise.
58456         * tests/test-striconveha.c (ASSERT): Likewise.
58457         * tests/test-strsignal.c (ASSERT): Likewise.
58458         * tests/test-strstr.c (ASSERT): Likewise.
58459         * tests/test-strtod.c (ASSERT): Likewise.
58460         * tests/test-trunc1.c (ASSERT): Likewise.
58461         * tests/test-trunc2.c (ASSERT): Likewise.
58462         * tests/test-truncf1.c (ASSERT): Likewise.
58463         * tests/test-truncf2.c (ASSERT): Likewise.
58464         * tests/test-truncl.c (ASSERT): Likewise.
58465         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58466         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58467         * tests/test-vasnprintf.c (ASSERT): Likewise.
58468         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58469         * tests/test-vasprintf.c (ASSERT): Likewise.
58470         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58471         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58472         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58473         * tests/test-vsnprintf.c (ASSERT): Likewise.
58474         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58475         * tests/test-wcwidth.c (ASSERT): Likewise.
58476         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58477         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58478         * tests/test-xvasprintf.c (ASSERT): Likewise.
58479         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58480         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58481         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58482         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58483         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58484         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58485         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58486         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58487         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58488         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58489         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58490         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58491         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58492         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58493         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58494         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58495         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58496         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58497         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58498         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58499         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58500         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58501         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58502         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58503         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58504         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58505         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58506         * tests/unictype/test-combining.c (ASSERT): Likewise.
58507         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58508         * tests/unictype/test-digit.c (ASSERT): Likewise.
58509         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58510         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58511         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58512         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58513         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58514         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58515         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58516         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58517         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58518         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58519         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58520         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58521         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58522         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58523         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58524         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58525         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58526         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58527         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58528         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58529         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58530         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58531         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58532         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58533         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58534         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58535         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58536         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58537         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58538         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58539         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58540         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58541         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58542         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58543         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58544         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58545         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58546         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58547         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58548         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58549         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58550         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58551         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58552         Reported by Eric Blake.
58553
58554 2008-04-11  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/wchar.in.h: Tweak comment.
58557
58558 2008-04-11  Bruno Haible  <bruno@clisp.org>
58559
58560         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58561         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58562         gl_COMMON.
58563         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58564
58565 2008-04-11  Bruno Haible  <bruno@clisp.org>
58566
58567         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58568
58569 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58570
58571         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58572         of attempting to use non-existing /dev/*random.  Based on patch
58573         from Adam Strzelecki <ono@java.pl> in
58574         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58575
58576 2008-04-08  Bruno Haible  <bruno@clisp.org>
58577
58578         Add tentative support for emx+gcc.
58579         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58580         * lib/fpurge.c (fpurge): Likewise.
58581         * lib/freadable.c (freadable): Likewise.
58582         * lib/freadahead.c (freadahead): Likewise.
58583         * lib/freading.c (freading): Likewise.
58584         * lib/freadptr.c (freadptr): Likewise.
58585         * lib/freadseek.c (freadptrinc): Likewise.
58586         * lib/fseeko.c (rpl_fseeko): Likewise.
58587         * lib/fseterr.c (fseterr): Likewise.
58588         * lib/fwritable.c (fwritable): Likewise.
58589         * lib/fwriting.c (fwriting): Likewise.
58590         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58591
58592 2008-04-09  Eric Blake  <ebb9@byu.net>
58593
58594         Avoid some autoconf warnings.
58595         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58596         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58597         * m4/afs.m4 (gl_AFS): Likewise.
58598         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58599         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58601         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58602         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58603         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58604         (AC_CHECK_DECLS_ONCE): Likewise.
58605         Rename file...
58606         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58607         gnulib-tool requires autoconf 2.59 or better.
58608         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58609
58610 2008-04-08  Eric Blake  <ebb9@byu.net>
58611
58612         Use 'git describe --match' if present (added in git 1.5.5).
58613         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58614         if possible.
58615
58616 2008-04-08  Bruno Haible  <bruno@clisp.org>
58617
58618         Add tentative support for OpenServer.
58619         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58620         _ptr, _cnt.
58621         * lib/fpurge.c (fpurge): Likewise.
58622         * lib/freadable.c (freadable): Likewise.
58623         * lib/freadahead.c (freadahead): Likewise.
58624         * lib/freading.c (freading): Likewise.
58625         * lib/freadptr.c (freadptr): Likewise.
58626         * lib/freadseek.c (freadptrinc): Likewise.
58627         * lib/fseeko.c (rpl_fseeko): Likewise.
58628         * lib/fseterr.c (fseterr): Likewise.
58629         * lib/fwritable.c (fwritable): Likewise.
58630         * lib/fwriting.c (fwriting): Likewise.
58631         Reported by Roger Cornelius <rac@tenzing.org> and
58632         Brian K. White <brian@aljex.com>.
58633
58634 2008-04-06  Jim Meyering  <meyering@redhat.com>
58635
58636         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58637
58638 2008-04-06  Bruno Haible  <bruno@clisp.org>
58639
58640         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58641         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58642         * tests/test-printf-posix.sh: Likewise.
58643         * tests/test-vfprintf-posix.sh: Likewise.
58644         * tests/test-vprintf-posix.sh: Likewise.
58645         * tests/test-xprintf-posix.sh: Likewise.
58646
58647 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58648
58649         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58650         hide error from 'ls', needed on OS/2.
58651         Report by Elbert Pol <elbert.pol@gmail.com>.
58652
58653 2008-04-04  Eric Blake  <ebb9@byu.net>
58654
58655         Make test-fseeko.c failures meaningful.
58656         * tests/test-fseeko.c: Print line number on failure.
58657         * tests/test-fseek.c: Likewise.
58658         Reported by Nelson H. F. Beebe.
58659
58660         Improve strtod bug detection check.
58661         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58662         required for Solaris 10.
58663         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58664
58665 2008-04-04  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58668         by m4/setenv.m4.
58669
58670 2008-04-03  Eric Blake  <ebb9@byu.net>
58671
58672         Ensure sane .version contents.
58673         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58674         version string.
58675         * build-aux/git-version-gen: Improve documentation.
58676
58677         Make GNU make output nicer.
58678         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58679         MAKECMDGOALS to enforce message for all command line targets.  Set
58680         srcdir for use in maint.mk.
58681
58682         Another maintainer tweak.
58683         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58684         a target that regenerates version.
58685
58686 2008-04-03  Jim Meyering  <meyering@redhat.com>
58687
58688         vc-list-files: don't cause coreutils "make po-check" failure
58689         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58690
58691 2008-04-03  Eric Blake  <ebb9@byu.net>
58692
58693         Allow VPATH usage of vc-list-files.
58694         * build-aux/vc-list-files (scriptversion): Add timestamp.
58695         (options): Add --help, --version, -C.
58696         (CVS): Support installed cvsu.
58697
58698 2008-04-02  Bruno Haible  <bruno@clisp.org>
58699
58700         Avoid some "statement with no effect" warnings from gcc.
58701         * tests/test-wctype.c (main): Explicitly ignore unused values.
58702         Reported by Jim Meyering.
58703
58704 2008-04-02  Jim Meyering  <meyering@redhat.com>
58705
58706         Avoid some warnings from "gcc -Wshadow".
58707         * tests/test-frexp.c (exp): Define to a different identifier.
58708         * tests/test-frexpl.c (exp): Likewise.
58709
58710 2008-04-03  Jim Meyering  <meyering@redhat.com>
58711
58712         bootstrap: remove dangling *.[ch] symlinks from lib
58713         * build-aux/bootstrap [dangling symlink removal]: Move find's
58714         -depth option to precede all others, to avoid a warning.
58715         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58716
58717 2008-04-02  Bruno Haible  <bruno@clisp.org>
58718
58719         Avoid some warnings from "gcc -Wshadow".
58720         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58721         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58722         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58723         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58724         Reported by Jim Meyering.
58725
58726 2008-04-01  Bruno Haible  <bruno@clisp.org>
58727
58728         Fix test to work on IRIX 6.5 with cc.
58729         * tests/test-math.c (numeric_equal): New function.
58730         (main): Use it.
58731
58732 2008-04-01  Bruno Haible  <bruno@clisp.org>
58733
58734         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58735
58736 2008-04-01  Bruno Haible  <bruno@clisp.org>
58737
58738         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58739         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58740         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58741         (Depends-on): Remove math.
58742
58743         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58744         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58745         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58746         (Depends-on): Remove math.
58747
58748         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58749         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58750         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58751         (Depends-on): Remove math.
58752         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58753         (Depends-on): Remove math.
58754
58755         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58756         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58757         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58758         (Depends-on): Remove math.
58759         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58760         (Depends-on): Remove math.
58761
58762         * tests/test-round1.c: Include nan.h.
58763         (main): Use NaNd instead of NAN.
58764         * modules/round-tests (Files): Add tests/nan.h.
58765
58766         * tests/test-trunc1.c: Include nan.h.
58767         (main): Use NaNd instead of NAN.
58768         * modules/trunc-tests (Files): Add tests/nan.h.
58769
58770         * tests/test-roundf1.c: Include nan.h.
58771         (main): Use NaNf instead of NAN.
58772         * modules/roundf-tests (Files): Add tests/nan.h.
58773
58774         * tests/test-truncf1.c: Include nan.h.
58775         (main): Use NaNf instead of NAN.
58776         * modules/truncf-tests (Files): Add tests/nan.h.
58777
58778         * tests/test-ceilf1.c: Include nan.h.
58779         (main): Use NaNf instead of NAN.
58780         * modules/ceilf-tests (Files): Add tests/nan.h.
58781
58782         * tests/test-floorf1.c: Include nan.h.
58783         (main): Use NaNf instead of NAN.
58784         * modules/floorf-tests (Files): Add tests/nan.h.
58785
58786         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58787         (main): Use NaNf instead of NAN.
58788         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58789
58790         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58791         (main): Use NaNd instead of NAN.
58792         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58793
58794         * tests/test-frexp.c: Include nan.h.
58795         (main): Use NaNd instead of NAN.
58796         * modules/frexp-tests (Files): Add tests/nan.h.
58797
58798         * lib/isnan.c: Don't include <math.h>.
58799         (FUNC): Don't use NAN macro.
58800         * modules/isnand-nolibm (Depends-on): Remove math.
58801         * modules/isnanf-nolibm (Depends-on): Remove math.
58802         * modules/isnanl (Depends-on): Remove math.
58803         * modules/isnanl-nolibm (Depends-on): Remove math.
58804
58805         * tests/nan.h: New file.
58806
58807 2008-04-01  Eric Blake  <ebb9@byu.net>
58808
58809         Fix typos.
58810         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58811         values to be the right type.
58812
58813         For now, cater to gnulib strtod inaccuracies.
58814         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58815         fractional results.  While not as nice from a QoI perspective, it
58816         is a quicker patch than correctly implementing decimal to binary
58817         rounding.
58818
58819 2008-03-31  Eric Blake  <ebb9@byu.net>
58820
58821         Guarantee a definition of NAN.
58822         * lib/math.in.h (NAN): Define if missing.
58823         * tests/test-math.c (main): Test it.
58824         * doc/posix-headers/math.texi (math.h): Document this.
58825         * lib/isnan.c (rpl_isnand): Use it.
58826         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58827         * tests/test-floorf1.c (NaN): Likewise.
58828         * tests/test-frexp.c (NaN): Likewise.
58829         * tests/test-isnand.c (NaN): Likewise.
58830         * tests/test-isnanf.c (NaN): Likewise.
58831         * tests/test-round1.c (NaN): Likewise.
58832         * tests/test-roundf1.c (NaN): Likewise.
58833         * tests/test-snprintf-posix.h (NaN): Likewise.
58834         * tests/test-sprintf-posix.h (NaN): Likewise.
58835         * tests/test-trunc1.c (NaN): Likewise.
58836         * tests/test-truncf1.c (NaN): Likewise.
58837         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58838         * tests/test-vasprintf-posix.c (NaN): Likewise.
58839         * modules/isnand-nolibm (Depends-on): Add math.
58840         * modules/isnanf-nolibm (Depends-on): Likewise.
58841         * modules/isnanl (Depends-on): Likewise.
58842         * modules/isnanl-nolibm (Depends-on): Likewise.
58843         * modules/snprintf-posix-tests (Depends-on): Likewise.
58844         * modules/sprintf-posix-tests (Depends-on): Likewise.
58845         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58846         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58847         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58848         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58849
58850 2008-03-31  Bruno Haible  <bruno@clisp.org>
58851
58852         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58853         * doc/posix-functions/strtod.texi: Likewise.
58854
58855 2008-03-31  Bruno Haible  <bruno@clisp.org>
58856
58857         * tests/test-strtod.c (main): Don't use C99 syntax.
58858
58859 2008-03-31  Bruno Haible  <bruno@clisp.org>
58860
58861         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58862         Reported by Eric Blake.
58863
58864 2008-03-31  Jim Meyering  <meyering@redhat.com>
58865
58866         Don't compare actual signbit return values.
58867         * tests/test-strtod.c (main): Rather, compare only their
58868         zero/non-zero nature.
58869
58870 2008-03-31  Eric Blake  <ebb9@byu.net>
58871
58872         More strtod documentation.
58873         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58874         failures as distinct bugs.
58875
58876 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58877
58878         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58879         Problem reported by Erik Benada in
58880         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58881
58882 2008-03-30  Bruno Haible  <bruno@clisp.org>
58883
58884         * tests/test-strtod.c: Add comments about which assertion fails on which
58885         platform.
58886         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58887
58888 2008-03-30  Eric Blake  <ebb9@byu.net>
58889
58890         Test signbit behavior on zeros.
58891         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58892         (test_signbitd, test_signbitl): Likewise.
58893
58894         More strtod touchups.
58895         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58896         sign of negative underflow, for now.  Use .5, not .1.
58897         * doc/posix-functions/strtod.texi (strtod): Mention these
58898         limitations.
58899         Reported by Jim Meyering.
58900
58901 2008-03-30  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58904         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58905
58906 2008-03-30  Bruno Haible  <bruno@clisp.org>
58907
58908         Avoid failure when attempting to return empty iconv results on some
58909         platforms.
58910         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58911         allocation, don't report ENOMEM when the resulting string is empty.
58912
58913 2008-03-30  Bruno Haible  <bruno@clisp.org>
58914
58915         Fix buffer overrun.
58916         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58917         Don't consider the width for tmp_length. Check count against tmp_length
58918         before doing the padding. Ensure enough allocation during padding.
58919
58920 2008-03-30  Eric Blake  <ebb9@byu.net>
58921
58922         strtod touchups.
58923         * lib/strtod.c (strtod): Avoid compiler warnings.
58924         Reported by Jim Meyering.
58925
58926 2008-03-30  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58929         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58930         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58931         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58932         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58933         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58934         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58935         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58936
58937         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58938         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58939         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58940         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58941         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58942         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58943         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58944         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58945
58946         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58947         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58948         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58949         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58950         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58951         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58952         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58953         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58954
58955         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58956         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58957
58958         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58959         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58960
58961         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58962         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58963
58964         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58965         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58966         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58967
58968         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58970         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58971
58972         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58974         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58975
58976         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58978         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58979
58980         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58981         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58983         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58984         (Depends-on): Add EOVERFLOW.
58985         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58986         (Depends-on): Add EOVERFLOW.
58987         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58988         (Depends-on): Add EOVERFLOW.
58989         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58990         (Depends-on): Add EOVERFLOW.
58991         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58992         (Depends-on): Add EOVERFLOW.
58993         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58994         (Depends-on): Add EOVERFLOW.
58995         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58996         (Depends-on): Add EOVERFLOW.
58997         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58998         (Depends-on): Add EOVERFLOW.
58999
59000         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59002         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59003
59004         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59006         * modules/snprintf (Depends-on): Add EOVERFLOW.
59007
59008         * lib/poll.c (EOVERFLOW): Remove fallback.
59009         * modules/poll (Depends-on): Add EOVERFLOW.
59010
59011         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59012         * modules/getugroups (Depends-on): Add EOVERFLOW.
59013
59014         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59015         * modules/getdelim (Depends-on): Add EOVERFLOW.
59016
59017         * lib/ftell.c (EOVERFLOW): Remove fallback.
59018         * modules/ftell (Depends-on): Add EOVERFLOW.
59019
59020         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59022         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59023
59024         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59025
59026         * modules/EOVERFLOW-tests: New file.
59027         * tests/test-EOVERFLOW.c: New file.
59028
59029         * modules/EOVERFLOW: New file.
59030         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59031
59032 2008-03-30  Bruno Haible  <bruno@clisp.org>
59033
59034         Fix bug introduced on 2007-06-10.
59035         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59036         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59037
59038 2008-03-30  Bruno Haible  <bruno@clisp.org>
59039
59040         Improve freadseek's efficiency after ungetc.
59041         * lib/freadseek.c: Include freadahead.h.
59042         (freadptrinc): New function, extracted from freadseek.
59043         (freadseek): Use it in a loop. Use freadahead to determine the number
59044         of loop iterations.
59045         * modules/freadseek (Depends-on): Add freadahead.
59046         (configure.ac): Require AC_C_INLINE.
59047
59048 2008-03-30  Bruno Haible  <bruno@clisp.org>
59049
59050         * lib/freadseek.c (freadseek): Don't ignore the return value of
59051         freadptr.
59052
59053 2008-03-29  Eric Blake  <ebb9@byu.net>
59054
59055         Add hex float support.
59056         * modules/strtod (Depends-on): Add c-ctype.
59057         (Link): Mention POW_LIB.
59058         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59059         whitespace between 'e' and exponent.
59060         * tests/test-strtod.c (main): Enable hex float tests.
59061         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59062         now provides.
59063
59064         Document various strtod bugs, with some fixes.
59065         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59066         "-0x", "inf", "nan", and hex constants.
59067         * doc/posix-functions/atof.texi (atof): Likewise.
59068         * modules/stdlib (Makefile.am): Support strtod.
59069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59070         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59071         detect additional strtod bugs.
59072         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59073         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59074         bool where appropriate.  Parse 'inf' and 'nan'.
59075         * tests/test-strtod.c: New file.
59076         * modules/strtod (Depends-on): Add stdbool, stdlib.
59077         (configure.ac): Turn on module indicator.
59078         * modules/strtod-tests: New module.
59079
59080 2008-03-29  Eric Blake  <ebb9@byu.net>
59081
59082         Fix ftell on mingw.
59083         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59084         * modules/ftell-tests (Depends-on): Add binary-io.
59085         * modules/ftello-tests (Depends-on): Likewise.
59086         * tests/test-ftell.c (main): Enhance test to cover behavior after
59087         ungetc.  Enforce binary mode.
59088         * tests/test-ftello.c (main): Likewise.
59089
59090         Pass test-freadseek on cygwin.
59091         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59092         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59093         ungetc buffer.
59094
59095         * tests/test-fflush2.c (main): Fix typo.
59096
59097 2008-03-29  Bruno Haible  <bruno@clisp.org>
59098
59099         * tests/test-fflush2.c (main): Temporarily disable the contents of
59100         this test.
59101         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59102         Reported by Eric Blake.
59103
59104 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59105
59106         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59107         (GC_SHA224_DIGEST_SIZE): Add.
59108
59109         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59110         (gc_hash_digest_length): Likewise.
59111         (gc_hash_buffer): Likewise.
59112
59113 2008-03-25  Bruno Haible  <bruno@clisp.org>
59114
59115         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59116         detail which gettext release to use.
59117         Reported by Simon Josefsson.
59118
59119 2008-03-26  Jim Meyering  <meyering@redhat.com>
59120
59121         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59122         * modules/gnumakefile (clean-GNUmakefile): Also, use
59123         test ... && ... || : syntax rather than if-then ... fi.
59124
59125         gnumakefile: Don't double-quote-expand $(VPATH) value.
59126         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59127
59128 2008-03-24  Eric Blake  <ebb9@byu.net>
59129
59130         Alter GNUmakefile to install into top directory.
59131         * modules/maintainer-makefile: Split, and add dependency...
59132         * modules/gnumakefile: to this new module.
59133         * build-aux/GNUmakefile: Move...
59134         * top/GNUmakefile: ...here.
59135         * build-aux/maint.mk: Move...
59136         * top/maint.mk: ...here.
59137         * MODULES.html.sh (Support for maintaining...): Document new
59138         module.
59139
59140 2008-03-23  Bruno Haible  <bruno@clisp.org>
59141
59142         * gnulib-tool: New options --vc-files, --no-vc-files.
59143         (func_usage): Document them.
59144         (vc_files): New variable.
59145         (func_import): Consider vc_files.
59146         (func_create_testdir): Set vc_files to empty.
59147         Suggested by Jim Meyering and Karl Berry.
59148
59149 2008-03-23  Bruno Haible  <bruno@clisp.org>
59150
59151         Fix regex compilation error on HP-UX 11.
59152         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59153         * modules/regex (Files): Add m4/mbstate_t.m4.
59154         Reported by Ton Voon <ton.voon@altinity.com>.
59155
59156 2008-03-23  Bruno Haible  <bruno@clisp.org>
59157
59158         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59159
59160 2008-03-23  Eric Blake  <ebb9@byu.net>
59161             Bruno Haible  <bruno@clisp.org>
59162
59163         Install files from top/ in the destination directory.
59164         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59165         augmentation also for the files from top/.
59166         (func_import, func_create_testdir): Rewrite file names:
59167         top/filename -> filename.
59168
59169 2008-03-23  Bruno Haible  <bruno@clisp.org>
59170
59171         Tweak "gnulib --version" output.
59172         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59173
59174 2008-03-23  Bruno Haible  <bruno@clisp.org>
59175
59176         Tweak "gnulib --version" output.
59177         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59178         rather than contents of ChangeLog, when possible.
59179
59180 2008-03-21  Eric Blake  <ebb9@byu.net>
59181
59182         More --version tweaks.
59183         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59184         date of last ChangeLog entry.
59185
59186 2008-03-21  Jim Meyering  <meyering@redhat.com>
59187
59188         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59189
59190 2008-03-20  Eric Blake  <ebb9@byu.net>
59191
59192         VPATH fix.
59193         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59194
59195 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59196
59197         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59198         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59199
59200 2008-03-20  Eric Blake  <ebb9@byu.net>
59201
59202         Sync GNUmakefile with coreutils.
59203         * build-aux/GNUmakefile (have-Makefile): Rename...
59204         (_have-Makefile): ...to this, for namespace consideration.
59205         (GNUmakefile.cfg): Include, if present.
59206         (_autoreconf): Define a default.
59207         (_is-dist-target): New rule for rebuilds to pick up intra-release
59208         version.
59209         (maint-cfg.mk): Rename...
59210         (cfg.mk): ...to this.
59211
59212 2008-03-18  Jim Meyering  <meyering@redhat.com>
59213
59214         New script and module: mktempd
59215         * MODULES.html.sh (maint+release support): Add mktempd.
59216         * build-aux/mktempd: New file.
59217         * modules/mktempd: New file.
59218
59219 2008-03-15  Jim Meyering  <meyering@redhat.com>
59220
59221         Undo last change.
59222         * lib/sha1.c, lib/md5.c: 63 != ~63.
59223         Reported by Andreas Schwab.
59224
59225         sha1.c, md5.c: Hoist a redundant expression.
59226         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59227         "ctx->buflen" only once, before calling *_process_block.
59228         * lib/md5.c (md5_process_bytes): Likewise.
59229
59230 2008-03-14  Eric Blake  <ebb9@byu.net>
59231
59232         Bump copyright year in files generated by gnulib-tool.
59233         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59234         gnulib-tool, rather than hard-coding it.
59235
59236         Fix 'gnulib-tool --version' output to work with git.
59237         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59238         (startup): ...here.
59239         (func_version): Use it to invoke git-version-gen, rather than
59240         relying on CVS keyword expansion.  Modernize wording.
59241         (cvsdatestamp, last_checkin_date, version): Kill unused
59242         variables.
59243
59244 2008-03-12  Jim Meyering  <meyering@redhat.com>
59245
59246         Recognize optional cast of the argument to free.
59247         * build-aux/useless-if-before-free: Update regexps.
59248
59249         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59250
59251 2008-03-11  Bruno Haible  <bruno@clisp.org>
59252
59253         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59254         by a single package.
59255         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59256         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59257         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59258         Reported by Sam Steingold <sds@gnu.org>.
59259
59260 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59261
59262         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59263         repositories.
59264
59265 2008-03-11  Bruno Haible  <bruno@clisp.org>
59266
59267         Avoid conflicts between local macro definitions.
59268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59269         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59270
59271 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59272             Bruno Haible  <bruno@clisp.org>
59273
59274         Make va_copy work with some version of xlc on AIX 5.1.
59275         * lib/stdarg.in.h: New file.
59276         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59277         On AIX, use a <stdarg.h> file substitute.
59278         * modules/stdarg (Files): Add lib/stdarg.in.h.
59279         (Depends-on): Add include_next.
59280         (Makefile.am): Build a stdarg.h substitute if requested.
59281         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59282
59283 2008-03-10  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59287         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59288
59289 2008-03-10  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/stdlib (Depends-on): Add include_next, remove
59292         absolute-header.
59293
59294 2008-03-09  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/freadahead.h (freadahead): Document more precisely.
59297         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59298         the sum of both buffer sizes.
59299         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59300         * NEWS: Document the change.
59301
59302 2008-03-09  Bruno Haible  <bruno@clisp.org>
59303
59304         Extend freadptr to return also the buffer size.
59305         * lib/freadptr.h (freadptr): Add sizep argument.
59306         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59307         (freadptr): Add sizep argument. Determine buffer size like freadahead
59308         does.
59309         * tests/test-freadptr.c: Don't include freadahead.h.
59310         (main): Adapt for new calling convention of freadptr.
59311         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59312         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59313         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59314         tests/test-freadptr2.sh.
59315         (Depends): Remove freadahead.
59316         (TESTS): Add test-freadptr2.sh.
59317         (check_PROGRAMS): Add test-freadptr2.
59318
59319 2008-03-09  Bruno Haible  <bruno@clisp.org>
59320
59321         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59322         Report and solution by Simon Josefsson.
59323
59324 2008-03-06  Bruno Haible  <bruno@clisp.org>
59325
59326         Make fflush after ungetc work on BSD platforms.
59327         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59328         * tests/test-fflush2.c: New file.
59329         * tests/test-fflush2.sh: New file.
59330         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59331         tests/test-fflush2.c.
59332         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59333         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59334
59335 2008-03-06  Eric Blake  <ebb9@byu.net>
59336
59337         Likewise for ftello.
59338         * modules/ftello (Dependencies): Add extensions.
59339         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59340
59341 2008-03-06  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/fseeko (Dependencies): Add extensions.
59344         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59345         Needed on glibc systems.
59346
59347 2008-03-06  Bruno Haible  <bruno@clisp.org>
59348
59349         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59350         email address.
59351         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59352
59353 2008-03-06  Bruno Haible  <bruno@clisp.org>
59354
59355         * users.txt: Add libgnupdf.
59356
59357 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59358
59359         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59360         (Header File Substitutes, Function Substitutes,
59361         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59362         (Build robot for gnulib): Fix typo.
59363
59364 2008-03-06  Bruno Haible  <bruno@clisp.org>
59365
59366         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59367         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59368
59369 2008-03-06  Bruno Haible  <bruno@clisp.org>
59370
59371         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59372         * doc/gnulib.texi: Include it.
59373
59374 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59375
59376         * modules/func (License): Change license to unlimited; there was
59377         no LGPL parts in the module anyway.
59378
59379 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59380
59381         * modules/__func__: Renamed to modules/func.
59382         * modules/__func__-tests: Renamed to modules/func-tests.
59383         * tests/test-__func__.c: Renamed to tests/test-func.c.
59384         * m4/__func__.m4: Renamed to m4/func.m4.
59385         * doc/gnulib.texi (__func__): Section renamed to func.
59386         Suggested by Eric Blake <ebb9@byu.net>.
59387
59388 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59389
59390         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59391         about __func__.  Make example self-contained.  Suggested by Eric
59392         Blake <ebb9@byu.net>.
59393
59394         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59395         Suggested by Eric Blake <ebb9@byu.net>.
59396
59397 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59398
59399         * modules/__func__: New file.
59400         * modules/__func__-tests: New file.
59401         * tests/test-__func__.c: New file.
59402         * m4/__func__.m4: New file.
59403         * doc/gnulib.texi (__func__): Document __func__ module.
59404
59405 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59406
59407         * modules/byteswap (License): Re-license as LGPLv2+.
59408
59409 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59410
59411         * doc/Makefile: Add pdf target.
59412
59413 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59414
59415         * modules/inline (License): Use 'unlimited', since there are only
59416         *.m4 files in this module.
59417
59418 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59419             Bruno Haible  <bruno@clisp.org>
59420
59421         Add support for HP C 7.1 on OpenVMS 8.3.
59422         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59423
59424 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59425
59426         Update VMS specifics.
59427         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59428
59429 2008-03-02  Jim Meyering  <meyering@redhat.com>
59430
59431         Remove the last dependency on the "free" module.
59432         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59433         Reported by Bob Proulx.
59434
59435         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59436
59437         Remove useless "if" tests before free.  Deprecate "free" module.
59438         * doc/posix-functions/free.texi: Mention that this
59439         module is no longer useful.
59440         * modules/free (Notice): Say this module is obsolete.
59441         * modules/readutmp (Depends-on): Remove free.
59442         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59443         * lib/putenv.c (putenv): Likewise.
59444         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59445         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59446         * tests/test-c-strcasestr.c (main): Likewise.
59447         * tests/test-c-strstr.c (main): Likewise.
59448         * tests/test-mbscasestr1.c (main): Likewise.
59449         * tests/test-mbscasestr2.c (main): Likewise.
59450         * tests/test-mbsstr1.c (main): Likewise.
59451         * tests/test-mbsstr2.c (main): Likewise.
59452         * tests/test-memmem.c (main): Likewise.
59453         * tests/test-strcasestr.c (main): Likewise.
59454         * tests/test-striconv.c (main): Likewise.
59455         * tests/test-striconveh.c (main): Likewise.
59456         * tests/test-striconveha.c (main): Likewise.
59457         * tests/test-strstr.c (main): Likewise.
59458
59459         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59460
59461         bootstrap: sync from coreutils again
59462         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59463
59464 2008-03-01  Jim Meyering  <meyering@redhat.com>
59465
59466         bootstrap: sync from coreutils
59467         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59468         also when the target doesn't exist.
59469
59470 2008-03-01  Eric Blake  <ebb9@byu.net>
59471
59472         Fix bugs in last patch.
59473         * lib/memchr2.c (memchr2): Fix typo.
59474         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59475         extension.
59476         Reported by Bruce Korb.
59477
59478         New module 'memchr2'.
59479         * modules/memchr2: New file.
59480         * modules/memchr2-tests: Likewise.
59481         * lib/memchr2.h: Likewise.
59482         * lib/memchr2.c: Likewise, based on memchr.c.
59483         * tests/test-memchr2.c: New test.
59484         * MODULES.html.sh (String handling): Add memchr2.
59485
59486 2008-02-29  Bruno Haible  <bruno@clisp.org>
59487
59488         * modules/freadseek-tests: New file.
59489         * tests/test-freadseek.sh: New file.
59490         * tests/test-freadseek.c: New file.
59491
59492         New module 'freadseek'.
59493         * modules/freadseek: New file.
59494         * lib/freadseek.h: New file.
59495         * lib/freadseek.c: New file.
59496         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59497
59498 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59499
59500         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59501         wydawca.
59502
59503         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59504         program_invocation_name and program_invocation_short_name are
59505         present.
59506
59507 2008-02-28  Bruno Haible  <bruno@clisp.org>
59508
59509         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59510         * tests/test-freadptr.sh: Also test non-seekable stdin.
59511
59512 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59513
59514         * build-aux/bootstrap (source_base, m4_base)
59515         (doc_base, tests_base): New variables.
59516         (gnulib_tool_options): Do not hardcode base directories, use
59517         the above variables instead.
59518
59519 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59520
59521         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59522
59523 2008-02-28  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/freadptr-tests: New file.
59526         * tests/test-freadptr.sh: New file.
59527         * tests/test-freadptr.c: New file.
59528
59529         New module 'freadptr'.
59530         * modules/freadptr: New file.
59531         * lib/freadptr.h: New file.
59532         * lib/freadptr.c: New file.
59533         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59534
59535 2008-02-26  Karl Berry  <karl@freefriends.org>
59536
59537         Sync from Libtool:
59538         * libltdl/argz.c (argz_add, argz_count): New functions.
59539         * libltdl/argz.in.h: Declare them.
59540         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59541
59542 2008-02-22  Bruno Haible  <bruno@clisp.org>
59543
59544         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59545         is a pointer type.  Needed for HP-UX 10.
59546         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59547         * doc/posix-functions/gmtime_r.texi: Likewise.
59548         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59549
59550 2008-02-24  Bruno Haible  <bruno@clisp.org>
59551
59552         * modules/environ-tests: New file.
59553         * tests/test-environ.c: New file.
59554
59555         New module 'environ'.
59556         * modules/environ: New file.
59557         * lib/unistd.in.h (environ): New declaration.
59558         * m4/environ.m4: New file.
59559         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59560         after use.
59561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59562         HAVE_DECL_ENVIRON.
59563         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59564         HAVE_DECL_ENVIRON.
59565         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59566         wrong claim that 'environ' is missing on some systems.
59567         * modules/execute (Depends-on): Add environ.
59568         * lib/execute.c (environ): Remove fallback declaration.
59569         * modules/pipe (Depends-on): Add environ.
59570         * lib/pipe.c (environ): Remove fallback declaration.
59571         * modules/setenv (Depends-on): Add environ.
59572         * lib/setenv.c (environ): Remove fallback declaration.
59573         * modules/unsetenv (Depends-on): Add environ.
59574         * lib/unsetenv.c (environ): Remove fallback declaration.
59575         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59576         m4/environ.m4.
59577         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59578         (gl_PREREQ_UNSETENV): Likewise.
59579
59580 2008-02-24  Bruno Haible  <bruno@clisp.org>
59581
59582         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59583
59584 2008-02-20  Bob Proulx  <bob@proulx.com>
59585
59586         Enable use of older two part flavor 'git describe'.
59587         * build-aux/git-version-gen: If using the older two part flavor of
59588         git version then recreate the third part now present in the
59589         newer three part flavor of git describe.
59590
59591 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59592
59593         * lib/fts.c (fts_build): Typo correction to comment.
59594
59595 2008-02-17  Bruno Haible  <bruno@clisp.org>
59596
59597         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59598         generating no-op conflicts.
59599
59600 2008-02-17  Bruno Haible  <bruno@clisp.org>
59601
59602         Speed up by 10%.
59603         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59604         result_entries, rather than an index-based loop.
59605
59606 2008-02-17  Bruno Haible  <bruno@clisp.org>
59607
59608         Speed up by 25%.
59609         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59610         'hashcode_cached'.
59611         (entry_create): New function.
59612         (entry_hashcode): Use the cached hashcode if possible.
59613         (read_changelog_file, try_split_merged_entry): Use entry_create.
59614
59615 2008-02-17  Bruno Haible  <bruno@clisp.org>
59616
59617         Speed up from O(n^2) to O(n) for long ChangeLog files.
59618         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59619         (read_changelog_file): Change implementation of entries_reversed list
59620         to rbtreehash.
59621         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59622
59623 2008-02-17  Bruno Haible  <bruno@clisp.org>
59624
59625         New option --split-merged-entry.
59626         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59627         (find_paragraph_end, try_split_merged_entry): New functions.
59628         (long_options): Add option --split-merged-entry.
59629         (usage): Document option --split-merged-entry.
59630         (main): Implement option --split-merged-entry.
59631         Reported by Eric Blake.
59632
59633 2008-02-17  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/git-merge-changelog.c: Include c-strstr.h.
59636         (main): Support the "git pull --rebase" situation.
59637         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59638         Reported by Eric Blake.
59639
59640 2008-02-16  Eric Blake  <ebb9@byu.net>
59641
59642         Avoid doubling \ in common case of "c-maybe" quoting style.
59643         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59644         eliding outer quotes.
59645         * lib/quotearg.h: Document this.
59646         * tests/test-quotearg.c (result_strings, inputs, results_g)
59647         (flag_results, locale_results): Test it by adding a new string to
59648         each test group.
59649         (compare_strings): Test new string.
59650
59651 2008-02-13  Eric Blake  <ebb9@byu.net>
59652
59653         Avoid trigraph quoting in default output.
59654         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59655         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59656         unless explicitly requested.
59657         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59658
59659 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59660
59661         Don't rely on signed integer overflowing to negative value.
59662         * lib/getugroups.c (getugroups): Include <limits.h>.
59663         Instead, compare against INT_MAX, and increment only if the test passes.
59664
59665 2008-02-13  Jim Meyering  <meyering@redhat.com>
59666         and Eric Blake  <ebb9@byu.net>
59667
59668         Avoid shadowing warning and compile errors on Linux.
59669         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59670         forwarding macros on Linux.
59671         (dcgettext): Define a stub, for Linux.
59672         (results_g, main): Avoid warnings.
59673
59674 2008-02-12  Eric Blake  <ebb9@byu.net>
59675
59676         Silence warning in last patch.
59677         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59678
59679         Quotearg part 4: add tests, fix c-maybe colon quoting.
59680         * lib/quotearg.h: Improve documentation.
59681         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59682         escapes when adding outer quotes.  When quoting trigraphs, use
59683         valid C notation.  When quoting NUL, omit extra characters if next
59684         character is not digit.  Alter prototype.
59685         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59686         callers.
59687         * modules/quotearg-tests: New module.
59688         * tests/test-quotearg.c: New test.
59689
59690 2008-02-07  Eric Blake  <ebb9@byu.net>
59691
59692         Quotearg part 3: add flag to control outer quote elision.
59693         * lib/quotearg.h (c_maybe_quoting_style): New style.
59694         (enum quoting_flags): Better documentation of flags.
59695         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59696         c-maybe style.
59697         (quotearg_buffer_restyled): Handle new flag to elide outer
59698         quotes.
59699
59700         Quotearg part 2: add flag that can control NUL elision.
59701         * lib/quotearg.h (set_quoting_flags): New prototype.
59702         * lib/quotearg.c (struct quoting_options): Add flag field.
59703         (set_quoting_flags): New function.
59704         (quotearg_buffer_restyled): Add flags parameter.
59705         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59706         (quotearg_n_options): Set the flag, since length cannot be
59707         returned.
59708         (quoting_options_from_style): Default flags correctly.
59709
59710         Quotearg part 1: more wrappers, restore quotearg_char state.
59711         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59712         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59713         (quotearg_colon_mem): New wrappers.
59714         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59715         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59716         functions.
59717         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59718         (quotearg_colon_mem): New functions.
59719
59720 2008-02-11  Bruno Haible  <bruno@clisp.org>
59721
59722         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59723         library in the current directory: it does not work with parallel make.
59724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59725
59726 2008-02-11  Bruno Haible  <bruno@clisp.org>
59727
59728         * .gitattributes: New file.
59729
59730 2008-02-11  Jim Meyering  <meyering@redhat.com>
59731
59732         useless-if-before-free: Fix reversed exit values.
59733         * build-aux/useless-if-before-free: Use correct values
59734         for EXIT_MATCH and EXIT_NO_MATCH.
59735
59736         * build-aux/useless-if-before-free: Close stdout carefully.
59737
59738 2008-02-10  Bruno Haible  <bruno@clisp.org>
59739
59740         New module 'git-merge-changelog'.
59741         * modules/git-merge-changelog: New file.
59742         * lib/git-merge-changelog.c: New file.
59743
59744 2008-02-10  Jim Meyering  <meyering@redhat.com>
59745
59746         useless-if-before-free: New option: --list (-l).
59747
59748         useless-if-before-free: Don't exit immediately upon open failure.
59749         * build-aux/useless-if-before-free: Exit 2 for errors.
59750         Upon failure to open a file, don't exit immediately.
59751         Rather, just warn and continue with any remaining files.
59752
59753 2008-02-10  Bruno Haible  <bruno@clisp.org>
59754
59755         New abstract list operation 'node_set_value'.
59756         * lib/gl_list.h (gl_list_node_set_value): New function.
59757         (struct gl_list_implementation): New field node_set_value.
59758         * lib/gl_list.c (gl_list_node_set_value): New function.
59759         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59760         (gl_array_list_implementation): Update.
59761         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59762         (gl_carray_list_implementation): Update.
59763         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59764         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59765         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59766         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59767         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59768         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59769         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59770         Update.
59771         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59772         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59773         (gl_sublist_list_implementation): Update.
59774
59775 2008-02-10  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59778         Needed when ELEMENT is #defined to 'some_type *'.
59779
59780 2008-02-10  Jim Meyering  <meyering@redhat.com>
59781
59782         New script and module: useless-if-before-free
59783         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59784         * build-aux/useless-if-before-free: New file.
59785         * modules/useless-if-before-free: New file.
59786
59787         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59788
59789         xstrtol_error: Fix typo.
59790         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59791         s/exit_failure/exit_status/.
59792
59793 2008-02-09  Jim Meyering  <meyering@redhat.com>
59794
59795         New script and module: gitlog-to-changelog
59796         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59797         * modules/gitlog-to-changelog: New file.
59798         * build-aux/gitlog-to-changelog: New file.
59799
59800 2008-02-08  Jim Meyering  <meyering@redhat.com>
59801
59802         Avoid two "parameter unused" warnings.
59803         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59804         Mark "st" as used.
59805
59806         Use "git COMMAND", not "git-COMMAND".
59807         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59808         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59809         * build-aux/git-version-gen: Use "git status", not "git-status".
59810
59811 2008-02-07  Bruno Haible  <bruno@clisp.org>
59812
59813         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59814         Avoids a crash on Windows Vista.
59815         Reported by Adam Strzelecki <ono@java.pl> via
59816         Simon Josefsson <simon@josefsson.org>.
59817
59818 2008-02-06  Bruno Haible  <bruno@clisp.org>
59819
59820         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59821         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59822         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59824         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59826         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59827         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59835         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59836         left-adjust flag.
59837         * tests/test-snprintf-posix.h (test_function): Likewise.
59838         * tests/test-sprintf-posix.h (test_function): Likewise.
59839         * tests/test-vasprintf-posix.c (test_function): Likewise.
59840         * doc/posix-functions/fprintf.texi: Update.
59841         * doc/posix-functions/printf.texi: Update.
59842         * doc/posix-functions/snprintf.texi: Update.
59843         * doc/posix-functions/sprintf.texi: Update.
59844         * doc/posix-functions/vfprintf.texi: Update.
59845         * doc/posix-functions/vprintf.texi: Update.
59846         * doc/posix-functions/vsnprintf.texi: Update.
59847         * doc/posix-functions/vsprintf.texi: Update.
59848         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59849
59850 2008-02-06  Bruno Haible  <bruno@clisp.org>
59851
59852         Fix bug introduced on 2008-01-26.
59853         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59854
59855 2008-02-06  Bruno Haible  <bruno@clisp.org>
59856
59857         Fix bug introduced on 2007-06-10.
59858         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59859         !NEED_PRINTF_FLAG_ZERO.
59860
59861 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59862
59863         getloadavg: use libperfstat on AIX5
59864         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59865
59866 2008-02-03  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/diffseq.h: Add comments about required #includes.
59869         Reported by Michael Biggs <gnulib@doubleplum.net>.
59870
59871 2008-02-01  Bruno Haible  <bruno@clisp.org>
59872
59873         * users.txt: Add gnuit.
59874
59875 2008-01-31  Bruno Haible  <bruno@clisp.org>
59876
59877         * lib/md4.c (set_uint32): Mark as inline.
59878         * lib/md5.c (set_uint32): Likewise.
59879         * lib/sha1.c (set_uint32): Likewise.
59880         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59881         * m4/md5.m4 (gl_MD5): Likewise.
59882         * m4/sha1.m4 (gl_SHA1): Likewise.
59883
59884 2008-01-31  Jim Meyering  <meyering@redhat.com>
59885
59886         Use "sizeof VAR", rather than a literal "4".
59887         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59888         * lib/md4.c (md4_read_ctx): Likewise.
59889         * lib/sha1.c (sha1_read_ctx): Likewise.
59890
59891 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59892
59893         * tests/test-sha1.c: New file, based on test-md5.c.
59894
59895         * modules/crypto/sha1-tests: New file.
59896
59897 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59898
59899         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59900
59901 2008-01-31  Jim Meyering  <meyering@redhat.com>
59902
59903         Prefer "sizeof v" over the equivalent "4".
59904         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59905         * lib/md5.c (set_uint32): Likewise.
59906         * lib/sha1.c (set_uint32): Likewise.
59907
59908 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59909
59910         * lib/sha1.c (set_uint32): Mark function as static.
59911
59912 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59913
59914         md2: clarify comments to say that alignment is not required.
59915         * lib/md2.h: Remove warning about alignment in comment.
59916         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59917         never been required.
59918
59919 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59920
59921         md4: adapt alignment constraint fix from sha1.
59922         * lib/md4.c (set_uint32): New function, from sha1.c
59923         (md4_read_ctx): Use it.
59924         (md4_finish_ctx): Doc fix.
59925         * lib/md4.h: Doc fix.
59926
59927 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59928
59929         md5: adapt alignment constraint fix from sha1.
59930         * lib/md5.c (set_uint32): New function, from sha1.c
59931         (md5_read_ctx): Use it.
59932         (md5_finish_ctx): Doc fix.
59933         * lib/md5.h: Doc fix.
59934
59935 2008-01-30  Peter Palfrader  <weasel@debian.org>
59936
59937         sha1: remove the result buffer alignment constraint
59938         * lib/sha1.c (set_uint32): New function.
59939         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59940         constraint.
59941         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59942         * lib/sha1.h: Likewise.
59943
59944 2008-01-30  Andreas Schwab  <schwab@suse.de>
59945             Bruno Haible  <bruno@clisp.org>
59946
59947         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59948         correct definition of LDBL_MIN_EXP.
59949
59950 2008-01-30  Karl Berry  <karl@gnu.org>
59951
59952         * config/srclist-update: try to preserve x bit on updates.
59953         * config/srclistvars.sh: update for karl.
59954
59955 2008-01-29  Jim Meyering  <meyering@redhat.com>
59956
59957         vasnprintf.c: Avoid warning about unused label
59958         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59959         "overflow" label definition and associated code with the
59960         same cpp condition that guards the sole use of that label.
59961
59962 2008-01-26  Bruno Haible  <bruno@clisp.org>
59963
59964         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59965         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59966         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59967         * lib/isnanl-nolibm.h (isnanl): Likewise.
59968         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59969
59970 2008-01-26  Bruno Haible  <bruno@clisp.org>
59971
59972         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59973         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59974
59975 2008-01-26  Bruno Haible  <bruno@clisp.org>
59976
59977         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59978         GCC >= 4.0 built-in.
59979         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59980
59981 2008-01-26  Bruno Haible  <bruno@clisp.org>
59982
59983         Rename isnan, applicable to 'double' only, to isnand.
59984         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59985         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59986         (configure.ac): Update.
59987         (Include): Replace "isnan.h" with "isnand.h".
59988         * m4/isnand.m4: Renamed from m4/isnan.m4.
59989         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59990         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59991         instead of isnan.c.
59992         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59993         instead of HAVE_ISNAN_IN_LIBC.
59994         (isnand): Renamed from isnan.
59995         * lib/isnand.c: New file.
59996         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59997         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59998         (Makefile.am): Update.
59999         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60000         Include isnand.h instead of isnan.h.
60001         (main): Test isnand instead of isnan.
60002         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60003         isnan-nolibm.
60004         * modules/frexp (Depends-on): Likewise.
60005         * modules/frexp-tests (Depends-on): Likewise.
60006         * modules/frexp-nolibm (Depends-on): Likewise.
60007         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60008         * modules/isfinite (Depends-on): Likewise.
60009         * modules/round-tests (Depends-on): Likewise.
60010         * modules/signbit (Depends-on): Likewise.
60011         * modules/signbit-tests (Depends-on): Likewise.
60012         * modules/snprintf-posix (Depends-on): Likewise.
60013         * modules/sprintf-posix (Depends-on): Likewise.
60014         * modules/trunc-tests (Depends-on): Likewise.
60015         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60016         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60017         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60018         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60019         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60020         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60021         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60022         * modules/vasnprintf-posix (Depends-on): Likewise.
60023         * modules/vasprintf-posix (Depends-on): Likewise.
60024         * modules/vfprintf-posix (Depends-on): Likewise.
60025         * modules/vsnprintf-posix (Depends-on): Likewise.
60026         * modules/vsprintf-posix (Depends-on): Likewise.
60027         * lib/frexp.c: Include isnand.h instead of isnan.h.
60028         (ISNAN): Set to isnand instead of isnan.
60029         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60030         (gl_isfinited): Use isnand instead of isnan.
60031         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60032         (gl_signbitd): Use isnand instead of isnan.
60033         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60034         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60035         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60036         (main): Use isnand instead of isnan.
60037         * tests/test-round1.c: Include isnand.h.
60038         (main): Use isnand instead of isnan.
60039         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60040         (ISNAN): Set to isnand instead of isnan.
60041         * tests/test-trunc1.c: Include isnand.h.
60042         (main): Use isnand instead of isnan.
60043         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60044         (equal): Use isnand instead of isnan.
60045         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60046         isnand-nolibm.
60047         * NEWS: Mention the change.
60048
60049 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60050             Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60053         the GCC builtins for signbits are present and set
60054         REPLACE_SIGNBIT_USING_GCC if so.
60055         * lib/math.in.h (signbit): Define using GCC builtins if
60056         REPLACE_SIGNBIT_USING_GCC is set.
60057         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60058         REPLACE_SIGNBIT_USING_GCC.
60059         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60060
60061 2008-01-25  Jim Meyering  <meyering@redhat.com>
60062
60063         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60064         * lib/poll.c: Include <config.h>, not "config.h".
60065         * tests/test-getaddrinfo.c: Likewise.
60066
60067 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60068
60069         * modules/sockets-tests: New file.
60070
60071 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60072
60073         * modules/sockets: New module, can be used to call WSA_Startup and
60074         WSA_Cleanup when needed.
60075
60076         * lib/sockets.h, lib/sockets.c: New files.
60077
60078         * m4/sockets.m4: New file.
60079
60080         * tests/test-sockets.c: New file.
60081
60082 2008-01-19  Bruno Haible  <bruno@clisp.org>
60083
60084         * doc/posix-headers: Renamed from doc/headers.
60085         * doc/posix-functions: Renamed from doc/functions.
60086         * doc/gnulib.texi: Update.
60087
60088 2008-01-19  Bruno Haible  <bruno@clisp.org>
60089
60090         * doc/glibc-functions/strcasestr.texi: Include contents of
60091         doc/functions/strcasestr.texi, fixing the list of platforms.
60092         * doc/functions/strcasestr.texi: Remove file.
60093
60094 2008-01-19  Bruno Haible  <bruno@clisp.org>
60095
60096         * doc/glibc-functions/memmem.texi: Include contents of
60097         doc/functions/memmem.texi.
60098         * doc/functions/memmem.texi: Remove file.
60099
60100 2008-01-18  Bruno Haible  <bruno@clisp.org>
60101
60102         * doc/glibc-functions/*.texi: New files.
60103         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60104         to use the new files.
60105
60106 2008-01-17  Bruno Haible  <bruno@clisp.org>
60107
60108         * tests/test-gethostname.c (main): Fix printf statement.
60109
60110 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60111
60112         * modules/gethostname-tests: New file.
60113
60114         * tests/test-gethostname.c: New file.
60115
60116 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60117
60118         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60119         used by the UNAME case.  Reported by Bruno Haible
60120         <bruno@clisp.org>.
60121
60122 2008-01-17  Eric Blake  <ebb9@byu.net>
60123
60124         Convert c-strcasestr to be more efficient.
60125         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60126         (Depends-on): Add c-strcase, remove malloca, strnlen.
60127         * tests/test-c-strcasestr.c (main): Enhance test.
60128         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60129
60130 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60131
60132         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60133         Use it in creating po/Makevars.
60134
60135 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60136
60137         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60138         Applications that requires it should initialize libgcrypt
60139         manually.
60140
60141 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60142
60143         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60144
60145 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         Fix problem with getdate on mingw32 reported by Simon Josefsson
60148         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60149         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60150         tzname", when deciding whether to declare tzname.
60151         * lib/strftime.c (tzname): Likewise.
60152
60153 2008-01-15  Bruno Haible  <bruno@clisp.org>
60154
60155         Work around a MacOS X 10.5 bug in frexpl().
60156         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60157         * doc/functions/frexpl.texi: Document the bug.
60158         Reported by Elias Pipping <pipping@gentoo.org>.
60159
60160 2008-01-14  Eric Blake  <ebb9@byu.net>
60161
60162         Touch up previous patch.
60163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60164         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60165
60166         Convert strcasestr module to use Two-Way algorithm.
60167         * modules/strcasestr-simple: New module, based on the old
60168         strcasestr, but with Two-Way rather than KMP.
60169         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60170         * lib/string.in.h (rpl_strcasestr): Declare.
60171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60172         performance.
60173         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60174         * modules/string (Makefile.am): Support strcasestr.
60175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60176         * modules/strcasestr-tests (Depends-on): Check for alarm.
60177         * tests/test-strcasestr.c: Augment test.
60178         * lib/str-two-way.h: Clean up stray macro.
60179         * NEWS: Document new module.
60180         * MODULES.html.sh (string handling): Likewise.
60181         * doc/functions/strcasestr.texi: New file.
60182         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60183         here, since it is not a POSIX function.
60184
60185 2008-01-14  Colin Watson  <cjwatson@debian.org>
60186             Bruno Haible  <bruno@clisp.org>
60187
60188         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60189         works fine; if not, set REPLACE_STRSIGNAL.
60190         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60192         REPLACE_STRSIGNAL.
60193         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60194         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60195         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60196
60197 2008-01-14  Bruno Haible  <bruno@clisp.org>
60198
60199         * modules/strsignal (Include): Change to <string.h>.
60200
60201 2008-01-14  Colin Watson  <cjwatson@debian.org>
60202
60203         * modules/argp (Notice): Add a notice recommending to change
60204         XGETTEXT_OPTIONS.
60205         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60206
60207 2008-01-13  Colin Watson  <cjwatson@debian.org>
60208
60209         * modules/strsignal-tests: New file.
60210         * tests/test-strsignal.c: New file.
60211
60212         * lib/strsignal.c: New file, from glibc with modifications.
60213         * lib/siglist.h: New file, from glibc with modifications.
60214         * lib/string.in.h (strsignal): New declaration.
60215         * m4/strsignal.m4: New file.
60216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60217         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60218         * modules/strsignal: New file.
60219         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60220         HAVE_DECL_STRSIGNAL.
60221
60222 2008-01-13  Bruno Haible  <bruno@clisp.org>
60223
60224         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60225         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60226         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60228
60229 2008-01-13  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60232         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60233         * lib/argp.h (__attribute__): Likewise.
60234         * lib/c-stack.c (__attribute__): Likewise.
60235         * lib/error.h (__attribute__): Likewise.
60236         * lib/fts.c (__attribute__): Likewise.
60237         * lib/openat.h (__attribute__): Likewise.
60238         * lib/stdio.in.h (__attribute__): Likewise.
60239         * lib/string.in.h (__attribute__): Likewise.
60240         * lib/utimens.c (__attribute__): Likewise.
60241         * lib/vasnprintf.h (__attribute__): Likewise.
60242         * lib/xalloc.h (__attribute__): Likewise.
60243         * lib/xprintf.h (__attribute__): Likewise.
60244         * lib/xstrtol.h (__attribute__): Likewise.
60245         * lib/xvasprintf.h (__attribute__): Likewise.
60246
60247 2008-01-12  Bruno Haible  <bruno@clisp.org>
60248
60249         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60250         * doc/glibc-headers/a.out.texi: New file.
60251         * doc/glibc-headers/aliases.texi: New file.
60252         * doc/glibc-headers/alloca.texi: New file.
60253         * doc/glibc-headers/ar.texi: New file.
60254         * doc/glibc-headers/argp.texi: New file.
60255         * doc/glibc-headers/argz.texi: New file.
60256         * doc/glibc-headers/byteswap.texi: New file.
60257         * doc/glibc-headers/crypt.texi: New file.
60258         * doc/glibc-headers/endian.texi: New file.
60259         * doc/glibc-headers/envz.texi: New file.
60260         * doc/glibc-headers/err.texi: New file.
60261         * doc/glibc-headers/error.texi: New file.
60262         * doc/glibc-headers/execinfo.texi: New file.
60263         * doc/glibc-headers/fpu_control.texi: New file.
60264         * doc/glibc-headers/fstab.texi: New file.
60265         * doc/glibc-headers/fts.texi: New file.
60266         * doc/glibc-headers/getopt.texi: New file.
60267         * doc/glibc-headers/ieee754.texi: New file.
60268         * doc/glibc-headers/ifaddrs.texi: New file.
60269         * doc/glibc-headers/libintl.texi: New file.
60270         * doc/glibc-headers/mcheck.texi: New file.
60271         * doc/glibc-headers/mntent.texi: New file.
60272         * doc/glibc-headers/obstack.texi: New file.
60273         * doc/glibc-headers/paths.texi: New file.
60274         * doc/glibc-headers/printf.texi: New file.
60275         * doc/glibc-headers/pty.texi: New file.
60276         * doc/glibc-headers/resolv.texi: New file.
60277         * doc/glibc-headers/shadow.texi: New file.
60278         * doc/glibc-headers/sysexits.texi: New file.
60279         * doc/glibc-headers/ttyent.texi: New file.
60280
60281 2008-01-12  Jim Meyering  <meyering@redhat.com>
60282
60283         announce-gen: emit Gnulib's git-based version string.
60284         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60285         New option --gnulib-version=V, where V is expected to be
60286         the output of running git describe in the gnulib directory.
60287         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60288         not useful, and plan to stop publishing an xdelta file with each
60289         coreutils release.
60290
60291         * build-aux/announce-gen: Also check for lzma-compressed files.
60292
60293 2008-01-11  Bruno Haible  <bruno@clisp.org>
60294
60295         * tests/test-memmem.c (main): Increase maximum allowed time.
60296         * tests/test-strstr.c (main): Likewise.
60297
60298 2008-01-11  Bruno Haible  <bruno@clisp.org>
60299
60300         * doc/functions/memmem.texi: Add more precisions about platforms.
60301         * doc/functions/strstr.texi: Likewise.
60302
60303 2008-01-10  Eric Blake  <ebb9@byu.net>
60304
60305         * m4/strstr.m4: Delete cruft from copy-n-paste.
60306         Reported by Bruno Haible.
60307
60308 2008-01-10  Bruno Haible  <bruno@clisp.org>
60309
60310         Make c-strstr rely on strstr.
60311         * lib/c-strstr.c: Don't include str-kmp.h.
60312         (c_strstr): Define in terms of strstr.
60313         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60314         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60315
60316 2008-01-10  Bruno Haible  <bruno@clisp.org>
60317
60318         * doc/gnulib.texi (String Functions in C Locale): New section.
60319         * doc/c-ctype.texi: New file.
60320         * doc/c-strcase.texi: New file.
60321         * doc/c-strcaseeq.texi: New file.
60322         * doc/c-strcasestr.texi: New file.
60323         * doc/c-strstr.texi: New file.
60324         * doc/c-strtod.texi: New file.
60325         * doc/c-strtold.texi: New file.
60326
60327 2008-01-10  Eric Blake  <ebb9@byu.net>
60328
60329         * lib/relocatable.h: Fix a comment.
60330
60331 2008-01-10  Eric Blake  <ebb9@byu.net>
60332
60333         Share two-way algorithm.
60334         * lib/str-two-way.h: New file, merged from...
60335         * lib/memmem.c: ...here...
60336         * lib/strstr.c: ...and here.
60337         * modules/memmem (Files): Use it.
60338         * modules/strstr (Files): Likewise.
60339
60340         Avoid quadratic strstr implementations.
60341         * lib/strstr.c: New file.
60342         * m4/strstr.m4: Likewise.
60343         * modules/strstr: Likewise.
60344         * modules/strstr-tests: Likewise.
60345         * tests/test-strstr.c: Likewise.
60346         * lib/string.in.h (rpl_strstr): Declare.
60347         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60348         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60349         * modules/string (Makefile.am): Likewise.
60350         * MODULES.html.sh (string handling): Mention new module.
60351         * doc/functions/strstr.texi (strstr): Document the bug.
60352
60353 2008-01-10  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/relocatable.h (relocate): State whether result is freshly
60356         allocated or not.
60357         * lib/relocatable.c (relocate): Return a freshly allocated string
60358         instead of a pointer to a privately held string.
60359         Reported by Sylvain Beucler <beuc@gnu.org>.
60360
60361 2008-01-10  Colin Watson  <cjwatson@debian.org>
60362
60363         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60364         s/S_ISNLK/S_ISLNK/.
60365
60366 2008-01-09  Bruno Haible  <bruno@clisp.org>
60367
60368         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60369         and other files.
60370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60371         if it's only a guess.
60372         * modules/memmem: Simplify by depending on memmem-simple.
60373
60374 2008-01-09  Bruno Haible  <bruno@clisp.org>
60375
60376         Work around OpenBSD 4.0 tdelete() bug.
60377         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60378         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60379         macros and don't redefine the enum values.
60380         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60381         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60382         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60383
60384 2008-01-09  Bruno Haible  <bruno@clisp.org>
60385
60386         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60387         (main): Don't perform the tests if setlocale did not install a UTF-8
60388         locale. Needed on OpenBSD 4.0.
60389         * modules/wcwidth-tests (Depends-on): Add localcharset.
60390
60391 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60394         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60395         * NEWS: announce this.
60396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60397
60398 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60399         and Eric Blake  <ebb9@byu.net>
60400
60401         Add memmem-simple module.
60402         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60403         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60404         * modules/memmem-simple: New file.
60405         * modules/memmem (Description): Tweak.
60406         * MODULES.html.sh (string handling): Mention new module.
60407         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60408         addressed by memmem-simple.
60409         * NEWS: Document the difference.
60410
60411 2008-01-09  Eric Blake  <ebb9@byu.net>
60412
60413         Give gcc some memmem optimization hints.
60414         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60415         (strcasestr): Declare as pure.
60416         * modules/memmem (Maintainer): Claim my implementation.
60417
60418 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60419
60420         Support AIX 6.1 and higher.
60421         * build-aux/config.libpath: Likewise.
60422         * build-aux/config.rpath: Likewise.
60423
60424 2008-01-08  Jim Meyering  <meyering@redhat.com>
60425             Bruno Haible  <bruno@clisp.org>
60426
60427         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60428         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60429         Reported by Peter Fales in
60430         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60431
60432 2008-01-08  Bruno Haible  <bruno@clisp.org>
60433
60434         * modules/unictype/category-of (Depends-on): Add
60435         unictype/category-none.
60436         * modules/unictype/category-and-tests (Depends-on): Add
60437         unictype/category-{L,N,Lu,Nd}.
60438         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60439         * modules/unictype/category-or-tests (Depends-on): Add
60440         unictype/category-{L,N}.
60441         * modules/unictype/category-name-tests (Depends-on): Add
60442         unictype/category-{Z,Nl}.
60443         Reported by Simon Josefsson.
60444
60445 2008-01-08  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60448         convention better.
60449         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60450         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60451         Reported by Peter Miller <millerp@canb.auug.org.au>.
60452
60453 2008-01-08  Eric Blake  <ebb9@byu.net>
60454
60455         Rewrite memmem to guarantee linear complexity without malloc.
60456         * lib/memmem.c (memmem): Use Two-Way rather than
60457         Knuth-Morris-Pratt, to allow O(1) space usage.
60458         (critical_factorization, two_way_short_needle)
60459         (two_way_long_needle): New functions.
60460         (knuth_morris_pratt): Delete.
60461         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60462         Add stdint.
60463         * tests/test-memmem.c (main): Add tests for periodic needle and
60464         sublinear performance.
60465         * doc/functions/memmem.texi (memmem): Document other deficiencies
60466         in cygwin and older glibc.
60467
60468 2008-01-08  Bruno Haible  <bruno@clisp.org>
60469
60470         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60471         augmentation.
60472
60473 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60474
60475         Add a configure time option: --disable-acl.
60476         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60477         AC_ARG_ENABLE(acl).
60478
60479 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60480
60481         * tests/test-localename.c: Don't include obsolete "setenv.h".
60482
60483         * modules/localename-tests (Depends-on): Need unsetenv.
60484
60485 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60486
60487         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60488
60489 2008-01-06  Colin Watson  <cjwatson@debian.org>
60490
60491         * users.txt: Add man-db.
60492
60493 2008-01-07  Bruno Haible  <bruno@clisp.org>
60494
60495         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60496         previous section name.
60497
60498 2008-01-07  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/progname.c (set_program_name): Don't strip off a leading
60501         "lt-" prefix outside a .libs directory.
60502         Suggested by Paul Eggert.
60503
60504 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60505             Bruno Haible  <bruno@clisp.org>
60506
60507         Improve memory cleanup in 'relocatable' module.
60508         * lib/relocatable.h (compute_curr_prefix): Change return type to
60509         'char *'.
60510         * lib/relocatable.c (compute_curr_prefix): Change return type to
60511         'char *'. Free curr_installdir after use.
60512         (relocate): Free curr_prefix_better after use.
60513         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60514
60515 2008-01-01  Bruno Haible  <bruno@clisp.org>
60516
60517         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60518         failure on older glibc systems.
60519         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60520
60521 2008-01-05  Eric Blake  <ebb9@byu.net>
60522
60523         Avoid quadratic system memmem.
60524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60525         Reported by Ralf Wildenhues.
60526
60527         Fix memmem test for mingw.
60528         * modules/memmem-tests (configure.ac): Check for alarm.
60529         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60530         it.
60531         * doc/functions/memmem.texi: New file.
60532         * doc/gnulib.texi (Function Substitutes): Add memmem.
60533         Reported by Bruno Haible.
60534
60535 2008-01-04  Bruno Haible  <bruno@clisp.org>
60536
60537         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60538         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60539         gl_HEADER_STRING_H_DEFAULTS.
60540
60541 2008-01-04  Eric Blake  <ebb9@byu.net>
60542
60543         Shorten duration of memmem test.
60544         * tests/test-memmem.c (main): Use alarm to declare failure if test
60545         is taking too long.
60546         Reported by Ralf Wildenhues.
60547
60548 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60549
60550         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60551         string, needed by strerror.
60552
60553 2008-01-03  Colin Watson  <cjwatson@debian.org>
60554             Bruno Haible  <bruno@clisp.org>
60555
60556         * doc/gnulib-tool.texi (Localization): New section.
60557
60558 2008-01-02  Bruno Haible  <bruno@clisp.org>
60559
60560         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60561         variables to 'unsigned char *' type.
60562         Reported by Paul Eggert.
60563
60564 2008-01-02  Jim Meyering  <jim@meyering.net>
60565
60566         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60567
60568 2007-12-31  Jim Meyering  <jim@meyering.net>
60569
60570         Avoid use of private FTS type name.
60571         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60572
60573 2007-12-30  Karl Berry  <karl@gnu.org>
60574
60575         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60576         work around defect in Texinfo and/or the standalone Info browser.
60577
60578 2007-12-30  Bruno Haible  <bruno@clisp.org>
60579
60580         Unify 5 copies of the KMP code.
60581         * lib/str-kmp.h: New file.
60582         * lib/c-strcasestr.c: Include str-kmp.h.
60583         (knuth_morris_pratt): Remove function.
60584         (c_strcasestr): Update.
60585         * lib/c-strstr.c: Include str-kmp.h.
60586         (knuth_morris_pratt): Remove function.
60587         (c_strcasestr): Update.
60588         * lib/mbscasestr.c: Include str-kmp.h.
60589         (knuth_morris_pratt_unibyte): Remove function.
60590         * lib/mbsstr.c: Include str-kmp.h.
60591         (knuth_morris_pratt_unibyte): Remove function.
60592         * lib/strcasestr.c: Include str-kmp.h.
60593         (knuth_morris_pratt): Remove function.
60594         (strcasestr): Update.
60595         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60596         * modules/c-strstr (Files): Likewise.
60597         * modules/mbscasestr (Files): Likewise.
60598         * modules/mbsstr (Files): Likewise.
60599         * modules/strcasestr (Files): Likewise.
60600         Suggested by Paul Eggert.
60601
60602 2007-12-30  Bruno Haible  <bruno@clisp.org>
60603
60604         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60605         defined.
60606
60607 2007-12-30  Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/xmalloca.h: Include xalloc.h.
60610         (xnmalloca): New macro.
60611
60612 2007-12-30  Bruno Haible  <bruno@clisp.org>
60613
60614         * lib/malloca.h (nmalloca): New macro.
60615         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60616         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60617         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60618         knuth_morris_pratt_multibyte): Likewise.
60619         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60620         knuth_morris_pratt_multibyte): Likewise.
60621         * lib/memmem.c (knuth_morris_pratt): Likewise.
60622         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60623
60624 2007-12-25  Bruno Haible  <bruno@clisp.org>
60625
60626         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60627         * lib/glob.c: Don't include openat.h.
60628         (link_exists2_p): Add back the code that deals with the
60629         !GLOB_ALTDIRFUNC case.
60630         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60631         let it do the filename concatenation.
60632         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60633         * modules/glob (Depends-on): Remove openat.
60634
60635 2007-12-31  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/dirfd (License): Change to LGPLv2+.
60638         Approved by Jim Meyering.
60639
60640 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60643         when multiplying M by sizeof (size_t).
60644
60645 2007-12-10  Martin Lambers  <marlam@marlam.de>
60646
60647         Override getpagesize on mingw.
60648         * lib/getpagesize.c: New file.
60649         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60650         * modules/getpagesize (Files): Add lib/getpagesize.c.
60651         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60653         REPLACE_GETPAGESIZE.
60654         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60655
60656 2007-12-25  Bruno Haible  <bruno@clisp.org>
60657
60658         * modules/localcharset (Notice): New field.
60659         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60660         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60661
60662 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60663             Bruno Haible  <bruno@clisp.org>
60664
60665         Avoid using the syntax symbol() in formatted documentation.
60666         * MODULES.html.sh (func_module): When replacing symbol() with a
60667         hyperlink, remove the parentheses. Show an error if some remain.
60668         Recognize and render the '...' syntax.
60669         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60670         Rework. Add paragraph about GCC's inlining.
60671         * doc/alloca.texi: Likewise.
60672         * doc/error.texi: Remove parentheses from symbol reference.
60673         * doc/gnulib-intro.texi: Likewise.
60674         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60675         * modules/fnmatch (Description): Reword to say "the ... function".
60676         * modules/full-read (Description): Likewise.
60677         * modules/full-write (Description): Likewise.
60678         * modules/safe-read (Description): Likewise.
60679         * modules/safe-write (Description): Likewise.
60680         * modules/strchrnul (Description): Likewise.
60681         * modules/trim (Description): Likewise.
60682         * modules/error (Description): Remove parentheses from symbol
60683         references.
60684         * modules/verror (Description): Likewise.
60685         Reported by Karl Berry.
60686
60687 2007-12-25  Bruno Haible  <bruno@clisp.org>
60688
60689         Fixup after 2007-10-16 commit.
60690         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60691
60692 2007-12-24  Bruno Haible  <bruno@clisp.org>
60693
60694         Make --enable-relocatable work with DESTDIR.
60695         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60696         to compute installdir from destprog.
60697         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60698         also set the RELOC_DESTDIR variable.
60699         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60700
60701 2007-12-24  Bruno Haible  <bruno@clisp.org>
60702
60703         Fix link error due to xalloc_die().
60704         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60705         of xreadlink.
60706         * lib/relocwrapper.c: Update comments.
60707         * build-aux/install-reloc: Remove xreadlink.c from file list.
60708         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60709         xreadlink.c.
60710         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60711
60712 2007-12-24  Bruno Haible  <bruno@clisp.org>
60713
60714         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60715         * lib/setenv.h: Remove file.
60716         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60717         lib/setenv.h.
60718         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60719         (Depends-on): Add stdlib.
60720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60721         gl_FUNC_UNSETENV.
60722         (Include): Replace setenv.h with <stdlib.h>.
60723         * modules/unsetenv: New file.
60724         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60725         * lib/unsetenv.c: Include <stdlib.h> first.
60726         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60727         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60728         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60729         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60730         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60731         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60733         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60734         * doc/functions/unsetenv.texi: Update.
60735         * modules/xsetenv (Depends-on): Add unsetenv.
60736         * modules/getdate (Depends-on): Likewise.
60737         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60738         * lib/xsetenv.c: Don't include setenv.h.
60739         * lib/getdate.y: Likewise.
60740         * lib/relocwrapper.c: Likewise.
60741         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60742         (Depends-on): Add stdlib.
60743         * NEWS: Mention the changes.
60744         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60745
60746 2007-12-23  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60749         indentation.
60750
60751 2007-12-23  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/c-strcasestr.c: Add more comments.
60754         * lib/c-strstr.c: Likewise.
60755         * lib/mbscasestr.c: Likewise.
60756         * lib/mbsstr.c: Likewise.
60757         * lib/strcasestr.c: Likewise.
60758         * lib/memmem.c: Likewise.
60759
60760 2007-12-23  Bruno Haible  <bruno@clisp.org>
60761
60762         * tests/test-memmem.c: Include <string.h> first.
60763
60764 2007-12-22  Bruno Haible  <bruno@clisp.org>
60765
60766         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60767         the contents of $testsbase.
60768         Reported by Ralf Wildenhues.
60769
60770 2007-12-22  Bruno Haible  <bruno@clisp.org>
60771
60772         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60773         two variables local_ldadd_before, local_ldadd_last.
60774
60775 2007-12-20  Eric Blake  <ebb9@byu.net>
60776
60777         Work around circular library issue when cross-compiling.
60778         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60779         that progname.o does not need to pull in rpl_memcmp.
60780
60781 2007-12-19  Eric Blake  <ebb9@byu.net>
60782
60783         Fix memmem to avoid O(n^2) worst-case complexity.
60784         * lib/memmem.c (knuth_morris_pratt): New function.
60785         (memmem): Use it if first few naive iterations fail.
60786         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60787         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60788         * modules/memchr (License): Likewise.
60789         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60790         malloca.
60791         * tests/test-memmem.c: Rewrite, borrowing ideas from
60792         test-mbsstr1.c; the old version wouldn't even compile!
60793         * modules/memmem-tests: New file.
60794         * lib/string.in.h (rpl_memmem): Add declaration.
60795         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60797         REPLACE_MEMMEM.
60798
60799 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60800
60801         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60802         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60803         before any system include files, and undef after them all.  This
60804         should fix a problem on VMS reported by John E. Malmberg in
60805         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60806
60807 2007-12-17  Eric Blake  <ebb9@byu.net>
60808
60809         Revert addition of verify, for BSD/OS.
60810         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60811         can't handle large files, for the sake of obsolete platforms.
60812         * modules/fseeko (Depends-on): Remove verify.
60813         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60814         * doc/functions/ftello.texi (ftello): Likewise.
60815         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60816         Reported by Larry Jones.
60817
60818 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60819
60820         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60821         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60822
60823 2007-12-17  Jim Meyering  <meyering@redhat.com>
60824
60825         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60826         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60827         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60828         * modules/getcwd (Depends-on): Add openat.
60829         Reported by Petr Salinger.
60830
60831 2007-12-17  Bruno Haible  <bruno@clisp.org>
60832
60833         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60834         avoid a segmentation fault of the configure test on x86_64 systems.
60835
60836 2007-12-15  Jim Meyering  <meyering@redhat.com>
60837
60838         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60839
60840 2007-12-13  Eric Blake  <ebb9@byu.net>
60841
60842         Another fseek test.
60843         * tests/test-fseek.c (main): Also test ungetc handling.
60844         * tests/test-fseeko.c (main): Likewise.
60845         * modules/fseeko (Depends-on): Add verify.
60846         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60847         large.
60848         Reported by Larry Jones.
60849
60850         Fix fseeko on mingw.
60851         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60852         seek.
60853
60854         Beef up fseek tests.
60855         * tests/test-fseek.c (main): Also test eof handling.
60856         * tests/test-fseeko.c (main): Likewise.
60857         Reported by Larry Jones.
60858
60859 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60860
60861         Fix fseeko on BSD-based platforms.
60862         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60863         successful seek.
60864
60865 2007-12-12  Eric Blake  <ebb9@byu.net>
60866
60867         Allow circular dependency of separate libtests.a
60868         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60869         when use_libtests.
60870
60871 2007-12-11  Eric Blake  <ebb9@byu.net>
60872
60873         Fix bug with -0.0L in previous patch.
60874         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60875         * tests/test-isnan.c (main): Also test on zeroes.
60876         * tests/test-isnanf.c (main): Likewise.
60877         * tests/test-isnanl.h (main): Likewise.
60878
60879         Detect pseudo-denormals on x86 even when cross-compiling.
60880         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60881         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60882         invalid bit patterns that happen to satisfy ==.
60883
60884         Avoid link failures with separate libtests.a.
60885         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60886         last, to satisfy circular dependencies.
60887
60888 2007-12-11  Eric Blake  <ebb9@byu.net>
60889         and Bruno Haible  <bruno@clisp.org>
60890
60891         Fix OpenBSD 4.0 <float.h> handling of long double.
60892         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60893         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60894         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60895
60896 2007-12-11  Jim Meyering  <meyering@redhat.com>
60897
60898         * users.txt: Add libvirt.
60899
60900         Support versions of autoconf prior to 2.59c.
60901         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60902         if it is not already defined.
60903
60904 2007-12-09  Bruno Haible  <bruno@clisp.org>
60905
60906         Let 'gnulib-tool --import' collect sources needed for the tests in
60907         tests/ rather than in lib/.
60908         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60909         argument. If true, add rules to generate libtests.a, and put libtests.a
60910         into $(LDADD). Consider source files in subdirectories and set
60911         uses_subdirs.
60912         (func_emit_initmacro_start, func_emit_initmacro_end,
60913         func_emit_initmacro_done): Pass all arguments explicitly.
60914         (func_import): Determine two module lists main_modules,
60915         testsrelated_modules. Determine use_libtests. Determine two variables
60916         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60917         instead of just sed_transform_lib_file. Determine two variables
60918         main_files and testsrelated_files. Compute 'files' as the union of
60919         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60920         func_add_or_update. In the generated gnulib-comp.m4, collect the
60921         object files for tests/ in different variables than those for lib/.
60922         Substitute LIBTESTS_LIBDEPS.
60923         (func_create_testdir): Combine the uses_subdirs results from
60924         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60925
60926 2007-12-09  Bruno Haible  <bruno@clisp.org>
60927
60928         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60929         the build-aux directory.
60930
60931 2007-12-09  Bruno Haible  <bruno@clisp.org>
60932
60933         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60934         introduced on 2006-09-09.
60935
60936 2007-12-07  Jim Meyering  <meyering@redhat.com>
60937
60938         Let these macros work also with autoconf-2.59.
60939         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60940         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60941         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60942
60943 2007-12-06  Jim Meyering  <meyering@redhat.com>
60944
60945         Avoid a configure-time syntax error in gl_FUNC_ACL.
60946         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60947         function in each branch, before testing the cache variable.
60948
60949 2007-12-04  Eric Blake  <ebb9@byu.net>
60950
60951         Make scripts executable.
60952         * build-aux/config.guess: Add execute permissions.
60953         * build-aux/config.sub: Likewise.
60954         * build-aux/gendocs.sh: Likewise.
60955
60956         Fix frexp on mingw.
60957         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60958         cross-compiling.
60959         * doc/functions/frexp.texi (frexp): Document the bug.
60960
60961         Make cygwin fseeko check more reliable.
60962         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60963         version numbers, rather than unrelated feature check.
60964         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60965         * doc/functions/ftello.texi (ftello): Likewise.
60966         Reported by Bruno Haible.
60967
60968         * m4/strerror.m4: Bump version number.
60969
60970 2007-12-03  Bruno Haible  <bruno@clisp.org>
60971
60972         * doc/functions/mprotect.texi: Mention the mingw problem.
60973
60974 2007-12-03  Eric Blake  <ebb9@byu.net>
60975
60976         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60977         REPLACE_STRERROR is initialized before this macro.
60978
60979 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60982         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60983         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60984         put -lsec in even for programs other than 'ls'.  This fixes a problem
60985         for gettext reported by Bruno Haible in
60986         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60987         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60988         Add support for Solaris 10.  This isn't efficient, but should get the
60989         job done for now.
60990
60991 2007-12-03  James Youngman  <jay@gnu.org>
60992
60993         * doc/regexprops-generic.texi: change "an close-group" to "a
60994         close-group" and "illegal" to "not allowed".
60995
60996 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60997
60998         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60999         pr_byname.h. Needed for the rare case when the maintainer has done
61000         "make maintainer-clean" in the source directory and then attempts a
61001         build outside the source directory.
61002         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61003         scripts_byname.h.
61004
61005 2007-12-02  Martin Lambers <marlam@marlam.de>
61006             Bruno Haible  <bruno@clisp.org>
61007
61008         * lib/getpagesize.h: Remove file.
61009         * lib/unistd.in.h: Include declaration of getpagesize here.
61010         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61011         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61012         HAVE_SYS_PARAM_H.
61013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61014         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61015         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61016         (Depends-on): Add unistd.
61017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61018         (Include): Use <unistd.h> instead of getpagesize.h.
61019         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61020         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61021         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61022         gl_GETPAGESIZE invocation, already handled by module dependency.
61023         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61024
61025 2007-12-02  Bruno Haible  <bruno@clisp.org>
61026
61027         * modules/strings-tests: New file.
61028         * tests/test-strings.c: New file.
61029
61030         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61031         * lib/strings.in.h: New file.
61032         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61033         * m4/strings_h.m4: New file.
61034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61035         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61036         * modules/strings: New file.
61037         * modules/string (Makefile.am): Update.
61038         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61039         Reported by Karl Berry.
61040
61041 2007-12-01  Eric Blake  <ebb9@byu.net>
61042
61043         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61044         accommodate fix in cygwin 1.5.25.
61045
61046 2007-12-01  Jim Meyering  <meyering@redhat.com>
61047
61048         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61049         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61050         that would inhibit utf8-optimization of a regexp containing line-
61051         or buffer-anchors, e.g., `^', `$'.
61052
61053 2007-11-30  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61056         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61057         glthread_recursive_lock_init.
61058         * lib/lock.c (glthread_recursive_lock_init)
61059         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61060         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61061
61062 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         New function qset_acl, like set_acl but with syscall semantics.
61065         * lib/acl.h (qset_acl): New decl.
61066         * lib/acl.c (qset_acl): New function.
61067         (set_acl): Use new function.  Use more-consistent diagnostics.
61068
61069 2007-11-28  Jim Meyering  <meyering@redhat.com>
61070
61071         * modules/physmem (License): Change from GPL to LGPLv2+.
61072
61073 2007-11-26  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61076         'long double' type has excess precision.
61077         Reported by Jim Meyering in
61078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61079
61080 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61081
61082         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61083         Sync from <http://gnu.org/licenses>.
61084         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61085         with license text from same location.
61086         * doc/maintain.texi, doc/standards.texi:  Sync from
61087         <http://savannah.gnu.org/projects/gnustandards>.
61088
61089 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61090         and Jim Meyering  <meyering@redhat.com>
61091
61092         Adjust getdate' grammar to accept a slightly more regular language.
61093         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61094         Before, the former was rejected.
61095         * lib/getdate.y (digits_to_date_time): New function, factored
61096         out of ...
61097         (number): ...here.  Just call digits_to_date_time.
61098         (hybrid): New non-terminal to handle an <unsigned number,
61099         signed relative offset> sequence consistently.
61100
61101 2007-11-18  Jim Meyering  <meyering@redhat.com>
61102
61103         Pull my changes from coreutils:
61104         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61105         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61106         use of $gnulib_tool_option_extras, so that it's separated from the
61107         preceding argument.
61108
61109         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61110         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61111         parent destination directories before copying a file into place.
61112
61113 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61114
61115         bootstrap: work also with 4-argument variant of AC_INIT
61116         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61117
61118 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61119
61120         Port test-getaddrinfo to Solaris.
61121         Problem reported by Bruno Haible in
61122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61123         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61124         explanation of setting 'hints'.
61125         Don't reject an implementation merely because it returns EAI_SERVICE.
61126         (EAI_SERVICE): Define to 0 if not defined.
61127
61128 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61129
61130         The license of gnu-make and posix-shell is now "GPLed build tool".
61131         * modules/gnu-make (License): Likewise.
61132         * modules/posix-shell (License): Likewise.
61133
61134         New module posix-shell, for determining a POSIX shell
61135         or perhaps something that is close enough to a POSIX shell.
61136         * m4/posix-shell.m4: New file.
61137         * modules/posix-shell: New file.
61138
61139         * MODULES.html.sh: Mention new module.
61140
61141         New module gnu-make, for determining whether we're using GNU Make.
61142         * m4/gnu-make.m4: New file.
61143         * modules/gnu-make: New file.
61144         * MODULES.html.sh: Mention new module.
61145
61146 2007-11-14  Jim Meyering  <meyering@redhat.com>
61147
61148         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61149         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61150         use this macro to create a function _definition_.
61151         Remove useless "#undef ARGMATCH_DIE".
61152
61153 2007-11-14  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/config.charset: Update for OpenBSD 4.1.
61156         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61157
61158 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61159
61160         Document 64-bit #if problems in stdint.texi.
61161         * doc/headers/stdint.texi (stdint.h): Mention problems with
61162         64-bit-#if, and how to work around them.
61163
61164         Don't insist on 'long long int' support in the preprocessor.  It
61165         breaks too many things.  For example, PRIdMAX still uses a 'long
61166         long int' format with the latest Sun compiler, even though
61167         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61168         preprocessor problem.  This causes the latest coreutils to dump
61169         core on Solaris 10 sparc with the Sun C compiler.
61170         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61171         the troublesome expressions at configure-time, not at #if-time.
61172         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61173         preprocessor.
61174         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61175         compile-time C checks, done at 'configure'-time.
61176         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61177         * modules/inttypes (Makefile): Substitute the new symbols that
61178         gl_INTTYPES_H now generates.
61179         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61180
61181 2007-11-12  Bruno Haible  <bruno@clisp.org>
61182
61183         Tests for Unicode character classification functions.
61184
61185         * modules/unictype/bidicategory-byname-tests: New file.
61186         * modules/unictype/bidicategory-name-tests: New file.
61187         * modules/unictype/bidicategory-of-tests: New file.
61188         * modules/unictype/bidicategory-test-tests: New file.
61189         * modules/unictype/block-list-tests: New file.
61190         * modules/unictype/block-of-tests: New file.
61191         * modules/unictype/block-test-tests: New file.
61192         * modules/unictype/category-C-tests: New file.
61193         * modules/unictype/category-Cc-tests: New file.
61194         * modules/unictype/category-Cf-tests: New file.
61195         * modules/unictype/category-Cn-tests: New file.
61196         * modules/unictype/category-Co-tests: New file.
61197         * modules/unictype/category-Cs-tests: New file.
61198         * modules/unictype/category-L-tests: New file.
61199         * modules/unictype/category-Ll-tests: New file.
61200         * modules/unictype/category-Lm-tests: New file.
61201         * modules/unictype/category-Lo-tests: New file.
61202         * modules/unictype/category-Lt-tests: New file.
61203         * modules/unictype/category-Lu-tests: New file.
61204         * modules/unictype/category-M-tests: New file.
61205         * modules/unictype/category-Mc-tests: New file.
61206         * modules/unictype/category-Me-tests: New file.
61207         * modules/unictype/category-Mn-tests: New file.
61208         * modules/unictype/category-N-tests: New file.
61209         * modules/unictype/category-Nd-tests: New file.
61210         * modules/unictype/category-Nl-tests: New file.
61211         * modules/unictype/category-No-tests: New file.
61212         * modules/unictype/category-P-tests: New file.
61213         * modules/unictype/category-Pc-tests: New file.
61214         * modules/unictype/category-Pd-tests: New file.
61215         * modules/unictype/category-Pe-tests: New file.
61216         * modules/unictype/category-Pf-tests: New file.
61217         * modules/unictype/category-Pi-tests: New file.
61218         * modules/unictype/category-Po-tests: New file.
61219         * modules/unictype/category-Ps-tests: New file.
61220         * modules/unictype/category-S-tests: New file.
61221         * modules/unictype/category-Sc-tests: New file.
61222         * modules/unictype/category-Sk-tests: New file.
61223         * modules/unictype/category-Sm-tests: New file.
61224         * modules/unictype/category-So-tests: New file.
61225         * modules/unictype/category-Z-tests: New file.
61226         * modules/unictype/category-Zl-tests: New file.
61227         * modules/unictype/category-Zp-tests: New file.
61228         * modules/unictype/category-Zs-tests: New file.
61229         * modules/unictype/category-and-not-tests: New file.
61230         * modules/unictype/category-and-tests: New file.
61231         * modules/unictype/category-byname-tests: New file.
61232         * modules/unictype/category-name-tests: New file.
61233         * modules/unictype/category-none-tests: New file.
61234         * modules/unictype/category-of-tests: New file.
61235         * modules/unictype/category-or-tests: New file.
61236         * modules/unictype/category-test-withtable-tests: New file.
61237         * modules/unictype/combining-class-tests: New file.
61238         * modules/unictype/ctype-alnum-tests: New file.
61239         * modules/unictype/ctype-alpha-tests: New file.
61240         * modules/unictype/ctype-blank-tests: New file.
61241         * modules/unictype/ctype-cntrl-tests: New file.
61242         * modules/unictype/ctype-digit-tests: New file.
61243         * modules/unictype/ctype-graph-tests: New file.
61244         * modules/unictype/ctype-lower-tests: New file.
61245         * modules/unictype/ctype-print-tests: New file.
61246         * modules/unictype/ctype-punct-tests: New file.
61247         * modules/unictype/ctype-space-tests: New file.
61248         * modules/unictype/ctype-upper-tests: New file.
61249         * modules/unictype/ctype-xdigit-tests: New file.
61250         * modules/unictype/decimal-digit-tests: New file.
61251         * modules/unictype/digit-tests: New file.
61252         * modules/unictype/mirror-tests: New file.
61253         * modules/unictype/numeric-tests: New file.
61254         * modules/unictype/property-alphabetic-tests: New file.
61255         * modules/unictype/property-ascii-hex-digit-tests: New file.
61256         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61257         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61258         * modules/unictype/property-bidi-block-separator-tests: New file.
61259         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61260         * modules/unictype/property-bidi-common-separator-tests: New file.
61261         * modules/unictype/property-bidi-control-tests: New file.
61262         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61263         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61264         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61265         * modules/unictype/property-bidi-european-digit-tests: New file.
61266         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61267         * modules/unictype/property-bidi-left-to-right-tests: New file.
61268         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61269         * modules/unictype/property-bidi-other-neutral-tests: New file.
61270         * modules/unictype/property-bidi-pdf-tests: New file.
61271         * modules/unictype/property-bidi-segment-separator-tests: New file.
61272         * modules/unictype/property-bidi-whitespace-tests: New file.
61273         * modules/unictype/property-byname-tests: New file.
61274         * modules/unictype/property-combining-tests: New file.
61275         * modules/unictype/property-composite-tests: New file.
61276         * modules/unictype/property-currency-symbol-tests: New file.
61277         * modules/unictype/property-dash-tests: New file.
61278         * modules/unictype/property-decimal-digit-tests: New file.
61279         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61280         * modules/unictype/property-deprecated-tests: New file.
61281         * modules/unictype/property-diacritic-tests: New file.
61282         * modules/unictype/property-extender-tests: New file.
61283         * modules/unictype/property-format-control-tests: New file.
61284         * modules/unictype/property-grapheme-base-tests: New file.
61285         * modules/unictype/property-grapheme-extend-tests: New file.
61286         * modules/unictype/property-grapheme-link-tests: New file.
61287         * modules/unictype/property-hex-digit-tests: New file.
61288         * modules/unictype/property-hyphen-tests: New file.
61289         * modules/unictype/property-id-continue-tests: New file.
61290         * modules/unictype/property-id-start-tests: New file.
61291         * modules/unictype/property-ideographic-tests: New file.
61292         * modules/unictype/property-ids-binary-operator-tests: New file.
61293         * modules/unictype/property-ids-trinary-operator-tests: New file.
61294         * modules/unictype/property-ignorable-control-tests: New file.
61295         * modules/unictype/property-iso-control-tests: New file.
61296         * modules/unictype/property-join-control-tests: New file.
61297         * modules/unictype/property-left-of-pair-tests: New file.
61298         * modules/unictype/property-line-separator-tests: New file.
61299         * modules/unictype/property-logical-order-exception-tests: New file.
61300         * modules/unictype/property-lowercase-tests: New file.
61301         * modules/unictype/property-math-tests: New file.
61302         * modules/unictype/property-non-break-tests: New file.
61303         * modules/unictype/property-not-a-character-tests: New file.
61304         * modules/unictype/property-numeric-tests: New file.
61305         * modules/unictype/property-other-alphabetic-tests: New file.
61306         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61307         * modules/unictype/property-other-grapheme-extend-tests: New file.
61308         * modules/unictype/property-other-id-continue-tests: New file.
61309         * modules/unictype/property-other-id-start-tests: New file.
61310         * modules/unictype/property-other-lowercase-tests: New file.
61311         * modules/unictype/property-other-math-tests: New file.
61312         * modules/unictype/property-other-uppercase-tests: New file.
61313         * modules/unictype/property-paired-punctuation-tests: New file.
61314         * modules/unictype/property-paragraph-separator-tests: New file.
61315         * modules/unictype/property-pattern-syntax-tests: New file.
61316         * modules/unictype/property-pattern-white-space-tests: New file.
61317         * modules/unictype/property-private-use-tests: New file.
61318         * modules/unictype/property-punctuation-tests: New file.
61319         * modules/unictype/property-quotation-mark-tests: New file.
61320         * modules/unictype/property-radical-tests: New file.
61321         * modules/unictype/property-sentence-terminal-tests: New file.
61322         * modules/unictype/property-soft-dotted-tests: New file.
61323         * modules/unictype/property-space-tests: New file.
61324         * modules/unictype/property-terminal-punctuation-tests: New file.
61325         * modules/unictype/property-test-tests: New file.
61326         * modules/unictype/property-titlecase-tests: New file.
61327         * modules/unictype/property-unassigned-code-value-tests: New file.
61328         * modules/unictype/property-unified-ideograph-tests: New file.
61329         * modules/unictype/property-uppercase-tests: New file.
61330         * modules/unictype/property-variation-selector-tests: New file.
61331         * modules/unictype/property-white-space-tests: New file.
61332         * modules/unictype/property-xid-continue-tests: New file.
61333         * modules/unictype/property-xid-start-tests: New file.
61334         * modules/unictype/property-zero-width-tests: New file.
61335         * modules/unictype/scripts-tests: New file.
61336         * modules/unictype/syntax-c-ident-tests: New file.
61337         * modules/unictype/syntax-c-whitespace-tests: New file.
61338         * modules/unictype/syntax-java-ident-tests: New file.
61339         * modules/unictype/syntax-java-whitespace-tests: New file.
61340         * tests/unictype/test-bidi_byname.c: New file.
61341         * tests/unictype/test-bidi_name.c: New file.
61342         * tests/unictype/test-bidi_of.c: New file.
61343         * tests/unictype/test-bidi_test.c: New file.
61344         * tests/unictype/test-block_list.c: New file.
61345         * tests/unictype/test-block_of.c: New file.
61346         * tests/unictype/test-block_test.c: New file.
61347         * tests/unictype/test-categ_and.c: New file.
61348         * tests/unictype/test-categ_and_not.c: New file.
61349         * tests/unictype/test-categ_byname.c: New file.
61350         * tests/unictype/test-categ_name.c: New file.
61351         * tests/unictype/test-categ_none.c: New file.
61352         * tests/unictype/test-categ_of.c: New file.
61353         * tests/unictype/test-categ_or.c: New file.
61354         * tests/unictype/test-categ_test_withtable.c: New file.
61355         * tests/unictype/test-combining.c: New file.
61356         * tests/unictype/test-decdigit.c: New file.
61357         * tests/unictype/test-digit.c: New file.
61358         * tests/unictype/test-mirror.c: New file.
61359         * tests/unictype/test-numeric.c: New file.
61360         * tests/unictype/test-pr_byname.c: New file.
61361         * tests/unictype/test-pr_test.c: New file.
61362         * tests/unictype/test-predicate-part1.h: New file.
61363         * tests/unictype/test-predicate-part2.h: New file.
61364         * tests/unictype/test-scripts.c: New file.
61365         * tests/unictype/test-sy_c_ident.c: New file.
61366         * tests/unictype/test-sy_java_ident.c: New file.
61367
61368         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61369         for Unicode 5.0.0.
61370         * tests/unictype/test-categ_Cc.c: Likewise.
61371         * tests/unictype/test-categ_Cf.c: Likewise.
61372         * tests/unictype/test-categ_Cn.c: Likewise.
61373         * tests/unictype/test-categ_Co.c: Likewise.
61374         * tests/unictype/test-categ_Cs.c: Likewise.
61375         * tests/unictype/test-categ_L.c: Likewise.
61376         * tests/unictype/test-categ_Ll.c: Likewise.
61377         * tests/unictype/test-categ_Lm.c: Likewise.
61378         * tests/unictype/test-categ_Lo.c: Likewise.
61379         * tests/unictype/test-categ_Lt.c: Likewise.
61380         * tests/unictype/test-categ_Lu.c: Likewise.
61381         * tests/unictype/test-categ_M.c: Likewise.
61382         * tests/unictype/test-categ_Mc.c: Likewise.
61383         * tests/unictype/test-categ_Me.c: Likewise.
61384         * tests/unictype/test-categ_Mn.c: Likewise.
61385         * tests/unictype/test-categ_N.c: Likewise.
61386         * tests/unictype/test-categ_Nd.c: Likewise.
61387         * tests/unictype/test-categ_Nl.c: Likewise.
61388         * tests/unictype/test-categ_No.c: Likewise.
61389         * tests/unictype/test-categ_P.c: Likewise.
61390         * tests/unictype/test-categ_Pc.c: Likewise.
61391         * tests/unictype/test-categ_Pd.c: Likewise.
61392         * tests/unictype/test-categ_Pe.c: Likewise.
61393         * tests/unictype/test-categ_Pf.c: Likewise.
61394         * tests/unictype/test-categ_Pi.c: Likewise.
61395         * tests/unictype/test-categ_Po.c: Likewise.
61396         * tests/unictype/test-categ_Ps.c: Likewise.
61397         * tests/unictype/test-categ_S.c: Likewise.
61398         * tests/unictype/test-categ_Sc.c: Likewise.
61399         * tests/unictype/test-categ_Sk.c: Likewise.
61400         * tests/unictype/test-categ_Sm.c: Likewise.
61401         * tests/unictype/test-categ_So.c: Likewise.
61402         * tests/unictype/test-categ_Z.c: Likewise.
61403         * tests/unictype/test-categ_Zl.c: Likewise.
61404         * tests/unictype/test-categ_Zp.c: Likewise.
61405         * tests/unictype/test-categ_Zs.c: Likewise.
61406         * tests/unictype/test-ctype_alnum.c: Likewise.
61407         * tests/unictype/test-ctype_alpha.c: Likewise.
61408         * tests/unictype/test-ctype_blank.c: Likewise.
61409         * tests/unictype/test-ctype_cntrl.c: Likewise.
61410         * tests/unictype/test-ctype_digit.c: Likewise.
61411         * tests/unictype/test-ctype_graph.c: Likewise.
61412         * tests/unictype/test-ctype_lower.c: Likewise.
61413         * tests/unictype/test-ctype_print.c: Likewise.
61414         * tests/unictype/test-ctype_punct.c: Likewise.
61415         * tests/unictype/test-ctype_space.c: Likewise.
61416         * tests/unictype/test-ctype_upper.c: Likewise.
61417         * tests/unictype/test-ctype_xdigit.c: Likewise.
61418         * tests/unictype/test-decdigit.h: Likewise.
61419         * tests/unictype/test-digit.h: Likewise.
61420         * tests/unictype/test-numeric.h: Likewise.
61421         * tests/unictype/test-pr_alphabetic.c: Likewise.
61422         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61423         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61424         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61425         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61426         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61427         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61428         * tests/unictype/test-pr_bidi_control.c: Likewise.
61429         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61430         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61431         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61432         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61433         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61434         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61435         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61436         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61437         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61438         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61439         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61440         * tests/unictype/test-pr_combining.c: Likewise.
61441         * tests/unictype/test-pr_composite.c: Likewise.
61442         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61443         * tests/unictype/test-pr_dash.c: Likewise.
61444         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61445         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61446         * tests/unictype/test-pr_deprecated.c: Likewise.
61447         * tests/unictype/test-pr_diacritic.c: Likewise.
61448         * tests/unictype/test-pr_extender.c: Likewise.
61449         * tests/unictype/test-pr_format_control.c: Likewise.
61450         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61451         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61452         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61453         * tests/unictype/test-pr_hex_digit.c: Likewise.
61454         * tests/unictype/test-pr_hyphen.c: Likewise.
61455         * tests/unictype/test-pr_id_continue.c: Likewise.
61456         * tests/unictype/test-pr_id_start.c: Likewise.
61457         * tests/unictype/test-pr_ideographic.c: Likewise.
61458         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61459         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61460         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61461         * tests/unictype/test-pr_iso_control.c: Likewise.
61462         * tests/unictype/test-pr_join_control.c: Likewise.
61463         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61464         * tests/unictype/test-pr_line_separator.c: Likewise.
61465         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61466         * tests/unictype/test-pr_lowercase.c: Likewise.
61467         * tests/unictype/test-pr_math.c: Likewise.
61468         * tests/unictype/test-pr_non_break.c: Likewise.
61469         * tests/unictype/test-pr_not_a_character.c: Likewise.
61470         * tests/unictype/test-pr_numeric.c: Likewise.
61471         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61472         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61473         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61474         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61475         * tests/unictype/test-pr_other_id_start.c: Likewise.
61476         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61477         * tests/unictype/test-pr_other_math.c: Likewise.
61478         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61479         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61480         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61481         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61482         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61483         * tests/unictype/test-pr_private_use.c: Likewise.
61484         * tests/unictype/test-pr_punctuation.c: Likewise.
61485         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61486         * tests/unictype/test-pr_radical.c: Likewise.
61487         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61488         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61489         * tests/unictype/test-pr_space.c: Likewise.
61490         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61491         * tests/unictype/test-pr_titlecase.c: Likewise.
61492         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61493         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61494         * tests/unictype/test-pr_uppercase.c: Likewise.
61495         * tests/unictype/test-pr_variation_selector.c: Likewise.
61496         * tests/unictype/test-pr_white_space.c: Likewise.
61497         * tests/unictype/test-pr_xid_continue.c: Likewise.
61498         * tests/unictype/test-pr_xid_start.c: Likewise.
61499         * tests/unictype/test-pr_zero_width.c: Likewise.
61500         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61501         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61502
61503 2007-11-12  Bruno Haible  <bruno@clisp.org>
61504
61505         Unicode character classification functions.
61506         * lib/unictype.h: New file.
61507         * modules/unictype/base: New file.
61508         * modules/unictype/category-L: New file.
61509         * modules/unictype/category-Lu: New file.
61510         * modules/unictype/category-Ll: New file.
61511         * modules/unictype/category-Lt: New file.
61512         * modules/unictype/category-Lm: New file.
61513         * modules/unictype/category-Lo: New file.
61514         * modules/unictype/category-M: New file.
61515         * modules/unictype/category-Mn: New file.
61516         * modules/unictype/category-Mc: New file.
61517         * modules/unictype/category-Me: New file.
61518         * modules/unictype/category-N: New file.
61519         * modules/unictype/category-Nd: New file.
61520         * modules/unictype/category-Nl: New file.
61521         * modules/unictype/category-No: New file.
61522         * modules/unictype/category-P: New file.
61523         * modules/unictype/category-Pc: New file.
61524         * modules/unictype/category-Pd: New file.
61525         * modules/unictype/category-Ps: New file.
61526         * modules/unictype/category-Pe: New file.
61527         * modules/unictype/category-Pi: New file.
61528         * modules/unictype/category-Pf: New file.
61529         * modules/unictype/category-Po: New file.
61530         * modules/unictype/category-S: New file.
61531         * modules/unictype/category-Sm: New file.
61532         * modules/unictype/category-Sc: New file.
61533         * modules/unictype/category-Sk: New file.
61534         * modules/unictype/category-So: New file.
61535         * modules/unictype/category-Z: New file.
61536         * modules/unictype/category-Zs: New file.
61537         * modules/unictype/category-Zl: New file.
61538         * modules/unictype/category-Zp: New file.
61539         * modules/unictype/category-C: New file.
61540         * modules/unictype/category-Cc: New file.
61541         * modules/unictype/category-Cf: New file.
61542         * modules/unictype/category-Cs: New file.
61543         * modules/unictype/category-Co: New file.
61544         * modules/unictype/category-Cn: New file.
61545         * modules/unictype/category-or: New file.
61546         * modules/unictype/category-of: New file.
61547         * modules/unictype/category-test: New file.
61548         * modules/unictype/category-test-withtable: New file.
61549         * modules/unictype/category-byname: New file.
61550         * modules/unictype/category-none: New file.
61551         * modules/unictype/category-and: New file.
61552         * modules/unictype/category-and-not: New file.
61553         * modules/unictype/category-name: New file.
61554         * modules/unictype/combining-class: New file.
61555         * modules/unictype/category-all: New file.
61556         * modules/unictype/bidicategory-all: New file.
61557         * modules/unictype/bidicategory-byname: New file.
61558         * modules/unictype/bidicategory-name: New file.
61559         * modules/unictype/bidicategory-of: New file.
61560         * modules/unictype/bidicategory-test: New file.
61561         * modules/unictype/decimal-digit: New file.
61562         * modules/unictype/digit: New file.
61563         * modules/unictype/numeric: New file.
61564         * modules/unictype/mirror: New file.
61565         * modules/unictype/property-white-space: New file.
61566         * modules/unictype/property-alphabetic: New file.
61567         * modules/unictype/property-other-alphabetic: New file.
61568         * modules/unictype/property-not-a-character: New file.
61569         * modules/unictype/property-default-ignorable-code-point: New file.
61570         * modules/unictype/property-other-default-ignorable-code-point: New
61571         file.
61572         * modules/unictype/property-deprecated: New file.
61573         * modules/unictype/property-logical-order-exception: New file.
61574         * modules/unictype/property-variation-selector: New file.
61575         * modules/unictype/property-private-use: New file.
61576         * modules/unictype/property-unassigned-code-value: New file.
61577         * modules/unictype/property-uppercase: New file.
61578         * modules/unictype/property-other-uppercase: New file.
61579         * modules/unictype/property-lowercase: New file.
61580         * modules/unictype/property-other-lowercase: New file.
61581         * modules/unictype/property-titlecase: New file.
61582         * modules/unictype/property-soft-dotted: New file.
61583         * modules/unictype/property-id-start: New file.
61584         * modules/unictype/property-other-id-start: New file.
61585         * modules/unictype/property-id-continue: New file.
61586         * modules/unictype/property-other-id-continue: New file.
61587         * modules/unictype/property-xid-start: New file.
61588         * modules/unictype/property-xid-continue: New file.
61589         * modules/unictype/property-pattern-white-space: New file.
61590         * modules/unictype/property-pattern-syntax: New file.
61591         * modules/unictype/property-join-control: New file.
61592         * modules/unictype/property-grapheme-base: New file.
61593         * modules/unictype/property-grapheme-extend: New file.
61594         * modules/unictype/property-other-grapheme-extend: New file.
61595         * modules/unictype/property-grapheme-link: New file.
61596         * modules/unictype/property-bidi-control: New file.
61597         * modules/unictype/property-bidi-left-to-right: New file.
61598         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61599         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61600         * modules/unictype/property-bidi-european-digit: New file.
61601         * modules/unictype/property-bidi-eur-num-separator: New file.
61602         * modules/unictype/property-bidi-eur-num-terminator: New file.
61603         * modules/unictype/property-bidi-arabic-digit: New file.
61604         * modules/unictype/property-bidi-common-separator: New file.
61605         * modules/unictype/property-bidi-block-separator: New file.
61606         * modules/unictype/property-bidi-segment-separator: New file.
61607         * modules/unictype/property-bidi-whitespace: New file.
61608         * modules/unictype/property-bidi-non-spacing-mark: New file.
61609         * modules/unictype/property-bidi-boundary-neutral: New file.
61610         * modules/unictype/property-bidi-pdf: New file.
61611         * modules/unictype/property-bidi-embedding-or-override: New file.
61612         * modules/unictype/property-bidi-other-neutral: New file.
61613         * modules/unictype/property-hex-digit: New file.
61614         * modules/unictype/property-ascii-hex-digit: New file.
61615         * modules/unictype/property-ideographic: New file.
61616         * modules/unictype/property-unified-ideograph: New file.
61617         * modules/unictype/property-radical: New file.
61618         * modules/unictype/property-ids-binary-operator: New file.
61619         * modules/unictype/property-ids-trinary-operator: New file.
61620         * modules/unictype/property-zero-width: New file.
61621         * modules/unictype/property-space: New file.
61622         * modules/unictype/property-non-break: New file.
61623         * modules/unictype/property-iso-control: New file.
61624         * modules/unictype/property-format-control: New file.
61625         * modules/unictype/property-dash: New file.
61626         * modules/unictype/property-hyphen: New file.
61627         * modules/unictype/property-punctuation: New file.
61628         * modules/unictype/property-line-separator: New file.
61629         * modules/unictype/property-paragraph-separator: New file.
61630         * modules/unictype/property-quotation-mark: New file.
61631         * modules/unictype/property-sentence-terminal: New file.
61632         * modules/unictype/property-terminal-punctuation: New file.
61633         * modules/unictype/property-currency-symbol: New file.
61634         * modules/unictype/property-math: New file.
61635         * modules/unictype/property-other-math: New file.
61636         * modules/unictype/property-paired-punctuation: New file.
61637         * modules/unictype/property-left-of-pair: New file.
61638         * modules/unictype/property-combining: New file.
61639         * modules/unictype/property-composite: New file.
61640         * modules/unictype/property-decimal-digit: New file.
61641         * modules/unictype/property-numeric: New file.
61642         * modules/unictype/property-diacritic: New file.
61643         * modules/unictype/property-extender: New file.
61644         * modules/unictype/property-ignorable-control: New file.
61645         * modules/unictype/property-test: New file.
61646         * modules/unictype/property-byname: New file.
61647         * modules/unictype/property-all: New file.
61648         * modules/unictype/scripts: New file.
61649         * modules/unictype/scripts-all: New file.
61650         * modules/unictype/block-of: New file.
61651         * modules/unictype/block-test: New file.
61652         * modules/unictype/block-list: New file.
61653         * modules/unictype/block-all: New file.
61654         * modules/unictype/syntax-c-whitespace: New file.
61655         * modules/unictype/syntax-java-whitespace: New file.
61656         * modules/unictype/syntax-c-ident: New file.
61657         * modules/unictype/syntax-java-ident: New file.
61658         * modules/unictype/ctype-alnum: New file.
61659         * modules/unictype/ctype-alpha: New file.
61660         * modules/unictype/ctype-cntrl: New file.
61661         * modules/unictype/ctype-digit: New file.
61662         * modules/unictype/ctype-graph: New file.
61663         * modules/unictype/ctype-lower: New file.
61664         * modules/unictype/ctype-print: New file.
61665         * modules/unictype/ctype-punct: New file.
61666         * modules/unictype/ctype-space: New file.
61667         * modules/unictype/ctype-upper: New file.
61668         * modules/unictype/ctype-xdigit: New file.
61669         * modules/unictype/ctype-blank: New file.
61670         * lib/unictype/bidi_byname.c: New file.
61671         * lib/unictype/bidi_name.c: New file.
61672         * lib/unictype/bidi_of.c: New file.
61673         * lib/unictype/bidi_test.c: New file.
61674         * lib/unictype/bitmap.h: New file.
61675         * lib/unictype/block_test.c: New file.
61676         * lib/unictype/blocks.c: New file.
61677         * lib/unictype/categ_C.c: New file.
61678         * lib/unictype/categ_Cc.c: New file.
61679         * lib/unictype/categ_Cf.c: New file.
61680         * lib/unictype/categ_Cn.c: New file.
61681         * lib/unictype/categ_Co.c: New file.
61682         * lib/unictype/categ_Cs.c: New file.
61683         * lib/unictype/categ_L.c: New file.
61684         * lib/unictype/categ_Ll.c: New file.
61685         * lib/unictype/categ_Lm.c: New file.
61686         * lib/unictype/categ_Lo.c: New file.
61687         * lib/unictype/categ_Lt.c: New file.
61688         * lib/unictype/categ_Lu.c: New file.
61689         * lib/unictype/categ_M.c: New file.
61690         * lib/unictype/categ_Mc.c: New file.
61691         * lib/unictype/categ_Me.c: New file.
61692         * lib/unictype/categ_Mn.c: New file.
61693         * lib/unictype/categ_N.c: New file.
61694         * lib/unictype/categ_Nd.c: New file.
61695         * lib/unictype/categ_Nl.c: New file.
61696         * lib/unictype/categ_No.c: New file.
61697         * lib/unictype/categ_P.c: New file.
61698         * lib/unictype/categ_Pc.c: New file.
61699         * lib/unictype/categ_Pd.c: New file.
61700         * lib/unictype/categ_Pe.c: New file.
61701         * lib/unictype/categ_Pf.c: New file.
61702         * lib/unictype/categ_Pi.c: New file.
61703         * lib/unictype/categ_Po.c: New file.
61704         * lib/unictype/categ_Ps.c: New file.
61705         * lib/unictype/categ_S.c: New file.
61706         * lib/unictype/categ_Sc.c: New file.
61707         * lib/unictype/categ_Sk.c: New file.
61708         * lib/unictype/categ_Sm.c: New file.
61709         * lib/unictype/categ_So.c: New file.
61710         * lib/unictype/categ_Z.c: New file.
61711         * lib/unictype/categ_Zl.c: New file.
61712         * lib/unictype/categ_Zp.c: New file.
61713         * lib/unictype/categ_Zs.c: New file.
61714         * lib/unictype/categ_and.c: New file.
61715         * lib/unictype/categ_and_not.c: New file.
61716         * lib/unictype/categ_byname.c: New file.
61717         * lib/unictype/categ_name.c: New file.
61718         * lib/unictype/categ_none.c: New file.
61719         * lib/unictype/categ_of.c: New file.
61720         * lib/unictype/categ_or.c: New file.
61721         * lib/unictype/categ_test.c: New file.
61722         * lib/unictype/combining.c: New file.
61723         * lib/unictype/ctype_alnum.c: New file.
61724         * lib/unictype/ctype_alpha.c: New file.
61725         * lib/unictype/ctype_blank.c: New file.
61726         * lib/unictype/ctype_cntrl.c: New file.
61727         * lib/unictype/ctype_digit.c: New file.
61728         * lib/unictype/ctype_graph.c: New file.
61729         * lib/unictype/ctype_lower.c: New file.
61730         * lib/unictype/ctype_print.c: New file.
61731         * lib/unictype/ctype_punct.c: New file.
61732         * lib/unictype/ctype_space.c: New file.
61733         * lib/unictype/ctype_upper.c: New file.
61734         * lib/unictype/ctype_xdigit.c: New file.
61735         * lib/unictype/decdigit.c: New file.
61736         * lib/unictype/digit.c: New file.
61737         * lib/unictype/identsyntaxmap.h: New file.
61738         * lib/unictype/mirror.c: New file.
61739         * lib/unictype/numeric.c: New file.
61740         * lib/unictype/pr_alphabetic.c: New file.
61741         * lib/unictype/pr_ascii_hex_digit.c: New file.
61742         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61743         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61744         * lib/unictype/pr_bidi_block_separator.c: New file.
61745         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61746         * lib/unictype/pr_bidi_common_separator.c: New file.
61747         * lib/unictype/pr_bidi_control.c: New file.
61748         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61749         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61750         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61751         * lib/unictype/pr_bidi_european_digit.c: New file.
61752         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61753         * lib/unictype/pr_bidi_left_to_right.c: New file.
61754         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61755         * lib/unictype/pr_bidi_other_neutral.c: New file.
61756         * lib/unictype/pr_bidi_pdf.c: New file.
61757         * lib/unictype/pr_bidi_segment_separator.c: New file.
61758         * lib/unictype/pr_bidi_whitespace.c: New file.
61759         * lib/unictype/pr_byname.c: New file.
61760         * lib/unictype/pr_byname.gperf: New file.
61761         * lib/unictype/pr_combining.c: New file.
61762         * lib/unictype/pr_composite.c: New file.
61763         * lib/unictype/pr_currency_symbol.c: New file.
61764         * lib/unictype/pr_dash.c: New file.
61765         * lib/unictype/pr_decimal_digit.c: New file.
61766         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61767         * lib/unictype/pr_deprecated.c: New file.
61768         * lib/unictype/pr_diacritic.c: New file.
61769         * lib/unictype/pr_extender.c: New file.
61770         * lib/unictype/pr_format_control.c: New file.
61771         * lib/unictype/pr_grapheme_base.c: New file.
61772         * lib/unictype/pr_grapheme_extend.c: New file.
61773         * lib/unictype/pr_grapheme_link.c: New file.
61774         * lib/unictype/pr_hex_digit.c: New file.
61775         * lib/unictype/pr_hyphen.c: New file.
61776         * lib/unictype/pr_id_continue.c: New file.
61777         * lib/unictype/pr_id_start.c: New file.
61778         * lib/unictype/pr_ideographic.c: New file.
61779         * lib/unictype/pr_ids_binary_operator.c: New file.
61780         * lib/unictype/pr_ids_trinary_operator.c: New file.
61781         * lib/unictype/pr_ignorable_control.c: New file.
61782         * lib/unictype/pr_iso_control.c: New file.
61783         * lib/unictype/pr_join_control.c: New file.
61784         * lib/unictype/pr_left_of_pair.c: New file.
61785         * lib/unictype/pr_line_separator.c: New file.
61786         * lib/unictype/pr_logical_order_exception.c: New file.
61787         * lib/unictype/pr_lowercase.c: New file.
61788         * lib/unictype/pr_math.c: New file.
61789         * lib/unictype/pr_non_break.c: New file.
61790         * lib/unictype/pr_not_a_character.c: New file.
61791         * lib/unictype/pr_numeric.c: New file.
61792         * lib/unictype/pr_other_alphabetic.c: New file.
61793         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61794         * lib/unictype/pr_other_grapheme_extend.c: New file.
61795         * lib/unictype/pr_other_id_continue.c: New file.
61796         * lib/unictype/pr_other_id_start.c: New file.
61797         * lib/unictype/pr_other_lowercase.c: New file.
61798         * lib/unictype/pr_other_math.c: New file.
61799         * lib/unictype/pr_other_uppercase.c: New file.
61800         * lib/unictype/pr_paired_punctuation.c: New file.
61801         * lib/unictype/pr_paragraph_separator.c: New file.
61802         * lib/unictype/pr_pattern_syntax.c: New file.
61803         * lib/unictype/pr_pattern_white_space.c: New file.
61804         * lib/unictype/pr_private_use.c: New file.
61805         * lib/unictype/pr_punctuation.c: New file.
61806         * lib/unictype/pr_quotation_mark.c: New file.
61807         * lib/unictype/pr_radical.c: New file.
61808         * lib/unictype/pr_sentence_terminal.c: New file.
61809         * lib/unictype/pr_soft_dotted.c: New file.
61810         * lib/unictype/pr_space.c: New file.
61811         * lib/unictype/pr_terminal_punctuation.c: New file.
61812         * lib/unictype/pr_test.c: New file.
61813         * lib/unictype/pr_titlecase.c: New file.
61814         * lib/unictype/pr_unassigned_code_value.c: New file.
61815         * lib/unictype/pr_unified_ideograph.c: New file.
61816         * lib/unictype/pr_uppercase.c: New file.
61817         * lib/unictype/pr_variation_selector.c: New file.
61818         * lib/unictype/pr_white_space.c: New file.
61819         * lib/unictype/pr_xid_continue.c: New file.
61820         * lib/unictype/pr_xid_start.c: New file.
61821         * lib/unictype/pr_zero_width.c: New file.
61822         * lib/unictype/scripts.c: New file.
61823         * lib/unictype/sy_c_ident.c: New file.
61824         * lib/unictype/sy_c_whitespace.c: New file.
61825         * lib/unictype/sy_java_ident.c: New file.
61826         * lib/unictype/sy_java_whitespace.c: New file.
61827
61828         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61829         Unicode 5.0.0.
61830         * lib/unictype/blocks.h: Likewise.
61831         * lib/unictype/categ_C.h: Likewise.
61832         * lib/unictype/categ_Cc.h: Likewise.
61833         * lib/unictype/categ_Cf.h: Likewise.
61834         * lib/unictype/categ_Cn.h: Likewise.
61835         * lib/unictype/categ_Co.h: Likewise.
61836         * lib/unictype/categ_Cs.h: Likewise.
61837         * lib/unictype/categ_L.h: Likewise.
61838         * lib/unictype/categ_Ll.h: Likewise.
61839         * lib/unictype/categ_Lm.h: Likewise.
61840         * lib/unictype/categ_Lo.h: Likewise.
61841         * lib/unictype/categ_Lt.h: Likewise.
61842         * lib/unictype/categ_Lu.h: Likewise.
61843         * lib/unictype/categ_M.h: Likewise.
61844         * lib/unictype/categ_Mc.h: Likewise.
61845         * lib/unictype/categ_Me.h: Likewise.
61846         * lib/unictype/categ_Mn.h: Likewise.
61847         * lib/unictype/categ_N.h: Likewise.
61848         * lib/unictype/categ_Nd.h: Likewise.
61849         * lib/unictype/categ_Nl.h: Likewise.
61850         * lib/unictype/categ_No.h: Likewise.
61851         * lib/unictype/categ_P.h: Likewise.
61852         * lib/unictype/categ_Pc.h: Likewise.
61853         * lib/unictype/categ_Pd.h: Likewise.
61854         * lib/unictype/categ_Pe.h: Likewise.
61855         * lib/unictype/categ_Pf.h: Likewise.
61856         * lib/unictype/categ_Pi.h: Likewise.
61857         * lib/unictype/categ_Po.h: Likewise.
61858         * lib/unictype/categ_Ps.h: Likewise.
61859         * lib/unictype/categ_S.h: Likewise.
61860         * lib/unictype/categ_Sc.h: Likewise.
61861         * lib/unictype/categ_Sk.h: Likewise.
61862         * lib/unictype/categ_Sm.h: Likewise.
61863         * lib/unictype/categ_So.h: Likewise.
61864         * lib/unictype/categ_Z.h: Likewise.
61865         * lib/unictype/categ_Zl.h: Likewise.
61866         * lib/unictype/categ_Zp.h: Likewise.
61867         * lib/unictype/categ_Zs.h: Likewise.
61868         * lib/unictype/categ_of.h: Likewise.
61869         * lib/unictype/combining.h: Likewise.
61870         * lib/unictype/ctype_alnum.h: Likewise.
61871         * lib/unictype/ctype_alpha.h: Likewise.
61872         * lib/unictype/ctype_blank.h: Likewise.
61873         * lib/unictype/ctype_cntrl.h: Likewise.
61874         * lib/unictype/ctype_digit.h: Likewise.
61875         * lib/unictype/ctype_graph.h: Likewise.
61876         * lib/unictype/ctype_lower.h: Likewise.
61877         * lib/unictype/ctype_print.h: Likewise.
61878         * lib/unictype/ctype_punct.h: Likewise.
61879         * lib/unictype/ctype_space.h: Likewise.
61880         * lib/unictype/ctype_upper.h: Likewise.
61881         * lib/unictype/ctype_xdigit.h: Likewise.
61882         * lib/unictype/decdigit.h: Likewise.
61883         * lib/unictype/digit.h: Likewise.
61884         * lib/unictype/mirror.h: Likewise.
61885         * lib/unictype/numeric.h: Likewise.
61886         * lib/unictype/pr_alphabetic.h: Likewise.
61887         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61888         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61889         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61890         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61891         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61892         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61893         * lib/unictype/pr_bidi_control.h: Likewise.
61894         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61895         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61896         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61897         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61898         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61899         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61900         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61901         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61902         * lib/unictype/pr_bidi_pdf.h: Likewise.
61903         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61904         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61905         * lib/unictype/pr_combining.h: Likewise.
61906         * lib/unictype/pr_composite.h: Likewise.
61907         * lib/unictype/pr_currency_symbol.h: Likewise.
61908         * lib/unictype/pr_dash.h: Likewise.
61909         * lib/unictype/pr_decimal_digit.h: Likewise.
61910         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61911         * lib/unictype/pr_deprecated.h: Likewise.
61912         * lib/unictype/pr_diacritic.h: Likewise.
61913         * lib/unictype/pr_extender.h: Likewise.
61914         * lib/unictype/pr_format_control.h: Likewise.
61915         * lib/unictype/pr_grapheme_base.h: Likewise.
61916         * lib/unictype/pr_grapheme_extend.h: Likewise.
61917         * lib/unictype/pr_grapheme_link.h: Likewise.
61918         * lib/unictype/pr_hex_digit.h: Likewise.
61919         * lib/unictype/pr_hyphen.h: Likewise.
61920         * lib/unictype/pr_id_continue.h: Likewise.
61921         * lib/unictype/pr_id_start.h: Likewise.
61922         * lib/unictype/pr_ideographic.h: Likewise.
61923         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61924         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61925         * lib/unictype/pr_ignorable_control.h: Likewise.
61926         * lib/unictype/pr_iso_control.h: Likewise.
61927         * lib/unictype/pr_join_control.h: Likewise.
61928         * lib/unictype/pr_left_of_pair.h: Likewise.
61929         * lib/unictype/pr_line_separator.h: Likewise.
61930         * lib/unictype/pr_logical_order_exception.h: Likewise.
61931         * lib/unictype/pr_lowercase.h: Likewise.
61932         * lib/unictype/pr_math.h: Likewise.
61933         * lib/unictype/pr_non_break.h: Likewise.
61934         * lib/unictype/pr_not_a_character.h: Likewise.
61935         * lib/unictype/pr_numeric.h: Likewise.
61936         * lib/unictype/pr_other_alphabetic.h: Likewise.
61937         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61938         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61939         * lib/unictype/pr_other_id_continue.h: Likewise.
61940         * lib/unictype/pr_other_id_start.h: Likewise.
61941         * lib/unictype/pr_other_lowercase.h: Likewise.
61942         * lib/unictype/pr_other_math.h: Likewise.
61943         * lib/unictype/pr_other_uppercase.h: Likewise.
61944         * lib/unictype/pr_paired_punctuation.h: Likewise.
61945         * lib/unictype/pr_paragraph_separator.h: Likewise.
61946         * lib/unictype/pr_pattern_syntax.h: Likewise.
61947         * lib/unictype/pr_pattern_white_space.h: Likewise.
61948         * lib/unictype/pr_private_use.h: Likewise.
61949         * lib/unictype/pr_punctuation.h: Likewise.
61950         * lib/unictype/pr_quotation_mark.h: Likewise.
61951         * lib/unictype/pr_radical.h: Likewise.
61952         * lib/unictype/pr_sentence_terminal.h: Likewise.
61953         * lib/unictype/pr_soft_dotted.h: Likewise.
61954         * lib/unictype/pr_space.h: Likewise.
61955         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61956         * lib/unictype/pr_titlecase.h: Likewise.
61957         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61958         * lib/unictype/pr_unified_ideograph.h: Likewise.
61959         * lib/unictype/pr_uppercase.h: Likewise.
61960         * lib/unictype/pr_variation_selector.h: Likewise.
61961         * lib/unictype/pr_white_space.h: Likewise.
61962         * lib/unictype/pr_xid_continue.h: Likewise.
61963         * lib/unictype/pr_xid_start.h: Likewise.
61964         * lib/unictype/pr_zero_width.h: Likewise.
61965         * lib/unictype/scripts.h: Likewise.
61966         * lib/unictype/scripts_byname.gperf: Likewise.
61967         * lib/unictype/sy_c_ident.h: Likewise.
61968         * lib/unictype/sy_c_whitespace.h: Likewise.
61969         * lib/unictype/sy_java_ident.h: Likewise.
61970         * lib/unictype/sy_java_whitespace.h: Likewise.
61971
61972         * lib/unictype/Makefile: New file.
61973         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61974         glibc.
61975         * lib/unictype/3level.h: New file, copied from glibc.
61976         * lib/unictype/3levelbit.h: New file.
61977
61978 2007-11-11  Bruno Haible  <bruno@clisp.org>
61979
61980         * modules/gperf: New file.
61981         * modules/iconv_open (Depends-on): Add it.
61982         (Makefile.am): Remove the GPERF definition.
61983
61984 2007-11-11  Bruno Haible  <bruno@clisp.org>
61985
61986         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61987         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61988
61989 2007-11-11  Bruno Haible  <bruno@clisp.org>
61990
61991         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61992         (usage): Remove function.
61993
61994 2007-11-11  Bruno Haible  <bruno@clisp.org>
61995
61996         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61997         gl_FUNC_CEILF_LIBS.
61998         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61999         gl_FUNC_CEIL_LIBS.
62000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62001         gl_FUNC_CEILL_LIBS.
62002         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62003         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62004         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62005
62006 2007-11-11  Bruno Haible  <bruno@clisp.org>
62007
62008         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62009         roundf were declared but do not exist on functions.
62010         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62011         roundl were declared but do not exist on functions.
62012         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62013         HAVE_FLOORL_AND_CEILL, respectively.
62014         Needed for Sun C on Solaris 10.
62015
62016 2007-11-11  Bruno Haible  <bruno@clisp.org>
62017
62018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62019         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62020         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62021         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62022         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62023         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62024         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62025         HAVE_DECL_ROUNDF.
62026         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62027         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62029         of HAVE_DECL_ROUND*.
62030         * modules/math (Makefile.am): Update.
62031
62032 2007-11-10  Bruno Haible  <bruno@clisp.org>
62033
62034         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62035         ptrdiff_t as m4/intl.m4.
62036
62037 2007-11-10  Jim Meyering  <meyering@redhat.com>
62038
62039         Avoid link failure for the argmatch test.
62040         * tests/test-argmatch.c (usage): Define function to avoid a link
62041         failure: argmatch_die requires a usage function.
62042
62043 2007-11-09  Bruno Haible  <bruno@clisp.org>
62044
62045         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62046         * doc/functions/vsnprintf.texi: Likewise.
62047         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62048         with a size argument < 2.
62049
62050 2007-11-09  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62053         buffer. Fixes an inefficiency introduced on 2007-11-03.
62054
62055 2007-11-09  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62058         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62059
62060 2007-11-08  Jim Meyering  <meyering@redhat.com>
62061
62062         Change cache variable name prefix "jm_" to "gl_" everywhere.
62063         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62064         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62065         * m4/uptime.m4: s/gl_/jm_/
62066
62067 2007-11-07  Bruno Haible  <bruno@clisp.org>
62068
62069         Update to GNU gettext 0.17.
62070         * m4/intl.m4: Update to GNU gettext 0.17.
62071         * m4/po.m4: Likewise.
62072         * modules/gettext (Files): Remove m4/ulonglong.m4.
62073         (configure.ac): Require gettext infrastructure from version 0.17.
62074
62075 2007-11-06  Bruno Haible  <bruno@clisp.org>
62076
62077         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62078         symbolic values are not defined in a public header.
62079         * lib/freadable.c (freadable) [QNX]: Likewise.
62080         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62081         * lib/freading.c (freading) [QNX]: Likewise.
62082         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62083         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62084         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62085         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62086         Reported by Alain Magloire.
62087
62088         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62089
62090 2007-11-05  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62093         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62094         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62095         Reported by Eric Blake.
62096
62097 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62098             Bruno Haible  <bruno@clisp.org>
62099
62100         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62101         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62102         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62103         (malloc): Undefine also before including <stdlib.h>.
62104         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62105         Needed on OSF/1 4.0.
62106
62107 2007-11-05  Jim Meyering  <meyering@redhat.com>
62108
62109         git-version-gen: sync from coreutils.
62110         * build-aux/git-version-gen: Add comments.
62111         Change the first '-' to '.' in the snapshot version string,
62112         e.g., 6.9-377-08144 -> 6.9.377-08144
62113         Remove first parameter.
62114         Don't declare a version "-dirty" merely because a time
62115         stamp has changed.
62116
62117 2007-11-04  Bruno Haible  <bruno@clisp.org>
62118
62119         * lib/lock.h: Protect all macro definitions containing an 'if'
62120         statement through a "do { ... } while (0)".
62121         * lib/tls.h: Likewise.
62122
62123 2007-11-04  Bruno Haible  <bruno@clisp.org>
62124
62125         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62126
62127 2007-11-04  Bruno Haible  <bruno@clisp.org>
62128
62129         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62130         * modules/fprintf-posix (Depends-on): Add nocrash.
62131         * modules/snprintf-posix (Depends-on): Likewise.
62132         * modules/sprintf-posix (Depends-on): Likewise.
62133         * modules/vasnprintf-posix (Depends-on): Likewise.
62134         * modules/vasprintf-posix (Depends-on): Likewise.
62135         * modules/vfprintf-posix (Depends-on): Likewise.
62136         * modules/vsnprintf-posix (Depends-on): Likewise.
62137         * modules/vsprintf-posix (Depends-on): Likewise.
62138         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62139         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62140         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62141         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62142         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62143         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62144         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62145
62146 2007-11-04  Bruno Haible  <bruno@clisp.org>
62147
62148         * modules/nocrash: New file.
62149         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62150         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62151
62152 2007-11-04  Bruno Haible  <bruno@clisp.org>
62153
62154         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62155         precision handling.
62156         * tests/test-vasprintf-posix.c (test_function): Likewise.
62157         * tests/test-snprintf-posix.h (test_function): Likewise.
62158         * tests/test-sprintf-posix.h (test_function): Likewise.
62159
62160         Fix *printf behaviour for large precisions on mingw and BeOS.
62161         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62162         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62164         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62166         gl_PRINTF_PRECISION and test its result. Invoke
62167         gl_PREREQ_VASNPRINTF_PRECISION.
62168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62171         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62172         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62173         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62174         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62175         * doc/functions/fprintf.texi: Update.
62176         * doc/functions/printf.texi: Update.
62177         * doc/functions/snprintf.texi: Update.
62178         * doc/functions/sprintf.texi: Update.
62179         * doc/functions/vfprintf.texi: Update.
62180         * doc/functions/vprintf.texi: Update.
62181         * doc/functions/vsnprintf.texi: Update.
62182         * doc/functions/vsprintf.texi: Update.
62183
62184 2007-11-04  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62187
62188 2007-11-04  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62191         Reported by Sylvain Beucler <beuc@gnu.org>.
62192
62193 2007-11-03  Bruno Haible  <bruno@clisp.org>
62194
62195         * tests/test-fprintf-posix2.sh: New file.
62196         * tests/test-fprintf-posix2.c: New file.
62197         * modules/fprintf-posix-tests (Files): Add them.
62198         (TESTS): Add test-fprintf-posix2.sh.
62199         (configure.ac): Check for getrlimit and setrlimit.
62200         (check_PROGRAMS): Add test-fprintf-posix2.
62201
62202         * tests/test-printf-posix2.sh: New file.
62203         * tests/test-printf-posix2.c: New file.
62204         * modules/printf-posix-tests (Files): Add them.
62205         (TESTS): Add test-printf-posix2.sh.
62206         (configure.ac): Check for getrlimit and setrlimit.
62207         (check_PROGRAMS): Add test-printf-posix2.
62208
62209         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62210         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62211         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62212         (decode_double): New function, copied from decode_long_double.
62213         (scale10_round_decimal_decoded): New function, extracted from
62214         scale10_round_decimal_long_double.
62215         (scale10_round_decimal_long_double): Use it.
62216         (scale10_round_decimal_double): New function.
62217         (floorlog10): New function.
62218         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62220         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62222         gl_PRINTF_ENOMEM and test its result. Invoke
62223         gl_PREREQ_VASNPRINTF_ENOMEM.
62224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62231         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62232         * modules/snprintf-posix (Depends-on): Likewise.
62233         * modules/sprintf-posix (Depends-on): Likewise.
62234         * modules/vasnprintf-posix (Depends-on): Likewise.
62235         * modules/vasprintf-posix (Depends-on): Likewise.
62236         * modules/vfprintf-posix (Depends-on): Likewise.
62237         * modules/vsnprintf-posix (Depends-on): Likewise.
62238         * modules/vsprintf-posix (Depends-on): Likewise.
62239         * doc/functions/fprintf.texi: Update.
62240         * doc/functions/printf.texi: Update.
62241         * doc/functions/snprintf.texi: Update.
62242         * doc/functions/sprintf.texi: Update.
62243         * doc/functions/vfprintf.texi: Update.
62244         * doc/functions/vprintf.texi: Update.
62245         * doc/functions/vsnprintf.texi: Update.
62246         * doc/functions/vsprintf.texi: Update.
62247
62248 2007-11-03  Bruno Haible  <bruno@clisp.org>
62249
62250         * modules/frexp-nolibm-tests: New file.
62251
62252         * modules/frexp-nolibm: New file.
62253         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62254
62255 2007-11-03  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62258         value is C99 compliant.
62259         Needed for OSF/1 5.1.
62260
62261 2007-11-03  Bruno Haible  <bruno@clisp.org>
62262
62263         Fix out-of-memory handling of vasnprintf.
62264         * lib/printf-parse.c: Include <errno.h>.
62265         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62266         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62267         is already set.
62268
62269 2007-11-02  Eric Blake  <ebb9@byu.net>
62270
62271         Fix tests on cygwin.
62272         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62273
62274 2007-11-01  Bruno Haible  <bruno@clisp.org>
62275
62276         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62277         warning.
62278         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62279         needed for POSIX compatibility.
62280
62281 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62284         for compatibility with GNU.
62285
62286 2007-11-01  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62289         (putenv): Renamed from rpl_putenv. Change argument type from
62290         'const char *' to 'char *'.
62291         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62292         of defining putenv in config.h, just set REPLACE_PUTENV.
62293         * modules/putenv (Depends-on): Add stdlib.
62294         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62295         (Include): Use <stdlib.h>.
62296         * lib/stdlib.in.h (putenv): New declaration.
62297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62298         REPLACE_PUTENV.
62299         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62300         REPLACE_PUTENV.
62301         Needed for MacOS X 10.5.0.
62302         Reported by Peter O'Gorman <peter@pogma.com>.
62303
62304 2007-11-01  Jim Meyering  <meyering@redhat.com>
62305
62306         Treat an empty date string exactly like "0".
62307         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62308         if the remaining date string (to be parsed) is empty, use "0".
62309         Reported by Mischa Molhoek and discussed in this thread:
62310         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62311
62312 2007-10-31  Bruno Haible  <bruno@clisp.org>
62313
62314         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62315         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62316         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62317         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62318         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62319         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62320
62321 2007-10-31  Bruno Haible  <bruno@clisp.org>
62322
62323         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62324         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62325         (AC_TYPE_LONG_LONG_INT): Use it.
62326         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62327         it as well.
62328         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62329         to m4/longlong.m4.
62330         * modules/stdint (Files): Remove m4/ulonglong.m4.
62331         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62332         m4/ulonglong.m4.
62333         * modules/strtoumax (Files): Likewise.
62334
62335 2007-10-30  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/xvasprintf-posix: New file.
62338         Suggested by Eric Blake.
62339
62340 2007-10-30  Bruno Haible  <bruno@clisp.org>
62341
62342         * modules/xprintf-posix-tests: New file.
62343         * tests/test-xprintf-posix.sh: New file.
62344         * tests/test-xprintf-posix.c: New file.
62345         * tests/test-xfprintf-posix.c: New file.
62346
62347         * modules/xprintf-posix: New file.
62348
62349 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62350
62351         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62352         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62353         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62354
62355 2007-10-29  Bruno Haible  <bruno@clisp.org>
62356
62357         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62358         contain the special marker '_cv_'.
62359         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62360         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62361         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62362         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62363         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62364         Reported by Ralf Wildenhues.
62365
62366 2007-10-29  Bruno Haible  <bruno@clisp.org>
62367
62368         * gnulib-tool (func_import): When --lgpl is not specified, set
62369         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62370         GPLv3.
62371         Reported by Simon Josefsson.
62372
62373 2007-10-28  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62376         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62377         HAVE_DECL_ISFINITE.
62378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62379         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62380         HAVE_DECL_ISFINITE.
62381
62382 2007-10-28  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62385         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62386
62387 2007-10-28  Bruno Haible  <bruno@clisp.org>
62388
62389         Fix link errors with Sun C 5.0 on Solaris 10.
62390         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62391         function is declared but not present in the compiler's libm.
62392         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62393         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62394         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62395         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62396         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62397         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62398         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62400         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62401         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62402         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62403         HAVE_DECL_FLOORL.
62404
62405 2007-10-28  Bruno Haible  <bruno@clisp.org>
62406
62407         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62408         gl_FUNC_FLOORL. Cache the result.
62409         (gl_FUNC_FLOORL): Use it.
62410         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62411         gl_FUNC_CEILL. Cache the result.
62412         (gl_FUNC_CEILL): Use it.
62413
62414         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62415         gl_FUNC_FLOOR. Cache the result.
62416         (gl_FUNC_FLOOR): Use it.
62417         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62418         gl_FUNC_CEIL. Cache the result.
62419         (gl_FUNC_CEIL): Use it.
62420
62421         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62422         gl_FUNC_FLOORF. Cache the result.
62423         (gl_FUNC_FLOORF): Use it.
62424         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62425         gl_FUNC_CEILF. Cache the result.
62426         (gl_FUNC_CEILF): Use it.
62427
62428 2007-10-28  Bruno Haible  <bruno@clisp.org>
62429
62430         * gnulib-tool: Allow specifying the LGPL version number through
62431         --lgpl=2 or --lgpl=3.
62432         (func_usage): Document --lgpl with argument.
62433         Handle --lgpl=... arguments.
62434         (func_import): Recognize also gl_LGPL calls with an argument. When
62435         --lgpl=2 is used and the module's license is just LGPL, report an
62436         error. Set sed_transform_lib_file according to the lgpl variable. In
62437         the generated files, use --lgpl or gl_LGPL invocations with argument,
62438         if necessary.
62439         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62440         an LGPv2+ license.
62441         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62442         gl_LGPL macro.
62443
62444 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62445             Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62448         (u16_uctomb_aux): Likewise.
62449         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62450         !HAVE_INLINE.
62451         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62452
62453 2007-10-28  Bruno Haible  <bruno@clisp.org>
62454
62455         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62456         Invoke AM_GETTEXT_OPTION if it exists.
62457         * modules/vasprintf: Likewise.
62458         * modules/verror: Likewise.
62459         * modules/xprintf: Likewise.
62460         * modules/xvasprintf: Likewise.
62461
62462 2007-10-27  Ben Pfaff  <blp@gnu.org>
62463
62464         * lib/math.in.h: Define isfinite macro and prototypes for
62465         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62466         implementations.
62467         * m4/math_h.m4: New substitutions for isfinite module.
62468         * lib/isfinite.c: New file.
62469         * m4/isfinite.m4: New file.
62470         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62471         * modules/isfinite: New file.
62472         * modules/isfinite-tests: New file.
62473         * tests/tests-isfinite.c: New file.
62474         * doc/functions/isfinite.texi: Mention isfinite module.
62475         * MODULES.html.sh: Mention new module.
62476
62477 2007-10-27  Ben Pfaff  <blp@gnu.org>
62478
62479         Ralf Wildenhues reported that Tru64 4.0D declares the round
62480         functions but does not have definitions.
62481         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62482         cannot be found in any library, set the output variable to
62483         "missing" instead of "".
62484         * m4/round.m4: Also use our substitute if we cannot find round in
62485         any library, even if it is declared.
62486         * m4/roundf.m4: Likewise for roundf.
62487         * m4/roundl.m4: Likewise for roundl.
62488         * lib/math.in.h: Undefine roundf, round, roundl before defining
62489         their replacements, to allow for hypothetical systems where these
62490         may be defined as macros but not available in libraries.
62491
62492 2007-10-27  Bruno Haible  <bruno@clisp.org>
62493
62494         * doc/gnulib.texi: Invoke @firstparagraphindent.
62495         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62496         changes in gnulib.
62497         (Source changes): New section.
62498
62499 2007-10-26  Bruno Haible  <bruno@clisp.org>
62500
62501         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62502         borrowed from autoconf.
62503
62504 2007-10-26  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62507         strerror returned the empty string. Needed on HP-UX 11.00.
62508
62509 2007-10-24  Micah Cowan  <micah@cowan.name>
62510
62511         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62512         * build-aux/bootstrap: Remove support for now-unnecessary option,
62513         --cvs-user, and envvars CVS_USER, CVS_RSH.
62514
62515 2007-10-24  Jim Meyering  <meyering@redhat.com>
62516
62517         Avoid diagnostics from sha1sum when there is no cached checksum.
62518         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62519         if the po.s1 file hasn't been created yet.
62520
62521         * build-aux/bootstrap: Sync from coreutils:
62522         2007-10-24  Jim Meyering  <meyering@redhat.com>
62523         Get gnulib from the git repository, not from an obsolete cvs one.
62524         * build-aux/bootstrap: Suggestion from Micah Cowan.
62525         2007-10-04  Jim Meyering  <jim@meyering.net>
62526         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62527         (update_po_files): Work also when there are no .po files in po/.
62528
62529 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62530
62531         * README: Append ".git" to git and cg examples.
62532         Problem reported by Benoit Sigoure.
62533
62534 2007-10-23  Micah Cowan  <micah@cowan.name>
62535
62536         * users.txt: Add wget.
62537
62538 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62539
62540         Fix linking of some unistdio tests on FreeBSD.
62541         * modules/unistdio/u16-vsnprintf-tests
62542         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62543         * modules/unistdio/u16-vsprintf-tests
62544         (test_u16_vsnprintf1_LDADD): Likewise.
62545         * modules/unistdio/u32-vsnprintf-tests
62546         (test_u32_vsnprintf1_LDADD): Likewise.
62547         * modules/unistdio/u32-vsprintf-tests
62548         (test_u32_vsprintf1_LDADD): Likewise.
62549         * modules/unistdio/u8-vsnprintf-tests
62550         (test_u8_vsnprintf1_LDADD): Likewise.
62551         * modules/unistdio/u8-vsprintf-tests
62552         (test_u8_vsprintf1_LDADD): Likewise.
62553         * modules/unistdio/ulc-vsnprintf-tests
62554         (test_ulc_vsnprintf1_LDADD): Likewise.
62555         * modules/unistdio/ulc-vsprintf-tests
62556         (test_ulc_vsprintf1_LDADD): Likewise.
62557
62558         Fix linking of some uniconv tests on FreeBSD.
62559         * modules/uniconv/u16-conv-from-enc-tests
62560         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62561         * modules/uniconv/u16-conv-to-enc-tests
62562         (test_u16_conv_to_enc_LDADD): Likewise.
62563         * modules/uniconv/u16-strconv-from-enc-tests
62564         (test_u16_strconv_from_enc_LDADD): Likewise.
62565         * modules/uniconv/u16-strconv-to-enc-tests
62566         (test_u16_strconv_to_enc_LDADD): Likewise.
62567         * modules/uniconv/u32-conv-from-enc-tests
62568         (test_u32_conv_from_enc_LDADD): Likewise.
62569         * modules/uniconv/u32-conv-to-enc-tests
62570         (test_u32_conv_to_enc_LDADD): Likewise.
62571         * modules/uniconv/u32-strconv-from-enc-tests
62572         (test_u32_strconv_from_enc_LDADD): Likewise.
62573         * modules/uniconv/u32-strconv-to-enc-tests
62574         (test_u32_strconv_to_enc_LDADD): Likewise.
62575         * modules/uniconv/u8-conv-from-enc-tests
62576         (test_u8_conv_from_enc_LDADD): Likewise.
62577         * modules/uniconv/u8-conv-to-enc-tests
62578         (test_u8_conv_to_enc_LDADD): Likewise.
62579         * modules/uniconv/u8-strconv-from-enc-tests
62580         (test_u8_strconv_from_enc_LDADD): Likewise.
62581         * modules/uniconv/u8-strconv-to-enc-tests
62582         (test_u8_strconv_to_enc_LDADD): Likewise.
62583
62584 2007-10-22  Bruno Haible  <bruno@clisp.org>
62585
62586         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62587         size.
62588
62589 2007-10-22  Eric Blake  <ebb9@byu.net>
62590
62591         Tweak x*printf documentation.
62592         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62593         variable name and comments.
62594         Suggested by Bruno Haible.
62595
62596 2007-10-22  Bruno Haible  <bruno@clisp.org>
62597
62598         * lib/acl.c (copy_acl): Fix file name in comment.
62599
62600 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         Fix Tru64 problem with stdbool.h.
62603         * lib/stdbool.in.h (false, true):
62604         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62605         Don't declare as an enum in this situation; it runs afoul of Tru64.
62606         Problem reported by Steven M. Schweda in
62607         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62608
62609 2007-10-22  Eric Blake  <ebb9@byu.net>
62610
62611         Also wrap vf?printf.
62612         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62613         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62614         (xvprintf, xvfprintf): New functions.
62615
62616 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62617
62618         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62619         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62620
62621         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62622         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62623
62624 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62627         by Bruno Haible.
62628
62629 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62630
62631         * lib/getloadavg.c
62632         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62633         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62634
62635         * tests/test-i-ring.c: Work for C89.
62636
62637 2007-10-22  Bruno Haible  <bruno@clisp.org>
62638
62639         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62640         -1u, in preprocessor expression, so that we don't test for the bug
62641         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62642         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62643
62644 2007-10-22  Eric Blake  <ebb9@byu.net>
62645
62646         * tests/test-yesno.sh: Silence stderr during test.
62647
62648 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62649
62650         * modules/crypto/gc-camellia: New file.
62651
62652         * m4/gc-camellia.m4: New file.
62653
62654         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62655
62656         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62657
62658 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62659
62660         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62661         --help to stdout.  Reported by sms@antinode.org (Steven
62662         M. Schweda).
62663
62664 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62665
62666         * users.txt: Fix link to libksba.
62667
62668 2007-10-21  Ben Pfaff  <blp@gnu.org>
62669
62670         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62671         round.c roundf implementation that depends on floorf and ceilf to
62672         be tested unconditionally.
62673
62674 2007-10-21  Ben Pfaff  <blp@gnu.org>
62675
62676         * m4/check-libm-func.m4: Removed.
62677         * m4/check-math-lib.m4: New file.
62678         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62679         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62680         definition and lack of AC_LIBOBJ([roundf]).
62681         * m4/roundl.m4: Ditto, and similarly for roundl.
62682         * modules/round: Reference new m4 file.
62683         * modules/roundf: Ditto.
62684         * modules/roundl: Ditto.
62685         * tests/test-round2.c (main): Use ROUND instead of round.
62686         Bug report from Bruno Haible.
62687
62688 2007-10-21  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62691         context.
62692
62693 2007-10-21  Bruno Haible  <bruno@clisp.org>
62694
62695         * tests/test-wcwidth.c (main): Allow negative result for some control
62696         characters.
62697
62698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62699         Needed on OSF/1 5.1.
62700
62701 2007-10-21  Bruno Haible  <bruno@clisp.org>
62702
62703         * tests/test-floorf1.c: Include isnanf.h.
62704         (main): Use isnanf() instead of isnan().
62705         * tests/test-ceilf1.c: Include isnanf.h.
62706         (main): Use isnanf() instead of isnan().
62707         * tests/test-truncf1.c: Include isnanf.h.
62708         (main): Use isnanf() instead of isnan().
62709         * tests/test-roundf1.c: Include isnanf.h.
62710         (main): Use isnanf() instead of isnan().
62711
62712 2007-10-21  Eric Blake  <ebb9@byu.net>
62713
62714         * users.txt: Update URL for m4.
62715
62716 2007-10-21  Bruno Haible  <bruno@clisp.org>
62717
62718         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62719
62720 2007-10-21  Bruno Haible  <bruno@clisp.org>
62721
62722         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62723         Git's management files if the CVS files are not present.
62724
62725 2007-10-20  Bruno Haible  <bruno@clisp.org>
62726
62727         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62728         gcc-3.4.x.
62729
62730 2007-10-20  Ben Pfaff  <blp@gnu.org>
62731
62732         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62733         implementations.
62734         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62735         * lib/round.c: New file.
62736         * lib/roundf.c: New file.
62737         * lib/roundl.c: New file.
62738         * m4/round.m4: New file.
62739         * m4/roundf.m4: New file.
62740         * m4/roundl.m4: New file.
62741         * m4/check-libm-func-m4: New file.
62742         * modules/math: Replace round, roundf, roundl related @VARS@ in
62743         math.in.h.
62744         * modules/round: New file.
62745         * modules/round-tests: New file.
62746         * modules/roundf: New file.
62747         * modules/roundf-tests: New file.
62748         * modules/roundl: New file.
62749         * modules/roundl-tests: New file.
62750         * tests/test-round1.c: New file.
62751         * tests/test-round2.c: New file.
62752         * tests/test-roundf1.c: New file.
62753         * tests/test-roundf2.c: New file.
62754         * tests/test-roundl.c: New file.
62755         * doc/functions/round.texi: Mention round module.
62756         * doc/functions/roundf.texi: Mention roundf module.
62757         * doc/functions/roundl.texi: Mention roundl module.
62758         * MODULES.html.sh: Mention new modules.
62759         Thanks to Bruno Haible for suggestions.
62760
62761 2007-10-20  Jim Meyering  <meyering@redhat.com>
62762
62763         * lib/xprintf.c: Include <config.h> unconditionally.
62764
62765         Change xprintf's license to GPL.
62766         * modules/xprintf (License): s/LGPL/GPL/, since this module
62767         depends on modules (exit and exitfail) which are GPL.
62768         Suggestion from Bruno Haible.
62769
62770         xprintf fixes.
62771         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62772         Use a clearer diagnostic.
62773         Patch from Bruno Haible.
62774
62775 2007-10-20  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62778         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62779         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62780
62781 2007-10-20  Bruno Haible  <bruno@clisp.org>
62782
62783         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62784         precision in the comparison result > x - 1 or similar.
62785         * tests/test-ceilf2.c (correct_result_p): Likewise.
62786         * tests/test-truncf2.c (correct_result_p): Likewise.
62787         * tests/test-trunc2.c (correct_result_p): Likewise.
62788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62789
62790 2007-10-20  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/ceil: New file.
62793         * m4/ceil.m4: New file.
62794         * doc/functions/ceil.texi: Mention the 'ceil' module.
62795
62796 2007-10-20  Bruno Haible  <bruno@clisp.org>
62797
62798         * modules/floor: New file.
62799         * m4/floor.m4: New file.
62800         * doc/functions/floor.texi: Mention the 'floor' module.
62801
62802 2007-10-20  Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62805         of %a.
62806         * modules/floorf-tests (Depends-on): Likewise.
62807         * modules/truncf-tests (Depends-on): Likewise.
62808         * modules/trunc-tests (Depends-on): Likewise.
62809         Reported by Ben Pfaff.
62810
62811 2007-10-19  Jim Meyering  <meyering@redhat.com>
62812
62813         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62814         Don't bother testing specific errno values.  Just test ferror.
62815
62816         New module: xprintf
62817         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62818
62819 2007-10-19  Bruno Haible  <bruno@clisp.org>
62820
62821         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62822         syntax.
62823         * modules/javaexec (Makefile.am): Likewise.
62824         * modules/relocatable-prog (Makefile.am): Likewise.
62825         Suggested by Jim Meyering.
62826
62827 2007-10-18  Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62830         Reported by Jim Meyering.
62831
62832 2007-10-18  Eric Blake  <ebb9@byu.net>
62833
62834         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62835
62836 2007-10-18  Bruno Haible  <bruno@clisp.org>
62837
62838         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62839         the format string into writable memory. Needed in Fortify conditions.
62840
62841 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62842             Bruno Haible  <bruno@clisp.org>
62843
62844         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62845         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62846         * modules/trim (Depends-on): Add mbchar.
62847         (configure.ac): Add gl_FUNC_MBRTOWC.
62848         (Makefile.am): Augment lib_SOURCES.
62849
62850 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         Modify glob.c to use fstatat and dirfd, to simplify it.
62853         Suggested by Eric Blake.
62854         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62855         Don't include <stdbool.h>; not used.
62856         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62857         (link_exists_p): Simplify implementation, since we can now assume
62858         dirfd and fstatat.
62859         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62860
62861 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62862
62863         * gnulib-tool (func_get_dependencies): Fix sed script to
62864         match only tests.
62865
62866 2007-10-17  Bruno Haible  <bruno@clisp.org>
62867
62868         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62869         allow locale names without encoding suffix.
62870         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62871         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62872
62873 2007-10-16  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62876         * lib/getgroups.c (getgroups): Likewise.
62877         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62878
62879 2007-10-16  Bruno Haible  <bruno@clisp.org>
62880
62881         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62882         * modules/malloc-posix (License): Likewise.
62883         * modules/realloc-posix (License): Likewise.
62884         * modules/calloc-posix (License): Likewise.
62885         * modules/intprops (License): Change from GPL to LGPL, with
62886         Paul Eggert's approval.
62887
62888 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         Merge glibc changes into lib/glob.c.
62891
62892         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62893         2007-10-15 04:59:03 UTC.  Here are the changes:
62894
62895         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62896
62897         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62898
62899         * lib/glob.c: Add some branch prediction throughout.
62900
62901         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62902
62903         [BZ #5103]
62904         * lib/glob.c (glob): Recognize patterns starting \/.
62905
62906         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62907
62908         [BZ #3996]
62909         * lib/glob.c (attribute_hidden): Define if not defined.
62910         (glob): Unescape dirname, filename or username when needed and not
62911         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62912         is NULL.  Handle unescaped [ in pattern without closing ].
62913         Don't pass GLOB_CHECK down to recursive glob for directories.
62914         (__glob_pattern_type): New function.
62915         (__glob_pattern_p): Implement using __glob_pattern_type.
62916         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62917         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62918         Remove unreachable code.
62919
62920         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62921
62922         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62923         explain why there are no leaks.
62924
62925         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62926
62927         [BZ #3253]
62928         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62929         time, rather allocate increasingly bigger arrays of pointers, if
62930         possible with alloca, if too large with malloc.
62931
62932 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62935         Problem reported by H.Merijn Brand in
62936         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62938         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62939
62940 2007-10-15  Bruno Haible  <bruno@clisp.org>
62941
62942         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62943         with explicit rpl_ prefix.
62944         * lib/fopen.c (fopen): Likewise.
62945         * lib/freopen.c (freopen): Likewise.
62946         * lib/iconv.c (iconv): Likewise.
62947         * lib/iconv_close.c (iconv_close): Likewise.
62948
62949 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62950
62951         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62952
62953 2007-10-15  Bruno Haible  <bruno@clisp.org>
62954
62955         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62956         <stddef.h> instead of <stdlib.h> since we only need NULL.
62957         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62958
62959 2007-10-15  Bruno Haible  <bruno@clisp.org>
62960
62961         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62962         Replace paragraph talking about LIBOBJS.
62963         Reported by Colin Watson <cjwatson@debian.org>.
62964
62965 2007-10-15  Bruno Haible  <bruno@clisp.org>
62966
62967         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62968         <stdlib.h> before using NULL.
62969
62970 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62971
62972         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62973         Reported by Albert Chin <china@thewrittenword.com>.
62974
62975 2007-10-14  Bruno Haible  <bruno@clisp.org>
62976
62977         * modules/iconv_open-utf-tests: New file.
62978         * tests/test-iconv-utf.c: New file.
62979
62980         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62981         * modules/iconv_open-utf: New file.
62982         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62983         (iconv, iconv_close): New declarations.
62984         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62985         be defined.
62986         (iconv_open): Add special handling of conversion between UTF-8 and
62987         UTF-{16,32}{BE,LE}.
62988         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62989         * lib/iconv_close.c: New file.
62990         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62991         gl_FUNC_ICONV_OPEN.
62992         (gl_FUNC_ICONV_OPEN): Use it.
62993         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62994         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62995         and REPLACE_ICONV_UTF.
62996         * modules/iconv_open (Depends-on): Add c-strcase.
62997         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62998         ICONV_CONST.
62999         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63000
63001 2007-10-13  Albert Chin  <china@thewrittenword.com>
63002             Bruno Haible  <bruno@clisp.org>
63003
63004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63005         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63006
63007 2007-10-13  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63010         defined, use the ISO C99 inline semantics.
63011         * lib/argp.h (ARGP_EI): Likewise.
63012
63013 2007-10-13  Bruno Haible  <bruno@clisp.org>
63014
63015         Handle 'inline' change in gcc 4.3.0.
63016         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63017         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63018         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63019         argp_fmtstream_point): Disable 'extern' declaration if the function
63020         definition is going to be provided inline.
63021         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63022         semantics, not the ISO C99 inline semantics.
63023         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63024         'extern' declaration if the function definition is going to be provided
63025         inline.
63026         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63027         the GNU C inline semantics, not the ISO C99 inline semantics. With
63028         GCC 4.2, avoid a warning.
63029
63030 2007-10-13  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/freading.h (freading): Enable the use of __freading for
63033         glibc >= 2.7.
63034         * lib/freading.c (freading): Likewise.
63035
63036 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63039         "warning: C99 inline functions are not supported; using GNU89".
63040
63041 2007-10-12  Bruno Haible  <bruno@clisp.org>
63042
63043         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63044         of 2.
63045         * tests/test-ceilf2.c: New file.
63046         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63047
63048         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63049         * modules/ceilf-tests: Update.
63050
63051 2007-10-12  Bruno Haible  <bruno@clisp.org>
63052
63053         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63054         of 2.
63055         * tests/test-floorf2.c: New file.
63056         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63057
63058         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63059         * modules/floorf-tests: Update.
63060
63061 2007-10-12  Bruno Haible  <bruno@clisp.org>
63062
63063         * tests/test-trunc2.c: New file.
63064         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63065
63066         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63067         * modules/trunc-tests: Update.
63068
63069 2007-10-12  Bruno Haible  <bruno@clisp.org>
63070
63071         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63072         of 2.
63073         * tests/test-truncf2.c: New file.
63074         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63075
63076         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63077         * modules/truncf-tests: Update.
63078
63079 2007-10-11  Eric Blake  <ebb9@byu.net>
63080
63081         Don't claim strerror is broken on Interix.
63082         * doc/functions/strerror.texi (strerror): Known broken systems are
63083         now Solaris 8, and not Interix.
63084         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63085         Interix on cross-compile.
63086         Reported by Martin Koeppe in
63087         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63088
63089 2007-10-11  Bruno Haible  <bruno@clisp.org>
63090
63091         * modules/i-ring-tests: New file.
63092         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63093         instead of assert.
63094
63095 2007-10-11  Bruno Haible  <bruno@clisp.org>
63096
63097         * modules/filenamecat-tests: New file.
63098         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63099         * lib/filenamecat.c: Remove test code.
63100
63101 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63104
63105         * lib/strerror.c: Include <string.h> always, to test interface,
63106         and to remove the need for the dummy.
63107         Include intprops.h to compute width instead of doing it ourselves
63108         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63109         (strerror): Define it to return NULL if there's no system strerror.
63110         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63111         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63112         ancient pre-strerror Unix systems well any more.  Saying "unknown
63113         system error" is enough.
63114         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63115         simpler strerror.c implementation.
63116         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63117         Simplify the tests to reflect the simpler strerror implementation.
63118         * modules/strerror (Depends-on): Add intprops.
63119
63120 2007-10-09  Eric Blake  <ebb9@byu.net>
63121
63122         Silence test-fpending.
63123         * modules/fpending-tests (Files): Add wrapper script.
63124         * tests/test-fpending.sh: New file.
63125
63126 2007-10-09  Bruno Haible  <bruno@clisp.org>
63127
63128         * MODULES.html.sh (func_module): Don't create a hyperlink for
63129         function names like 'printf_frexp'.
63130         (Misc): Add crc, memxor.
63131         (Characteristics of floating types): New section.
63132         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63133         isnanf-nolibm, signbit, trunc, truncf, truncl.
63134         (Enhancements for ISO C 99 functions): New subsection Input/output.
63135         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63136         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63137         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63138         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63139         (Enhancements for POSIX:2001 functions): Add chdir-long.
63140         (File system functions): Add areadlink, chdir-safer, read-file.
63141         Remove cycle-check.
63142         (File system as inode set): New section.
63143         (Date and time): Add gethrxtime.
63144         (Multithreading): Add openmp.
63145         (Internationalization functions): Add localename.
63146         (Unicode string functions): Add unistr/u*-mbsnlen.
63147         (Support for maintaining and releasing projects): Add git-version-gen.
63148         (Lone files): Remove directories.
63149
63150 2007-10-08  Ben Pfaff  <blp@gnu.org>
63151
63152         * lib/xmalloca.h: Fix typo in comment.
63153
63154 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63155
63156         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63157         when avoiding problems with integer overflow.  Use a portable test
63158         instead.
63159
63160 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63161
63162         * modules/dummy (License): Change to LGPLv2+.
63163         * modules/float (License): Likewise
63164         * modules/realloc (License): Likewise
63165         * modules/stdlib (License): Likewise
63166
63167 2007-10-07  Bruno Haible  <bruno@clisp.org>
63168
63169         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63170         * floor.c (TWO_MANT_DIG): Likewise.
63171         * ceil.c (TWO_MANT_DIG): Likewise.
63172         Reported by Ben Pfaff.
63173
63174 2007-10-07  Bruno Haible  <bruno@clisp.org>
63175
63176         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63177         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63178         * lib/frexp.c (FUNC): Likewise.
63179         * lib/printf-frexp.h (printf_frexp): Likewise.
63180         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63181         * lib/printf-frexp.c (FUNC): Likewise.
63182         Suggested by Jim Meyering.
63183
63184 2007-10-07  Jim Meyering  <meyering@redhat.com>
63185
63186         Make xnanosleep's integer overflow test more robust.
63187         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63188         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63189
63190 2007-10-07  Bruno Haible  <bruno@clisp.org>
63191
63192         * NEWS: Mention the license change.
63193
63194         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63195         abbreviations in the modules files.
63196
63197         Change copyright notice from GPLv2+ to GPLv3+.
63198         * README: Change copyright notice.
63199         * MODULES.html.sh: Likewise.
63200         * build-aux/bootstrap.conf: Likewise.
63201         * build-aux/config.libpath: Likewise.
63202         * build-aux/csharpcomp.sh.in: Likewise.
63203         * build-aux/csharpexec.sh.in: Likewise.
63204         * build-aux/install-reloc: Likewise.
63205         * build-aux/javacomp.sh.in: Likewise.
63206         * build-aux/javaexec.sh.in: Likewise.
63207         * build-aux/ldd.sh.in: Likewise.
63208         * build-aux/reloc-ldflags: Likewise.
63209         * build-aux/relocatable.sh.in: Likewise.
63210         * build-aux/x-to-1.in: Likewise.
63211         * check-module: Likewise.
63212         * config/srclistvars.sh: Likewise.
63213         * gnulib-tool: Likewise.
63214         * lib/acl-internal.h: Likewise.
63215         * lib/acl.c: Likewise.
63216         * lib/acl.h: Likewise.
63217         * lib/acl_entries.c: Likewise.
63218         * lib/areadlink-with-size.c: Likewise.
63219         * lib/areadlink.c: Likewise.
63220         * lib/areadlink.h: Likewise.
63221         * lib/argmatch.c: Likewise.
63222         * lib/argmatch.h: Likewise.
63223         * lib/argp-ba.c: Likewise.
63224         * lib/argp-eexst.c: Likewise.
63225         * lib/argp-fmtstream.c: Likewise.
63226         * lib/argp-fmtstream.h: Likewise.
63227         * lib/argp-fs-xinl.c: Likewise.
63228         * lib/argp-help.c: Likewise.
63229         * lib/argp-namefrob.h: Likewise.
63230         * lib/argp-parse.c: Likewise.
63231         * lib/argp-pin.c: Likewise.
63232         * lib/argp-pv.c: Likewise.
63233         * lib/argp-pvh.c: Likewise.
63234         * lib/argp-xinl.c: Likewise.
63235         * lib/argp.h: Likewise.
63236         * lib/at-func.c: Likewise.
63237         * lib/atanl.c: Likewise.
63238         * lib/backupfile.c: Likewise.
63239         * lib/backupfile.h: Likewise.
63240         * lib/basename.c: Likewise.
63241         * lib/binary-io.h: Likewise.
63242         * lib/byteswap.in.h: Likewise.
63243         * lib/c-stack.c: Likewise.
63244         * lib/c-stack.h: Likewise.
63245         * lib/c-strcasestr.c: Likewise.
63246         * lib/c-strcasestr.h: Likewise.
63247         * lib/c-strstr.c: Likewise.
63248         * lib/c-strstr.h: Likewise.
63249         * lib/c-strtod.c: Likewise.
63250         * lib/calloc.c: Likewise.
63251         * lib/canon-host.c: Likewise.
63252         * lib/canon-host.h: Likewise.
63253         * lib/canonicalize-lgpl.c: Likewise.
63254         * lib/canonicalize.c: Likewise.
63255         * lib/canonicalize.h: Likewise.
63256         * lib/ceil.c: Likewise.
63257         * lib/ceilf.c: Likewise.
63258         * lib/ceill.c: Likewise.
63259         * lib/chdir-long.c: Likewise.
63260         * lib/chdir-long.h: Likewise.
63261         * lib/chdir-safer.c: Likewise.
63262         * lib/chdir-safer.h: Likewise.
63263         * lib/chown.c: Likewise.
63264         * lib/classpath.c: Likewise.
63265         * lib/classpath.h: Likewise.
63266         * lib/clean-temp.c: Likewise.
63267         * lib/clean-temp.h: Likewise.
63268         * lib/cloexec.c: Likewise.
63269         * lib/close-stream.c: Likewise.
63270         * lib/closein.c: Likewise.
63271         * lib/closein.h: Likewise.
63272         * lib/closeout.c: Likewise.
63273         * lib/closeout.h: Likewise.
63274         * lib/concat-filename.c: Likewise.
63275         * lib/copy-file.c: Likewise.
63276         * lib/copy-file.h: Likewise.
63277         * lib/count-one-bits.h: Likewise.
63278         * lib/crc.c: Likewise.
63279         * lib/crc.h: Likewise.
63280         * lib/creat-safer.c: Likewise.
63281         * lib/csharpcomp.c: Likewise.
63282         * lib/csharpcomp.h: Likewise.
63283         * lib/csharpexec.c: Likewise.
63284         * lib/csharpexec.h: Likewise.
63285         * lib/cycle-check.c: Likewise.
63286         * lib/cycle-check.h: Likewise.
63287         * lib/diacrit.c: Likewise.
63288         * lib/diacrit.h: Likewise.
63289         * lib/diffseq.h: Likewise.
63290         * lib/dirchownmod.c: Likewise.
63291         * lib/dirent.in.h: Likewise.
63292         * lib/dirfd.c: Likewise.
63293         * lib/dirfd.h: Likewise.
63294         * lib/dirname.c: Likewise.
63295         * lib/dirname.h: Likewise.
63296         * lib/dummy.c: Likewise.
63297         * lib/dup-safer.c: Likewise.
63298         * lib/dup2.c: Likewise.
63299         * lib/eealloc.h: Likewise.
63300         * lib/error.c: Likewise.
63301         * lib/error.h: Likewise.
63302         * lib/euidaccess.c: Likewise.
63303         * lib/exclude.c: Likewise.
63304         * lib/exclude.h: Likewise.
63305         * lib/execute.c: Likewise.
63306         * lib/execute.h: Likewise.
63307         * lib/exitfail.c: Likewise.
63308         * lib/exitfail.h: Likewise.
63309         * lib/expl.c: Likewise.
63310         * lib/fatal-signal.c: Likewise.
63311         * lib/fatal-signal.h: Likewise.
63312         * lib/fbufmode.c: Likewise.
63313         * lib/fbufmode.h: Likewise.
63314         * lib/fchdir.c: Likewise.
63315         * lib/fchmodat.c: Likewise.
63316         * lib/fchownat.c: Likewise.
63317         * lib/fcntl--.h: Likewise.
63318         * lib/fcntl-safer.h: Likewise.
63319         * lib/fcntl.in.h: Likewise.
63320         * lib/fd-safer.c: Likewise.
63321         * lib/fflush.c: Likewise.
63322         * lib/file-has-acl.c: Likewise.
63323         * lib/file-set.c: Likewise.
63324         * lib/file-type.c: Likewise.
63325         * lib/file-type.h: Likewise.
63326         * lib/fileblocks.c: Likewise.
63327         * lib/filemode.c: Likewise.
63328         * lib/filemode.h: Likewise.
63329         * lib/filename.h: Likewise.
63330         * lib/filenamecat.c: Likewise.
63331         * lib/filenamecat.h: Likewise.
63332         * lib/findprog.c: Likewise.
63333         * lib/findprog.h: Likewise.
63334         * lib/float.in.h: Likewise.
63335         * lib/floor.c: Likewise.
63336         * lib/floorf.c: Likewise.
63337         * lib/floorl.c: Likewise.
63338         * lib/fopen-safer.c: Likewise.
63339         * lib/fopen.c: Likewise.
63340         * lib/fpending.c: Likewise.
63341         * lib/fpending.h: Likewise.
63342         * lib/fprintf.c: Likewise.
63343         * lib/fprintftime.h: Likewise.
63344         * lib/fpucw.h: Likewise.
63345         * lib/fpurge.c: Likewise.
63346         * lib/fpurge.h: Likewise.
63347         * lib/freadable.c: Likewise.
63348         * lib/freadable.h: Likewise.
63349         * lib/freadahead.c: Likewise.
63350         * lib/freadahead.h: Likewise.
63351         * lib/freading.c: Likewise.
63352         * lib/freading.h: Likewise.
63353         * lib/free.c: Likewise.
63354         * lib/freopen.c: Likewise.
63355         * lib/frexp.c: Likewise.
63356         * lib/frexpl.c: Likewise.
63357         * lib/fseek.c: Likewise.
63358         * lib/fseterr.c: Likewise.
63359         * lib/fseterr.h: Likewise.
63360         * lib/fstatat.c: Likewise.
63361         * lib/fstrcmp.c: Likewise.
63362         * lib/fstrcmp.h: Likewise.
63363         * lib/fsusage.c: Likewise.
63364         * lib/fsusage.h: Likewise.
63365         * lib/ftell.c: Likewise.
63366         * lib/ftello.c: Likewise.
63367         * lib/fts-cycle.c: Likewise.
63368         * lib/fts.c: Likewise.
63369         * lib/fts_.h: Likewise.
63370         * lib/full-read.c: Likewise.
63371         * lib/full-read.h: Likewise.
63372         * lib/full-write.c: Likewise.
63373         * lib/full-write.h: Likewise.
63374         * lib/fwritable.c: Likewise.
63375         * lib/fwritable.h: Likewise.
63376         * lib/fwriteerror.c: Likewise.
63377         * lib/fwriteerror.h: Likewise.
63378         * lib/fwriting.c: Likewise.
63379         * lib/fwriting.h: Likewise.
63380         * lib/gcd.c: Likewise.
63381         * lib/gcd.h: Likewise.
63382         * lib/getcwd.c: Likewise.
63383         * lib/getdate.h: Likewise.
63384         * lib/getdate.y: Likewise.
63385         * lib/getdomainname.c: Likewise.
63386         * lib/getdomainname.h: Likewise.
63387         * lib/getgroups.c: Likewise.
63388         * lib/gethostname.c: Likewise.
63389         * lib/gethrxtime.c: Likewise.
63390         * lib/gethrxtime.h: Likewise.
63391         * lib/getloadavg.c: Likewise.
63392         * lib/getndelim2.c: Likewise.
63393         * lib/getndelim2.h: Likewise.
63394         * lib/getnline.c: Likewise.
63395         * lib/getnline.h: Likewise.
63396         * lib/getopt.c: Likewise.
63397         * lib/getopt.in.h: Likewise.
63398         * lib/getopt1.c: Likewise.
63399         * lib/getopt_int.h: Likewise.
63400         * lib/getpagesize.h: Likewise.
63401         * lib/getsubopt.c: Likewise.
63402         * lib/gettime.c: Likewise.
63403         * lib/getugroups.c: Likewise.
63404         * lib/getugroups.h: Likewise.
63405         * lib/getusershell.c: Likewise.
63406         * lib/gl_anyavltree_list1.h: Likewise.
63407         * lib/gl_anyavltree_list2.h: Likewise.
63408         * lib/gl_anyhash_list1.h: Likewise.
63409         * lib/gl_anyhash_list2.h: Likewise.
63410         * lib/gl_anylinked_list1.h: Likewise.
63411         * lib/gl_anylinked_list2.h: Likewise.
63412         * lib/gl_anyrbtree_list1.h: Likewise.
63413         * lib/gl_anyrbtree_list2.h: Likewise.
63414         * lib/gl_anytree_list1.h: Likewise.
63415         * lib/gl_anytree_list2.h: Likewise.
63416         * lib/gl_anytree_oset.h: Likewise.
63417         * lib/gl_anytreehash_list1.h: Likewise.
63418         * lib/gl_anytreehash_list2.h: Likewise.
63419         * lib/gl_array_list.c: Likewise.
63420         * lib/gl_array_list.h: Likewise.
63421         * lib/gl_array_oset.c: Likewise.
63422         * lib/gl_array_oset.h: Likewise.
63423         * lib/gl_avltree_list.c: Likewise.
63424         * lib/gl_avltree_list.h: Likewise.
63425         * lib/gl_avltree_oset.c: Likewise.
63426         * lib/gl_avltree_oset.h: Likewise.
63427         * lib/gl_avltreehash_list.c: Likewise.
63428         * lib/gl_avltreehash_list.h: Likewise.
63429         * lib/gl_carray_list.c: Likewise.
63430         * lib/gl_carray_list.h: Likewise.
63431         * lib/gl_linked_list.c: Likewise.
63432         * lib/gl_linked_list.h: Likewise.
63433         * lib/gl_linkedhash_list.c: Likewise.
63434         * lib/gl_linkedhash_list.h: Likewise.
63435         * lib/gl_list.c: Likewise.
63436         * lib/gl_list.h: Likewise.
63437         * lib/gl_oset.c: Likewise.
63438         * lib/gl_oset.h: Likewise.
63439         * lib/gl_rbtree_list.c: Likewise.
63440         * lib/gl_rbtree_list.h: Likewise.
63441         * lib/gl_rbtree_oset.c: Likewise.
63442         * lib/gl_rbtree_oset.h: Likewise.
63443         * lib/gl_rbtreehash_list.c: Likewise.
63444         * lib/gl_rbtreehash_list.h: Likewise.
63445         * lib/gl_sublist.c: Likewise.
63446         * lib/gl_sublist.h: Likewise.
63447         * lib/group-member.c: Likewise.
63448         * lib/group-member.h: Likewise.
63449         * lib/hard-locale.c: Likewise.
63450         * lib/hard-locale.h: Likewise.
63451         * lib/hash-pjw.c: Likewise.
63452         * lib/hash-pjw.h: Likewise.
63453         * lib/hash-triple.c: Likewise.
63454         * lib/hash.c: Likewise.
63455         * lib/hash.h: Likewise.
63456         * lib/human.c: Likewise.
63457         * lib/human.h: Likewise.
63458         * lib/i-ring.c: Likewise.
63459         * lib/i-ring.h: Likewise.
63460         * lib/idcache.c: Likewise.
63461         * lib/imaxabs.c: Likewise.
63462         * lib/imaxdiv.c: Likewise.
63463         * lib/inet_pton.c: Likewise.
63464         * lib/inet_pton.h: Likewise.
63465         * lib/intprops.h: Likewise.
63466         * lib/inttostr.c: Likewise.
63467         * lib/inttostr.h: Likewise.
63468         * lib/inttypes.in.h: Likewise.
63469         * lib/isapipe.c: Likewise.
63470         * lib/isdir.c: Likewise.
63471         * lib/isnan.c: Likewise.
63472         * lib/isnan.h: Likewise.
63473         * lib/isnanf.c: Likewise.
63474         * lib/isnanf.h: Likewise.
63475         * lib/isnanl-nolibm.h: Likewise.
63476         * lib/isnanl.c: Likewise.
63477         * lib/isnanl.h: Likewise.
63478         * lib/javacomp.c: Likewise.
63479         * lib/javacomp.h: Likewise.
63480         * lib/javaexec.c: Likewise.
63481         * lib/javaexec.h: Likewise.
63482         * lib/javaversion.c: Likewise.
63483         * lib/javaversion.h: Likewise.
63484         * lib/javaversion.java: Likewise.
63485         * lib/lbrkprop.h: Likewise.
63486         * lib/lchmod.h: Likewise.
63487         * lib/lchown.c: Likewise.
63488         * lib/ldexpl.c: Likewise.
63489         * lib/linebreak.c: Likewise.
63490         * lib/linebreak.h: Likewise.
63491         * lib/linebuffer.c: Likewise.
63492         * lib/linebuffer.h: Likewise.
63493         * lib/locale.in.h: Likewise.
63494         * lib/logl.c: Likewise.
63495         * lib/long-options.c: Likewise.
63496         * lib/long-options.h: Likewise.
63497         * lib/lstat.c: Likewise.
63498         * lib/lstat.h: Likewise.
63499         * lib/math.in.h: Likewise.
63500         * lib/mbchar.c: Likewise.
63501         * lib/mbchar.h: Likewise.
63502         * lib/mbfile.h: Likewise.
63503         * lib/mbiter.h: Likewise.
63504         * lib/mbscasecmp.c: Likewise.
63505         * lib/mbscasestr.c: Likewise.
63506         * lib/mbschr.c: Likewise.
63507         * lib/mbscspn.c: Likewise.
63508         * lib/mbslen.c: Likewise.
63509         * lib/mbsncasecmp.c: Likewise.
63510         * lib/mbsnlen.c: Likewise.
63511         * lib/mbspbrk.c: Likewise.
63512         * lib/mbspcasecmp.c: Likewise.
63513         * lib/mbsrchr.c: Likewise.
63514         * lib/mbssep.c: Likewise.
63515         * lib/mbsspn.c: Likewise.
63516         * lib/mbsstr.c: Likewise.
63517         * lib/mbstok_r.c: Likewise.
63518         * lib/mbswidth.c: Likewise.
63519         * lib/mbswidth.h: Likewise.
63520         * lib/mbuiter.h: Likewise.
63521         * lib/memcasecmp.c: Likewise.
63522         * lib/memcasecmp.h: Likewise.
63523         * lib/memchr.c: Likewise.
63524         * lib/memcmp.c: Likewise.
63525         * lib/memcoll.c: Likewise.
63526         * lib/memcoll.h: Likewise.
63527         * lib/memcpy.c: Likewise.
63528         * lib/memrchr.c: Likewise.
63529         * lib/mkancesdirs.c: Likewise.
63530         * lib/mkdir-p.c: Likewise.
63531         * lib/mkdir-p.h: Likewise.
63532         * lib/mkdir.c: Likewise.
63533         * lib/mkdirat.c: Likewise.
63534         * lib/mkdtemp.c: Likewise.
63535         * lib/mkstemp-safer.c: Likewise.
63536         * lib/mkstemp.c: Likewise.
63537         * lib/modechange.c: Likewise.
63538         * lib/modechange.h: Likewise.
63539         * lib/mountlist.c: Likewise.
63540         * lib/mountlist.h: Likewise.
63541         * lib/mpsort.c: Likewise.
63542         * lib/nanosleep.c: Likewise.
63543         * lib/obstack.c: Likewise.
63544         * lib/obstack.h: Likewise.
63545         * lib/open-safer.c: Likewise.
63546         * lib/open.c: Likewise.
63547         * lib/openat-die.c: Likewise.
63548         * lib/openat-priv.h: Likewise.
63549         * lib/openat-proc.c: Likewise.
63550         * lib/openat.c: Likewise.
63551         * lib/openat.h: Likewise.
63552         * lib/pagealign_alloc.c: Likewise.
63553         * lib/pagealign_alloc.h: Likewise.
63554         * lib/physmem.c: Likewise.
63555         * lib/physmem.h: Likewise.
63556         * lib/pipe-safer.c: Likewise.
63557         * lib/pipe.c: Likewise.
63558         * lib/pipe.h: Likewise.
63559         * lib/posixtm.c: Likewise.
63560         * lib/posixtm.h: Likewise.
63561         * lib/posixver.c: Likewise.
63562         * lib/printf-frexp.c: Likewise.
63563         * lib/printf-frexp.h: Likewise.
63564         * lib/printf-frexpl.c: Likewise.
63565         * lib/printf-frexpl.h: Likewise.
63566         * lib/printf.c: Likewise.
63567         * lib/progname.c: Likewise.
63568         * lib/progname.h: Likewise.
63569         * lib/progreloc.c: Likewise.
63570         * lib/putenv.c: Likewise.
63571         * lib/quote.c: Likewise.
63572         * lib/quote.h: Likewise.
63573         * lib/quotearg.c: Likewise.
63574         * lib/quotearg.h: Likewise.
63575         * lib/raise.c: Likewise.
63576         * lib/readline.c: Likewise.
63577         * lib/readline.h: Likewise.
63578         * lib/readlink.c: Likewise.
63579         * lib/readtokens.c: Likewise.
63580         * lib/readtokens.h: Likewise.
63581         * lib/readtokens0.c: Likewise.
63582         * lib/readtokens0.h: Likewise.
63583         * lib/readutmp.c: Likewise.
63584         * lib/readutmp.h: Likewise.
63585         * lib/realloc.c: Likewise.
63586         * lib/relocwrapper.c: Likewise.
63587         * lib/rename-dest-slash.c: Likewise.
63588         * lib/rename.c: Likewise.
63589         * lib/rmdir.c: Likewise.
63590         * lib/rpmatch.c: Likewise.
63591         * lib/safe-read.c: Likewise.
63592         * lib/safe-read.h: Likewise.
63593         * lib/safe-write.c: Likewise.
63594         * lib/safe-write.h: Likewise.
63595         * lib/same-inode.h: Likewise.
63596         * lib/same.c: Likewise.
63597         * lib/same.h: Likewise.
63598         * lib/save-cwd.c: Likewise.
63599         * lib/save-cwd.h: Likewise.
63600         * lib/savedir.c: Likewise.
63601         * lib/savedir.h: Likewise.
63602         * lib/savewd.c: Likewise.
63603         * lib/savewd.h: Likewise.
63604         * lib/search.in.h: Likewise.
63605         * lib/setenv.c: Likewise.
63606         * lib/setenv.h: Likewise.
63607         * lib/settime.c: Likewise.
63608         * lib/sh-quote.c: Likewise.
63609         * lib/sh-quote.h: Likewise.
63610         * lib/sig2str.c: Likewise.
63611         * lib/sig2str.h: Likewise.
63612         * lib/signal.in.h: Likewise.
63613         * lib/signbitd.c: Likewise.
63614         * lib/signbitf.c: Likewise.
63615         * lib/signbitl.c: Likewise.
63616         * lib/sigprocmask.c: Likewise.
63617         * lib/sincosl.c: Likewise.
63618         * lib/sleep.c: Likewise.
63619         * lib/sprintf.c: Likewise.
63620         * lib/sqrtl.c: Likewise.
63621         * lib/stat-time.h: Likewise.
63622         * lib/stdio--.h: Likewise.
63623         * lib/stdio-safer.h: Likewise.
63624         * lib/stdlib--.h: Likewise.
63625         * lib/stdlib-safer.h: Likewise.
63626         * lib/stdlib.in.h: Likewise.
63627         * lib/stpcpy.c: Likewise.
63628         * lib/stpncpy.c: Likewise.
63629         * lib/strchrnul.c: Likewise.
63630         * lib/strcspn.c: Likewise.
63631         * lib/strerror.c: Likewise.
63632         * lib/strftime.c: Likewise.
63633         * lib/strftime.h: Likewise.
63634         * lib/striconveh.c: Likewise.
63635         * lib/striconveh.h: Likewise.
63636         * lib/striconveha.c: Likewise.
63637         * lib/striconveha.h: Likewise.
63638         * lib/stripslash.c: Likewise.
63639         * lib/strnlen1.c: Likewise.
63640         * lib/strnlen1.h: Likewise.
63641         * lib/strtod.c: Likewise.
63642         * lib/strtoimax.c: Likewise.
63643         * lib/strtok_r.c: Likewise.
63644         * lib/strtol.c: Likewise.
63645         * lib/strtoll.c: Likewise.
63646         * lib/strtoul.c: Likewise.
63647         * lib/strtoull.c: Likewise.
63648         * lib/sysexits.in.h: Likewise.
63649         * lib/tempname.c: Likewise.
63650         * lib/tempname.h: Likewise.
63651         * lib/timespec.h: Likewise.
63652         * lib/tls.c: Likewise.
63653         * lib/tls.h: Likewise.
63654         * lib/tmpdir.c: Likewise.
63655         * lib/tmpdir.h: Likewise.
63656         * lib/tmpfile-safer.c: Likewise.
63657         * lib/tmpfile.c: Likewise.
63658         * lib/trigl.c: Likewise.
63659         * lib/trigl.h: Likewise.
63660         * lib/trim.c: Likewise.
63661         * lib/trim.h: Likewise.
63662         * lib/trunc.c: Likewise.
63663         * lib/truncf.c: Likewise.
63664         * lib/truncl.c: Likewise.
63665         * lib/tsearch.c: Likewise.
63666         * lib/unicodeio.c: Likewise.
63667         * lib/unicodeio.h: Likewise.
63668         * lib/unistd--.h: Likewise.
63669         * lib/unistd-safer.h: Likewise.
63670         * lib/unistdio/ulc-fprintf.c: Likewise.
63671         * lib/unistdio/ulc-vfprintf.c: Likewise.
63672         * lib/unlinkdir.c: Likewise.
63673         * lib/unlinkdir.h: Likewise.
63674         * lib/unlocked-io.h: Likewise.
63675         * lib/unsetenv.c: Likewise.
63676         * lib/userspec.c: Likewise.
63677         * lib/utime.c: Likewise.
63678         * lib/utimecmp.c: Likewise.
63679         * lib/utimecmp.h: Likewise.
63680         * lib/utimens.c: Likewise.
63681         * lib/verify.h: Likewise.
63682         * lib/verror.c: Likewise.
63683         * lib/verror.h: Likewise.
63684         * lib/version-etc-fsf.c: Likewise.
63685         * lib/version-etc.c: Likewise.
63686         * lib/version-etc.h: Likewise.
63687         * lib/vfprintf.c: Likewise.
63688         * lib/vprintf.c: Likewise.
63689         * lib/vsprintf.c: Likewise.
63690         * lib/w32spawn.h: Likewise.
63691         * lib/wait-process.c: Likewise.
63692         * lib/wait-process.h: Likewise.
63693         * lib/wcwidth.c: Likewise.
63694         * lib/write-any-file.c: Likewise.
63695         * lib/xalloc-die.c: Likewise.
63696         * lib/xalloc.h: Likewise.
63697         * lib/xasprintf.c: Likewise.
63698         * lib/xgetcwd.c: Likewise.
63699         * lib/xgetcwd.h: Likewise.
63700         * lib/xgetdomainname.c: Likewise.
63701         * lib/xgetdomainname.h: Likewise.
63702         * lib/xgethostname.c: Likewise.
63703         * lib/xmalloc.c: Likewise.
63704         * lib/xmalloca.c: Likewise.
63705         * lib/xmalloca.h: Likewise.
63706         * lib/xmemcoll.c: Likewise.
63707         * lib/xnanosleep.c: Likewise.
63708         * lib/xreadlink.c: Likewise.
63709         * lib/xreadlink.h: Likewise.
63710         * lib/xsetenv.c: Likewise.
63711         * lib/xsetenv.h: Likewise.
63712         * lib/xstriconv.c: Likewise.
63713         * lib/xstriconv.h: Likewise.
63714         * lib/xstrndup.c: Likewise.
63715         * lib/xstrndup.h: Likewise.
63716         * lib/xstrtod.c: Likewise.
63717         * lib/xstrtod.h: Likewise.
63718         * lib/xstrtol-error.c: Likewise.
63719         * lib/xstrtol.c: Likewise.
63720         * lib/xstrtol.h: Likewise.
63721         * lib/xtime.h: Likewise.
63722         * lib/xvasprintf.c: Likewise.
63723         * lib/xvasprintf.h: Likewise.
63724         * lib/yesno.c: Likewise.
63725         * lib/yesno.h: Likewise.
63726         * posix-modules: Likewise.
63727         * tests/test-alloca-opt.c: Likewise.
63728         * tests/test-arcfour.c: Likewise.
63729         * tests/test-arctwo.c: Likewise.
63730         * tests/test-argmatch.c: Likewise.
63731         * tests/test-argp-2.sh: Likewise.
63732         * tests/test-argp.c: Likewise.
63733         * tests/test-arpa_inet.c: Likewise.
63734         * tests/test-array_list.c: Likewise.
63735         * tests/test-array_oset.c: Likewise.
63736         * tests/test-atexit.c: Likewise.
63737         * tests/test-avltree_list.c: Likewise.
63738         * tests/test-avltree_oset.c: Likewise.
63739         * tests/test-avltreehash_list.c: Likewise.
63740         * tests/test-base64.c: Likewise.
63741         * tests/test-binary-io.c: Likewise.
63742         * tests/test-byteswap.c: Likewise.
63743         * tests/test-c-ctype.c: Likewise.
63744         * tests/test-c-strcasecmp.c: Likewise.
63745         * tests/test-c-strcasestr.c: Likewise.
63746         * tests/test-c-strncasecmp.c: Likewise.
63747         * tests/test-c-strstr.c: Likewise.
63748         * tests/test-canonicalize-lgpl.c: Likewise.
63749         * tests/test-canonicalize.c: Likewise.
63750         * tests/test-carray_list.c: Likewise.
63751         * tests/test-ceilf.c: Likewise.
63752         * tests/test-ceill.c: Likewise.
63753         * tests/test-count-one-bits.c: Likewise.
63754         * tests/test-crc.c: Likewise.
63755         * tests/test-dirname.c: Likewise.
63756         * tests/test-fbufmode.c: Likewise.
63757         * tests/test-fcntl.c: Likewise.
63758         * tests/test-fflush.c: Likewise.
63759         * tests/test-floorf.c: Likewise.
63760         * tests/test-floorl.c: Likewise.
63761         * tests/test-fopen.c: Likewise.
63762         * tests/test-fprintf-posix.c: Likewise.
63763         * tests/test-fprintf-posix.h: Likewise.
63764         * tests/test-fpurge.c: Likewise.
63765         * tests/test-freadable.c: Likewise.
63766         * tests/test-freadahead.c: Likewise.
63767         * tests/test-freading.c: Likewise.
63768         * tests/test-freopen.c: Likewise.
63769         * tests/test-frexp.c: Likewise.
63770         * tests/test-frexpl.c: Likewise.
63771         * tests/test-fseek.c: Likewise.
63772         * tests/test-fseeko.c: Likewise.
63773         * tests/test-fseterr.c: Likewise.
63774         * tests/test-fstrcmp.c: Likewise.
63775         * tests/test-ftell.c: Likewise.
63776         * tests/test-ftello.c: Likewise.
63777         * tests/test-fwritable.c: Likewise.
63778         * tests/test-fwriting.c: Likewise.
63779         * tests/test-getaddrinfo.c: Likewise.
63780         * tests/test-getpass.c: Likewise.
63781         * tests/test-gettimeofday.c: Likewise.
63782         * tests/test-hmac-md5.c: Likewise.
63783         * tests/test-hmac-sha1.c: Likewise.
63784         * tests/test-iconv.c: Likewise.
63785         * tests/test-iconvme.c: Likewise.
63786         * tests/test-inttypes.c: Likewise.
63787         * tests/test-isnan.c: Likewise.
63788         * tests/test-isnanf.c: Likewise.
63789         * tests/test-isnanl-nolibm.c: Likewise.
63790         * tests/test-isnanl.c: Likewise.
63791         * tests/test-isnanl.h: Likewise.
63792         * tests/test-ldexpl.c: Likewise.
63793         * tests/test-linked_list.c: Likewise.
63794         * tests/test-linkedhash_list.c: Likewise.
63795         * tests/test-locale.c: Likewise.
63796         * tests/test-localename.c: Likewise.
63797         * tests/test-lock.c: Likewise.
63798         * tests/test-lseek.c: Likewise.
63799         * tests/test-malloca.c: Likewise.
63800         * tests/test-math.c: Likewise.
63801         * tests/test-mbscasecmp.c: Likewise.
63802         * tests/test-mbscasestr1.c: Likewise.
63803         * tests/test-mbscasestr2.c: Likewise.
63804         * tests/test-mbscasestr3.c: Likewise.
63805         * tests/test-mbscasestr4.c: Likewise.
63806         * tests/test-mbschr.c: Likewise.
63807         * tests/test-mbscspn.c: Likewise.
63808         * tests/test-mbsncasecmp.c: Likewise.
63809         * tests/test-mbspbrk.c: Likewise.
63810         * tests/test-mbspcasecmp.c: Likewise.
63811         * tests/test-mbsrchr.c: Likewise.
63812         * tests/test-mbsspn.c: Likewise.
63813         * tests/test-mbsstr1.c: Likewise.
63814         * tests/test-mbsstr2.c: Likewise.
63815         * tests/test-mbsstr3.c: Likewise.
63816         * tests/test-md5.c: Likewise.
63817         * tests/test-memmem.c: Likewise.
63818         * tests/test-netinet_in.c: Likewise.
63819         * tests/test-open.c: Likewise.
63820         * tests/test-printf-frexp.c: Likewise.
63821         * tests/test-printf-frexpl.c: Likewise.
63822         * tests/test-printf-posix.c: Likewise.
63823         * tests/test-printf-posix.h: Likewise.
63824         * tests/test-rbtree_list.c: Likewise.
63825         * tests/test-rbtree_oset.c: Likewise.
63826         * tests/test-rbtreehash_list.c: Likewise.
63827         * tests/test-read-file.c: Likewise.
63828         * tests/test-rijndael.c: Likewise.
63829         * tests/test-search.c: Likewise.
63830         * tests/test-signbit.c: Likewise.
63831         * tests/test-sleep.c: Likewise.
63832         * tests/test-snprintf-posix.c: Likewise.
63833         * tests/test-snprintf-posix.h: Likewise.
63834         * tests/test-snprintf.c: Likewise.
63835         * tests/test-sprintf-posix.c: Likewise.
63836         * tests/test-sprintf-posix.h: Likewise.
63837         * tests/test-stat-time.c: Likewise.
63838         * tests/test-stdbool.c: Likewise.
63839         * tests/test-stdint.c: Likewise.
63840         * tests/test-stdio.c: Likewise.
63841         * tests/test-stdlib.c: Likewise.
63842         * tests/test-stpncpy.c: Likewise.
63843         * tests/test-strcasestr.c: Likewise.
63844         * tests/test-striconv.c: Likewise.
63845         * tests/test-striconveh.c: Likewise.
63846         * tests/test-striconveha.c: Likewise.
63847         * tests/test-string.c: Likewise.
63848         * tests/test-sys_select.c: Likewise.
63849         * tests/test-sys_socket.c: Likewise.
63850         * tests/test-sys_stat.c: Likewise.
63851         * tests/test-sys_time.c: Likewise.
63852         * tests/test-sysexits.c: Likewise.
63853         * tests/test-time.c: Likewise.
63854         * tests/test-tls.c: Likewise.
63855         * tests/test-trunc.c: Likewise.
63856         * tests/test-truncf.c: Likewise.
63857         * tests/test-truncl.c: Likewise.
63858         * tests/test-unistd.c: Likewise.
63859         * tests/test-vasnprintf-posix.c: Likewise.
63860         * tests/test-vasnprintf-posix2.c: Likewise.
63861         * tests/test-vasnprintf.c: Likewise.
63862         * tests/test-vasprintf-posix.c: Likewise.
63863         * tests/test-vasprintf.c: Likewise.
63864         * tests/test-verify.c: Likewise.
63865         * tests/test-vfprintf-posix.c: Likewise.
63866         * tests/test-vprintf-posix.c: Likewise.
63867         * tests/test-vsnprintf-posix.c: Likewise.
63868         * tests/test-vsnprintf.c: Likewise.
63869         * tests/test-vsprintf-posix.c: Likewise.
63870         * tests/test-wchar.c: Likewise.
63871         * tests/test-wctype.c: Likewise.
63872         * tests/test-wcwidth.c: Likewise.
63873         * tests/test-xstrtol.c: Likewise.
63874         * tests/test-xvasprintf.c: Likewise.
63875         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63876         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63877         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63878         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63879         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63880         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63881         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63882         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63883         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63884         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63885         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63886         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63887         * tests/uniname/test-uninames.c: Likewise.
63888         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63889         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63890         * tests/unistdio/test-u16-printf1.h: Likewise.
63891         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63892         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63893         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63894         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63895         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63896         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63897         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63898         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63899         * tests/unistdio/test-u32-printf1.h: Likewise.
63900         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63901         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63902         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63903         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63904         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63905         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63906         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63907         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63908         * tests/unistdio/test-u8-printf1.h: Likewise.
63909         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63910         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63911         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63912         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63913         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63914         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63915         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63916         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63917         * tests/unistdio/test-ulc-printf1.h: Likewise.
63918         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63919         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63920         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63921         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63922         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63923         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63924         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63925         * tests/uniwidth/test-u16-width.c: Likewise.
63926         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63927         * tests/uniwidth/test-u32-width.c: Likewise.
63928         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63929         * tests/uniwidth/test-u8-width.c: Likewise.
63930         * tests/uniwidth/test-uc_width.c: Likewise.
63931         * config/srclist-update: Likewise.
63932         (fixlicense): Update to GPLv3+.
63933
63934         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63935         * tests/test-tsearch.c: Change copyright notice.
63936
63937         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63938         * lib/c-strcaseeq.h: Change copyright notice.
63939         * lib/streq.h: Likewise.
63940         * lib/uniconv.h: Likewise.
63941         * lib/uniconv/u-conv-from-enc.h: Likewise.
63942         * lib/uniconv/u-conv-to-enc.h: Likewise.
63943         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63944         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63945         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63946         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63947         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63948         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63949         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63950         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63951         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63952         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63953         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63954         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63955         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63956         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63957         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63958         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63959         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63960         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63961         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63962         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63963         * lib/uniname.h: Likewise.
63964         * lib/uniname/uniname.c: Likewise.
63965         * lib/unistdio.h: Likewise.
63966         * lib/unistdio/u-asnprintf.h: Likewise.
63967         * lib/unistdio/u-asprintf.h: Likewise.
63968         * lib/unistdio/u-printf-args.c: Likewise.
63969         * lib/unistdio/u-printf-args.h: Likewise.
63970         * lib/unistdio/u-printf-parse.h: Likewise.
63971         * lib/unistdio/u-snprintf.h: Likewise.
63972         * lib/unistdio/u-sprintf.h: Likewise.
63973         * lib/unistdio/u-vasprintf.h: Likewise.
63974         * lib/unistdio/u-vsnprintf.h: Likewise.
63975         * lib/unistdio/u-vsprintf.h: Likewise.
63976         * lib/unistdio/u16-asnprintf.c: Likewise.
63977         * lib/unistdio/u16-asprintf.c: Likewise.
63978         * lib/unistdio/u16-printf-parse.c: Likewise.
63979         * lib/unistdio/u16-snprintf.c: Likewise.
63980         * lib/unistdio/u16-sprintf.c: Likewise.
63981         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63982         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63983         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63984         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63985         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63986         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63987         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63988         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63989         * lib/unistdio/u16-vasnprintf.c: Likewise.
63990         * lib/unistdio/u16-vasprintf.c: Likewise.
63991         * lib/unistdio/u16-vsnprintf.c: Likewise.
63992         * lib/unistdio/u16-vsprintf.c: Likewise.
63993         * lib/unistdio/u32-asnprintf.c: Likewise.
63994         * lib/unistdio/u32-asprintf.c: Likewise.
63995         * lib/unistdio/u32-printf-parse.c: Likewise.
63996         * lib/unistdio/u32-snprintf.c: Likewise.
63997         * lib/unistdio/u32-sprintf.c: Likewise.
63998         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63999         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64000         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64001         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64002         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64003         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64004         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64005         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64006         * lib/unistdio/u32-vasnprintf.c: Likewise.
64007         * lib/unistdio/u32-vasprintf.c: Likewise.
64008         * lib/unistdio/u32-vsnprintf.c: Likewise.
64009         * lib/unistdio/u32-vsprintf.c: Likewise.
64010         * lib/unistdio/u8-asnprintf.c: Likewise.
64011         * lib/unistdio/u8-asprintf.c: Likewise.
64012         * lib/unistdio/u8-printf-parse.c: Likewise.
64013         * lib/unistdio/u8-snprintf.c: Likewise.
64014         * lib/unistdio/u8-sprintf.c: Likewise.
64015         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64016         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64017         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64018         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64019         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64020         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64021         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64022         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64023         * lib/unistdio/u8-vasnprintf.c: Likewise.
64024         * lib/unistdio/u8-vasprintf.c: Likewise.
64025         * lib/unistdio/u8-vsnprintf.c: Likewise.
64026         * lib/unistdio/u8-vsprintf.c: Likewise.
64027         * lib/unistdio/ulc-asnprintf.c: Likewise.
64028         * lib/unistdio/ulc-asprintf.c: Likewise.
64029         * lib/unistdio/ulc-printf-parse.c: Likewise.
64030         * lib/unistdio/ulc-snprintf.c: Likewise.
64031         * lib/unistdio/ulc-sprintf.c: Likewise.
64032         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64033         * lib/unistdio/ulc-vasprintf.c: Likewise.
64034         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64035         * lib/unistdio/ulc-vsprintf.c: Likewise.
64036         * lib/unistr.h: Likewise.
64037         * lib/unistr/u-cpy-alloc.h: Likewise.
64038         * lib/unistr/u-cpy.h: Likewise.
64039         * lib/unistr/u-endswith.h: Likewise.
64040         * lib/unistr/u-move.h: Likewise.
64041         * lib/unistr/u-set.h: Likewise.
64042         * lib/unistr/u-startswith.h: Likewise.
64043         * lib/unistr/u-stpcpy.h: Likewise.
64044         * lib/unistr/u-stpncpy.h: Likewise.
64045         * lib/unistr/u-strcat.h: Likewise.
64046         * lib/unistr/u-strcpy.h: Likewise.
64047         * lib/unistr/u-strcspn.h: Likewise.
64048         * lib/unistr/u-strdup.h: Likewise.
64049         * lib/unistr/u-strlen.h: Likewise.
64050         * lib/unistr/u-strncat.h: Likewise.
64051         * lib/unistr/u-strncpy.h: Likewise.
64052         * lib/unistr/u-strnlen.h: Likewise.
64053         * lib/unistr/u-strpbrk.h: Likewise.
64054         * lib/unistr/u-strspn.h: Likewise.
64055         * lib/unistr/u-strstr.h: Likewise.
64056         * lib/unistr/u-strtok.h: Likewise.
64057         * lib/unistr/u16-check.c: Likewise.
64058         * lib/unistr/u16-chr.c: Likewise.
64059         * lib/unistr/u16-cmp.c: Likewise.
64060         * lib/unistr/u16-cpy-alloc.c: Likewise.
64061         * lib/unistr/u16-cpy.c: Likewise.
64062         * lib/unistr/u16-endswith.c: Likewise.
64063         * lib/unistr/u16-mblen.c: Likewise.
64064         * lib/unistr/u16-mbsnlen.c: Likewise.
64065         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64066         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64067         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64068         * lib/unistr/u16-mbtouc.c: Likewise.
64069         * lib/unistr/u16-mbtoucr.c: Likewise.
64070         * lib/unistr/u16-move.c: Likewise.
64071         * lib/unistr/u16-next.c: Likewise.
64072         * lib/unistr/u16-prev.c: Likewise.
64073         * lib/unistr/u16-set.c: Likewise.
64074         * lib/unistr/u16-startswith.c: Likewise.
64075         * lib/unistr/u16-stpcpy.c: Likewise.
64076         * lib/unistr/u16-stpncpy.c: Likewise.
64077         * lib/unistr/u16-strcat.c: Likewise.
64078         * lib/unistr/u16-strchr.c: Likewise.
64079         * lib/unistr/u16-strcmp.c: Likewise.
64080         * lib/unistr/u16-strcpy.c: Likewise.
64081         * lib/unistr/u16-strcspn.c: Likewise.
64082         * lib/unistr/u16-strdup.c: Likewise.
64083         * lib/unistr/u16-strlen.c: Likewise.
64084         * lib/unistr/u16-strmblen.c: Likewise.
64085         * lib/unistr/u16-strmbtouc.c: Likewise.
64086         * lib/unistr/u16-strncat.c: Likewise.
64087         * lib/unistr/u16-strncmp.c: Likewise.
64088         * lib/unistr/u16-strncpy.c: Likewise.
64089         * lib/unistr/u16-strnlen.c: Likewise.
64090         * lib/unistr/u16-strpbrk.c: Likewise.
64091         * lib/unistr/u16-strrchr.c: Likewise.
64092         * lib/unistr/u16-strspn.c: Likewise.
64093         * lib/unistr/u16-strstr.c: Likewise.
64094         * lib/unistr/u16-strtok.c: Likewise.
64095         * lib/unistr/u16-to-u32.c: Likewise.
64096         * lib/unistr/u16-to-u8.c: Likewise.
64097         * lib/unistr/u16-uctomb-aux.c: Likewise.
64098         * lib/unistr/u16-uctomb.c: Likewise.
64099         * lib/unistr/u32-check.c: Likewise.
64100         * lib/unistr/u32-chr.c: Likewise.
64101         * lib/unistr/u32-cmp.c: Likewise.
64102         * lib/unistr/u32-cpy-alloc.c: Likewise.
64103         * lib/unistr/u32-cpy.c: Likewise.
64104         * lib/unistr/u32-endswith.c: Likewise.
64105         * lib/unistr/u32-mblen.c: Likewise.
64106         * lib/unistr/u32-mbsnlen.c: Likewise.
64107         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64108         * lib/unistr/u32-mbtouc.c: Likewise.
64109         * lib/unistr/u32-mbtoucr.c: Likewise.
64110         * lib/unistr/u32-move.c: Likewise.
64111         * lib/unistr/u32-next.c: Likewise.
64112         * lib/unistr/u32-prev.c: Likewise.
64113         * lib/unistr/u32-set.c: Likewise.
64114         * lib/unistr/u32-startswith.c: Likewise.
64115         * lib/unistr/u32-stpcpy.c: Likewise.
64116         * lib/unistr/u32-stpncpy.c: Likewise.
64117         * lib/unistr/u32-strcat.c: Likewise.
64118         * lib/unistr/u32-strchr.c: Likewise.
64119         * lib/unistr/u32-strcmp.c: Likewise.
64120         * lib/unistr/u32-strcpy.c: Likewise.
64121         * lib/unistr/u32-strcspn.c: Likewise.
64122         * lib/unistr/u32-strdup.c: Likewise.
64123         * lib/unistr/u32-strlen.c: Likewise.
64124         * lib/unistr/u32-strmblen.c: Likewise.
64125         * lib/unistr/u32-strmbtouc.c: Likewise.
64126         * lib/unistr/u32-strncat.c: Likewise.
64127         * lib/unistr/u32-strncmp.c: Likewise.
64128         * lib/unistr/u32-strncpy.c: Likewise.
64129         * lib/unistr/u32-strnlen.c: Likewise.
64130         * lib/unistr/u32-strpbrk.c: Likewise.
64131         * lib/unistr/u32-strrchr.c: Likewise.
64132         * lib/unistr/u32-strspn.c: Likewise.
64133         * lib/unistr/u32-strstr.c: Likewise.
64134         * lib/unistr/u32-strtok.c: Likewise.
64135         * lib/unistr/u32-to-u16.c: Likewise.
64136         * lib/unistr/u32-to-u8.c: Likewise.
64137         * lib/unistr/u32-uctomb.c: Likewise.
64138         * lib/unistr/u8-check.c: Likewise.
64139         * lib/unistr/u8-chr.c: Likewise.
64140         * lib/unistr/u8-cmp.c: Likewise.
64141         * lib/unistr/u8-cpy-alloc.c: Likewise.
64142         * lib/unistr/u8-cpy.c: Likewise.
64143         * lib/unistr/u8-endswith.c: Likewise.
64144         * lib/unistr/u8-mblen.c: Likewise.
64145         * lib/unistr/u8-mbsnlen.c: Likewise.
64146         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64147         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64148         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64149         * lib/unistr/u8-mbtouc.c: Likewise.
64150         * lib/unistr/u8-mbtoucr.c: Likewise.
64151         * lib/unistr/u8-move.c: Likewise.
64152         * lib/unistr/u8-next.c: Likewise.
64153         * lib/unistr/u8-prev.c: Likewise.
64154         * lib/unistr/u8-set.c: Likewise.
64155         * lib/unistr/u8-startswith.c: Likewise.
64156         * lib/unistr/u8-stpcpy.c: Likewise.
64157         * lib/unistr/u8-stpncpy.c: Likewise.
64158         * lib/unistr/u8-strcat.c: Likewise.
64159         * lib/unistr/u8-strchr.c: Likewise.
64160         * lib/unistr/u8-strcmp.c: Likewise.
64161         * lib/unistr/u8-strcpy.c: Likewise.
64162         * lib/unistr/u8-strcspn.c: Likewise.
64163         * lib/unistr/u8-strdup.c: Likewise.
64164         * lib/unistr/u8-strlen.c: Likewise.
64165         * lib/unistr/u8-strmblen.c: Likewise.
64166         * lib/unistr/u8-strmbtouc.c: Likewise.
64167         * lib/unistr/u8-strncat.c: Likewise.
64168         * lib/unistr/u8-strncmp.c: Likewise.
64169         * lib/unistr/u8-strncpy.c: Likewise.
64170         * lib/unistr/u8-strnlen.c: Likewise.
64171         * lib/unistr/u8-strpbrk.c: Likewise.
64172         * lib/unistr/u8-strrchr.c: Likewise.
64173         * lib/unistr/u8-strspn.c: Likewise.
64174         * lib/unistr/u8-strstr.c: Likewise.
64175         * lib/unistr/u8-strtok.c: Likewise.
64176         * lib/unistr/u8-to-u16.c: Likewise.
64177         * lib/unistr/u8-to-u32.c: Likewise.
64178         * lib/unistr/u8-uctomb-aux.c: Likewise.
64179         * lib/unistr/u8-uctomb.c: Likewise.
64180         * lib/unitypes.h: Likewise.
64181         * lib/uniwidth.h: Likewise.
64182         * lib/uniwidth/cjk.h: Likewise.
64183         * lib/uniwidth/u16-strwidth.c: Likewise.
64184         * lib/uniwidth/u16-width.c: Likewise.
64185         * lib/uniwidth/u32-strwidth.c: Likewise.
64186         * lib/uniwidth/u32-width.c: Likewise.
64187         * lib/uniwidth/u8-strwidth.c: Likewise.
64188         * lib/uniwidth/u8-width.c: Likewise.
64189         * lib/uniwidth/width.c: Likewise.
64190
64191 2007-10-07  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64194         The file is still under LGPL (see modules/inttypes).
64195
64196 2007-10-06  Bruno Haible  <bruno@clisp.org>
64197
64198         * modules/trunc (Dependencies): Add 'extensions'.
64199         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64200         Reported by Ben Pfaff <blp@gnu.org>.
64201
64202 2007-10-06  Bruno Haible  <bruno@clisp.org>
64203
64204         * modules/freopen-tests: New file.
64205         * tests/test-freopen.c: New file.
64206
64207         * modules/fopen-tests: New file.
64208         * tests/test-fopen.c: New file.
64209
64210         * modules/fopen: New file.
64211         * lib/fopen.c: New file.
64212         * m4/fopen.m4: New file.
64213         * modules/freopen: New file.
64214         * lib/freopen.c: New file.
64215         * m4/freopen.m4: New file.
64216         * lib/stdio.in.h (fopen, freopen): New declarations.
64217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64218         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64219         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64220         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64221         * doc/functions/fopen.texi: Mention the 'fopen' module.
64222         * doc/functions/freopen.texi: Mention the 'freopen' module.
64223
64224 2007-10-06  Bruno Haible  <bruno@clisp.org>
64225
64226         * modules/open-tests: New file.
64227         * tests/test-open.c: New file.
64228
64229         * modules/open: New file.
64230         * lib/open.c: New file.
64231         * m4/open.m4: New file.
64232         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64233         lib/open.c does.
64234         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64235         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64236         macros.
64237         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64238         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64239         REPLACE_OPEN.
64240         * doc/functions/open.texi: Mention the 'open' module.
64241
64242 2007-10-04  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/ceill-tests: New file.
64245         * tests/test-ceill.c: New file.
64246
64247         * modules/ceill: New file.
64248         * lib/ceill.c: Replace entire file.
64249         * m4/ceill.m4: New file.
64250         * lib/math.in.h (ceill): Replace declaration.
64251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64252         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64253         * doc/functions/ceill.texi: Mention the 'ceill' module.
64254         * modules/mathl (Files): Remove lib/ceill.c.
64255         (Depends-on): Add ceill.
64256
64257 2007-10-04  Bruno Haible  <bruno@clisp.org>
64258
64259         * modules/ceilf-tests: New file.
64260         * tests/test-ceilf.c: New file.
64261
64262         * modules/ceilf: New file.
64263         * lib/ceil.c: New file.
64264         * lib/ceilf.c: New file.
64265         * m4/ceilf.m4: New file.
64266         * lib/math.in.h (ceilf): New declaration.
64267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64268         HAVE_DECL_CEILF.
64269         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64270         HAVE_DECL_CEILF.
64271         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64272
64273 2007-10-04  Bruno Haible  <bruno@clisp.org>
64274
64275         * modules/floorl-tests: New file.
64276         * tests/test-floorl.c: New file.
64277
64278         * modules/floorl: New file.
64279         * lib/floorl.c: Replace entire file.
64280         * m4/floorl.m4: New file.
64281         * lib/math.in.h (floorl): Replace declaration.
64282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64283         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64284         * doc/functions/floorl.texi: Mention the 'floorl' module.
64285         * modules/mathl (Files): Remove lib/floorl.c.
64286         (Depends-on): Add floorl.
64287
64288 2007-10-04  Bruno Haible  <bruno@clisp.org>
64289
64290         * modules/floorf-tests: New file.
64291         * tests/test-floorf.c: New file.
64292
64293         * modules/floorf: New file.
64294         * lib/floor.c: New file.
64295         * lib/floorf.c: New file.
64296         * m4/floorf.m4: New file.
64297         * lib/math.in.h (floorf): New declaration.
64298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64299         HAVE_DECL_FLOORF.
64300         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64301         HAVE_DECL_FLOORF.
64302         * doc/functions/floorf.texi: Mention the 'floorf' module.
64303
64304 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64305             Bruno Haible  <bruno@clisp.org>
64306
64307         Advertise for the Git server instead of the CVS server.
64308         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64309         repository instead of the CVS one.
64310         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64311         about all VCS systems generically.
64312         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64313
64314 2007-10-04  Bruno Haible  <bruno@clisp.org>
64315
64316         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64317         means.
64318         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64319
64320 2007-10-04  Bruno Haible  <bruno@clisp.org>
64321
64322         * modules/truncl-tests: New file.
64323         * tests/test-truncl.c: New file.
64324
64325         * modules/truncl: New file.
64326         * lib/truncl.c: New file.
64327         * m4/truncl.m4: New file.
64328         * lib/math.in.h (truncl): New declaration.
64329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64330         HAVE_DECL_TRUNCL.
64331         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64332         HAVE_DECL_TRUNCL.
64333         * doc/functions/truncl.texi: Mention the 'truncl' module.
64334
64335 2007-10-04  Bruno Haible  <bruno@clisp.org>
64336
64337         * modules/truncf-tests: New file.
64338         * tests/test-truncf.c: New file.
64339
64340         * modules/truncf: New file.
64341         * lib/trunc.c: Make paramerizable through USE_* macros.
64342         * lib/truncf.c: New file.
64343         * m4/truncf.m4: New file.
64344         * lib/math.in.h (truncf): New declaration.
64345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64346         HAVE_DECL_TRUNCF.
64347         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64348         HAVE_DECL_TRUNCF.
64349         * doc/functions/truncf.texi: Mention the 'truncf' module.
64350
64351 2007-10-03  Bruno Haible  <bruno@clisp.org>
64352
64353         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64354         augmentation also for tests modules.
64355         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64356         * modules/atexit-tests (Makefile.am): Likewise.
64357         * modules/binary-io-tests (Makefile.am): Likewise.
64358         * modules/c-strcase-tests (Makefile.am): Likewise.
64359         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64360         * modules/canonicalize-tests (Makefile.am): Likewise.
64361         * modules/closein-tests (Makefile.am): Likewise.
64362         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64363         * modules/freadahead-tests (Makefile.am): Likewise.
64364         * modules/fseek-tests (Makefile.am): Likewise.
64365         * modules/fseeko-tests (Makefile.am): Likewise.
64366         * modules/ftell-tests (Makefile.am): Likewise.
64367         * modules/ftello-tests (Makefile.am): Likewise.
64368         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64369         * modules/isnanl-tests (Makefile.am): Likewise.
64370         * modules/lseek-tests (Makefile.am): Likewise.
64371         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64372         * modules/mbscasestr-tests (Makefile.am): Likewise.
64373         * modules/mbschr-tests (Makefile.am): Likewise.
64374         * modules/mbscspn-tests (Makefile.am): Likewise.
64375         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64376         * modules/mbspbrk-tests (Makefile.am): Likewise.
64377         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64378         * modules/mbsrchr-tests (Makefile.am): Likewise.
64379         * modules/mbsspn-tests (Makefile.am): Likewise.
64380         * modules/mbsstr-tests (Makefile.am): Likewise.
64381         * modules/printf-posix-tests (Makefile.am): Likewise.
64382         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64383         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64384         * modules/tsearch-tests (Makefile.am): Likewise.
64385         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64386         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64387         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64388         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64389         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64390         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64391         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64392         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64393         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64394         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64395         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64396         * modules/xstrtol-tests (Makefile.am): Likewise.
64397         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64398         * modules/yesno-tests (Makefile.am): Likewise.
64399
64400 2007-10-03  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/trunc-tests: New file.
64403         * tests/test-trunc.c: New file.
64404
64405         * modules/trunc: New file.
64406         * lib/trunc.c: New file.
64407         * m4/trunc.m4: New file.
64408         * lib/math.in.h (trunc): New declaration.
64409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64410         HAVE_DECL_TRUNC.
64411         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64412         HAVE_DECL_TRUNC.
64413         * doc/functions/trunc.texi: Mention the 'trunc' module.
64414
64415 2007-10-03  Bruno Haible  <bruno@clisp.org>
64416
64417         * tests/test-fpending.c: New file, mostly copied
64418         from coreutils/lib/t-fpending.c.
64419         * modules/fpending-tests: New file.
64420
64421 2007-10-03  Bruno Haible  <bruno@clisp.org>
64422
64423         Port the stdio extensions to QNX (untested).
64424         * lib/fseterr.c (fseterr): Add support for QNX.
64425         * lib/fbufmode.c (fbufmode): Likewise.
64426         * lib/freadable.c (freadable): Likewise.
64427         * lib/fwritable.c (fwritable): Likewise.
64428         * lib/freading.c (freading): Likewise.
64429         * lib/fwriting.c (fwriting): Likewise.
64430         * lib/freadahead.c (freadahed): Likewise.
64431         * lib/fpurge.c (fpurge): Likewise.
64432         * lib/fseeko.c (rpl_fseeko): Likewise.
64433
64434 2007-10-03  Bruno Haible  <bruno@clisp.org>
64435             Jim Meyering  <jim@meyering.net>
64436             Eric Blake  <ebb9@byu.net>
64437
64438         * doc/relocatable.texi: Use @command instead of @program.
64439
64440 2007-10-02  Jim Meyering  <jim@meyering.net>
64441
64442         Perform one more "_.h" -> ".in.h" substitution.
64443         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64444         instead of unistd_.h here, too.
64445
64446 2007-10-01  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64449         Needed for the alloca-opt module.
64450
64451 2007-09-30  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64454         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64455         alloca_.h.
64456         * lib/argz.in.h: Renamed from lib/argz_.h.
64457         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64458         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64459         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64460         byteswap_.h.
64461         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64462         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64463         dirent_.h.
64464         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64465         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64466         fcntl_.h.
64467         * lib/float.in.h: Renamed from lib/float_.h.
64468         * modules/float (Files, Makefile.am): Use float.in.h instead of
64469         float_.h.
64470         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64471         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64472         fnmatch_.h.
64473         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64474         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64475         getopt_.h.
64476         * lib/glob.in.h: Renamed from lib/glob_.h.
64477         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64478         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64479         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64480         iconv_.h.
64481         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64482         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64483         inttypes_.h.
64484         * lib/locale.in.h: Renamed from lib/locale_.h.
64485         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64486         locale_.h.
64487         * lib/math.in.h: Renamed from lib/math_.h.
64488         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64489         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64490         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64491         of netinet_in_.h. Add dependency.
64492         * lib/poll.in.h: Renamed from lib/poll_.h.
64493         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64494         * lib/search.in.h: Renamed from lib/search_.h.
64495         * modules/search (Files, Makefile.am): Use search.in.h instead of
64496         search_.h.
64497         * lib/signal.in.h: Renamed from lib/signal_.h.
64498         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64499         _signal.h.
64500         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64501         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64502         stdbool_.h.
64503         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64504         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64505         stdint_.h.
64506         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64507         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64508         stdio_.h.
64509         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64510         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64511         stdlib_.h.
64512         * lib/string.in.h: Renamed from lib/string_.h.
64513         * modules/string (Files, Makefile.am): Use string.in.h instead of
64514         string_.h.
64515         * doc/gnulib-tool.texi (Initial import): Update.
64516         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64517         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64518         of sys_select_.h. Add dependency.
64519         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64520         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64521         of sys_socket_.h.
64522         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64523         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64524         sys_stat_.h.
64525         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64526         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64527         sys_time_.h.
64528         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64529         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64530         sysexits_.h.
64531         * lib/time.in.h: Renamed from lib/time_.h.
64532         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64533         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64534         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64535         unistd_.h.
64536         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64537         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64538         wchar_.h.
64539         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64540         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64541         wctype_.h.
64542         * build-aux/bootstrap (slurp): Update.
64543         * lib/.cppi-disable: Update.
64544
64545 2007-09-30  Bruno Haible  <bruno@clisp.org>
64546
64547         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64548         Needed on BeOS.
64549
64550 2007-09-30  Bruno Haible  <bruno@clisp.org>
64551
64552         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64553
64554 2007-09-29  Bruno Haible  <bruno@clisp.org>
64555
64556         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64557
64558 2007-09-29  Bruno Haible  <bruno@clisp.org>
64559
64560         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64561         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64562         * build-aux/install-reloc: Compile also areadlink.c.
64563         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64564
64565 2007-09-29  Bruno Haible  <bruno@clisp.org>
64566
64567         * gnulib-tool (func_emit_initmacro_done): Indentation.
64568
64569 2007-09-29  Bruno Haible  <bruno@clisp.org>
64570
64571         * README: Add CVS checkout update instructions.
64572         Info from Bob Proulx <bob@proulx.com>.
64573
64574 2007-09-28  Eric Blake  <ebb9@byu.net>
64575
64576         Provide move-if-change.
64577         * build-aux/move-if-change: New file, based on best practice
64578         rather than any canonical upstream location.
64579
64580 2007-09-28  Jim Meyering  <jim@meyering.net>
64581
64582         Fix canonicalize loop-detection corner case.
64583         Do not attempt to stat the symlink values stored via seen_triple.
64584         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64585         on linux-2.6.18, (but not 2.6.22).
64586         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64587         triple_compare.  The former compares dev,ino,filename, while the latter
64588         would actually stat dirname(filename) when dev and ino were equal.
64589         * lib/hash-triple.c: Install <string.h>.
64590         (STREQ): Define.
64591         (triple_compare_ino_str): New function.
64592         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64593
64594 2007-09-28  Eric Blake  <ebb9@byu.net>
64595
64596         Enforce that AC_REPLACE_FUNCS files exist.
64597         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64598         override check for typos.
64599
64600         Fix test-closein on Solaris 10.
64601         * tests/test-closein.c (main): Don't assume stdin can be inherited
64602         closed on all systems.
64603         * tests/test-closein.sh: Likewise.
64604         Reported by Piotr Tarnowski.
64605
64606 2007-09-28  Jim Meyering  <jim@meyering.net>
64607
64608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64609
64610 2007-09-27  Jim Meyering  <jim@meyering.net>
64611
64612         canonicalize: Avoid a false-positive cycle failure.
64613         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64614         Sort.  Remove cycle-check.
64615         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64616         not cycle-check.h.
64617         (seen_triple): New function.
64618         (canonicalize_filename_mode): Use it instead of cycle-check.
64619         * tests/test-canonicalize.c: Add a test for this bug.
64620         * tests/test-canonicalize.sh: Set up and run the test.
64621
64622         New module, file-set, from coreutils.
64623         * modules/file-set: Define it.
64624         * lib/file-set.c, lib/file-set.h: Implement.
64625
64626         New module, hash-triple, from coreutils.
64627         * modules/hash-triple: Define it.
64628         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64629
64630 2007-09-25  Eric Blake  <ebb9@byu.net>
64631
64632         Fix strerror on Interix.
64633         * lib/string_.h (strerror): Declare replacement.
64634         * doc/functions/strerror.texi (strerror): Document the Interix
64635         shortcoming.
64636         * modules/string (Makefile.am): Support new hooks.
64637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64638         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64639         gl_FUNC_STRERROR_SEPARATE.
64640         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64641         * lib/strerror.c (rpl_strerror): Provide replacement.
64642         * modules/strerror (Depends-on): Add string.
64643         (configure.ac): Detect use of module.
64644         * tests/test-strerror.c: New file.
64645         * modules/strerror-tests: New test module.
64646         * modules/argp (Depends-on): Add strerror.
64647         * modules/error (Depends-on): Likewise.
64648         Reported by Martin Koeppe.
64649
64650 2007-09-24  Bruno Haible  <bruno@clisp.org>
64651
64652         * README: Update git instructions.
64653
64654 2007-09-24  Eric Blake  <ebb9@byu.net>
64655
64656         Revert fpending breakage from 2007-09-08.
64657         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64658         __fpending.c.
64659
64660 2007-09-24  Jim Meyering  <jim@meyering.net>
64661
64662         filenamecat.c: Add a test.
64663         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64664         showing how the function works when DIR is the empty string.
64665
64666 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64667
64668         * tests/test-canonicalize.sh: Turn on executable bit.
64669
64670 2007-09-19  Eric Blake  <ebb9@byu.net>
64671
64672         * README: Update CVS instructions.
64673
64674 2007-09-18  Bruno Haible  <bruno@clisp.org>
64675
64676         * modules/areadlink: New file.
64677         * lib/areadlink.h (areadlink): New declaration.
64678         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64679
64680 2007-09-17  Jim Meyering  <jim@meyering.net>
64681
64682         * lib/savewd.c (ESTALE) [!defined]: Define.
64683         Reported to be required on Interix by Martin Koeppe.
64684
64685 2007-09-17  Bruno Haible  <bruno@clisp.org>
64686
64687         * gnulib-tool (func_version): Use $version.
64688
64689 2007-09-16  Bruno Haible  <bruno@clisp.org>
64690
64691         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64692         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64693         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64694         Reported by Greg Schafer <gschafer@zip.com.au>.
64695
64696 2007-09-15  Bruno Haible  <bruno@clisp.org>
64697
64698         * gnulib-tool (sed): Try a little harder to make bash understand the
64699         alias.
64700         Reported by Bruce Korb <bruce.korb@gmail.com>.
64701
64702 2007-09-13  Eric Blake  <ebb9@byu.net>
64703
64704         * ChangeLog: Remove conflict markers.
64705
64706 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64707
64708         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64709         Reported by Bruno Haible <bruno@clisp.org>.
64710
64711 2007-09-12  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64714         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64715         is not defined.
64716
64717 2007-09-12  Eric Blake  <ebb9@byu.net>
64718
64719         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64720         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64721         Autoconf definition.
64722         * modules/euidaccess (Depends-on): Add extensions, for
64723         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64724         * modules/fnmatch (Depends-on): Likewise.
64725         * modules/getaddrinfo (Depends-on): Likewise.
64726         * modules/getdelim (Depends-on): Likewise.
64727         * modules/getline (Depends-on): Likewise.
64728         * modules/getsubopt (Depends-on): Likewise.
64729         * modules/gettext (Depends-on): Likewise.
64730         * modules/group-member (Depends-on): Likewise.
64731         * modules/mbchar (Depends-on): Likewise.
64732         * modules/memmem (Depends-on): Likewise.
64733         * modules/mempcpy (Depends-on): Likewise.
64734         * modules/memrchr (Depends-on): Likewise.
64735         * modules/pagealign_alloc (Depends-on): Likewise.
64736         * modules/readutmp (Depends-on): Likewise.
64737         * modules/stpcpy (Depends-on): Likewise.
64738         * modules/stpncpy (Depends-on): Likewise.
64739         * modules/strchrnul (Depends-on): Likewise.
64740         * modules/strndup (Depends-on): Likewise.
64741         * modules/strsep (Depends-on): Likewise.
64742         * modules/strverscmp (Depends-on): Likewise.
64743         * modules/vasprintf (Depends-on): Likewise.
64744         * modules/wcwidth (Depends-on): Likewise.
64745         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64746         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64747         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64749         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64751         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64752         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64753         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64754         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64756         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64757         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64758         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64759         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64760         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64761         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64762         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64764         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64767         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64768         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64769         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64771         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64772         so that lock.m4 can be used in gettext without extensions module.
64773
64774 2007-09-11  Bruno Haible  <bruno@clisp.org>
64775
64776         * m4/isc-posix.m4: Remove file.
64777         Suggested by Eric Blake.
64778
64779 2007-09-11  Eric Blake  <ebb9@byu.net>
64780
64781         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64782
64783 2007-09-10  Bruno Haible  <bruno@clisp.org>
64784
64785         * posix-modules: Fix typo in error message.
64786         Reported by Matt <mkraai@beckman.com>.
64787
64788 2007-09-09  Bruno Haible  <bruno@clisp.org>
64789
64790         * doc/functions/getdelim.texi: Update list of platforms lacking the
64791         function.
64792         * doc/functions/getline.texi: Likewise.
64793
64794 2007-09-09  Jim Meyering  <jim@meyering.net>
64795
64796         * lib/hash.c (hash_initialize): Detect calloc failure.
64797         Reported by Bruno Haible.
64798
64799 2007-09-09  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64802         malloc or realloc fails.
64803
64804 2007-09-09  Bruno Haible  <bruno@clisp.org>
64805
64806         * modules/getcwd (Depends-on): Add malloc-posix.
64807         * modules/glob (Depends-on): Likewise.
64808         * modules/putenv (Depends-on): Likewise.
64809         * modules/strdup (Depends-on): Likewise.
64810         * modules/getdelim (Depends-on): Add realloc-posix.
64811         * modules/read-file (Depends-on): Likewise.
64812
64813 2007-09-09  Bruno Haible  <bruno@clisp.org>
64814
64815         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64816         (gl_FUNC_MALLOC_POSIX): Require it.
64817         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64818         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64819         * modules/realloc (Files): Add m4/malloc.m4.
64820         * modules/calloc (Files): Likewise.
64821
64822 2007-09-09  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/malloc-posix: New file.
64825         * modules/malloc (Depends-on): Add malloc-posix.
64826         * lib/malloc.c: Include errno.h.
64827         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64828         and a POSIX-compatible malloc into a single function. Set ENOMEM
64829         when returning NULL.
64830         * m4/malloc.m4: New file.
64831         * doc/functions/malloc.texi: Mention the malloc-posix module.
64832         * lib/stdlib_.h (malloc): New declaration.
64833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64834         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64835         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64836         and HAVE_MALLOC_POSIX.
64837
64838 2007-09-09  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/realloc-posix: New file.
64841         * modules/realloc (Depends-on): Add realloc-posix.
64842         * lib/realloc.c: Include errno.h.
64843         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64844         and a POSIX-compatible realloc into a single function. Set ENOMEM
64845         when returning NULL.
64846         * m4/realloc.m4: New file.
64847         * doc/functions/realloc.texi: Mention the realloc-posix module.
64848         * lib/stdlib_.h (realloc): New declaration.
64849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64850         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64851         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64852         and HAVE_REALLOC_POSIX.
64853
64854 2007-09-09  Bruno Haible  <bruno@clisp.org>
64855
64856         * modules/calloc-posix: New file.
64857         * modules/calloc (Depends-on): Add calloc-posix.
64858         * lib/calloc.c: Include errno.h.
64859         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64860         and a POSIX-compatible calloc into a single function. Set ENOMEM
64861         when returning NULL.
64862         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64863         * doc/functions/calloc.texi: Mention the calloc-posix module.
64864         * lib/stdlib_.h (calloc): New declaration.
64865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64866         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64867         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64868         and HAVE_CALLOC_POSIX.
64869
64870 2007-09-09  Bruno Haible  <bruno@clisp.org>
64871
64872         Allow for modules to show an arbitrary notice.
64873         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64874         * gnulib-tool: New option --extract-notice.
64875         (func_usage): Document it.
64876         (sed_extract_prog): Update.
64877         (func_get_notice): New function.
64878         (func_modules_notice): New function.
64879         (func_import, func_create_testdir): Invoke it.
64880         Suggested by Jim Meyering.
64881
64882 2007-09-09  Bruno Haible  <bruno@clisp.org>
64883
64884         * gnulib-tool: New options --verbose, --quiet.
64885         (func_usage): Document them.
64886         (verbose): New variable.
64887         (func_execute_command): New function.
64888         (func_import): Don't show the module list and the file list if
64889         $verbose < 0.
64890         (func_create_testdir): Likewise. Use func_execute_command.
64891         (func_create_megatestdir): Use func_execute_command.
64892
64893 2007-09-08  Bruno Haible  <bruno@clisp.org>
64894
64895         * gnulib-tool (func_import): Prefer rsync over wget when available,
64896         for fetching the PO files.
64897
64898 2007-09-08  Bruno Haible  <bruno@clisp.org>
64899
64900         * posix-modules: New file. Portions copied from gnulib-tool.
64901         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64902
64903 2007-09-08  Jim Meyering  <jim@meyering.net>
64904
64905         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64906         * lib/fpending.h: Rename from __fpending.h.
64907         * lib/fpending.c: Rename from __fpending.c.
64908         Include "fpending.h", not "__fpending.h".
64909         * lib/__fpending.h, lib/__fpending.c: Remove files.
64910         * modules/fpending (Files): Reflect new file names.
64911         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64912
64913 2007-09-08  Bruno Haible  <bruno@clisp.org>
64914
64915         * m4/inttypes-h.m4: Remove stub file.
64916
64917 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64918
64919         * doc/headers/stdint.texi: Discuss #include_next issue.
64920
64921 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64922
64923         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64924
64925 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64926
64927         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64928         in variable name.
64929
64930 2007-09-03  Jim Meyering  <jim@meyering.net>
64931
64932         New module: git-version-gen.
64933         * modules/git-version-gen: New file.
64934
64935         Import changes from coreutils for bootstrap script.
64936
64937         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64938
64939         bootstrap: uses rsync to download the .po files
64940         * build-aux/bootstrap (po_download_command_format): New global.
64941         (download_po_files): Use rsync.
64942         (update_po_files): Don't remove .po files after download,
64943         so future rsync runs can take advantage of the copies.
64944
64945         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64946
64947         Solve the unnecessary-.po-file-regeneration problem once and for all.
64948         * build-aux/bootstrap (download_po_files): New function, renamed from
64949         get_translations.  Now, downloads, but doesn't update LINGUAS.
64950         (update_po_files): New function.
64951
64952         bootstrap: Ignore more.
64953         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64954         uniwidth to e.g., lib/.gitignore.
64955         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64956
64957         * build-aux/bootstrap: New setting: vc_ignore.
64958         (insert_sorted_if_absent): Create $file if absent.
64959         Adapt to new, possibly empty, list: $vc_ignore.
64960
64961         bootstrap: generate more ignorable names
64962         * build-aux/bootstrap (slurp): When generating ignorable names,
64963         also map .sin to .sed, .gperf to .c, and .y to .c.
64964
64965 2007-09-03  Jim Meyering  <jim@meyering.net>
64966
64967         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64968         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64969
64970 2007-09-02  Bruno Haible  <bruno@clisp.org>
64971
64972         Fix mis-recognition of 'mcs' on QNX 6.
64973         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64974         output contains the string "Mono".
64975         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64976         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64977
64978 2007-09-01  Bruno Haible  <bruno@clisp.org>
64979
64980         Fix collision between uniwidth/* and linebreak modules.
64981         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64982         u32_width): Remove declarations.
64983         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64984         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64985         streq3, streq2, streq1, streq0): Remove functions.
64986         (STREQ): Remove macro.
64987         (is_cjk_encoding): Remove function.
64988         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64989         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64990         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64991         * NEWS: Document the change.
64992
64993 2007-09-01  Bruno Haible  <bruno@clisp.org>
64994
64995         * lib/streq.h: Add double-inclusion guard.
64996
64997 2007-09-01  Karl Berry  <karl@gnu.org>
64998
64999         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65000
65001 2007-08-28  Jim Meyering  <jim@meyering.net>
65002
65003         Rename mreadlink_with_size to areadlink_with_size.
65004         * NEWS: Document the change.
65005         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65006         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65007         * lib/mreadlink.h: Rename this to...
65008         * lib/areadlink.h: ...this.
65009         * modules/mreadlink-with-size: Rename this to...
65010         * modules/areadlink-with-size: ...this.
65011         * lib/canonicalize.c: Reflect the renaming.
65012         * modules/canonicalize: Likewise.
65013
65014 2007-08-26  Bruno Haible  <bruno@clisp.org>
65015
65016         * gnulib-tool (func_import): When deciding which files to remove,
65017         consider also dangling symbolic links.
65018         Reported by Eric Blake.
65019
65020 2007-08-26  Bruno Haible  <bruno@clisp.org>
65021
65022         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65023
65024 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65025
65026         * lib/readline.c: Don't include getline.h, the prototype is now
65027         found in stdio.h.
65028
65029 2007-08-23  Jim Meyering  <jim@meyering.net>
65030
65031         Getdelim touchup.
65032         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65033         around the funlockfile call, since funlockfile never sets errno.
65034         Don't set errno upon failed realloc.
65035
65036 2007-08-22  Eric Blake  <ebb9@byu.net>
65037
65038         Getline touchups.
65039         * lib/getdelim.c (getdelim): Revert regression that required *n to
65040         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65041         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65042         getdelim, rather than whether implementation is missing.
65043         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65044         * lib/stdio_.h (getline): Also declare if replacement is
65045         required.
65046         * doc/functions/getdelim.texi: New file.
65047         * doc/functions/getline.texi: Likewise.
65048         * doc/gnulib.texi (Function Substitutes): Add new files.
65049         Reported by Bruno Haible.
65050
65051 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65052
65053         * users.txt: Add Guile.
65054
65055 2007-08-22  Eric Blake  <ebb9@byu.net>
65056
65057         * tests/test-getdelim.c (main): Use remove, not unlink.
65058         * tests/test-getline.c (main): Likewise.
65059
65060         Move getline and getdelim into stdio.h, per POSIX 200x.
65061         * modules/getline (Files): Remove getline.h.
65062         (Depends-on): Add stdio.
65063         (configure.ac): Add module indicator.
65064         * modules/getdelim (Files): Remove getdelim.h.
65065         (Depends-on): Add stdio.
65066         (configure.ac): Add module indicator.
65067         * modules/stdio (Makefile.am): Work with new indicators.
65068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65070         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65071         * lib/getdelim.h: Delete.
65072         * lib/getline.h: Delete.
65073         * lib/stdio_.h (getdelim, getline): Declare.
65074         * modules/getdelim-tests: New module.
65075         * modules/getline-tests: Likewise.
65076         * tests/test-getdelim.c: New file.
65077         * tests/test-getline.c: Likewise.
65078         * NEWS: Document the change.
65079         * lib/getline.c: Update choice of header.
65080         * lib/csharpcomp.c: Likewise.
65081         * lib/getpass.c: Likewise.
65082         * lib/javacomp.c: Likewise.
65083         * lib/javaversion.c: Likewise.
65084         * lib/yesno.c: Likewise.
65085         * lib/getdelim.c: Likewise.
65086         (getdelim): Set errno on failure, and avoid memory leak.
65087
65088 2007-08-19  Bruno Haible  <bruno@clisp.org>
65089
65090         * modules/closein (Depends-on): Add freadahead.
65091         * lib/closein.c: Include freadahead.h.
65092         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65093         is zero.
65094
65095 2007-08-19  Bruno Haible  <bruno@clisp.org>
65096
65097         * modules/freadahead-tests: New file.
65098         * tests/test-freadahead.sh: New file.
65099         * tests/test-freadahead.c: New file.
65100
65101         * modules/freadahead: New file.
65102         * lib/freadahead.h: New file.
65103         * lib/freadahead.c: New file.
65104         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65105         fbufmode, fpurge, freadable, fwritable.
65106
65107 2007-08-19  Eric Blake  <ebb9@byu.net>
65108
65109         Test yesno in combination with closein.
65110         * lib/yesno.c (yesno): Document use of stdin.
65111         * modules/yesno-tests (Files): New module.
65112         * tests/test-yesno.c (main): New file.
65113         * tests/test-yesno.sh: Likewise.
65114
65115 2007-08-19  Bruno Haible  <bruno@clisp.org>
65116
65117         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65118         * lib/fseeko.c (rpl_fseeko): Likewise.
65119         * lib/fseterr.c (fseterr): Likewise.
65120
65121 2007-08-19  Bruno Haible  <bruno@clisp.org>
65122
65123         * tests/test-lseek.c (main): Disable a test for BeOS.
65124         * doc/functions/lseek.texi: Document the BeOS bug.
65125
65126 2007-08-19  Bruno Haible  <bruno@clisp.org>
65127             Eric Blake  <ebb9@byu.net>
65128
65129         * lib/lseek.c: Include <sys/stat.h>.
65130         (rpl_lseek): Add workaround code also for Unix platforms.
65131         Needed for BeOS.
65132         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65133         * doc/functions/lseek.texi: Document BeOS definiency.
65134
65135 2007-08-18  Bruno Haible  <bruno@clisp.org>
65136
65137         * modules/fstrcmp-tests: New file.
65138         * tests/test-fstrcmp.c: New file.
65139
65140 2007-08-18  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/fstrcmp: New file, from GNU gettext with modifications.
65143         * lib/fstrcmp.h: New file, from GNU gettext.
65144         * lib/fstrcmp.c: New file, from GNU gettext.
65145         * MODULES.html.sh (String handling): Add fstrcmp.
65146
65147 2007-08-18  Bruno Haible  <bruno@clisp.org>
65148
65149         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65150         'bool'.
65151         (diag, compareseq): Remove const from the ctxt argument.
65152         (USE_HEURISTIC): Undefine at the end.
65153
65154 2007-08-18  Jim Meyering  <jim@meyering.net>
65155
65156         New file: lib/idcache.h
65157         * NEWS: Mention the addition.
65158         * modules/idcache (Files): Add lib/idcache.h
65159         * lib/idcache.c: Include "idcache.h".
65160         Don't include <sys/types.h>.
65161         Add a FIXME comment.
65162         Move file-scoped "static" declarations to the top.
65163         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65164
65165 2007-08-17  Bruno Haible  <bruno@clisp.org>
65166         and Paul Eggert  <eggert@cs.ucla.edu>
65167
65168         * MODULES.html.sh: Add diffseq.
65169         * modules/diffseq: New file.
65170         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65171         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65172
65173 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65174
65175         Import changes from coreutils for bootstrap script.
65176
65177         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65178
65179         * build-aux/bootstrap (slurp): Work even in environments where
65180         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65181         current code does not slurp files whose names start with ".", and
65182         this looks like it might be a troublesome area.
65183
65184         2007-07-11  Jim Meyering  <jim@meyering.net>
65185
65186         If there's a GPL vN copyright comment, require that N == 3.
65187
65188         2007-07-08  Jim Meyering  <jim@meyering.net>
65189
65190         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65191         * build-aux/bootstrap (mam_template): Move definition out of loop.
65192
65193         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65194
65195         * build-aux/bootstrap (symlink_to_dir): Rename function from
65196         symlink_to_gnulib.  Add a directory parameter.  Update all
65197         callers.
65198         (cp_mark_as_generated): Also check for -- and link to -- files in
65199         gl/.
65200
65201         2007-07-08  Jim Meyering  <jim@meyering.net>
65202
65203         Adapt to deeper hierarchy in gnulib.
65204         * build-aux/bootstrap (symlink_to_dir): If the destination
65205         directory doesn't exist, create it. This is required at least for
65206         "lib/uniwidth/cjk.h".
65207
65208         2007-05-15  Jim Meyering  <jim@meyering.net>
65209
65210         * build-aux/bootstrap: Now that generated Makefile.am files
65211         are no longer under version control, they must be created at
65212         bootstrap time.
65213
65214 2007-08-14  Ben Pfaff  <blp@gnu.org>
65215
65216         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65217
65218 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65221         given the changes below.
65222         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65223         even on hosts that have padding bits beyond the supported 64.
65224
65225 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65226
65227         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65228         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65229         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65230         depends on it.
65231         (xstrtol_error): Remove.
65232         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65233         but with a different signature.
65234         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65235         * lib/xstrtol-error.c: Include exitfail.h.
65236         (xstrtol_fatal): New function, with a different signature from the
65237         old xstrtol_error, so that the caller need not worry about passing
65238         in an exit status, or about storage management of the option argument.
65239         (xstrtol_error): Now a static function.  Redo signature to
65240         implement xstrtol_fatal.  Output the correct number of hyphens in
65241         front of the option so that the caller need not worry about
65242         storage management.
65243         (N_): New macro.
65244         (_): Remove; not used now.
65245         * modules/xstrtol: Depend on getopt.
65246         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65247         of old STRTOL_FATAL_ERROR macro.
65248         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65249         of test program.
65250         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65251         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65252
65253 2007-08-08  Eric Blake  <ebb9@byu.net>
65254
65255         * lib/xstrtol-error.c: Add missing include.
65256
65257         Move xstrtol messages into gnulib domain, when --pobase is used.
65258         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65259         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65260         * modules/xstrtol (Files): Distribute new file.
65261         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65262         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65263         * tests/test-xstrtol.c: ...into new file.
65264         * tests/test-xstrtoul.c: Also test xstrtoul.
65265         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65266         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65267         * tests/test-xstrtol.sh: Drive the tests.
65268         * tests/test-xstrtoimax.sh: Likewise.
65269         * tests/test-xstrtoumax.sh: Likewise.
65270         * modules/xstrtol-tests: New module.
65271         * modules/xstrtoimax-tests: Likewise.
65272         * modules/xstrtoumax-tests: Likewise.
65273
65274 2007-08-08  Jim Meyering  <jim@meyering.net>
65275
65276         New function: mfile_name_concat.
65277         * lib/filenamecat.c (mfile_name_concat): New function, just like
65278         file_name_concat, but return NULL upon failure rather than exiting
65279         with a diagnostic.
65280         * lib/filenamecat.h: Declare it.
65281
65282 2007-08-07  Bruno Haible  <bruno@clisp.org>
65283
65284         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65285         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65286         warning from gcc.
65287         Reported by Eric Blake.
65288
65289 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65290
65291         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65292         * modules/crypto/arcfour (License): Likewise.
65293         * modules/crypto/des-tests (License): Likewise.
65294         * modules/crypto/gc-arctwo-tests (License): Likewise.
65295         * modules/crypto/gc-des-tests (License): Likewise.
65296         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65297         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65298         * modules/crypto/gc-md2-tests (License): Likewise.
65299         * modules/crypto/gc-md4-tests (License): Likewise.
65300         * modules/crypto/gc-md5-tests (License): Likewise.
65301         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65302         * modules/crypto/gc-rijndael-tests (License): Likewise.
65303         * modules/crypto/gc-sha1-tests (License): Likewise.
65304         * modules/crypto/gc-tests (License): Likewise.
65305         * modules/crypto/hmac-md5 (License): Likewise.
65306         * modules/crypto/hmac-sha1 (License): Likewise.
65307         * modules/crypto/md2-tests (License): Likewise.
65308         * modules/crypto/md4-tests (License): Likewise.
65309         * modules/crypto/md5 (License): Likewise.
65310         * modules/crypto/rijndael (License): Likewise.
65311         * modules/crypto/sha1 (License): Likewise.
65312         * modules/memxor (License): Likewise.
65313
65314 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65315         and Bruno Haible  <bruno@clisp.org>
65316
65317         * NEWS: Describe interface changes to human, xstrtol.
65318         * lib/human.h: Include <xstrtol.h>.
65319         (human_options): Return enum strtol_error, not int.  Remove
65320         bool arg; take int * instead.
65321         * lib/human.c: Don't include "gettext.h".
65322         (_): Remove; no longer used.
65323         Don't include <xstrtol.h>, since human.h does it.
65324         (human_options): Adjust to abovementioned interface changes.
65325         Do not report error to stderr; that's now the caller's
65326         responsibility.
65327         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65328         interface change.
65329         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65330         Str, Argument_type_string.  All uses changed.  Put " argument"
65331         in diagnostics to make them clearer.  Change wording of suffix
65332         message for clarity.
65333         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65334         Argument_type_string.
65335         (STRTOL_FATAL_WARN): Remove; no longer used.
65336         * modules/human (Depends-on): Remove gettext-h.
65337
65338 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65339
65340         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65341
65342 2007-07-31  Bruno Haible  <bruno@clisp.org>
65343
65344         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65345         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65346         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65347
65348 2007-07-31  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65351         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65352
65353 2007-07-30  Bruno Haible  <bruno@clisp.org>
65354
65355         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65356         * modules/c-ctype (License): Likewise.
65357         * modules/c-strcase (License): Likewise.
65358         * modules/check-version (License): Likewise.
65359         * modules/iconv (License): Likewise.
65360         * modules/iconv_open (License): Likewise.
65361         * modules/read-file (License): Likewise.
65362         * modules/striconv (License): Likewise.
65363         * modules/strverscmp (License): Likewise.
65364         * modules/vasprintf (License): Likewise.
65365         * modules/crypto/des (License): Likewise.
65366         * modules/crypto/gc (License): Likewise.
65367         * modules/crypto/gc-arcfour (License): Likewise.
65368         * modules/crypto/gc-arctwo (License): Likewise.
65369         * modules/crypto/gc-des (License): Likewise.
65370         * modules/crypto/gc-hmac-md5 (License): Likewise.
65371         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65372         * modules/crypto/gc-md2 (License): Likewise.
65373         * modules/crypto/gc-md4 (License): Likewise.
65374         * modules/crypto/gc-md5 (License): Likewise.
65375         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65376         * modules/crypto/gc-random (License): Likewise.
65377         * modules/crypto/gc-rijndael (License): Likewise.
65378         * modules/crypto/gc-sha1 (License): Likewise.
65379         * modules/crypto/md2 (License): Likewise.
65380         * modules/crypto/md4 (License): Likewise.
65381
65382 2007-07-30  Jim Meyering  <jim@meyering.net>
65383
65384         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65385         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65386         it has valid stat data.  This bug would cause du not to count the
65387         sizes of inaccessible directories.
65388         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65389         in <http://bugzilla.redhat.com/250077>.
65390
65391 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65392             Bruno Haible  <bruno@clisp.org>
65393
65394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65395         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65396         #include_next, gives a diagnostic about it, but reports no error in
65397         the exit code.
65398         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65399
65400 2007-07-24  Ben Pfaff  <blp@gnu.org>
65401
65402         Improve name: "count-one-bits" is better than "popcount".
65403         * MODULES.html.sh: Update name.
65404         * lib/popcount.h: Renamed lib/count-one-bits.h.
65405         (popcount): Renamed count_one_bits.
65406         (popcountl): Renamed count_one_bits_l.
65407         (popcountll): Renamed count_one_bits_ll.
65408         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65409         * modules/popcount: Renamed module/count-one-bits.
65410         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65411         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65412
65413 2007-07-23  Ben Pfaff  <blp@gnu.org>
65414
65415         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65416         better code generation, and add U to large constants to avoid
65417         warnings, in non-GCC case.
65418         Suggested by Bruno Haible.
65419
65420 2007-07-23  Ben Pfaff  <blp@gnu.org>
65421
65422         * lib/popcount.h: Use verify_true instead of if...abort.
65423         * modules/popcount: Depend on verify module.
65424         Suggested by Jim Meyering.
65425
65426 2007-07-23  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (func_import): Create a .cvsignore file also when the
65429         directory is not yet in CVS but the toplevel directory is. When
65430         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65431         Reported by Karl Berry.
65432
65433 2007-07-22  Ben Pfaff  <blp@gnu.org>
65434
65435         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65436         case.
65437         Suggested by Eric Blake.
65438
65439 2007-07-22  Ben Pfaff  <blp@gnu.org>
65440
65441         New module: popcount.
65442         * MODULES.html.sh: Add popcount.
65443         * modules/popcount: New file.
65444         * modules/popcount-tests: New file.
65445         * tests/test-popcount.c: New file.
65446         * lib/popcount.h: New file.
65447         * m4/popcount.m4: New file.
65448
65449 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65450
65451         * build-aux/announce-gen: Update to GPLv3.
65452
65453         * build-aux/config.guess: Update from config.
65454
65455 2007-07-21  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65458         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65459
65460 2007-07-20  Jim Meyering  <jim@meyering.net>
65461
65462         * check-module: Diagnose a self-dependency.
65463
65464 2007-07-19  Bruno Haible  <bruno@clisp.org>
65465
65466         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65467         empty.
65468         Reported by Eric Blake.
65469
65470 2007-07-18  Bruno Haible  <bruno@clisp.org>
65471
65472         * gnulib-tool: New options --po-base, --po-domain.
65473         (func_usage): Document them.
65474         (pobase, po_domain): New variables.
65475         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65476         DEFAULT_TEXT_DOMAIN.
65477         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65478         (func_import): Consider pobase and po_domain. Create a po/ directory.
65479         (func_create_testdir): Set pobase and po_domain to empty.
65480         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65481         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65482
65483 2007-07-18  Bruno Haible  <bruno@clisp.org>
65484
65485         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65486         EXTRA_DIST augmentation for files in build-aux/.
65487
65488 2007-07-16  Bruno Haible  <bruno@clisp.org>
65489
65490         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65491         * modules/getdelim (License): Likewise.
65492
65493 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65494
65495         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65496         * modules/d-type (License): Likewise.
65497         * modules/extensions (License): Likewise.
65498         * modules/fnmatch (License): Likewise.
65499         * modules/fseeko (License): Likewise.
65500         * modules/getaddrinfo (License): Likewise.
65501         * modules/getline (License): Likewise.
65502         * modules/getlogin_r (License): Likewise.
65503         * modules/getpass (License): Likewise.
65504         * modules/gettimeofday (License): Likewise.
65505         * modules/glob (License): Likewise.
65506         * modules/inet_ntop (License): Likewise.
65507         * modules/malloc (License): Likewise.
65508         * modules/malloca (License): Likewise.
65509         * modules/memmem (License): Likewise.
65510         * modules/mempcpy (License): Likewise.
65511         * modules/memset (License): Likewise.
65512         * modules/minmax (License): Likewise.
65513         * modules/mktime (License): Likewise.
65514         * modules/netinet_in (License): Likewise.
65515         * modules/pathmax (License): Likewise.
65516         * modules/poll (License): Likewise.
65517         * modules/regex (License): Likewise.
65518         * modules/snprintf (License): Likewise.
65519         * modules/stdbool (License): Likewise.
65520         * modules/stdint (License): Likewise.
65521         * modules/stdio (License): Likewise.
65522         * modules/strcase (License): Likewise.
65523         * modules/strcasestr (License): Likewise.
65524         * modules/strdup (License): Likewise.
65525         * modules/string (License): Likewise.
65526         * modules/strndup (License): Likewise.
65527         * modules/strnlen (License): Likewise.
65528         * modules/strpbrk (License): Likewise.
65529         * modules/strptime (License): Likewise.
65530         * modules/strsep (License): Likewise.
65531         * modules/sys_select (License): Likewise.
65532         * modules/sys_socket (License): Likewise.
65533         * modules/sys_stat (License): Likewise.
65534         * modules/sys_time (License): Likewise.
65535         * modules/time (License): Likewise.
65536         * modules/time_r (License): Likewise.
65537         * modules/timegm (License): Likewise.
65538         * modules/unistd (License): Likewise.
65539         * modules/vsnprintf (License): Likewise.
65540         * modules/wctype (License): Likewise.
65541
65542 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65543
65544         * modules/argz (License): LGPLv2+.
65545
65546 2007-07-15  Karl Berry  <karl@gnu.org>
65547
65548         * doc/gnulib.texi: revise node structure per new fdl.texi.
65549
65550 2007-07-14  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65553         the output file.
65554         * lib/uniname/uninames.h: Regenerated.
65555
65556 2007-07-14  Karl Berry  <karl@gnu.org>
65557
65558         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65559         omitting sectioning and index commands.
65560
65561 2007-07-13  Bruno Haible  <bruno@clisp.org>
65562
65563         New gnulib-tool option --more-symlinks.
65564         * gnulib-tool (func_usage): Document --more-symlinks.
65565         (do_copyrights): New variable.
65566         Recognize option --more-symlinks.
65567         (func_import): Don't add a copyright notice transform to
65568         sed_transform_lib_file if do_copyrights is empty.
65569
65570 2007-07-13  Bruno Haible  <bruno@clisp.org>
65571
65572         * lib/vasnprintf.c (decimal_point_char): Define also if
65573         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65574         && !NEED_PRINTF_DIRECTIVE_A.
65575         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65576         Gary V. Vaughan <gary@gnu.org>.
65577
65578 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         * lib/inttypes_.h: Undo previous change, since it was fixed
65581         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65582
65583 2007-07-13  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65586         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65587
65588 2007-07-13  Jim Meyering  <jim@meyering.net>
65589
65590         df: Don't fail for Tru64's "file-on-file mount".
65591         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65592         so we fall through and use statfs instead.  Details here:
65593         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65594         Reported by Albert Chin.
65595
65596 2007-07-13  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65599         * modules/configmake (License): Likewise.
65600         * modules/gettext (License): Likewise.
65601         * modules/gettext-h (License): Likewise.
65602         * modules/include_next (License): Likewise.
65603         * modules/link-warning (License): Likewise.
65604         * modules/localcharset (License): Likewise.
65605         * modules/localename (License): Likewise.
65606         * modules/lock (License): Likewise.
65607         * modules/relocatable-lib-lgpl (License): Likewise.
65608         * modules/size_max (License): Likewise.
65609         * modules/vasnprintf (License): Likewise.
65610         * modules/wchar (License): Likewise.
65611         * modules/xsize (License): Likewise.
65612
65613 2007-07-13  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65616         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65617
65618 2007-07-12  Bruno Haible  <bruno@clisp.org>
65619
65620         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65621         in the modules files.
65622
65623 2007-07-11  Karl Berry  <karl@gnu.org>
65624
65625         * MODULES.html.sh (func_module): use
65626          sed -e '\|^'"${includefile}"'$|d'
65627          instead of /.../d, to avoid errors on $includefile's containing /.
65628
65629 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65630
65631         * gnulib-tool (func_import): Avoid duplication of --avoid
65632         statements
65633         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65634         names to `_' in variable names.
65635
65636 2007-07-10  Eric Blake  <ebb9@byu.net>
65637
65638         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65639         * NEWS: Document this change.
65640
65641 2007-07-08  Bruno Haible  <bruno@clisp.org>
65642
65643         Update to Unicode 5.0.
65644         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65645         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65646         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65647         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65648         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65649         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65650         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65651         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65652         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65653         U+10A3F, U+1D242..U+1D244.
65654         (nonspacing_table_ind): Update.
65655         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65656         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65657
65658 2007-07-08  Bruno Haible  <bruno@clisp.org>
65659
65660         Update to Unicode 5.0.
65661         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65662         code transform. Extend the name index field of unicode_name_to_code and
65663         unicode_code_to_name from 16 to 24 bits.
65664         * lib/uniname/uniname.c (unicode_character_name,
65665         unicode_name_character): Add the range 0x12xxx to the code transform.
65666         * lib/uniname/uninames.h: Regenerated.
65667         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65668
65669 2007-07-07  Bruno Haible  <bruno@clisp.org>
65670
65671         * modules/wcwidth-tests: New file.
65672         * tests/test-wcwidth.c: New file.
65673
65674         Work around MacOS X wcwidth() bug.
65675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65676         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65677         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65678         original wcwidth in non-UTF-8 locales.
65679         * modules/wcwidth (Depends-on): Add localcharset, streq,
65680         uniwidth/width.
65681         * doc/functions/wcwidth.texi: Update.
65682
65683 2007-07-07  Bruno Haible  <bruno@clisp.org>
65684
65685         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65686         (wcwidth): New declaration.
65687         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65688         macros.
65689         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65690         here. Prepare for creating <wchar.h> unconditionally.
65691         * modules/wchar (Depends-on): Add link-warning.
65692         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65693         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65694         * lib/wcwidth.h: Remove file.
65695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65696         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65697         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65698         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65699         (Include): Replace wcwidth.h with <wchar.h>.
65700         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65701         * lib/mbchar.h: Don't include wcwidth.h.
65702         * lib/mbswidth.c: Likewise.
65703         * NEWS: Mention the change.
65704
65705 2007-07-07  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65708         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65709         definition with an external declaration.
65710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65711         defined as a function. Remove AC_C_INLINE requirement.
65712         * modules/wcwidth (Files): Add lib/wcwidth.c.
65713         (Makefile.am): Remove redundant statement.
65714
65715 2007-07-07  Bruno Haible  <bruno@clisp.org>
65716
65717         * MODULES.html.sh (Unicode string functions): Add the new modules.
65718
65719         * tests/uniwidth/test-u32-strwidth.c: New file.
65720         * modules/uniwidth/u32-strwidth-tests: New file.
65721
65722         * lib/uniwidth/u32-strwidth.c: New file.
65723         * modules/uniwidth/u32-strwidth: New file.
65724
65725         * tests/uniwidth/test-u16-strwidth.c: New file.
65726         * modules/uniwidth/u16-strwidth-tests: New file.
65727
65728         * lib/uniwidth/u16-strwidth.c: New file.
65729         * modules/uniwidth/u16-strwidth: New file.
65730
65731         * tests/uniwidth/test-u8-strwidth.c: New file.
65732         * modules/uniwidth/u8-strwidth-tests: New file.
65733
65734         * lib/uniwidth/u8-strwidth.c: New file.
65735         * modules/uniwidth/u8-strwidth: New file.
65736
65737         * tests/uniwidth/test-u32-width.c: New file.
65738         * modules/uniwidth/u32-width-tests: New file.
65739
65740         * lib/uniwidth/u32-width.c: New file.
65741         * modules/uniwidth/u32-width: New file.
65742
65743         * tests/uniwidth/test-u16-width.c: New file.
65744         * modules/uniwidth/u16-width-tests: New file.
65745
65746         * lib/uniwidth/u16-width.c: New file.
65747         * modules/uniwidth/u16-width: New file.
65748
65749         * tests/uniwidth/test-u8-width.c: New file.
65750         * modules/uniwidth/u8-width-tests: New file.
65751
65752         * lib/uniwidth/u8-width.c: New file.
65753         * modules/uniwidth/u8-width: New file.
65754
65755         * tests/uniwidth/test-uc_width.c: New file.
65756         * modules/uniwidth/width-tests: New file.
65757
65758         * lib/uniwidth/width.c: New file, from GNU libiconv.
65759         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65760         * modules/uniwidth/width: New file.
65761
65762         * lib/uniwidth.h: New file, from GNU libiconv.
65763         * modules/uniwidth/base: New file.
65764
65765 2007-07-07  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/uniname.h: New file, from GNU gettext.
65768         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65769         * lib/uniname/uninames.h: New file, from GNU gettext.
65770         * lib/uniname/uniname.c: New file, from GNU gettext.
65771         * tests/uniname/test-uninames.sh: New file.
65772         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65773         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65774         * modules/uniname/base: New file.
65775         * modules/uniname/uniname: New file.
65776         * modules/uniname/uniname-tests: New file.
65777         * MODULES.html.sh (Unicode string functions): Add the new modules.
65778
65779 2007-07-06  Bruno Haible  <bruno@clisp.org>
65780
65781         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65782
65783 2007-07-06  Bruno Haible  <bruno@clisp.org>
65784
65785         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65786         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65787         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65788         include <sys/time.h>.
65789         Reported by Eric Blake.
65790
65791 2007-07-06  Eric Blake  <ebb9@byu.net>
65792
65793         Fix testing canonicalize on cygwin.
65794         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65795         Revert patch from 2007-06-19.
65796         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65797         canonicalize module is also in use.
65798         * tests/test-canonicalize.c: New file.
65799         * tests/test-canonicalize.sh: Likewise.
65800         * modules/canonicalize-tests: Likewise.
65801
65802 2007-07-06  Jim Meyering  <jim@meyering.net>
65803
65804         * lib/getugroups.c (getugroups): Detect getgrent failure.
65805         Adjust comment to reflect reality: this function may return -1.
65806
65807 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65808
65809         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65810         the new TP address.
65811         (usage): Fix typo
65812         (gnulib_mk): New variable.
65813
65814 2007-07-05  Jim Meyering  <jim@meyering.net>
65815
65816         Don't let endgrent clobber errno, no matter how improbable.
65817         * lib/getugroups.c (getugroups): Save and restore errno around
65818         endgrent call.
65819
65820         Close the group DB even when failing with 2^31 or more members.
65821         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65822
65823 2007-07-04  Jim Meyering  <jim@meyering.net>
65824
65825         * lib/getugroups.h: New file.
65826         * lib/getugroups.c: Include "getugroups.h".
65827         Remove uses of "register" keyword.
65828         Move local variable, "cp", down into scope where used.
65829         Give "username" parameter the "const" attribute.
65830         * modules/getugroups (Files): Add lib/getugroups.h
65831
65832 2007-07-04  Karl Berry  <karl@gnu.org>
65833
65834         * MODULES.html.sh (func_all_modules): Complete rename of
65835         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65836
65837 2007-07-02  Bruno Haible  <bruno@clisp.org>
65838
65839         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65840         mode, when inttypes.h comes from gnulib.
65841         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65842
65843 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65844
65845         * NEWS: Mention lgpl module name change.
65846
65847         * modules/lgpl-2.1: Renamed from lgpl.
65848
65849         * NEWS: Mention gpl module name change.
65850
65851         * modules/gpl-3.0: New file, based on gpl-2.0.
65852
65853         * modules/gpl-2.0: Renamed from gpl.
65854
65855         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65856         doc/gpl-2.0.texi.
65857
65858 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65861         #define __STDC_LIMIT_MACROS temporarily while including
65862         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65863         Problem reported by Joel E. Denny in
65864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65865
65866 2007-07-01  Bruno Haible  <bruno@clisp.org>
65867
65868         * lib/unistdio.h: New file.
65869         * lib/unistdio/u-asnprintf.h: New file.
65870         * lib/unistdio/u-asprintf.h: New file.
65871         * lib/unistdio/u-printf-args.c: New file.
65872         * lib/unistdio/u-printf-args.h: New file.
65873         * lib/unistdio/u-printf-parse.h: New file.
65874         * lib/unistdio/u-snprintf.h: New file.
65875         * lib/unistdio/u-sprintf.h: New file.
65876         * lib/unistdio/u-vasprintf.h: New file.
65877         * lib/unistdio/u-vsnprintf.h: New file.
65878         * lib/unistdio/u-vsprintf.h: New file.
65879         * lib/unistdio/ulc-asnprintf.c: New file.
65880         * lib/unistdio/ulc-asprintf.c: New file.
65881         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65882         * lib/unistdio/ulc-printf-parse.c: New file.
65883         * lib/unistdio/ulc-snprintf.c: New file.
65884         * lib/unistdio/ulc-sprintf.c: New file.
65885         * lib/unistdio/ulc-vasnprintf.c: New file.
65886         * lib/unistdio/ulc-vasprintf.c: New file.
65887         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65888         * lib/unistdio/ulc-vsnprintf.c: New file.
65889         * lib/unistdio/ulc-vsprintf.c: New file.
65890         * lib/unistdio/u8-asnprintf.c: New file.
65891         * lib/unistdio/u8-asprintf.c: New file.
65892         * lib/unistdio/u8-printf-parse.c: New file.
65893         * lib/unistdio/u8-snprintf.c: New file.
65894         * lib/unistdio/u8-sprintf.c: New file.
65895         * lib/unistdio/u8-vasnprintf.c: New file.
65896         * lib/unistdio/u8-vasprintf.c: New file.
65897         * lib/unistdio/u8-vsnprintf.c: New file.
65898         * lib/unistdio/u8-vsprintf.c: New file.
65899         * lib/unistdio/u8-u8-asnprintf.c: New file.
65900         * lib/unistdio/u8-u8-asprintf.c: New file.
65901         * lib/unistdio/u8-u8-snprintf.c: New file.
65902         * lib/unistdio/u8-u8-sprintf.c: New file.
65903         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65904         * lib/unistdio/u8-u8-vasprintf.c: New file.
65905         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65906         * lib/unistdio/u8-u8-vsprintf.c: New file.
65907         * lib/unistdio/u16-asnprintf.c: New file.
65908         * lib/unistdio/u16-asprintf.c: New file.
65909         * lib/unistdio/u16-printf-parse.c: New file.
65910         * lib/unistdio/u16-snprintf.c: New file.
65911         * lib/unistdio/u16-sprintf.c: New file.
65912         * lib/unistdio/u16-vasnprintf.c: New file.
65913         * lib/unistdio/u16-vasprintf.c: New file.
65914         * lib/unistdio/u16-vsnprintf.c: New file.
65915         * lib/unistdio/u16-vsprintf.c: New file.
65916         * lib/unistdio/u16-u16-asnprintf.c: New file.
65917         * lib/unistdio/u16-u16-asprintf.c: New file.
65918         * lib/unistdio/u16-u16-snprintf.c: New file.
65919         * lib/unistdio/u16-u16-sprintf.c: New file.
65920         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65921         * lib/unistdio/u16-u16-vasprintf.c: New file.
65922         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65923         * lib/unistdio/u16-u16-vsprintf.c: New file.
65924         * lib/unistdio/u32-asnprintf.c: New file.
65925         * lib/unistdio/u32-asprintf.c: New file.
65926         * lib/unistdio/u32-printf-parse.c: New file.
65927         * lib/unistdio/u32-snprintf.c: New file.
65928         * lib/unistdio/u32-sprintf.c: New file.
65929         * lib/unistdio/u32-vasnprintf.c: New file.
65930         * lib/unistdio/u32-vasprintf.c: New file.
65931         * lib/unistdio/u32-vsnprintf.c: New file.
65932         * lib/unistdio/u32-vsprintf.c: New file.
65933         * lib/unistdio/u32-u32-asnprintf.c: New file.
65934         * lib/unistdio/u32-u32-asprintf.c: New file.
65935         * lib/unistdio/u32-u32-snprintf.c: New file.
65936         * lib/unistdio/u32-u32-sprintf.c: New file.
65937         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65938         * lib/unistdio/u32-u32-vasprintf.c: New file.
65939         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65940         * lib/unistdio/u32-u32-vsprintf.c: New file.
65941         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65942         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65943         * tests/unistdio/test-ulc-printf1.h: New file.
65944         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65945         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65946         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65947         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65948         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65949         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65950         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65951         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65952         * tests/unistdio/test-u8-asnprintf1.c: New file.
65953         * tests/unistdio/test-u8-asnprintf1.h: New file.
65954         * tests/unistdio/test-u8-printf1.h: New file.
65955         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65956         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65957         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65958         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65959         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65960         * tests/unistdio/test-u8-vasprintf1.c: New file.
65961         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65962         * tests/unistdio/test-u8-vsprintf1.c: New file.
65963         * tests/unistdio/test-u16-asnprintf1.c: New file.
65964         * tests/unistdio/test-u16-asnprintf1.h: New file.
65965         * tests/unistdio/test-u16-printf1.h: New file.
65966         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65967         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65968         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65969         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65970         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65971         * tests/unistdio/test-u16-vasprintf1.c: New file.
65972         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65973         * tests/unistdio/test-u16-vsprintf1.c: New file.
65974         * tests/unistdio/test-u32-asnprintf1.c: New file.
65975         * tests/unistdio/test-u32-asnprintf1.h: New file.
65976         * tests/unistdio/test-u32-printf1.h: New file.
65977         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65978         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65979         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65980         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65981         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65982         * tests/unistdio/test-u32-vasprintf1.c: New file.
65983         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65984         * tests/unistdio/test-u32-vsprintf1.c: New file.
65985         * modules/unistdio/base: New file.
65986         * modules/unistdio/u-printf-args: New file.
65987         * modules/unistdio/ulc-asnprintf: New file.
65988         * modules/unistdio/ulc-asprintf: New file.
65989         * modules/unistdio/ulc-fprintf: New file.
65990         * modules/unistdio/ulc-printf-parse: New file.
65991         * modules/unistdio/ulc-snprintf: New file.
65992         * modules/unistdio/ulc-sprintf: New file.
65993         * modules/unistdio/ulc-vasnprintf: New file.
65994         * modules/unistdio/ulc-vasprintf: New file.
65995         * modules/unistdio/ulc-vfprintf: New file.
65996         * modules/unistdio/ulc-vsnprintf: New file.
65997         * modules/unistdio/ulc-vsprintf: New file.
65998         * modules/unistdio/u8-asnprintf: New file.
65999         * modules/unistdio/u8-asprintf: New file.
66000         * modules/unistdio/u8-printf-parse: New file.
66001         * modules/unistdio/u8-snprintf: New file.
66002         * modules/unistdio/u8-sprintf: New file.
66003         * modules/unistdio/u8-vasnprintf: New file.
66004         * modules/unistdio/u8-vasprintf: New file.
66005         * modules/unistdio/u8-vsnprintf: New file.
66006         * modules/unistdio/u8-vsprintf: New file.
66007         * modules/unistdio/u8-u8-asnprintf: New file.
66008         * modules/unistdio/u8-u8-asprintf: New file.
66009         * modules/unistdio/u8-u8-snprintf: New file.
66010         * modules/unistdio/u8-u8-sprintf: New file.
66011         * modules/unistdio/u8-u8-vasnprintf: New file.
66012         * modules/unistdio/u8-u8-vasprintf: New file.
66013         * modules/unistdio/u8-u8-vsnprintf: New file.
66014         * modules/unistdio/u8-u8-vsprintf: New file.
66015         * modules/unistdio/u16-asnprintf: New file.
66016         * modules/unistdio/u16-asprintf: New file.
66017         * modules/unistdio/u16-printf-parse: New file.
66018         * modules/unistdio/u16-snprintf: New file.
66019         * modules/unistdio/u16-sprintf: New file.
66020         * modules/unistdio/u16-vasnprintf: New file.
66021         * modules/unistdio/u16-vasprintf: New file.
66022         * modules/unistdio/u16-vsnprintf: New file.
66023         * modules/unistdio/u16-vsprintf: New file.
66024         * modules/unistdio/u16-u16-asnprintf: New file.
66025         * modules/unistdio/u16-u16-asprintf: New file.
66026         * modules/unistdio/u16-u16-snprintf: New file.
66027         * modules/unistdio/u16-u16-sprintf: New file.
66028         * modules/unistdio/u16-u16-vasnprintf: New file.
66029         * modules/unistdio/u16-u16-vasprintf: New file.
66030         * modules/unistdio/u16-u16-vsnprintf: New file.
66031         * modules/unistdio/u16-u16-vsprintf: New file.
66032         * modules/unistdio/u32-asnprintf: New file.
66033         * modules/unistdio/u32-asprintf: New file.
66034         * modules/unistdio/u32-printf-parse: New file.
66035         * modules/unistdio/u32-snprintf: New file.
66036         * modules/unistdio/u32-sprintf: New file.
66037         * modules/unistdio/u32-vasnprintf: New file.
66038         * modules/unistdio/u32-vasprintf: New file.
66039         * modules/unistdio/u32-vsnprintf: New file.
66040         * modules/unistdio/u32-vsprintf: New file.
66041         * modules/unistdio/u32-u32-asnprintf: New file.
66042         * modules/unistdio/u32-u32-asprintf: New file.
66043         * modules/unistdio/u32-u32-snprintf: New file.
66044         * modules/unistdio/u32-u32-sprintf: New file.
66045         * modules/unistdio/u32-u32-vasnprintf: New file.
66046         * modules/unistdio/u32-u32-vasprintf: New file.
66047         * modules/unistdio/u32-u32-vsnprintf: New file.
66048         * modules/unistdio/u32-u32-vsprintf: New file.
66049         * modules/unistdio/ulc-asnprintf-tests: New file.
66050         * modules/unistdio/ulc-vasnprintf-tests: New file.
66051         * modules/unistdio/ulc-vasprintf-tests: New file.
66052         * modules/unistdio/ulc-vsnprintf-tests: New file.
66053         * modules/unistdio/ulc-vsprintf-tests: New file.
66054         * modules/unistdio/u8-asnprintf-tests: New file.
66055         * modules/unistdio/u8-vasnprintf-tests: New file.
66056         * modules/unistdio/u8-vasprintf-tests: New file.
66057         * modules/unistdio/u8-vsnprintf-tests: New file.
66058         * modules/unistdio/u8-vsprintf-tests: New file.
66059         * modules/unistdio/u16-asnprintf-tests: New file.
66060         * modules/unistdio/u16-vasnprintf-tests: New file.
66061         * modules/unistdio/u16-vasprintf-tests: New file.
66062         * modules/unistdio/u16-vsnprintf-tests: New file.
66063         * modules/unistdio/u16-vsprintf-tests: New file.
66064         * modules/unistdio/u32-asnprintf-tests: New file.
66065         * modules/unistdio/u32-vasnprintf-tests: New file.
66066         * modules/unistdio/u32-vasprintf-tests: New file.
66067         * modules/unistdio/u32-vsnprintf-tests: New file.
66068         * modules/unistdio/u32-vsprintf-tests: New file.
66069         * MODULES.html.sh (Unicode string functions): Add the new modules.
66070
66071 2007-07-01  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/sprintf.c (sprintf): Limit the available length estimation,
66074         to avoid address wraparound.
66075         * lib/vsprintf.c (vsprintf): Likewise.
66076         * modules/sprintf-posix (Dependencies): Add stdint.
66077         * modules/vsprintf-posix (Dependencies): Likewise.
66078
66079 2007-07-01  Bruno Haible  <bruno@clisp.org>
66080
66081         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66082         Windows PATH as well. Conservative double-quoting. Comments.
66083
66084 2007-07-01  Bruno Haible  <bruno@clisp.org>
66085             Eric Blake  <ebb9@byu.net>
66086             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66087
66088         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66089         empty components in $PATH, denoting '.'.
66090
66091 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66092
66093         * gnulib-tool: Fix indentation.
66094         (func_create_megatestdir): Likewise.
66095         Report by Bruno Haible.
66096
66097 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66098
66099         Sync from Automake.
66100         * build-aux/gnupload: Fix shell portability issues with for loops.
66101         Report by Karl Berry.
66102
66103 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66104
66105         * build-aux/maint.mk (POURL): Use translationproject.org.
66106
66107 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66108             Bruno Haible  <bruno@clisp.org>
66109
66110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66111         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66112         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66113         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66114         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66115
66116 2007-06-27  Bruno Haible  <bruno@clisp.org>
66117
66118         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66119         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66120
66121 2007-06-26  Karl Berry  <karl@gnu.org>
66122
66123         * MODULES.html.sh: remove xreadlink-with-size.
66124
66125 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66128         method that I hope also handles the double-include problem noted
66129         by Bruno Haible in
66130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66131
66132 2007-06-23  Bruno Haible  <bruno@clisp.org>
66133
66134         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66135         Don't let the 'mostlyclean' target fail if the last subdirectory could
66136         not be removed.
66137         Reported by Karl Berry.
66138
66139 2007-06-23  Bruno Haible  <bruno@clisp.org>
66140
66141         * gnulib-tool (echo): Add a speedier workaround for ksh.
66142         * tests/test-echo.sh: Likewise.
66143
66144 2007-06-23  Bruno Haible  <bruno@clisp.org>
66145
66146         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66147         * tests/test-echo.sh: Likewise.
66148
66149 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66150
66151         * gnulib-tool (IFS): Initialize early, so we don't set it to
66152         empty later.
66153         (self_abspathname): Rewrite algorithm to set it, reindent.
66154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66155         (func_create_megatestdir): Merge some sed scripts.
66156
66157 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66160         exposed by Sun Studio 11 cc on Solaris 8.
66161
66162 2007-06-22  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66165         backslashes.
66166         * tests/test-echo.sh: New file.
66167
66168 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66169
66170         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66171         simplify `sed_replace_build_aux' scripts, they are portable but
66172         echoing them with `echo' is not.
66173         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66174
66175 2007-06-21  Karl Berry  <karl@gnu.org>
66176
66177         * config/srclist.txt: guess we can't handle the licenses via
66178         srclist at the moment.
66179
66180 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * MODULES.html.sh: Add include_next.
66183         * modules/include_next: New file.
66184
66185 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66188         INCLUDE_NEXT.
66189         (gl_CHECK_NEXT_HEADERS): New macro.
66190         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66191         the obsolescent gl_ABSOLUTE_HEADER.
66192         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66193         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66194         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66195         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66196         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66197         * m4/math_h.m4 (gl_MATH_H): Likewise.
66198         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66199         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66200         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66201         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66202         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66203         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66204         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66205         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66206         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66209         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66210         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66211         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66212         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66213         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66214         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66215         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66216         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66217         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66218         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66219         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66220         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66221         * lib/float_.h: Likewise.
66222         * lib/inttypes_.h: Likewise.
66223         * lib/math_.h: Likewise.
66224         * lib/search_.h: Likewise.
66225         * lib/signal_.h: Likewise.
66226         * lib/stdint_.h: Likewise.
66227         * lib/stdio_.h: Likewise.
66228         * lib/stdlib_.h: Likewise.
66229         * lib/string_.h: Likewise.
66230         * lib/sys_stat_.h: Likewise.
66231         * lib/sys_time_.h: Likewise.
66232         * lib/time_.h: Likewise.
66233         * lib/unistd_.h: Likewise.
66234         * lib/wchar_.h: Likewise.
66235         * lib/wctype_.h: Likewise.
66236         * lib/dirent_.h: Likewise.
66237         * lib/iconv_.h: Likewise.
66238         * lib/locale_.h: Likewise.
66239         * lib/netinet_in_.h: Likewise.
66240         * lib/sys_select_.h: Likewise.
66241         * lib/sys_socket_.h: Likewise.
66242         * lib/sysexits_.h: Likewise.
66243         * modules/fcntl (Depends-on): Depend on include_next, not
66244         absolute_header.
66245         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66246         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66247         * modules/fchdir: Likewise.
66248         * modules/float: Likewise.
66249         * modules/iconv_open: Likewise.
66250         * modules/inttypes: Likewise.
66251         * modules/locale: Likewise.
66252         * modules/math: Likewise.
66253         * modules/netinet_in: Likewise.
66254         * modules/search: Likewise.
66255         * modules/signal: Likewise.
66256         * modules/stdint: Likewise.
66257         * modules/stdio: Likewise.
66258         * modules/stdlib: Likewise.
66259         * modules/string: Likewise.
66260         * modules/sys_select: Likewise.
66261         * modules/sys_socket: Likewise.
66262         * modules/sys_stat: Likewise.
66263         * modules/sys_time: Likewise.
66264         * modules/sysexits: Likewise.
66265         * modules/time: Likewise.
66266         * modules/unistd: Likewise.
66267         * modules/wchar: Likewise.
66268         * modules/wctype: Likewise.
66269         * modules/sys_stat: Change maintainer to "all".
66270         * modules/unistd: Likewise.
66271
66272 2007-06-20  Karl Berry  <karl@gnu.org>
66273
66274         * config/srclist.txt: track www changes in license files.
66275
66276 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66277
66278         * build-aux/bootstrap: Remove stray dot.
66279         Make sure build_aux settings are honored when linking
66280         gnulib_extra_files.
66281
66282 2007-06-19  Eric Blake  <ebb9@byu.net>
66283
66284         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66285         Allow compilation on cygwin.
66286
66287 2007-06-19  Jim Meyering  <jim@meyering.net>
66288
66289         xreadlink-with-size: Remove module.  No longer used.
66290         Ex-callers now use xreadlink or mreadlink-with-size.
66291         * modules/xreadlink-with-size: Remove module.
66292         * lib/xreadlink-with-size.c: Remove file.
66293         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66294         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66295         just before the function definition *is* accurate.
66296
66297         Eliminate one way canonicalize_filename_mode could exit.
66298         * lib/canonicalize.c (canonicalize_filename_mode):
66299         Use mreadlink_with_size, not xreadlink_with_size.
66300
66301 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66302
66303         Detect porting problems to FreeBSD/arm, which has time_t wider than
66304         long int.  Original problem reported for GNU diff by Xin Li in
66305         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66306         * modules/getdate (Depends-on): Add intprops, verify.
66307         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66308         is an integer type no wider than long int.
66309
66310 2007-06-18  Jim Meyering  <jim@meyering.net>
66311
66312         New module: mreadlink-with-size.
66313         * MODULES.html.sh: Add mreadlink-with-size.
66314         * modules/mreadlink-with-size: New module
66315         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66316         not xreadlink-with-size.
66317         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66318
66319 2007-06-16  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66322         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66323         Reported by Gary V. Vaughan <gary@gnu.org>.
66324
66325 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         Revamp lchown so that it lives in unistd.h where it belongs.
66328         * lib/lchown.h: Remove.
66329         * lib/dirchownmod.c: Don't include lib/lchown.h.
66330         * lib/fchownat.c: Likewise.
66331         * lib/openat.c: Likewise.
66332         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66333         does not follow symlinks.
66334         (EOPNOTSUPP): Define if not defined.
66335         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66336         is defined to 0.
66337         (lchown): New decl.
66338         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66339         Do not check for lchown decl.
66340         Set REPLACE_LCHOWN.
66341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66342         REPLACE_LCHOWN.
66343         * modules/chown: Make it clear it follows symlinks.
66344         * modules/lchown: Make it clear it doesn't follow symlinks.
66345         (Files): Remove lib/lchown.h
66346         (Depends-on): Add unistd.
66347         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66348         (Include): Include <unistd.h>, not "lchown.h".
66349         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66350         REPLACE_LCHOWN.
66351
66352 2007-06-15  Jim Meyering  <jim@meyering.net>
66353
66354         Change license (GPL to LGPL) of fsusage and dependents.
66355         * modules/fsusage (License): Change to LGPL.
66356         * modules/full-read (License): Likewise.
66357         * modules/full-write (License): Likewise.
66358         * modules/safe-read (License): Likewise.
66359         * modules/safe-write (License): Likewise.
66360
66361 2007-06-14  Ben Pfaff  <blp@gnu.org>
66362
66363         Missing part of allocsa -> malloca transition.
66364         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66365         gl_MALLOCA.
66366
66367 2007-06-12  Bruno Haible  <bruno@clisp.org>
66368
66369         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66370         to ia64, x86_64, i386.
66371         Reported by Eric Blake.
66372
66373 2007-06-12  Bruno Haible  <bruno@clisp.org>
66374
66375         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66376         cross-compiling to x86_64.
66377
66378 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66381         glitch reported by Ralf Wildenhues in
66382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66383
66384         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66385         Vin Shelton.
66386
66387 2007-06-11  Bruno Haible  <bruno@clisp.org>
66388
66389         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66390         replacement string.
66391         Reported by Eric Blake.
66392
66393 2007-06-10  Bruno Haible  <bruno@clisp.org>
66394
66395         Prepare vasnprintf code for use with Unicode strings.
66396         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66397         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66398         TYPE_U32_STRING.
66399         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66400         a_u32_string variants.
66401         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66402         * lib/printf-args.c: Don't include config.h and the specification
66403         header if PRINTF_FETCHARGS is already defined.
66404         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66405         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66406         TYPE_U16_STRING, TYPE_U32_STRING.
66407         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66408         u16_directive, u16_directives, u32_directive, u32_directives): New
66409         types.
66410         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66411         New declarations.
66412         * lib/printf-parse.c: Don't include config.h and the specification
66413         header if PRINTF_PARSE is already defined. Eliminate the set of
66414         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66415         them now. Include c-ctype.h.
66416         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66417         directive and CHAR_T_ONLY_ASCII.
66418         * lib/vasnprintf.c: Don't include config.h and the specification header
66419         if VASNPRINTF is already defined.
66420         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66421         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66422         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66423         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66424         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66425         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66426         code accordingly.
66427         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66428         pad_ourselves also in this case, with the 'c' and 's' directives, and
66429         with a different notion of "width".
66430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66431
66432 2007-06-10  Bruno Haible  <bruno@clisp.org>
66433
66434         * modules/unistr/u32-mbsnlen: New file.
66435         * lib/unistr/u32-mbsnlen.c: New file.
66436
66437         * modules/unistr/u16-mbsnlen: New file.
66438         * lib/unistr/u16-mbsnlen.c: New file.
66439
66440         * modules/unistr/u8-mbsnlen: New file.
66441         * lib/unistr/u8-mbsnlen.c: New file.
66442
66443         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66444         declarations.
66445
66446 2007-06-10  Bruno Haible  <bruno@clisp.org>
66447
66448         * lib/string_.h (mbsnlen): New declaration.
66449         * lib/mbsnlen.c: New file.
66450         * m4/mbsnlen.m4: New file.
66451         * modules/mbsnlen: New file.
66452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66453         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66454         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66455
66456 2007-06-10  Bruno Haible  <bruno@clisp.org>
66457
66458         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66459
66460 2007-06-10  Bruno Haible  <bruno@clisp.org>
66461
66462         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66463         * lib/mbuiter.h: Likewise.
66464
66465 2007-06-10  Bruno Haible  <bruno@clisp.org>
66466
66467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66468         declaration.
66469
66470 2007-06-10  Karl Berry  <karl@gnu.org>
66471
66472         * config/srclist.txt: remove gettext entries, Bruno prefers
66473         to update individually.
66474
66475 2007-06-10  Bruno Haible  <bruno@clisp.org>
66476
66477         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66478         'maxlen'. Ensure only length + width bytes are allocated, not
66479         length + 1 + width.
66480
66481 2007-06-09  Bruno Haible  <bruno@clisp.org>
66482
66483         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66484         (CHAR_T): Remove macro.
66485         (VASNPRINTF): Update.
66486
66487 2007-06-09  Bruno Haible  <bruno@clisp.org>
66488
66489         * MODULES.html.sh (Unicode string functions): Add the new modules.
66490
66491         * modules/uniconv/u32-conv-to-enc: New file.
66492         * lib/uniconv/u32-conv-to-enc.c: New file.
66493         * modules/uniconv/u32-conv-to-enc-tests: New file.
66494         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66495
66496         * modules/uniconv/u16-conv-to-enc: New file.
66497         * lib/uniconv/u16-conv-to-enc.c: New file.
66498         * lib/uniconv/u-conv-to-enc.h: New file.
66499         * modules/uniconv/u16-conv-to-enc-tests: New file.
66500         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66501
66502         * modules/uniconv/u8-conv-to-enc: New file.
66503         * lib/uniconv/u8-conv-to-enc.c: New file.
66504         * modules/uniconv/u8-conv-to-enc-tests: New file.
66505         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66506
66507         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66508         u32_conv_to_encoding): New declarations.
66509
66510 2007-06-09  Bruno Haible  <bruno@clisp.org>
66511
66512         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66513
66514 2007-06-09  Bruno Haible  <bruno@clisp.org>
66515
66516         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66517         * modules/malloca: Renamed from modules/allocsa, updated.
66518         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66519         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66520         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66521         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66522         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66523         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66524         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66525         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66526         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66527         * modules/c-strcasestr (Depends-on): Update.
66528         * lib/c-strcasestr.c: Update.
66529         * modules/c-strstr (Depends-on): Update.
66530         * lib/c-strstr.c: Update.
66531         * modules/canonicalize-lgpl (Depends-on): Update.
66532         * lib/canonicalize-lgpl.c: Update.
66533         * modules/clean-temp (Depends-on): Update.
66534         * lib/clean-temp.c: Update.
66535         * modules/csharpcomp (Depends-on): Update.
66536         * lib/csharpcomp.c: Update.
66537         * modules/csharpexec (Depends-on): Update.
66538         * lib/csharpexec.c: Update.
66539         * modules/javacomp (Depends-on): Update.
66540         * lib/javacomp.c: Update.
66541         * modules/javaexec (Depends-on): Update.
66542         * lib/javaexec.c: Update.
66543         * modules/mbscasestr (Depends-on): Update.
66544         * lib/mbscasestr.c: Update.
66545         * modules/mbsstr (Depends-on): Update.
66546         * lib/mbsstr.c: Update.
66547         * modules/setenv (Depends-on): Update.
66548         * lib/setenv.c: Update.
66549         * modules/strcasestr (Depends-on): Update.
66550         * lib/strcasestr.c: Update.
66551         * modules/striconveha (Depends-on): Update.
66552         * lib/striconveha.c: Update.
66553         * modules/relocatable-prog-wrapper (Files): Update.
66554         * lib/relocwrapper.c: Update.
66555         * build-aux/install-reloc: Update.
66556         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66557
66558 2007-06-08  Bruno Haible  <bruno@clisp.org>
66559
66560         Port to uClibc.
66561         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66562         * lib/fpurge.c (fpurge): Likewise.
66563         * lib/freading.c (freading): Likewise.
66564         * lib/fseeko.c (rpl_fseeko): Likewise.
66565         * lib/fseterr.c (fseterr): Likewise.
66566         * lib/fwriting.c (fwriting): Likewise.
66567         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66568
66569 2007-06-08  Bruno Haible  <bruno@clisp.org>
66570
66571         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66572         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66573         * modules/gettext (Files): Add m4/intlmacosx.m4.
66574
66575 2007-06-07  Bruno Haible  <bruno@clisp.org>
66576
66577         * modules/localename-tests: New file.
66578         * tests/test-localename.c: New file.
66579
66580         New module 'localename'.
66581         * lib/localename.h: New file.
66582         * lib/localename.c: New file, from GNU gettext.
66583         * m4/localename.m4: New file.
66584         * modules/localename: New file.
66585
66586 2007-06-07  Bruno Haible  <bruno@clisp.org>
66587
66588         Work around the lack of <wchar.h> on some builds of uClibc.
66589         * doc/headers/wchar.texi: Update.
66590         * lib/wchar_.h: Include <wchar.h> only if it exists.
66591         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66592         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66593         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66594         doesn't exist.
66595         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66596         * modules/mbfile (Depends-on): Add wchar.
66597         * modules/mbiter (Depends-on): Likewise.
66598         * modules/mbuiter (Depends-on): Likewise.
66599         Reported by Simon Josefsson.
66600
66601 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66602
66603         Work around problem reported by Steven M. Schweda in
66604         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66605         Tru64 5.1B with the Compaq compiler environment installed declares
66606         an 'isblank' function but does not define it in the C library.
66607         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66608         * lib/regex_internal.h (isblank): Likewise.
66609         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66610         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66611
66612 2007-06-05  Bruno Haible  <bruno@clisp.org>
66613
66614         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66615         ia64.
66616         * modules/printf-safe: New file.
66617         * modules/fprintf-posix (Depends-on): Add printf-safe.
66618         * modules/printf-posix (Depends-on): Likewise.
66619         * modules/snprintf-posix (Depends-on): Likewise.
66620         * modules/sprintf-posix (Depends-on): Likewise.
66621         * modules/vasnprintf-posix (Depends-on): Likewise.
66622         * modules/vasprintf-posix (Depends-on): Likewise.
66623         * modules/vfprintf-posix (Depends-on): Likewise.
66624         * modules/vprintf-posix (Depends-on): Likewise.
66625         * modules/vsnprintf-posix (Depends-on): Likewise.
66626         * modules/vsprintf-posix (Depends-on): Likewise.
66627         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66628         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66629         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66630         "no" on i386, x86_64, ia64.
66631         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66632         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66633         on i386, x86_64, ia64.
66634         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66635         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66636         on i386, x86_64, ia64.
66637         * tests/test-vasnprintf-posix.c: Include float.h.
66638         (LDBL80_WORDS): New macro.
66639         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66640         on i386, x86_64, ia64.
66641         * tests/test-vasprintf-posix.c: Include float.h.
66642         (LDBL80_WORDS): New macro.
66643         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66644         on i386, x86_64, ia64.
66645         * tests/test-snprintf-posix.c: Include float.h.
66646         * tests/test-sprintf-posix.c: Likewise.
66647         * tests/test-vsnprintf-posix.c: Likewise.
66648         * tests/test-vsprintf-posix.c: Likewise.
66649
66650 2007-06-05  Bruno Haible  <bruno@clisp.org>
66651
66652         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66653         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66654         non-IEEE numbers on i386, x86_64, ia64.
66655         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66656         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66657         * tests/test-isnanl.h: Include float.h.
66658         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66659
66660 2007-06-05  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66663         also the %a / %A. Handle the %a / %A code before this extra handling.
66664
66665 2007-06-05  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66668         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66669
66670 2007-06-05  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66673         typo in variable name.
66674
66675 2007-06-05  Eric Blake  <ebb9@byu.net>
66676
66677         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66678         Reported by Simon Josefsson.
66679
66680 2007-06-04  Bruno Haible  <bruno@clisp.org>
66681
66682         Avoid test failures on some PowerPC platforms.
66683         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66684         Define differently for PowerPC.
66685         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66686         Reported by Gary V. Vaughan <gary@gnu.org>.
66687
66688 2007-06-02  Bruno Haible  <bruno@clisp.org>
66689
66690         Fix test-stdint failure on FreeBSD/ia64.
66691         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66692         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66693         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66694         * doc/headers/stdint.texi: Update.
66695
66696 2007-06-01  Bruno Haible  <bruno@clisp.org>
66697
66698         * tests/test-binary-io.c (main): Pass a third argument to open().
66699         Reported by Gary V. Vaughan <gary@gnu.org>.
66700
66701 2007-06-01  Bruno Haible  <bruno@clisp.org>
66702
66703         * doc/functions/frexpl.texi: Update for mingw.
66704
66705 2007-06-01  Bruno Haible  <bruno@clisp.org>
66706
66707         * tests/test-lseek.c (main): Disable test of errno for invalid third
66708         argument.
66709         * doc/functions/lseek.texi: Update.
66710         Reported by Gary V. Vaughan <gary@gnu.org>.
66711
66712 2007-05-28  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66715
66716 2007-05-31  Eric Blake  <ebb9@byu.net>
66717
66718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66719         cross compiling.
66720
66721 2007-05-30  Eric Blake  <ebb9@byu.net>
66722         and Bruno Haible  <bruno@clisp.org>
66723
66724         Work around mingw test failures exposed by m4-1.4.9b.
66725         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66726         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66727         moment.
66728
66729 2007-05-30  Bruno Haible  <bruno@clisp.org>
66730
66731         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66732         assuming that they are closed. Needed on HP-UX 11.
66733
66734 2007-05-29  Bruno Haible  <bruno@clisp.org>
66735
66736         Fix a problem with #include_next.
66737         * lib/dirent_.h: Split the double-inclusion guard.
66738         * lib/fcntl_.h: Likewise.
66739         * lib/float_.h: Likewise.
66740         * lib/iconv_.h: Likewise.
66741         * lib/inttypes_.h: Likewise.
66742         * lib/locale_.h: Likewise.
66743         * lib/math_.h: Likewise.
66744         * lib/netinet_in_.h: Likewise.
66745         * lib/search_.h: Likewise.
66746         * lib/signal_.h: Likewise.
66747         * lib/stdint_.h: Likewise.
66748         * lib/stdio_.h: Likewise.
66749         * lib/stdlib_.h: Likewise.
66750         * lib/string_.h: Likewise.
66751         * lib/sys_select_.h: Likewise.
66752         * lib/sys_socket_.h: Likewise.
66753         * lib/sys_stat_.h: Likewise.
66754         * lib/sys_time_.h: Likewise.
66755         * lib/sysexits_.h: Likewise.
66756         * lib/time_.h: Likewise.
66757         * lib/unistd_.h: Likewise.
66758         * lib/wchar_.h: Likewise.
66759         * lib/wctype_.h: Likewise.
66760
66761 2007-05-29  Bruno Haible  <bruno@clisp.org>
66762
66763         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66764         for the moment.
66765
66766 2007-05-29  Bruno Haible  <bruno@clisp.org>
66767
66768         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66769         invocation.
66770         Reported by Eric Blake.
66771
66772 2007-05-29  Bruno Haible  <bruno@clisp.org>
66773
66774         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66775         compiling case.
66776
66777 2007-05-29  Eric Blake  <ebb9@byu.net>
66778             Bruno Haible  <bruno@clisp.org>
66779
66780         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66781         cross compiles.
66782
66783 2007-05-28  Eric Blake  <ebb9@byu.net>
66784
66785         * modules/closein-tests (test_closein_LDADD): Support test on
66786         cygwin with libtool.
66787
66788 2007-05-28  Bruno Haible  <bruno@clisp.org>
66789
66790         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66791         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66792         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66793         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66794         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66795         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66796         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66797         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66798         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66799
66800 2007-05-28  Eric Blake  <ebb9@byu.net>
66801
66802         Unconditionally include <config.h> in unit tests.
66803         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66804         * tests/test-allocsa.c, tests/test-arcfour.c,
66805         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66806         tests/test-array_list.c, tests/test-array_oset.c,
66807         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66808         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66809         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66810         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66811         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66812         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66813         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66814         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66815         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66816         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66817         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66818         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66819         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66820         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66821         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66822         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66823         test-md5.c, test-memmem.c, test-printf-posix.c,
66824         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66825         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66826         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66827         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66828         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66829         test-vasnprintf-posix2.c, test-vasnprintf.c,
66830         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66831         test-vfprintf-posix.c, test-vprintf-posix.c,
66832         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66833         test-xvasprintf.c: Likewise.
66834
66835 2007-05-28  Bruno Haible  <bruno@clisp.org>
66836
66837         * gnulib-tool (func_import): Remember the --with-tests command-line
66838         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66839         Reported by Eric Blake.
66840
66841 2007-05-28  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/ftell-tests: New file.
66844         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66845         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66846
66847         * lib/ftell.c: New file.
66848         * modules/ftell: New file.
66849         * m4/ftell.m4: New file.
66850         * doc/functions/ftell.texi: Update.
66851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66852         REPLACE_FTELL.
66853         * lib/stdio_.h (rpl_ftell): New declaration.
66854         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66855         REPLACE_FTELL.
66856
66857 2007-05-28  Eric Blake  <ebb9@byu.net>
66858
66859         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66860
66861 2007-05-28  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/fseek-tests: New file.
66864         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66865         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66866
66867         * lib/fseek.c: New file.
66868         * modules/fseek: New file.
66869         * m4/fseek.m4: New file.
66870         * doc/functions/fseek.texi: Update.
66871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66872         REPLACE_FSEEK.
66873         * lib/stdio_.h (rpl_fseek): New declaration.
66874         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66875         REPLACE_FSEEK.
66876
66877 2007-05-28  Bruno Haible  <bruno@clisp.org>
66878
66879         * lib/stdio_.h (fflush): More comments.
66880
66881 2007-05-28  Bruno Haible  <bruno@clisp.org>
66882
66883         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66884         runtime test.
66885
66886 2007-05-28  Eric Blake  <ebb9@byu.net>
66887
66888         Improve lseek module.
66889         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66890         * lib/unistd_.h (lseek): Scale back link warning message.
66891         * tests/test-lseek.c: Beef up test.
66892         * tests/test-lseek.sh: Exercise more facets of lseek.
66893         Reported by Bruno Haible.
66894
66895 2007-05-28  Bruno Haible  <bruno@clisp.org>
66896
66897         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66898         to define.
66899
66900 2007-05-27  Bruno Haible  <bruno@clisp.org>
66901
66902         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66903
66904 2007-05-27  Bruno Haible  <bruno@clisp.org>
66905
66906         * modules/openmp: New file.
66907         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66908         Noah Misch.
66909
66910 2007-05-26  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/chdir-long (Depends-on): Add fchdir.
66913         * modules/chdir-safer (Depends-on): Likewise.
66914         * modules/fts (Depends-on): Likewise.
66915         * modules/fts-lgpl (Depends-on): Likewise.
66916         * modules/openat (Depends-on): Likewise.
66917         * modules/savewd (Depends-on): Likewise.
66918
66919 2007-05-24  Eric Blake  <ebb9@byu.net>
66920
66921         Fix lseek on mingw.
66922         * modules/lseek: New module.
66923         * m4/lseek.m4: New file.
66924         * lib/lseek.c: New file.
66925         * modules/lseek-tests: New file.
66926         * tests/test-lseek.c: New file.
66927         * tests/test-lseek.sh: New file.
66928         * MODULES.html.sh: Document lseek module.
66929         * modules/fflush (Depends-on): Add lseek, fseeko.
66930         * modules/fseeko (Depends-on): Likewise.
66931         * modules/ftello (Depends-on): Likewise.
66932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66933         broken.
66934         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66935         broken.
66936         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66937         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66938         * lib/ftello.c (rpl_ftello): Likewise.
66939         * tests/test-fseeko.c (main): Test this.
66940         * tests/test-fseeko.sh: Likewise.
66941         * tests/test-ftello.c (main): Likewise.
66942         * tests/test-ftello.sh: Likewise.
66943         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66944         implies replacing fseek.
66945         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66946         HAVE_FTELLO.
66947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66948         * modules/unistd (Makefile.am): Likewise.
66949         * lib/unistd_.h (lseek): Declare a replacement.
66950         * doc/functions/lseek.texi (lseek): Document this fix.
66951         * doc/functions/fseek.texi (fseek): Likewise.
66952         * doc/functions/ftell.texi (ftell): Likewise.
66953
66954 2007-05-24  Bruno Haible  <bruno@clisp.org>
66955
66956         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66957         in the printed representation of a NaN.
66958         * tests/test-vasprintf-posix.c (test_function): Likewise.
66959         * tests/test-snprintf-posix.h (test_function): Likewise.
66960         * tests/test-sprintf-posix.h (test_function): Likewise.
66961         Reported by Eric Blake.
66962
66963 2007-05-23  Eric Blake  <ebb9@byu.net>
66964
66965         Fix fseeko/ftello on cygwin 1.5.24.
66966         * doc/functions/fseeko.texi (fseeko): Document the fix.
66967         * doc/functions/ftello.texi (ftello): Document the fix.
66968         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66969         * doc/functions/stdout.text (stdout): New file.
66970         * doc/functions/stderr.text (stderr): New file.
66971         * doc/gnulib.texi (Function Substitutes): Use new files.
66972         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66973         prior to 1.7.0.
66974         * tests/test-ftello.c (main): Likewise for ftello.
66975         * tests/test-fseeko.sh: New file.
66976         * tests/test-ftello.sh: New file.
66977         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66978         with seekable stdin.
66979         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66980         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66981         (gl_REPLACE_FSEEKO): New macro.
66982         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66983         * modules/fseeko (Files): Distribute fseeko.c.
66984         * modules/ftello (Files): Distribute ftello.c.
66985         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66986         mode.
66987         * lib/ftello.c (rpl_ftello): New file.
66988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66989         fseeko, ftello.
66990         (gl_STDIN_LARGE_OFFSET): New macro.
66991         * modules/stdio (Makefile.am): Perform the replacement.
66992         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66993
66994 2007-05-23  Bruno Haible  <bruno@clisp.org>
66995
66996         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66997         GNULIB_POSIXCHECK is defined.
66998
66999 2007-05-21  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67002         Check also the output for NaN arguments. When cross-compiling, guess
67003         no on IRIX.
67004         * lib/vasnprintf.c: Update comments.
67005         * tests/test-vasnprintf-posix.c (strisnan): New function.
67006         (test_function): Use it.
67007         * tests/test-vasprintf-posix.c (strisnan): New function.
67008         (test_function): Use it.
67009         * tests/test-snprintf-posix.h (strisnan): New function.
67010         (test_function): Use it.
67011         * tests/test-sprintf-posix.h (strisnan): New function.
67012         (test_function): Use it.
67013         Reported by Eric Blake.
67014
67015 2007-05-20  Bruno Haible  <bruno@clisp.org>
67016
67017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67018         numbers that fails on BeOS.
67019         * doc/functions/frexpl.texi: Update.
67020
67021 2007-05-20  Jim Meyering  <jim@meyering.net>
67022
67023         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67024         forced upon us by glibc-2.6.
67025
67026 2007-05-20  Bruno Haible  <bruno@clisp.org>
67027
67028         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67029         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67030         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67031         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67032         NEED_PRINTF_INFINITE.
67033         (is_infinitel): New function.
67034         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67036         gl_PREREQ_VASNPRINTF_INFINITE.
67037         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67038         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67039         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67040         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67041         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67042         gl_PREREQ_VASNPRINTF_INFINITE.
67043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67044         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67045         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67047         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67048         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67049         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67050         * doc/functions/fprintf.texi: Update.
67051         * doc/functions/printf.texi: Update.
67052         * doc/functions/snprintf.texi: Update.
67053         * doc/functions/sprintf.texi: Update.
67054         * doc/functions/vfprintf.texi: Update.
67055         * doc/functions/vprintf.texi: Update.
67056         * doc/functions/vsnprintf.texi: Update.
67057         * doc/functions/vsprintf.texi: Update.
67058
67059 2007-05-20  Bruno Haible  <bruno@clisp.org>
67060
67061         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67062         was not found in libc.
67063         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67064
67065 2007-05-20  Bruno Haible  <bruno@clisp.org>
67066
67067         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67068         printed as "-nan" instead of "nan".
67069         * tests/test-vasprintf-posix.c (test_function): Likewise.
67070         * tests/test-snprintf-posix.h (test_function): Likewise.
67071         * tests/test-sprintf-posix.h (test_function): Likewise.
67072         Needed for HP-UX 11.
67073
67074 2007-05-20  Jim Meyering  <jim@meyering.net>
67075
67076         Fix buggy test for the fchownat-deref bug.
67077         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67078         symlink required for the run-test.  Without it, this test would
67079         always declare that fchownat doesn't work, and client code would
67080         unnecessarily use the replacement function with fixed libc.
67081         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67082         Reported by Greg Schafer.
67083
67084 2007-05-19  Bruno Haible  <bruno@clisp.org>
67085
67086         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67087         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67088         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67089         Needed for IRIX 6.5 and Solaris 2.5.1.
67090
67091 2007-05-19  Bruno Haible  <bruno@clisp.org>
67092
67093         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67094         (test_function): Skip tests involving -0.0 on platforms where
67095         -0.0 = 0.0.
67096         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67097         (test_function): Skip tests involving -0.0 on platforms where
67098         -0.0 = 0.0.
67099         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67100         (test_function): Skip tests involving -0.0 on platforms where
67101         -0.0 = 0.0.
67102         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67103         (test_function): Skip tests involving -0.0 on platforms where
67104         -0.0 = 0.0.
67105         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67106         tests.
67107         * tests/test-printf-posix.h (test_function): Likewise.
67108         * tests/test-printf-posix.output: Remove all -0.0 related results.
67109         Needed for IRIX 6.5.
67110
67111 2007-05-19  Bruno Haible  <bruno@clisp.org>
67112
67113         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67114         printed as "nan0x7fffffff" instead of "nan".
67115         * tests/test-vasprintf-posix.c (test_function): Likewise.
67116         * tests/test-snprintf-posix.h (test_function): Likewise.
67117         * tests/test-sprintf-posix.h (test_function): Likewise.
67118         * tests/test-fprintf-posix.h (NaN): Remove macro.
67119         (test_function): Remove all NaN related tests.
67120         * tests/test-printf-posix.h (NaN): Remove macro.
67121         (test_function): Remove all NaN related tests.
67122         * tests/test-printf-posix.output: Remove all NaN related results.
67123         Needed for IRIX 6.5.
67124
67125 2007-05-19  Bruno Haible  <bruno@clisp.org>
67126
67127         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67128         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67129
67130 2007-05-19  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/float_.h: New file.
67133         * m4/float_h.m4: New file.
67134         * modules/float: New file.
67135         * modules/isnanl (Dependencies): Add float.
67136         * modules/isnanl-nolibm (Dependencies): Likewise.
67137         * modules/mathl (Dependencies): Likewise.
67138         * modules/printf-frexpl (Dependencies): Likewise.
67139         * modules/signbit (Dependencies): Likewise.
67140         * modules/vasnprintf (Dependencies): Likewise.
67141         * doc/headers/float.texi: Update.
67142
67143 2007-05-19  Jim Meyering  <jim@meyering.net>
67144
67145         * lib/utimens.c (gl_futimens): Rename from futimens,
67146         now that glibc-2.6 declares futimens.
67147         * lib/utimens.h: Likewise.
67148
67149 2007-05-19  Bruno Haible  <bruno@clisp.org>
67150
67151         Avoid test failures on mingw.
67152         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67153         * tests/test-printf-posix.sh: Likewise.
67154         * tests/test-vfprintf-posix.sh: Likewise.
67155         * tests/test-vprintf-posix.sh: Likewise.
67156
67157 2007-05-19  Bruno Haible  <bruno@clisp.org>
67158
67159         Fix *printf result for NaN, Inf, -0.0 on mingw.
67160         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67161         * lib/vasnprintf.c: Include math.h and isnan.h.
67162         (is_infinite_or_zero): New function.
67163         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67164         values in the %f, %F, %e, %E, %g, %G directives.
67165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67167         gl_PRINTF_INFINITE and test its result. Invoke
67168         gl_PREREQ_VASNPRINTF_INFINITE.
67169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67170         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67176         * doc/functions/fprintf.texi: Update.
67177         * doc/functions/printf.texi: Update.
67178         * doc/functions/snprintf.texi: Update.
67179         * doc/functions/sprintf.texi: Update.
67180         * doc/functions/vfprintf.texi: Update.
67181         * doc/functions/vprintf.texi: Update.
67182         * doc/functions/vsnprintf.texi: Update.
67183         * doc/functions/vsprintf.texi: Update.
67184
67185 2007-05-19  Bruno Haible  <bruno@clisp.org>
67186
67187         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67188         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67189         Instead of multiplying with 10^k, set extra_zeroes to k.
67190         (scale10_round_long_double): Remove function.
67191
67192 2007-05-18  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67195         introduced on 2007-05-06.
67196
67197 2007-05-18  Bruno Haible  <bruno@clisp.org>
67198
67199         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67200         %g directives.
67201         * tests/test-vasprintf-posix.c (test_function): Likewise.
67202         * tests/test-snprintf-posix.h (test_function): Likewise.
67203         * tests/test-sprintf-posix.h (test_function): Likewise.
67204
67205 2007-05-18  Bruno Haible  <bruno@clisp.org>
67206
67207         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67208         (strmatch): New function.
67209         (test_function): Test the %f directive on numbers of various exponents.
67210         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67211         (strmatch): New function.
67212         (test_function): Test the %f directive on numbers of various exponents.
67213         * tests/test-snprintf-posix.h (strmatch): New function.
67214         (test_function): Test the %f directive on numbers of various exponents.
67215         * tests/test-sprintf-posix.h (strmatch): New function.
67216         (test_function): Test the %f directive on numbers of various exponents.
67217         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67218         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67219         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67220         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67221
67222 2007-05-18  Bruno Haible  <bruno@clisp.org>
67223
67224         Add support for 'long double' number output.
67225         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67226         * lib/vasnprintf.c: Include math.h and float+.h.
67227         (mp_limb_t): New type.
67228         (GMP_LIMB_BITS): New macro.
67229         (mp_twolimb_t): New type.
67230         (GMP_TWOLIMB_BITS): New macro.
67231         (mpn_t): New type.
67232         (multiply, divide, convert_to_decimal, decode_long_double,
67233         scale10_round_long_double, scale10_round_decimal_long_double,
67234         floorlog10l): New functions.
67235         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67236         for the %f, %F, %e, %E, %g, %G directives.
67237         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67239         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67240         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67248         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67249         * modules/snprintf-posix (Depends-on): Likewise.
67250         * modules/sprintf-posix (Depends-on): Likewise.
67251         * modules/vasnprintf-posix (Depends-on): Likewise.
67252         * modules/vasprintf-posix (Depends-on): Likewise.
67253         * modules/vfprintf-posix (Depends-on): Likewise.
67254         * modules/vsnprintf-posix (Depends-on): Likewise.
67255         * modules/vsprintf-posix (Depends-on): Likewise.
67256         * modules/vasnprintf (Files): Add lib/float+.h.
67257         * doc/functions/fprintf.texi: Update.
67258         * doc/functions/printf.texi: Update.
67259         * doc/functions/snprintf.texi: Update.
67260         * doc/functions/sprintf.texi: Update.
67261         * doc/functions/vfprintf.texi: Update.
67262         * doc/functions/vprintf.texi: Update.
67263         * doc/functions/vsnprintf.texi: Update.
67264         * doc/functions/vsprintf.texi: Update.
67265
67266 2007-05-18  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67269
67270 2007-05-18  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67273         for printing 64-bit integers. Needed for mingw.
67274
67275 2007-05-18  Bruno Haible  <bruno@clisp.org>
67276
67277         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67278         gl_FUNC_FREXPL_WORKS.
67279         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67280
67281 2007-05-18  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/frexpl-nolibm-tests: New file.
67284
67285         * modules/frexpl-nolibm: New file.
67286         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67287
67288 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67291         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67292         GCC 4.2, which otherwise issues a lot of warnings.
67293         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67294         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67295         Likewise.
67296         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67297         * modules/iconv_open (iconv.h): Likewise.
67298         * modules/locale (locale.h): Likewise.
67299         * modules/netinet_in (netinet/in.h): Likewise.
67300         * modules/sys_select (sys_select.h): Likewise.
67301         * modules/sys_socket (sys/socket.h): Likewise.
67302         * modules/sys_stat (sys/stat.h): Likewise.
67303         * modules/sysexits (sysexits.h): Likewise.
67304         * modules/unistd (unistd.h): Likewise.
67305
67306 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67307
67308         * modules/closein-tests (Makefile.am): Distribute
67309         `test-closein.sh'.
67310
67311 2007-05-17  Bruno Haible  <bruno@clisp.org>
67312
67313         * tests/test-printf-posix.output: Renamed from
67314         tests/test-fprintf-posix.out.
67315         * modules/fprintf-posix-tests: Update.
67316         * modules/printf-posix-tests: Update.
67317         * modules/vfprintf-posix-tests: Update.
67318         * modules/vprintf-posix-tests: Update.
67319         * tests/test-fprintf-posix.sh: Update.
67320         * tests/test-printf-posix.sh: Update.
67321         * tests/test-vfprintf-posix.sh: Update.
67322         * tests/test-vprintf-posix.sh: Update.
67323         Reported by Ralf Wildenhues.
67324
67325 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67328         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67329         GCC 4.2, which otherwise issues a lot of warnings.
67330         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67331         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67332         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67333         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67334         it should no longer be needed.
67335         * lib/string_.h: Likewise.
67336         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67337         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67338         * modules/inttypes (inttypes.h): Likewise.
67339         * modules/math (math.h): Likewise.
67340         * modules/search (search.h): Likewise.
67341         * modules/signal (signal.h): Likewise.
67342         * modules/stdint (stdint.h): Likewise.
67343         * modules/stdio (stdio.h): Likewise.
67344         * modules/stdlib (stdlib.h): Likewise.
67345         * modules/string (string.h): Likewise.
67346         * modules/sys_time (sys/time.h): Likewise.
67347         * modules/time (time.h): Likewise.
67348         * modules/wchar (wchar.h): Likewise.
67349         * modules/wctype (wtype.h): Likewise.
67350
67351 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67352
67353         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67354
67355 2007-05-13  Bruno Haible  <bruno@clisp.org>
67356
67357         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67358         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67359         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67360         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67361         (gl_PREREQ_STRTOK_R): Don't require it here.
67362
67363 2007-05-13  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67366         when used in C++ mode.
67367
67368 2007-05-12  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/linebuffer.h: Tweak doc.
67371         * lib/linebuffer.c: Likewise.
67372
67373 2007-05-12  James Youngman  <jay@gnu.org>
67374
67375         * lib/linebuffer.c (readlinebuffer_delim): New function,
67376         like readlinebuffer, but use a caller-specified delimiter.
67377         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67378         as the delimiter.
67379         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67380
67381 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67382
67383         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67384         * modules/openat (Files): Remove openat-die.c.
67385         (Depends-on): Add openat-die.
67386         * modules/openat-die: New module.
67387
67388 2007-05-06  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67391         Update with info about Cygwin.
67392         * doc/functions/fprintf.texi: Update.
67393         * doc/functions/printf.texi: Update.
67394         * doc/functions/snprintf.texi: Update.
67395         * doc/functions/sprintf.texi: Update.
67396         * doc/functions/vfprintf.texi: Update.
67397         * doc/functions/vprintf.texi: Update.
67398         * doc/functions/vsnprintf.texi: Update.
67399         * doc/functions/vsprintf.texi: Update.
67400         Reported by Eric Blake.
67401
67402 2007-05-06  Bruno Haible  <bruno@clisp.org>
67403
67404         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67405         padding ourselves for the floating-point directives.
67406         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67409         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67410         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67411         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67418         * tests/test-snprintf-posix.h (test_function): Also check the width
67419         and some flags in the %f directive.
67420         * tests/test-sprintf-posix.h (test_function): Likewise.
67421         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67422         * tests/test-vasprintf-posix.c (test_function): Likewise.
67423         * doc/functions/fprintf.texi: Update.
67424         * doc/functions/printf.texi: Update.
67425         * doc/functions/snprintf.texi: Update.
67426         * doc/functions/sprintf.texi: Update.
67427         * doc/functions/vfprintf.texi: Update.
67428         * doc/functions/vprintf.texi: Update.
67429         * doc/functions/vsnprintf.texi: Update.
67430         * doc/functions/vsprintf.texi: Update.
67431
67432 2007-05-06  Bruno Haible  <bruno@clisp.org>
67433
67434         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67435         pass the ' flag character to sprintf or snprintf.
67436         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67438         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67439         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67440         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67441         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67448         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67449         flag.
67450         * tests/test-sprintf-posix.h (test_function): Likewise.
67451         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67452         * tests/test-vasprintf-posix.c (test_function): Likewise.
67453         * doc/functions/fprintf.texi: Update.
67454         * doc/functions/printf.texi: Update.
67455         * doc/functions/snprintf.texi: Update.
67456         * doc/functions/sprintf.texi: Update.
67457         * doc/functions/vfprintf.texi: Update.
67458         * doc/functions/vprintf.texi: Update.
67459         * doc/functions/vsnprintf.texi: Update.
67460         * doc/functions/vsprintf.texi: Update.
67461
67462 2007-05-01  Bruno Haible  <bruno@clisp.org>
67463
67464         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67465
67466 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67469         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67470
67471 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67472
67473         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67474         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67476
67477 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67478
67479         * lib/argp-help.c (struct hol_entry): New member `ord'.
67480         (HOL_ENTRY_PTRCMP): Use ord for comparison
67481         (hol_sort): Initialize ord.
67482
67483 2007-05-01  Bruno Haible  <bruno@clisp.org>
67484
67485         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67486         Reported by Eric Blake.
67487         * doc/gnulib.texi (Function Substitutes): Update.
67488
67489 2007-05-01  Bruno Haible  <bruno@clisp.org>
67490
67491         * doc/functions.texi: Remove file, now redundant through
67492         doc/functions/*.texi.
67493
67494 2007-05-01  Bruno Haible  <bruno@clisp.org>
67495
67496         * modules/argp (Depends-on): Add sleep.
67497
67498 2007-05-01  Bruno Haible  <bruno@clisp.org>
67499
67500         * modules/sleep-tests: New file.
67501         * tests/test-sleep.c: New file.
67502
67503         * modules/sleep: New file.
67504         * lib/sleep.c: New file.
67505         * m4/sleep.m4: New file.
67506         * lib/unistd_.h (sleep): New declaration.
67507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67508         HAVE_SLEEP.
67509         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67510         * doc/functions/sleep.texi: Document the sleep module.
67511
67512 2007-05-01  Bruno Haible  <bruno@clisp.org>
67513
67514         * lib/sigprocmask.h: Remove file.
67515         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67516         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67517         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67518         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67519         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67520         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67521         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67522         HAVE_SIGSET_T as a shell variable.
67523         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67524         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67525         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67526         (Depends-on): Add signal. Remove verify.
67527         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67528         (Include): Mention <signal.h> instead of sigprocmask.h.
67529         * NEWS: Mention the change.
67530         * lib/fatal-signal.c: Don't include sigprocmask.h.
67531
67532 2007-05-01  Bruno Haible  <bruno@clisp.org>
67533
67534         * modules/signal: New file.
67535         * lib/signal_.h: New file.
67536         * m4/signal_h.m4: New file.
67537
67538 2007-05-01  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67541         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67542         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67543         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67544
67545 2007-05-01  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67548         configure time.
67549         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67550         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67551         * modules/sys_stat (Makefile.am): Substitute their values into
67552         sys/stat.h.
67553
67554 2007-05-01  Bruno Haible  <bruno@clisp.org>
67555
67556         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67557         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67558         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67559
67560 2007-05-01  Bruno Haible  <bruno@clisp.org>
67561
67562         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67563         'assert' module here.
67564
67565 2007-05-01  Bruno Haible  <bruno@clisp.org>
67566
67567         * doc/functions/*.texi: New files.
67568         * doc/functions/google-ranking.txt: New file.
67569         * doc/gnulib.texi (Function Substitutes): New chapter.
67570         (ctime, inet_ntoa): Remove sections.
67571         * doc/ctime.texi: Remove file.
67572         * doc/inet_ntoa.texi: Remove file.
67573         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67574         dependencies.
67575         (%.info): New rule, specifying a --reference-limit.
67576
67577 2007-05-01  Bruno Haible  <bruno@clisp.org>
67578
67579         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67580
67581 2007-05-01  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67584         the portability of 'mkdir' to mingw systems.
67585
67586 2007-05-01  Bruno Haible  <bruno@clisp.org>
67587
67588         * doc/headers/google-ranking.txt: New file.
67589
67590 2007-04-30  Eric Blake  <ebb9@byu.net>
67591
67592         Prefer fseeko to fseek.
67593         * modules/getpass (Depends-on): Add fseeko.
67594         * lib/getpass.c (getpass): Use fseeko, not fseek.
67595
67596 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67599         assumes the sorting is stable, while most qsort implementations
67600         are not.  Use argument addresses to ensure they never compare as
67601         equal.
67602
67603         * tests/test-argp-2.sh (usage-indent test): Fix output
67604         (func_compare): Restore diff options
67605         * tests/test-argp.c: Restore #include "progname.h"
67606
67607 2007-04-29  Bruno Haible  <bruno@clisp.org>
67608
67609         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67611         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67612         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67613         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67614         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67615         (TESTS, check_PROGRAMS): Add test-snprintf.
67616         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67617         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67618         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67619         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67620         assertions that fail on HP-UX, OSF/1, or IRIX.
67621         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67622
67623 2007-04-29  Bruno Haible  <bruno@clisp.org>
67624
67625         * MODULES.html.sh (posix_functions): Remove 'contents'.
67626
67627 2007-04-29  Karl Berry  <karl@gnu.org>
67628
67629         * config/srclist.txt (gendocs_template_min): new entry.
67630
67631 2007-04-29  Bruno Haible  <bruno@clisp.org>
67632
67633         Work around fpurge bug on BSD systems.
67634         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67636         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67637         fpurge to rpl_fpurge if the system already has this function.
67638         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67639         the case where the system already has this function. Correct invariants
67640         on BSD systems.
67641         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67642         BSD systems.
67643
67644 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67645
67646         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67647         proposed by Sven Verdoolaege.
67648
67649         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67650         options.
67651         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67652         (usage and help tests): Update
67653
67654 2007-04-29  Bruno Haible  <bruno@clisp.org>
67655
67656         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67657         Print more information in case of failure. Disable a test on BeOS.
67658
67659 2007-04-29  Bruno Haible  <bruno@clisp.org>
67660
67661         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67662         This helps debugging on systems on which no gdb is available.
67663
67664 2007-04-29  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/freading.h: Improve comments.
67667         * lib/fwriting.h: Likewise.
67668         * tests/test-freading.c (main): Don't check freading immediately after
67669         repositioning. Needed for glibc.
67670
67671 2007-04-29  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/freading.c (freading): Trivial simplification.
67674
67675 2007-04-28  Bruno Haible  <bruno@clisp.org>
67676
67677         * tests/test-fwriting.c (main): Also test the interaction between
67678         fflush and fwriting.
67679         * modules/fwriting-tests (Depends-on): Add fflush.
67680
67681         * tests/test-freading.c (main): Also test the interaction between
67682         fflush and freading.
67683         * modules/freading-tests (Depends-on): Add fflush.
67684
67685 2007-04-28  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67688         fseeko and ftello.
67689         Suggested by Eric Blake.
67690
67691 2007-04-28  Jim Meyering  <jim@meyering.net>
67692
67693         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67694         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67695         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67696
67697 2007-04-27  Eric Blake  <ebb9@byu.net>
67698
67699         * doc/headers/assert.texi (assert.h): Document assert module use.
67700
67701 2007-04-27  Bruno Haible  <bruno@clisp.org>
67702
67703         * doc/headers/*.texi: New files.
67704         * doc/gnulib.texi (Header File Substitutes): New chapter.
67705         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67706         dependencies.
67707         (standards.info ,standards.html, standards.dvi): Update dependencies.
67708         (mostlyclean, clean): New targets.
67709
67710 2007-04-27  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67713         * modules/sysexits (Files, Makefile.am): Update.
67714
67715         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67716         * modules/sys_socket (Files, Makefile.am): Update.
67717
67718         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67719         * modules/sys_stat (Files, Makefile.am): Update.
67720
67721 2007-04-27  Eric Blake  <ebb9@byu.net>
67722
67723         * lib/freading.h: Improve comments.
67724         * lib/fwriting.h: Likewise.
67725         * lib/fflush.c: Likewise.
67726
67727         Fix closein for mingw.
67728         * modules/closein-tests: Add tests for closein.
67729         * tests/test-closein.c: New file.
67730         * tests/test-closein.sh: Likewise.
67731         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67732         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67733
67734 2007-04-27  Bruno Haible  <bruno@clisp.org>
67735
67736         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67737         version is < 6.
67738         * lib/math_.h [__DECC]: Likewise.
67739         * lib/stdio_.h [__DECC]: Likewise.
67740         * lib/stdlib_.h [__DECC]: Likewise.
67741         * lib/string_.h [__DECC]: Likewise.
67742         * lib/time_.h [__DECC]: Likewise.
67743         * lib/wchar_.h [__DECC]: Likewise.
67744         * lib/wctype_.h [__DECC]: Likewise.
67745
67746 2007-04-27  Bruno Haible  <bruno@clisp.org>
67747
67748         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67749
67750 2007-04-27  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/fflush.c: Add comments.
67753         * modules/fpurge-tests (Depends-on): Add fflush.
67754         * modules/freadable-tests (Depends-on): Likewise.
67755         * modules/fwritable-tests (Depends-on): Likewise.
67756
67757 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67758
67759         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67760         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67761         Report by Bruno Haible <bruno@clisp.org>.
67762
67763 2007-04-26  Eric Blake  <ebb9@byu.net>
67764
67765         Fix fflush on mingw.
67766         * modules/fflush (Depends-on): Add freading.
67767         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67768         but unread data.
67769
67770 2007-04-26  Eric Blake  <ebb9@byu.net>
67771         and Bruno Haible  <bruno@clisp.org>
67772
67773         Implement freading and fwriting.
67774         * lib/freading.c: New file.
67775         * lib/freading.h: Likewise.
67776         * m4/freading.m4: Likewise.
67777         * modules/freading: Likewise.
67778         * modules/freading-tests: Likewise.
67779         * tests/test-freading.c: Likewise.
67780         * lib/fwriting.c: New file.
67781         * lib/fwriting.h: Likewise.
67782         * m4/fwriting.m4: Likewise.
67783         * modules/fwriting: Likewise.
67784         * modules/fwriting-tests: Likewise.
67785         * tests/test-fwriting.c: Likewise.
67786         * MODULES.html.sh (File stream based Input/Output): Mention them.
67787
67788 2007-04-26  Bruno Haible  <bruno@clisp.org>
67789
67790         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67791         'long' when we assume it.
67792         Suggested by Eric Blake.
67793
67794 2007-04-26  Bruno Haible  <bruno@clisp.org>
67795
67796         Ensure fseeko, ftello are declared on glibc systems.
67797         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67798         * modules/fseeko (configure.ac-early): Likewise.
67799         * modules/ftello (configure.ac-early): Likewise.
67800         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67801         AC_FUNC_FSEEKO for this.
67802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67803         (gl_CHECK_FSEEKO): Remove macro.
67804
67805 2007-04-26  Bruno Haible  <bruno@clisp.org>
67806
67807         * tests/test-fflush.c (main): Also check the ftell result after
67808         fflush and fseek/fseeko.
67809         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67810         file descriptor position cache in the stream.
67811         * lib/fseeko.c (rpl_fseeko): Likewise.
67812
67813 2007-04-26  Bruno Haible  <bruno@clisp.org>
67814
67815         * modules/fflush-tests (Depends-on): Add fseeko.
67816
67817 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67818             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67819
67820         * lib/argz_.h: ensure error_t definition is obtained in same
67821         mechanism system argz.h would have.
67822         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67823         argz facilities are known bad.  Err on the side of caution if
67824         cross-compiling.
67825
67826 2007-04-25  Eric Blake  <ebb9@byu.net>
67827
67828         * lib/fpurge.c (includes): Use stdlib.h for free.
67829         * tests/test-fflush.c (main): Also test fflush-fseeko.
67830
67831 2007-04-25  Bruno Haible  <bruno@clisp.org>
67832
67833         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67834         * lib/fseeko.c: New file.
67835         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67836         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67837         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67838         gl_FUNC_FSEEKO.
67839         (gl_FUNC_FSEEKO): Invoke it.
67840         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67841         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67842         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67843
67844 2007-04-25  Bruno Haible  <bruno@clisp.org>
67845
67846         * modules/fflush (Depends-on): Add ftello.
67847
67848 2007-04-25  Bruno Haible  <bruno@clisp.org>
67849
67850         * modules/ftello-tests: New file.
67851         * tests/test-ftello.c: New file.
67852
67853         * modules/ftello: New file.
67854         * m4/ftello.m4: New file.
67855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67856         HAVE_FTELLO.
67857         * lib/stdio_.h (ftello): New declaration.
67858         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67859         HAVE_FTELLO.
67860
67861 2007-04-25  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/fseeko-tests: New file.
67864         * tests/test-fseeko.c: New file.
67865
67866         * modules/fseeko: New file.
67867         * m4/fseeko.m4: New file.
67868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67869         HAVE_FSEEKO.
67870         * lib/stdio_.h (fseeko): New declaration.
67871         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67872         HAVE_FSEEKO.
67873
67874 2007-04-25  Bruno Haible  <bruno@clisp.org>
67875
67876         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67877
67878 2007-04-25  Bruno Haible  <bruno@clisp.org>
67879
67880         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67881         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67882         * tests/test-unistd.c: Likewise.
67883         * tests/test-fcntl.c: Likewise.
67884
67885 2007-04-23  Eric Blake  <ebb9@byu.net>
67886
67887         * lib/fflush.c: Fix missing include.
67888         Reported by Bruno Haible.
67889
67890 2007-04-23  Bruno Haible  <bruno@clisp.org>
67891
67892         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67893         Reported by Eric Blake.
67894
67895 2007-04-23  Bruno Haible  <bruno@clisp.org>
67896
67897         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67898
67899 2007-04-23  Bruno Haible  <bruno@clisp.org>
67900
67901         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67902
67903 2007-04-23  Bruno Haible  <bruno@clisp.org>
67904
67905         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67906         Needed on HP-UX 11.
67907
67908 2007-04-16  Eric Blake  <ebb9@byu.net>
67909
67910         Make fflush rely on fpurge.
67911         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67912         open coding all variants.
67913         * modules/fflush (Depends-on): Add fpurge and unistd.
67914         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67915         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67916
67917         Fix --with-tests compilation on cygwin.
67918         * modules/argmatch-tests (Makefile.am): List gnulib library first
67919         in LDADD.
67920         * modules/argp-tests (Makefile.am): Likewise.
67921         * modules/array-list-tests (Makefile.am): Likewise.
67922         * modules/array-oset-tests (Makefile.am): Likewise.
67923         * modules/avltree-list-tests (Makefile.am): Likewise.
67924         * modules/avltree-oset-tests (Makefile.am): Likewise.
67925         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67926         * modules/carray-list-tests (Makefile.am): Likewise.
67927         * modules/dirname-tests (Makefile.am): Likewise.
67928         * modules/frexp-tests (Makefile.am): Likewise.
67929         * modules/isnanl-tests (Makefile.am): Likewise.
67930         * modules/linked-list-tests (Makefile.am): Likewise.
67931         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67932         * modules/lock-tests (Makefile.am): Likewise.
67933         * modules/rbtree-list-tests (Makefile.am): Likewise.
67934         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67935         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67936         * modules/tls-tests (Makefile.am): Likewise.
67937         * modules/tsearch-tests (Makefile.am): Likewise.
67938         * modules/xvasprintf-tests (Makefile.am): Likewise.
67939
67940         Fix fpurge for cygwin.
67941         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67942         value.
67943         * modules/fpurge-tests (Depends-on): Clean up trash.
67944
67945 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67946
67947         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67948
67949         * m4/autobuild.m4: Re-indent.
67950
67951 2007-04-13  Bruno Haible  <bruno@clisp.org>
67952
67953         * modules/fpurge-tests: New file.
67954         * tests/test-fpurge.c: New file.
67955
67956         * modules/fpurge: New file.
67957         * lib/fpurge.h: New file.
67958         * lib/fpurge.c: New file.
67959         * m4/fpurge.m4: New file.
67960
67961 2007-04-13  Bruno Haible  <bruno@clisp.org>
67962
67963         * modules/fbufmode-tests: New file.
67964         * tests/test-fbufmode.c: New file.
67965
67966         * modules/fbufmode: New file.
67967         * lib/fbufmode.h: New file.
67968         * lib/fbufmode.c: New file.
67969         * m4/fbufmode.m4: New file.
67970
67971 2007-04-13  Bruno Haible  <bruno@clisp.org>
67972
67973         * modules/fwritable-tests: New file.
67974         * tests/test-fwritable.c: New file.
67975
67976         * modules/fwritable: New file.
67977         * lib/fwritable.h: New file.
67978         * lib/fwritable.c: New file.
67979         * m4/fwritable.m4: New file.
67980
67981 2007-04-13  Bruno Haible  <bruno@clisp.org>
67982
67983         * modules/freadable-tests: New file.
67984         * tests/test-freadable.c: New file.
67985
67986         * modules/freadable: New file.
67987         * lib/freadable.h: New file.
67988         * lib/freadable.c: New file.
67989         * m4/freadable.m4: New file.
67990
67991 2007-04-13  Bruno Haible  <bruno@clisp.org>
67992
67993         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67994         MOSTLYCLEANFILES.
67995
67996 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67999         gzip bootstrap.conf to avoid dragging in i18n machinery.
68000         (gnulib_tool_option): Use it.
68001
68002 2007-04-13  Bruno Haible  <bruno@clisp.org>
68003
68004         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68005         %F directives.
68006         * tests/test-vasprintf-posix.c (test_function): Likewise.
68007         * tests/test-snprintf-posix.h (test_function): Likewise.
68008         * tests/test-sprintf-posix.h (test_function): Likewise.
68009         * tests/test-fprintf-posix.h (test_function): Likewise.
68010         * tests/test-printf-posix.h (test_function): Likewise.
68011         * tests/test-fprintf-posix.out: Likewise.
68012
68013 2007-04-13  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68016         * modules/tls-tests (configure.ac): Likewise.
68017         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68018
68019 2007-04-13  Bruno Haible  <bruno@clisp.org>
68020
68021         * lib/tls.c (glthread_tls_get): Fix return type.
68022         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68023
68024 2007-04-12  Eric Blake  <ebb9@byu.net>
68025
68026         * modules/gettime (Depends-on): Remove gettime.
68027         Reported by Dmitry V. Levin.
68028
68029 2007-04-12  Bruno Haible  <bruno@clisp.org>
68030
68031         * modules/fflush (Include): Mention <stdio.h>.
68032         * modules/strtoimax (Include): Mention <inttypes.h>.
68033         * modules/strtoumax (Include): Likewise.
68034
68035 2007-04-12  Eric Blake  <ebb9@byu.net>
68036
68037         * .cvsignore: New file.
68038         * .gitignore: Likewise.
68039
68040 2007-04-12  Bruno Haible  <bruno@clisp.org>
68041
68042         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68043         not before, since $(LDADD) often contains libgnu.a.
68044         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68045         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68046         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68047         Needed on Cygwin.
68048
68049 2007-04-12  Eric Blake  <ebb9@byu.net>
68050
68051         Work around glibc's failure to flush stdin on fclose.
68052         * lib/closein.c (close_stdin): Flush stdin before closing.
68053
68054         Work around glibc's failure to reset seekable stdin on exit.
68055         * modules/closein: New module.
68056         * lib/closein.c: New file.
68057         * lib/closein.h: Likewise.
68058         * m4/closein.m4: Likewise.
68059         * MODULES.html.sh (File stream based Input/Output): Document it.
68060
68061 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68062
68063         * gnulib-tool: Rename generated 'autobuild' script to
68064         'do-autobuild' in --create-megatestdir output.
68065
68066         * doc/gnulib.texi (Build robot for gnulib): Fix.
68067
68068 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68069
68070         * modules/sysexits (Depends-on): Add absolute-header.
68071
68072 2007-04-12  Eric Blake  <ebb9@byu.net>
68073
68074         No need to preserve errno on success.
68075         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68076         Reported by Bruno Haible.
68077
68078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68079
68080         * MODULES.html.sh (Support for maintaining and releasing
68081         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68082
68083 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68084
68085         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68086
68087 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68088
68089         * modules/autobuild: New module.
68090
68091         * m4/autobuild.m4: New file.
68092
68093 2007-04-11  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68096         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68097         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68098         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68100         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68101         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68103         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68104         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68106         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68107         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68108         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68109         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68110         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68111         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68112         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68113         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68115         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68116         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68118         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68119         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68120         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68121         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68122         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68123         Reported by Eric Blake.
68124
68125 2007-04-11  Bruno Haible  <bruno@clisp.org>
68126
68127         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68128
68129 2007-04-10  Bruno Haible  <bruno@clisp.org>
68130
68131         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68132         for NaN and Infinity. Needed on FreeBSD 6.1.
68133         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68134         regarding results for "%010a" of Infinity and NaN.
68135         * tests/test-vasprintf-posix.c (test_function): Likewise.
68136         * tests/test-snprintf-posix.h (test_function): Likewise.
68137         * tests/test-sprintf-posix.h (test_function): Likewise.
68138         * tests/test-fprintf-posix.h (test_function): Likewise.
68139         * tests/test-printf-posix.h (test_function): Likewise.
68140         * tests/test-fprintf-posix.out: Likewise.
68141
68142 2007-04-10  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/locale-tests: New file.
68145         * tests/test-locale.c: New file.
68146
68147         * modules/locale: New file.
68148         * lib/locale_.h: New file.
68149         * m4/locale_h.m4: New file.
68150
68151 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68152             Bruno Haible  <bruno@clisp.org>
68153
68154         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68155         be determined, test for availability of the copysignf, copysign,
68156         copysignl functions.
68157         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68158         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68159         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68160
68161 2007-04-09  Eric Blake  <ebb9@byu.net>
68162
68163         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68164         * modules/stdio (Makefile.am): Support fflush.
68165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68166         * modules/fflush: New file.
68167         * lib/fflush.c: Likewise.
68168         * m4/fflush.m4: Likewise.
68169         * modules/fflush-tests: New test.
68170         * tests/test-fflush.c: Likewise.
68171         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68172
68173 2007-04-06  Bruno Haible  <bruno@clisp.org>
68174
68175         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68176         (VASNPRINTF): Use signbit for faster determination whether to print a
68177         minus sign.
68178         * modules/vasnprintf (Files): Remove lib/float+.h.
68179         * modules/fprintf-posix (Depends-on): Add signbit.
68180         * modules/snprintf-posix (Depends-on): Likewise.
68181         * modules/sprintf-posix (Depends-on): Likewise.
68182         * modules/vasnprintf-posix (Depends-on): Likewise.
68183         * modules/vasprintf-posix (Depends-on): Likewise.
68184         * modules/vfprintf-posix (Depends-on): Likewise.
68185         * modules/vsnprintf-posix (Depends-on): Likewise.
68186         * modules/vsprintf-posix (Depends-on): Likewise.
68187
68188 2007-04-06  Bruno Haible  <bruno@clisp.org>
68189
68190         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68191         * tests/test-frexpl.c (main): Likewise.
68192         * tests/test-ldexpl.c (main): Likewise.
68193         * modules/frexp-tests (Depends-on): Add signbit.
68194         * modules/frexpl-tests (Depdends-on): Likewise.
68195         * modules/ldexpl-tests (Depdends-on): Likewise.
68196
68197 2007-04-06  Bruno Haible  <bruno@clisp.org>
68198
68199         * modules/signbit-tests: New file.
68200         * tests/test-signbit.c: New file.
68201
68202         * modules/signbit: New file.
68203         * lib/signbitf.c: New file.
68204         * lib/signbitd.c: New file.
68205         * lib/signbitl.c: New file.
68206         * m4/signbit.m4: New file.
68207         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68208         (signbit): New macro.
68209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68210         REPLACE_SIGNBIT.
68211         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68212         REPLACE_FREXPL into math.h.
68213
68214 2007-04-06  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/isnanf-nolibm-tests: New file.
68217         * tests/test-isnanf.c: New file.
68218
68219         * modules/isnanf-nolibm: New file.
68220         * lib/isnanf.h: New file.
68221         * lib/isnanf.c: New file.
68222         * lib/isnan.c: Consider the USE_FLOAT macro.
68223         * m4/isnanf.m4: New file.
68224
68225 2007-04-06  Bruno Haible  <bruno@clisp.org>
68226
68227         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68228         (Link): New section.
68229
68230         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68231
68232 2007-04-06  Bruno Haible  <bruno@clisp.org>
68233
68234         Assume the 'long double' type.
68235         * m4/longdouble.m4: Remove file.
68236         * config/srclist.txt: Don't mention longdouble.m4.
68237         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68238         * lib/float+.h: Likewise.
68239         * lib/frexp.c: Likewise.
68240         * lib/printf-args.h: Likewise.
68241         * lib/printf-args.c: Likewise.
68242         * lib/printf-frexp.c: Likewise.
68243         * lib/printf-parse.c: Likewise.
68244         * lib/vasnprintf.c: Likewise.
68245         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68246         * m4/intl.m4: Likewise.
68247         * m4/isnanl.m4: Likewise.
68248         * m4/printf.m4: Likewise.
68249         * m4/printf-frexpl.m4: Likewise.
68250         * m4/vasnprintf.m4: Likewise.
68251         * modules/allocsa (Files): Remove m4/longdouble.m4.
68252         * modules/gettext (Files): Likewise.
68253         * modules/relocatable-prog-wrapper (Files): Likewise.
68254         * modules/vasnprintf (Files): Likewise.
68255         * modules/isnanl (Files): Likewise.
68256         (Include): Simplify.
68257         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68258         (Include): Simplify.
68259         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68260         (Include): Simplify.
68261         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68262         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68263         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68264         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68265         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68266         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68267         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68268         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68269         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68270         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68271         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68272         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68273         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68274         * tests/test-isnanl.c: Likewise.
68275         * tests/test-snprintf-posix.h: Likewise.
68276         * tests/test-sprintf-posix.h: Likewise.
68277         * tests/test-vasnprintf-posix.c: Likewise.
68278         * tests/test-vasnprintf-posix2.c: Likewise.
68279         * tests/test-vasprintf-posix.c: Likewise.
68280
68281 2007-04-06  Bruno Haible  <bruno@clisp.org>
68282
68283         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68284         * lib/math_.h [__DECC]: Include the overridden include file through
68285         #include_next, outside the double-inclusion guard.
68286         * lib/stdio_.h [__DECC]: Likewise.
68287         * lib/stdlib_.h [__DECC]: Likewise.
68288         * lib/string_.h [__DECC]: Likewise.
68289         * lib/time_.h [__DECC]: Likewise.
68290         * lib/wchar_.h [__DECC]: Likewise.
68291         * lib/wctype_.h [__DECC]: Likewise.
68292         * lib/inttypes_.h [__DECC]: Likewise.
68293         Reported by Albert Chin <china@thewrittenword.com> in
68294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68295
68296 2007-04-04  Eric Blake  <ebb9@byu.net>
68297
68298         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68299         1.5.x.
68300
68301 2007-04-04  Bruno Haible  <bruno@clisp.org>
68302
68303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68304         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68305
68306 2007-04-04  Bruno Haible  <bruno@clisp.org>
68307
68308         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68309         results for "%010a" of Infinity and NaN.
68310         * tests/test-vasprintf-posix.c (test_function): Likewise.
68311         * tests/test-snprintf-posix.h (test_function): Likewise.
68312         * tests/test-sprintf-posix.h (test_function): Likewise.
68313         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68314         * tests/test-printf-posix.h (test_function): Likewise.
68315         * tests/test-fprintf-posix.out: Update.
68316         Needed for FreeBSD 6.1.
68317
68318 2007-04-04  Bruno Haible  <bruno@clisp.org>
68319
68320         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68321         directly used by the gnulib modules nor by gnulib-tool.
68322
68323 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         * DEPENDENCIES: Give overall description of version dependency
68326         desirability.  Use more-typical names for apps.
68327         Add shell, coreutils, diffutils, grep, tar, gzip.
68328
68329 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68330
68331         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68332
68333 2007-04-04  Karl Berry  <karl@gnu.org>
68334
68335         * MODULES.html.sh (func_module): missing '.
68336
68337 2007-04-03  Bruno Haible  <bruno@clisp.org>
68338
68339         * modules/argmatch-tests (Makefile.am): New variable
68340         test_argmatch_LDADD.
68341         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68342         * modules/array-list-tests (Makefile.am): New variable
68343         test_array_list_LDADD.
68344         * modules/array-oset-tests (Makefile.am): New variable
68345         test_array_oset_LDADD.
68346         * modules/avltree-list-tests (Makefile.am): New variable
68347         test_avltree_list_LDADD.
68348         * modules/avltree-oset-tests (Makefile.am): New variable
68349         test_avltree_oset_LDADD.
68350         * modules/avltreehash-list-tests (Makefile.am): New variable
68351         test_avltreehash_list_LDADD.
68352         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68353         test_canonicalize_lgpl_LDADD.
68354         * modules/carray-list-tests (Makefile.am): New variable
68355         test_carray_list_LDADD.
68356         * modules/dirname-tests (Makefile.am): New variable
68357         test_dirname_LDADD.
68358         * modules/linked-list-tests (Makefile.am): New variable
68359         test_linked_list_LDADD.
68360         * modules/linkedhash-list-tests (Makefile.am): New variable
68361         test_linkedhash_list_LDADD.
68362         * modules/rbtree-list-tests (Makefile.am): New variable
68363         test_rbtree_list_LDADD.
68364         * modules/rbtree-oset-tests (Makefile.am): New variable
68365         test_rbtree_oset_LDADD.
68366         * modules/rbtreehash-list-tests (Makefile.am): New variable
68367         test_rbtreehash_list_LDADD.
68368         * modules/xvasprintf-tests (Makefile.am): New variable
68369         test_xvasprintf_LDADD.
68370         Reported by Eric Blake.
68371
68372 2007-04-03  Eric Blake  <ebb9@byu.net>
68373
68374         * DEPENDENCIES: Weaken m4 requirements.
68375
68376 2007-04-03  Bruno Haible  <bruno@clisp.org>
68377
68378         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68379         * modules/isnanl-tests (configure.ac): Likewise.
68380
68381 2007-04-03  Ben Pfaff  <blp@gnu.org>
68382
68383         * modules/iconv_open: Add $(srcdir)/ to source directory
68384         references in Makefile fragments that call gperf, to fix VPATH
68385         builds.
68386
68387 2007-04-03  Bruno Haible  <bruno@clisp.org>
68388
68389         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68390         * lib/ldexpl.c: Undo last change.
68391
68392 2007-04-03  Bruno Haible  <bruno@clisp.org>
68393
68394         * modules/printf-frexpl (Depends-on): Undo last change.
68395         (Files): Add m4/ldexpl.m4.
68396
68397 2007-04-03  Bruno Haible  <bruno@clisp.org>
68398
68399         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68400         * modules/isnanl (Link): New section.
68401
68402         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68403         * modules/frexp (Link): New section.
68404
68405         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68406         * modules/frexpl (Link): New section.
68407
68408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68409         * modules/ldexpl (Link): New section.
68410
68411 2007-04-03  Bruno Haible  <bruno@clisp.org>
68412
68413         * modules/TEMPLATE-EXTENDED: New file.
68414         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68415
68416 2007-04-03  Bruno Haible  <bruno@clisp.org>
68417
68418         * DEPENDENCIES: New file.
68419         Suggested by Simon Josefsson.
68420
68421 2007-04-03  Bruno Haible  <bruno@clisp.org>
68422
68423         * doc/gnulib.texi: Escape @.
68424
68425 2007-04-03  James Youngman  <jay@gnu.org>
68426         and Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68429         birthtime on all systems that have birthtime, not just those which
68430         use st_birthtimensec rather than st_birthtim.  Putting zero in
68431         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68432         that the birth time is not available for files on an NFS mount.
68433
68434 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68435
68436         * modules/memxor: Move back from crypto/, suggested by Bruno.
68437         * modules/crypto/hmac-sha1: Fix memxor dependency.
68438
68439         * modules/crypto/gc: Moved from ../.
68440
68441 2007-04-02  Eric Blake  <ebb9@byu.net>
68442
68443         * lib/ldexpl.c (includes): Avoid libm.
68444
68445         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68446
68447 2007-04-02  Bruno Haible  <bruno@clisp.org>
68448
68449         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68450         on IRIX.
68451
68452 2007-04-02  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68455         x86 or x86_64 platforms running MacOS X.
68456         Reported by Ryan Schmidt <@ryandesign.com>.
68457
68458 2007-04-02  Bruno Haible  <bruno@clisp.org>
68459
68460         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68461         i386.
68462
68463 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68464
68465         * modules/crypto/arcfour: Moved from ../.
68466         * modules/crypto/arcfour-tests: Moved from ../.
68467         * modules/crypto/arctwo: Moved from ../.
68468         * modules/crypto/arctwo-tests: Moved from ../.
68469         * modules/crypto/des: Moved from ../.
68470         * modules/crypto/des-tests: Moved from ../.
68471         * modules/crypto/gc-arcfour: Moved from ../.
68472         * modules/crypto/gc-arcfour-tests: Moved from ../.
68473         * modules/crypto/gc-arctwo: Moved from ../.
68474         * modules/crypto/gc-arctwo-tests: Moved from ../.
68475         * modules/crypto/gc-des: Moved from ../.
68476         * modules/crypto/gc-des-tests: Moved from ../.
68477         * modules/crypto/gc-hmac-md5: Moved from ../.
68478         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68479         * modules/crypto/gc-hmac-sha1: Moved from ../.
68480         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68481         * modules/crypto/gc-md2: Moved from ../.
68482         * modules/crypto/gc-md2-tests: Moved from ../.
68483         * modules/crypto/gc-md4: Moved from ../.
68484         * modules/crypto/gc-md4-tests: Moved from ../.
68485         * modules/crypto/gc-md5: Moved from ../.
68486         * modules/crypto/gc-md5-tests: Moved from ../.
68487         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68488         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68489         * modules/crypto/gc-random: Moved from ../.
68490         * modules/crypto/gc-rijndael: Moved from ../.
68491         * modules/crypto/gc-rijndael-tests: Moved from ../.
68492         * modules/crypto/gc-sha1: Moved from ../.
68493         * modules/crypto/gc-sha1-tests: Moved from ../.
68494         * modules/crypto/gc-tests: Moved from ../.
68495         * modules/crypto/hmac-md5: Moved from ../.
68496         * modules/crypto/hmac-md5-tests: Moved from ../.
68497         * modules/crypto/hmac-sha1: Moved from ../.
68498         * modules/crypto/hmac-sha1-tests: Moved from ../.
68499         * modules/crypto/md2: Moved from ../.
68500         * modules/crypto/md2-tests: Moved from ../.
68501         * modules/crypto/md4: Moved from ../.
68502         * modules/crypto/md4-tests: Moved from ../.
68503         * modules/crypto/md5: Moved from ../.
68504         * modules/crypto/md5-tests: Moved from ../.
68505         * modules/crypto/memxor: Moved from ../.
68506         * modules/crypto/rijndael: Moved from ../.
68507         * modules/crypto/rijndael-tests: Moved from ../.
68508         * modules/crypto/sha1: Moved from ../.
68509
68510 2007-03-30  James Youngman  <jay@gnu.org>
68511
68512         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68513         rename() to change the ctime of a file (because ctime is unaffected
68514         by rename on jfs2 on AIX 5.1).
68515         (main): Start by doing cleanup, in case a previous run failed leaving
68516         test files behind.
68517
68518 2007-03-31  Bruno Haible  <bruno@clisp.org>
68519
68520         Support old proprietary implementations of iconv.
68521         * modules/iconv_open: New file.
68522         * lib/iconv_.h: New file.
68523         * m4/iconv_h.m4: New file.
68524         * lib/iconv_open.c: New file.
68525         * lib/iconv_open-aix.gperf: New file.
68526         * lib/iconv_open-hpux.gperf: New file.
68527         * lib/iconv_open-irix.gperf: New file.
68528         * lib/iconv_open-osf.gperf: New file.
68529         * m4/iconv_open.m4: New file.
68530         * modules/linebreak (Depends-on): Add iconv_open.
68531         * modules/striconv (Depends-on): Likewise.
68532         * modules/striconveh (Depends-on): Likewise.
68533         * modules/unicodeio (Depends-on): Likewise.
68534         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68535         (iconv_t)(-1).
68536         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68537         conversion if cd is (iconv_t)(-1).
68538         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68539         is not possible.
68540
68541 2007-03-31  Bruno Haible  <bruno@clisp.org>
68542
68543         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68544         work on Solaris either. Protect also second use of "autodetect_jp".
68545
68546 2007-03-31  Bruno Haible  <bruno@clisp.org>
68547
68548         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68549         the function is not present.
68550
68551 2007-03-31  Bruno Haible  <bruno@clisp.org>
68552
68553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68554         the function is not present.
68555
68556 2007-03-31  Bruno Haible  <bruno@clisp.org>
68557
68558         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68559         a bug in HP-UX iconv_open().
68560
68561 2007-03-31  Bruno Haible  <bruno@clisp.org>
68562
68563         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68564         (Mathematics <math.h>): New section, add fpieee.
68565         (Input/output <stdio.h>): Add fseterr.
68566         (Mathematics <math.h>): New section, add printf-frexp.
68567         (Container data structures): Add sublist.
68568         (Core language properties): Add fpucw, inline.
68569         (Functions for greatest-width integer types <inttypes.h>): Add
68570         imaxabs, imaxdiv, inttypes.
68571         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68572         isnanl-nolibm, ldexp.
68573         (Mathematics <math.h>): New section, add printf-frexpl.
68574         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68575         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68576         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68577         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68578         (Unicode string functions): Add unistr/u*-mbtoucr.
68579         (Java): Add javacomp-script, javaexec-script.
68580         (C#): Add csharpcomp-script, csharpexec-script.
68581         (Support for building libraries and executables): Add havelib,
68582         relocatable-*.
68583         (Support for maintaining and releasing projects): Renamed from
68584         'Support for maintaining and release projects'. Add announce-gen.
68585
68586 2007-03-31  Bruno Haible  <bruno@clisp.org>
68587
68588         * README: Talk primarily about git.
68589         (git and CVS): Renamed from CVS.
68590         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68591         gnulib is available through git.
68592         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68593
68594 2007-03-30  Bruno Haible  <bruno@clisp.org>
68595
68596         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68597         * lib/poll_.h: Likewise.
68598         * lib/stat_.h: Likewise.
68599         * lib/sys_time_.h: Likewise.
68600         * lib/sysexit_.h: Likewise.
68601         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68602         * lib/stdbool_.h: Likewise.
68603         * lib/byteswap_.h: Add double-inclusion guard.
68604
68605 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68606
68607         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68608
68609 2007-03-30  Karl Berry  <karl@gnu.org>
68610
68611         * config/srclist-update: double space after USA in the license
68612         substitution, since that's how it's usually (?) written.
68613
68614 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68617         reported by Bruno Haible.
68618
68619 2007-03-29  Bruno Haible  <bruno@clisp.org>
68620
68621         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68622         a bug in AIX iconv().
68623
68624 2007-03-29  Bruno Haible  <bruno@clisp.org>
68625
68626         * modules/ldexpl-tests: New file.
68627         * tests/test-ldexpl.c: New file.
68628
68629 2007-03-29  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/ldexpl.c: Include fpucw.h.
68632         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68633         multiplication.
68634         * modules/ldexpl (Depends-on): Add fpucw.
68635
68636 2007-03-29  Bruno Haible  <bruno@clisp.org>
68637
68638         * modules/ldexpl: New file.
68639         * m4/ldexpl.m4: New file.
68640         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68641         set.
68642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68643         REPLACE_LDEXPL.
68644         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68645         REPLACE_LDEXPL.
68646         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68647         gl_FUNC_LDEXPL_WORKS.
68648         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68649         * modules/mathl (Files): Remove lib/ldexpl.c.
68650         (Depends-on): Add ldexpl.
68651
68652 2007-03-29  Bruno Haible  <bruno@clisp.org>
68653
68654         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68655
68656 2007-03-29  Bruno Haible  <bruno@clisp.org>
68657
68658         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68659         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68660         and possibly also HP-UX.
68661         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68662         work on AIX, IRIX, HP-UX, OSF/1.
68663         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68664         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68665         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68666         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68667         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68668         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68669
68670 2007-03-29  Bruno Haible  <bruno@clisp.org>
68671
68672         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68673
68674 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68677         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68678
68679 2007-03-29  Eric Blake  <ebb9@byu.net>
68680
68681         * lib/acl-internal.h: Remove redundant include.
68682         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68683         Cygwin when a file is locked.
68684
68685 2007-03-29  Bruno Haible  <bruno@clisp.org>
68686
68687         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68688         file.
68689         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68690
68691 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68694         try to remove a parent directory if the child couldn't be removed
68695         (except for the first rmdir, which could fail because the child
68696         doesn't exist).  Problem reported by Jeff Blaine in
68697         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68698
68699 2007-03-28  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/striconveh.c (utf8conv_carefully): New function.
68702         (mem_cd_iconveh_internal): Invoke it.
68703
68704 2007-03-28  Bruno Haible  <bruno@clisp.org>
68705
68706         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68707         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68708         input.
68709         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68710         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68711         unistr/u8-uctomb.
68712
68713 2007-03-28  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/unistr/u8-mbtoucr: New file.
68716         * lib/unistr/u8-mbtoucr.c: New file.
68717         * modules/unistr/u16-mbtoucr: New file.
68718         * lib/unistr/u16-mbtoucr.c: New file.
68719         * modules/unistr/u16-mbtoucr: New file.
68720         * lib/unistr/u16-mbtoucr.c: New file.
68721         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68722
68723 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68724             Bruno Haible  <bruno@clisp.org>
68725
68726         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68727         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68728         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68729
68730         * m4/stdio_h.m4: Add stubs for vasprintf too.
68731
68732         * modules/stdio: Support vasprintf in sed command.
68733
68734         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68735         vasprintf.h.  Add stdio module indicator.
68736
68737         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68738         vasprintf.h.
68739
68740         * lib/vasprintf.h: File removed.
68741
68742         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68743         * lib/vasprintf.c: Ditto.
68744         * lib/xvasprintf.c: Ditto.
68745         * tests/test-vasprintf-posix.c: Ditto.
68746         * tests/test-vasprintf.c: Ditto.
68747
68748 2007-03-27  Bruno Haible  <bruno@clisp.org>
68749
68750         Make vasnprintf multithread-safe.
68751         * lib/vasnprintf.c (decimal_point_char): New function.
68752         (VASNPRINTF): Use it.
68753         Suggested by Simon Josefsson.
68754
68755 2007-03-27  Eric Blake  <ebb9@byu.net>
68756
68757         Support sub-second birthtime on cygwin.
68758         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68759         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68760         (get_stat_birthtime): Also work with st_birthtim.
68761
68762 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68765         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68766         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68767         (get_stat_birthtime_ns): Simplify compile-time tests.
68768         (get_stat_birthtime): Change the API to look like
68769         get_stat_mtime etc., except return a negative tv_nsec on error.
68770         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68771         Don't check for "spare" fields.
68772         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68773         or for struct stat.st_birthtime, as these tests aren't used.
68774         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68775
68776 2007-03-27  Bruno Haible  <bruno@clisp.org>
68777
68778         * lib/stat-time.h: Include <sys/stat.h>.
68779
68780 2007-03-27  James Youngman  <jay@gnu.org>
68781
68782         * lib/stat-time.h (get_stat_birthtime): New function for
68783           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68784         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68785           and its variants.
68786         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68787         * modules/stat-time-test: New file.
68788         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68789
68790 2007-03-26  Bruno Haible  <bruno@clisp.org>
68791
68792         Better support of signalling NaNs.
68793         * lib/atanl.c: Include isnanl.h.
68794         (atanl): Perform test for NaN at the beginning of the function and
68795         through a call to isnanl.
68796         * lib/cosl.c: Include isnanl.h.
68797         (cosl): Perform test for NaN at the beginning of the function and
68798         through a call to isnanl.
68799         * lib/ldexpl.c: Include isnanl.h.
68800         (ldexpl): Perform test for NaN through a call to isnanl.
68801         * lib/logl.c: Include isnanl.h.
68802         (logl): Perform test for NaN at the beginning of the function and
68803         through a call to isnanl.
68804         * lib/sinl.c: Include isnanl.h.
68805         (sinl): Perform test for NaN at the beginning of the function and
68806         through a call to isnanl.
68807         * lib/sqrtl.c: Include isnanl.h.
68808         (sqrtl): Perform test for NaN at the beginning of the function and
68809         through a call to isnanl.
68810         * lib/tanl.c: Include isnanl.h.
68811         (tanl): Perform test for NaN at the beginning of the function and
68812         through a call to isnanl.
68813         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68814         * modules/mathl (Depends-on): Add isnanl.
68815
68816 2007-03-26  Eric Blake  <ebb9@byu.net>
68817
68818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68819         regression in logic sense of previous patch.
68820
68821 2007-03-26  Bruno Haible  <bruno@clisp.org>
68822
68823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68824         unportable shell command "if ! ...".
68825         Reported by Ralf Wildenhues.
68826
68827 2007-03-25  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68830         <sysexits.h> file, and only add EX_CONFIG.
68831         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68832         absolute file name and whether it is sufficient. Substitute also
68833         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68834         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68835         ABSOLUTE_SYSEXITS_H into sysexits.h.
68836
68837 2007-03-25  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68840         hints is NULL.
68841
68842 2007-03-25  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68845         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68846
68847 2007-03-25  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/vasnprintf.c: Include langinfo.h.
68850         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68851         multithread-safe.
68852         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68853         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68861         Reported by Simon Josefsson.
68862
68863 2007-03-25  Bruno Haible  <bruno@clisp.org>
68864
68865         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68866         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68867         * modules/vasnprintf (Depends-on): Add stdint.
68868
68869 2007-03-25  Bruno Haible  <bruno@clisp.org>
68870
68871         * modules/fpieee: New file.
68872         * m4/fpieee.m4: New file.
68873         * modules/isnan-nolibm (Depends-on): Add fpieee.
68874         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68875         * modules/isnanl (Depends-on): Add fpieee.
68876
68877 2007-03-25  Bruno Haible  <bruno@clisp.org>
68878
68879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68880
68881 2007-03-25  Bruno Haible  <bruno@clisp.org>
68882
68883         Avoid test failures on IRIX 6.5.
68884         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68885         (main): Use it.
68886         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68887         macros.
68888         (main): Use them.
68889
68890 2007-03-25  Bruno Haible  <bruno@clisp.org>
68891
68892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68893         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68894         exists but doesn't work.
68895         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68896         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68898         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68899         math.h.
68900
68901 2007-03-25  Bruno Haible  <bruno@clisp.org>
68902
68903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68904         returns inf. Needed on IRIX 6.5.
68905
68906 2007-03-25  Bruno Haible  <bruno@clisp.org>
68907
68908         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68909         (main): Use isnanl instead of x != x idiom.
68910         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68911
68912         * tests/test-frexp.c: Include isnan.h.
68913         (main): Use isnan instead of x != x idiom.
68914         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68915
68916 2007-03-25  Bruno Haible  <bruno@clisp.org>
68917
68918         * tests/test-frexp.c (NaN): New function/macro.
68919         (main): Use it instead of 0.0 / 0.0.
68920         * tests/test-isnan.c (NaN): New function/macro.
68921         (main): Use it instead of 0.0 / 0.0.
68922         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68923         (test_function): Use it instead of 0.0 / 0.0.
68924         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68925         (test_function): Use it instead of 0.0 / 0.0.
68926         * tests/test-snprintf-posix.h (NaN): New function/macro.
68927         (test_function): Use it instead of 0.0 / 0.0.
68928         * tests/test-sprintf-posix.h (NaN): New function/macro.
68929         (test_function): Use it instead of 0.0 / 0.0.
68930         * tests/test-fprintf-posix.h (NaN): New function/macro.
68931         (test_function): Use it instead of 0.0 / 0.0.
68932         * tests/test-printf-posix.h (NaN): New function/macro.
68933         (test_function): Use it instead of 0.0 / 0.0.
68934
68935         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68936
68937 2007-03-25  Bruno Haible  <bruno@clisp.org>
68938
68939         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68940
68941 2007-03-25  Bruno Haible  <bruno@clisp.org>
68942
68943         * lib/regexec.c (merge_state_with_log): Make static.
68944
68945 2007-03-25  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/trigl.c (kernel_rem_pio2): Make static.
68948
68949 2007-03-25  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/sincosl.c (sincosl_table): Make static.
68952
68953 2007-03-25  Bruno Haible  <bruno@clisp.org>
68954
68955         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68956         if the compiler does not support C99.
68957
68958 2007-03-25  Bruno Haible  <bruno@clisp.org>
68959
68960         * modules/time (Makefile.am): Ensure all rule action lines start with a
68961         tab.
68962
68963 2007-03-24  Bruno Haible  <bruno@clisp.org>
68964
68965         * modules/tsearch-tests: New file.
68966         * tests/test-tsearch.sh: New file.
68967         * tests/test-tsearch.c: New file, mostly copied from glibc.
68968
68969         * modules/search-tests: New file.
68970         * tests/test-search.c: New file.
68971
68972         * modules/search: New file.
68973         * lib/search_.h: New file, incorporating lib/tsearch.h.
68974         * m4/search_h.m4: New file.
68975         * lib/tsearch.h: Remove file.
68976         * lib/tsearch.c: Include search.h instead of tsearch.h.
68977         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68978         HAVE_TSEARCH.
68979         * modules/tsearch (Files): Remove lib/tsearch.h.
68980         (Depends-on): Add search.
68981         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68982         (Include): Change tsearch.h into search.h.
68983
68984 2007-03-24  Bruno Haible  <bruno@clisp.org>
68985
68986         * modules/fpucw: New file.
68987         * lib/fpucw.h: New file.
68988         * lib/frexp.c: Include fpucw.h.
68989         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68990         (FUNC): Use them.
68991         * lib/printf-frexp.c: Include fpucw.h.
68992         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68993         (FUNC): Use them.
68994         * lib/vasnprintf.c: Include fpucw.h.
68995         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68996         'long double' calculations.
68997         * tests/test-frexpl.c: Include fpucw.h.
68998         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68999         * tests/test-printf-frexpl.c: Include fpucw.h.
69000         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69001         * modules/frexpl (Depends-on): Add fpucw.
69002         * modules/printf-frexpl (Depends-on): Likewise.
69003         * modules/fprintf-posix (Depends-on): Likewise.
69004         * modules/snprintf-posix (Depends-on): Likewise.
69005         * modules/sprintf-posix (Depends-on): Likewise.
69006         * modules/vasnprintf-posix (Depends-on): Likewise.
69007         * modules/vasprintf-posix (Depends-on): Likewise.
69008         * modules/vfprintf-posix (Depends-on): Likewise.
69009         * modules/vsnprintf-posix (Depends-on): Likewise.
69010         * modules/vsprintf-posix (Depends-on): Likewise.
69011         * modules/frexpl-tests (Depends-on): Likewise.
69012         * modules/printf-frexpl-tests (Depends-on): Likewise.
69013
69014 2007-03-24  Bruno Haible  <bruno@clisp.org>
69015
69016         * lib/float+.h: New file.
69017         * lib/isnan.c: Include float+.h.
69018         (SIZE): New macro.
69019         (FUNC): Compare only SIZE bytes of the value.
69020         * lib/vasnprintf.c: Include float+.h.
69021         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69022         SIZEOF_LDBL or SIZEOF_DBL bytes.
69023         * modules/isnan-nolibm (Files): Add lib/float+.h.
69024         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69025         * modules/isnanl (Files): Add lib/float+.h.
69026         * modules/vasnprintf (Files): Add lib/float+.h.
69027
69028 2007-03-24  Bruno Haible  <bruno@clisp.org>
69029
69030         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69031         include isnanl-nolibm.h.
69032
69033 2007-03-24  Bruno Haible  <bruno@clisp.org>
69034
69035         * tests/test-read-file.c (main): Don't produce spurious output for
69036         expected situations. Make the test fail if it encountered unexpected
69037         results.
69038
69039 2007-03-24  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69042         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69043
69044 2007-03-24  Bruno Haible  <bruno@clisp.org>
69045
69046         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69047
69048 2007-03-24  Bruno Haible  <bruno@clisp.org>
69049
69050         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69051         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69052
69053         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69054         * modules/utf8-ucs4: Turn into a symbolic link to module
69055         unistr/u8-mbtouc.
69056
69057         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69058         utf8-ucs4-unsafe.
69059         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69060         unistr/u8-mbtouc-unsafe.
69061
69062         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69063         * modules/utf16-ucs4: Turn into a symbolic link to module
69064         unistr/u16-mbtouc.
69065
69066         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69067         utf16-ucs4-unsafe.
69068         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69069         unistr/u16-mbtouc-unsafe.
69070
69071         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69072         * modules/ucs4-utf8: Turn into a symbolic link to module
69073         unistr/u8-ubtomb.
69074
69075         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69076         * modules/ucs4-utf16: Turn into a symbolic link to module
69077         unistr/u16-ubtomb.
69078
69079 2007-03-24  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69082         Enable the function only if HAVE_INLINE.
69083         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69084         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69085         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69086         Enable the function only if HAVE_INLINE.
69087         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69088         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69089         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69090         Enable the function only if HAVE_INLINE.
69091         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69092         Enable the function only if HAVE_INLINE.
69093         * modules/utf8-ucs4: Update.
69094         * modules/utf8-ucs4-unsafe: Update.
69095         * modules/utf16-ucs4: Update.
69096         * modules/utf16-ucs4-unsafe: Update.
69097         * modules/ucs4-utf8: Update.
69098         * modules/ucs4-utf16: Update.
69099
69100 2007-03-24  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/utf8-ucs4.h: Remove file.
69103         * lib/utf8-ucs4-unsafe.h: Remove file.
69104         * lib/utf16-ucs4.h: Remove file.
69105         * lib/utf16-ucs4-unsafe.h: Remove file.
69106         * lib/ucs4-utf8.h: Remove file.
69107         * lib/ucs4-utf16.h: Remove file.
69108         * lib/unistr.h: Include their previous contents.
69109         * m4/utf-ucs4.m4: Remove file.
69110         * m4/ucs4-utf.m4: Remove file.
69111         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69112         (Depends-on): Add unistr/base.
69113         (configure.ac): Remove gl_UTF_UCS4.
69114         (Makefile.am): Update.
69115         (Include): Change to unistr.h.
69116         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69117         (Depends-on): Add unistr/base.
69118         (configure.ac): Remove gl_UTF_UCS4.
69119         (Makefile.am): Update.
69120         (Include): Change to unistr.h.
69121         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69122         (Depends-on): Add unistr/base.
69123         (configure.ac): Remove gl_UTF_UCS4.
69124         (Makefile.am): Update.
69125         (Include): Change to unistr.h.
69126         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69127         (Depends-on): Add unistr/base.
69128         (configure.ac): Remove gl_UTF_UCS4.
69129         (Makefile.am): Update.
69130         (Include): Change to unistr.h.
69131         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69132         (Depends-on): Add unistr/base.
69133         (configure.ac): Remove gl_UCS4_UTF.
69134         (Makefile.am): Update.
69135         (Include): Change to unistr.h.
69136         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69137         (Depends-on): Add unistr/base.
69138         (configure.ac): Remove gl_UCS4_UTF.
69139         (Makefile.am): Update.
69140         (Include): Change to unistr.h.
69141         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69142         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69143         utf8-ucs4-unsafe.h.
69144         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69145         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69146         utf16-ucs4-unsafe.h.
69147         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69148         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69149         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69150         * lib/unistr/u8-strchr.c: Likewise.
69151         * lib/unistr/u8-strrchr.c: Likewise.
69152         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69153         * lib/unistr/u16-strchr.c: Likewise.
69154         * lib/unistr/u16-strrchr.c: Likewise.
69155         * lib/striconveh.c: Update.
69156         * lib/linebreak.c: Update.
69157
69158 2007-03-24  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69161         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69162
69163 2007-03-22  Bruno Haible  <bruno@clisp.org>
69164
69165         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69166
69167 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * MODULES.html.sh (File system functions): New module write-any-file.
69170         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69171         * m4/write-any-file.m4: New files.
69172
69173 2007-03-23  Eric Blake  <ebb9@byu.net>
69174
69175         * gnulib-tool: Rearrange space-tab sequences, since some editors
69176         like to eat them.
69177
69178 2007-03-23  Eric Blake  <ebb9@byu.net>
69179
69180         * lib/version-etc.c (version_etc_va): Update license wording to
69181         be more concise.  Recommended by Richard Stallman.
69182
69183 2007-03-22  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/poll.c (MSG_PEEK): New fallback definition.
69186
69187 2007-03-22  Bruno Haible  <bruno@clisp.org>
69188
69189         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69190         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69191         (main): Update.
69192         Fixes a compilation error on BeOS.
69193
69194 2007-03-22  Bruno Haible  <bruno@clisp.org>
69195
69196         * modules/frexpl-tests: New file.
69197         * tests/test-frexpl.c: New file.
69198
69199         * modules/frexpl: New file.
69200         * m4/frexpl.m4: New file.
69201         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69202         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69204         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69205         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69206         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69207
69208 2007-03-22  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/frexpl.c: Share code with lib/frexp.c.
69211         * modules/mathl (Files): Add lib/frexp.c.
69212         (Depends-on): Add isnanl-nolibm.
69213
69214 2007-03-22  Bruno Haible  <bruno@clisp.org>
69215
69216         * modules/printf-frexp (Files): Add m4/frexp.m4.
69217         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69218         only if the found frexp function actually works.
69219
69220 2007-03-22  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/frexp.c: Remove older implementation that uses divisions.
69223
69224 2007-03-21  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/frexp-tests: New file.
69227         * tests/test-frexp.c: New file.
69228
69229         * modules/frexp: New file.
69230         * lib/frexp.c: New file.
69231         * m4/frexp.m4: New file.
69232         * lib/math_.h (frexp): New declaration.
69233         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69234         REPLACE_FREXP.
69235         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69236
69237 2007-03-21  Bruno Haible  <bruno@clisp.org>
69238
69239         * modules/isnanl-tests: New file.
69240         * tests/test-isnanl.c: New file.
69241
69242         * modules/isnanl: New file.
69243         * lib/isnanl.h: New file.
69244         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69245         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69246         gl_FUNC_ISNANL_WORKS.
69247         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69248         New macros.
69249
69250 2007-03-21  Bruno Haible  <bruno@clisp.org>
69251
69252         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69253         lib/isnanl.h.
69254         (Include): Update.
69255         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69256         * lib/vasnprintf.c: Update.
69257         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69258         tests/test-isnanl.h, remove tests/test-isnanl.c.
69259         (Makefile.am): Update.
69260         * tests/test-isnanl-nolibm.c: New file.
69261         * tests/test-isnanl.h: New file.
69262         * tests/test-isnanl.c: Remove file.
69263
69264 2007-03-21  Jim Meyering  <jim@meyering.net>
69265
69266         When trying to open ".", treat ESTALE like EACCES.
69267         * lib/savewd.c (savewd_save): Resort to forking not just upon
69268         failure with EACCES, but also when errno is ESTALE.
69269
69270 2007-03-20  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69273         Needed on AIX 5.1. Reported by Matthew Woehlke.
69274
69275 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         Suggestions by Bruno Haible:
69278         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69279         our own.
69280         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69281         * modules/acl (Depends-on): Add gettext.
69282
69283 2007-03-19  Bruno Haible  <bruno@clisp.org>
69284
69285         * modules/iconvme: Remove file.
69286         * lib/iconvme.h: Remove file.
69287         * lib/iconvme.c: Remove file.
69288         * m4/iconvme.m4: Remove file.
69289
69290 2007-03-19  Bruno Haible  <bruno@clisp.org>
69291
69292         * doc/relocatable-maint.texi: Break long shell script line.
69293         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69294
69295 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69298         handle file_has_acl.
69299         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69300         * lib/acl.c: Move header inclusions and related macro defns into
69301         lib/acl-internal.h.
69302         (S_ISLNK): Remove defn, since that's now done for us.
69303         (file_has_acl): Move to lib/file-has-acl.c.
69304         Call acl_trivial if available.  This is the crucial part of the fix.
69305         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69306         shared within the library.  Rewrite a bit, partly to make it compatible
69307         with the GNU coding style.
69308         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69309         Remove unnecessary double-quotes.
69310         Don't test for acl_to_text; the build will catch that.
69311         Replace acl_entries if it doesn't exist and it is needed.
69312         Check for -lsec and acl_trivial (as used on Solaris 10).
69313         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69314         lib/file-has-acl.c.
69315         (Depends-on): Add sys_stat, for S_ISLNK.
69316
69317 2007-03-19  Ben Pfaff  <blp@gnu.org>
69318
69319         * doc/gnulib.texi: Fix typos.
69320         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69321
69322 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69325         If size is zero here, buf must be zero.
69326
69327 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69328
69329         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69330         <bruno@clisp.org>.
69331
69332 2007-03-18  Bruno Haible  <bruno@clisp.org>
69333
69334         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69335         Suggested by Eric Blake.
69336
69337 2007-03-18  Ben Pfaff  <blp@gnu.org>
69338
69339         * doc/relocatable.texi: Recommend using as prefix a directory
69340         that does not exist and will never be created.  Based on
69341         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69342         and others.
69343
69344 2007-03-17  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/fchownat.c: Include lchown.h.
69347
69348 2007-03-17  Bruno Haible  <bruno@clisp.org>
69349
69350         Fix endless loop when the given allocated size was > INT_MAX.
69351         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69352         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69353         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69354         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69355         * lib/sprintf.c (sprintf): Likewise.
69356
69357 2007-03-17  Bruno Haible  <bruno@clisp.org>
69358
69359         * tests/test-argp-2.sh (func_compare): Output a context diff.
69360
69361 2007-03-17  Bruno Haible  <bruno@clisp.org>
69362
69363         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69364         locale's decimal-point character.
69365
69366 2007-03-17  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69369         before comparing it. Needed because on some platforms (e.g. x86) a
69370         'long double' occupies less bytes than sizeof (long double).
69371
69372 2007-03-17  Bruno Haible  <bruno@clisp.org>
69373
69374         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69375         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69376         * tests/test-getaddrinfo.c (simple): Likewise.
69377         * tests/test-read-file.c (main): Likewise.
69378
69379 2007-03-17  Bruno Haible  <bruno@clisp.org>
69380
69381         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69382
69383 2007-03-17  Bruno Haible  <bruno@clisp.org>
69384
69385         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69386         unused variable.
69387
69388 2007-03-17  Bruno Haible  <bruno@clisp.org>
69389
69390         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69391         * tests/test-c-strncasecmp.c: Likewise.
69392
69393 2007-03-17  Bruno Haible  <bruno@clisp.org>
69394
69395         * modules/stdlib (Depends-on): Add unistd.
69396         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69397         Needed for MacOS X 10.3.
69398
69399 2007-03-17  Bruno Haible  <bruno@clisp.org>
69400
69401         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69402
69403 2007-03-17  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69406
69407 2007-03-17  Bruno Haible  <bruno@clisp.org>
69408
69409         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69410         to reflect files copied from gnulib (with or without modifications).
69411         Suggested by Jim Meyering.
69412
69413 2007-03-17  Eric Blake  <ebb9@byu.net>
69414
69415         * NEWS: Document stdlib change from 2007-02-18.
69416
69417 2007-03-17  Jim Meyering  <jim@meyering.net>
69418
69419         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69420         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69421         someone uses a name containing shell meta-characters.
69422         Reported by Alfred M. Szmidt.
69423
69424         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69425
69426 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69427
69428         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69429         and copy gettext configuration files only if configure.ac contains
69430         a use of AM_GNU_GETTEXT_VERSION.
69431
69432 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69433
69434         * build-aux/bootstrap (gnulib_name): New variable.
69435         (gnulib_tool_options): Use it.
69436
69437 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69438
69439         * tests/test-des.c: Use new namespace.
69440
69441 2007-03-15  Bruno Haible  <bruno@clisp.org>
69442
69443         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69444         Reported by James Youngman <jay@gnu.org>.
69445
69446 2007-03-15  Bruno Haible  <bruno@clisp.org>
69447
69448         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69449         declared prototype. Needed with cc on OSF/1 5.1.
69450
69451 2007-03-15  Bruno Haible  <bruno@clisp.org>
69452
69453         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69454         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69455         (struct gl_list_implementation): Add dispose_fn argument to the
69456         'create_empty', 'create' methods.
69457         (struct gl_list_impl_base): Add field 'dispose_fn'.
69458         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69459         argument.
69460         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69461         dispose_fn argument.
69462         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69463         dispose_fn on the dropped values.
69464         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69465         dispose_fn argument.
69466         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69467         dropped values.
69468         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69469         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69470         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69471         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69472         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69473         argument.
69474         (gl_tree_list_free): Call dispose_fn on the dropped values.
69475         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69476         the dropped values.
69477         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69478         Add dispose_fn argument.
69479         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69480         Call dispose_fn on the dropped values.
69481         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69482         Add dispose_fn argument.
69483         (gl_sublist_create): Initialize the 'dispose_fn' field.
69484         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69485         * tests/test-array_list.c (main): Update.
69486         * tests/test-carray_list.c (main): Update.
69487         * tests/test-avltree_list.c (main): Update.
69488         * tests/test-rbtree_list.c (main): Update.
69489         * tests/test-avltreehash_list.c (main): Update.
69490         * tests/test-rbtreehash_list.c (main): Update.
69491         * tests/test-linked_list.c (main): Update.
69492         * tests/test-linkedhash_list.c (main): Update.
69493         * tests/test-array_oset.c (main): Update.
69494
69495 2007-03-15  Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69498         (gl_oset_create_empty): Add dispose_fn argument.
69499         (struct gl_oset_implementation): Add dispose_fn argument to
69500         'create_empty' method.
69501         (struct gl_oset_impl_base): Add dispose_fn field.
69502         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69503         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69504         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69505         values.
69506         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69507         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69508         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69509         dropped value.
69510         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69511         dropped value.
69512         * tests/test-array_oset.c (main): Update.
69513         * tests/test-avltree_oset.c (main): Update.
69514         * tests/test-rbtree_oset.c (main): Update.
69515         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69516
69517 2007-03-13  Bruno Haible  <bruno@clisp.org>
69518
69519         * tests/test-stdbool.c (i): Update after last patch.
69520
69521 2007-03-12  Bruno Haible  <bruno@clisp.org>
69522
69523         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69524         the iswprint macro. Needed on Solaris 2.5.1.
69525
69526 2007-03-12  Bruno Haible  <bruno@clisp.org>
69527
69528         * tests/test-printf-frexp.c (main): Declare x as volatile.
69529
69530 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69531
69532         * doc/gnulib.texi (Build robot for gnulib): New section.
69533
69534 2007-03-12  Jim Meyering  <jim@meyering.net>
69535
69536         * build-aux/bootstrap: New file.
69537         * build-aux/bootstrap.conf: New file, from coreutils.
69538
69539 2007-03-11  Bruno Haible  <bruno@clisp.org>
69540
69541         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69542
69543 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69544
69545         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69546         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69547         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69548
69549 2007-03-11  Bruno Haible  <bruno@clisp.org>
69550
69551         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69552         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69553
69554 2007-03-11  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69557         formula. Needed for SunPRO C 5.0.
69558
69559 2007-03-11  Bruno Haible  <bruno@clisp.org>
69560
69561         * modules/long-options (Depends-on): Add getopt.
69562
69563 2007-03-11  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/modechange (Depends-on): Add stdbool.
69566
69567 2007-03-11  Bruno Haible  <bruno@clisp.org>
69568
69569         * modules/i-ring (Depends-on): Add stdbool.
69570
69571 2007-03-11  Bruno Haible  <bruno@clisp.org>
69572
69573         * modules/gc-des (Depends-on): Add stdbool.
69574
69575 2007-03-11  Bruno Haible  <bruno@clisp.org>
69576
69577         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69578
69579 2007-03-11  Bruno Haible  <bruno@clisp.org>
69580
69581         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69582
69583 2007-03-11  Bruno Haible  <bruno@clisp.org>
69584
69585         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69586
69587 2007-03-11  Bruno Haible  <bruno@clisp.org>
69588
69589         * lib/vasnprintf.c (sprintf): Undefine.
69590
69591 2007-03-11  Bruno Haible  <bruno@clisp.org>
69592
69593         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69594         initializers in SunPRO C and Compaq C compilers.
69595
69596 2007-03-11  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69599         decrementing code ANSI C compliant.
69600
69601 2007-03-11  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69604         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69605
69606 2007-03-11  Bruno Haible  <bruno@clisp.org>
69607
69608         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69609         <stdbool.h> substitute doesn't pass.
69610
69611 2007-03-11  Bruno Haible  <bruno@clisp.org>
69612
69613         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69614
69615 2007-03-11  Bruno Haible  <bruno@clisp.org>
69616
69617         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69618         script, for submission to autobuild.josefsson.org.
69619
69620 2007-03-10  Bruno Haible  <bruno@clisp.org>
69621
69622         * modules/canonicalize-lgpl-tests: New file.
69623         * tests/test-canonicalize-lgpl.sh: New file.
69624         * tests/test-canonicalize-lgpl.c: New file.
69625
69626         * modules/c-strcase-tests: New file.
69627         * tests/test-c-strcase.sh: New file.
69628         * tests/test-c-strcasecmp.c: New file.
69629         * tests/test-c-strncasecmp.c: New file.
69630
69631         * modules/atexit-tests: New file.
69632         * tests/test-atexit.sh: New file.
69633         * tests/test-atexit.c: New file.
69634
69635 2007-03-10  Bruno Haible  <bruno@clisp.org>
69636
69637         * tests/test-binary-io.sh: Use temporary filenames that are not so
69638         likely to clash with those of other tests (in a parallel make).
69639         * tests/test-binary-io.c: Likewise.
69640
69641 2007-03-10  Bruno Haible  <bruno@clisp.org>
69642
69643         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69644         fallback; use #error instead.
69645         Suggested by Simon Josefsson.
69646
69647 2007-03-10  Bruno Haible  <bruno@clisp.org>
69648
69649         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69650         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69651         first and the last.
69652
69653 2007-03-10  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69656
69657 2007-03-10  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69660         "make distcheck".
69661         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69662         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69663         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69664
69665 2007-03-10  Bruno Haible  <bruno@clisp.org>
69666
69667         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69668         variable.
69669         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69670         variable.
69671
69672 2007-03-09  Eric Blake  <ebb9@byu.net>
69673         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69674
69675         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69676         types are not being provided by gnulib.
69677         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69678         types are supported.
69679
69680 2007-03-10  Bruno Haible  <bruno@clisp.org>
69681
69682         * lib/stdio_.h (__attribute__): New macro.
69683         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69684         vsprintf): Specify __attribute__ __format__ for GCC.
69685         Suggested by Eric Blake.
69686
69687 2007-03-09  Bruno Haible  <bruno@clisp.org>
69688
69689         * modules/printf-posix-tests: New file.
69690         * tests/test-printf-posix.sh: New file.
69691         * tests/test-printf-posix.c: New file.
69692
69693         * modules/printf-posix: New file.
69694         * lib/printf.c: New file.
69695         * m4/printf-posix-rpl.m4: New file.
69696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69697         REPLACE_PRINTF.
69698         * lib/stdio_.h (printf): New declaration.
69699         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69700         ____strfmon____): New macros.
69701         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69702         REPLACE_PRINTF.
69703
69704 2007-03-09  Bruno Haible  <bruno@clisp.org>
69705
69706         * tests/test-vasnprintf-posix2.sh: New file.
69707         * tests/test-vasnprintf-posix2.c: New file.
69708         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69709         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69710         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69711
69712         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69713         a locale dependent decimal point, rather than always '.'.
69714
69715 2007-03-09  Eric Blake  <ebb9@byu.net>
69716
69717         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69718         spite of platforms like Tandem/NSK that define it to -1.
69719
69720 2007-03-08  Bruno Haible  <bruno@clisp.org>
69721
69722         * modules/vprintf-posix-tests: New file.
69723         * tests/test-vprintf-posix.sh: New file.
69724         * tests/test-vprintf-posix.c: New file.
69725         * tests/test-printf-posix.h: New file.
69726
69727         * modules/vprintf-posix: New file.
69728         * lib/vprintf.c: New file.
69729         * m4/vprintf-posix.m4: New file.
69730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69731         REPLACE_VPRINTF.
69732         * lib/stdio_.h (vprintf): New declaration.
69733         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69734         REPLACE_VPRINTF.
69735
69736 2007-03-08  Bruno Haible  <bruno@clisp.org>
69737
69738         * modules/fprintf-posix-tests: New file.
69739         * tests/test-fprintf-posix.sh: New file.
69740         * tests/test-fprintf-posix.c: New file.
69741
69742         * modules/fprintf-posix: New file.
69743         * lib/fprintf.c: New file.
69744         * m4/fprintf-posix.m4: New file.
69745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69746         REPLACE_FPRINTF.
69747         * lib/stdio_.h (fprintf): New declaration.
69748         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69749         REPLACE_FPRINTF.
69750
69751 2007-03-08  Bruno Haible  <bruno@clisp.org>
69752
69753         * modules/vfprintf-posix-tests: New file.
69754         * tests/test-vfprintf-posix.sh: New file.
69755         * tests/test-vfprintf-posix.c: New file.
69756         * tests/test-fprintf-posix.h: New file.
69757         * tests/test-fprintf-posix.out: New file.
69758
69759         * modules/vfprintf-posix: New file.
69760         * lib/vfprintf.c: New file.
69761         * m4/vfprintf-posix.m4: New file.
69762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69763         REPLACE_VFPRINTF.
69764         * lib/stdio_.h (vfprintf): New declaration.
69765         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69766         REPLACE_VFPRINTF.
69767
69768 2007-03-08  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69771
69772 2007-03-08  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69775         instead of 'expr' invocations.
69776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69780         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69781         Suggested by Paul Eggert.
69782
69783 2007-03-08  Bruno Haible  <bruno@clisp.org>
69784
69785         * modules/fseterr-tests: New file.
69786         * tests/test-fseterr.c: New file.
69787
69788         * modules/fseterr: New file.
69789         * lib/fseterr.h: New file.
69790         * lib/fseterr.c: New file.
69791
69792 2007-03-08  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69795         * lib/getopt_.h: Likewise.
69796         * lib/mbswidth.h: Likewise.
69797         * lib/setenv.h: Likewise.
69798         * lib/vasnprintf.h: Likewise.
69799         * lib/vasprintf.h: Likewise.
69800         * lib/verror.h: Likewise.
69801         * lib/xsetenv.h: Likewise.
69802         * lib/xvasprintf.h: Likewise.
69803
69804 2007-03-08  Jim Meyering  <jim@meyering.net>
69805
69806         * users.txt: Add parted.
69807
69808         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69809
69810 2007-03-07  Bruno Haible  <bruno@clisp.org>
69811
69812         * m4/printf.m4: Make the shell script snippets copy&pastable.
69813
69814 2007-03-02  Bruno Haible  <bruno@clisp.org>
69815
69816         * lib/netinet_in_.h: New file.
69817         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69818         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69819         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69820         (Depends-on): Add absolute-header.
69821         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69822         into netinet/in.h.
69823
69824 2007-03-03  Bruno Haible  <bruno@clisp.org>
69825
69826         * lib/sys_select_.h: New file.
69827         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69828         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69829         * modules/sys_select (Files): Add lib/sys_select_.h.
69830         (Depends-on): Add absolute-header.
69831         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69832         into sys/select.h.
69833
69834 2007-03-02  Bruno Haible  <bruno@clisp.org>
69835
69836         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69837         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69838         values.
69839         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69840         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69841         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69842         * modules/sys_socket (Depends-on): Add absolute-header.
69843         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69844         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69845         (Include): Remove requirement of inclusion of <sys/types.h>.
69846
69847 2007-03-02  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/byteswap_.h (bswap_32): Fix formula.
69850
69851 2007-03-06  Bruno Haible  <bruno@clisp.org>
69852
69853         * modules/sprintf-posix-tests: New file.
69854         * tests/test-sprintf-posix.c: New file.
69855
69856         * modules/sprintf-posix: New file.
69857         * lib/sprintf.c: New file.
69858         * m4/sprintf-posix.m4: New file.
69859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69860         REPLACE_SPRINTF.
69861         * lib/stdio_.h (sprintf): New declaration.
69862         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69863         REPLACE_SPRINTF.
69864
69865 2007-03-06  Bruno Haible  <bruno@clisp.org>
69866
69867         * modules/vsprintf-posix-tests: New file.
69868         * tests/test-vsprintf-posix.c: New file.
69869         * tests/test-sprintf-posix.h: New file.
69870
69871         * modules/vsprintf-posix: New file.
69872         * lib/vsprintf.c: New file.
69873         * m4/vsprintf-posix.m4: New file.
69874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69875         REPLACE_VSPRINTF.
69876         * lib/stdio_.h (vsprintf): New declaration.
69877         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69878         REPLACE_VSPRINTF.
69879
69880 2007-03-06  Bruno Haible  <bruno@clisp.org>
69881
69882         * modules/vsnprintf (Depend-on): Remove minmax.
69883
69884 2007-03-06  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/snprintf-posix-tests: New file.
69887         * tests/test-snprintf-posix.c: New file.
69888
69889         * modules/snprintf-posix: New file.
69890         * m4/snprintf-posix.m4: New file.
69891         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69892         gl_FUNC_SNPRINTF.
69893         (gl_FUNC_SNPRINTF): Invoke it.
69894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69895         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69896         is set.
69897         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69898
69899 2007-03-06  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/vsnprintf-posix-tests: New file.
69902         * tests/test-vsnprintf-posix.c: New file.
69903         * tests/test-snprintf-posix.h: New file.
69904
69905         * modules/vsnprintf-posix: New file.
69906         * m4/vsnprintf-posix.m4: New file.
69907         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69908         gl_FUNC_VSNPRINTF.
69909         (gl_FUNC_VSNPRINTF): Invoke it.
69910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69911         * lib/stdio_.h (vsnprintf): Define as a replacement if
69912         REPLACE_VSNPRINTF is set.
69913         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69914
69915 2007-03-06  Bruno Haible  <bruno@clisp.org>
69916
69917         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69919
69920 2007-03-06  Bruno Haible  <bruno@clisp.org>
69921
69922         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69923         (asinl): Declare also if HAVE_DECL_ASINL is set.
69924         (atanl): Declare also if HAVE_DECL_ATANL is set.
69925         (ceill): Declare also if HAVE_DECL_CEILL is set.
69926         (cosl): Declare also if HAVE_DECL_COSL is set.
69927         (expl): Declare also if HAVE_DECL_EXPL is set.
69928         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69929         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69930         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69931         (logl): Declare also if HAVE_DECL_LOGL is set.
69932         (sinl): Declare also if HAVE_DECL_SINL is set.
69933         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69934         (tanl): Declare also if HAVE_DECL_TANL is set.
69935         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69937         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69938         declaration of frexpl, ldexpl.
69939         * modules/printf-frexpl (Depends-on): Add math.
69940         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69941
69942 2007-03-05  Bruno Haible  <bruno@clisp.org>
69943
69944         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69945         frexpl and ldexpl are declared.
69946         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69947
69948 2007-03-05  Bruno Haible  <bruno@clisp.org>
69949
69950         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69951         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69952
69953 2007-03-05  Bruno Haible  <bruno@clisp.org>
69954
69955         * lib/stdio_.h: Include <stddef.h>.
69956
69957 2007-03-05  Bruno Haible  <bruno@clisp.org>
69958
69959         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69960
69961 2007-03-05  Bruno Haible  <bruno@clisp.org>
69962
69963         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69964         NetBSD 4, from Ralf Wildenhues.
69965
69966 2007-03-04  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/vasprintf.h: Update #if logic for the case when the functions
69969         exist but are overridden.
69970
69971 2007-03-04  Bruno Haible  <bruno@clisp.org>
69972
69973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69974         implementations: glibc-2.4 and MacOS X 10.3.
69975         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69976         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69977         * tests/test-vasprintf-posix.c (test_function): Likewise.
69978
69979 2007-03-04  Bruno Haible  <bruno@clisp.org>
69980
69981         * modules/vasprintf-posix-tests: New file.
69982         * tests/test-vasprintf-posix.c: New file.
69983
69984         * modules/vasprintf-posix: New file.
69985         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69986         defined.
69987         * m4/vasprintf-posix.m4: New file.
69988         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69989         gl_FUNC_VASPRINTF.
69990         (gl_FUNC_VASPRINTF): Invoke it.
69991         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69992         here.
69993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69994
69995 2007-03-04  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69998         REPLACE_GETTIMEOFDAY.
69999         * modules/sys_time (Makefile.am): Likewise.
70000         * m4/sys_time_h.m4: Likewise.
70001         * m4/gettimeofday.m4: Likewise.
70002
70003 2007-03-04  Bruno Haible  <bruno@clisp.org>
70004
70005         * modules/vasnprintf-posix-tests: New file.
70006         * tests/test-vasnprintf-posix.c: New file.
70007
70008         * modules/vasnprintf-posix: New file.
70009         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70010         printf-frexpl.h.
70011         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70012         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70013         REPLACE_VASNPRINTF is defined.
70014         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70015         gl_FUNC_VASNPRINTF.
70016         (gl_FUNC_VASNPRINTF): Invoke it.
70017         * m4/vasnprintf-posix.m4: New file.
70018         * m4/printf.m4: New file.
70019
70020 2007-03-04  Bruno Haible  <bruno@clisp.org>
70021
70022         Compile progreloc.c only if --enable-relocatable is specified.
70023         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70024         if --enable-relocatable was specified.
70025         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70026         lib_SOURCES.
70027
70028 2007-03-04  Jim Meyering  <jim@meyering.net>
70029
70030         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70031         Use it consistently, rather than enumerating errno constants.
70032
70033 2007-03-04  Bruno Haible  <bruno@clisp.org>
70034
70035         * modules/xvasprintf-tests: New file.
70036         * tests/test-xvasprintf.c: New file.
70037
70038         * modules/vasprintf-tests: New file.
70039         * tests/test-vasprintf.c: New file.
70040
70041         * modules/vasnprintf-tests: New file.
70042         * tests/test-vasnprintf.c: New file.
70043
70044         * modules/vsnprintf-tests: New file.
70045         * tests/test-vsnprintf.c: New file.
70046
70047         * modules/snprintf-tests: New file.
70048         * tests/test-snprintf.c: New file.
70049
70050 2007-03-04  Bruno Haible  <bruno@clisp.org>
70051
70052         Compile relocatable.c only if --enable-relocatable is specified.
70053         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70054         gl_RELOCATABLE_LIBRARY.
70055         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70056         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70057         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70058         gl_RELOCATABLE_LIBRARY.
70059         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70060         (Makefile.am): Remove lib_SOURCES.
70061         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70062         gl_RELOCATABLE_LIBRARY.
70063         (Makefile.am): Remove lib_SOURCES.
70064         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70065         always.
70066         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70067         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70068
70069 2007-03-04  Bruno Haible  <bruno@clisp.org>
70070
70071         * modules/argmatch-tests: New file.
70072         * tests/test-argmatch.c: New file.
70073
70074         * tests/test-allocsa.c (main): Halve the number of loop runs.
70075
70076         * modules/alloca-opt-tests: New file.
70077         * tests/test-alloca-opt.c: New file.
70078
70079 2007-03-04  Jim Meyering  <jim@meyering.net>
70080
70081         Work around difference between Linux ACLs and Solaris 10 ZFS.
70082         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70083         for EINVAL.
70084
70085 2007-03-03  Bruno Haible  <bruno@clisp.org>
70086
70087         * modules/relocatable-prog (Depends-on): Add back progreloc's
70088         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70089
70090 2007-03-03  Bruno Haible  <bruno@clisp.org>
70091
70092         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70093         * modules/relocatable-lib: New file.
70094
70095 2007-03-03  Bruno Haible  <bruno@clisp.org>
70096
70097         * modules/relocatable-prog: Renamed from modules/relocatable.
70098         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70099
70100 2007-03-03  Bruno Haible  <bruno@clisp.org>
70101
70102         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70103         m4/relocatable-lib.m4.
70104         (Depends-on): Remove 'relocatable'.
70105         (configure.ac): Add gl_RELOCATABLE_NOP.
70106
70107 2007-03-03  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/relocatable-prog-wrapper: New file.
70110         * modules/relocatable (Depends-on): Add it. Remove all other
70111         dependencies except progname.
70112         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70113
70114         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70115         (gl_FUNC_STRERROR): Nop.
70116         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70117
70118         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70119         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70120
70121         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70122         (gl_FUNC_READLINK): Update.
70123
70124         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70125
70126 2007-03-03  Bruno Haible  <bruno@clisp.org>
70127
70128         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70129         * modules/xreadlink (Depends-on): Add unistd.
70130         * modules/xreadlink-with-size (Depends-on): Likewise.
70131
70132 2007-03-03  Bruno Haible  <bruno@clisp.org>
70133
70134         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70135         extracted from gt_FUNC_SETENV.
70136         (gt_FUNC_SETENV): Remove macro.
70137         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70138         remove gt_FUNC_SETENV.
70139
70140 2007-03-03  Bruno Haible  <bruno@clisp.org>
70141
70142         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70143         ENABLE_RELOCATABLE here.
70144         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70145
70146 2007-03-03  Bruno Haible  <bruno@clisp.org>
70147
70148         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70149         * tests/test-rbtreehash_list.c: Include progname.h.
70150         (main): Call set_program_name.
70151
70152         * modules/rbtree-oset-tests (Depends-on): Add progname.
70153         * tests/test-rbtree_oset.c: Include progname.h.
70154         (main): Call set_program_name.
70155
70156         * modules/rbtree-list-tests (Depends-on): Add progname.
70157         * tests/test-rbtree_list.c: Include progname.h.
70158         (main): Call set_program_name.
70159
70160         * modules/linked-list-tests (Depends-on): Add progname.
70161         * tests/test-linked_list.c: Include progname.h.
70162         (main): Call set_program_name.
70163
70164 2007-03-03  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70167         All uses of __restrict changed to _Restrict_.
70168         * lib/glob_.h (__restrict): Remove macro.
70169
70170 2007-03-02  Bruno Haible  <bruno@clisp.org>
70171
70172         * modules/gettext (configure.ac): Require gettext infrastructure
70173         from version 0.16.1.
70174
70175 2007-03-02  Bruno Haible  <bruno@clisp.org>
70176
70177         * modules/linkedhash-list-tests (Depends-on): Add progname.
70178         * tests/test-linkedhash_list.c: Include progname.h.
70179         (main): Call set_program_name.
70180
70181         * modules/carray-list-tests (Depends-on): Add progname.
70182         * tests/test-carray_list.c: Include progname.h.
70183         (main): Call set_program_name.
70184
70185         * modules/avltreehash-list-tests (Depends-on): Add progname.
70186         * tests/test-avltreehash_list.c: Include progname.h.
70187         (main): Call set_program_name.
70188
70189         * modules/avltree-oset-tests (Depends-on): Add progname.
70190         * tests/test-avltree_oset.c: Include progname.h.
70191         (main): Call set_program_name.
70192
70193         * modules/avltree-list-tests (Depends-on): Add progname.
70194         * tests/test-avltree_list.c: Include progname.h.
70195         (main): Call set_program_name.
70196
70197         * modules/array-oset-tests (Depends-on): Add progname.
70198         * tests/test-array_oset.c: Include progname.h.
70199         (main): Call set_program_name.
70200
70201         * modules/array-list-tests (Depends-on): Add progname.
70202         * tests/test-array_list.c: Include progname.h.
70203         (main): Call set_program_name.
70204
70205         * modules/argp-tests (Depends-on): Add progname.
70206         * tests/test-argp.c: Include argp.h first. Include progname.h.
70207         (main): Call set_program_name.
70208
70209 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70210
70211         * doc/gnulib-tool.texi (Initial import): Reword description of
70212         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70213         limited effect even if defined after the first system include.
70214
70215 2007-03-01  Bruno Haible  <bruno@clisp.org>
70216
70217         * build-aux/config.libpath: Update to libtool-1.5.22.
70218         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70219
70220 2007-03-01  Bruno Haible  <bruno@clisp.org>
70221
70222         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70223         foo_CFLAGS.
70224         Reported by Ralf Wildenhues.
70225
70226 2007-03-01  Bruno Haible  <bruno@clisp.org>
70227
70228         * build-aux/install-reloc: Remove object files left over by some
70229         compilers.
70230         Reported by Ralf Wildenhues.
70231
70232 2007-03-01  Bruno Haible  <bruno@clisp.org>
70233
70234         * build-aux/install-reloc: Break long lines.
70235
70236 2007-03-01  Bruno Haible  <bruno@clisp.org>
70237
70238         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70239         Reported by Ralf Wildenhues.
70240
70241 2007-03-01  Bruno Haible  <bruno@clisp.org>
70242
70243         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70244         include ordering constraints.
70245
70246 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70250         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70251         as another example.
70252         * lib/time_.h: Fix misspelling.
70253         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70254         Require gl_HEADER_TIME_H_DEFAULTS.
70255         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70256         * m4/time_r.m4 (gl_TIME_R): Likewise.
70257         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70258
70259 2007-03-01  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70262         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70263
70264 2007-03-01  Jim Meyering  <jim@meyering.net>
70265
70266         * modules/xreadlink (Maintainer): Add my name.
70267         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70268
70269 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70270             Bruno Haible  <bruno@clisp.org>
70271
70272         * build-aux/install-reloc: Compile also c-ctype.c.
70273         * build-aux/relocatable.sh.in: New file.
70274         * doc/relocatable.texi: New file.
70275         * doc/relocatable-maint.texi: New file.
70276         * doc/gnulib.texi: Include relocatable-maint.texi.
70277         * lib/progreloc.c: Include unistd.h unconditionally.
70278         * lib/relocwrapper.c: Include unistd.h unconditionally.
70279         Include c-ctype.h.
70280         (add_dotbin): Use c_tolower.
70281         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70282         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70283         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70284         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70285         to m4/relocatable-lib.m4.
70286         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70287         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70288         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70289         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70290         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70291         * modules/relocatable: New file.
70292         * modules/relocatable-lib: New file.
70293         * modules/relocatable-script: New file.
70294
70295 2007-02-28  Bruno Haible  <bruno@clisp.org>
70296
70297         Import --enable-relocatable infrastructure.
70298         * build-aux/config.libpath: New file, from GNU gettext.
70299         * build-aux/install-reloc: New file, from GNU gettext.
70300         * build-aux/reloc-ldflags: New file, from GNU gettext.
70301         * lib/relocatable.h: New file, from GNU gettext.
70302         * lib/relocatable.c: New file, from GNU gettext.
70303         * lib/relocwrapper.c: New file, from GNU gettext.
70304         * m4/relocatable.m4: New file, from GNU gettext.
70305
70306 2007-02-28  Bruno Haible  <bruno@clisp.org>
70307
70308         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70309
70310         * modules/xreadlink: New file, from GNU gettext with modifications.
70311         * lib/xreadlink.c: New file, from GNU gettext.
70312         * lib/xreadlink.h: Add comments.
70313         (xreadlink): New declaration.
70314
70315         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70316         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70317         lib/xreadlink-with-size.c.
70318         (configure.ac): Remove gl_XREADLINK invocation.
70319         (Makefile.am): Augment lib_SOURCES.
70320         * m4/xreadlink.m4: Remove file.
70321         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70322         (xreadlink_with_size): Renamed from xreadink.
70323         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70324         * modules/canonicalize (Depends-on): Replace xreadlink with
70325         xreadlink-with-size.
70326         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70327
70328 2007-02-25  Jim Meyering  <jim@meyering.net>
70329
70330         * build-aux/announce-gen: When complaining about excess arguments,
70331         list them.
70332
70333 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70334
70335         * README: Document signed integer overflow situation more
70336         accurately.
70337
70338 2007-02-25  Bruno Haible  <bruno@clisp.org>
70339
70340         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70341         'a' or 'A' conversion.
70342
70343 2007-02-25  Bruno Haible  <bruno@clisp.org>
70344
70345         * modules/filename: Renamed from modules/pathname.
70346         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70347         lib/concatpath.c with lib/concat-filename.c.
70348         (Makefile.am): Update.
70349         (Include): Replace pathname.h with filename.h.
70350         * lib/filename.h: Renamed from lib/pathname.h.
70351         (concatenated_filename): Renamed from concatenated_pathname.
70352         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70353         (concatenated_filename): Renamed from concatenated_pathname.
70354         * lib/findprog.c: Include filename.h instead of pathname.h.
70355         (find_in_path): Update.
70356         * lib/javacomp.c: Include filename.h instead of pathname.h.
70357         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70358         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70359         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70360         is_oldgcj_14_13_usable, is_javac_usable): Update.
70361         * lib/javaexec.c: Include filename.h instead of pathname.h.
70362         (execute_java_class): Update.
70363         * modules/findprog: Update.
70364         * modules/javacomp: Update.
70365         * modules/javaexec: Update.
70366         * MODULES.html.sh (File system functions): Add 'filename', remove
70367         'pathname'.
70368
70369 2007-02-25  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/printf-frexpl-tests: New file.
70372         * tests/test-printf-frexpl.c: New file.
70373
70374         * modules/printf-frexpl: New file.
70375         * lib/printf-frexpl.h: New file.
70376         * lib/printf-frexpl.c: New file.
70377         * m4/printf-frexpl.m4: New file.
70378
70379 2007-02-25  Bruno Haible  <bruno@clisp.org>
70380
70381         * modules/printf-frexp-tests: New file.
70382         * tests/test-printf-frexp.c: New file.
70383
70384         * modules/printf-frexp: New file.
70385         * lib/printf-frexp.h: New file.
70386         * lib/printf-frexp.c: New file.
70387         * m4/printf-frexp.m4: New file.
70388
70389 2007-02-25  Bruno Haible  <bruno@clisp.org>
70390
70391         Assume automake >= 1.10 for the tests.
70392         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70393         * modules/arctwo-tests: Likewise.
70394         * modules/argp-tests: Likewise.
70395         * modules/avltree-list-tests: Likewise.
70396         * modules/avltree-oset-tests: Likewise.
70397         * modules/avltreehash-list-tests: Likewise.
70398         * modules/carray-list-tests: Likewise.
70399         * modules/crc-tests: Likewise.
70400         * modules/des-tests: Likewise.
70401         * modules/gc-arcfour-tests: Likewise.
70402         * modules/gc-arctwo-tests: Likewise.
70403         * modules/gc-des-tests: Likewise.
70404         * modules/gc-hmac-md5-tests: Likewise.
70405         * modules/gc-hmac-sha1-tests: Likewise.
70406         * modules/gc-md2-tests: Likewise.
70407         * modules/gc-md4-tests: Likewise.
70408         * modules/gc-md5-tests: Likewise.
70409         * modules/gc-pbkdf2-sha1-tests: Likewise.
70410         * modules/gc-rijndael-tests: Likewise.
70411         * modules/gc-sha1-tests: Likewise.
70412         * modules/gc-tests: Likewise.
70413         * modules/getaddrinfo-tests: Likewise.
70414         * modules/hmac-md5-tests: Likewise.
70415         * modules/hmac-sha1-tests: Likewise.
70416         * modules/linked-list-tests: Likewise.
70417         * modules/linkedhash-list-tests: Likewise.
70418         * modules/lock-tests: Likewise.
70419         * modules/md2-tests: Likewise.
70420         * modules/md4-tests: Likewise.
70421         * modules/md5-tests: Likewise.
70422         * modules/rbtree-list-tests: Likewise.
70423         * modules/rbtree-oset-tests: Likewise.
70424         * modules/rbtreehash-list-tests: Likewise.
70425         * modules/read-file-tests: Likewise.
70426         * modules/rijndael-tests: Likewise.
70427         * modules/stdint-tests: Likewise.
70428         * modules/tls-tests: Likewise.
70429
70430 2007-02-24  Bruno Haible  <bruno@clisp.org>
70431
70432         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70433         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70434         function; instead check whether isnan with a double argument links.
70435         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70436         function; instead check whether isnan with a 'long double' argument
70437         links.
70438         Reported by Eric Blake <ebb9@byu.net>.
70439
70440 2007-02-24  Bruno Haible  <bruno@clisp.org>
70441
70442         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70443         defined.
70444         * lib/isnanl.c: Remove all code. Just include isnan.c.
70445         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70446
70447 2007-02-25  Jim Meyering  <jim@meyering.net>
70448
70449         Avoid conflicting types for 'unsetenv' on FreeBSD.
70450         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70451         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70452         in stdlib.h.
70453
70454 2007-02-24  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/isnanl-nolibm-tests: New file.
70457         * tests/test-isnanl.c: New file.
70458
70459         * modules/isnanl-nolibm: New file.
70460         * lib/isnanl.h: New file.
70461         * lib/isnanl.c: New file.
70462         * m4/isnanl.m4: New file.
70463
70464 2007-02-24  Bruno Haible  <bruno@clisp.org>
70465
70466         * modules/isnan-nolibm-tests: New file.
70467         * tests/test-isnan.c: New file.
70468
70469         * modules/isnan-nolibm: New file.
70470         * lib/isnan.h: New file.
70471         * lib/isnan.c: New file.
70472         * m4/isnan.m4: New file.
70473
70474 2007-02-24  Bruno Haible  <bruno@clisp.org>
70475
70476         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70477         assume that an exponent fits in 20 bits.
70478
70479 2007-02-24  Jim Meyering  <jim@meyering.net>
70480
70481         * m4/regex.m4: Update the description of the configure-time option,
70482         --without-included-regex, to state accurately what the defaults are,
70483         and perhaps to give people an idea why using this option is risky.
70484
70485 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70488         loops on small arguments.  This attempts to avoid the problem
70489         Bruno Haible reported for AIX 4.3.2 in
70490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70491
70492 2007-02-23  Bruno Haible  <bruno@clisp.org>
70493
70494         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70495         Needed for help2man.
70496
70497 2007-02-23  Karl Berry  <karl@gnu.org>
70498
70499         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70500         exists, foo.h should be cvs-ignored, not committed.
70501
70502 2007-02-23  Eric Blake  <ebb9@byu.net>
70503
70504         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70505         * lib/stat-time.h (includes): Likewise.
70506         * lib/utimecmp.c (includes): Likewise.
70507         * lib/utimens.h (includes): Likewise.
70508         * lib/getdate.y (includes): Also include "timespec.h" for use
70509         internal to the module.
70510         * modules/utimens (Depends-on): Revert yesterday's patch.
70511         * modules/nanosleep (Depends-on): Add missing dependency.
70512
70513 2007-02-22  Bruno Haible  <bruno@clisp.org>
70514
70515         * lib/glob.c: Don't include getlogin_r.h.
70516
70517 2007-02-22  Jim Meyering  <jim@meyering.net>
70518
70519         * modules/utimens (Depends-on): Add timespec, required for
70520         utimens.h's inclusion of timespec.h.
70521
70522 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70523
70524         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70525         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70526         Schwab in
70527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70528         I'll try to think of a better way to fix the Solaris problem.
70529
70530         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70531         like glibc; on Solaris 10, it fails with errno == EINVAL.
70532         POSIX says the behavior is unspecified if the first argument is NULL,
70533         so play it safe and never pass NULL to the system getcwd.
70534
70535 2007-02-21  Jim Meyering  <jim@meyering.net>
70536
70537         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70538         of gettimeofday.  It would conflict with the one now always
70539         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70540         an IRIX 6.5 build failure.
70541
70542 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         Minor fixups to port to Solaris 10 with Sun C 5.8.
70545         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70546         * modules/getcwd (Depends-on): Add dirfd.
70547         * lib/putenv.c (putenv): #undef it.
70548         (rpl_putenv): New decl.
70549         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70550
70551 2007-02-20  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/stdio-tests: New file.
70554         * tests/test-stdio.c: New file.
70555
70556         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70557         (Depends-on): Add stdio.
70558         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70559         (Include): Use <stdio.h> instead of vsnprintf.h.
70560         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70561         HAVE_DECL_VSNPRINTF.
70562         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70563
70564         * modules/snprintf (Files): Remove lib/snprintf.h.
70565         (Depends-on): Add stdio.
70566         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70567         (Include): Use <stdio.h> instead of snprintf.h.
70568         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70569         HAVE_DECL_SNPRINTF.
70570         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70571         * lib/getaddrinfo.c: Likewise.
70572
70573         * modules/stdio: New file.
70574         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70575         * lib/snprintf.h: Remove file.
70576         * lib/vsnprintf.h: Remove file.
70577         * lib/.cppi-disable: Remove snprintf.h.
70578         * m4/stdio_h.m4: New file.
70579         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70580
70581 2007-02-20  Jim Meyering  <jim@meyering.net>
70582
70583         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70584         used by e.g., mingw.  From Bruno Haible.
70585
70586 2007-02-19  Bruno Haible  <bruno@clisp.org>
70587
70588         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70589         warnings.
70590         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70591
70592 2007-02-19  Bruno Haible  <bruno@clisp.org>
70593
70594         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70595         from mingw users.
70596
70597 2007-02-19  Bruno Haible  <bruno@clisp.org>
70598
70599         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70600         warnings.
70601         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70602
70603 2007-02-19  Jim Meyering  <jim@meyering.net>
70604
70605         Don't use FD after a successful "fdopendir (fd)".
70606         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70607         Reset it by calling dirfd on the just-obtained DIR*.
70608
70609         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70610         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70611
70612 2007-02-18  Bruno Haible  <bruno@clisp.org>
70613
70614         * lib/readlink.c: Include <unistd.h>.
70615         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70616         HAVE_READLINK.
70617         * modules/readlink (Depends-on): Add unistd.
70618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70619         (Include): Add <unistd.h>.
70620
70621         * lib/getlogin_r.h: Remove file.
70622         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70623         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70624         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70625         HAVE_DECL_GETLOGIN_R.
70626         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70628         (Include): Use <unistd.h> instead of getlogin_r.h.
70629
70630         * lib/getcwd.h: Remove file.
70631         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70632         * lib/xgetcwd.c: Likewise.
70633         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70634         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70635         * modules/getcwd (Files): Remove lib/getcwd.h.
70636         (Depends-on): Add unistd.
70637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70638         (Include): Use <unistd.h> instad of getcwd.h.
70639
70640         * lib/ftruncate.c: Include <unistd.h> first.
70641         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70642         Set HAVE_FTRUNCATE.
70643         * modules/ftruncate (Depends-on): Add unistd.
70644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70645
70646         * lib/fchdir.c: Include <unistd.h> first.
70647         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70649         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70650         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70651         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70652
70653         * lib/dup2.c: Include <unistd.h> first.
70654         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70655         HAVE_DUP2.
70656         * modules/dup2 (Depends-on): Add unistd.
70657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70658
70659         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70660         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70661         REPLACE_CHOWN. Don't define chown as a macro here.
70662         * modules/chown (Depends-on): Add unistd.
70663         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70664
70665         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70666         Add definition for GL_LINK_WARNING.
70667         (chown, dup2): New declarations.
70668         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70669         link warning.
70670         (ftruncate): New declaration.
70671         (getcwd): New declaration, taken from old getcwd.h.
70672         (getlogin_r): New declaration, taken from old getlogin_r.h.
70673         (readlink): New declaration.
70674         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70675         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70676         (gl_PREREQ_UNISTD): Remove macro.
70677         (gl_UNISTD_MODULE_INDICATOR): New macro.
70678         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70679         many new variables. Don't set UNISTD_H.
70680         * modules/unistd (Description): Change.
70681         (Depends-on): Add link-warning.
70682         (configure.ac): Update.
70683         (Makefile.am): Create unistd.h always. Substitute many new variables
70684         into it.
70685
70686 2007-02-18  Bruno Haible  <bruno@clisp.org>
70687
70688         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70689         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70690         HAVE_GETSUBOPT.
70691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70692         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70693         * lib/getsubopt.h: Remove file.
70694         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70695         (Depends-on): Add stdlib.
70696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70697         (Includes): Use <stdlib.h> instead of getsubopt.h.
70698         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70699         Set HAVE_GETSUBOPT.
70700         * lib/getsubopt.c: Don't include getsubopt.h.
70701
70702 2007-02-18  Bruno Haible  <bruno@clisp.org>
70703
70704         * modules/fchdir (Depends-on): Add dup2.
70705
70706 2007-02-18  Bruno Haible  <bruno@clisp.org>
70707
70708         * lib/stdlib_.h: Handle glibc's special invocation convention
70709         specially.
70710
70711 2007-02-18  Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/stdlib-tests: New file.
70714         * tests/test-stdlib.c: New file.
70715
70716         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70717         (Depends-on): Add stdlib.
70718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70719         (Includes): Use <stdlib.h> instead of mkstemp.h.
70720         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70721         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70722         * lib/mkstemp.c: Don't include mkstemp.h.
70723         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70724         * lib/stdlib--.h: Don't include mkstemp.h.
70725
70726         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70727         (Depends-on): Add stdlib.
70728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70729         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70730         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70731         HAVE_MKDTEMP.
70732         * lib/mkdtemp.c: Don't include mkdtemp.h.
70733         * lib/clean-temp.c: Don't include mkdtemp.h.
70734
70735         * modules/exit (Files): Remove lib/exit.h.
70736         (Depends-on): Add stdlib.
70737         (Makefile.am): Remove lib_SOURCES.
70738         (Include): Use <stdlib.h> instead of exit.h.
70739         * lib/argmatch.c: Don't include exit.h.
70740         * lib/execute.c: Likewise.
70741         * lib/pagealign_alloc.c: Likewise.
70742         * lib/pipe.c: Likewise.
70743         * lib/wait-process.c: Likewise.
70744         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70745         * lib/exitfail.c: Likewise.
70746         * lib/savewd.c: Likewise.
70747         * lib/xsetenv.c: Likewise.
70748
70749         * modules/stdlib: New file.
70750         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70751         and extra comments about mkstemp().
70752         * lib/exit.h: Remove file.
70753         * lib/mkdtemp.h: Remove file.
70754         * lib/mkstemp.h: Remove file.
70755         * m4/stdlib_h.m4: New file.
70756         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70757
70758 2007-02-18  Bruno Haible  <bruno@clisp.org>
70759
70760         * modules/math-tests: New file.
70761         * tests/test-math.c: New file.
70762
70763         * modules/math: New file.
70764         * modules/mathl (Files): Remove lib/mathl.h.
70765         (Depends-on): Add math.
70766         (Makefile.am): Don't mention mathl.h.
70767         (Include): Use <math.h> instead of mathl.h.
70768         * lib/math_.h: New file.
70769         * lib/mathl.h: Remove file.
70770         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70771         mathl.h.
70772         * lib/asinl.c: Likewise.
70773         * lib/atanl.c: Likewise.
70774         * lib/ceill.c: Likewise.
70775         * lib/cosl.c: Likewise.
70776         * lib/expl.c: Likewise.
70777         * lib/floorl.c: Likewise.
70778         * lib/frexpl.c: Likewise.
70779         * lib/ldexpl.c: Likewise.
70780         * lib/logl.c: Likewise.
70781         * lib/sincosl.c: Likewise.
70782         * lib/sinl.c: Likewise.
70783         * lib/sqrtl.c: Likewise.
70784         * lib/tanl.c: Likewise.
70785         * lib/trigl.c: Likewise.
70786         * m4/math_h.m4: New file.
70787         * MODULES.html.sh (Mathematics): Add math.
70788
70789 2007-02-17  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/wctype-tests: New file.
70792         * tests/test-wctype.c: New file.
70793
70794         * modules/wchar-tests: New file.
70795         * tests/test-wchar.c: New file.
70796
70797         * modules/unistd-tests: New file.
70798         * tests/test-unistd.c: New file.
70799
70800         * modules/time-tests: New file.
70801         * tests/test-time.c: New file.
70802
70803         * modules/sysexits-tests: New file.
70804         * tests/test-sysexits.c: New file.
70805
70806         * modules/sys_time-tests: New file.
70807         * tests/test-sys_time.c: New file.
70808
70809         * modules/sys_stat-tests: New file.
70810         * tests/test-sys_stat.c: New file.
70811
70812         * modules/sys_socket-tests: New file.
70813         * tests/test-sys_socket.c: New file.
70814
70815         * modules/sys_select-tests: New file.
70816         * tests/test-sys_select.c: New file.
70817
70818         * modules/string-tests: New file.
70819         * tests/test-string.c: New file.
70820
70821         * modules/stdbool-tests: New file.
70822         * tests/test-stdbool.c: New file.
70823
70824         * modules/netinet_in-tests: New file.
70825         * tests/test-netinet_in.c: New file.
70826
70827         * modules/inttypes-tests: New file.
70828         * tests/test-inttypes.c: New file.
70829
70830         * modules/fcntl-tests: New file.
70831         * tests/test-fcntl.c: New file.
70832
70833         * modules/byteswap-tests: New file.
70834         * tests/test-byteswap.c: New file.
70835
70836         * modules/arpa_inet-tests: New file.
70837         * tests/test-arpa_inet.c: New file.
70838
70839 2007-02-17  Bruno Haible  <bruno@clisp.org>
70840
70841         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70842         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70843         if the corresponding module is not enabled. Emit link warnings if
70844         the function is used nevertheless.
70845         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70846         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70847         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70848         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70849         * modules/inttypes (Depends-on): Add link-warning.
70850         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70851         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70852         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70853         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70854         * modules/imaxdiv (configure.ac): Likewise.
70855         * modules/strtoimax (configure.ac): Likewise.
70856         * modules/strtoumax (configure.ac): Likewise.
70857
70858 2007-02-17  Bruno Haible  <bruno@clisp.org>
70859
70860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70861         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70862         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70863         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70864
70865 2007-02-17  Bruno Haible  <bruno@clisp.org>
70866
70867         * modules/link-warning: New file.
70868         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70869         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70870         * modules/string (Depends-on): Add link-warning.
70871         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70872         string.h.
70873         * MODULES.html.sh (Support for building libraries and executables): Add
70874         link-warning.
70875
70876 2007-02-17  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70879         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70880         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70881         long lines.
70882
70883 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70884             Bruno Haible  <bruno@clisp.org>
70885
70886         * modules/tmpfile: New file.
70887         * lib/tmpfile.c: New file.
70888         * m4/tmpfile.m4: New file.
70889         * MODULES.html.sh (func_all_modules): New section "Input/output".
70890
70891 2007-02-15  Bruno Haible  <bruno@clisp.org>
70892
70893         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70894         (supports_delete_on_close): New function.
70895         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70896
70897 2007-02-14  Bruno Haible  <bruno@clisp.org>
70898
70899         * modules/mbspcasecmp-tests: New file.
70900         * tests/test-mbspcasecmp.sh: New file.
70901         * tests/test-mbspcasecmp.c: New file.
70902
70903         New module mbspcasecmp.
70904         * modules/mbspcasecmp: New file.
70905         * lib/mbspcasecmp.c: New file.
70906         * lib/string_.h (strncasecmp): Change warning message.
70907         (mbspcasecmp): New declaration.
70908         * m4/mbspcasecmp.m4: New file.
70909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70910         GNULIB_MBSPCASECMP.
70911         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70912         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70913
70914 2007-02-14  Bruno Haible  <bruno@clisp.org>
70915
70916         * modules/mbsncasecmp-tests: New file.
70917         * tests/test-mbsncasecmp.sh: New file.
70918         * tests/test-mbsncasecmp.c: New file.
70919
70920         New module mbsncasecmp.
70921         * modules/mbsncasecmp: New file.
70922         * lib/mbsncasecmp.c: New file.
70923         * lib/string_.h (mbsncasecmp): New declaration.
70924         * m4/mbsncasecmp.m4: New file.
70925         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70926         GNULIB_MBSNCASECMP.
70927         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70928         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70929
70930 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70933         Verify that it doesn't overlap with our flags.
70934         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70935         do not have the desired effect in multibyte locales; instead, use
70936         mbscasecmp.
70937         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70938         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70939         we don't require GNU fnmatch ourselves (if our users require it, they
70940         should do so explicitly).
70941
70942         Fix regex code so it doesn't rely on strcasecmp.
70943         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70944         Otherwise, include gnulib's langinfo.h.
70945         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70946         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70947         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70948         * modules/regex (FILES): Remove m4/codeset.m4.
70949         (Depends-on): Add localcharset.  Remove strcase.
70950
70951 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70952
70953         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70954         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70955
70956 2007-02-13  Bruno Haible  <bruno@clisp.org>
70957
70958         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70960
70961 2007-02-12  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70964         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70965         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70966         time warning rather than a link error.
70967
70968 2007-02-12  Bruno Haible  <bruno@clisp.org>
70969
70970         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70973
70974 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70977         args, not 2.
70978
70979 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         New module 'time', so that apps can include <time.h> as per
70982         POSIX and GNU instead of separate include files like time_r.h
70983         and timegm.h.  This implementation tries out a simpler approach
70984         for replacing decls in standard include files (as compared to
70985         the string module), somewhat as an experiment.
70986
70987         * config/srclist.txt: Comment out mktime.c for now.
70988         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70989         since it doesn't apply any more.  Use generic wording instead.
70990         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70991         'time'.
70992         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70993         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70994         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70995         Don't include <sys/types.h>; no longer needed since we assume C89.
70996         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70997         * lib/strftime.c: Likewise.
70998         * lib/time_r.c: Likewise.
70999         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71000         * lib/nanosleep.c: Include <time.h> first, to check interface.
71001         * lib/strptime.c: Likewise.
71002         * lib/time_r.c: Likewise.
71003         * lib/timegm.c: Likewise.
71004         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71005         needed.
71006         * lib/timegm.c: Don't include timegm.h; no longer needed.
71007         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71008         time.h now handles any problems in that area.
71009         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71010         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71011         that time.h defines struct timespec.
71012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71013         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71014         handles that.
71015         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71016         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71017         needed.  Set REPLACE_LOCALTIME.
71018         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71019         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71020         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71021         nanosleep; time_h.m4 now does that.  Don't require
71022         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71023         module handles this now.
71024         * modules/getdate (Depends-on): Remove timespec.  Add time.
71025         * modules/nanosleep (Depends-on): Likewise.
71026         * modules/stat-time (Depends-on): Likewise.
71027         * modules/nanosleep (Include): Include time.h, not timespec.h.
71028         * modules/strptime (Files): Remove lib/strptime.h.
71029         (Depends-on): Add extensions, time.
71030         (Include): Include time.h, not strptime.h.
71031         * modules/time_r (Files): Remove lib/time_r.h.
71032         (Depends-on): Add time.
71033         (Include): Include time.h, not time_r.h.
71034         * modules/timegm: Likewise.
71035         * modules/timespec (Description): Now does timespec-related decls
71036         of our own, instead of struct timespec itself.
71037         (Depends-on): Add time; remove extensions.
71038         (Maintainer): Add self.
71039         * modules/utimecmp (Depends-on): Add time; remove timespec.
71040         * modules/utimens (Depends-on): Likewise.
71041         * modules/xnanosleep (Depends-on): Likewise.
71042
71043 2007-02-11  Bruno Haible  <bruno@clisp.org>
71044
71045         * lib/c-strstr.c: Include allocsa.h.
71046         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71047         * lib/c-strcasestr.c: Include allocsa.h.
71048         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71049         * lib/strcasestr.c: Include allocsa.h.
71050         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71051         * lib/mbsstr.c: Include allocsa.h.
71052         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71053         allocsa/freesa instead of malloc/free.
71054         * lib/mbscasestr.c: Include allocsa.h.
71055         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71056         allocsa/freesa instead of malloc/free.
71057         * modules/c-strstr (Depends-on): Add allocsa.
71058         * modules/c-strcasestr (Depends-on): Likewise.
71059         * modules/strcasestr (Depends-on): Likewise.
71060         * modules/mbsstr (Depends-on): Likewise.
71061         * modules/mbscasestr (Depends-on): Likewise.
71062
71063 2007-02-11  Bruno Haible  <bruno@clisp.org>
71064
71065         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71066
71067         * modules/mbsspn-tests: New file.
71068         * tests/test-mbsspn.sh: New file.
71069         * tests/test-mbsspn.c: New file.
71070
71071 2007-02-11  Bruno Haible  <bruno@clisp.org>
71072
71073         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71074
71075         * modules/mbspbrk-tests: New file.
71076         * tests/test-mbspbrk.sh: New file.
71077         * tests/test-mbspbrk.c: New file.
71078
71079 2007-02-11  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71082         unneeded cast.
71083
71084         * modules/mbscspn-tests: New file.
71085         * tests/test-mbscspn.sh: New file.
71086         * tests/test-mbscspn.c: New file.
71087
71088 2007-02-11  Bruno Haible  <bruno@clisp.org>
71089
71090         * modules/mbscasecmp-tests: New file.
71091         * tests/test-mbscasecmp.sh: New file.
71092         * tests/test-mbscasecmp.c: New file.
71093
71094 2007-02-11  Bruno Haible  <bruno@clisp.org>
71095
71096         Ensure O(n) worst-case complexity of mbscasestr.
71097         * lib/mbscasestr.c: Include stdbool.h.
71098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71099         functions.
71100         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71101         the bookkeeping indicates that it's worth it.
71102         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71103
71104         * modules/mbscasestr-tests: New file.
71105         * tests/test-mbscasestr1.c: New file.
71106         * tests/test-mbscasestr2.sh: New file.
71107         * tests/test-mbscasestr2.c: New file.
71108         * tests/test-mbscasestr3.sh: New file.
71109         * tests/test-mbscasestr3.c: New file.
71110         * tests/test-mbscasestr4.sh: New file.
71111         * tests/test-mbscasestr4.c: New file.
71112         * m4/locale-tr.m4: New file.
71113
71114 2007-02-11  Bruno Haible  <bruno@clisp.org>
71115
71116         Ensure O(n) worst-case complexity of mbsstr.
71117         * lib/mbsstr.c: Include stdbool.h.
71118         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71119         functions.
71120         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71121         bookkeeping indicates that it's worth it.
71122         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71123
71124         * modules/mbsstr-tests: New file.
71125         * tests/test-mbsstr1.c: New file.
71126         * tests/test-mbsstr2.sh: New file.
71127         * tests/test-mbsstr2.c: New file.
71128         * tests/test-mbsstr3.sh: New file.
71129         * tests/test-mbsstr3.c: New file.
71130         * m4/locale-fr.m4: New file.
71131
71132 2007-02-11  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/mbsrchr.c (mbsrchr): Fix bug.
71135
71136         * modules/mbsrchr-tests: New file.
71137         * tests/test-mbsrchr.sh: New file.
71138         * tests/test-mbsrchr.c: New file.
71139
71140 2007-02-11  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/mbschr.c (mbschr): Fix bug.
71143
71144         * modules/mbschr-tests: New file.
71145         * tests/test-mbschr.sh: New file.
71146         * tests/test-mbschr.c: New file.
71147         * m4/locale-zh.m4: New file.
71148
71149 2007-02-11  Bruno Haible  <bruno@clisp.org>
71150
71151         Support for copying multibyte string iterators.
71152         * lib/mbiter.h: Include <string.h>.
71153         (mbiter_multi_copy): New function.
71154         (mbi_copy): New macro.
71155         * lib/mbuiter.h: Include <string.h>.
71156         (mbuiter_multi_copy): New function.
71157         (mbui_copy): New macro.
71158
71159 2007-02-11  Bruno Haible  <bruno@clisp.org>
71160
71161         New module mbslen.
71162         * modules/mbslen: New file.
71163         * lib/mbslen.c: New file.
71164         * lib/string_.h (mbslen): New declaration.
71165         * m4/mbslen.m4: New file.
71166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71167         GNULIB_MBSLEN.
71168         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71169         * MODULES.html.sh (Internationalization functions): Add mbslen.
71170
71171 2007-02-11  Bruno Haible  <bruno@clisp.org>
71172
71173         Ensure O(n) worst-case complexity of strcasestr substitute.
71174         * lib/strcasestr.c: Include stdbool.h.
71175         (knuth_morris_pratt): New function.
71176         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71177         bookkeeping indicates that it's worth it.
71178         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71179
71180         * modules/strcasestr-tests: New file.
71181         * tests/test-strcasestr.c: New file.
71182
71183 2007-02-11  Bruno Haible  <bruno@clisp.org>
71184
71185         Ensure O(n) worst-case complexity of c_strcasestr.
71186         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71187         (knuth_morris_pratt): New function.
71188         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71189         the bookkeeping indicates that it's worth it.
71190         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71191
71192         * modules/c-strcasestr-tests: New file.
71193         * tests/test-c-strcasestr.c: New file.
71194
71195 2007-02-11  Bruno Haible  <bruno@clisp.org>
71196
71197         Ensure O(n) worst-case complexity of c_strstr.
71198         * lib/c-strstr.c: Include stdbool.h, string.h.
71199         (knuth_morris_pratt): New function.
71200         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71201         bookkeeping indicates that it's worth it.
71202         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71203
71204         * lib/c-strstr.c: Complete rewrite for maintainability.
71205
71206         * modules/c-strstr-tests: New file.
71207         * tests/test-c-strstr.c: New file.
71208
71209 2007-02-11  Bruno Haible  <bruno@clisp.org>
71210
71211         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71212         5.2.1 and earlier, whereby \055 was treated just like the range
71213         delimiter '-'.
71214         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71215
71216 2007-02-08  Bruno Haible  <bruno@clisp.org>
71217
71218         * modules/regex (Depends-on): Add stdbool.
71219         Reported by Dalibor Topic <robilad@kaffe.org>.
71220
71221 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71222
71223         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71224         Prefer returning from main to exiting from it.
71225         Remove unnecessary parens after sizeof.
71226
71227 2007-02-05  Bruno Haible  <bruno@clisp.org>
71228
71229         New module mbssep.
71230         * modules/mbssep: New file.
71231         * lib/mbssep.c: New file.
71232         * lib/string_.h (strsep): Add a conditional link warning.
71233         (mbssep): New declaration.
71234         * m4/mbssep.m4: New file.
71235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71236         GNULIB_MBSSEP.
71237         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71238         * MODULES.html.sh (Internationalization functions): Add mbssep.
71239
71240 2007-02-05  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71243         Optimize search in case of 1 delimiter.
71244
71245 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71246
71247         * lib/acl.h: Include sys/types.h before sys/acl.h.
71248
71249 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71250
71251         Merge upstream fix for glibc bugzilla #3957:
71252
71253         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71254
71255         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71256         bit for RE_HAT_LISTS_NOT_NEWLINE.
71257         (build_charclass_op): Remove bogus comment.
71258
71259 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71260
71261         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71262
71263 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71266         * lib/memmem.c [!defined _LIBC]: Include config.h.
71267
71268 2007-02-04  Bruno Haible  <bruno@clisp.org>
71269
71270         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71271         warning message.
71272
71273 2007-02-04  Bruno Haible  <bruno@clisp.org>
71274
71275         New module mbstok_r.
71276         * modules/mbstok_r: New file.
71277         * lib/mbstok_r.c: New file.
71278         * lib/string_.h (strtok_r): Change argument names to match the
71279         comments. Add a conditional link warning.
71280         (mbstok_r): New declaration.
71281         * m4/mbstok_r.m4: New file.
71282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71283         GNULIB_MBSTOK_R.
71284         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71285         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71286
71287 2007-02-04  Bruno Haible  <bruno@clisp.org>
71288
71289         New module mbsspn.
71290         * modules/mbsspn: New file.
71291         * lib/mbsspn.c: New file.
71292         * lib/string_.h (strspn): Add a conditional link warning.
71293         (mbsspn): New declaration.
71294         * m4/mbsspn.m4: New file.
71295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71296         GNULIB_MBSSPN.
71297         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71298         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71299
71300 2007-02-04  Bruno Haible  <bruno@clisp.org>
71301
71302         New module mbspbrk.
71303         * modules/mbspbrk: New file.
71304         * lib/mbspbrk.c: New file.
71305         * lib/string_.h (strpbrk): Add a conditional link warning.
71306         (mbspbrk): New declaration.
71307         * m4/mbspbrk.m4: New file.
71308         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71309         GNULIB_MBSPBRK.
71310         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71311         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71312
71313 2007-02-04  Bruno Haible  <bruno@clisp.org>
71314
71315         New module mbscspn.
71316         * modules/mbscspn: New file.
71317         * lib/mbscspn.c: New file.
71318         * lib/string_.h (strcspn): Add a conditional link warning.
71319         (mbscspn): New declaration.
71320         * m4/mbscspn.m4: New file.
71321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71322         GNULIB_MBSCSPN.
71323         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71324         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71325
71326 2007-02-04  Bruno Haible  <bruno@clisp.org>
71327
71328         New module mbscasestr, reduced goal of strcasestr.
71329         * modules/mbscasestr: New file.
71330         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71331         (mbscasestr): Renamed from strcasestr.
71332         * lib/strcasestr.c: Don't include mbuiter.h.
71333         (strcasestr): Remove support for multibyte locales.
71334         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71335         Change the conditional link warning.
71336         (mbscasestr): New declaration.
71337         * m4/mbscasestr.m4: New file.
71338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71339         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71340         REPLACE_STRCASESTR.
71341         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71343         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71344         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71345         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71346         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71347         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71348         (Depends-on): Remove mbuiter.
71349         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71350
71351 2007-02-04  Bruno Haible  <bruno@clisp.org>
71352
71353         Simplify handling of strncasecmp.
71354         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71355         the conditional link warning.
71356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71357         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71358         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71359         * modules/strcase (configure.ac): Don't invoke
71360         gl_STRING_MODULE_INDICATOR.
71361         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71362
71363 2007-02-04  Bruno Haible  <bruno@clisp.org>
71364
71365         New module mbscasecmp, reduced goal of strcasecmp.
71366         * modules/mbscasecmp: New file.
71367         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71368         (mbscasecmp): Renamed from strcasecmp.
71369         * lib/strcasecmp.c: Don't include mbuiter.h.
71370         (strcasecmp): Remove support for multibyte locales.
71371         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71372         Change the conditional link warning.
71373         (mbscasecmp): New declaration.
71374         * m4/mbscasecmp.m4: New file.
71375         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71376         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71377         REPLACE_STRCASECMP.
71378         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71380         GNULIB_MBSCASECMP.
71381         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71382         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71383         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71384         (Depends-on): Remove mbuiter.
71385         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71386
71387 2007-02-04  Bruno Haible  <bruno@clisp.org>
71388
71389         New module mbsstr. Remove module strstr.
71390         * modules/mbsstr: New file.
71391         * modules/strstr: Remove file.
71392         * lib/mbsstr.c: Renamed from lib/strstr.c.
71393         (mbsstr): Renamed from strstr.
71394         * lib/string_.h (strstr): Remove declaration. Change the conditional
71395         link warning.
71396         (mbsstr): New declaration.
71397         * m4/mbsstr.m4: New file.
71398         * m4/strstr.m4: Remove file.
71399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71400         REPLACE_STRSTR.
71401         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71402         Don't initialize GNULIB_STRSTR.
71403         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71404         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71405         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71406         (Support for systems lacking ANSI C 89): Remove strstr.
71407
71408 2007-02-04  Bruno Haible  <bruno@clisp.org>
71409
71410         New module mbsrchr.
71411         * modules/mbsrchr: New file.
71412         * lib/mbsrchr.c: New file.
71413         * lib/string_.h (strrchr): Add a conditional link warning.
71414         (mbsrchr): New declaration.
71415         * m4/mbsrchr.m4: New file.
71416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71417         GNULIB_MBSRCHR.
71418         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71419         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71420
71421 2007-02-04  Bruno Haible  <bruno@clisp.org>
71422
71423         New module mbschr.
71424         * modules/mbschr: New file.
71425         * lib/mbschr.c: New file.
71426         * lib/string_.h (strchr): Add a conditional link warning.
71427         (mbschr): New declaration.
71428         * m4/mbschr.m4: New file.
71429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71430         GNULIB_MBSCHR.
71431         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71432         * MODULES.html.sh (Internationalization functions): Add mbschr.
71433
71434 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71437
71438         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71439
71440 2007-02-04  Bruno Haible  <bruno@clisp.org>
71441
71442         New module description section 'configure.ac-early'.
71443         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71444         (func_get_autoconf_early_snippet): New function.
71445         (func_import, func_create_testdir): Use it. Remove special cases for
71446         modules 'extensions' and 'lock'.
71447         * modules/extensions (configure.ac-early): Require
71448         gl_USE_SYSTEM_EXTENSIONS.
71449         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71450
71451 2007-02-04  Bruno Haible  <bruno@clisp.org>
71452
71453         Make use of gcj-4.3's -fsource and -ftarget option.
71454         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71455         and if so try the options -fsource and -ftarget.
71456         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71457         source_version, ftarget_option, target_version arguments.
71458         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71459         (is_envjavac_oldgcj_14_14_usable): Renamed from
71460         is_envjavac_gcj_14_14_usable.
71461         (is_envjavac_oldgcj_14_13_usable): Renamed from
71462         is_envjavac_gcj_14_13_usable.
71463         (is_gcj_present): Update.
71464         (is_gcj_43, is_gcj43_usable): New functions.
71465         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71466         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71467         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71468         try the options -fsource and -ftarget.
71469
71470 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71471
71472         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71473         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71474         larger value.
71475
71476 2007-02-03  Jim Meyering  <jim@meyering.net>
71477
71478         Give tools a better chance to allocate space for very large buffers.
71479         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71480
71481         Make pwd and readlink work also when run with an unreadable parent dir
71482         on systems with openat support.
71483         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71484         provided getcwd function, even when we have openat support.
71485         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71486
71487 2007-02-02  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71490         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71491         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71492         portability problems if one of these functions is only used on specific
71493         platforms.
71494         Reported by Paul Eggert.
71495
71496 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71497
71498         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71499         is causing more trouble than it's curing.
71500         * lib/regex_internal.h (__mempcpy): Remove.
71501         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71502         (and make the code a tad smaller to boot).
71503         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71504
71505 2007-02-02  Jim Meyering  <jim@meyering.net>
71506
71507         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71508         section, not in the Makefile.am: one.
71509
71510 2007-02-02  Eric Blake  <ebb9@byu.net>
71511
71512         * lib/strchrnul.c: Always include config.h first.
71513
71514         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71515         gnulib strstr is not necessary here.
71516
71517 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71518
71519         * m4/socklen.m4: Fix typo.
71520
71521 2007-02-02  Eric Blake  <ebb9@byu.net>
71522
71523         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71524         * modules/netinet_in (Makefile.am): Likewise.
71525
71526 2007-02-01  Bruno Haible  <bruno@clisp.org>
71527
71528         * lib/string_.h (GL_LINK_WARNING): New macro.
71529         (strcasecmp, strstr, strcasestr): If provided by the system,
71530         conditionally define as a macro that leads to a warning instead of to
71531         an error.
71532         (strncasecmp): Conditionally define as a macro that leads to a warning.
71533
71534 2007-02-01  Karl Berry  <karl@gnu.org>
71535
71536         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71537
71538 2007-02-01  Bruno Haible  <bruno@clisp.org>
71539
71540         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71541         renamings.
71542
71543 2007-02-01  Eric Blake  <ebb9@byu.net>
71544
71545         * modules/regex (Depends-on): Revert dependence on mempcpy.
71546         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71547         module's definition of mempcpy.
71548         Reported by Paul Eggert.
71549
71550 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71553         the symbol XYZ before redefining it.  This fixes a problem with
71554         programs that don't use XYZ, when compiled on systems that define
71555         XYZ to something else.
71556
71557 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71560         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71561         writeable to group or other and (2) is intended to have a special
71562         mode bit that is set or cleared.  In such a case, the directory
71563         should be neither group- nor other-writeable until the special
71564         mode bits are right.
71565
71566 2007-01-31  Eric Blake  <ebb9@byu.net>
71567
71568         * modules/mountlist (Depends-on): Add strstr.
71569
71570         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71571         bug.
71572         * modules/string (Makefile.am): Remove redundant replacement.
71573         * modules/regex (Depends-on): Add mempcpy.
71574
71575 2007-01-31  Bruno Haible  <bruno@clisp.org>
71576
71577         New module description field 'Link'.
71578         * gnulib-tool (func_usage): Document --extract-link-directive.
71579         (sed_extract_prog): Recognize 'Link' directive.
71580         (func_get_link_directive): New function.
71581         (func_import): Show summary of link directives.
71582         Handle --extract-link-directive option.
71583         * modules/acl (Link): New section.
71584         * modules/clock-time (Link): New section.
71585         * modules/euidaccess (Link): New section.
71586         * modules/gettext (Link): New section.
71587         * modules/iconv (Link): New section.
71588         * modules/lock (Link): New section.
71589         * modules/nanosleep (Link): New section.
71590         * modules/readline (Link): New section.
71591
71592 2007-01-27  Bruno Haible  <bruno@clisp.org>
71593
71594         Enforce the use of gnulib modules for unportable <string.h> functions.
71595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71596         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71597         (gl_HEADER_STRING_H_BODY): Require it.
71598         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71599         the symbol XYZ to one that gives a link error.
71600         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71601         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71602         * modules/mempcpy (configure.ac): Likewise.
71603         * modules/memrchr (configure.ac): Likewise.
71604         * modules/stpcpy (configure.ac): Likewise.
71605         * modules/stpncpy (configure.ac): Likewise.
71606         * modules/strcase (configure.ac): Likewise.
71607         * modules/strcasestr (configure.ac): Likewise.
71608         * modules/strchrnul (configure.ac): Likewise.
71609         * modules/strdup (configure.ac): Likewise.
71610         * modules/strndup (configure.ac): Likewise.
71611         * modules/strnlen (configure.ac): Likewise.
71612         * modules/strpbrk (configure.ac): Likewise.
71613         * modules/strsep (configure.ac): Likewise.
71614         * modules/strstr (configure.ac): Likewise.
71615         * modules/strtok_r (configure.ac): Likewise.
71616
71617 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71618
71619         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71620
71621 2007-01-30  Jim Meyering  <jim@meyering.net>
71622
71623         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71624
71625 2007-01-29  Bruno Haible  <bruno@clisp.org>
71626
71627         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71628         * lib/execute.c: Likewise.
71629         * lib/pipe.c: Likewise.
71630         * lib/printf-args.h: Likewise.
71631         * lib/printf-args.c: Likewise.
71632         * lib/printf-parse.c: Likewise.
71633         * lib/vasnprintf.c: Likewise.
71634
71635 2007-01-29  Eric Blake  <ebb9@byu.net>
71636
71637         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71638         declaration.
71639
71640 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71641
71642         * lib/strptime.h (strptime): Use 'restrict' for args where
71643         POSIX requires this.
71644         * lib/strptime.c (strptime): Likewise.
71645         Change license notice from LGPL to GPL, since gnulib-tool will
71646         change this as needed.
71647         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71648         defined.
71649         Include "strptime.h" first, to check interface.
71650         Do not #undef _LIBC and _NL_CURRENT.
71651         Do not include <stdlib.h>; no longer needed.
71652         Include "time_r.h" and declare ptime_locale_status
71653         only if _LIBC is not defined.
71654         (__P): Remove unused macro.
71655         (match_string): Bring back glibc version, but use it only if _LIBC
71656         is defined.
71657         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71658         Remove unnecessary assertion and abort() call.
71659         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71660         * m4/strptime.m4: Fix serial number comment.
71661         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71662         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71663         (Depends-on): Add time_r.
71664
71665 2007-01-29  Bruno Haible  <bruno@clisp.org>
71666
71667         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71668         strptime.
71669         * modules/strptime (Depends-on): Add stdbool.
71670         * lib/strptime.h: Include <time.h> always. Add comments.
71671
71672 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71673
71674         * modules/strptime: New file.
71675         * lib/strptime.h: New file.
71676         * lib/strptime.c: New file.
71677         * m4/strptime.m4: New file.
71678
71679 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * MODULES.html.sh: New module mpsort.
71682         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71683
71684         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71685         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71686         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71687         All uses changed.
71688         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71689         All uses changed.
71690         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71691         to _Restrict_.
71692         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71693         the parameter matches the prototype.
71694
71695 2007-01-28  Jim Meyering  <jim@meyering.net>
71696
71697         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71698         sys/time.h here, reverting that part of the previous patch:
71699         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71700
71701 2007-01-28  Bruno Haible  <bruno@clisp.org>
71702
71703         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71704         value of $(SYS_TIME_H).
71705         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71706         remove it conditionally, too. [added by Jim Meyering]
71707         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71709         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71710         GETTIMEOFDAY_REPLACEMENT to 1.
71711
71712 2007-01-28  Bruno Haible  <bruno@clisp.org>
71713
71714         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71715         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71717         Set UNISTD_H instead of UNISTD_H2.
71718         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71719
71720 2007-01-28  Bruno Haible  <bruno@clisp.org>
71721
71722         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71723         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71724
71725 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71726
71727         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71728         (func_create_testdir): Ensure C locale for `grep' and `tr'
71729         character ranges.
71730         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71731         ACLOCAL_AMFLAGS parsing state machine.
71732
71733 2007-01-27  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/unistr/base: Update.
71736
71737 2007-01-27  Bruno Haible  <bruno@clisp.org>
71738
71739         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71740         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71741         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71742         modules/unistr/u32-mbtouc.
71743         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71744         * lib/unistr.h: Update.
71745         * lib/linebreak.c: Update.
71746         * modules/unistr/u32-mbtouc: Renamed from
71747         modules/unistr/u32-mbtouc-safe.
71748         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71749         * lib/unistr.h: Update.
71750         * lib/unistr/u32-to-u8.c: Update.
71751         * lib/unistr/u32-to-u16.c: Update.
71752
71753 2007-01-27  Bruno Haible  <bruno@clisp.org>
71754
71755         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71756         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71757         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71758         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71759         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71760         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71761         modules/unistr/u16-mbtouc.
71762         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71763         * lib/unistr.h: Update.
71764         * lib/linebreak.c: Update.
71765         * modules/linebreak: Update.
71766         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71767         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71768         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71769         * modules/unistr/u16-mbtouc: Renamed from
71770         modules/unistr/u16-mbtouc-safe.
71771         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71772         * lib/unistr.h: Update.
71773         * lib/unistr/u16-to-u8.c: Update.
71774         * modules/unistr/u16-to-u8: Update.
71775         * lib/unistr/u16-to-u32.c: Update.
71776         * modules/unistr/u16-to-u32: Update.
71777
71778 2007-01-27  Bruno Haible  <bruno@clisp.org>
71779
71780         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71781         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71782         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71783         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71784         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71785         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71786         modules/unistr/u8-mbtouc.
71787         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71788         * lib/unistr.h: Update.
71789         * lib/striconveh.c: Update.
71790         * modules/striconveh: Update.
71791         * lib/linebreak.c: Update.
71792         * modules/linebreak: Update.
71793         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71794         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71795         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71796         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71797         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71798         * lib/unistr.h: Update.
71799         * lib/striconveh.c: Update.
71800         * modules/striconveh: Update.
71801         * lib/unistr/u8-to-u16.c: Update.
71802         * modules/unistr/u8-to-u16: Update.
71803         * lib/unistr/u8-to-u32.c: Update.
71804         * modules/unistr/u8-to-u32: Update.
71805
71806 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71807
71808         Sync from Libtool.
71809         * lib/argz.c: Do not include strings.h nor memory.h, include
71810         string.h unconditionally.  Patch by Simon Josefsson.
71811
71812 2007-01-27  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71815         from gl_HEADER_STRING_H_BODY.
71816         (gl_HEADER_STRING_H_BODY): Require it.
71817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71818         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71819         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71820         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71821         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71822         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71824         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71825         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71828         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71829         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71830         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71831         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71832
71833 2007-01-27  Bruno Haible  <bruno@clisp.org>
71834
71835         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71836         check_PROGRAMS into noinst_PROGRAMS.
71837         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71838         check_PROGRAMS in this case.
71839         (func_import): Set for_test to false.
71840         (func_create_testdir): Set for_test to true.
71841
71842 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71843             Bruno Haible  <bruno@clisp.org>
71844
71845         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71846         (Depends-on): Add string.
71847         (Includes): Use <string.h> instead of strcasestr.h.
71848         * modules/string (Makefile.am): Also substitute the value of
71849         REPLACE_STRCASESTR.
71850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71851         assume strcasestr is declared in <string.h> not <strings.h>. Also
71852         set REPLACE_STRCASESTR.
71853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71854         REPLACE_STRCASESTR.
71855         * lib/strcasestr.h: Remove file.
71856         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71857         * lib/string_.h (strcasestr): New declaration.
71858
71859 2007-01-27  Bruno Haible  <bruno@clisp.org>
71860
71861         * lib/string_.h: Use 'extern'.
71862
71863 2007-01-27  Jim Meyering  <jim@meyering.net>
71864
71865         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71866         of set-but-not-used local, "q".
71867
71868         * lib/mempcpy.c: Include <config.h> before <string.h>.
71869         This fixes a compilation error on HP-UX, due to the system's
71870         "restrict"-using mempcpy prototype.
71871
71872 2007-01-26  Bruno Haible  <bruno@clisp.org>
71873
71874         Small optimization.
71875         * lib/javacomp.c: Include c-strstr.h.
71876          (is_envjavac_gcj): Use c_strstr instead of strstr.
71877         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71878
71879 2007-01-26  Bruno Haible  <bruno@clisp.org>
71880
71881         * MODULES.html.sh (Unicode string functions): Add the new modules.
71882
71883         * modules/uniconv/u32-strconv-to-locale: New file.
71884         * lib/uniconv/u32-strconv-to-locale.c: New file.
71885
71886         * modules/uniconv/u16-strconv-to-locale: New file.
71887         * lib/uniconv/u16-strconv-to-locale.c: New file.
71888
71889         * modules/uniconv/u8-strconv-to-locale: New file.
71890         * lib/uniconv/u8-strconv-to-locale.c: New file.
71891
71892         * modules/uniconv/u32-strconv-from-locale: New file.
71893         * lib/uniconv/u32-strconv-from-locale.c: New file.
71894
71895         * modules/uniconv/u16-strconv-from-locale: New file.
71896         * lib/uniconv/u16-strconv-from-locale.c: New file.
71897
71898         * modules/uniconv/u8-strconv-from-locale: New file.
71899         * lib/uniconv/u8-strconv-from-locale.c: New file.
71900
71901         * modules/uniconv/u32-strconv-to-enc: New file.
71902         * lib/uniconv/u32-strconv-to-enc.c: New file.
71903         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71904         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71905
71906         * modules/uniconv/u16-strconv-to-enc: New file.
71907         * lib/uniconv/u16-strconv-to-enc.c: New file.
71908         * lib/uniconv/u-strconv-to-enc.h: New file.
71909         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71910         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71911
71912         * modules/uniconv/u8-strconv-to-enc: New file.
71913         * lib/uniconv/u8-strconv-to-enc.c: New file.
71914         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71915         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71916
71917         * modules/uniconv/u32-strconv-from-enc: New file.
71918         * lib/uniconv/u32-strconv-from-enc.c: New file.
71919         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71920         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71921
71922         * modules/uniconv/u16-strconv-from-enc: New file.
71923         * lib/uniconv/u16-strconv-from-enc.c: New file.
71924         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71925         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71926
71927         * modules/uniconv/u8-strconv-from-enc: New file.
71928         * lib/uniconv/u8-strconv-from-enc.c: New file.
71929         * lib/uniconv/u-strconv-from-enc.h: New file.
71930         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71931         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71932
71933         * modules/uniconv/u32-conv-from-enc: New file.
71934         * lib/uniconv/u32-conv-from-enc.c: New file.
71935         * modules/uniconv/u32-conv-from-enc-tests: New file.
71936         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71937
71938         * modules/uniconv/u16-conv-from-enc: New file.
71939         * lib/uniconv/u16-conv-from-enc.c: New file.
71940         * lib/uniconv/u-conv-from-enc.h: New file.
71941         * modules/uniconv/u16-conv-from-enc-tests: New file.
71942         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71943
71944         * modules/uniconv/u8-conv-from-enc: New file.
71945         * lib/uniconv/u8-conv-from-enc.c: New file.
71946         * modules/uniconv/u8-conv-from-enc-tests: New file.
71947         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71948
71949         * modules/uniconv/base: New file.
71950         * lib/uniconv.h: New file.
71951
71952 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * doc/gnulib-tool.texi (Initial import): Update to match current
71955         behavior with strdup module.
71956         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71957         * lib/memmem.h: Remove; all uses removed.  This is now done
71958         by <string.h>.
71959         * lib/mempcpy.h: Likewise.
71960         * lib/memrchr.h: Likewise.
71961         * lib/stpcpy.h: Likewise.
71962         * lib/stpncpy.h: Likewise.
71963         * lib/strcase.h: Likewise.
71964         * lib/strchrnul.h: Likewise.
71965         * lib/strdup.h: Likewise.
71966         * lib/strndup.h: Likewise.
71967         * lib/strnlen.h: Likewise.
71968         * lib/strpbrk.h: Likewise.
71969         * lib/strsep.h: Likewise.
71970         * lib/strstr.h: Likewise.
71971         * lib/strtok_r.h: Likewise.
71972         * lib/string_.h: New file.
71973         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71974         Rely on <string.h> instead.
71975         * lib/canon-host.c: Likewise.
71976         * lib/chdir-long.c: Likewise.
71977         * lib/concatpath.c: Likewise.
71978         * lib/exclude.c: Likewise.
71979         * lib/fchdir.c: Likewise.
71980         * lib/getaddrinfo.c: Likewise.
71981         * lib/getcwd.c: Likewise.
71982         * lib/getsubopt.c: Likewise.
71983         * lib/glob.c: Likewise.
71984         * lib/hard-locale.c: Likewise.
71985         * lib/iconvme.c: Likewise.
71986         * lib/javacomp.c: Likewise.
71987         * lib/mempcpy.c: Likewise.
71988         * lib/memrchr.c: Likewise.
71989         * lib/regex_internal.h: Likewise.
71990         * lib/stpncpy.c: Likewise.
71991         * lib/strcasecmp.c: Likewise.
71992         * lib/strchrnul.c: Likewise.
71993         * lib/strdup.c: Likewise.
71994         * lib/striconv.c: Likewise.
71995         * lib/striconveh.c: Likewise.
71996         * lib/striconveha.c: Likewise.
71997         * lib/strncasecmp.c: Likewise.
71998         * lib/strndup.c: Likewise.
71999         * lib/strnlen.c: Likewise.
72000         * lib/strsep.c: Likewise.
72001         * lib/strstr.c: Likewise.
72002         * lib/strtok_r.c: Likewise.
72003         * lib/userspec.c: Likewise.
72004         * lib/w32spawn.h: Likewise.
72005         * lib/xstrndup.c: Likewise.
72006         * lib/mountlist.c (strstr): Remove decl.
72007         * m4/string_h.m4: New file.
72008         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72009         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72010         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72011         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72012         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72013         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72014         Set REPLACE_STRCASECMP if necessary.
72015         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72016         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72017         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72018         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72019         HAVE_DECL_STRDUP if necessary.
72020         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72021         since gl_FUNC_STRNDUP does that now.
72022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72023         Check for decl here...
72024         (gl_PREREQ_STRNLEN): ... not here.
72025         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72026         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72027         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72029         necessary.
72030         * modules/string: New file.
72031         * modules/memmem (Files): Remove special-purpose include file.
72032         (Depends-on): Add string.
72033         (Include): Include <string.h>, not the removed file.
72034         * modules/mempcpy: Likewise.
72035         * modules/memrchr: Likewise.
72036         * modules/stpcpy: Likewise.
72037         * modules/stpncpy: Likewise.
72038         * modules/strcase: Likewise.
72039         * modules/strchrnul: Likewise.
72040         * modules/strdup: Likewise.
72041         * modules/strndup: Likewise.
72042         * modules/strnlen: Likewise.
72043         * modules/strpbrk: Likewise.
72044         * modules/strsep: Likewise.
72045         * modules/strstr: Likewise.
72046         * modules/strtok_r: Likewise.
72047         * tests/test-dirname.c: Don't include "strdup.h", since
72048         <string.h> now suffices.
72049         * tests/test-memmem.c: Don't include "memmem.h", since
72050         <string.h> now suffices.
72051
72052 2007-01-25  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72055         *resultp is 0.
72056
72057         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72058         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72059         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72060         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72061
72062         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72063         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72064         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72065         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72066         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72067         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72068
72069 2007-01-24  Bruno Haible  <bruno@clisp.org>
72070
72071         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72073         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72074         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72075         gl_FUNC_FTS_CORE.
72076         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72077         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72078         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72079         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72080         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72081         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72082         gl_FUNC_FCHOWNAT.
72083         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72084         gl_FUNC_STRFTIME.
72085         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72086         Reported by Ralf Wildenhues.
72087
72088 2007-01-24  Bruno Haible  <bruno@clisp.org>
72089
72090         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72091         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72092         gl_GETADDRINFO.
72093         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72094         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72095         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72096
72097 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72100         Don't use 'exit'; just return from 'main'.
72101         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72102
72103         * lib/fnmatch_.h: Readjust white space and comments to match
72104         glibc, to avoid spurious diffs.
72105
72106 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72107
72108         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72109         2004-12-01 change by Jakub Jelinek, since this code won't compile
72110         if !LIBC.  Problem reported by Bob Proulx.
72111
72112 2007-01-23  Bruno Haible  <bruno@clisp.org>
72113
72114         * lib/striconveh.c: Include c-strcaseeq.h.
72115         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72116         * modules/striconveh (Depends-on): Add c-strcaseeq.
72117
72118 2007-01-23  Bruno Haible  <bruno@clisp.org>
72119
72120         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72121
72122         * modules/c-strcaseeq: New file.
72123         * lib/c-strcaseeq.h: New file.
72124
72125         * modules/streq: New file.
72126         * lib/streq.h: New file.
72127
72128 2007-01-23  Bruno Haible  <bruno@clisp.org>
72129
72130         * modules/striconveha-tests: New file.
72131         * tests/test-striconveha.c: New file.
72132
72133         * lib/striconveha.h: Include <stdbool.h>.
72134         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72135         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72136         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72137         (mem_iconveha): New function.
72138         (str_iconveha_notranslit): Renamed from str_iconveha.
72139         (str_iconveha): New function.
72140         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72141         c-strcase.
72142
72143 2007-01-23  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72146         encodings without forgiving before trying any encoding with handler.
72147         (str_iconveha): Try all encodings without forgiving before trying any
72148         encoding with handler.
72149
72150 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         Import the following changes from libc.
72153
72154         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72155
72156         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72157
72158         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72159
72160         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72161         normal_bracket label.
72162
72163         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72164
72165         [BZ #361]
72166         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72167         to normal_bracket after fetching the next character.
72168
72169 2007-01-22  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72172         argument.
72173         * lib/striconveh.c (iconv_carefully_1): New function.
72174         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72175         argument.
72176         (str_cd_iconveh): Update.
72177         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72178         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72179         * tests/test-striconveh.c (MAGIC): New macro.
72180         (new_offsets): New function.
72181         (main): Test call with and without offsets.
72182
72183 2007-01-22  Bruno Haible  <bruno@clisp.org>
72184
72185         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72186         * modules/sys_select (Makefile.am): Likewise.
72187         * modules/sys_socket (Makefile.am): Likewise.
72188         * modules/sys_time (Makefile.am): Likewise.
72189
72190 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         * modules/gettimeofday (License): Change from GPL to LGPL, since
72193         gettimeofday is a library function.
72194
72195 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72196
72197         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72198
72199 2007-01-21  Bruno Haible  <bruno@clisp.org>
72200
72201         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72202
72203 2007-01-21  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/striconveha: New file.
72206         * lib/striconveha.h: New file.
72207         * lib/striconveha.c: New file.
72208         * MODULES.html.sh (Internationalization functions): Add striconveha.
72209         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72210         string.
72211         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72212
72213 2007-01-21  Bruno Haible  <bruno@clisp.org>
72214
72215         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72216         * lib/striconveh.c (str_iconveh): Likewise.
72217
72218 2007-01-21  Bruno Haible  <bruno@clisp.org>
72219
72220         * lib/striconveh.h (mem_iconveh): New declaration.
72221         * lib/striconveh.c (mem_iconveh): New function.
72222         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72223
72224 2007-01-21  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72227
72228         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72229         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72230         original result buffer.
72231         (str_cd_iconveh): Update.
72232         * tests/test-striconveh.c (main): Update.
72233
72234         * lib/striconv.h (mem_cd_iconv): Change specification.
72235         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72236         result buffer.
72237         (str_cd_iconv): Update.
72238         * tests/test-striconv.c (main): Update.
72239
72240 2007-01-21  Bruno Haible  <bruno@clisp.org>
72241
72242         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72243
72244 2007-01-20  Jim Meyering  <jim@meyering.net>
72245
72246         * lib/userspec.c (parse_with_separator): If a user or group string
72247         starts with "+", skip the corresponding name-to-ID look-up, since
72248         such a look-up must fail: user and group names may not include "+".
72249
72250 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72251
72252         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72253         since we now assume the sys_time module.
72254         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72255         check for sys/time.h; no longer needed.
72256         * modules/poll (Depends-on): Depend on sys_time.
72257
72258 2007-01-18  Bruno Haible  <bruno@clisp.org>
72259
72260         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72261         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72262
72263         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72264         gettimeofday.
72265
72266         * tests/test-gettimeofday.c: Include <time.h>.
72267         (dummy): Remove variable.
72268
72269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72270         gl_HEADER_SYS_TIME_H.
72271         (gl_HEADER_SYS_TIME_H): New macro.
72272
72273         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72274         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72276         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72277         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72279         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72280         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72281         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72282         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72283         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72284
72285         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72286         last change; it caused a compilation error when cross-compiling to
72287         Cygwin.
72288
72289 2007-01-18  Jim Meyering  <jim@meyering.net>
72290
72291         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72292         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72293         than the race-prone "test -d sys || mkdir sys".
72294         (configure.ac): Use AC_PROG_MKDIR_P.
72295         * modules/sys_select: Likewise.
72296         * modules/sys_socket: Likewise.
72297         * modules/sys_time: Likewise.
72298
72299 2007-01-18  Eric Blake  <ebb9@byu.net>
72300
72301         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72302         replace gettimeofday.
72303         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72304         name, to avoid infinite recursion.
72305
72306 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72307
72308         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72309         module sys_time.
72310         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72311         assume timespec.h defines struct timeval.
72312         * lib/settime.c: Likewise.
72313         * lib/utimens.c: Likewise.
72314         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72315         since we now assume the gettimeofday module.
72316         * lib/tempname.c (__gen_tempname): Likewise.
72317         * lib/gettimeofday.h: Remove.
72318         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72319         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72320         Include <time.h>, for 'time()'.
72321         (localtime_buffer_addr): Also use this workaround if
72322         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72323         to simplify the uses.  All uses changed.
72324         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72325         that #undef is inside {}, and 'const' follows type name consistently.
72326         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72327         (gettimeofday): Do not use the maximum possible value for
72328         tv->tv_usec, since that might break usages other than ls.c.
72329         Instead, we'll leave ls.c alone.  This undoes today's patch
72330         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72331         we've never observed the problem but might as well keep the
72332         canary.
72333         * lib/nanosleep.c: Include timespec.h first, for interface check.
72334         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72335         now assume the sys_time module.
72336         * lib/tempname.c: Likewise.
72337         * lib/timespec.h: Likewise.
72338         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72339         needed.
72340         * lib/strftime.c: Likewise.
72341         * lib/timespec.h: Likewise.
72342         * lib/posixtm.c: Include posixtm.h first, for interface check.
72343         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72344         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72345         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72346         * lib/sys_time_.h: New file.
72347         * lib/timespec.h (struct timespec): Use long int, not long.
72348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72349         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72350         Remove obsolescent call to AC_HEADER_TIME.
72351         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72353         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72354         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72355         Likewise.
72356         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72357         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72359         into the sys_time module.  Check for gettimeofday just once.
72360         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72361         for gettimeofday signature to just check the signature.  Merely
72362         compile it, since linking doesn't test signature.  Improve test for
72363         whether gettimeofday.o is actually needed.
72364         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72365         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72366         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72367         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72368         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72369         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72370         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72371         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72372         than worrying about sys/time.h.
72373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72374         Don't bother worrying about TIME_WITH_SYS_TIME.
72375         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72376         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72377         * m4/sys_time_h.m4: New file.
72378         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72379         Don't include sys/time.h.  Return from main rather than exiting.
72380         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72381         all uses changed.
72382         * modules/gethrxtime (Depends-on): Add sys_time.
72383         * modules/gettime (Depends-on): Likewise.
72384         * modules/gettimeofday (Depends-on): Likewise.
72385         * modules/nanosleep (Depends-on): Likewise.
72386         * modules/settime (Depends-on): Likewise.
72387         * modules/tempname (Depends-on): Likewise.
72388         * modules/utimens (Depends-on): Likewise.
72389         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72390         (Include): Change back to <sys/time.h>.
72391         (Maintainer): Add self.
72392         * modules/sys_time: New file.
72393         * modules/tempname (Depends-on): Add gettimeofday.
72394         * tests/test-gettimeofday.c: Include <sys/time.h>
72395         rather than gettimeofday.h.
72396
72397 2007-01-17  Bruno Haible  <bruno@clisp.org>
72398
72399         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72400         the license default to GPL.
72401         (func_create_testdir): Don't complain if a module is LGPL and its
72402         tests module depends on GPLed modules.
72403
72404 2007-01-17  Bruno Haible  <bruno@clisp.org>
72405
72406         * lib/gettimeofday.c (gettimeofday): Add code for the case
72407         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72408         maximum possible value for tv->tv_usec, rather than the minimum one.
72409
72410 2005-10-08  Martin Lambers  <marlam@marlam.de>
72411 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72412 2007-01-16  Bruno Haible  <bruno@clisp.org>
72413
72414         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72415         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72416         gl_FUNC_GETTIMEOFDAY.
72417         (Include): Add gettimeofday.h.
72418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72419         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72420         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72421         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72422         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72423         * lib/gettimeofday.h: New file.
72424         * lib/gettimeofday.c: Include <sys/timeb.h>.
72425         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72426         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72427         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72428         fall back on time().
72429
72430         * tests/test-gettimeofday.c: New file.
72431         * modules/gettimeofday-tests: New file.
72432
72433 2007-01-16  Eric Blake  <ebb9@byu.net>
72434
72435         * modules/fnmatch (Depends-on): Depend on wchar.
72436         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72437         * m4/fnmatch.m4: Likewise.
72438         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72439         * m4/mbchar.m4: Likewise.
72440         * modules/mbswidth (Depends-on): Depend on wchar.
72441         * lib/mbswidth.c: Assume <wchar.h>.
72442         * m4/mbswidth.m4: Likewise.
72443         * modules/quotearg (Depends-on): Depend on wchar.
72444         * lib/quotearg.c: Assume <wchar.h>.
72445         * m4/quotearg.m4: Likewise.
72446         * modules/regex (Depends-on): Depend on wchar.
72447         * lib/regex_internal.h: Assume <wchar.h>.
72448         * m4/regex.m4: Likewise.
72449         * modules/stdint (Depends-on): Depend on wchar.
72450         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72451         * m4/stdint.m4: Likewise.
72452         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72453         * modules/strftime (Depends-on): Depend on wchar.
72454         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72455         * modules/strtol (Depends-on): Depend on wchar.
72456         * lib/strtol.c: Assume <wchar.h>.
72457         * modules/wcwidth (Depends-on): Depend on wchar.
72458         * lib/wcwidth.h: Assume <wchar.h>.
72459         * m4/wcwidth.m4: Likewise.
72460
72461 2007-01-16  Bruno Haible  <bruno@clisp.org>
72462
72463         * modules/csharpexec-script: New, created from...
72464         * modules/csharpexec: ... this.
72465
72466 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72467
72468         * modules/javaexec-script: New, created from...
72469         * modules/javaexec: ... this.
72470
72471 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72472
72473         * modules/poll (Dependencies): Add sys_select.
72474
72475 2007-01-15  Jim Meyering  <jim@meyering.net>
72476
72477         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72478         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72479         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72480         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72481
72482 2007-01-15  Bruno Haible  <bruno@clisp.org>
72483
72484         * modules/striconveh: New file.
72485         * lib/striconveh.h: New file.
72486         * lib/striconveh.c: New file.
72487         * MODULES.html.sh (Internationalization functions): Add striconveh.
72488
72489         * modules/striconveh-tests: New file.
72490         * tests/test-striconveh.c: New file.
72491
72492 2007-01-15  Bruno Haible  <bruno@clisp.org>
72493
72494         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72495         not from GNU libiconv or GNU libc.
72496
72497 2007-01-15  Bruno Haible  <bruno@clisp.org>
72498
72499         * doc/gnulib-intro.texi (Copyright): Explain the different license
72500         terms for module descriptions, autoconf macros, tests, documentation.
72501
72502 2007-01-14  Bruno Haible  <bruno@clisp.org>
72503
72504         * modules/striconv-tests: New file.
72505         * tests/test-striconv.c: New file.
72506
72507 2007-01-14  Bruno Haible  <bruno@clisp.org>
72508
72509         * modules/iconv-tests: New file.
72510         * tests/test-iconv.c: New file.
72511
72512 2007-01-14  Bruno Haible  <bruno@clisp.org>
72513
72514         * gnulib-tool (func_get_license): For test modules, use the license of
72515         the main module.
72516
72517 2007-01-14  Bruno Haible  <bruno@clisp.org>
72518
72519         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72520         if iconv is found to exist.
72521
72522 2007-01-14  Bruno Haible  <bruno@clisp.org>
72523
72524         * modules/c-ctype-tests: New file.
72525         * tests/test-c-ctype.c: New file.
72526
72527 2007-01-14  Bruno Haible  <bruno@clisp.org>
72528
72529         * modules/binary-io-tests: New file.
72530         * tests/test-binary-io.sh: New file.
72531         * tests/test-binary-io.c: New file.
72532
72533 2007-01-14  Bruno Haible  <bruno@clisp.org>
72534
72535         * modules/array-oset-tests: New file.
72536         * tests/test-array_oset.c: New file.
72537
72538 2007-01-14  Bruno Haible  <bruno@clisp.org>
72539
72540         * modules/array-list-tests: New file.
72541         * tests/test-array_list.c: New file.
72542
72543 2007-01-14  Bruno Haible  <bruno@clisp.org>
72544
72545         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72546         and make.
72547         Reported by Simon Josefsson in
72548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72549
72550 2007-01-14  Bruno Haible  <bruno@clisp.org>
72551
72552         * modules/allocsa-tests: New file.
72553         * tests/test-allocsa.c: New file.
72554
72555 2007-01-14  Bruno Haible  <bruno@clisp.org>
72556
72557         * modules/fchdir (Depends-on): Add absolute-header.
72558         * modules/unistd (Depends-on): Likewise.
72559
72560 2006-12-30  Bruno Haible  <bruno@clisp.org>
72561
72562         * modules/fchdir: New file.
72563         * modules/unistd (Files): Add lib/unistd_.h.
72564         (Makefile.am): Generate unistd.h from unistd_.h.
72565         * lib/fchdir.c: New file.
72566         * lib/dirent_.h: New file.
72567         * lib/unistd_.h: New file.
72568         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72569         * m4/fchdir.m4: New file.
72570         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72571         (gl_HEADER_UNISTD): Invoke it.
72572         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72573         function.
72574         * lib/backupfile.c (opendir, closedir): Undefine.
72575         * lib/chown.c (open, close): Undefine.
72576         * lib/clean-temp.c (open, close): Undefine.
72577         * lib/copy-file.c (open, close): Undefine.
72578         * lib/execute.c (open, close): Undefine.
72579         * lib/fsusage.c (open, close): Undefine.
72580         * lib/gc-gnulib.c (open, close): Undefine.
72581         * lib/getcwd.c (opendir, closedir): Undefine.
72582         * lib/glob.c (opendir, closedir): Undefine.
72583         * lib/javacomp.c (open, close): Undefine.
72584         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72585         * lib/openat-proc.c (open, close): Undefine.
72586         * lib/pagealign_alloc.c (open, close): Undefine.
72587         * lib/pipe.c (open, close): Undefine.
72588         * lib/progreloc.c (open, close): Undefine.
72589         * lib/savedir.c (opendir, closedir): Undefine.
72590         * lib/utime.c (open, close): Undefine.
72591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72592
72593 2007-01-10  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72596
72597 2007-01-12  Eric Blake  <ebb9@byu.net>
72598
72599         Provide a robust <wchar.h>.  Further simplifications are now
72600         possible in other modules, but not included here.
72601         * modules/wchar: New module.
72602         * m4/wchar.m4: New file.
72603         * lib/wchar_.h: Likewise.
72604         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72605         of the new module.
72606         * MODULES.html.sh (Extended multibyte and wide character utilities):
72607         New section.
72608
72609 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72612         to a reasonable default for memory allocation.
72613         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72614         file system that reports garbage st_size values for symlinks.
72615         Problem reported by Liyang Hu.
72616
72617 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72618
72619         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72620         Emacs .#* auto-save files).
72621
72622 2007-01-11  Bruno Haible  <bruno@clisp.org>
72623
72624         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72625         directory.
72626
72627 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         Use @...@ consistently in lib/wctype_.h.
72630         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72631         on it being set to 1 or 0.
72632         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72633         go back to AC_SUBSTing it.
72634         * modules/wctype (Makefile.am): Undo previous change.
72635
72636 2007-01-10  Eric Blake  <ebb9@byu.net>
72637
72638         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72639         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72640         * modules/wctype (Makefile.am): Likewise.
72641         Reported by Chris McGuire.
72642
72643 2007-01-10  Jim Meyering  <jim@meyering.net>
72644
72645         fts.c: a small readability/maintainability improvement
72646         * lib/fts.c (fts_read): Make this code slightly more readable and
72647         maintainable by hoisting the "sp->fts_cur = p" assignments to
72648         immediately follow the statements that set P.  Derived from
72649         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72650
72651 2007-01-10  Eric Blake  <ebb9@byu.net>
72652
72653         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72654         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72656         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72657         Reported by Chris McGuire.
72658
72659 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72660
72661         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72662         in sed script.
72663
72664 2007-01-09  Bruno Haible  <bruno@clisp.org>
72665
72666         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72667         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72668         variables.
72669         (func_module): Use them.
72670
72671 2007-01-09  Bruno Haible  <bruno@clisp.org>
72672
72673         * modules/unistr/base: New file.
72674         * lib/unistr.h: New file.
72675
72676         * modules/unistr/u8-to-u16: New file.
72677         * lib/unistr/u8-to-u16.c: New file.
72678
72679         * modules/unistr/u8-to-u32: New file.
72680         * lib/unistr/u8-to-u32.c: New file.
72681
72682         * modules/unistr/u16-to-u8: New file.
72683         * lib/unistr/u16-to-u8.c: New file.
72684
72685         * modules/unistr/u16-to-u32: New file.
72686         * lib/unistr/u16-to-u32.c: New file.
72687
72688         * modules/unistr/u32-to-u8: New file.
72689         * lib/unistr/u32-to-u8.c: New file.
72690
72691         * modules/unistr/u32-to-u16: New file.
72692         * lib/unistr/u32-to-u16.c: New file.
72693
72694         * modules/unistr/u8-check: New file.
72695         * modules/unistr/u16-check: New file.
72696         * modules/unistr/u32-check: New file.
72697         * lib/unistr/u8-check.c: New file.
72698         * lib/unistr/u16-check.c: New file.
72699         * lib/unistr/u32-check.c: New file.
72700
72701         * modules/unistr/u8-chr: New file.
72702         * modules/unistr/u16-chr: New file.
72703         * modules/unistr/u32-chr: New file.
72704         * lib/unistr/u8-chr.c: New file.
72705         * lib/unistr/u16-chr.c: New file.
72706         * lib/unistr/u32-chr.c: New file.
72707
72708         * modules/unistr/u8-cmp: New file.
72709         * modules/unistr/u16-cmp: New file.
72710         * modules/unistr/u32-cmp: New file.
72711         * lib/unistr/u8-cmp.c: New file.
72712         * lib/unistr/u16-cmp.c: New file.
72713         * lib/unistr/u32-cmp.c: New file.
72714
72715         * modules/unistr/u8-cpy: New file.
72716         * modules/unistr/u16-cpy: New file.
72717         * modules/unistr/u32-cpy: New file.
72718         * lib/unistr/u8-cpy.c: New file.
72719         * lib/unistr/u16-cpy.c: New file.
72720         * lib/unistr/u32-cpy.c: New file.
72721         * lib/unistr/u-cpy.h: New file.
72722
72723         * modules/unistr/u8-cpy-alloc: New file.
72724         * modules/unistr/u16-cpy-alloc: New file.
72725         * modules/unistr/u32-cpy-alloc: New file.
72726         * lib/unistr/u8-cpy-alloc.c: New file.
72727         * lib/unistr/u16-cpy-alloc.c: New file.
72728         * lib/unistr/u32-cpy-alloc.c: New file.
72729         * lib/unistr/u-cpy-alloc.h: New file.
72730
72731         * modules/unistr/u8-endswith: New file.
72732         * modules/unistr/u16-endswith: New file.
72733         * modules/unistr/u32-endswith: New file.
72734         * lib/unistr/u8-endswith.c: New file.
72735         * lib/unistr/u16-endswith.c: New file.
72736         * lib/unistr/u32-endswith.c: New file.
72737         * lib/unistr/u-endswith.h: New file.
72738
72739         * modules/unistr/u8-mblen: New file.
72740         * modules/unistr/u16-mblen: New file.
72741         * modules/unistr/u32-mblen: New file.
72742         * lib/unistr/u8-mblen.c: New file.
72743         * lib/unistr/u16-mblen.c: New file.
72744         * lib/unistr/u32-mblen.c: New file.
72745
72746         * modules/unistr/u8-mbtouc: New file.
72747         * modules/unistr/u16-mbtouc: New file.
72748         * modules/unistr/u32-mbtouc: New file.
72749         * lib/unistr/u8-mbtouc.c: New file.
72750         * lib/unistr/u16-mbtouc.c: New file.
72751         * lib/unistr/u32-mbtouc.c: New file.
72752
72753         * modules/unistr/u8-mbtouc-safe: New file.
72754         * modules/unistr/u16-mbtouc-safe: New file.
72755         * modules/unistr/u32-mbtouc-safe: New file.
72756         * lib/unistr/u8-mbtouc-safe.c: New file.
72757         * lib/unistr/u16-mbtouc-safe.c: New file.
72758         * lib/unistr/u32-mbtouc-safe.c: New file.
72759
72760         * modules/unistr/u8-move: New file.
72761         * modules/unistr/u16-move: New file.
72762         * modules/unistr/u32-move: New file.
72763         * lib/unistr/u8-move.c: New file.
72764         * lib/unistr/u16-move.c: New file.
72765         * lib/unistr/u32-move.c: New file.
72766         * lib/unistr/u-move.h: New file.
72767
72768         * modules/unistr/u8-next: New file.
72769         * modules/unistr/u16-next: New file.
72770         * modules/unistr/u32-next: New file.
72771         * lib/unistr/u8-next.c: New file.
72772         * lib/unistr/u16-next.c: New file.
72773         * lib/unistr/u32-next.c: New file.
72774
72775         * modules/unistr/u8-prev: New file.
72776         * modules/unistr/u16-prev: New file.
72777         * modules/unistr/u32-prev: New file.
72778         * lib/unistr/u8-prev.c: New file.
72779         * lib/unistr/u16-prev.c: New file.
72780         * lib/unistr/u32-prev.c: New file.
72781
72782         * modules/unistr/u8-set: New file.
72783         * modules/unistr/u16-set: New file.
72784         * modules/unistr/u32-set: New file.
72785         * lib/unistr/u8-set.c: New file.
72786         * lib/unistr/u16-set.c: New file.
72787         * lib/unistr/u32-set.c: New file.
72788         * lib/unistr/u-set.h: New file.
72789
72790         * modules/unistr/u8-startswith: New file.
72791         * modules/unistr/u16-startswith: New file.
72792         * modules/unistr/u32-startswith: New file.
72793         * lib/unistr/u8-startswith.c: New file.
72794         * lib/unistr/u16-startswith.c: New file.
72795         * lib/unistr/u32-startswith.c: New file.
72796         * lib/unistr/u-startswith.h: New file.
72797
72798         * modules/unistr/u8-stpcpy: New file.
72799         * modules/unistr/u16-stpcpy: New file.
72800         * modules/unistr/u32-stpcpy: New file.
72801         * lib/unistr/u8-stpcpy.c: New file.
72802         * lib/unistr/u16-stpcpy.c: New file.
72803         * lib/unistr/u32-stpcpy.c: New file.
72804         * lib/unistr/u-stpcpy.h: New file.
72805
72806         * modules/unistr/u8-stpncpy: New file.
72807         * modules/unistr/u16-stpncpy: New file.
72808         * modules/unistr/u32-stpncpy: New file.
72809         * lib/unistr/u8-stpncpy.c: New file.
72810         * lib/unistr/u16-stpncpy.c: New file.
72811         * lib/unistr/u32-stpncpy.c: New file.
72812         * lib/unistr/u-stpncpy.h: New file.
72813
72814         * modules/unistr/u8-strcat: New file.
72815         * modules/unistr/u16-strcat: New file.
72816         * modules/unistr/u32-strcat: New file.
72817         * lib/unistr/u8-strcat.c: New file.
72818         * lib/unistr/u16-strcat.c: New file.
72819         * lib/unistr/u32-strcat.c: New file.
72820         * lib/unistr/u-strcat.h: New file.
72821
72822         * modules/unistr/u8-strchr: New file.
72823         * modules/unistr/u16-strchr: New file.
72824         * modules/unistr/u32-strchr: New file.
72825         * lib/unistr/u8-strchr.c: New file.
72826         * lib/unistr/u16-strchr.c: New file.
72827         * lib/unistr/u32-strchr.c: New file.
72828
72829         * modules/unistr/u8-strcmp: New file.
72830         * modules/unistr/u16-strcmp: New file.
72831         * modules/unistr/u32-strcmp: New file.
72832         * lib/unistr/u8-strcmp.c: New file.
72833         * lib/unistr/u16-strcmp.c: New file.
72834         * lib/unistr/u32-strcmp.c: New file.
72835
72836         * modules/unistr/u8-strcpy: New file.
72837         * modules/unistr/u16-strcpy: New file.
72838         * modules/unistr/u32-strcpy: New file.
72839         * lib/unistr/u8-strcpy.c: New file.
72840         * lib/unistr/u16-strcpy.c: New file.
72841         * lib/unistr/u32-strcpy.c: New file.
72842         * lib/unistr/u-strcpy.h: New file.
72843
72844         * modules/unistr/u8-strcspn: New file.
72845         * modules/unistr/u16-strcspn: New file.
72846         * modules/unistr/u32-strcspn: New file.
72847         * lib/unistr/u8-strcspn.c: New file.
72848         * lib/unistr/u16-strcspn.c: New file.
72849         * lib/unistr/u32-strcspn.c: New file.
72850         * lib/unistr/u-strcspn.h: New file.
72851
72852         * modules/unistr/u8-strdup: New file.
72853         * modules/unistr/u16-strdup: New file.
72854         * modules/unistr/u32-strdup: New file.
72855         * lib/unistr/u8-strdup.c: New file.
72856         * lib/unistr/u16-strdup.c: New file.
72857         * lib/unistr/u32-strdup.c: New file.
72858         * lib/unistr/u-strdup.h: New file.
72859
72860         * modules/unistr/u8-strlen: New file.
72861         * modules/unistr/u16-strlen: New file.
72862         * modules/unistr/u32-strlen: New file.
72863         * lib/unistr/u8-strlen.c: New file.
72864         * lib/unistr/u16-strlen.c: New file.
72865         * lib/unistr/u32-strlen.c: New file.
72866         * lib/unistr/u-strlen.h: New file.
72867
72868         * modules/unistr/u8-strmblen: New file.
72869         * modules/unistr/u16-strmblen: New file.
72870         * modules/unistr/u32-strmblen: New file.
72871         * lib/unistr/u8-strmblen.c: New file.
72872         * lib/unistr/u16-strmblen.c: New file.
72873         * lib/unistr/u32-strmblen.c: New file.
72874
72875         * modules/unistr/u8-strmbtouc: New file.
72876         * modules/unistr/u16-strmbtouc: New file.
72877         * modules/unistr/u32-strmbtouc: New file.
72878         * lib/unistr/u8-strmbtouc.c: New file.
72879         * lib/unistr/u16-strmbtouc.c: New file.
72880         * lib/unistr/u32-strmbtouc.c: New file.
72881
72882         * modules/unistr/u8-strncat: New file.
72883         * modules/unistr/u16-strncat: New file.
72884         * modules/unistr/u32-strncat: New file.
72885         * lib/unistr/u8-strncat.c: New file.
72886         * lib/unistr/u16-strncat.c: New file.
72887         * lib/unistr/u32-strncat.c: New file.
72888         * lib/unistr/u-strncat.h: New file.
72889
72890         * modules/unistr/u8-strncmp: New file.
72891         * modules/unistr/u16-strncmp: New file.
72892         * modules/unistr/u32-strncmp: New file.
72893         * lib/unistr/u8-strncmp.c: New file.
72894         * lib/unistr/u16-strncmp.c: New file.
72895         * lib/unistr/u32-strncmp.c: New file.
72896
72897         * modules/unistr/u8-strncpy: New file.
72898         * modules/unistr/u16-strncpy: New file.
72899         * modules/unistr/u32-strncpy: New file.
72900         * lib/unistr/u8-strncpy.c: New file.
72901         * lib/unistr/u16-strncpy.c: New file.
72902         * lib/unistr/u32-strncpy.c: New file.
72903         * lib/unistr/u-strncpy.h: New file.
72904
72905         * modules/unistr/u8-strnlen: New file.
72906         * modules/unistr/u16-strnlen: New file.
72907         * modules/unistr/u32-strnlen: New file.
72908         * lib/unistr/u8-strnlen.c: New file.
72909         * lib/unistr/u16-strnlen.c: New file.
72910         * lib/unistr/u32-strnlen.c: New file.
72911         * lib/unistr/u-strnlen.h: New file.
72912
72913         * modules/unistr/u8-strpbrk: New file.
72914         * modules/unistr/u16-strpbrk: New file.
72915         * modules/unistr/u32-strpbrk: New file.
72916         * lib/unistr/u8-strpbrk.c: New file.
72917         * lib/unistr/u16-strpbrk.c: New file.
72918         * lib/unistr/u32-strpbrk.c: New file.
72919         * lib/unistr/u-strpbrk.h: New file.
72920
72921         * modules/unistr/u8-strrchr: New file.
72922         * modules/unistr/u16-strrchr: New file.
72923         * modules/unistr/u32-strrchr: New file.
72924         * lib/unistr/u8-strrchr.c: New file.
72925         * lib/unistr/u16-strrchr.c: New file.
72926         * lib/unistr/u32-strrchr.c: New file.
72927
72928         * modules/unistr/u8-strspn: New file.
72929         * modules/unistr/u16-strspn: New file.
72930         * modules/unistr/u32-strspn: New file.
72931         * lib/unistr/u8-strspn.c: New file.
72932         * lib/unistr/u16-strspn.c: New file.
72933         * lib/unistr/u32-strspn.c: New file.
72934         * lib/unistr/u-strspn.h: New file.
72935
72936         * modules/unistr/u8-strstr: New file.
72937         * modules/unistr/u16-strstr: New file.
72938         * modules/unistr/u32-strstr: New file.
72939         * lib/unistr/u8-strstr.c: New file.
72940         * lib/unistr/u16-strstr.c: New file.
72941         * lib/unistr/u32-strstr.c: New file.
72942         * lib/unistr/u-strstr.h: New file.
72943
72944         * modules/unistr/u8-strtok: New file.
72945         * modules/unistr/u16-strtok: New file.
72946         * modules/unistr/u32-strtok: New file.
72947         * lib/unistr/u8-strtok.c: New file.
72948         * lib/unistr/u16-strtok.c: New file.
72949         * lib/unistr/u32-strtok.c: New file.
72950         * lib/unistr/u-strtok.h: New file.
72951
72952         * modules/unistr/u8-uctomb: New file.
72953         * modules/unistr/u16-uctomb: New file.
72954         * modules/unistr/u32-uctomb: New file.
72955         * lib/unistr/u8-uctomb.c: New file.
72956         * lib/unistr/u16-uctomb.c: New file.
72957         * lib/unistr/u32-uctomb.c: New file.
72958
72959         * MODULES.html.sh (Unicode string functions): Add the new modules.
72960
72961 2007-01-08  Bruno Haible  <bruno@clisp.org>
72962
72963         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72964         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72965         subdirectories.
72966
72967 2007-01-08  Karl Berry  <karl@gnu.org>
72968
72969         * doc/error.texi: mention that main() fns must set program_name
72970         when progname is used.
72971
72972 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72975         WCTYPE_H is empty, for the benefit of builds from non-distclean
72976         directories.  Problem reported by Eric Blake in
72977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72978
72979 2007-01-08  Bruno Haible  <bruno@clisp.org>
72980
72981         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72982         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72983         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72984         PROVIDE_CANONICALIZE_FILENAME_MODE.
72985         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72986
72987 2007-01-08  Bruno Haible  <bruno@clisp.org>
72988
72989         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72990         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72991         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72992         * lib/fts.c: Likewise.
72993         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72994
72995 2006-12-25  Bruno Haible  <bruno@clisp.org>
72996
72997         * modules/utf8-ucs4-safe: New file.
72998         * lib/utf8-ucs4-safe.h: New file.
72999         * lib/unistr/utf8-ucs4-safe.c: New file.
73000
73001         * modules/utf16-ucs4-safe: New file.
73002         * lib/utf16-ucs4-safe.h: New file.
73003         * lib/unistr/utf16-ucs4-safe.c: New file.
73004
73005         * MODULES.html.sh (Unicode string functions): Add the new modules.
73006
73007 2007-01-08  Bruno Haible  <bruno@clisp.org>
73008
73009         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73010         (Depends-on): Add unitypes.
73011         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73012         (u8_mbtouc_aux): Move out to separate file.
73013         (u8_mbtouc): Use ucs4_t, uint8_t types.
73014         * lib/unistr/utf8-ucs4.c: New file.
73015
73016         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73017         (Depends-on): Add unitypes.
73018         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73019         (u16_mbtouc_aux): Move out to separate file.
73020         (u16_mbtouc): Use ucs4_t, uint16_t types.
73021         * lib/unistr/utf16-ucs4.c: New file.
73022
73023         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73024         (Depends-on): Add unitypes.
73025         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73026         (u8_uctomb_aux): Move out to separate file.
73027         (u8_uctomb): Use ucs4_t, uint8_t types.
73028         * lib/unistr/ucs4-utf8.c: New file.
73029
73030         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73031         (Depends-on): Add unitypes.
73032         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73033         (u16_uctomb_aux): Move out to separate file.
73034         (u16_uctomb): Use ucs4_t, uint16_t types.
73035         * lib/unistr/ucs4-utf16.c: New file.
73036
73037 2006-12-25  Bruno Haible  <bruno@clisp.org>
73038
73039         * modules/unitypes: New file.
73040         * lib/unitypes.h: New file.
73041         * MODULES.html.sh (func_all_modules): New section "Unicode string
73042         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73043         this section. Add unitypes.
73044
73045 2007-01-08  Bruno Haible  <bruno@clisp.org>
73046
73047         Avoid variable names that conflict with those from libtool.
73048         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73049         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73050         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73051         library_names_spec to acl_library_names_spec, hardcode_* to
73052         acl_hardcode_*.
73053         Reported by Ralf Wildenhues.
73054
73055 2007-01-08  Bruno Haible  <bruno@clisp.org>
73056
73057         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73058         definition.
73059         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73060         definition.
73061         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73062         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73063         definition.
73064         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73065         definition.
73066         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73067         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73068         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73069         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73070         definition.
73071         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73072         definition.
73073         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73074         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73075         GC_USE_<algorithm>.
73076         * lib/gc-libgcrypt.c: Likewise.
73077         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73078         * modules/gc-arctwo (configure.ac): Likewise.
73079         * modules/gc-des (configure.ac): Likewise.
73080         * modules/gc-hmac-md5 (configure.ac): Likewise.
73081         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73082         * modules/gc-md2 (configure.ac): Likewise.
73083         * modules/gc-md4 (configure.ac): Likewise.
73084         * modules/gc-md5 (configure.ac): Likewise.
73085         * modules/gc-random (configure.ac): Likewise.
73086         * modules/gc-rijndael (configure.ac): Likewise.
73087         * modules/gc-sha1 (configure.ac): Likewise.
73088
73089 2007-01-08  Bruno Haible  <bruno@clisp.org>
73090
73091         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73092         macro definition.
73093         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73094         definition.
73095         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73096         definition.
73097         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73098         * modules/fcntl-safer (configure.ac): Likewise.
73099         * modules/fopen-safer (configure.ac): Likewise.
73100         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73101         GNULIB_FWRITEERROR macro definition.
73102
73103 2007-01-08  Bruno Haible  <bruno@clisp.org>
73104
73105         * m4/gnulib-common.m4: New file.
73106         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73107         (func_get_filelist): Add m4/gnulib-common.m4.
73108
73109 2007-01-08  Bruno Haible  <bruno@clisp.org>
73110
73111         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73112         command.
73113
73114 2007-01-08  Jim Meyering  <jim@meyering.net>
73115
73116         Use a more robust test for a "can't happen" condition.
73117         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73118         narrowed the st_size value.  Presuming the "can't happen" condition
73119         is true, that narrowing could conceivably convert an invalid st_size
73120         value into a valid one.  Instead, use a change based on Matthew
73121         Woehlke's original patch.
73122
73123         Slight readability improvement: use an assert-like macro
73124         in place of literal "abort ()" uses.
73125         * lib/fts.c (fts_assert): Define.
73126         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73127         Use this macro instead of a bare 'abort'.
73128
73129 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73130
73131         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73132         simply work around them.
73133         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73134         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73135         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73136         declaring.
73137         Don't bother to define as macros, since the standard doesn't require it.
73138         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73139         longer worry about IRIX 5.3.
73140         (HAVE_WCTYPE_CTMP_BUG): Remove.
73141
73142 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73143
73144         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73145         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73146         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73147         Problems reported by Georg Schwarz for IRIX 5.3.
73148
73149         * gnulib-tool (autoconf_minversion): Take the maximum version number
73150         found, not the minimum.  Problem reported by James Youngman.
73151
73152 2007-01-03  Karl Berry  <karl@gnu.org>
73153
73154         * doc/error.texi: new file, explaining interaction with progname.
73155         * doc/gnulib.texi: include it.  Update copyright.
73156
73157 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73158
73159         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73160         AC_CANONICAL_HOST, to improve autobuild outputs.
73161
73162 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73163             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73164
73165         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73166         sockets, server sockets, and other file descriptors.  Count errors
73167         to compute the return value.  Reorder the code a bit to be easier
73168         to follow.  Don't set event bits that were not requested (except
73169         POLLERR and POLLHUP).
73170
73171 2007-01-01  Bruno Haible  <bruno@clisp.org>
73172
73173         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73174
73175 2007-01-03  Jim Meyering  <jim@meyering.net>
73176
73177         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73178
73179 2007-01-02  Bruno Haible  <bruno@clisp.org>
73180
73181         * modules/settime (Include): Require timespec.h.
73182         * modules/nanosleep (Include): Likewise.
73183
73184 2007-01-01  Bruno Haible  <bruno@clisp.org>
73185
73186         * gnulib-tool (func_emit_copyright_notice): Bump year.
73187         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73188
73189 2007-01-01  Bruno Haible  <bruno@clisp.org>
73190
73191         Improve support for OpenBSD.
73192         * build-aux/config.rpath (libname_spec): Export.
73193         (library_names_spec): New variable. Export.
73194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73195         library_names_spec from the config.rpath output. Locate shared library
73196         through the name pattern in library_names_spec.
73197
73198 2007-01-01  Eric Blake  <ebb9@byu.net>
73199
73200         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73201
73202 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73205         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73206         assume the C locale, and avoid an "eval" that could cause trouble.
73207         Problem with SORT reported by Bob Proulx.
73208
73209         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73210         Define.  Trivial patch from Henning Nielsen Lund, originally
73211         sent to bug-grep@gnu.org today.
73212
73213 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73216         struct stat.  Problem reported by Henning Nielsen Lund.
73217         * lib/acl.c: Include acl.h first, to check interface.  Don't
73218         bother to include sys/types.h and sys/stat.h again.
73219
73220 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         Import the following change from libc; problem reported by
73223         Sven Verdoolaege.
73224
73225         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73226
73227         [BZ #1373]
73228         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73229
73230 2006-12-28  Jim Meyering  <jim@meyering.net>
73231
73232         * build-aux/announce-gen: Do not assume that the package
73233         builds any of tar.gz, tar.bz2, and .xdelta files.
73234         Suggestion from Simon Josefsson.
73235
73236 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73237
73238         * modules/announce-gen: New file.
73239
73240 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73243         handles its gotchas now.
73244         * lib/mbswidth.c: Likewise.
73245         * lib/wcwidth.h: Likewise.
73246         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73247         and iswcntrl; the wctype module does this stuff now.
73248         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73250         * modules/mbchar (Depends-on): Add wctype.
73251         * modules/mbswidth (Depends-on): Likewise.
73252         * modules/wcwidth (Depends-on): Likewise.
73253
73254 2006-12-27  Eric Blake  <ebb9@byu.net>
73255
73256         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73257         module uses more than what <wctype.h> is required to provide.
73258
73259 2006-12-26  Eric Blake  <ebb9@byu.net>
73260
73261         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73262
73263 2006-12-26  Eric Blake  <ebb9@byu.net>
73264
73265         * modules/absolute-header: New module.
73266         * modules/fcntl (Depends-on): Depend on it.
73267         * modules/inttypes (Depends-on): Likewise.
73268         * modules/stdint (Depends-on): Likewise.
73269         * modules/sys_stat (Depends-on): Likewise.
73270         * modules/wctype (Depends-on): Likewise.
73271         * MODULES.html.sh (Support for building libraries and
73272         executables): Document it.
73273
73274 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * gnulib-tool (SED): Remove, undoing previous change.
73277         The problem was that it broke coreutils on Solaris, because
73278         "sed --posix" leaked into a makefile.
73279         (sed): New alias, if 'alias' and GNU sed.
73280
73281 2006-12-24  Jim Meyering  <jim@meyering.net>
73282
73283         Work around an fchownat bug in glibc-2.4:
73284         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73285         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73286         in spite of the -P option.
73287         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73288         New macros.
73289         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73290         * modules/openat (Files): Add lib/fchownat.c.
73291         * lib/openat.c (fchownat): Don't define here.  Move to...
73292         * lib/fchownat.c: ...this new file.
73293
73294 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73295
73296         Fix bug reported by Bruno Haible in
73297         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73298         where quotearg.c didn't compile on Mac OS X 10.2 because it
73299         lacks <wchar.h> and wint_t.
73300         * lib/wctype_.h (__wctype_wint_t): New type.
73301         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73302         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73303         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73304         Arg is now of type __wctype_wint_t, not wint_t.
73305         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73306         substitute HAVE_WINT_T.
73307         * modules/wctype (Files): Add m4/wint_t.m4.
73308         (wctype.h): Substitute HAVE_WINT_T.
73309
73310 2006-12-23  Bruno Haible  <bruno@clisp.org>
73311
73312         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73313
73314 2006-12-23  Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73317         S_ISLNK.
73318         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73319         mingw.
73320
73321 2006-12-22  Bruno Haible  <bruno@clisp.org>
73322
73323         * lib/copy-file.c: Include acl.h.
73324         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73325         Close the file descriptors only after being done with copy_acl.
73326         * modules/copy-file (Depends-on): Add acl.
73327
73328 2006-12-22  Bruno Haible  <bruno@clisp.org>
73329
73330         * gnulib-tool (SED): New variable.
73331         Use $SED instead of sed everywhere.
73332
73333 2006-12-22  Bruno Haible  <bruno@clisp.org>
73334
73335         * modules/no-c++: New file.
73336         * m4/no-c++.m4: New file.
73337         * MODULES.html.sh (Support for building libraries and executables):
73338         Add no-c++.
73339
73340 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73343         Include <limits.h>, and use its INT_MAX to rewrite the
73344         j loop so that it does not overflow 'int'.  Problem reported by
73345         Ralf Wildenhues in
73346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73347         Play it safe by shifting left by 1 rather than multiplying by 2,
73348         as GCC is less likely to optimize this away when the value
73349         is signed (when it assumes overflow leads to undefined behavior).
73350         Also, don't assume time_t uses two's complement.
73351
73352 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * MODULES.html.sh: New module wctype.
73355         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73356         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73357         <wctype.h>, since the new wctype module should fix this.
73358         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73359         the wctype module should arrange for it.
73360         * lib/regex_internal.h: Likewise.
73361         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73362         since the wctype module should handle this now.
73363         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73364         * modules/fnmatch (Depends-on): Add wctype.
73365         * modules/quotearg (Depends-on): Likewise.
73366         * modules/regex (Depends-on): Likewise.
73367
73368 2006-12-19  Bruno Haible  <bruno@clisp.org>
73369
73370         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73371         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73372
73373 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73374
73375         * modules/savewd (Depends-on): Fix dependency on fcntl.
73376
73377 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73380         conforms to C99, rather than relying on the user's environment
73381         setting of STDINT_H.
73382
73383 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73384         and Eric Blake  <ebb9@byu.net>
73385
73386         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73387         This is more consistent with the other defines here.
73388         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73389         Port to z/OS.  Problem reported by Paul Gilmartin.
73390         Change local vars to use gl_ prefix rather than ac_.
73391         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73392         with other defines.
73393         * modules/double-slash-root: New module.
73394         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73395         (Depends-on): Add double-slash-root.
73396         * MODULES.html.sh (File system functions): Mention new module.
73397
73398 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73399
73400         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73401         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73402         This is for the benefit of gzip, which doesn't do i18n.
73403
73404 2006-12-12  Jim Meyering  <jim@meyering.net>
73405
73406         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73407         Reported by Andreas Schwab <schwab@suse.de>.
73408
73409 2006-12-12  Bruno Haible  <bruno@clisp.org>
73410
73411         Merge these changes.
73412         2006-09-05  Bruno Haible  <bruno@clisp.org>
73413         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73414         iconv_alloc succeeded.
73415         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73416         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73417         test for " && dest " at the end - dest is always != NULL there. Call
73418         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73419         with 2xNULL arguments, also to flush the state storage. Handle the
73420         IRIX iconv behaviour. Realloc the final result, to throw away unused
73421         memory.
73422
73423 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73424
73425         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73426         and fchmodat unconditionally, since glibc 2.4 has them.
73427         Problem reported by Arkadiusz Miskiewicz.
73428
73429 2006-12-10  Bruno Haible  <bruno@clisp.org>
73430
73431         * gnulib-tool (func_import): Show the include files only for those
73432         modules that are copied and specified.
73433         Reported by Karl Berry.
73434
73435 2006-12-08  Jim Meyering  <jim@meyering.net>
73436
73437         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73438         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73439
73440         * build-aux/announce-gen: Add two new options, both optional:
73441         --bootstrap-tools=TOOL_LIST
73442               a comma-separated list of tools, e.g.,
73443               autoconf,automake,bison,gnulib
73444         --gnulib-snapshot-date=DATE
73445               if gnulib is in the bootstrap tool list,
73446               then report this as the snapshot date.
73447               If not specified, use the current date/time.
73448               If you specify a date here, be sure it's UTC.
73449
73450 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73451
73452         * tests/test-argp-2.sh: Fix test to match actual output.
73453         (func_compare): Fix sed script to be portable.
73454
73455 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73458         workaround for this case.  It is not autoconfigured now; offhand
73459         it's hard to see how to autoconfigure it.
73460
73461 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73464         a directory that is about to be chowned.  Such a directory's
73465         initial file permissions should permit the owner only and this
73466         should not be changed until after the chown, since the group and
73467         other bits would be incorrect if they granted permission before
73468         the chown.
73469
73470         Fix porting problem for iswctype reported by Georg Schwarz in:
73471         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73472         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73473         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73474         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73475         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73476
73477 2006-12-03  Jim Meyering  <jim@meyering.net>
73478
73479         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73480         p->fts_statp may not yet be defined.
73481         (fts_read): Instead, set it in the caller, once p->fts_statp is
73482         sure to be defined, and corresponds to a top-level directory.
73483         This bug made du -x fail.  Here's the coreutils test case:
73484         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73485         Reported by Mike Frysinger.
73486
73487 2006-12-01  Jim Meyering  <jim@meyering.net>
73488
73489         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73490         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73491         Reported by Simon Josefsson.
73492
73493 2006-11-30  Jim Meyering  <jim@meyering.net>
73494
73495         * m4/warning.m4: Use the all-permissive copyright notice
73496         recommended by RMS (rather than LGPL).
73497         * m4/vararrays.m4: Likewise.
73498         * m4/flexmember.m4: Likewise.
73499
73500 2006-11-29  Bruno Haible  <bruno@clisp.org>
73501
73502         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73503         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73504         using +=.
73505         Reported by Simon Josefsson <simon@josefsson.org>.
73506
73507 2006-11-28  James Youngman <jay@gnu.org>
73508
73509         * README: Advise users that they might find the bug-gnulib@gnu.org
73510         and autotools-announce@gnu.org mailing lists useful.
73511
73512 2006-11-28  Bruno Haible  <bruno@clisp.org>
73513
73514         * m4/ptrdiff_max.m4: Remove file.
73515
73516 2006-11-21  Bruno Haible  <bruno@clisp.org>
73517
73518         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73519         _AC_COMPUTE_INT.
73520         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73521         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73522         _AC_COMPUTE_INT.
73523         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73524         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73525         _AC_COMPUTE_INT.
73526         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73527
73528 2006-11-28  Jim Meyering  <jim@meyering.net>
73529
73530         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73531         warning from "gcc -Wshadow" about shadowing the builtin.
73532
73533 2006-11-27  Bruno Haible  <bruno@clisp.org>
73534
73535         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73536         _AC_COMPUTE_INT.
73537         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73538
73539 2006-11-27  Bruno Haible  <bruno@clisp.org>
73540             Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73543
73544 2006-11-26  Bruno Haible  <bruno@clisp.org>
73545
73546         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73547         noinst_LTLIBRARIES.
73548
73549 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73550             Bruno Haible  <bruno@clisp.org>
73551
73552         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73553         if compiling with "gcc -ansi".
73554
73555 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73556
73557         Fix some incompatibilities with gcc -ansi -pedantic.
73558         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73559         if compiling pedantically with GCC, unless it's C99 or later.
73560         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73561         it mishandles gcc -ansi -pedantic as well.
73562         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73563         if gcc -pedantic.
73564         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73565         initializers for struct if -pedantic, unless it's C99 or later.
73566
73567 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73568
73569         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73570         Don't close an fd more than once. Identical atimes indicate
73571         success, not failure.
73572
73573 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73574
73575         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73576
73577 2006-11-23  Jim Meyering  <jim@meyering.net>
73578
73579         * build-aux/announce-gen: New file.  From coreutils.
73580
73581 2006-11-22  Jim Meyering  <jim@meyering.net>
73582
73583         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73584         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73585         (fts_read): Use a temporary to narrow the overused st_size member
73586         before using it in a switch statement.  Reported by Matthew Woehlke.
73587
73588         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73589         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73590
73591 2006-11-20  Bruno Haible  <bruno@clisp.org>
73592
73593         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73594         changequote instead of pairs of brackets.
73595         Reported by Andreas Schwab <schwab@suse.de>.
73596
73597 2006-11-21  Jim Meyering  <jim@meyering.net>
73598
73599         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73600         so as to remain compatible with older compilers.
73601         Patch from Michael Deutschmann.
73602
73603 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * MODULES.html.sh (File system functions): Add openat.
73606
73607         * lib/openat.h (rpl_fstatat): New macro, if
73608         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73609         (fstatat): Define to rpl_fstatat under the same conditions,
73610         unless COMPILING_FSTATAT.
73611         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73612         seems to have the bug.
73613         * lib/fstatat.c: New file.
73614         * modules/openat (Files): Add it.
73615
73616 2006-11-20  Bruno Haible  <bruno@clisp.org>
73617
73618         * Makefile: New file.
73619
73620 2006-11-20  Jim Meyering  <jim@meyering.net>
73621
73622         The beginnings of syntax-related checks for gnulib.
73623         * lib/Makefile: New file.
73624         * lib/t-idcache: New script.  Ensure that the two halves of
73625         idcache.c stay in sync.
73626
73627         * lib/idcache.c: Adjust comments in user- and group- portions to
73628         be more accurate, and to be consistent with one another.
73629
73630 2006-11-20  Jim Meyering  <jim@meyering.net>
73631
73632         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73633         continue using the flexible array member (thus, this module performs
73634         half as many malloc calls), with the addition that...
73635         (getgroup, getuser): Consistently record a non-match via an empty
73636         "name" string, and map an empty string match to a NULL return value.
73637         * modules/idcache (Depends-on): Re-add flexmember.
73638
73639         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73640         (getuidbyname, getgroup, getgidbyname): Likewise.
73641
73642         Use cleaner syntax: NULL rather than 0.
73643         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73644
73645 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73648         It mishandled the case where the group was missing.
73649         Problem reported by Greg Schafer.
73650         * modules/idcache: Likewise.
73651
73652 2006-11-18  Jim Meyering  <jim@meyering.net>
73653
73654         * check-module (%exempt_header): Add exception for some
73655         conditionally-included headers.
73656
73657         * modules/i-ring (Depends-on): Add verify.
73658         (License): Change to LGPL.
73659
73660 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73661
73662         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73663         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73664         and inttostr.h.  Use snprintf rather than uinttostr, so that
73665         LGPLed code doesn't depend on GPLed.
73666
73667 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * modules/inline (License): Change from GPL to LGPL.
73670
73671 2006-11-17  Jim Meyering  <jim@meyering.net>
73672
73673         * modules/d-type (License): Switch to LGPL.
73674
73675 2006-11-15  Bruno Haible  <bruno@clisp.org>
73676
73677         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73678
73679 2006-11-15  Eric Blake  <ebb9@byu.net>
73680
73681         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73682         the module dependency.
73683
73684 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73685             Bruno Haible  <bruno@clisp.org>
73686
73687         * gnulib-tool (func_create_testdir): Add license consistency check.
73688
73689 2006-11-15  Eric Blake  <ebb9@byu.net>
73690
73691         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73692         random "(cached)" in configure output.
73693
73694 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73695
73696         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73697         test for conforming inttypes.h is both announced and cached.
73698
73699         * MODULES.html.sh (seen_modules, seen_files): New variables.
73700         (func_module): Rewrite to use a few less gnulib-tool and sed
73701         invocations.  Avoid a couple of quadratic algorithms for ...
73702         (missed_modules, missed_files): ... these, with ...
73703         (func_append, func_tmpdir): ... these new functions, from
73704         gnulib-tool.  Analogously, install traps for cleanup.
73705
73706         * tests/test-gc.c (main): Remove unused variables.
73707         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73708
73709 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * modules/inttostr (License): Change to LGPL.
73712
73713 2006-11-14  Eric Blake  <ebb9@byu.net>
73714
73715         * modules/tempname (License): Change to LGPL.
73716
73717 2006-11-14  Eric Blake  <ebb9@byu.net>
73718
73719         * doc/functions.texi (Function Portability): *printf functions on
73720         Cygwin now understand all POSIX size specifiers.
73721
73722 2006-11-14  Bruno Haible  <bruno@clisp.org>
73723
73724         * modules/c-ctype (License): Change to LGPL.
73725
73726 2006-11-12  Bruno Haible  <bruno@clisp.org>
73727
73728         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73729         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73730         for GNOME libraries, for which the include files are installed in
73731         subdirectories of $prefix/include.
73732
73733 2006-11-12  Bruno Haible  <bruno@clisp.org>
73734
73735         * m4/lib-link.m4: Require at least autoconf-2.54.
73736         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73737         name to underscores for the --with option.
73738
73739 2006-11-13  Bruno Haible  <bruno@clisp.org>
73740
73741         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73742         the tests directory.
73743         Reported by Ralf Wildenhues.
73744
73745 2006-11-13  Bruno Haible  <bruno@clisp.org>
73746
73747         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73748         (func_emit_initmacro_end): Undo the override here.
73749         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73750         Works around the famous automake error in coreutils.
73751
73752 2006-11-13  Eric Blake  <ebb9@byu.net>
73753
73754         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73755         element, not its node.
73756
73757 2006-11-12  Bruno Haible  <bruno@clisp.org>
73758
73759         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73760         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73761
73762 2006-11-12  Bruno Haible  <bruno@clisp.org>
73763
73764         * gnulib-tool: New option --local-symlink.
73765         (func_usage): Document it.
73766         (lsymbolic): New variable.
73767         (func_import, func_create_testdir): If --symlink was not specified,
73768         test whether --local-symlink was specified and the file comes from
73769         the local_gnulib_dir.
73770
73771 2006-11-12  Bruno Haible  <bruno@clisp.org>
73772
73773         * gnulib-tool (func_ln): New function.
73774         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73775
73776 2006-11-12  Bruno Haible  <bruno@clisp.org>
73777
73778         Finish support for source files in subdirectories.
73779         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73780         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73781         AUTOMAKE_OPTIONS.
73782         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73783
73784 2006-11-12  Bruno Haible  <bruno@clisp.org>
73785
73786         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73787         EXTRA_lib_SOURCES augmentation.
73788         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73789
73790 2006-11-12  Jim Meyering  <jim@meyering.net>
73791
73792         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73793         file descriptors.  This also averts a failure on systems with
73794         native openat support when a traversed directory lacks "x" access.
73795         * lib/fts_.h: Include "i-ring.h"
73796         (struct FTS) [fts_fd_ring]: New member.
73797         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73798         (FCHDIR): Add parentheses.
73799         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73800         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73801         When descending, rather than simply closing the previous
73802         fts_cwd_fd value, push that file descriptor onto the ring.
73803         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73804         (fts_open): Initialize the new fd_ring member.
73805         (fts_close): Clear the ring.
73806         (fts_safe_changedir): When possible, use our new fd_ring to skip
73807         the diropen and fstat and dev/ino comparison that would normally
73808         accompany a virtual `chdir ("..")'.
73809
73810         * modules/fts (Depends-on): Add i-ring.
73811         * modules/i-ring: New module.
73812         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73813         * m4/i-ring.m4: New file.
73814
73815 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73816
73817         * gnulib-tool (func_create_testdir): Fix replacement of
73818         `build-aux' in configure.ac.  Run autotools in gltests
73819         subdirectory.
73820         (func_create_testdir, func_create_megatestdir, test): There is
73821         no need for '--force' in most autotool invocations in a new
73822         tree.  Actually fail the whole test if any of the tools, or the
73823         configure or make stages fail.
73824
73825         Sync from Automake.
73826         * build-aux/gnupload: Revert last change.  Add pointer to upload
73827         instructions of the GNU Maintenance Instructions.
73828         Suggestion by Karl Berry.
73829
73830 2006-11-10  Jim Meyering  <jim@meyering.net>
73831
73832         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73833
73834 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73837         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73838         (bind_textdomain_codeset) [! ENABLE_NLS]:
73839         Evaluate all the arguments.  That way, callers get compatible behavior
73840         if the arguments have side effects.  Also, it avoids some GCC
73841         diagnostics in some cases; Joel E. Denny reported problems when Bison
73842         was configured with --enable-gcc-warnigs.
73843
73844 2006-11-10  Jim Meyering  <jim@meyering.net>
73845
73846         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73847         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73848         account.
73849
73850 2006-11-10  Jim Meyering  <jim@meyering.net>
73851
73852         * modules/inline: New file/module.
73853         * modules/xalloc (Files): Remove m4/inline.m4.
73854         (Depends-on): Add inline, instead.
73855         * modules/oset: Likewise.
73856         * modules/list: Likewise.
73857
73858 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73861         Problem reported by Matthew Woehlke.
73862
73863 2006-11-09  Bruno Haible  <bruno@clisp.org>
73864
73865         * lib/tempname.c (gen_tempname): Remove variant that invokes
73866         __gen_tempname.
73867         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73868         __gen_tempname.
73869
73870 2006-11-08  Bruno Haible  <bruno@clisp.org>
73871
73872         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73873         to 'yes' instead of 'cross-compiling'.
73874
73875 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73876
73877         * lib/quotearg.h (quotearg_free): New decl.
73878         * lib/quotearg.c (quotearg_free): New function.
73879         (slot0, nslots, slotvec0, slotvec):
73880         Now file-scope so that quotearg_free can get at them.
73881
73882 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73883
73884         Sync from Automake.
73885         * build-aux/gnupload: Add missing 'gnu' to example URL.
73886         Report by Karl Berry.
73887
73888 2006-11-08  Bruno Haible  <bruno@clisp.org>
73889
73890         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73891         Suggested by Paul Eggert.
73892
73893 2006-11-08  Jim Meyering  <jim@meyering.net>
73894
73895         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73896         It's already included if !_LIBC.
73897         (fts_safe_changedir): Add a comment.
73898
73899 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73902         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73903         Matthew Woehlke.
73904
73905         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73906         definitions up, to avoid colliding with change below.
73907         (static_inline) [HAVE_INLINE]: New macro.
73908         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73909         Provide extern decls when !HAVE_INLINE.  Do not define unless
73910         static_inline is defined, either by us or by xmalloc.c.  Use
73911         static_inline rather than static inline.
73912         (XCALLOC): Optimize sizeof(T) = 1 case.
73913         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73914
73915 2006-11-07  Bruno Haible  <bruno@clisp.org>
73916
73917         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73918         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73919         AC_C_INLINE.
73920         * modules/xalloc (Files): Add m4/inline.m4.
73921
73922 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73923
73924         * README: Fix typo.
73925         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73926         (Miscellanous Notes): ...from this.
73927
73928 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73931         Mention that offsetof should be used instead of sizeof.
73932         From Bruno Haible.
73933
73934 2006-11-07  Bruno Haible  <bruno@clisp.org>
73935
73936         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73937
73938 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73941         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73942         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73943         (gl_tree_add_before, gl_tree_add_after):
73944         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73945         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73946         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73947         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73948         (gl_linked_add_after, gl_linked_add_at): Likewise.
73949         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73950         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73951         (gl_tree_add_before, gl_tree_add_after): Likewise.
73952         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73953         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73954         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73955
73956 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73957
73958         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73959
73960 2006-11-06  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/inline.m4: New file.
73963         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73964         * modules/list (Files): Add m4/inline.m4.
73965         * modules/oset (Files): Likewise.
73966
73967 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * lib/idcache.c: Include <stddef.h>, for offsetof.
73970         (struct userid.name): Change from char * to a flexible array member.
73971         All uses changed.
73972         * modules/idcache (Depends-on): Add flexmember.
73973
73974         * MODULES.html.sh (Core language properties): New module flexmember.
73975         * modules/flexmember, m4/flexmember.m4: New files.
73976
73977         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73978         inline functions that are identical with the old xnmalloc_inline,
73979         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73980         that we can avoid some unnecessary integer multiplications and
73981         divisions in the common case where the element size is known at
73982         compile time.
73983         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73984         needed.
73985         (xnboundedmalloc): Remove.
73986         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73987         arguments, for consistency with rest of this header.
73988         (xcharalloc): Rewrite using XNMALLOC.
73989         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73990         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73991         versions have been moved to lib/xalloc.h and renamed to be the
73992         non-*_inline versions.
73993         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73994         and xnrealloc functions, since those functions are now inline and
73995         now call us.
73996         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73997         renaming described above.
73998         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73999         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74000         captures the dependency in AC_C_INLINE.
74001
74002         New module canonicalize-lgpl, proposed by Charles Wilson in
74003         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74004         with a few small changes afterwards.
74005         * MODULES.html.sh (File system functions): New module
74006         canonicalize-lgpl.
74007         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74008         and canonicalize_file_name.
74009         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74010         * modules/canonicalize-lgpl: New files.
74011
74012 2006-11-05  Bruno Haible  <bruno@clisp.org>
74013
74014         * gnulib-tool (func_import, func_create_testdir): Create directories
74015         also for files in subdirectories of lib/.
74016
74017 2006-11-05  Bruno Haible  <bruno@clisp.org>
74018
74019         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74020         ANSI C compliant.
74021
74022 2006-11-03  Bruno Haible  <bruno@clisp.org>
74023
74024         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74025         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74026         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74027         (xnboundedmalloc): New inline function.
74028         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74029         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74030         xmalloc.
74031         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74032         xmalloc.
74033         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74034         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74035         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74036         xmalloc.
74037         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74038         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74039         xmalloc.
74040         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74041         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74042         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74043         xmalloc.
74044         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74045         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74046         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74047         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74048         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74049         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74050         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74051
74052 2006-11-03  Bruno Haible  <bruno@clisp.org>
74053
74054         * lib/c-ctype.h [C++]: Define functions without name mangling.
74055         * lib/fwriteerror.h [C++]: Likewise.
74056         * lib/gcd.h [C++]: Likewise.
74057         * lib/linebreak.h [C++]: Likewise.
74058
74059 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74062         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74063         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74064         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74065         Check for functions and headers just once.
74066         Check for declaration of canonicalize_file_name.
74067         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74068
74069 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74070
74071         * gnulib-tool (func_import): Fix typo in actioncmd.
74072
74073 2006-11-02  Bruno Haible  <bruno@clisp.org>
74074
74075         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74076         newline sequence in the Makefile.am snippet as a space, like "make"
74077         does.
74078         Reported by Roger Persson <perrog@gmail.com>.
74079
74080 2006-11-01  Bruno Haible  <bruno@clisp.org>
74081
74082         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74083         already declared in <string.h>.
74084         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74085
74086 2006-11-01  Bruno Haible  <bruno@clisp.org>
74087
74088         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74089         * lib/strcase.h: Include <string.h>.
74090         (strcasecmp): Define to rpl_strcasecmp here.
74091
74092 2006-11-01  Bruno Haible  <bruno@clisp.org>
74093
74094         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74095
74096 2006-11-01  Eric Blake  <ebb9@byu.net>
74097
74098         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74099
74100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74101
74102 2006-10-29  Bruno Haible  <bruno@clisp.org>
74103
74104         Make it compile in C++ mode.
74105         * lib/full-write.c (full_rw): Add a cast.
74106
74107 2006-11-01  Bruno Haible  <bruno@clisp.org>
74108
74109         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74110         be POSIX compliant.
74111         Reported by Roger Persson <perrog@gmail.com>.
74112
74113 2006-11-01  Eric Blake  <ebb9@byu.net>
74114
74115         * lib/getopt_.h: Fix comments.
74116
74117 2006-10-31  Eric Blake  <ebb9@byu.net>
74118
74119         * modules/tmpdir (Depends-on): Add sys_stat.
74120         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74121         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74122         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74123         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74124         tempname.
74125
74126 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74127
74128         Avoid some C++ diagnostics reported by Bruno Haible.
74129         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74130         xmalloc.
74131         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74132         (struct slotvec): Move to top level.
74133         (quotearg_n_options): Rewrite to avoid xmalloc.
74134         * lib/xalloc.h (xcharalloc): New function.
74135         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74136         [defined __cplusplus]: Add function template that provides result
74137         type propagation.  This part of the change is from Bruno Haible.
74138
74139 2006-10-29  Bruno Haible  <bruno@clisp.org>
74140
74141         Make it compile in C++ mode.
74142         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74143         * lib/strnlen1.c (strnlen1): Cast memchr result.
74144         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74145         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74146         (create_temp_dir): Rename local variable 'template'.
74147         (compile_csharp_using_sscli): Add cast.
74148         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74149         * lib/findprog.c (find_in_path): Likewise.
74150         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74151         * lib/wait-process.c (register_slave_subprocess): Likewise.
74152
74153 2006-10-22  Bruno Haible  <bruno@clisp.org>
74154
74155         * modules/tsearch: New file.
74156         * lib/tsearch.h: New file.
74157         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74158         * m4/tsearch.m4: New file.
74159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74160
74161 2006-10-29  Eric Blake  <ebb9@byu.net>
74162
74163         * lib/arcfour.c: Assume config.h.
74164         * lib/arctwo.c: Likewise.
74165         * lib/base64.c: Likewise.
74166         * lib/check-version.c: Likewise.
74167         * lib/crc.c: Likewise.
74168         * lib/des.c: Likewise.
74169         * lib/gc-gnulib.c: Likewise.
74170         * lib/gc-libgcrypt.c: Likewise.
74171         * lib/gc-pbkdf2-sha1.c: Likewise.
74172         * lib/getaddrinfo.c: Likewise.
74173         * lib/getdelim.c: Likewise.
74174         * lib/getline.c: Likewise.
74175         * lib/hmac-md5.c: Likewise.
74176         * lib/hmac-sha1.c: Likewise.
74177         * lib/iconvme.c: Likewise.
74178         * lib/md2.c: Likewise.
74179         * lib/md4.c: Likewise.
74180         * lib/memxor.c: Likewise.
74181         * lib/read-file.c: Likewise.
74182         * lib/readline.c: Likewise.
74183         * lib/rijndael-alg-fst.c: Likewise.
74184         * lib/rijndael-api-fst.c: Likewise.
74185         * lib/xgetdomainname.c: Likewise.
74186
74187 2006-10-28  Eric Blake  <ebb9@byu.net>
74188
74189         * lib/xstrndup.c: Assume config.h.
74190
74191 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74192
74193         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74194         stat-macros.h is now for our own macros, whereas stat_h is for
74195         macros in the <sys/stat.h> name space.
74196         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74197         (STAT_MACROS_H): Remove.
74198         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74199         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74200         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74201         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74202         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74203         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74204         Move these macros to ...
74205         * lib/stat_.h: here.  Don't include stat-macros.h.
74206         * lib/canonicalize.c: Don't include stat-macros.h.
74207         * lib/chown.c: Likewise.
74208         * lib/euidaccess.c: Likewise.
74209         * lib/file-type.c: Likewise.
74210         * lib/filemode.c: Likewise.
74211         * lib/glob.c: Likewise.
74212         * lib/isapipe.c: Likewise.
74213         * lib/lchown.c: Likewise.
74214         * lib/lstat.c: Likewise.
74215         * lib/mkdir-p.c: Likewise.
74216         * lib/rmdir.c: Likewise.
74217         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74219         unless mkdir isn't declared, to speed up 'configure'.
74220         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74221         would define all the S_* symbols.
74222         * modules/canonicalize (Depends-on):
74223         Depend on sys_stat, not stat-macros.
74224         * modules/chown: Likewise.
74225         * modules/euidaccess: Likewise.
74226         * modules/filemode: Likewise.
74227         * modules/file-type: Likewise.
74228         * modules/glob: Likewise.
74229         * modules/isapipe: Likewise.
74230         * modules/lchown: Likewise.
74231         * modules/lstat: Likewise.
74232         * modules/mkancesdirs: Likewise.
74233         * modules/rmdir: Likewise.
74234         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74235         * modules/modechange: Likewise.
74236         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74237         (configure.ac): Remove gl_STAT_MACROS.
74238         * modules/sys_stat (Depends-on): Remove stat-macros.
74239
74240 2006-10-27  Bruno Haible  <bruno@clisp.org>
74241
74242         * m4/signed.m4: Remove file.
74243         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74244         invocation.
74245         * modules/vasnprintf (Files): Remove m4/signed.m4.
74246
74247 2006-10-27  Bruno Haible  <bruno@clisp.org>
74248
74249         Update to GNU gettext 0.16.
74250         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74251         m4/inttypes-h.m4, m4/signed.m4.
74252         * m4/gettext.m4: Update to GNU gettext 0.16.
74253         * m4/intl.m4: New file, from GNU gettext.
74254         * m4/intldir.m4: New file, from GNU gettext.
74255         * config/srclist.txt: Update
74256
74257 2006-10-27  Eric Blake  <ebb9@byu.net>
74258
74259         * MODULES.html.sh: Document tempname.
74260         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74261         dependencies.
74262         (Files): Move lib/tempname.c...
74263         * modules/tempname: ...to this new module.
74264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74265         (gl_PREREQ_TEMPNAME): Move...
74266         * m4/tempname.m4: ...to this new file.
74267         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74268         * modules/sys_stat (Depends-on): Add stat-macros.
74269         * lib/stat_.h (includes): Pick up stat macros.
74270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74271         if stat macros are broken.
74272         * lib/tempname.c (includes): No need to include "stat-macros.h".
74273         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74274         (direxists, __path_search) [!_LIBC]: Don't compile these in
74275         gnulib; the tmpdir module covers that.
74276         * lib/tempname.h: New file.
74277
74278 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         * COPYING: Explain how gnulib-tool converts licence headers.
74281         Almost all wording by Eric Blake.
74282
74283 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74284
74285         * lib/mbchar.h (is_basic_table): Make read-only.
74286         * lib/mbchar.c (is_basic_table): Likewise.
74287         Reported by John Darrington.
74288
74289 2006-10-25  Bruno Haible  <bruno@clisp.org>
74290
74291         * lib/progname.h (set_program_name): Undefine before defining.
74292
74293 2006-10-25  Bruno Haible  <bruno@clisp.org>
74294
74295         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74296         false for non-gcc C++ compilers.
74297         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74298
74299 2006-10-24  Bruno Haible  <bruno@clisp.org>
74300
74301         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74302         iconv implementations like Irix iconv.
74303
74304 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * modules/vararrays: New file.
74307         * m4/vararrays.m4: New file, taken from diffutils.
74308         * MODULES.html.sh: New module vararrays.
74309
74310 2006-10-24  Karl Berry  <karl@gnu.org>
74311
74312         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74313         Don't call GNU Unix.
74314
74315 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74316
74317         * users.txt: Add Libtool.
74318
74319         Sync from Libtool:
74320
74321         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74324         to gnulib's policy of including config.h unconditionally.
74325
74326 2006-10-24  Bruno Haible  <bruno@clisp.org>
74327
74328         * modules/wcwidth (Files): Add m4/wint_t.m4.
74329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74330         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74331
74332 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74335         to pacify GCC with some -W flags enabled.  Problem reported by
74336         Bruno Haible.
74337
74338 2006-10-24  Jim Meyering  <jim@meyering.net>
74339
74340         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74341         Reported by Karl Berry.
74342
74343 2006-10-23  Bruno Haible  <bruno@clisp.org>
74344
74345         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74346
74347 2006-10-24  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/gl_list.h: Use C comment style, not C++ comment style.
74350
74351 2006-10-23  Eric Blake  <ebb9@byu.net>
74352
74353         * lib/getaddrinfo.c (includes): Add missing include.
74354
74355 2006-10-23  Bruno Haible  <bruno@clisp.org>
74356             Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         Ability to rename obstack_free.
74359         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74360         obstack_free.
74361         (obstack_free): Invoke the __obstack_free macro.
74362         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74363
74364 2006-10-23  Bruno Haible  <bruno@clisp.org>
74365             Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74368         __argc, __argv from the declaration. (They are defined as macros on
74369         mingw.)
74370
74371 2006-10-22  Bruno Haible  <bruno@clisp.org>
74372
74373         * doc/gnulib-intro.texi: New file.
74374         * doc/gnulib.texi: Include it.
74375
74376 2006-10-21  Bruno Haible  <bruno@clisp.org>
74377
74378         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74379         "Introduction", "Miscellanous Notes", "Particular Modules".
74380
74381 2006-10-21  Bruno Haible  <bruno@clisp.org>
74382
74383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74384         Change mostlyclean-local rule to avoid sh syntax error from bash
74385         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74386
74387 2006-10-23  Jim Meyering  <jim@meyering.net>
74388
74389         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74390         in place of snprintf.
74391
74392         * modules/inttostr (Files): Add lib/uinttostr.c.
74393         * lib/uinttostr.c (inttostr): New file/function.
74394         * lib/inttostr.h (uinttostr): Declare.
74395         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74396         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74397         Add uinttostr.
74398         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74399
74400 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74401
74402         * lib/canonicalize.c (ELOOP): Define if not already defined.
74403         Problem reported by Bruno Haible in
74404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74405
74406 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74409         Problem reported by Perry Smith and Ville Laurikari.
74410
74411         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74412         uses.
74413
74414 2006-10-19  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74417         for mingw.
74418
74419 2006-10-19  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74422         Needed for mingw.
74423
74424 2006-10-19  Bruno Haible  <bruno@clisp.org>
74425
74426         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74427
74428 2006-10-19  Bruno Haible  <bruno@clisp.org>
74429
74430         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74431         it.
74432
74433 2006-10-19  Bruno Haible  <bruno@clisp.org>
74434
74435         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74436         invocation.
74437
74438 2006-10-19  Bruno Haible  <bruno@clisp.org>
74439
74440         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74441         mountlist by default.
74442
74443 2006-10-16  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/c-strstr.c: Include c-strstr.h.
74446
74447 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74448
74449         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74450         in a slash.
74451
74452 2006-10-18  Bruno Haible  <bruno@clisp.org>
74453
74454         * lib/lock.h [C++]: Wrap definitions in extern "C".
74455
74456 2006-10-18  Bruno Haible  <bruno@clisp.org>
74457
74458         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74459         gl_LIBOBJS list.
74460
74461 2006-10-18  Bruno Haible  <bruno@clisp.org>
74462
74463         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74464
74465 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * lib/xstrtol.h: Include gettext.h.
74468         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74469         Problem reported by Eric Blake.
74470         * modules/xstrtol (Depends-on): Add gettext-h.
74471
74472 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74473
74474         * lib/strftime.c (advance): New macro.
74475         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74476         incomplete type, so you can't add 0 to it.  Problem and patch
74477         reported by Eelco Dolstra for dietlibc.
74478
74479 2006-10-18  Jim Meyering  <jim@meyering.net>
74480
74481         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74482         type for a local, and rename it: s/up/user_proc/.
74483
74484 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74485
74486         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74487         READ_UTMP_USER_PROCESS.
74488         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74489
74490 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74493         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74494
74495 2006-10-17  Eric Blake  <ebb9@byu.net>
74496
74497         * lib/sigprocmask.c (sigprocmask): Fix typo.
74498
74499         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74500
74501         * modules/clean-temp (Makefile.am): Don't add to make output...
74502         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74503         config.h.
74504
74505 2006-10-17  Bruno Haible  <bruno@clisp.org>
74506
74507         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74508         differently if DEFAULT_TEXT_DOMAIN is set.
74509
74510 2006-10-16  Bruno Haible  <bruno@clisp.org>
74511
74512         * lib/clean-temp.c: Include fwriteerror.h.
74513
74514 2006-10-16  Bruno Haible  <bruno@clisp.org>
74515
74516         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74517
74518 2006-10-16  Bruno Haible  <bruno@clisp.org>
74519
74520         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74521         * lib/sigprocmask.h: Include <sys/types.h>.
74522         (sigset_t): Use the system's definition if present.
74523
74524 2006-10-17  Eric Blake  <ebb9@byu.net>
74525
74526         * lib/xvasprintf.c (includes): Assume config.h.
74527         * lib/xasprintf.c (includes): Likewise.
74528
74529 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74532         at least as wide as intmax_t.
74533
74534 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74535
74536         (Imported from Automake.)
74537         * build-aux/gnupload: Update to version 1.1 of directive file.
74538
74539 2006-10-16  Eric Blake  <ebb9@byu.net>
74540
74541         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74542         match Automake 1.10a.
74543
74544 2006-10-14  Bruno Haible  <bruno@clisp.org>
74545
74546         * modules/sigprocmask: New file.
74547         * lib/sigprocmask.h: New file.
74548         * lib/sigprocmask.c: New file.
74549         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74550         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74551         request sigprocmask.o.
74552         (gl_PREREQ_SIGPROCMASK): New macro.
74553         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74554         (Depends-on): Add sigprocmask.
74555         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74556         gt_SIGNALBLOCKING. Test for 'raise' only once.
74557         * lib/fatal-signal.c: Include sigprocmask.h.
74558         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74559         unblock_fatal_signals): Define always.
74560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74561         sigprocmask.
74562
74563 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         Sync from Automake.
74566         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74567         which incorrectly sets the mode of an existing destination
74568         directory.  In some cases the unpatched install-sh could do the
74569         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74570         system.  We hope this is rare in practice, but it's clearly worth
74571         fixing.  Problem reported by Alex Unleashed in
74572         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74573         Also, don't bother to check for -m bugs unless we're using -m;
74574         suggested by Stepan Kasal.
74575
74576 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74577
74578         Sync from Automake.
74579         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74580         `-c' flag, so they appear at the same position as in %FASTDEP%
74581         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74582         which ignores unknown options only after the first non-option.
74583         Bug report against M4 by Nelson H. F. Beebe.
74584
74585 2006-10-13  Jim Meyering  <jim@meyering.net>
74586
74587         Fix a bug in yesterday's change.
74588         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74589         p->fts_statp->st_dev would be used uninitialized.
74590         Ensures that we always call fts_stat on the very first entry.
74591         Miklos Szeredi reported that find -xdev stopped working.
74592
74593 2006-10-12  Bruno Haible  <bruno@clisp.org>
74594
74595         * gnulib-tool (func_get_automake_snippet): Append an automatically
74596         computed EXTRA_DIST augmentation.
74597         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74598         * modules/alloca-opt (Makefile.am): Likewise.
74599         * modules/allocsa (Makefile.am): Likewise.
74600         * modules/arcfour (Makefile.am): Likewise.
74601         * modules/arctwo (Makefile.am): Likewise.
74602         * modules/argmatch (Makefile.am): Likewise.
74603         * modules/argz (Makefile.am): Likewise.
74604         * modules/atexit (Makefile.am): Likewise.
74605         * modules/backupfile (Makefile.am): Likewise.
74606         * modules/byteswap (Makefile.am): Likewise.
74607         * modules/c-strtod (Makefile.am): Likewise.
74608         * modules/c-strtold (Makefile.am): Likewise.
74609         * modules/calloc (Makefile.am): Likewise.
74610         * modules/canon-host (Makefile.am): Likewise.
74611         * modules/canonicalize (Makefile.am): Likewise.
74612         * modules/chdir-long (Makefile.am): Likewise.
74613         * modules/chdir-safer (Makefile.am): Likewise.
74614         * modules/check-version (Makefile.am): Likewise.
74615         * modules/chown (Makefile.am): Likewise.
74616         * modules/cloexec (Makefile.am): Likewise.
74617         * modules/close-stream (Makefile.am): Likewise.
74618         * modules/closeout (Makefile.am): Likewise.
74619         * modules/crc (Makefile.am): Likewise.
74620         * modules/csharpexec (Makefile.am): Likewise.
74621         * modules/cycle-check (Makefile.am): Likewise.
74622         * modules/des (Makefile.am): Likewise.
74623         * modules/dev-ino (Makefile.am): Likewise.
74624         * modules/dirfd (Makefile.am): Likewise.
74625         * modules/dirname (Makefile.am): Likewise.
74626         * modules/dup2 (Makefile.am): Likewise.
74627         * modules/eealloc (Makefile.am): Likewise.
74628         * modules/error (Makefile.am): Likewise.
74629         * modules/euidaccess (Makefile.am): Likewise.
74630         * modules/exclude (Makefile.am): Likewise.
74631         * modules/exitfail (Makefile.am): Likewise.
74632         * modules/fcntl-safer (Makefile.am): Likewise.
74633         * modules/fcntl (Makefile.am): Likewise.
74634         * modules/file-type (Makefile.am): Likewise.
74635         * modules/fileblocks (Makefile.am): Likewise.
74636         * modules/filemode (Makefile.am): Likewise.
74637         * modules/filenamecat (Makefile.am): Likewise.
74638         * modules/fnmatch (Makefile.am): Likewise.
74639         * modules/fopen-safer (Makefile.am): Likewise.
74640         * modules/fpending (Makefile.am): Likewise.
74641         * modules/fprintftime (Makefile.am): Likewise.
74642         * modules/free (Makefile.am): Likewise.
74643         * modules/fsusage (Makefile.am): Likewise.
74644         * modules/ftruncate (Makefile.am): Likewise.
74645         * modules/fts (Makefile.am): Likewise.
74646         * modules/gc-arcfour (Makefile.am): Likewise.
74647         * modules/gc-des (Makefile.am): Likewise.
74648         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74649         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74650         * modules/gc-md4 (Makefile.am): Likewise.
74651         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74652         * modules/gc-sha1 (Makefile.am): Likewise.
74653         * modules/gc (Makefile.am): Likewise.
74654         * modules/getaddrinfo (Makefile.am): Likewise.
74655         * modules/getcwd (Makefile.am): Likewise.
74656         * modules/getdelim (Makefile.am): Likewise.
74657         * modules/getdomainname (Makefile.am): Likewise.
74658         * modules/getgroups (Makefile.am): Likewise.
74659         * modules/gethostname (Makefile.am): Likewise.
74660         * modules/gethrxtime (Makefile.am): Likewise.
74661         * modules/getline (Makefile.am): Likewise.
74662         * modules/getloadavg (Makefile.am): Likewise.
74663         * modules/getlogin_r (Makefile.am): Likewise.
74664         * modules/getndelim2 (Makefile.am): Likewise.
74665         * modules/getopt (Makefile.am): Likewise.
74666         * modules/getpagesize (Makefile.am): Likewise.
74667         * modules/getpass-gnu (Makefile.am): Likewise.
74668         * modules/getpass (Makefile.am): Likewise.
74669         * modules/getsubopt (Makefile.am): Likewise.
74670         * modules/gettime (Makefile.am): Likewise.
74671         * modules/gettimeofday (Makefile.am): Likewise.
74672         * modules/getugroups (Makefile.am): Likewise.
74673         * modules/getusershell (Makefile.am): Likewise.
74674         * modules/glob (Makefile.am): Likewise.
74675         * modules/group-member (Makefile.am): Likewise.
74676         * modules/hard-locale (Makefile.am): Likewise.
74677         * modules/hash (Makefile.am): Likewise.
74678         * modules/hmac-md5 (Makefile.am): Likewise.
74679         * modules/hmac-sha1 (Makefile.am): Likewise.
74680         * modules/human (Makefile.am): Likewise.
74681         * modules/idcache (Makefile.am): Likewise.
74682         * modules/imaxabs (Makefile.am): Likewise.
74683         * modules/imaxdiv (Makefile.am): Likewise.
74684         * modules/inet_ntop (Makefile.am): Likewise.
74685         * modules/inet_pton (Makefile.am): Likewise.
74686         * modules/intprops (Makefile.am): Likewise.
74687         * modules/inttostr (Makefile.am): Likewise.
74688         * modules/inttypes (Makefile.am): Likewise.
74689         * modules/isapipe (Makefile.am): Likewise.
74690         * modules/javaversion (Makefile.am): Likewise.
74691         * modules/lchmod (Makefile.am): Likewise.
74692         * modules/lchown (Makefile.am): Likewise.
74693         * modules/localcharset (Makefile.am): Likewise.
74694         * modules/long-options (Makefile.am): Likewise.
74695         * modules/lstat (Makefile.am): Likewise.
74696         * modules/malloc (Makefile.am): Likewise.
74697         * modules/mathl (Makefile.am): Likewise.
74698         * modules/mbchar (Makefile.am): Likewise.
74699         * modules/md2 (Makefile.am): Likewise.
74700         * modules/md4 (Makefile.am): Likewise.
74701         * modules/md5 (Makefile.am): Likewise.
74702         * modules/memcasecmp (Makefile.am): Likewise.
74703         * modules/memchr (Makefile.am): Likewise.
74704         * modules/memcmp (Makefile.am): Likewise.
74705         * modules/memcoll (Makefile.am): Likewise.
74706         * modules/memcpy (Makefile.am): Likewise.
74707         * modules/memmem (Makefile.am): Likewise.
74708         * modules/memmove (Makefile.am): Likewise.
74709         * modules/mempcpy (Makefile.am): Likewise.
74710         * modules/memrchr (Makefile.am): Likewise.
74711         * modules/memset (Makefile.am): Likewise.
74712         * modules/memxor (Makefile.am): Likewise.
74713         * modules/mkancesdirs (Makefile.am): Likewise.
74714         * modules/mkdir-p (Makefile.am): Likewise.
74715         * modules/mkdir (Makefile.am): Likewise.
74716         * modules/mkdtemp (Makefile.am): Likewise.
74717         * modules/mkstemp (Makefile.am): Likewise.
74718         * modules/mktime (Makefile.am): Likewise.
74719         * modules/modechange (Makefile.am): Likewise.
74720         * modules/mountlist (Makefile.am): Likewise.
74721         * modules/nanosleep (Makefile.am): Likewise.
74722         * modules/obstack (Makefile.am): Likewise.
74723         * modules/openat (Makefile.am): Likewise.
74724         * modules/pagealign_alloc (Makefile.am): Likewise.
74725         * modules/pathmax (Makefile.am): Likewise.
74726         * modules/physmem (Makefile.am): Likewise.
74727         * modules/poll (Makefile.am): Likewise.
74728         * modules/posixtm (Makefile.am): Likewise.
74729         * modules/posixver (Makefile.am): Likewise.
74730         * modules/putenv (Makefile.am): Likewise.
74731         * modules/quote (Makefile.am): Likewise.
74732         * modules/quotearg (Makefile.am): Likewise.
74733         * modules/raise (Makefile.am): Likewise.
74734         * modules/read-file (Makefile.am): Likewise.
74735         * modules/readline (Makefile.am): Likewise.
74736         * modules/readlink (Makefile.am): Likewise.
74737         * modules/readtokens (Makefile.am): Likewise.
74738         * modules/readutmp (Makefile.am): Likewise.
74739         * modules/realloc (Makefile.am): Likewise.
74740         * modules/regex (Makefile.am): Likewise.
74741         * modules/rename-dest-slash (Makefile.am): Likewise.
74742         * modules/rename (Makefile.am): Likewise.
74743         * modules/rijndael (Makefile.am): Likewise.
74744         * modules/rmdir (Makefile.am): Likewise.
74745         * modules/rpmatch (Makefile.am): Likewise.
74746         * modules/safe-read (Makefile.am): Likewise.
74747         * modules/safe-write (Makefile.am): Likewise.
74748         * modules/same-inode (Makefile.am): Likewise.
74749         * modules/same (Makefile.am): Likewise.
74750         * modules/save-cwd (Makefile.am): Likewise.
74751         * modules/savedir (Makefile.am): Likewise.
74752         * modules/setenv (Makefile.am): Likewise.
74753         * modules/settime (Makefile.am): Likewise.
74754         * modules/sha1 (Makefile.am): Likewise.
74755         * modules/sig2str (Makefile.am): Likewise.
74756         * modules/snprintf (Makefile.am): Likewise.
74757         * modules/stat-macros (Makefile.am): Likewise.
74758         * modules/stat-time (Makefile.am): Likewise.
74759         * modules/stdbool (Makefile.am): Likewise.
74760         * modules/stdint (Makefile.am): Likewise.
74761         * modules/stdlib-safer (Makefile.am): Likewise.
74762         * modules/stpcpy (Makefile.am): Likewise.
74763         * modules/stpncpy (Makefile.am): Likewise.
74764         * modules/strcase (Makefile.am): Likewise.
74765         * modules/strcasestr (Makefile.am): Likewise.
74766         * modules/strchrnul (Makefile.am): Likewise.
74767         * modules/strcspn (Makefile.am): Likewise.
74768         * modules/strdup (Makefile.am): Likewise.
74769         * modules/strerror (Makefile.am): Likewise.
74770         * modules/strftime (Makefile.am): Likewise.
74771         * modules/strndup (Makefile.am): Likewise.
74772         * modules/strnlen (Makefile.am): Likewise.
74773         * modules/strpbrk (Makefile.am): Likewise.
74774         * modules/strsep (Makefile.am): Likewise.
74775         * modules/strstr (Makefile.am): Likewise.
74776         * modules/strtod (Makefile.am): Likewise.
74777         * modules/strtoimax (Makefile.am): Likewise.
74778         * modules/strtok_r (Makefile.am): Likewise.
74779         * modules/strtol (Makefile.am): Likewise.
74780         * modules/strtoll (Makefile.am): Likewise.
74781         * modules/strtoul (Makefile.am): Likewise.
74782         * modules/strtoull (Makefile.am): Likewise.
74783         * modules/strtoumax (Makefile.am): Likewise.
74784         * modules/strverscmp (Makefile.am): Likewise.
74785         * modules/sys_socket (Makefile.am): Likewise.
74786         * modules/sys_stat (Makefile.am): Likewise.
74787         * modules/sysexits (Makefile.am): Likewise.
74788         * modules/time_r (Makefile.am): Likewise.
74789         * modules/timegm (Makefile.am): Likewise.
74790         * modules/timespec (Makefile.am): Likewise.
74791         * modules/tmpfile-safer (Makefile.am): Likewise.
74792         * modules/trim (Makefile.am): Likewise.
74793         * modules/unistd-safer (Makefile.am): Likewise.
74794         * modules/unlinkdir (Makefile.am): Likewise.
74795         * modules/unlocked-io (Makefile.am): Likewise.
74796         * modules/userspec (Makefile.am): Likewise.
74797         * modules/utime (Makefile.am): Likewise.
74798         * modules/utimecmp (Makefile.am): Likewise.
74799         * modules/utimens (Makefile.am): Likewise.
74800         * modules/vasnprintf (Makefile.am): Likewise.
74801         * modules/vasprintf (Makefile.am): Likewise.
74802         * modules/vsnprintf (Makefile.am): Likewise.
74803         * modules/xalloc (Makefile.am): Likewise.
74804         * modules/xgetcwd (Makefile.am): Likewise.
74805         * modules/xnanosleep (Makefile.am): Likewise.
74806         * modules/xreadlink (Makefile.am): Likewise.
74807         * modules/xstrtod (Makefile.am): Likewise.
74808         * modules/xstrtol (Makefile.am): Likewise.
74809         * modules/xstrtold (Makefile.am): Likewise.
74810         * modules/yesno (Makefile.am): Likewise.
74811         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74812
74813 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * modules/error (Makefile.am): Distribute files through
74816         EXTRA_DIST, not lib_SOURCES.
74817
74818 2006-10-12  Eric Blake  <ebb9@byu.net>
74819
74820         * modules/error (Makefile.am): Distribute files in /lib.
74821         * modules/obstack (Makefile.am): Likewise.
74822
74823 2006-10-12  Bruno Haible  <bruno@clisp.org>
74824
74825         * modules/acl (Makefile.am): Distribute all files in lib/ through
74826         EXTRA_DIST.
74827         * modules/arcfour (Makefile.am): Likewise.
74828         * modules/arctwo (Makefile.am): Likewise.
74829         * modules/argmatch (Makefile.am): Likewise.
74830         * modules/argz (Makefile.am): Likewise.
74831         * modules/atexit (Makefile.am): Likewise.
74832         * modules/backupfile (Makefile.am): Likewise.
74833         * modules/c-strtod (Makefile.am): Likewise.
74834         * modules/c-strtold (Makefile.am): Likewise.
74835         * modules/calloc (Makefile.am): Likewise.
74836         * modules/canon-host (Makefile.am): Likewise.
74837         * modules/canonicalize (Makefile.am): Likewise.
74838         * modules/chdir-long (Makefile.am): Likewise.
74839         * modules/chdir-safer (Makefile.am): Likewise.
74840         * modules/check-version (Makefile.am): Likewise.
74841         * modules/chown (Makefile.am): Likewise.
74842         * modules/cloexec (Makefile.am): Likewise.
74843         * modules/close-stream (Makefile.am): Likewise.
74844         * modules/closeout (Makefile.am): Likewise.
74845         * modules/crc (Makefile.am): Likewise.
74846         * modules/cycle-check (Makefile.am): Likewise.
74847         * modules/des (Makefile.am): Likewise.
74848         * modules/dirfd (Makefile.am): Likewise.
74849         * modules/dirname (Makefile.am): Likewise.
74850         * modules/dup2 (Makefile.am): Likewise.
74851         * modules/euidaccess (Makefile.am): Likewise.
74852         * modules/exclude (Makefile.am): Likewise.
74853         * modules/exitfail (Makefile.am): Likewise.
74854         * modules/fcntl-safer (Makefile.am): Likewise.
74855         * modules/file-type (Makefile.am): Likewise.
74856         * modules/fileblocks (Makefile.am): Likewise.
74857         * modules/filemode (Makefile.am): Likewise.
74858         * modules/filenamecat (Makefile.am): Likewise.
74859         * modules/fnmatch (Makefile.am): Likewise.
74860         * modules/fopen-safer (Makefile.am): Likewise.
74861         * modules/fpending (Makefile.am): Likewise.
74862         * modules/fprintftime (Makefile.am): Likewise.
74863         * modules/free (Makefile.am): Likewise.
74864         * modules/fsusage (Makefile.am): Likewise.
74865         * modules/ftruncate (Makefile.am): Likewise.
74866         * modules/fts (Makefile.am): Likewise.
74867         * modules/gc (Makefile.am): Likewise.
74868         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74869         * modules/getaddrinfo (Makefile.am): Likewise.
74870         * modules/getcwd (Makefile.am): Likewise.
74871         * modules/getdelim (Makefile.am): Likewise.
74872         * modules/getdomainname (Makefile.am): Likewise.
74873         * modules/getgroups (Makefile.am): Likewise.
74874         * modules/gethostname (Makefile.am): Likewise.
74875         * modules/gethrxtime (Makefile.am): Likewise.
74876         * modules/getline (Makefile.am): Likewise.
74877         * modules/getloadavg (Makefile.am): Likewise.
74878         * modules/getlogin_r (Makefile.am): Likewise.
74879         * modules/getopt (Makefile.am): Likewise.
74880         * modules/getpass (Makefile.am): Likewise.
74881         * modules/getpass-gnu (Makefile.am): Likewise.
74882         * modules/getsubopt (Makefile.am): Likewise.
74883         * modules/gettime (Makefile.am): Likewise.
74884         * modules/gettimeofday (Makefile.am): Likewise.
74885         * modules/getugroups (Makefile.am): Likewise.
74886         * modules/getusershell (Makefile.am): Likewise.
74887         * modules/glob (Makefile.am): Likewise.
74888         * modules/group-member (Makefile.am): Likewise.
74889         * modules/hard-locale (Makefile.am): Likewise.
74890         * modules/hash (Makefile.am): Likewise.
74891         * modules/hmac-md5 (Makefile.am): Likewise.
74892         * modules/hmac-sha1 (Makefile.am): Likewise.
74893         * modules/human (Makefile.am): Likewise.
74894         * modules/idcache (Makefile.am): Likewise.
74895         * modules/imaxabs (Makefile.am): Likewise.
74896         * modules/imaxdiv (Makefile.am): Likewise.
74897         * modules/inet_ntop (Makefile.am): Likewise.
74898         * modules/inet_pton (Makefile.am): Likewise.
74899         * modules/inttostr (Makefile.am): Likewise.
74900         * modules/isapipe (Makefile.am): Likewise.
74901         * modules/lchown (Makefile.am): Likewise.
74902         * modules/long-options (Makefile.am): Likewise.
74903         * modules/lstat (Makefile.am): Likewise.
74904         * modules/malloc (Makefile.am): Likewise.
74905         * modules/mathl (Makefile.am): Likewise.
74906         * modules/mbchar (Makefile.am): Likewise.
74907         * modules/md2 (Makefile.am): Likewise.
74908         * modules/md4 (Makefile.am): Likewise.
74909         * modules/md5 (Makefile.am): Likewise.
74910         * modules/memcasecmp (Makefile.am): Likewise.
74911         * modules/memchr (Makefile.am): Likewise.
74912         * modules/memcmp (Makefile.am): Likewise.
74913         * modules/memcoll (Makefile.am): Likewise.
74914         * modules/memcpy (Makefile.am): Likewise.
74915         * modules/memmem (Makefile.am): Likewise.
74916         * modules/memmove (Makefile.am): Likewise.
74917         * modules/mempcpy (Makefile.am): Likewise.
74918         * modules/memrchr (Makefile.am): Likewise.
74919         * modules/memset (Makefile.am): Likewise.
74920         * modules/memxor (Makefile.am): Likewise.
74921         * modules/mkancesdirs (Makefile.am): Likewise.
74922         * modules/mkdir (Makefile.am): Likewise.
74923         * modules/mkdir-p (Makefile.am): Likewise.
74924         * modules/mkdtemp (Makefile.am): Likewise.
74925         * modules/mkstemp (Makefile.am): Likewise.
74926         * modules/mktime (Makefile.am): Likewise.
74927         * modules/modechange (Makefile.am): Likewise.
74928         * modules/mountlist (Makefile.am): Likewise.
74929         * modules/nanosleep (Makefile.am): Likewise.
74930         * modules/openat (Makefile.am): Likewise.
74931         * modules/pagealign_alloc (Makefile.am): Likewise.
74932         * modules/physmem (Makefile.am): Likewise.
74933         * modules/poll (Makefile.am): Likewise.
74934         * modules/posixtm (Makefile.am): Likewise.
74935         * modules/posixver (Makefile.am): Likewise.
74936         * modules/putenv (Makefile.am): Likewise.
74937         * modules/quote (Makefile.am): Likewise.
74938         * modules/quotearg (Makefile.am): Likewise.
74939         * modules/raise (Makefile.am): Likewise.
74940         * modules/read-file (Makefile.am): Likewise.
74941         * modules/readline (Makefile.am): Likewise.
74942         * modules/readlink (Makefile.am): Likewise.
74943         * modules/readtokens (Makefile.am): Likewise.
74944         * modules/readutmp (Makefile.am): Likewise.
74945         * modules/realloc (Makefile.am): Likewise.
74946         * modules/regex (Makefile.am): Likewise.
74947         * modules/rename (Makefile.am): Likewise.
74948         * modules/rename-dest-slash (Makefile.am): Likewise.
74949         * modules/rijndael (Makefile.am): Likewise.
74950         * modules/rmdir (Makefile.am): Likewise.
74951         * modules/rpmatch (Makefile.am): Likewise.
74952         * modules/safe-read (Makefile.am): Likewise.
74953         * modules/safe-write (Makefile.am): Likewise.
74954         * modules/same (Makefile.am): Likewise.
74955         * modules/save-cwd (Makefile.am): Likewise.
74956         * modules/savedir (Makefile.am): Likewise.
74957         * modules/setenv (Makefile.am): Likewise.
74958         * modules/settime (Makefile.am): Likewise.
74959         * modules/sha1 (Makefile.am): Likewise.
74960         * modules/sig2str (Makefile.am): Likewise.
74961         * modules/snprintf (Makefile.am): Likewise.
74962         * modules/stdlib-safer (Makefile.am): Likewise.
74963         * modules/stpcpy (Makefile.am): Likewise.
74964         * modules/stpncpy (Makefile.am): Likewise.
74965         * modules/strcase (Makefile.am): Likewise.
74966         * modules/strcasestr (Makefile.am): Likewise.
74967         * modules/strchrnul (Makefile.am): Likewise.
74968         * modules/strcspn (Makefile.am): Likewise.
74969         * modules/strdup (Makefile.am): Likewise.
74970         * modules/strerror (Makefile.am): Likewise.
74971         * modules/strftime (Makefile.am): Likewise.
74972         * modules/strndup (Makefile.am): Likewise.
74973         * modules/strnlen (Makefile.am): Likewise.
74974         * modules/strpbrk (Makefile.am): Likewise.
74975         * modules/strsep (Makefile.am): Likewise.
74976         * modules/strstr (Makefile.am): Likewise.
74977         * modules/strtod (Makefile.am): Likewise.
74978         * modules/strtoimax (Makefile.am): Likewise.
74979         * modules/strtok_r (Makefile.am): Likewise.
74980         * modules/strtol (Makefile.am): Likewise.
74981         * modules/strtoll (Makefile.am): Likewise.
74982         * modules/strtoul (Makefile.am): Likewise.
74983         * modules/strtoull (Makefile.am): Likewise.
74984         * modules/strtoumax (Makefile.am): Likewise.
74985         * modules/strverscmp (Makefile.am): Likewise.
74986         * modules/time_r (Makefile.am): Likewise.
74987         * modules/timegm (Makefile.am): Likewise.
74988         * modules/tmpfile-safer (Makefile.am): Likewise.
74989         * modules/unistd-safer (Makefile.am): Likewise.
74990         * modules/unlinkdir (Makefile.am): Likewise.
74991         * modules/userspec (Makefile.am): Likewise.
74992         * modules/utime (Makefile.am): Likewise.
74993         * modules/utimecmp (Makefile.am): Likewise.
74994         * modules/utimens (Makefile.am): Likewise.
74995         * modules/vasnprintf (Makefile.am): Likewise.
74996         * modules/vasprintf (Makefile.am): Likewise.
74997         * modules/vsnprintf (Makefile.am): Likewise.
74998         * modules/xalloc (Makefile.am): Likewise.
74999         * modules/xgetcwd (Makefile.am): Likewise.
75000         * modules/xnanosleep (Makefile.am): Likewise.
75001         * modules/xreadlink (Makefile.am): Likewise.
75002         * modules/xstrtod (Makefile.am): Likewise.
75003         * modules/xstrtol (Makefile.am): Likewise.
75004         * modules/xstrtold (Makefile.am): Likewise.
75005         * modules/yesno (Makefile.am): Likewise.
75006
75007 2006-10-12  Jim Meyering  <jim@meyering.net>
75008
75009         * m4/getloadavg.m4: Revert the change below.
75010
75011         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75012         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75013         fail with a symlink, which is what coreutils' ./bootstrap now
75014         creates by default.
75015
75016 2006-10-12  Bruno Haible  <bruno@clisp.org>
75017
75018         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75019         mingw.
75020         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75021         MSVC and mingw explicitly.
75022
75023 2006-10-11  Simon Josefsson  <jas@extundo.com>
75024             Bruno Haible  <bruno@clisp.org>
75025
75026         Add support for multiple gnulib-tool invocations in the scope of a
75027         single configure.ac file.
75028         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75029         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75030         with the same contents as the _LIBADD variable.
75031         (func_emit_initmacro_start, func_emit_initmacro_end,
75032         func_emit_initmacro_done): New functions.
75033         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75034         gl_LIBOBJS and gl_LTLIBOBJS.
75035
75036 2006-10-11  Bruno Haible  <bruno@clisp.org>
75037
75038         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75039         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75040         autoreconf. Instead, invoke autopoint explicitly but move back the
75041         *.m4 files from gnulib.
75042
75043 2006-10-11  Bruno Haible  <bruno@clisp.org>
75044
75045         * gnulib-tool (func_usage): Make module names after --create-testdir
75046         optional.
75047         (func_create_testdir): If no module was specified, use nearly all
75048         modules.
75049
75050 2006-10-12  Jim Meyering  <jim@meyering.net>
75051
75052         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75053         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75054         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75055         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75056         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75057         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75058         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75059         (fts_set_stat_required): New function.
75060         (fts_open): Defer the calls to fts_stat, if possible or requested.
75061         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75062         into fts_stat itself.
75063         (fts_read): Perform any required (deferred) fts_stat call.
75064         (fts_build): Likewise, for the directory we're about to open and read.
75065         In the readdir loop, carefully decide whether each entry will require
75066         an eventual call to fts_stat, using dirent.d_type info if available.
75067         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75068         a command line argument into this function.  Update all callers.
75069         Map a return value of FTS_DOT to FTS_D for a command line argument.
75070         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75071         Thanks to Miklos Szeredi for his tenacity and for the initial
75072         bug report about "find" failing on a FUSE-based file system.
75073
75074         * lib/fts.c (fts_open): Use consistent indentation.
75075
75076 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75079         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75080         reported by Jim Meyering.  All uses of cache variables renamed
75081         to match Autoconf's.
75082         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75083         the other one.
75084
75085         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75086         Fix misspelling in diagnostic.
75087
75088 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75091         defined.  Problem reported by Matthew Woehlke.
75092
75093         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75094         Add support for Tandem NonStop R series.
75095         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75096         Use new macro.
75097
75098         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75099         (has_trailing_slash): Omit size arg; all callers changed.
75100         Omit 'inline', since it doesn't help performance and we'd
75101         need to configure it.
75102         Don't count //, ///, etc. as having a trailing slash.
75103         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75104         (rpl_rename_dest_slash): On failure, use rename's errno rather
75105         than (in some cases) an incorrect or junk errno.
75106         Simplify code by removing need to compute length; this does
75107         cause it to make two passes instead of one over the file name,
75108         but it's worth it.
75109
75110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75111         change, since Autoconf's version may no longer be appropriate now
75112         that we are using CVS Autoconf's version.  Add support for Tandem.
75113
75114 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75115             Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75118         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75119         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75120         gl_AC_TYPE_LONG_LONG.
75121
75122         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75123         instead of HAVE_LONG_LONG.
75124         * lib/printf-args.c (printf_fetchargs): Likewise.
75125         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75126         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75127         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75128         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75129         gl_AC_TYPE_LONG_LONG.
75130
75131 2006-10-11  Bruno Haible  <bruno@clisp.org>
75132
75133         * m4/longlong.m4: Add comments.
75134         * m4/ulonglong.m4: Likewise.
75135
75136 2006-10-10  Bruno Haible  <bruno@clisp.org>
75137
75138         Make it possible to #define stpcpy, strdup to aliases.
75139         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75140         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75141
75142 2006-10-10  Bruno Haible  <bruno@clisp.org>
75143
75144         Make it possible to #define gcd to an alias.
75145         * lib/gcd.c: Include config.h.
75146
75147 2006-10-10  Bruno Haible  <bruno@clisp.org>
75148
75149         Make it possible to #define c_isascii to an alias.
75150         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75151         defined. Undefine the macros before defining them, to avoid gcc
75152         warnings.
75153         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75154         define NO_C_CTYPE_MACROS early.
75155
75156 2006-10-10  Bruno Haible  <bruno@clisp.org>
75157
75158         Make it possible to #define set_program_name to an alias.
75159         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75160         ENABLE_RELOCATABLE early.
75161
75162 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75165         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75166         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75167         More generally, don't assume that 64-bit signed int is available
75168         if unsigned int is, and vice versa.
75169         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75170         unsigned symbols, not on their signed counterparts.
75171         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75172         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75173         (UINT64_C, UINTMAX_C):
75174         Likewise.
75175         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75176         unsigned counterparts.
75177         (Have_long_long, Unsigned): New macros.
75178         (Int): Renamed from INT.
75179         (strtoimax): Use the new macros.
75180         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75181         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75182         * modules/inttypes (inttypes.h): Substitute
75183         HAVE_UNSIGNED_LONG_LONG_INT.
75184         * modules/stdint (stdint.h): Likewise.
75185         (Files): Add m4/ulonglong.m4.
75186
75187 2006-10-10  Bruno Haible  <bruno@clisp.org>
75188
75189         Fix a gcc -Wshadow warning.
75190         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75191         to 'bucket'.
75192         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75193         gl_linked_indexof_from_to): Likewise.
75194         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75195         Likewise.
75196         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75197         Likewise.
75198         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75199         Reported by Eric Blake.
75200
75201 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75204         for NetBSD.  Problem reported by Bruno Haible.
75205
75206 2006-10-09  Jim Meyering  <jim@meyering.net>
75207
75208         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75209         Patch from Bruno Haible.
75210
75211 2006-10-09  Jim Meyering  <jim@meyering.net>
75212
75213         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75214         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75215         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75216
75217 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         Don't include <config.h> twice; this doesn't work in some cases,
75220         e.g., when config.h has "#define intmax_t long long int" and
75221         we include <config.h>, <inttypes.h>, <config.h> in that order.
75222         Problem reported by Matthew Woehlke in:
75223         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75224         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75225         * lib/fts-cycle.c: Don't include config.h.
75226         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75227         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75228         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75229         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75230         inttypes.h.
75231         * lib/xstrtoumax.c: Likewise.
75232         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75233         __strtol and the like, so that this module is more like its siblings.
75234         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75235         Remove; no longer needed now that we assume gnulib inttypes.h.
75236
75237 2006-10-08  Bruno Haible  <bruno@clisp.org>
75238
75239         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75240         option.
75241
75242 2006-10-07  Jim Meyering  <jim@meyering.net>
75243
75244         * modules/inttypes (inttypes.h): Revert what seems to have been
75245         an inadvertent part of today's change: use "|", not "/" in the
75246         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75247
75248 2006-10-07  Bruno Haible  <bruno@clisp.org>
75249
75250         * modules/sublist: New file.
75251
75252 2006-10-07  Bruno Haible  <bruno@clisp.org>
75253
75254         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75255         * modules/argz (argz.h): Likewise.
75256         * modules/arpa_inet (arpa/inet.h): Likewise.
75257         * modules/byteswap (byteswap.h): Likewise.
75258         * modules/configmake (configmake.h): Likewise.
75259         * modules/fcntl (fcntl.h): Likewise.
75260         * modules/fnmatch (fnmatch.h): Likewise.
75261         * modules/getopt (getopt.h): Likewise.
75262         * modules/glob (glob.h): Likewise.
75263         * modules/inttypes (inttypes.h): Likewise.
75264         * modules/netinet_in (netinet/in.h): Likewise.
75265         * modules/poll (poll.h): Likewise.
75266         * modules/stdbool (stdbool.h): Likewise.
75267         * modules/stdint (stdint.h): Likewise.
75268         * modules/sys_select (sys/select.h): Likewise.
75269         * modules/sys_socket (sys/socket.h): Likewise.
75270         * modules/sys_stat (sys/stat.h): Likewise.
75271         * modules/sysexits (sysexits.h): Likewise.
75272         * modules/unistd (unistd.h): Likewise.
75273         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75274         Add a "DO NOT EDIT" comment to the generated file.
75275         (func_import): Likewise for gnulib-comp.m4.
75276
75277 2006-10-07  Bruno Haible  <bruno@clisp.org>
75278
75279         * lib/gl_sublist.h: New file.
75280         * lib/gl_sublist.c: New file.
75281
75282 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75283
75284         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75285         name (relative to the original working directory) and the file
75286         name component (relative to the temporary working directory).  All
75287         callers changed.
75288         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75289         * lib/mkdir-p.c (make_dir_parents): Likewise.
75290         * lib/mkdir-p.h (make_dir_parents): Likewise.
75291
75292 2006-10-06  Eric Blake  <ebb9@byu.net>
75293
75294         Define several macros for use by the clean-temp module.
75295         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75296         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75297         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75298
75299         * lib/clean-temp.h (close_stream_temp): New declaration.
75300         * lib/clean-temp.c (includes): Pull in headers according to what
75301         other modules are in use.
75302         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75303
75304 2006-10-06  Bruno Haible  <bruno@clisp.org>
75305
75306         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75307         instead of fopen, fwriteerror.
75308
75309 2006-10-06  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75312         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75313         int.
75314         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75315         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75316         Return an error indicator.
75317         Suggested by Eric Blake.
75318
75319 2006-10-06  Bruno Haible  <bruno@clisp.org>
75320
75321         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75322         Reported by Eric Blake.
75323
75324 2006-10-06  Bruno Haible  <bruno@clisp.org>
75325
75326         * modules/closeout (Description): Mention stderr too.
75327
75328 2006-10-06  Bruno Haible  <bruno@clisp.org>
75329         and Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * lib/closeout.c (close_stdout): Also close stderr.
75332         * lib/closeout.h: Update comment.
75333
75334 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75335
75336         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75337         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75338         * lib/dirchownmod.c: Include lchown.h.
75339         * lib/lchown.c: Don't include files that lchown.h now includes.
75340         Don't declare chown, since lchown.h now does that.
75341         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75342         (lchown): Define to rpl_chown if lchown is declared but
75343         does not exist.  Declare using a prototype if lchown is not
75344         declared.  Add a copyright notice.
75345         * lib/mkstemp.h: Include <unistd.h>.
75346         * lib/openat.c: Include lchown.h.
75347
75348         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75349         we now test for that separately.
75350         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75351         rather than O_NOFOLLOW, when testing whether it's possible to
75352         avoid a race condition reliably.
75353         * lib/savewd.c (savewd_chdir): Likewise.
75354
75355         Remove macros that are no longer needed now that stdint.h is
75356         reliable.
75357         * lib/fsusage.c (UINTMAX_MAX): Remove.
75358         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75359         * lib/utimecmp.c (SIZE_MAX): Remove.
75360
75361         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75362
75363         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75364         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75365         O_NOATIME works.
75366
75367 2006-10-05  Bruno Haible  <bruno@clisp.org>
75368
75369         * lib/gl_list.h (gl_sortedlist_search_from_to,
75370         gl_sortedlist_indexof_from_to): New declarations.
75371         (gl_list_implementation): New fields sortedlist_search_from_to,
75372         sortedlist_indexof_from_to.
75373         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75374         inline functions.
75375         * lib/gl_list.c (gl_sortedlist_search_from_to,
75376         gl_sortedlist_indexof_from_to): New functions.
75377         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75378         function.
75379         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75380         (gl_array_sortedlist_search_from_to): New function.
75381         (gl_array_list_implementation): Update.
75382         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75383         function.
75384         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75385         (gl_carray_sortedlist_search_from_to): New function.
75386         (gl_carray_list_implementation): Update.
75387         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75388         gl_linked_sortedlist_indexof_from_to): New functions.
75389         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75390         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75391         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75392         gl_tree_sortedlist_indexof_from_to): New functions.
75393         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75394         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75395         Update.
75396         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75397         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75398         Update.
75399
75400 2006-10-05  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75403         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75404         (struct gl_list_implementation): Add fields search_from_to,
75405         indexof_from_to. Remove fields search, indexof.
75406         (gl_list_search): Use the search_from_to method.
75407         (gl_list_search_from, gl_list_search_from_to): New functions.
75408         (gl_list_indexof): Use the indexof_from_to method.
75409         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75410         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75411         (gl_list_search_from, gl_list_search_from_to): New functions.
75412         (gl_list_indexof): Use the indexof_from_to method.
75413         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75414         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75415         gl_array_indexof. Add start_index, end_index arguments.
75416         (gl_array_search_from_to): Renamed from gl_array_search. Add
75417         start_index, end_index arguments.
75418         (gl_array_remove, gl_array_list_implementation): Update.
75419         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75420         gl_carray_indexof. Add start_index, end_index arguments.
75421         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75422         start_index, end_index arguments.
75423         (gl_carray_remove, gl_carray_list_implementation): Update.
75424         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75425         gl_linked_search. Add start_index, end_index arguments.
75426         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75427         start_index, end_index arguments.
75428         (gl_linked_remove): Update.
75429         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75430         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75431         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75432         field to 'size_t'.
75433         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75434         gl_tree_search. Add start_index, end_index arguments.
75435         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75436         start_index, end_index arguments.
75437         (gl_tree_remove): Update.
75438         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75439         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75440         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75441         function.
75442         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75443         gl_tree_search. Add start_index, end_index arguments.
75444         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75445         start_index, end_index arguments.
75446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75447         Update.
75448         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75449
75450 2006-10-05  Bruno Haible  <bruno@clisp.org>
75451
75452         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75453
75454         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75455         fwriteerror_temp): New declarations.
75456         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75457         (descriptors): New variable.
75458         (cleanup): First, close the descriptors.
75459         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75460         fclose_temp, fwriteerror_temp): New functions.
75461
75462 2006-10-04  Jim Meyering  <jim@meyering.net>
75463
75464         * lib/fts.c (fts_open): Tiny comment change.
75465
75466 2006-10-04  Bruno Haible  <bruno@clisp.org>
75467
75468         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75469         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75470         gl_LOCK_BODY.
75471         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75472         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75473         gl_LOCK_EARLY_BODY.
75474         (gl_LOCK): Require gl_LOCK_BODY.
75475
75476 2006-10-04  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75479         (gl_oset_search_atleast): New declaration.
75480         (struct gl_oset_implementation): Add field 'search_atleast'.
75481         (gl_oset_search_atleast): New inline function.
75482         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75483         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75484         (gl_array_oset_implementation): Update.
75485         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75486         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75487         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75488
75489 2006-10-04  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75492
75493 2006-10-03  Bruno Haible  <bruno@clisp.org>
75494
75495         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75496         from gl_avltreehash_list_implementation.
75497
75498 2006-10-03  Bruno Haible  <bruno@clisp.org>
75499
75500         * lib/gl_oset.c (gl_oset_add): Fix return type.
75501
75502 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75503
75504         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75505
75506 2006-10-02  Eric Blake  <ebb9@byu.net>
75507
75508         * modules/strnlen (Depends-on): Add extensions.
75509
75510 2006-10-02  Eric Blake  <ebb9@byu.net>
75511
75512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75513         definition in 2.60+.
75514
75515 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75516
75517         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75518         checks.
75519
75520 2006-10-02  Bruno Haible  <bruno@clisp.org>
75521
75522         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75523         to the AUTOMAKE_OPTIONS.
75524         Reported by Jim Meyering.
75525
75526 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75527
75528         Work around bug in Solaris 10 /proc file system:
75529         /proc/self/fd/NNN/.. isn't the parent directory of
75530         the directory whose file descriptor is NNN.  This needs to
75531         be worked around at run time, not compile time, since a
75532         program might be built on Solaris 8, where things work, and
75533         run on Solaris 10.
75534         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75535         to use the following interface instead:
75536         (OPENAT_BUFFER_SIZE): New macro.
75537         (openat_proc_name): New function.
75538         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75539         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75540         Likewise.
75541         * lib/openat-proc.c: New file.
75542         * modules/openat (Files): Add lib/openat-proc.c.
75543         (Depends-on): Add same-inode, stdbool.
75544         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75545
75546 2006-09-29  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75549         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75550         argument. Set stdout_closed before testing for ferror, not after.
75551         (fwriteerror, fwriteerror_no_ebadf): New functions.
75552
75553 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75554
75555         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75556
75557 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75558
75559         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75560         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75561
75562 2006-09-28  Jim Meyering  <jim@meyering.net>
75563
75564         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75565         Include <unistd.h>.
75566
75567 2006-09-28  Bruno Haible  <bruno@clisp.org>
75568
75569         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75570         * modules/linkedhash-list (Depends-on): Likewise.
75571         * modules/rbtreehash-list (Depends-on): Likewise.
75572
75573 2006-09-28  Bruno Haible  <bruno@clisp.org>
75574
75575         * lib/strndup.h: Simplify the redefinition of strndup.
75576         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75577         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75578
75579 2006-09-28  Bruno Haible  <bruno@clisp.org>
75580
75581         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75582         * lib/gl_linkedhash_list.c: Likewise.
75583         * lib/gl_rbtreehash_list.c: Likewise.
75584
75585 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75588         getaddrinfo.
75589
75590         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75591         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75592         it causes <stdio_ext.h> to cause a compile-time error.
75593         Problem reported by Nelson H. F. Beebe.
75594         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75595         of HAVE_DECL___PENDING.
75596
75597         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75598         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75599         declaration.
75600
75601 2006-09-27  Jim Meyering  <jim@meyering.net>
75602
75603         This file could end up with a definition for a function
75604         named __strndup, rather than rpl_strndup on a system with
75605         incomplete weak_alias support.
75606         * lib/strndup.c (strndup): Rename from __strndup.
75607         Remove #defines that used to map __strndup to strndup.
75608         Don't use K&R prototypes.
75609         Remove LIBC-related code, since this file is not sync'd with glibc.
75610         * lib/strndup.h: Revamp, accordingly.
75611         * m4/strndup.m4: Modernize.
75612
75613 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * modules/savewd (Depends-on): Add 'raise'.
75616         * lib/savewd.c: Include <signal.h>, for 'raise'.
75617
75618 2006-09-26  Jim Meyering  <jim@meyering.net>
75619
75620         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75621         when we detect Darwin 8.7.0's acl_get_file bug.
75622         Rearrange to perform the new (below) run-test while $LIBS
75623         contains any acl-related library.  Set USE_ACL at the end.
75624         (gl_ACL_GET_FILE): New function.
75625
75626 2006-09-26  Eric Blake  <ebb9@byu.net>
75627
75628         * lib/verror.c: Include <config.h> unconditionally.
75629
75630 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * modules/clock-time (Maintainer): Add self.
75633         * modules/getlogin_r (Depends-on): Add extensions.
75634
75635 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75636
75637         * modules/clock-time: New module.
75638         * modules/nanosleep (Depends-on): Add clock-time.
75639         * modules/gethrxtime (Depends-on): Likewise.
75640         * modules/gettime (Depends-on): Likewise.
75641         * modules/settime (Depends-on): Likewise.
75642
75643         * modules/fts-lgpl: Depend on openat.
75644         * modules/mkancesdirs: Depend on savewd.
75645         * modules/mkdir-p: Likewise.
75646
75647 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75648
75649         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75650
75651         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75652         `gl_have_arbitrary_file_name_length_limit' to
75653         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75654         actually works between configure runs.
75655
75656 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75657             Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75660
75661 2006-09-25  Jim Meyering  <jim@meyering.net>
75662
75663         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75664         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75665
75666 2006-09-25  Eric Blake  <ebb9@byu.net>
75667
75668         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75669         exec's in 2006-09-18 patch when shuffling fds.
75670
75671 2006-09-25  Bruno Haible  <bruno@clisp.org>
75672
75673         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75674         Reported by Jim Meyering.
75675
75676 2006-09-24  Jim Meyering  <jim@meyering.net>
75677
75678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75679         compare a pointer against a literal "0".  That caused failures with
75680         at least HP-UX's hpcc.
75681
75682 2006-09-22  Simon Josefsson  <jas@extundo.com>
75683
75684         * modules/gc-sha1:
75685         * modules/gc-md4:
75686         * modules/gc-hmac-sha1:
75687         * modules/gc-hmac-md5:
75688         * modules/gc-des:
75689         * modules/gc-arcfour: Distribute more files.
75690
75691 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75692
75693         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75694         (gl_linked_iterator_from_to): Initialize struct completely.
75695         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75696         (gl_tree_iterator_from_to): Likewise
75697         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75698         * lib/gl_array_list.c [lint] (gl_array_iterator)
75699         (gl_array_iterator_from_to): Likewise.
75700         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75701         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75702         (gl_carray_iterator_from_to): Likewise.
75703
75704         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75705         * lib/md4.c (md4_process_block): Remove unused variable.
75706         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75707         parentheses for clarity.
75708
75709 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75710
75711         * modules/bison-i18n (Depends-on): Add gettext.
75712
75713 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75714
75715         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75716         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75717         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75718         also add missing comma that caused broken test.
75719         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75720         stdlib.h, for `abort'.
75721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75722         variables.
75723         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75724         include unistd.h if present, for `rmdir'.
75725         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75726         variables.
75727         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75728         in the process include standard headers for prototypes.
75729         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75730         gets declared on GNU/Linux.
75731         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75732         unistd.h, for `rmdir'.
75733         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75734
75735         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75736         always true.
75737         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75738
75739         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75740
75741 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75742
75743         * gnulib-tool (func_version): Create output all at once.  This
75744         may help avoid triggering unnecessary SIGPIPEs, and at any
75745         rate it doesn't hurt.
75746
75747 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75748             Bruno Haible  <bruno@clisp.org>
75749
75750         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75751         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75752         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75753
75754         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75755         (gl_FUNC_VASPRINTF): Invoke it.
75756
75757 2006-09-22  Bruno Haible  <bruno@clisp.org>
75758
75759         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75760         getloadavg.c as first argument.
75761
75762 2006-09-22  Bruno Haible  <bruno@clisp.org>
75763
75764         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75765         at the beginning of the gl_INIT macro.
75766         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75767         gl_GETLOADAVG.
75768
75769 2006-09-22  Bruno Haible  <bruno@clisp.org>
75770
75771         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75772         module.
75773         Suggested by Ralf Wildenhues.
75774
75775 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75776
75777         Import this patch from libc:
75778
75779         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75780
75781         * lib/regex_internal.c (re_string_reconstruct): Handle
75782         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75783         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75784         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75785         re_string_context_at.
75786
75787         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75788         now requires it.
75789         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75790         gl_REGEX now does it for us.
75791         (gl_REGEX): Add test taken from
75792         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75793
75794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75795         Check that large offsets work.  Modernize Autoconf usages.
75796         Prefer "yes" to mean a good thing rather than a bad.
75797         Don't put "#define mkstemp" in config.h, as this might interfere
75798         with standard system headers that "#define mkstemp mkstemp64".
75799
75800         * modules/mkstemp (Depends-on): Add extensions, so that
75801         mkstemp is visible on some platforms.
75802         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75803         (Include): Change to "mkstemp.h" from <stdlib.h>.
75804         (Files): Add mkstemp.h.
75805
75806         * lib/mkstemp.h: New file, since some standard headers
75807         #define mkstemp.
75808         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75809         Include "mkstemp.h".
75810         Make the _LIBC code resemble glibc original more,
75811         e.g., use K&R style.
75812         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75813         (mkstemp): Remove, since mkstemp.h does this for us.
75814         * lib/stdlib--.h: Include mkstemp.h.
75815
75816         Import this patch from libc:
75817
75818         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75819
75820         * lib/tempname.c (__gen_tempname): Change attempts_min
75821         into a macro.  Use preprocessor to decide how to initialize
75822         attempts [Coverity CID 67].
75823
75824 2006-09-20  Bruno Haible  <bruno@clisp.org>
75825
75826         * lib/mkdtemp.c: Import from libc.
75827         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75828                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75829                 attempts_min into a macro.  Use preprocessor to decide how to
75830                 initialize attempts [Coverity CID 67].
75831         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75832                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75833                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75834
75835 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75836
75837         * gnulib-tool (func_exit): New function, to allow to pass the
75838         exit status portably through the trap.  Use everywhere.
75839         (--help, --version): Signal a write error.
75840         (trap): catch SIGPIPE, for write errors.
75841         Exit at the end of the trap, with the correct exit status.
75842
75843 2006-09-19  Karl Berry  <karl@gnu.org>
75844
75845         * doc/gnulib.texi: note about the license texinfo files.
75846
75847 2006-09-19  Eric Blake  <ebb9@byu.net>
75848
75849         * gnulib-tool: Avoid space-tab.
75850
75851 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75854         that prevented coreutils 6.1 from building.  Problem reported
75855         by Petter Reinholdtsen.
75856
75857 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75858
75859         * gnulib-tool (avoidlist): Fix typo that broke options like
75860         --avoid=lock that are used by coreutils bootstrap.
75861
75862 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75863
75864         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75865         more systematically.
75866
75867 2006-09-18  Jim Meyering  <jim@meyering.net>
75868
75869         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75870
75871 2006-09-18  Bruno Haible  <bruno@clisp.org>
75872
75873         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75874
75875 2006-09-18  Bruno Haible  <bruno@clisp.org>
75876
75877         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75878         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75879         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75880         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75881         * m4/gettext.m4: Require autoconf >= 2.52.
75882         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75883         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75884         of gl_cv_header_inttypes_h.
75885
75886 2006-09-18  Bruno Haible  <bruno@clisp.org>
75887
75888         * lib/javaversion.c: Include configmake.h.
75889
75890 2006-09-18  Bruno Haible  <bruno@clisp.org>
75891
75892         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75893         avoid that the while loops be executed in a subshell.
75894
75895 2006-09-18  Bruno Haible  <bruno@clisp.org>
75896
75897         * MODULES.html.sh (func_module): Break long lines.
75898         Suggested by Bruce Korb <bkorb@gnu.org>.
75899
75900 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75901
75902         Speed up by a factor of 1.12.
75903         * gnulib-tool (nl): New variable.
75904         (func_import): Rewrite include directive extraction to only read each
75905         directive once.
75906
75907 2006-09-17  Bruno Haible  <bruno@clisp.org>
75908
75909         * modules/javaversion (Makefile.am): Remove DEFS setting.
75910         (Depends-on): Add configmake, for PKGDATADIR definition.
75911
75912 2006-09-17  Bruno Haible  <bruno@clisp.org>
75913
75914         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75915
75916 2006-09-17  Bruno Haible  <bruno@clisp.org>
75917
75918         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75919         (func_modules_transitive_closure, func_modules_add_dummy,
75920         func_modules_to_filelist, func_import, func_create_testdir,
75921         func_create_megatestdir, ...): Use it wherever possible.
75922         Suggested by Ralf Wildenhues.
75923
75924 2006-09-16  Karl Berry  <karl@gnu.org>
75925
75926         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75927         to avoid sectioning errors.
75928         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75929         [ifinfo]: blank line after @center-ed titles.
75930         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75931         Spell FSF address consistently with others.
75932         (These changes approved by rms.)
75933
75934 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75935
75936         Speed up by a factor of 1.61.
75937         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75938         already checked module names again.
75939
75940 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75941
75942         Speed up by a factor of 1.13.
75943         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75944         for new_files, and the input to func_add_or_update.
75945
75946 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75947
75948         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75949         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75950
75951 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * modules/mkancesdirs (Depends-on): Add fcntl.
75954         * modules/savewd: New file.
75955         * MODULES.html.sh (File system functions): Add savewd.
75956
75957         * modules/configmake (Makefile.am): Add support for the
75958         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75959
75960 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * m4/savewd.m4: New file.
75963
75964 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75967         (dirchownmod): New arg FD.  All callers changed.
75968         Use FD rather than opening the directory ourself, as opening is
75969         now the caller's responsibility.
75970         * lib/dirchownmod.h: Likewise.
75971         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75972         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75973         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75974         (test_dir): Remove.
75975         (mkancesdirs): Return length of prefix of FILE that has already
75976         been made, or -2 if there is a child doing the work.  Redo
75977         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75978         ".", and treat ".." specially since it might stray back into
75979         already-created areas.  Use a subprocess if necessary.  New arg
75980         WD; all users changed.  MAKE_DIR function should now return 1
75981         if it creates a directory that is not readable.  Return -2 if
75982         a child process is spun off.
75983         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75984         Adjust signature to match code.
75985         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75986         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75987         all users changed.
75988         * lib/savewd.c, lib/savewd.h: New files.
75989
75990 2006-09-15  Jim Meyering  <jim@meyering.net>
75991
75992         * modules/rename-dest-slash: New module.
75993         * MODULES.html.sh (posix_compat): Add it here.
75994
75995         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75996
75997 2006-09-15  Jim Meyering  <jim@meyering.net>
75998
75999         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76000         file.
76001
76002         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76003
76004 2006-09-15  Jim Meyering  <jim@meyering.net>
76005
76006         * lib/rename-dest-slash.c (has_trailing_slash): Use
76007         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76008         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76009         test before testing whether SRC is a directory.
76010         Suggestions from Bruno Haible.
76011
76012         Avoid a warning about an unused variable.
76013         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76014         into the #ifdef block where it's used.
76015
76016         * lib/rename-dest-slash.c: New file.
76017
76018 2006-09-14  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/allocsa.c: Include <config.h> unconditionally.
76021         * lib/asnprintf.c: Likewise.
76022         * lib/asprintf.c: Likewise.
76023         * lib/c-strcasecmp.c: Likewise.
76024         * lib/c-strcasestr.c: Likewise.
76025         * lib/c-strncasecmp.c: Likewise.
76026         * lib/c-strstr.c: Likewise.
76027         * lib/classpath.c: Likewise.
76028         * lib/clean-temp.c: Likewise.
76029         * lib/concatpath.c: Likewise.
76030         * lib/copy-file.c: Likewise.
76031         * lib/csharpcomp.c: Likewise.
76032         * lib/csharpexec.c: Likewise.
76033         * lib/execute.c: Likewise.
76034         * lib/fatal-signal.c: Likewise.
76035         * lib/findprog.c: Likewise.
76036         * lib/fwriteerror.c: Likewise.
76037         * lib/gl_array_list.c: Likewise.
76038         * lib/gl_array_oset.c: Likewise.
76039         * lib/gl_avltree_list.c: Likewise.
76040         * lib/gl_avltree_oset.c: Likewise.
76041         * lib/gl_avltreehash_list.c: Likewise.
76042         * lib/gl_carray_list.c: Likewise.
76043         * lib/gl_linked_list.c: Likewise.
76044         * lib/gl_linkedhash_list.c: Likewise.
76045         * lib/gl_list.c: Likewise.
76046         * lib/gl_oset.c: Likewise.
76047         * lib/gl_rbtree_list.c: Likewise.
76048         * lib/gl_rbtree_oset.c: Likewise.
76049         * lib/gl_rbtreehash_list.c: Likewise.
76050         * lib/imaxabs.c: Likewise.
76051         * lib/imaxdiv.c: Likewise.
76052         * lib/javacomp.c: Likewise.
76053         * lib/javaexec.c: Likewise.
76054         * lib/javaversion.c: Likewise.
76055         * lib/linebreak.c: Likewise.
76056         * lib/localcharset.c: Likewise.
76057         * lib/lock.c: Likewise.
76058         * lib/mbchar.c: Likewise.
76059         * lib/mbswidth.c: Likewise.
76060         * lib/mkdtemp.c: Likewise.
76061         * lib/pipe.c: Likewise.
76062         * lib/printf-args.c: Likewise.
76063         * lib/printf-parse.c: Likewise.
76064         * lib/progname.c: Likewise.
76065         * lib/progreloc.c: Likewise.
76066         * lib/readlink.c: Likewise.
76067         * lib/sh-quote.c: Likewise.
76068         * lib/stpcpy.c: Likewise.
76069         * lib/stpncpy.c: Likewise.
76070         * lib/strcasecmp.c: Likewise.
76071         * lib/strcasestr.c: Likewise.
76072         * lib/strcspn.c: Likewise.
76073         * lib/striconv.c: Likewise.
76074         * lib/strncasecmp.c: Likewise.
76075         * lib/strnlen1.c: Likewise.
76076         * lib/strstr.c: Likewise.
76077         * lib/strtok_r.c: Likewise.
76078         * lib/tls.c: Likewise.
76079         * lib/tmpdir.c: Likewise.
76080         * lib/unicodeio.c: Likewise.
76081         * lib/unsetenv.c: Likewise.
76082         * lib/vasnprintf.c: Likewise.
76083         * lib/vasprintf.c: Likewise.
76084         * lib/wait-process.c: Likewise.
76085         * lib/xallocsa.c: Likewise.
76086         * lib/xsetenv.c: Likewise.
76087         * lib/xstriconv.c: Likewise.
76088
76089 2006-09-13  Simon Josefsson  <jas@extundo.com>
76090
76091         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76092         that internally, suggested by Ralf Wildenhues
76093         <Ralf.Wildenhues@gmx.de>.
76094
76095 2006-09-13  Simon Josefsson  <jas@extundo.com>
76096
76097         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76098         @LIBOBJS@.
76099         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76100
76101 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76102
76103         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76104         longer worry about uses that don't define HAVE_CONFIG_H.
76105         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76106         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76107         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76108         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76109         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76110         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76111         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76112         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76113         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76114         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76115         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76116         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76117         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76118         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76119         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76120         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76121         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76122         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76123         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76124         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76125         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76126         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76127         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76128         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76129         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76130         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76131         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76132         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76133         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76134         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76135         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76136         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76137         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76138         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76139         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76140         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76141         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76142         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76143         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76144         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76145         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76146         Likewise.
76147
76148 2006-09-13  Eric Blake  <ebb9@byu.net>
76149
76150         * lib/getopt.c: Fix typo in last commit.
76151
76152 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76153
76154         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76155         dgettext.
76156
76157 2006-09-12  Jim Meyering  <jim@meyering.net>
76158
76159         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76160         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76161         Reported by Nelson H. F. Beebe.
76162
76163 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76164
76165         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76166         program_invocation_name and program_invocation_short_name are
76167         initialized.
76168         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76169         and program_invocation_short_name to argp.h, so they are visible
76170         to user programs.
76171         * lib/argp.h: Likewise
76172
76173 2006-09-10  Bruno Haible  <bruno@clisp.org>
76174
76175         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76176         m4/inttypes_h.m4, m4/uintmax_t.m4.
76177
76178 2006-09-10  Bruno Haible  <bruno@clisp.org>
76179
76180         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76181         gl_AC_TYPE_UINTMAX_T.
76182
76183 2006-09-10  Bruno Haible  <bruno@clisp.org>
76184
76185         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76186
76187 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76188
76189         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76190         convention.  Text proposed by Bruno Haible.
76191         (struct argp_option): Document the use of N_() wrappers.
76192
76193         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76194         '\v', and translate the two parts separately, instead of feeding
76195         the whole string to gettext.  This allows to exclude
76196         '\v' from the strings visible to the translator by writing doc
76197         strings as N_("..") "\v" N_("..").
76198
76199 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * config/srclist.txt: Undo latest change; the bug was fixed.
76202
76203 2006-09-09  Bruno Haible  <bruno@clisp.org>
76204
76205         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76206         assignments if building a library without libtool.
76207         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76208         in func_emit_lib_Makefile_am.
76209         (func_import): When building a static library libfoo.a, arrange to
76210         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76211         (func_create_testdir): Likewise.
76212         * modules/gc (configure.ac, Makefile.am): If building statically,
76213         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76214         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76215         * modules/striconv (configure.ac, Makefile.am): Likewise.
76216         Based on a suggestion by Ralf Wildenhues.
76217
76218 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76221         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76222         Also:
76223
76224         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76225         Add year_2050_test to catch glibc bug 2821
76226         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76227
76228         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76229         Prefer #ifdef to #if.
76230
76231         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76232         Return from 'main' instead of calling 'exit'.
76233
76234 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76237         returned the maximum time_t value rather than (time_t) -1.
76238         Problem originally reported by William Bardwell
76239         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76240
76241         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76242         Moved to here ...
76243         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76244         ... from here.
76245
76246 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76247
76248         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76249         2821 is fixed.
76250
76251 2006-09-08  Jim Meyering  <jim@meyering.net>
76252
76253         Don't make generated files read-only.  That would bother too many
76254         people.  However, do retain the ability to work when targets are
76255         read-only: remove the destination and temporary files before writing
76256         them (when generated via sed or echo), or by using the -f option for
76257         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76258         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76259         * modules/byteswap, modules/configmake, modules/fcntl:
76260         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76261         * modules/localcharset, modules/netinet_in, modules/poll:
76262         * modules/stdbool, modules/stdint, modules/sys_select:
76263         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76264
76265 2006-09-08  Jim Meyering  <jim@meyering.net>
76266
76267         Avoid new build failure on FreeBSD 6.0.
76268         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76269         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76270         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76271
76272 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76273
76274         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76275
76276 2006-09-07  Jim Meyering  <jim@meyering.net>
76277
76278         Fix global typo in last change: use chmod u-w, not chmod u-x.
76279         Spotted by Paul Eggert and Bruce Korb.
76280         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76281         * modules/byteswap, modules/configmake, modules/fcntl:
76282         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76283         * modules/localcharset, modules/netinet_in, modules/poll:
76284         * modules/stdbool, modules/stdint, modules/sys_select:
76285         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76286
76287 2006-09-06  Jim Meyering  <jim@meyering.net>
76288
76289         Make generated files be read-only.
76290         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76291         Ensure that each generated file is now read-only.
76292         * modules/argz: Likewise.
76293         * modules/arpa_inet: Likewise.
76294         * modules/byteswap: Likewise.
76295         * modules/configmake: Likewise.
76296         * modules/fcntl: Likewise.
76297         * modules/fnmatch: Likewise.
76298         * modules/getopt: Likewise.
76299         * modules/glob: Likewise.
76300         * modules/inttypes: Likewise.
76301         * modules/netinet_in: Likewise.
76302         * modules/poll: Likewise.
76303         * modules/stdbool: Likewise.
76304         * modules/stdint: Likewise.
76305         * modules/sys_select: Likewise.
76306         * modules/sys_socket: Likewise.
76307         * modules/sys_stat: Likewise.
76308         * modules/sysexits: Likewise.
76309         * modules/localcharset: Same as above, but continue using temporary
76310         file named "t-$@" (why different?) rather than the "$@-t" used
76311         everywhere else.
76312
76313         * modules/sysexits (Makefile.am): Replace literal occurrences
76314         of "sysexit.h" more readable, and more consistent, "$@".
76315
76316 2006-09-06  Bruno Haible  <bruno@clisp.org>
76317
76318         * modules/striconv: New file.
76319         * modules/xstriconv: New file.
76320         * MODULES.html.sh (Internationalization functions): Add striconv,
76321         xstriconv.
76322
76323 2006-09-06  Bruno Haible  <bruno@clisp.org>
76324
76325         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76326         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76327         not using libtool correctly.
76328
76329 2006-09-06  Bruno Haible  <bruno@clisp.org>
76330
76331         * lib/striconv.h: New file.
76332         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76333         iconvstring.c.
76334         * lib/xstriconv.h: New file.
76335         * lib/xstriconv.c: New file.
76336
76337 2006-09-06  Bruno Haible  <bruno@clisp.org>
76338
76339         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76340         lib_..._LDFLAGS.
76341
76342 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76343
76344         * lib/argz_.h: Sync from Libtool.
76345
76346         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76347                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76348
76349         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76350
76351 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76352
76353         * modules/trim: New file.
76354
76355 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76356
76357         * lib/trim.h: New file.
76358         * lib/trim.c: New file.
76359
76360 2006-09-05  Bruno Haible  <bruno@clisp.org>
76361
76362         * MODULES.html.sh (String handling): Add trim.
76363
76364 2006-09-04  Karl Berry  <karl@gnu.org>
76365
76366         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76367         until next release.
76368
76369 2006-09-03  Bruno Haible  <bruno@clisp.org>
76370
76371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76372         correctly.
76373
76374 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76377         not gl_GETLOADAVG.  Omit unneeded semicolons.
76378         Problems reported by Ralf Wildenhues in
76379         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76380         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76381         at the end, which is the usual gnulib style.
76382
76383         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76384         of doing all the work ourselves.
76385         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76386         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76387
76388 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76389
76390         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76391         Problem reported by Ralf Wildenhues in
76392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76393
76394         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76395         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76396
76397 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76398
76399         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76400         yesterday's patch by changing test -n to test -z.
76401
76402 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76403
76404         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76405         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76406         the former is now obsolescent.
76407
76408         * modules/chdir-long (Depends-on): Add fcntl.
76409
76410 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76411
76412         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76413         obsolescent, and programs should use gnulib instead.
76414         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76415         but with prefixes changed.
76416
76417 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76420         or stdbool.h, because they might not exist while configuring.
76421
76422         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76423         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76424         does that for us.
76425         (O_DIRECTORY): Remove.
76426
76427 2006-08-31  Eric Blake  <ebb9@byu.net>
76428
76429         * gnulib-tool: Don't let emacs change spaces to TAB.
76430
76431 2006-08-31  Bruno Haible  <bruno@clisp.org>
76432
76433         * gnulib-tool: When calling func_import more than once, do it in a
76434         subshell.
76435         Reported by Eric Blake <ebb9@byu.net>.
76436
76437 2006-08-31  Bruno Haible  <bruno@clisp.org>
76438
76439         * gnulib-tool (nl): Remove variable.
76440         (sed_transform_lib_file): Use more robust test for config-h module.
76441         (func_import): Fix typo in 2006-08-25 patch.
76442
76443 2006-08-31  Bruno Haible  <bruno@clisp.org>
76444
76445         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76446         specified, augment Makefile.am variables instead of assigning them.
76447
76448 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         Work around a bug in both the Linux and SunOS 64-bit kernels:
76451         nanosleep mishandles sleeps for longer than 2**31 seconds.
76452         Problem reported by Frank v Waveren in
76453         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76455         Check for nanosleep bug.
76456         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76457
76458 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         Work around a bug in both the Linux and SunOS 64-bit kernels:
76461         nanosleep mishandles sleeps for longer than 2**31 seconds.
76462         Problem reported by Frank v Waveren in
76463         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76464         * lib/nanosleep.c (BILLION): New constant.
76465         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76466         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76467         implementation.
76468
76469 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * modules/nanosleep (Depends-on): Add gettime.
76472
76473 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76474         and Simon Josefsson  <jas@extundo.com>
76475         and Oskar Liljeblad  <oskar@osk.mine.nu>
76476
76477         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76478         * gnulib-tool (func_import): New license type 'unmodifiable license
76479         text'.
76480         * modules/fdl: Use it.  Longer description.
76481         * module/gpl, module/lgpl: New files.
76482
76483 2006-08-30  Jim Meyering  <jim@meyering.net>
76484
76485         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76486         shadowing the parameter.
76487
76488 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76489
76490         Sync from Libtool:
76491
76492         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76493
76494         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76495         sharing with gnulib.  Report by Eric Blake.
76496
76497 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76498
76499         * modules/isapipe: New file.
76500         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76501
76502 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * modules/configmake (Makefile.am): Add a comment, and omit
76505         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76506         by Bruno Haible.
76507
76508 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * m4/isapipe.m4: New file.
76511
76512 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76513
76514         * lib/isapipe.c, lib/isapipe.h: New files.
76515
76516 2006-08-29  Jim Meyering  <jim@meyering.net>
76517
76518         * modules/configmake (Makefile.am): Make configmake.h depend on
76519         Makefile.  Otherwise, a stale configmake.h could hang around.
76520
76521 2006-08-29  Eric Blake  <ebb9@byu.net>
76522
76523         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76524         resolution of upstream bug 3044.
76525
76526 2006-08-29  Bruno Haible  <bruno@clisp.org>
76527
76528         * modules/localcharset (Depends-on): Add configmake.
76529         (Makefile.am): Remove setting of LIBDIR through DEFS.
76530
76531 2006-08-29  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76534         defined.
76535
76536 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76537
76538         * modules/fcntl: New file.
76539         * modules/chdir-safer (Depends-on): Add fcntl.
76540         * modules/fts: Likewise.
76541         * modules/mkdir-p: Likewise.
76542
76543         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76544         This undoes the most recent change, since we're now addressing the
76545         problem in a different way.
76546
76547         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76548         into output, since the output might be called Makefile.am even
76549         if $makefile_name is something different.
76550         (func_import): Use $makefile_am rather than
76551         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76552         empty.
76553
76554         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76555
76556 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76557
76558         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76559         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76560         recent change to stdint.m4, since we're now addressing the problem in a
76561         different way.
76562
76563 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/fcntl_h.m4: New file.
76566
76567 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * lib/fcntl_.h: New file.
76570         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76571         the fcntl module.
76572         * lib/dirchownmod.c: Likewise.
76573         * lib/fts.c: Likewise.
76574
76575         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76576         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76577         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76578         just before including <inttypes.h>, to avoid circular inclusion.
76579
76580 2006-08-28  Jim Meyering  <jim@meyering.net>
76581
76582         * doc/visibility.texi: Actually read and correct the grammar of the
76583         sentence affected by yesterday's change.
76584
76585 2006-08-28  Eric Blake  <ebb9@byu.net>
76586
76587         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76588         needs wrapper.
76589
76590 2006-08-28  Eric Blake  <ebb9@byu.net>
76591
76592         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76593
76594 2006-08-28  Eric Blake  <ebb9@byu.net>
76595
76596         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76597
76598 2006-08-28  Bruno Haible  <bruno@clisp.org>
76599
76600         * modules/c-strstr: New file, from GNU gettext.
76601         * MODULES.html.sh (String handling): Add c-strstr.
76602
76603 2006-08-28  Bruno Haible  <bruno@clisp.org>
76604
76605         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76606         macros.
76607         Reported by Eric Blake.
76608
76609 2006-08-28  Bruno Haible  <bruno@clisp.org>
76610
76611         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76612         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76613         * lib/vasprintf.c: Include errno.h, limits.h.
76614         (EOVERFLOW): New fallback definition.
76615         (vasprintf): Test here whether the string length is > INT_MAX.
76616         * lib/vsnprintf.c: Include errno.h, limits.h.
76617         (EOVERFLOW): New fallback definition.
76618         (vsnprintf): Fix bug when generated string was too long for the buffer.
76619         Test here whether the string length is > INT_MAX.
76620
76621 2006-08-28  Bruno Haible  <bruno@clisp.org>
76622
76623         * lib/inttypes_.h (SCNX*): Remove definitions.
76624         Reported by Eric Blake.
76625
76626 2006-08-28  Bruno Haible  <bruno@clisp.org>
76627
76628         * lib/c-strstr.h: New file, from GNU gettext.
76629         * lib/c-strstr.c: New file, from GNU gettext.
76630
76631 2006-08-28  Bruno Haible  <bruno@clisp.org>
76632
76633         * gnulib-tool: Reorder some statements.
76634
76635 2006-08-28  Bruno Haible  <bruno@clisp.org>
76636
76637         * gnulib-tool: New option --makefile-name.
76638         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76639         $makefile_name.
76640         (func_import): Write $makefile_name to the cache file, and read it from
76641         there unless explicitly specified. Use $makefile_name as file name
76642         instead of Makefile.am. Adjust the recommendations accordingly.
76643
76644 2006-08-28  Bruno Haible  <bruno@clisp.org>
76645
76646         * gnulib-tool (func_verify_module): Check against misapplying patch.
76647
76648 2006-08-28  Bruno Haible  <bruno@clisp.org>
76649
76650         * gnulib-tool (func_relativize, func_relconcat): New functions.
76651         Give an error if --local-dir is given with --update.
76652         Remove trailing slashes from $local_gnulib_dir.
76653         (func_import): Store the relativized $local_gnulib_dir in
76654         gnulib-cache.m4, and read it from there if not specified explicitly.
76655
76656 2006-08-28  Bruno Haible  <bruno@clisp.org>
76657
76658         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76659         is the current directory. Respect also $local_gnulib_dir.
76660
76661 2006-08-28  Bruno Haible  <bruno@clisp.org>
76662             Simon Josefsson  <jas@extundo.com>
76663
76664         BeOS portability.
76665         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76666
76667 2006-08-27  Jim Meyering  <jim@meyering.net>
76668
76669         * doc/visibility.texi: Remove duplicate word: "pointer".
76670
76671 2006-08-26  Bruno Haible  <bruno@clisp.org>
76672
76673         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76674         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76675         (Makefile.am): Create inttypes.h from inttypes_.h.
76676         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76677
76678         * modules/imaxabs: New file.
76679
76680         * modules/imaxdiv: New file.
76681
76682 2006-08-26  Bruno Haible  <bruno@clisp.org>
76683
76684         * m4/inttypes.m4: New file.
76685         * m4/_inttypes_h.m4: Remove file.
76686         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76687         PRI_MACROS_BROKEN.
76688         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76689
76690         * m4/imaxabs.m4: New file.
76691
76692         * m4/imaxdiv.m4: New file.
76693
76694 2006-08-26  Bruno Haible  <bruno@clisp.org>
76695
76696         * lib/inttypes_.h: New file.
76697         * lib/inttypes.h: Remove file.
76698         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76699
76700         * lib/imaxabs.c: New file.
76701
76702         * lib/imaxdiv.c: New file.
76703
76704 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         New config-h module, so that "make" output needn't be cluttered
76707         by -DHAVE_CONFIG_H.
76708         * MODULES.html.sh (Support for building libraries and executables):
76709         Add config-h.
76710         * modules/config-h: New file.
76711         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76712         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76713         the config-h module is used.
76714
76715         New configmake module, so that "make" output needn't be cluttered
76716         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76717         * MODULES.html.sh (Support for building libraries and executables):
76718         Add configmake.
76719         * modules/configmake: New file.
76720
76721 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76722
76723         * m4/config-h.m4: New file.
76724
76725 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * config/srclist.txt: Add elisp-comp.
76728
76729 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         * MODULES.html.sh (Support for building libraries and executables):
76732         Add elisp-comp.
76733         * build-aux/elisp-comp: New file.
76734         * modules/elisp-comp: New file.
76735
76736 2006-08-24  Bruno Haible  <bruno@clisp.org>
76737
76738         * gnulib-tool (func_create_testdir): Use non-default values of
76739         sourcebase and m4base.
76740
76741 2006-08-24  Bruno Haible  <bruno@clisp.org>
76742
76743         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76744         HTML structure.
76745
76746 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * modules/openat (Depends-on): Add lchown.
76749
76750 2006-08-23  Bruno Haible  <bruno@clisp.org>
76751
76752         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76753         of gl_LOCK_EARLY instead of gl_LOCK.
76754
76755 2006-08-23  Bruno Haible  <bruno@clisp.org>
76756
76757         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76758         on OSF/1 to no.
76759         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76760
76761 2006-08-23  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76764         as unusable.
76765
76766         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76767         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76768         (gl_LOCK): New macro.
76769
76770 2006-08-22  Simon Josefsson  <jas@extundo.com>
76771
76772         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76773         to md5 module.
76774
76775 2006-08-22  Simon Josefsson  <jas@extundo.com>
76776
76777         * MODULES.html.sh: Add "Support for maintaining and release
76778         projects".
76779
76780         * build-aux/gnupload: New file, from coreutils.
76781
76782 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         Avoid the need for AC_LIBSOURCES in m4 macros.
76785         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76786         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76787         * modules/check-version (EXTRA_DIST): Add check-version.h.
76788         * modules/crc (EXTRA_DIST): Add crc.h.
76789         * modules/des (EXTRA_DIST): Add des.h.
76790         * modules/gc (EXTRA_DIST): Add gc.h.
76791         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76792         * modules/getline (EXTRA_DIST): Add getline.h.
76793         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76794         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76795         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76796         * modules/md2 (EXTRA_DIST): Add md2.h.
76797         * modules/md4 (EXTRA_DIST): Add md4.h.
76798         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76799         * modules/read-file (EXTRA_DIST): Add read-file.h.
76800         * modules/readline (EXTRA_DIST): Add readline.h.
76801         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76802         rijndael-api-fst.h.
76803
76804 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * m4/rijndael.m4 (gl_ARCFOUR):
76807         * m4/arctwo.m4 (gl_ARCTWO):
76808         * m4/check-version.m4 (gl_CHECK_VERSION):
76809         * m4/crc.m4 (gl_CRC):
76810         * m4/des.m4 (gl_DES):
76811         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76812         * m4/gc.m4 (gl_GC):
76813         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76814         * m4/getline.m4 (gl_FUNC_GETLINE):
76815         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76816         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76817         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76818         * m4/md2.m4 (gl_MD2):
76819         * m4/md4.m4 (gl_MD4):
76820         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76821         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76822         * m4/readline.m4 (gl_FUNC_READLINE):
76823         * m4/rijndael.m4 (gl_RIJNDAEL):
76824         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76825         to get the necessary .h files and whatnot.
76826
76827 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76828
76829         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76830         gnulib rather than the other way around.
76831         * config/srclistvars.sh (COREUTILS): Remove.
76832
76833 2006-08-22  Jim Meyering  <jim@meyering.net>
76834
76835         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76836
76837         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76838
76839 2006-08-22  Eric Blake  <ebb9@byu.net>
76840
76841         * modules/regexprops-generic: New file.
76842         * MODULES.html.sh (Support for building documentation): List it.
76843
76844 2006-08-22  Eric Blake  <ebb9@byu.net>
76845
76846         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76847         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76848         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76849         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76850
76851 2006-08-22  Bruno Haible  <bruno@clisp.org>
76852
76853         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76854         and lib_LTLIBRARIES like the other lib_* variables.
76855
76856 2006-08-22  Bruno Haible  <bruno@clisp.org>
76857
76858         * build-aux/x-to-1.in: New file, from GNU gettext.
76859
76860 2006-08-22  Bruno Haible  <bruno@clisp.org>
76861
76862         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76863         <utmpx.h> exists.
76864
76865 2006-08-22  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76868         <utmpx.h> exists.
76869
76870 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         BeOS portability.
76873         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76874         exist.
76875         Problem reported by Bruno Haible.
76876
76877 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76878
76879         Avoid the need for AC_LIBSOURCES in m4 macros.
76880         * modules/acl (EXTRA_DIST): Add acl.h.
76881         * modules/argmatch (Files): Add m4/argmatch.m4.
76882         (configure.ac): Add gl_ARGMATCH.
76883         (EXTRA_DIST): Renamed from lib_SOURCES, for
76884         consistency with the other modules.  Remove argmatch.c.
76885         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76886         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76887         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76888         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76889         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76890         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76891         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76892         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76893         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76894         * modules/closeout (EXTRA_DIST): Add closeout.h.
76895         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76896         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76897         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76898         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76899         dirname.h; remove basename.c and stripslash.c.
76900         * modules/exclude (EXTRA_DIST): Add exclude.h.
76901         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76902         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76903         * modules/file-type (EXTRA_DIST): Add file-type.h.
76904         * modules/filemode (EXTRA_DIST): Add filemode.h.
76905         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76906         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76907         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76908         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76909         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76910         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76911         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76912         * modules/getdate (EXTRA_DIST): Add getdate.c.
76913         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76914         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76915         * modules/getpass (EXTRA_DIST): Add getpass.h.
76916         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76917         * modules/group-member (EXTRA_DIST): Add group-member.h.
76918         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76919         * modules/hash (EXTRA_DIST): Add hash.h.
76920         * modules/human (EXTRA_DIST): Add human.h.
76921         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76922         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76923         * modules/lchown (EXTRA_DIST): Add lchown.h.
76924         * modules/long-options (EXTRA_DIST): Add long-options.h.
76925         * modules/lstat (EXTRA_DIST): Add lstat.h.
76926         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76927         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76928         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76929         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76930         * modules/memxor (EXTRA_DIST): Add memxor.h.
76931         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76932         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76933         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76934         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76935         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76936         * modules/physmem (EXTRA_DIST): Add physmem.h.
76937         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76938         * modules/posixver (EXTRA_DIST): Add posixver.h.
76939         * modules/quote (EXTRA_DIST): Add quote.h.
76940         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76941         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76942         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76943         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76944         regex_internal.h regexec.c.
76945         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76946         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76947         * modules/same (EXTRA_DIST): Add same.h.
76948         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76949         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76950         * modules/savedir (EXTRA_DIST): Add savedir.h.
76951         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76952         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76953         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76954         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76955         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76956         * modules/strdup (EXTRA_DIST): Add strdup.h.
76957         * modules/strftime (EXTRA_DIST): Add strftime.h.
76958         * modules/strndup (EXTRA_DIST): Add strndup.h.
76959         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76960         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76961         * modules/time_r (EXTRA_DIST): Add time_r.h.
76962         * modules/timespec (EXTRA_DIST): Add timespec.h.
76963         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76964         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76965         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76966         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76967         * modules/userspec (EXTRA_DIST): Add userspec.h.
76968         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76969         * modules/utimens (EXTRA_DIST): Add utimens.h.
76970         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76971         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76972         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76973         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76974         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76975         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76976         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76977         * modules/yesno (EXTRA_DIST): Add yesno.h.
76978
76979 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76982
76983         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76984         * m4/dev-ino.m4, same-inode.m4: Remove.
76985
76986         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76987         * m4/acl.m4 (AC_FUNC_ACL):
76988         * m4/backupfile.m4 (gl_BACKUPFILE):
76989         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76990         * m4/canon-host.m4 (gl_CANON_HOST):
76991         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76992         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76993         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76994         * m4/cloexec.m4 (gl_CLOEXEC):
76995         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76996         * m4/closeout.m4 (gl_CLOSEOUT):
76997         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76998         * m4/dirname.m4 (gl_DIRNAME):
76999         * m4/exclude.m4 (gl_EXCLUDE):
77000         * m4/exitfail.m4 (gl_EXITFAIL):
77001         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77002         * m4/file-type.m4 (gl_FILE_TYPE):
77003         * m4/filemode.m4 (gl_FILEMODE):
77004         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77005         * m4/fpending.m4 (gl_FUNC_FPENDING):
77006         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77007         * m4/fts.m4 (gl_FUNC_FTS):
77008         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77009         * m4/getdate.m4 (gl_GETDATE):
77010         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77011         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77012         * m4/getpass.m4 (gl_FUNC_GETPASS):
77013         * m4/gettime.m4 (gl_GETTIME):
77014         * m4/getugroups.m4 (gl_GETUGROUPS):
77015         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77016         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77017         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77018         * m4/hash.m4 (gl_HASH):
77019         * m4/idcache.m4 (gl_IDCACHE):
77020         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77021         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77022         * m4/long-options.m4 (gl_LONG_OPTIONS):
77023         * m4/lstat.m4 (gl_FUNC_LSTAT):
77024         * m4/md5.m4 (gl_MD5):
77025         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77026         * m4/memcoll.m4 (gl_MEMCOLL):
77027         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77028         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77029         * m4/memxor.m4 (gl_MEMXOR):
77030         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77031         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77032         * m4/modechange.m4 (gl_MODECHANGE):
77033         * m4/mountlist.m4 (gl_MOUNTLIST):
77034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77035         * m4/openat.m4 (gl_FUNC_OPENAT):
77036         * m4/pathmax.m4 (gl_PATHMAX):
77037         * m4/physmem.m4 (gl_PHYSMEM):
77038         * m4/posixtm.m4 (gl_POSIXTM):
77039         * m4/posixver.m4 (gl_POSIXVER):
77040         * m4/quote.m4 (gl_QUOTE):
77041         * m4/quotearg.m4 (gl_QUOTEARG):
77042         * m4/readtokens.m4 (gl_READTOKENS):
77043         * m4/readutmp.m4 (gl_READUTMP):
77044         * m4/regex.m4 (gl_REGEX):
77045         * m4/safe-read.m4 (gl_SAFE_READ):
77046         * m4/safe-write.m4 (gl_SAFE_WRITE):
77047         * m4/same.m4 (gl_SAME):
77048         * m4/save-cwd.m4 (gl_SAVE_CWD):
77049         * m4/savedir.m4 (gl_SAVEDIR):
77050         * m4/settime.m4 (gl_SETTIME):
77051         * m4/sha1.m4 (gl_SHA1):
77052         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77053         * m4/stat-macros.m4 (gl_STAT_MACROS):
77054         * m4/stat-time.m4 (gl_STAT_TIME):
77055         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77056         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77057         * m4/strdup.m4 (gl_FUNC_STRDUP):
77058         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77059         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77060         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77061         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77062         * m4/time_r.m4 (gl_TIME_R):
77063         * m4/timespec.m4 (gl_TIMESPEC):
77064         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77065         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77066         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77067         * m4/userspec.m4 (gl_USERSPEC):
77068         * m4/utimecmp.m4 (gl_UTIMECMP):
77069         * m4/utimens.m4 (gl_UTIMENS):
77070         * m4/xalloc.m4 (gl_XALLOC):
77071         * m4/xgetcwd.m4 (gl_XGETCWD):
77072         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77073         * m4/xreadlink.m4 (gl_XREADLINK):
77074         * m4/xstrtod.m4 (gl_XSTRTOD):
77075         * m4/yesno.m4 (gl_YESNO):
77076         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77077         to get the necessary .h files and whatnot.
77078
77079 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77080             Bruno Haible  <bruno@clisp.org>
77081
77082         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77083         /bin/sh understanding of '!' conditional negation.
77084
77085 2006-08-21  Jim Meyering  <jim@meyering.net>
77086
77087         * modules/openat (Depends-on): Really alphabetize.
77088
77089         * modules/acl (Depends-on): Add error and quote.
77090
77091         * check-module (find_included_lib_files): Add at-func.c to the
77092         ok-to-include-more-than-once white list.
77093
77094         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77095
77096 2006-08-21  Bruno Haible  <bruno@clisp.org>
77097
77098         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77099         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77100         Reported by Martin Lambers <marlam@marlam.de>.
77101
77102 2006-08-21  Bruno Haible  <bruno@clisp.org>
77103
77104         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77105         specify an installation location, don't emit a noinst_LIBRARIES or
77106         noinst_LTLIBRARIES assignment.
77107
77108 2006-08-21  Bruno Haible  <bruno@clisp.org>
77109
77110         BeOS portability.
77111         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77112         BeOS has mbrtowc() but no <wctype.h>.
77113
77114 2006-08-21  Bruno Haible  <bruno@clisp.org>
77115
77116         BeOS portability.
77117         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77118         exist.
77119
77120 2006-08-21  Bruno Haible  <bruno@clisp.org>
77121
77122         BeOS portability.
77123         * lib/mbchar.h: Include <wctype.h> only if it exists.
77124
77125 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         Remove files that are no longer needed by their respective modules.
77128         * m4/obstack.m4: Remove.
77129         * m4/strerror_r.m4: Remove.
77130         * m4/uint32_t.m4: Remove.
77131         * m4/uintptr_t.m4: Remove.
77132         * m4/ullong_max.m4: Remove.
77133         * m4/xstrtoimax.m4: Remove.
77134         * m4/xstrtoumax.m4: Remove.
77135
77136         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77137         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77138         dependencies now capture this.
77139
77140         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77141         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77142         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77143         * m4/human.m4 (gl_HUMAN): Likewise.
77144         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77145         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77146
77147         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77148
77149         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77150         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77151         stdint.
77152         * m4/human.m4 (gl_HUMAN): Likewise.
77153         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77154         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77155         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77156         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77157         * m4/xstrtol (gl_XSTRTOL): Likewise.
77158
77159         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77160         AC_TYPE_LONG_LONG_INT.
77161         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77162         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77163         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77164         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77165
77166         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77167         on stdbool.
77168
77169         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77170         (gl_PREREQ_XSTRTOUL): Remove.
77171
77172         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77173
77174         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77175         mode.
77176
77177 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         Add and change modules to make it easier for coreutils to use
77180         gnulib-tool.
77181         * modules/backupfile (Files): Remove m4/d-ino.m4.
77182         (Depends-on): Add d-ino.
77183         * modules/cycle-check (Depends-on): Add stdint.
77184         (lib_SOURCES): Add cycle-check.h.
77185         * modules/d-ino: New module.
77186         * modules/d-type: New module.
77187         * modules/error (Files): Remove m4/strerror_r.m4.
77188         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77189         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77190         m4/inttypes_h.m4, m4/uintmax_t.m4.
77191         (Depends-on): Add stdint.
77192         (lib_SOURCES): Add fsusage.h.
77193         * modules/getcwd (Files): Remove d-ino.m4.
77194         (Depends-on): Add d-ino.
77195         * modules/getndelim2 (Depends-on): Add stdint.
77196         * modules/glob (Files): Remove m4/d-type.m4.
77197         (Depends-on): Add d-type.
77198         * modules/host-os: New module.
77199         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77200         m4/inttypes_h.m4, m4/uintmax_t.m4.
77201         * Depends-on: Add stdint.
77202         (lib_SOURCES): Add human.h.
77203         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77204         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77205         m4/uintmax_t.m4, m4/ulonglong.m4.
77206         (Depends-on): Add stdint.
77207         (EXTRA_DIST): Add inttostr.h.
77208         * modules/lchmod: New module.
77209         * modules/link-follow: New module.
77210         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77211         (Depends-on): Add lchmod.
77212         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77213         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77214         (Depends-on): Add stdint.
77215         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77216         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77217         (Depends-on): Add stdint.
77218         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77219         * modules/perl: New module.
77220         * modules/regex (Depends-on): Add stdint.
77221         * modules/rmdir-errno: New module.
77222         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77223         m4/intmax_t.m4.
77224         (Depends-on): Add stdint.
77225         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77226         m4/uintmax_t.m4.
77227         (Depends-on): Add stdint.
77228         * modules/unlink-busy: New module.
77229         * modules/utimecmp (Depends-on): Add stdint.
77230         * modules/uptime: New module.
77231         * modules/winsz-ioctl: New module.
77232         * modules/winsz-termios: New module.
77233         * modules/xnanosleep (Depends-on): Add nanosleep.
77234         * modules/ullong_max: Remove.
77235         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77236         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77237         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77238         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77239         (Depends-on): Add inttypes.
77240         (lib_SOURCES): Add xstrtol.h.
77241         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77242         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77243         * MODULES.html.sh: Move 'assert' into the assert section.
77244         Move 'dummy' into the linking section.
77245         Remove ullong_max.
77246         Add section for compatibility checks for POSIX:2001 functions,
77247         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77248         winsz-ioctl, and winsz-termios into it.
77249         Add lchmod.
77250         Add top-level Misc section and put host-os, perl, and uptime
77251         into it.
77252
77253 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77256         now assume the stdint module.  Do not include inttypes.h.
77257         * lib/fsusage.h: Likewise.
77258         * lib/getndelim2.c: Likewise.
77259         * lib/human.h: Likewise.
77260         * lib/inttostr.h: Likewise.
77261         * lib/obstack.c: Likewise.
77262         * lib/regex_internal.h: Likewise.
77263         * lib/tempname.c: Likewise.
77264         * lib/utimecmp.c: Likewise.
77265         * lib/xstrtol.h: Likewise.
77266
77267         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77268
77269         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77270         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77271         * lib/xtime.h: Likewise.
77272
77273 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * modules/openat (Files): Add lib/fchmodat.c.
77276         Fixes problem reported by Jay Youngman.
77277
77278 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77281         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77282
77283 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77284             Bruno Haible  <bruno@clisp.org>
77285
77286         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77287         and is a script that invokes bison. Tighten the code. Add comments.
77288
77289 2006-08-18  Jim Meyering  <jim@meyering.net>
77290
77291         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77292         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77293         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77294         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77295
77296 2006-08-18  Bruno Haible  <bruno@clisp.org>
77297
77298         * modules/bison-i18n: New file.
77299         * MODULES.html.sh (Internationalization functions): Add it.
77300
77301 2006-08-18  Bruno Haible  <bruno@clisp.org>
77302
77303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77304         sys/statvfs.h. When getmntinfo was found, check its declaration and
77305         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77306
77307 2006-08-18  Bruno Haible  <bruno@clisp.org>
77308
77309         * m4/bison-i18n.m4: New file, from bison.
77310
77311 2006-08-18  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77314         (ME_DUMMY): Treat "kernfs" as a dummy.
77315         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77316
77317 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         Update from coreutils.
77320
77321         2006-08-15  Jim Meyering  <jim@meyering.net>
77322
77323         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77324
77325         2006-01-17  Jim Meyering  <jim@meyering.net>
77326
77327         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77328
77329         2006-01-11  Jim Meyering  <jim@meyering.net>
77330
77331         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77332         Check for the lchmod function.
77333
77334 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         Update from coreutils.
77337
77338         * lib/__fpending.h: Add copyright notice.
77339         * lib/fprintftime.h: Likewise.
77340         * lib/savedir.c: Use (C) in copyright notice.
77341         * lib/savedir.h: Likewise.
77342
77343         2006-08-15  Jim Meyering  <jim@meyering.net>
77344
77345         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77346         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77347         in support of the EXPECTED_ERRNO macro.
77348         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77349         definitions.  Instead, define the appropriate symbols and include
77350         "at-func.c".
77351         * lib/mkdirat.c (mkdirat): Likewise.
77352         * lib/fchmodat.c (fchmodat): Likewise.
77353         (ENOSYS): Remove definition.
77354         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77355         it.  Don't include "unistd--.h" -- it wasn't ever used.
77356
77357         2006-01-17  Jim Meyering  <jim@meyering.net>
77358
77359         Rewrite fts.c not to change the current working directory,
77360         by using openat, fstatat, fdopendir, etc..
77361
77362         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77363         (HAVE_OPENAT_SUPPORT): Define.
77364         [_LIBC] (fchdir): Don't undef or define; no longer used.
77365         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77366         Now, this `function' always succeeds, and consumes its file descriptor
77367         parameter -- so callers must not close such FDs.  Update callers.
77368         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77369         (diropen): Add parameter, SP.  Adjust all callers.
77370         Implement using diropen_fd, rather than open.
77371         (fts_open): Initialize new member, fts_cwd_fd.
77372         Remove fts_rft-setting code.
77373         (fts_close): Close fts_cwd_fd, if necessary.
77374         (__opendir2): Define in terms of opendir or opendirat,
77375         depending on whether the FST_NOCHDIR flag is set.
77376         (fts_build): Since fts_safe_changedir consumes its FD, and since
77377         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77378         and close the dup'd file descriptor upon failure.
77379         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77380         (fts_safe_changedir): Tweak semantics to reflect that this function
77381         now calls cwd_advance_fd and hence consumes its FD argument.
77382         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77383         [struct FTS] (fts_rft): Remove now-unused member.
77384         [struct FTS] (fts_cycle.state): Improve comment.
77385
77386         * lib/openat.c (openat_needs_fchdir): New function.
77387         * lib/openat.h (openat_needs_fchdir): Declare it.
77388
77389 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77392         Problem and fix reported by Pádraig Brady in
77393         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77394
77395 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77398
77399 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * lib/memcoll.c (memcoll): Optimize for the common case where the
77402         arguments are bytewise equal.
77403
77404 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77405
77406         * doc/regexprops-generic.texi: Add a copyright notice.
77407
77408 2006-08-15  Bruno Haible  <bruno@clisp.org>
77409
77410         * modules/tmpdir (License): Change to LGPL.
77411
77412 2006-08-15  Bruno Haible  <bruno@clisp.org>
77413
77414         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77415         module.
77416
77417 2006-08-14  Simon Josefsson  <jas@extundo.com>
77418
77419         * config/srclist.txt: Add gnupload.
77420
77421 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         Change copyright notice from LGPL 2 to GPL 2, since that's the
77424         standard form used in the gnulib repository.
77425         * tests/test-lock.c: Likewise.
77426         * tests/test-stdint.c: Likewise.
77427         * tests/test-tls.c: Likewise.
77428
77429         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77430         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77431         Add copyright notice.
77432
77433         * check-module: Add copyright notice.  Output a copyright
77434         notice if "--version" is specified.
77435         * modules/COPYING: New file.
77436         * tests/test-getaddrinfo.c: Add copyright notice.
77437         * tests/test-verify.c: Likewise.
77438
77439 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         Change copyright notice from LGPL 2 to GPL 2, since that's the
77442         standard form used in the gnulib repository.
77443         * lib/lock.c: LGPL -> GPL.
77444         * lib/lock.h: Likewise.
77445         * lib/strnlen1.c: Likewise.
77446         * lib/strnlen1.h: Likewise.
77447         * lib/tls.c: Likewise.
77448         * lib/tls.h: Likewise.
77449         * lib/tmpdir.c: Likewise.
77450
77451         * lib/TODO: Remove; this belongs only in coreutils.
77452
77453 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         Add copyright notices to long-enough files that lack them, since
77456         otherwise the files aren't clearly free.  Use the same notice that
77457         getdate.texi already uses.
77458         * doc/alloca-opt.texi: Add copyright notice.
77459         * doc/alloca.texi: Likewise.
77460         * doc/ctime.texi: Likewise.
77461         * doc/functions.texi: Likewise.
77462         * doc/gcd.texi: Likewise.
77463         * doc/gnulib-tool.texi: Likewise.
77464         * doc/inet_ntoa.texi: Likewise.
77465         * doc/visibility.texi: Likewise.
77466
77467         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77468         * doc/quote.texi: Add copyright notice.
77469
77470         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77471         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77472         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77473         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77474         is now obsolete, and give a pointer to the Sun list.
77475         Add copyright notice.
77476
77477 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * config/srclistvars.sh: Add copyright notice.
77480
77481 2006-08-14  Eric Blake  <ebb9@byu.net>
77482
77483         Import the following change from libc:
77484
77485         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77486
77487         Upstream bug 2997.
77488         * lib/misc/error.c: Add space between program name and message if file
77489         name is missing.
77490
77491 2006-08-12  Karl Berry  <karl@gnu.org>
77492
77493         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77494         remove, these originate in gnulib now.
77495
77496 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77497
77498         * doc/Makefile (standards.info standards.html standards.dvi):
77499         Also depend on make-stds.texi.
77500
77501 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77504         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77505
77506         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77507         in wchar_t.  Problem reported by Eric Blake.
77508
77509         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77510         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77511         Also, help the compiler to keep LEN in a register.
77512
77513 2006-08-11  Eric Blake  <ebb9@byu.net>
77514
77515         * users.txt: Sort.  Add tar.
77516
77517 2006-08-11  Bruno Haible  <bruno@clisp.org>
77518
77519         * users.txt: New file.
77520
77521 2006-08-11  Bruno Haible  <bruno@clisp.org>
77522
77523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77524         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77525
77526 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * modules/snprintf (Depends-on): Remove minmax.
77529         (Maintainer): Add self and Bruno.
77530
77531 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77534         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77535         (EOVERFLOW): Define if the system does not.
77536         Do not include "minmax.h"; it wasn't used.
77537         (snprintf): Don't assume size_t promotes to an unsigned type.
77538         Fix bug when generated string was too long for the buffer: the
77539         buffer's contents are supposed to be the initial prefix of the
77540         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77541         exceeds INT_MAX; do the check ourselves.
77542
77543         Import the following changes from libc:
77544
77545         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77546
77547         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77548         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77549         set wc to the byte which couldn't be converted.
77550         (re_string_reconstruct): Don't clear valid_raw_len before calling
77551         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77552         tip_context using re_string_context_at.
77553
77554         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77555
77556         * lib/posix/regex.h: g++ still cannot handled [restrict].
77557
77558         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77559
77560         * lib/posix/regex.h: Remove special handling for VMS.
77561
77562 2006-08-10  Jim Meyering  <jim@meyering.net>
77563
77564         * modules/same-inode: New module.
77565         * modules/dev-ino: New module.
77566         * modules/cycle-check: Depend on these modules, rather than simply
77567         including their .h files.
77568         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77569         required via m4/cycle-check.m4.
77570         * modules/same: Depend on new same-inode module, rather than
77571         including same-inode.h.
77572         * modules/chdir-safer: New file.
77573
77574         * modules/chown (Depends-on): Add stat-macros.
77575
77576 2006-08-10  Jim Meyering  <jim@meyering.net>
77577
77578         * m4/cycle-check.m4: New file.
77579         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77580         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77581
77582 2006-08-10  Eric Blake  <ebb9@byu.net>
77583
77584         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77585         in from original proposal.
77586
77587 2006-08-10  Eric Blake  <ebb9@byu.net>
77588         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77589
77590         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77591         namespace.
77592
77593 2006-08-10  Bruno Haible  <bruno@clisp.org>
77594
77595         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77596         as well.
77597
77598 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         Sync from coreutils.
77601
77602         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77603
77604         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77605         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77606
77607 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77608
77609         * modules/restrict: Remove; no longer needed now that we assume
77610         Autoconf 2.59 or later.
77611         * MODULES.html.sh: Remove 'restrict'.
77612         * modules/argp (Depends-on): Remove 'restrict'.
77613         * modules/base64 (Depends-on): Likewise.
77614         * modules/gc (Depends-on): Likewise.
77615         * modules/getaddrinfo (Depends-on): Likewise.
77616         * modules/glob (Depends-on): Likewise.
77617         * modules/inet_ntop (Depends-on): Likewise.
77618         * modules/inet_pton (Depends-on): Likewise.
77619         * modules/memxor (Depends-on): Likewise.
77620         * modules/regex (Depends-on): Likewise.
77621         * modules/strtok_r (Depends-on): Likewise.
77622         * modules/time_r (Depends-on): Likewise.
77623
77624 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77627         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77628         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77629         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77630         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77631         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77632         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77633         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77634
77635         Merge from coreutils.
77636         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77637         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77638         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77639         * m4/time_r.m4 (gl_TIME_R): Likewise.
77640
77641 2006-08-09  Karl Berry  <karl@gnu.org>
77642
77643         * config/srclist.txt: no more gettext-tools, per Bruno.
77644
77645 2006-08-08  Eric Blake  <ebb9@byu.net>
77646
77647         * modules/verror: New module.
77648         * MODULES.html.sh: Document it.
77649
77650 2006-08-08  Eric Blake  <ebb9@byu.net>
77651
77652         * lib/verror.h, lib/verror.c: New files.
77653
77654 2006-08-08  Eric Blake  <ebb9@byu.net>
77655
77656         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77657         verror_at_line output complies with GNU Coding Standards even when
77658         file is NULL.
77659
77660 2006-08-07  Bruno Haible  <bruno@clisp.org>
77661
77662         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77663         versions of AIX.
77664         Reported by Ralf Wildenhues.
77665
77666 2006-08-07  Bruno Haible  <bruno@clisp.org>
77667
77668         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77669         in an AC_DEFUN. Needed so that the autoconf snippets can use
77670         AC_REQUIRE.
77671
77672 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77673
77674         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77675         Initialize pkgdata_DATA.
77676         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77677         overriding it.
77678
77679 2006-08-06  Eric Blake  <ebb9@byu.net>
77680
77681         * lib/error.h: Fold in some upstream changes from glibc.
77682         * lib/error.c: Likewise.
77683
77684 2006-08-04  Bruno Haible  <bruno@clisp.org>
77685
77686         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77687         Make the mostlyclean-local rule depend on mostlyclean-generic.
77688         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77689
77690 2006-07-31  Bruno Haible  <bruno@clisp.org>
77691
77692         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77693         <stdlib.h>, <string.h>.
77694
77695 2006-07-30  Bruno Haible  <bruno@clisp.org>
77696
77697         * modules/readlink (License): Change to LGPL.
77698
77699 2006-07-30  Bruno Haible  <bruno@clisp.org>
77700
77701         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77702         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77703         set PKGDATADIR to point to it.
77704
77705 2006-07-30  Bruno Haible  <bruno@clisp.org>
77706
77707         * modules/csharpexec (configure.ac): Comment out macro invocation.
77708         * modules/javaexec (configure.ac): Likewise.
77709         * modules/javacomp-script (configure.ac): Likewise.
77710
77711         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77712
77713 2006-07-30  Bruno Haible  <bruno@clisp.org>
77714
77715         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77716         linked-list.
77717
77718 2006-07-30  Bruno Haible  <bruno@clisp.org>
77719
77720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77721
77722 2006-07-30  Bruno Haible  <bruno@clisp.org>
77723
77724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77725         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77726         get removed.
77727
77728 2006-07-29  Bruno Haible  <bruno@clisp.org>
77729
77730         Make it possible for gnulib-tool to work with locally modified or
77731         augmented gnulib repositories.
77732         * gnulib-tool (func_usage): Document --local-dir option.
77733         (local_gnulib_dir): New variable.
77734         Handle --local-dir option.
77735         (func_lookup_file): New function.
77736         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77737         (func_get_description, func_get_filelist, func_get_description,
77738         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77739         func_get_automake_snippet, func_get_include_directive,
77740         func_get_license, func_get_maintainer): Use func_lookup_file.
77741         (func_import, func_create_testdir): Use func_lookup_file.
77742
77743 2006-07-29  Bruno Haible  <bruno@clisp.org>
77744
77745         * modules/setenv (Depends-on): Add unistd.
77746
77747 2006-07-29  Bruno Haible  <bruno@clisp.org>
77748
77749         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77750
77751 2006-07-29  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77754
77755 2006-07-29  Bruno Haible  <bruno@clisp.org>
77756
77757         * gnulib-tool (import, update): If there is no Makefile.am, look at
77758         aclocal.m4, instead of bailing out.
77759
77760 2006-07-29  Bruno Haible  <bruno@clisp.org>
77761
77762         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77763         Categorize the options by when they are useful.
77764
77765 2006-07-29  Bruno Haible  <bruno@clisp.org>
77766
77767         * gnulib-tool (func_usage): Document option --no-libtool.
77768         Handle option --no-libtool.
77769         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77770         for changed semantics of $libtool variable.
77771         (func_import): Likewise. If libtool is not used, show this through
77772         an option --no-libtool.
77773         (func_create_testdir): Update.
77774
77775 2006-07-29  Bruno Haible  <bruno@clisp.org>
77776
77777         * gnulib-tool (func_import): Extend error message about missing
77778         --doc-base.
77779
77780 2006-07-29  Bruno Haible  <bruno@clisp.org>
77781
77782         * gnulib-tool (func_import): Don't create the $docbase directory if
77783         there is no file to store there.
77784
77785 2006-07-29  Bruno Haible  <bruno@clisp.org>
77786
77787         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77788         relevant, look for configure.ac there, not in the current directory.
77789         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77790
77791 2006-07-29  Bruno Haible  <bruno@clisp.org>
77792
77793         * gnulib-tool (SORT): New variable.
77794         (func_usage): Undocument --assume-autoconf option.
77795         Remove --assume-autoconf option handling.
77796         (autoconf_minversion): Determine from the contents of configure.ac.
77797         (func_import): Remove autoconf_minversion handling.
77798         Suggested by Eric Blake.
77799
77800 2006-07-29  Bruno Haible  <bruno@clisp.org>
77801
77802         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77803
77804 2006-07-29  Bruno Haible  <bruno@clisp.org>
77805
77806         * config/srclist.txt (*setenv.[ch]): Remove rules.
77807
77808 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77809
77810         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77811
77812 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77813
77814         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77815         arpa/inet.h.
77816
77817 2006-07-28  Simon Josefsson  <jas@extundo.com>
77818
77819         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77820         * modules/inet_pton (Depends-on): Likewise.
77821
77822 2006-07-28  Simon Josefsson  <jas@extundo.com>
77823
77824         * m4/netinet_in_h.m4: New file.
77825
77826 2006-07-28  Simon Josefsson  <jas@extundo.com>
77827
77828         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77829         #include's.
77830
77831 2006-07-28  Simon Josefsson  <jas@extundo.com>
77832
77833         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77834         #include's.
77835
77836 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77839         setgid on directories only if they set these bits.
77840         * lib/modechange.h: Remove obsolete comment about masks.
77841
77842 2006-07-28  Eric Blake  <ebb9@byu.net>
77843
77844         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77845         macro expansion.
77846
77847 2006-07-28  Bruno Haible  <bruno@clisp.org>
77848
77849         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77850
77851 2006-07-28  Bruno Haible  <bruno@clisp.org>
77852
77853         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77854
77855 2006-07-28  Bruno Haible  <bruno@clisp.org>
77856
77857         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77858         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77859         Define fallbacks.
77860         Avoids link error on FreeBSD 4.x.
77861         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77862
77863         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77864         encoding.
77865         * lib/mbswidth.c (iswcntrl): Likewise.
77866
77867 2006-07-27  Bruno Haible  <bruno@clisp.org>
77868
77869         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77870         test.
77871
77872 2006-07-27  Bruno Haible  <bruno@clisp.org>
77873
77874         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77875         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77876         defined.
77877
77878 2006-07-26  Eric Blake  <ebb9@byu.net>
77879
77880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77881
77882 2006-07-26  Eric Blake  <ebb9@byu.net>
77883
77884         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77885         like mingw that lack mkstemp.
77886         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77887         avoid compilation warning on mingw.
77888
77889 2006-07-26  Bruno Haible  <bruno@clisp.org>
77890
77891         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77892         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77893         INT_FAST*_MIN, INTPTR_MIN.
77894
77895 2006-07-25  Bruno Haible  <bruno@clisp.org>
77896
77897         * modules/version-etc (Depends-on): Add stdarg.
77898
77899 2006-07-25  Bruno Haible  <bruno@clisp.org>
77900
77901         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77902         complex commands.
77903
77904 2006-07-25  Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77907         defined in <stdarg.h> or config.h.
77908
77909 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77912         (gl_STDIO_SAFER): Remove.
77913
77914 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77915
77916         * MODULES.html.sh (File stream based Input/Output):
77917         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77918         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77919         * modules/fopen-safer, modules/tmpfile-safer: New files.
77920         * modules/stdio-safer: Remove.
77921
77922 2006-07-24  Bruno Haible  <bruno@clisp.org>
77923
77924         * modules/tmpdir: New file.
77925         * MODULES.html.sh (File system functions): Add it.
77926
77927 2006-07-24  Bruno Haible  <bruno@clisp.org>
77928
77929         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77930         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77931
77932 2006-07-24  Bruno Haible  <bruno@clisp.org>
77933
77934         * modules/clean-temp: New file.
77935
77936 2006-07-24  Bruno Haible  <bruno@clisp.org>
77937
77938         * m4/tmpdir.m4: New file, from GNU gettext.
77939
77940 2006-07-24  Bruno Haible  <bruno@clisp.org>
77941
77942         * lib/tmpdir.h: New file, from GNU gettext.
77943         * lib/tmpdir.c: New file, from GNU gettext.
77944
77945 2006-07-24  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/clean-temp.h: New file, from GNU gettext.
77948         * lib/clean-temp.c: New file, from GNU gettext.
77949
77950 2006-07-23  Eric Blake  <ebb9@byu.net>
77951
77952         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77953         (Depends-on): Add binary-io.
77954
77955 2006-07-23  Eric Blake  <ebb9@byu.net>
77956
77957         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77958
77959 2006-07-23  Eric Blake  <ebb9@byu.net>
77960
77961         * lib/tmpfile-safer.c: New file.
77962         * lib/stdio-safer.h (fopen_safer): Add prototype.
77963         * lib/stdio--.h (tmpfile): Make safer.
77964
77965 2006-07-23  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77968         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77969         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77970         gl_linked_remove_at): Use it.
77971
77972 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77973         and Simon Josefsson <jas@extundo.com>
77974
77975         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77976
77977         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77978
77979 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * modules/close-stream: New file.
77982         * modules/closeout (Description): Make it clear that it exits
77983         with a diagnostic on error.
77984         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77985         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77986
77987 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77988
77989         * m4/close-stream.m4: New file.
77990
77991 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77992
77993         * lib/close-stream.c, lib/close-stream.h: New files.
77994
77995 2006-07-22  Bruno Haible  <bruno@clisp.org>
77996
77997         Merge from GNU gettext 0.15.
77998
77999         2006-05-01  Bruno Haible  <bruno@clisp.org>
78000
78001                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78002
78003         2006-07-22  Bruno Haible  <bruno@clisp.org>
78004
78005                 * modules/javaversion: New file.
78006                 * MODULES.html.sh (Java): Add javaversion.
78007
78008         2006-03-12  Bruno Haible  <bruno@clisp.org>
78009
78010                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78011
78012         2005-12-04  Bruno Haible  <bruno@clisp.org>
78013
78014                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78015                 (untested).
78016
78017         2006-06-21  Bruno Haible  <bruno@clisp.org>
78018
78019                 Avoid warnings from recent versions of mcs.
78020                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78021                 -o, -L, -r any more. Use options documented since mcs-1.0
78022                 instead. Similarly for -g.
78023
78024         2005-12-04  Bruno Haible  <bruno@clisp.org>
78025
78026                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78027                 .resources, not .resource.
78028
78029         2005-07-09  Bruno Haible  <bruno@clisp.org>
78030
78031                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78032                 add a .dll suffix.
78033                 Reported by Mark Junker <mjscod@gmx.de>.
78034
78035         2006-07-22  Bruno Haible  <bruno@clisp.org>
78036
78037                 * modules/gettext: Upgrade to gettext-0.15.
78038                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78039                 m4/visibility.m4.
78040                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78041
78042 2006-07-22  Bruno Haible  <bruno@clisp.org>
78043
78044         Merge from GNU gettext 0.15.
78045
78046         2006-03-25  Bruno Haible  <bruno@clisp.org>
78047
78048                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78049
78050         2006-07-21  Bruno Haible  <bruno@clisp.org>
78051
78052                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78053                 "1.1".
78054
78055         2006-05-09  Bruno Haible  <bruno@clisp.org>
78056
78057                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78058                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78059                 for the conftestver execution.
78060
78061         2006-05-01  Bruno Haible  <bruno@clisp.org>
78062
78063                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78064                 optional target-version argument. Verify that the compiler
78065                 groks source of the specified source-version, or add -source
78066                 option as necessary. Verify that the compiler produces
78067                 bytecode in the specified target-version, or add -target and
78068                 -source options as necessary. Make the result of the test
78069                 available as variable CONF_JAVAC. Also log error output in
78070                 config.log.
78071
78072         2006-03-11  Bruno Haible  <bruno@clisp.org>
78073
78074                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78075
78076         2006-05-09  Bruno Haible  <bruno@clisp.org>
78077
78078                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78079                 CLASSPATH_SEPARATOR to a semicolon.
78080
78081         2006-03-12  Bruno Haible  <bruno@clisp.org>
78082
78083                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78084                 available as variable CONF_JAVA, for subsequent autoconf
78085                 tests. Also log error output in config.log.
78086
78087         2006-07-19  Bruno Haible  <bruno@clisp.org>
78088
78089                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78090                 that getline works on glibc2 systems. Needed to avoid trouble
78091                 in relocatable.c.
78092                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78093
78094         2005-12-04  Bruno Haible  <bruno@clisp.org>
78095
78096                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78097                 launcher (untested).
78098
78099         2005-12-04  Bruno Haible  <bruno@clisp.org>
78100
78101                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78102
78103         2006-07-22  Bruno Haible  <bruno@clisp.org>
78104
78105                 * gettext.m4: Update from GNU gettext-0.15.
78106                 * nls.m4: Likewise.
78107                 * po.m4: Likewise.
78108                 * inttypes-pri.m4: Likewise.
78109                 * inttypes-h.m4: Renamed from inttypes.m4.
78110                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78111
78112 2006-07-22  Bruno Haible  <bruno@clisp.org>
78113
78114         Merge from GNU gettext 0.15.
78115
78116         2005-07-05  Bruno Haible  <bruno@clisp.org>
78117
78118                 * printf-args.c (printf_fetchargs): Work around broken
78119                 definition of wint_t on mingw.
78120
78121         2005-02-12  Bruno Haible  <bruno@clisp.org>
78122
78123                 * xallocsa.h: Add extern "C" for C++.
78124
78125         2006-05-17  Bruno Haible  <bruno@clisp.org>
78126
78127                 Cygwin portability.
78128                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78129
78130         2006-04-30  Bruno Haible  <bruno@clisp.org>
78131
78132                 * progreloc.c: Include <mach-o/dyld.h> if available.
78133                 (find_executable): Use _NSGetExecutablePath when possible.
78134
78135         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78136
78137                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78138                 function.
78139
78140         2005-12-29  Bruno Haible  <bruno@clisp.org>
78141
78142                 * progreloc.c (set_program_name_and_installdir): Fix
78143                 compilation error.
78144
78145         2005-12-04  Bruno Haible  <bruno@clisp.org>
78146
78147                 Cygwin portability.
78148                 * progreloc.c: Include <windows.h> also on Cygwin.
78149                 (find_executable): Add support for Cygwin.
78150                 (set_program_name_and_installdir): Handle also platforms with
78151                 nonempty EXEEXT.
78152
78153         2006-07-11  Bruno Haible  <bruno@clisp.org>
78154
78155                 * javacomp.c: Fix a comment.
78156                 Reported by Jim Meyering.
78157
78158         2006-04-30  Bruno Haible  <bruno@clisp.org>
78159
78160                 * javacomp.h (compile_java_class): Add source_version,
78161                 target_version arguments.
78162                 * javacomp.c: Rewritten to choose only a compiler that
78163                 respects the specified source_version and target_version.
78164
78165         2006-06-27  Bruno Haible  <bruno@clisp.org>
78166
78167                 Assume correct S_ISDIR macro.
78168                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78169
78170         2006-07-22  Bruno Haible  <bruno@clisp.org>
78171
78172                 * javaversion.h: New file, from GNU gettext.
78173                 * javaversion.c: New file, from GNU gettext.
78174                 * javaversion.java: New file, from GNU gettext.
78175                 * javaversion.class: New file, from GNU gettext.
78176
78177         2006-05-17  Bruno Haible  <bruno@clisp.org>
78178
78179                 Cygwin portability.
78180                 * javaexec.c (execute_java_class): Test for jview program
78181                 also on Cygwin.
78182
78183         2006-04-09  Bruno Haible  <bruno@clisp.org>
78184
78185                 * fatal-signal.c: Don't include string.h.
78186                 (at_fatal_signal): Use a copying loop instead of memcpy.
78187
78188         2005-12-04  Bruno Haible  <bruno@clisp.org>
78189
78190                 * csharpexec.c: Add support for 'clix' launcher (untested).
78191                 (execute_csharp_using_sscli): New function.
78192                 (execute_csharp_program): Call it.
78193
78194         2006-06-21  Bruno Haible  <bruno@clisp.org>
78195
78196                 Avoid warnings from recent versions of mcs.
78197                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78198                 -o, -L, -r any more. Use options documented since mcs-1.0
78199                 instead. Similarly for -g.
78200
78201         2005-07-09  Bruno Haible  <bruno@clisp.org>
78202
78203                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78204                 add a .dll suffix.
78205                 Reported by Mark Junker <mjscod@gmx.de>.
78206
78207         2006-06-17  Bruno Haible  <bruno@clisp.org>
78208
78209                 * config.charset: Update for NetBSD 3.0.
78210
78211         2006-05-17  Bruno Haible  <bruno@clisp.org>
78212
78213                 Cygwin portability.
78214                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78215
78216         2006-05-16  Bruno Haible  <bruno@clisp.org>
78217
78218                 * localcharset.c [CYGWIN]: Include <windows.h>.
78219                 (get_charset_aliases): For Cygwin, return the same CPxxx
78220                 aliases list as under WIN32.
78221                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78222                 the environment variables. Fall back to GetACP().
78223
78224         2006-04-05  Bruno Haible  <bruno@clisp.org>
78225
78226                 * config.charset: Update Juan Manuel Guerrero's address.
78227
78228         2005-02-12  Bruno Haible  <bruno@clisp.org>
78229
78230                 * allocsa.h: Add extern "C" for C++.
78231
78232         2005-02-10  Bruno Haible  <bruno@clisp.org>
78233
78234                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78235                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78236
78237         2006-07-22  Bruno Haible  <bruno@clisp.org>
78238
78239                 * gettext.h: Update to GNU gettext-0.15.
78240
78241 2006-07-22  Bruno Haible  <bruno@clisp.org>
78242
78243         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78244         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78245         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78246
78247 2006-07-21  Eric Blake  <ebb9@byu.net>
78248
78249         * modules/stdlib-safer: New file.
78250         * MODULES.html.sh (File stream based Input/Output): Add
78251         stdlib-safer.
78252
78253 2006-07-21  Eric Blake  <ebb9@byu.net>
78254
78255         * lib/stdlib-safer.h: New file from coreutils, required by
78256         stdlib--.h.
78257
78258 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78261
78262 2006-07-20  Bruno Haible  <bruno@clisp.org>
78263
78264         * gnulib-tool: Recognize new option --assume-autoconf.
78265         (autoconf_minversion): New variable.
78266         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78267
78268 2006-07-20  Bruno Haible  <bruno@clisp.org>
78269
78270         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78271
78272 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78273
78274         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78275         Reindent and repaginate.
78276
78277 2006-07-19  Derek Price  <derek@ximbiot.com>
78278
78279         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78280         Correct grammar.
78281
78282 2006-07-17  Bruno Haible  <bruno@clisp.org>
78283
78284         * modules/list: New file.
78285         * modules/array-list: New file.
78286         * modules/carray-list, modules/carray-list-tests: New files.
78287         * modules/linked-list, modules/linked-list-tests: New files.
78288         * modules/avltree-list, modules/avltree-list-tests: New files.
78289         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78290         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78291         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78292         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78293         * modules/oset: New file.
78294         * modules/array-oset: New file.
78295         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78296         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78297         * tests/test-carray_list.c: New file.
78298         * tests/test-linked_list.c: New file.
78299         * tests/test-avltree_list.c: New file.
78300         * tests/test-rbtree_list.c: New file.
78301         * tests/test-linkedhash_list.c: New file.
78302         * tests/test-avltreehash_list.c: New file.
78303         * tests/test-rbtreehash_list.c: New file.
78304         * tests/test-avltree_oset.c: New file.
78305         * tests/test-rbtree_oset.c: New file.
78306         * MODULES.html.sh (Container data structures): New section.
78307
78308 2006-07-17  Bruno Haible  <bruno@clisp.org>
78309
78310         * m4/gl_list.m4: New file.
78311
78312 2006-07-17  Bruno Haible  <bruno@clisp.org>
78313
78314         * lib/gl_list.h: New file.
78315         * lib/gl_list.c: New file.
78316         * lib/gl_array_list.h: New file.
78317         * lib/gl_array_list.c: New file.
78318         * lib/gl_carray_list.h: New file.
78319         * lib/gl_carray_list.c: New file.
78320         * lib/gl_linked_list.h: New file.
78321         * lib/gl_linked_list.c: New file.
78322         * lib/gl_anylinked_list1.h: New file.
78323         * lib/gl_anylinked_list2.h: New file.
78324         * lib/gl_avltree_list.h: New file.
78325         * lib/gl_avltree_list.c: New file.
78326         * lib/gl_anyavltree_list1.h: New file.
78327         * lib/gl_anyavltree_list2.h: New file.
78328         * lib/gl_rbtree_list.h: New file.
78329         * lib/gl_rbtree_list.c: New file.
78330         * lib/gl_anyrbtree_list1.h: New file.
78331         * lib/gl_anyrbtree_list2.h: New file.
78332         * lib/gl_anytree_list1.h: New file.
78333         * lib/gl_anytree_list2.h: New file.
78334         * lib/gl_linkedhash_list.h: New file.
78335         * lib/gl_linkedhash_list.c: New file.
78336         * lib/gl_anyhash_list1.h: New file.
78337         * lib/gl_anyhash_list2.h: New file.
78338         * lib/gl_avltreehash_list.h: New file.
78339         * lib/gl_avltreehash_list.c: New file.
78340         * lib/gl_rbtreehash_list.h: New file.
78341         * lib/gl_rbtreehash_list.c: New file.
78342         * lib/gl_anytreehash_list1.h: New file.
78343         * lib/gl_anytreehash_list2.h: New file.
78344
78345         * lib/gl_oset.h: New file.
78346         * lib/gl_oset.c: New file.
78347         * lib/gl_array_oset.h: New file.
78348         * lib/gl_array_oset.c: New file.
78349         * lib/gl_avltree_oset.h: New file.
78350         * lib/gl_avltree_oset.c: New file.
78351         * lib/gl_rbtree_oset.h: New file.
78352         * lib/gl_rbtree_oset.c: New file.
78353         * lib/gl_anytree_oset.h: New file.
78354
78355 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * m4/mkancesdirs.m4: New file.
78358         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78359         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78360         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78361         it.
78362
78363 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78366         * lib/mkancesdirs.h: New files.
78367         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78368         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78369         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78370         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78371         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78372         callers changed.  Revamp internals significantly, by not
78373         attempting to create directories that are temporarily more
78374         permissive than the final results.  Do not attempt to use
78375         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78376         This removes some race conditions, fixes some bugs, and simplifies
78377         things.  Use new dirchownmod function to do owner and mode changes.
78378         * lib/mkdir-p.h: Likewise.
78379         * lib/modechange.c (octal_to_mode): New function.
78380         (struct mode_change): New member mentioned.
78381         (make_node_op_equals): New arg mentioned.  All callers changed.
78382         (mode_compile): Keep track of which mode bits the user has explicitly
78383         mentioned.
78384         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78385         New arg PMODE_BITS, to keep track of which mode bits the user
78386         mentioned; it treats S_ISUID and S_ISGID speciall.
78387         All callers changed.
78388         * lib/modechange.h: Likewise.
78389
78390 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * MODULES.html.sh: Add mkancestors.
78393         * modules/mkancesdirs: New module.
78394         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78395         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78396         The chdir-safer and afs files are now orphans; I'll remove them
78397         unless someone speaks up.
78398         Add lib/dirchownmod.c, lib/dirchownmod.h.
78399         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78400         Add lchown, mkancesdirs.
78401         (Maintainer): Add self.
78402
78403 2006-07-15  Karl Berry  <karl@gnu.org>
78404
78405         * gnulib-tool: help message wording/arrangement.
78406
78407 2006-07-14  Simon Josefsson  <jas@extundo.com>
78408
78409         * doc/gnulib.texi (Libtool and Windows): New section.
78410
78411 2006-07-12  Simon Josefsson  <jas@extundo.com>
78412
78413         * modules/gendocs (License): Fix license, approved by Karl.
78414
78415 2006-07-12  Eric Blake  <ebb9@byu.net>
78416
78417         * MODULES.html.sh: Add gendocs.
78418
78419 2006-07-11  Eric Blake  <ebb9@byu.net>
78420
78421         * modules/fdl: New module, to install doc/fdl.texi.
78422         * MODULES.html.sh: Add new section for documentation modules.
78423         * gnulib-tool: Avoid space-tab.
78424         (--doc-base): New option, to manage files from doc.
78425
78426 2006-07-11  Eric Blake  <ebb9@byu.net>
78427
78428         * m4/absolute-header.m4: Fix comments to match recent change.
78429
78430 2006-07-11  Eric Blake  <ebb9@byu.net>
78431
78432         * gnulib-tool: List --doc-base before --tests-base.
78433
78434 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78435
78436         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78437
78438 2006-07-11  Bruno Haible  <bruno@clisp.org>
78439
78440         * README: Mention where to put documentation.
78441
78442 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78443
78444         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78445
78446 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78449         to stdint.m4.
78450
78451 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78454         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78455         "no/such/file/stdint.h" when there is no such file, so that
78456         the resulting C code can be parsed by dodgy compilers.
78457         Problems reported by Bob Proulx.
78458
78459 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78460
78461         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78462         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78463         macros into the GNU _D_EXACT_NAMLEN.
78464         * lib/savedir.c:  Likewise.
78465         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78466
78467 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78468         and Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78471         * m4/savedir.m4:
78472         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78473         macros into the GNU _D_EXACT_NAMLEN.
78474
78475 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78476
78477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78478         around the absolute name, to work around a problem with the HP-UX
78479         11.23 native C compiler, reported by Bob Proulx.
78480
78481 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * doc/maintain.texi, make-stds.texi: Sync from
78484         <http://savannah.gnu.org/projects/gnustandards>.
78485
78486 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78489
78490 2006-07-09  Jim Meyering  <jim@meyering.net>
78491
78492         * m4/glob.m4: Remove a doubled word in a comment.
78493
78494 2006-07-09  Jim Meyering  <jim@meyering.net>
78495
78496         * lib/argp-pv.c: Remove a doubled word in a comment.
78497         * lib/check-version.c (check_version): Likewise.
78498         * lib/javacomp.c (compile_java_class): Likewise.
78499
78500 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78503         for the benefit of people using Autoconf 2.60.  If you want to
78504         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78505         (or m4/onceonly.m4, if pre-2.57) manually.
78506
78507 2006-07-08  Jim Meyering  <jim@meyering.net>
78508
78509         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78510         comment.
78511         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78512         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78513         comment.
78514
78515 2006-07-08  Jim Meyering  <jim@meyering.net>
78516
78517         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78518
78519 2006-07-07  Simon Josefsson  <jas@extundo.com>
78520
78521         * tests/test-crc.c: Change expected crc value, the test vector
78522         were probably computed using the old broken crc.c?
78523
78524 2006-07-06  Simon Josefsson  <jas@extundo.com>
78525
78526         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78527         now the canonical place for the M4 file).
78528
78529         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78530         from the sys_socket dependency now.
78531
78532         * modules/inet_pton (Files): Ditto.
78533
78534         * modules/inet_ntop (Files): Ditto.
78535
78536 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78537
78538         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78539         not gl_PREREQ_GETUSERSHELL.
78540
78541 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78542
78543         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78544         with only one argument, for Autoconf 2.60.
78545         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78546         expand to nothing, so add a shell command to avoid syntax error.
78547         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78548
78549 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78550
78551         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78552
78553 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78554
78555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78556         no longer needed.  Check for isblank decl.
78557         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78558         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78559         of existence.
78560
78561 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         * lib/getloadavg.c: Use __VMS, not VMS.
78564         * lib/getopt.c: Likewise.
78565         * lib/getpagesize.h: Likewise.
78566         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78567         and probably does not work.
78568
78569 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78570
78571         * lib/.cppi-disable: Add wcwidth.
78572         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78573         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78574         (ISGRAPH): Remove.  All uses changed to isgraph.
78575         (FOLD) [!defined _LIBC]: Remove special case.
78576         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78577         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78578         HAVE_ISBLANK.
78579         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78580         case.
78581
78582 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78583
78584         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78585         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78586         brackets.  Other minor changes to suppress some compiler
78587         warnings.
78588
78589 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78590         and Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78593         of invoking obsolescent AC_HEADER_DIRENT macro.
78594         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78595         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78596         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78597         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78598         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78599         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78600         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78601         * m4/readdir.m4: Remove; no longer needed.
78602
78603 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78604         and Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78607         Don't worry about this obsolete case any more.
78608         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78609         directories.
78610         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78611         worry about this obsolete case any more.
78612         * lib/fts.c: Likewise.
78613         * lib/getcwd.c: Likewise.
78614         * lib/glob.h: Likewise.
78615         * lib/savedir.c: Likewise.
78616
78617 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78620         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78621         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78622         needed.
78623         All uses removed.
78624         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78625         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78626         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78627         needed.
78628         * m4/getdate.m4 (gl_GETDATE): Likewise.
78629         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78630         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78631         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78632         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78633         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78634         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78635         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78636         needed.
78637
78638 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * lib/memcasecmp.c: Include <limits.h>.
78641         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78642         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78643         Don't assume isdigit succeeds only on '0' through '9'.
78644
78645 2006-07-05  Eric Blake  <ebb9@byu.net>
78646
78647         * modules/getaddrinfo (Depends-on): Add snprintf.
78648
78649 2006-07-05  Eric Blake  <ebb9@byu.net>
78650
78651         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78652         to avoid 'header present but could not be compiled' on cygwin.
78653
78654 2006-07-05  Eric Blake  <ebb9@byu.net>
78655
78656         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78657         missing from netdb.h.
78658         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78659
78660 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78661
78662         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78663         no longer needed.
78664         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78665         * m4/getdate.m4 (gl_GETDATE): Likewise.
78666         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78667         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78668         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78669         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78671
78672 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78673
78674         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78675         All uses of is_space replaced by isspace.
78676         * lib/exit.h: Don't talk about STDC_HEADERS.
78677         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78678         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78679         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78680         replaced by isprint etc.
78681         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78682         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78683         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78684         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78685         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78686         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78687
78688 2006-07-05  Bruno Haible  <bruno@clisp.org>
78689
78690         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78691         the function exists, before testing against AIX.
78692         Reported by Martin Lambers <marlam@marlam.de>.
78693
78694 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78697         From Mark D. Baushke.
78698
78699 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78702         to the absolute name, not just one, to bypass Sun C 5.8's
78703         "warning: #include of /usr/include/... may be non-portable".
78704
78705 2006-07-04  Eric Blake  <ebb9@byu.net>
78706
78707         * modules/dirname-tests: New test module.
78708         * tests/test-dirname.c: New file, replacing dirname.c
78709         TEST_DIRNAME section that was recently deleted.
78710
78711 2006-07-04  Bruno Haible  <bruno@clisp.org>
78712
78713         Assume ANSI C header files and <ctype.h> functions.
78714         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78715         (mbsnwidth): Use isprint, iscntrl instead.
78716
78717 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         Merge from coreutils.
78720         * MODULES.html.sh: Add xstrtold.
78721         * modules/xstrtold: New file.
78722         * modules/cycle-check (Files): Add lib/same-inode.h.
78723         * modules/dirname (Files): Add m4/double-slash-root.m4.
78724         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78725         * modules/mkdir-p (Files): Add lib/same-inode.h.
78726         * modules/same (Files): Add lib/same-inode.h.
78727
78728 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78731         This is to keep the terminology clean; POSIX talks about
78732         "absolute pathnames", not "full pathnames", but the GNU
78733         Coding Standards say to use "path" for something else;
78734         so use "absolute" to keep both sides happy.
78735         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78736         Set gl_absolute_header, not gl_full_header_path.
78737         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78738         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78739         All uses changed.
78740
78741         Merge from coreutils.
78742
78743         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78746         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78747         want to require the building of c-strtod.o.
78748         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78749         needs -lm directly.
78750         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78751
78752         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78755         --as-needed option if available.  Problem reported by Albert Chin in
78756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78757         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78758         cc merely issues a bunch of annoying warnings for --as-needed
78759         (this problem was reported by Bob Proulx).  Also, try linking with
78760         -lm to detect a bug in binutils 2.16 (this problem was reported
78761         by Ralf Wildenhues).
78762
78763         2006-06-18  Jim Meyering  <jim@meyering.net>
78764
78765         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78766         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78767         macro.
78768         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78769         also check for glibc-2.4's abort-inducing bug.
78770
78771         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78772         Low-probability clean-up should be to use rmdir to get rid of
78773         the just-created directory, not unlink.
78774
78775         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78776         configure fail, and request a bug report to inform us about it.
78777         Add a comment that, barring reports to the contrary, in 2007 we'll
78778         assume ftruncate is universally available.
78779
78780         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78783
78784         2006-03-12  Jim Meyering  <jim@meyering.net>
78785
78786         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78788         * m4/same.m4 (gl_SAME): Likewise.
78789         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78790
78791         2006-03-11  Eric Blake  <ebb9@byu.net>
78792
78793         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78794         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78795         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78796         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78797
78798 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78799
78800         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78801         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78802         reported by Mark D. Baushke, one in
78803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78804
78805         Merge from coreutils.
78806
78807         * lib/.cppi-disable: Add stdint_.h.
78808         * lib/.cvsignore: Add stdint.h.
78809
78810         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78811
78812         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78813         both double and long double versions.
78814         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78815         * lib/xstrtold.c: New file.
78816         * lib/xstrtod.h (xstrtold): New decl.
78817
78818         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * lib/filemode.c (setst): Remove.
78821         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78822         (arguably) clearer, and the generated code is a bit smaller on my
78823         Debian GNU/Linux stable x86 host.
78824
78825         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78828         Assume that filemode.h includes sys/types.h and sys/stat.h.
78829         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78830         (ftypelet): Reorder to put common cases first, for efficiency.
78831         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78832         to do 'M'.
78833         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78834         of 10, for compatibility with FreeBSD.  All callers changed.
78835         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78836         types that can't be deduced solely from st_mode.  First arg is now a
78837         const pointer.
78838         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78839         (strmode): Renamed from mode_string.
78840         (filemodestring): New decl.
78841         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78842         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78843         needed.
78844         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78845
78846         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78849         fsusage.h now does that.  Include fsusage.h first, to test interface.
78850         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78851         at most one method (the old code could have generated decls that
78852         didn't conform to C89, not that this was ever exercised).
78853         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78854
78855         2006-03-19  Jim Meyering  <jim@meyering.net>
78856
78857         Work even in a chroot where d_ino values for entries in "/"
78858         don't match the stat.st_ino values for the same names.
78859         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78860         number, iterate through all entries again, using lstat instead.
78861         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78862         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78863
78864         * lib/getcwd.c (__getcwd): Clarify a comment.
78865         Use memcpy in place of a call to strcpy.
78866
78867         2006-03-12  Jim Meyering  <jim@meyering.net>
78868
78869         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78870         matches that of the current directory (which we're about to chdir ".."
78871         out of), then save the dev-ino of the parent, instead.
78872
78873         * lib/same-inode.h (SAME_INODE): New file/macro.
78874         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78875         Include "same-inode.h", instead.
78876         * lib/same.c: Likewise.
78877         * lib/cycle-check.h: Include "same-inode.h".
78878         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78879         * lib/cycle-check.c (SAME_INODE): Remove definition.
78880         * lib/root-dev-ino.h: Include "same-inode.h".
78881
78882         2006-03-11  Eric Blake  <ebb9@byu.net>
78883
78884         * lib/same.c (same_name): s/base_name/last_component/
78885         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78886         * lib/filenamecat.c (file_name_concat): Likewise.
78887
78888         2006-03-11  Eric Blake  <ebb9@byu.net>,
78889                     Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78892         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78893         drive prefix.
78894         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78895         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78896         (last_component): New method.
78897         * lib/dirname.c (dir_len): Determine when drive letters need a
78898         subsequent slash.  Preserve // when it is special.
78899         (dir_name): Don't append dot when drive letter is absolute.
78900         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78901         * lib/basename.c (base_name): New semantics - malloc the result.
78902         Preserve // when it is special.  Preserve relative files that look
78903         like drive letters.
78904         (base_len): Preserve // when it is special.
78905         (last_component): New method, similar to old base_name semantics.
78906         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78907         base_name.  Strip redundant slashes from ///.
78908
78909 2006-07-03  Jim Meyering  <jim@meyering.net>
78910
78911         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78912         macro is used before the first cycle_check call.
78913
78914 2006-07-03  Eric Blake  <ebb9@byu.net>
78915
78916         * modules/dirname (Depends-on): Add xstrndup.
78917
78918 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78919
78920         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78921         test cases, so that config.log is a bit easier to follow.
78922
78923 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78924
78925         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78926         both are 64 bits, since this seems to be the tradition, and this
78927         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78928         we ever run into a host that prefers long long to long in this
78929         case, we'll need another configure-time test.  Problem reported by
78930         Jim Meyering.
78931
78932 2006-07-02  Eric Blake  <ebb9@byu.net>
78933
78934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78935
78936 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78937
78938         * modules/inttypes (Depends-on): No longer depends on stdint.
78939         * modules/stdint (Description): Say more about assumptions.
78940         Say that the fast types might differ.  Say macros are used.
78941         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78942         (Makefile.am): Revise list of substituted symbols to match
78943         new stdint.m4.
78944         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78945         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78946         * tests/test-stdint.c (verify_same_types)
78947         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78948         the code conforms to C99/C89.
78949         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78950         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78951
78952 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78953
78954         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78955         but fix a bug, by requiring at least 64 bits.
78956         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78957         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78958         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78959         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78960
78961         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78962         changes.  Make 2.59 a prerequisite.  Check and substitute for
78963         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78964         inttypes.h.  Do not use special include files; just use the
78965         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78966         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78967         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78968         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78969         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78970         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78971         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78972         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78973         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78974         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78975         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78976         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78977         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78978         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78979         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78980         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78981         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78982         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78983         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78984         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78985         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78986         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78987         not check for things that C99 does not require, e.g., int8_t.  If
78988         a test isn't needed unless <stdint.h> isn't working, and is
78989         unlikely to be needed for any other reason, then don't do it
78990         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78991         size_t, since we assume C89 freestanding at least.  Do not check
78992         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78993         the right thing even if the types are not defined.  Instead use:
78994         (gl_STDINT_TYPE_PROPERTIES): New macro.
78995         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78996         testing whether <sys/types.h> clashes, as Autoconf does this for
78997         us now.  All uses removed.
78998         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78999         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79000         (gl_CHECK_TYPE_SAME):
79001         Remove; no longer needed.
79002         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79003         exists, since we'll return 0 anyway in that case.
79004         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79005
79006 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79009         possible collision with system files.
79010         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79011         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79012         WCHAR_MIN and WCHAR_MAX in this case.
79013         (<stddef.h>): Do not include; no longer needed.
79014         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79015         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79016         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79017         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79018         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79019         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79020         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79021         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79022         !defined(__c99))]: Include in this case too, since it's harmless
79023         now.
79024         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79025         dangerous to do so.
79026         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79027         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79028         (_STDINT_MIN, _STDINT_MAX): New macros.
79029         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79030         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79031         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79032         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79033         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79034         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79035         macros, not typedefs; this simplifies things quite a bit.
79036         Use long int for all types narrower than int64_t.
79037         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79038         Define in terms of long long int or int64_t or long int,
79039         not int64_t or int32_t.  This saves some compile-time testing.
79040         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79041         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79042         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79043         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79044         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79045         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79046         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79047         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79048         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79049         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79050         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79051         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79052         undef any previous version and define our own version, for
79053         simplicity and consistency with the new macros for types.
79054         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79055         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79056         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79057         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79058         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79059         @WINT_T_SUFFIX@ to keep things simple here.
79060         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79061         Simplify by assuming typical 8/16/32/64 host, since we're
79062         already doing that elsewhere anyway.
79063         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79064         and assume long long int is 64 bits if available.  This
79065         speeds up 'configure'.
79066
79067 2006-07-01  Eric Blake  <ebb9@byu.net>
79068
79069         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79070         Reported by Andreas Buening.
79071
79072 2006-07-01  Eric Blake  <ebb9@byu.net>
79073
79074         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79075
79076 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79077
79078         * lib/getaddrinfo.c: fixed typo
79079
79080 2006-06-29  Jim Meyering  <jim@meyering.net>
79081
79082         * modules/strftime (Maintainer): Add my name, since with the
79083         FPRINTFTIME changes strftime.c has forked from glibc.
79084
79085 2006-06-29  Eric Blake  <ebb9@byu.net>
79086
79087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79088
79089 2006-06-29  Eric Blake  <ebb9@byu.net>
79090
79091         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79092
79093 2006-06-29  Eric Blake  <ebb9@byu.net>
79094
79095         * lib/stat_.h: New file.
79096
79097 2006-06-29  Eric Blake  <ebb9@byu.net>
79098
79099         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79100         unused static function.
79101
79102 2006-06-29  Eric Blake  <ebb9@byu.net>
79103
79104         * doc/functions.texi (Function Portability): Document missing lstat
79105         on mingw.
79106
79107 2006-06-29  Eric Blake  <ebb9@byu.net>
79108
79109         * MODULES.html.sh: Add sys_stat.
79110         * modules/sys_stat: New module.
79111         * modules/mkstemp (Depends-on): Add sys_stat.
79112
79113 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79114
79115         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79116
79117 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79118
79119         * m4/c-bs-a.m4: Removed.
79120
79121 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79122
79123         * lib/strftime.c: Assume strftime() exists.
79124
79125 2006-06-29  Derek Price  <derek@ximbiot.com>
79126
79127         * modules/c-bs-a: Removed - \a is C89.
79128         * MODULES.html.sh: Remove c-bs-a.
79129
79130 2006-06-29  Bruno Haible  <bruno@clisp.org>
79131
79132         * modules/wcwidth (License): Change to LGPL.
79133
79134 2006-06-28  Simon Josefsson  <jas@extundo.com>
79135
79136         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79137         on _WIN32.
79138
79139         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79140         getnameinfo.
79141
79142 2006-06-28  Simon Josefsson  <jas@extundo.com>
79143
79144         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79145
79146 2006-06-28  Simon Josefsson  <jas@extundo.com>
79147
79148         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79149         functions there.  It will succeed on Windows XP, but on Windows
79150         2000 and (presumably) earlier, it will fail, and use the internal
79151         re-implementation.
79152         (use_win32_p): New function.
79153         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79154         Support AI_NUMERICSERV to disable getservbyname.
79155         (getnameinfo): New function, only supports
79156         NI_NUMERICHOST|NI_NUMERICSERV for now.
79157
79158         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79159         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79160         getnameinfo.
79161
79162 2006-06-28  Eric Blake  <ebb9@byu.net>
79163
79164         * modules/wcwidth: New file.
79165         * modules/mbchar (Depends-on): Add wcwidth.
79166         * modules/mbswidth (Depends-on): Add wcwidth.
79167         * MODULES.html.sh: Add wcwidth.
79168
79169 2006-06-28  Eric Blake  <ebb9@byu.net>
79170
79171         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79173
79174 2006-06-28  Eric Blake  <ebb9@byu.net>
79175
79176         * lib/xvasprintf.h: Fix comments.
79177
79178 2006-06-28  Eric Blake  <ebb9@byu.net>
79179
79180         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79181         * lib/mbswidth.c (wcwidth): Move from here...
79182         * lib/wcwidth.h: ...to this new file.
79183
79184 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79185
79186         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79187
79188         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79189         it's obsolete.
79190         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79191
79192 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79193
79194         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79195         Autoconf 2.60 says this stuff was obsolete.
79196
79197 2006-06-28  Bruno Haible  <bruno@clisp.org>
79198
79199         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79200
79201 2006-06-28  Bruno Haible  <bruno@clisp.org>
79202
79203         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79204         gt_TYPE_WCHAR_T.
79205
79206 2006-06-28  Bruno Haible  <bruno@clisp.org>
79207
79208         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79209         declaration for wcwidth.
79210         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79211
79212 2006-06-28  Bruno Haible  <bruno@clisp.org>
79213
79214         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79215         (mkdir): Define using _mkdir.
79216
79217 2006-06-28  Bruno Haible  <bruno@clisp.org>
79218
79219         * lib/getaddrinfo.h: Fix POSIX URL.
79220         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79221         _WIN32.
79222         (use_win32_p): Make static.
79223         (getaddrinfo): Reject service name if it is empty or does not consist
79224         solely of decimal digits, or if its value is > 65535.
79225         (getnameinfo): Remove useless casts.
79226
79227 2006-06-27  Simon Josefsson  <jas@extundo.com>
79228
79229         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79230         Eggert and Martin Lambers.
79231
79232 2006-06-27  Simon Josefsson  <jas@extundo.com>
79233
79234         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79235         Eggert and Martin Lambers.
79236
79237 2006-06-27  Bruno Haible  <bruno@clisp.org>
79238
79239         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79240         result to 0, not to empty.
79241         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79242
79243 2006-06-27  Bruno Haible  <bruno@clisp.org>
79244
79245         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79246
79247 2006-06-26  Simon Josefsson  <jas@extundo.com>
79248
79249         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79250         present.
79251
79252 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79255         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79257
79258 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79259
79260         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79261
79262 2006-06-26  Bruno Haible  <bruno@clisp.org>
79263
79264         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79265
79266 2006-06-26  Bruno Haible  <bruno@clisp.org>
79267
79268         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79269
79270 2006-06-26  Bruno Haible  <bruno@clisp.org>
79271
79272         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79273         SGI C compiler in pre-C99 mode.
79274         Suggested by Mark D. Baushke and Larry Jones.
79275
79276 2006-06-26  Bruno Haible  <bruno@clisp.org>
79277
79278         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79279         WCHAR_MAX.
79280         Reported by Mark D. Baushke and Larry Jones.
79281
79282 2006-06-26  Bruno Haible  <bruno@clisp.org>
79283
79284         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79285         in pre-C99 mode.
79286         Suggested by Mark D. Baushke and Larry Jones.
79287
79288 2006-06-23  Simon Josefsson  <jas@extundo.com>
79289             Bruno Haible  <bruno@clisp.org>
79290
79291         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79292         Emit mostlyclean-local rule.
79293         (func_emit_tests_Makefile_am): Likewise.
79294         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79295
79296 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79297
79298         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79299
79300 2006-06-23  Bruno Haible  <bruno@clisp.org>
79301
79302         * tests/test-stdint.c: Update to match ISO C 99 Technical
79303         Corrigendum 1.
79304
79305 2006-06-23  Bruno Haible  <bruno@clisp.org>
79306
79307         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79308
79309 2006-06-23  Bruno Haible  <bruno@clisp.org>
79310
79311         * lib/stdint_.h: Treat IRIX like OpenBSD.
79312
79313 2006-06-23  Bruno Haible  <bruno@clisp.org>
79314
79315         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79316         ISO C 99 Technical Corrigendum 1.
79317
79318 2006-06-22  Simon Josefsson  <jas@extundo.com>
79319
79320         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79321         MinGW.
79322
79323 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79326         needed.  Some compiler complained about some of them.  Problem reported
79327         by Larry Jones in
79328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79329
79330 2006-06-21  Simon Josefsson  <jas@extundo.com>
79331
79332         * tests/test-getaddrinfo.c: New file.
79333
79334         * modules/getaddrinfo-tests: New file.
79335
79336         * MODULES.html.sh: Add inet_pton.
79337
79338         * modules/inet_pton: New file.
79339
79340 2006-06-21  Simon Josefsson  <jas@extundo.com>
79341
79342         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79343         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79344         of using the (limited) gnulib implementation on Windows XP.
79345
79346         * m4/inet_pton.m4: New file.
79347
79348 2006-06-21  Simon Josefsson  <jas@extundo.com>
79349
79350         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79351         variable.
79352
79353         * lib/socket_.h: Don't define WINVER.
79354
79355         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79356         slightly modified to work in gnulib.
79357
79358 2006-06-21  Simon Josefsson  <jas@extundo.com>
79359
79360         * doc/gnulib.texi (Windows sockets): Add.
79361
79362 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         * lib/read-file.c (fread_file): Start with buffer allocation of
79365         0 bytes rather than 1 byte; this simplifies the code.
79366         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79367         code to free buffer and save/restore errno.
79368         (internal_read_file): Remove unused local.
79369
79370 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79373         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79374         Problem reported by Denis Excoffier in
79375         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79376
79377 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79378
79379         * modules/sys_socket, modules/socklen: Include sys/types since
79380         FreeBSD 4.x's sys/socket.h needs it.
79381
79382 2006-06-19  Simon Josefsson  <jas@extundo.com>
79383
79384         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79385
79386 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79389
79390 2006-06-19  Bruno Haible  <bruno@clisp.org>
79391
79392         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79393         and FULL_PATH_INTTYPES_H in angle brackets.
79394         Reported by Mark D. Baushke <mdb@gnu.org>.
79395
79396 2006-06-17  Eric Blake  <ebb9@byu.net>
79397
79398         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79399         errno.
79400
79401 2006-06-17  Bruno Haible  <bruno@clisp.org>
79402
79403         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79404         <sys/inttypes.h>.
79405
79406 2006-06-17  Bruno Haible  <bruno@clisp.org>
79407
79408         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79409         whether errno is declared. Assume <errno.h> declares errno.
79410
79411 2006-06-17  Bruno Haible  <bruno@clisp.org>
79412
79413         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79414
79415 2006-06-17  Bruno Haible  <bruno@clisp.org>
79416
79417         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79418         problem on Solaris 2.5.1.
79419
79420 2006-06-16  Eric Blake  <ebb9@byu.net>
79421
79422         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79423         * lib/unicodeio.c [!defined errno]: Likewise.
79424         * lib/strtol.c [!defined errno]: Likewise.
79425         * lib/strtod.c [!defined errno]: Likewise.
79426
79427 2006-06-15  Eric Blake  <ebb9@byu.net>
79428
79429         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79430
79431 2006-06-15  Eric Blake  <ebb9@byu.net>
79432
79433         * config/srclist.txt (ssize_t.m4): Lose sync.
79434
79435 2006-06-15  Bruno Haible  <bruno@clisp.org>
79436
79437         * modules/stdint (Files): Include m4/full-header-path.m4,
79438         m4/size_max.m4, m4/wchar_t.m4.
79439         (Makefile.am): Many more substitutions.
79440         * modules/stdint-tests: New file.
79441         * tests/test-stdint.c: New file.
79442
79443 2006-06-15  Bruno Haible  <bruno@clisp.org>
79444
79445         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79446         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79447         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79448         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79449         gl_CHECK_TYPE_SAME): New macros.
79450
79451 2006-06-15  Bruno Haible  <bruno@clisp.org>
79452
79453         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79454
79455 2006-06-15  Bruno Haible  <bruno@clisp.org>
79456
79457         * lib/stdint_.h: Rewritten to be fully auto-configured.
79458         Fixes bug on HP-UX/IA64.
79459
79460 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79461
79462         * lib/getdate.y (__attribute__): Don't define if already defined.
79463         Problem reported by Larry Jones.
79464         * lib/utimens.c (__attribute__): Likewise.
79465
79466 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79469         reported by Andreas Schwab.
79470
79471 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79472             Bruno Haible  <bruno@clisp.org>
79473
79474         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79475         check for the declaration of strnlen and a run test that exposes the
79476         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79477         rpl_strndup.
79478
79479 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79480             Bruno Haible  <bruno@clisp.org>
79481
79482         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79483
79484 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79485
79486         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79487         compile test, for Tru64 4.0D.
79488
79489 2006-05-28  Karl Berry  <karl@gnu.org>
79490
79491         * config/srclist.txt (printf-args.c): lose sync.
79492
79493 2006-05-26  Martin Lambers  <marlam@marlam.de>
79494
79495         * lib/getpass.c: Updates the test for the native W32 API, and adds
79496         missing includes, thus fixing compilation warnings.
79497
79498 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79499
79500         * lib/exclude.c (exclude_fnmatch): New function.
79501         (excluded_file_name): Call exclude_fnmatch.
79502         * lib/exclude.h (excluded_file_name): New prototype
79503
79504 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79505
79506         * lib/tempname.c (small_open, large_open): New macros.
79507         (__open, __open64) [!_LIBC]: Remove.
79508         (__gen_tempname): Use small_open and large_open instead of __open
79509         and __open64.  This fixes a portability bug on HP-UX 11.11i
79510         reported by Simon Wing-Tang in
79511         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79512
79513 2006-05-24  Bruno Haible  <bruno@clisp.org>
79514
79515         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79516         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79517         Reported by Thorsten Maerz <torte@netztorte.de> via
79518         Aaron Stone <aaron@serendipity.cx>.
79519
79520 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79523         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79524         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79525         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79526         not really conditional on the cache.
79527         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79528
79529 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79532         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79533         (my_usleep): Don't mishandle maximum value.
79534
79535 2006-05-19  Jim Meyering  <jim@meyering.net>
79536
79537         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79538
79539 2006-05-17  Bruno Haible  <bruno@clisp.org>
79540
79541         Cygwin portability.
79542         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79543
79544 2006-05-17  Bruno Haible  <bruno@clisp.org>
79545
79546         * lib/stdint_.h: Fix recognition of Cygwin.
79547
79548 2006-05-15  Bruno Haible  <bruno@clisp.org>
79549
79550         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79551         on libtool patch by Ralf Wildenhues.
79552
79553 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79556         test for C99 conformance; (bool) 0.5 is an integer constant
79557         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79558         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79559
79560 2006-05-11  Simon Josefsson  <jas@extundo.com>
79561
79562         * m4/xvasprintf.m4: Fix obvious typo.
79563
79564 2006-05-11  Jim Meyering  <jim@meyering.net>
79565
79566         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79567         James Lemley.
79568
79569 2006-05-10  Simon Josefsson  <jas@extundo.com>
79570
79571         * lib/md4.c: Typo fix, update copyright years.
79572         (K1, K2): Don't use L because it turn computations into 64-bit on
79573         64-bit platforms.
79574
79575 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79578         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79579         unwanted sign propagation, e.g., on hosts with 64-bit int.
79580         There still are some problems with reeelly weird theoretical hosts
79581         (e.g., 33-bit int) but it's not worth worrying about now.
79582         * lib/sha1.c (rol): Likewise.
79583         (K1, K2, K3, K4): Remove unnecessary L suffix.
79584
79585 2006-05-10  Bruno Haible  <bruno@clisp.org>
79586
79587         * lib/des.c: Cast to avoid warnings.
79588
79589 2006-05-09  Bruno Haible  <bruno@clisp.org>
79590
79591         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79592         (Depends-on): Depend also on xsize, stdarg.
79593         (configure.ac): Add gl_XVASPRINTF.
79594
79595 2006-05-09  Bruno Haible  <bruno@clisp.org>
79596
79597         * m4/xvasprintf.m4: New file.
79598
79599 2006-05-09  Bruno Haible  <bruno@clisp.org>
79600
79601         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79602         (EOVERFLOW): Define fallback value.
79603         (xstrcat): New function.
79604         (xvasprintf): Recognize the special case of a string concatenation.
79605
79606 2006-05-08  Eric Blake  <ebb9@byu.net>
79607
79608         * gnulib-tool (func_version): Base copyright year on CVS date.
79609         (func_emit_copyright_notice): New function.
79610         (func_emit_lib_Makefile_am): Use it.
79611         (func_emit_tests_Makefile_am): Likewise.
79612         (func_import): Likewise.
79613
79614 2006-05-08  Bruno Haible  <bruno@clisp.org>
79615
79616         * modules/stdarg: New file.
79617         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79618
79619 2006-05-08  Bruno Haible  <bruno@clisp.org>
79620
79621         * m4/stdarg.m4: New file, from GNU gettext.
79622
79623 2006-05-08  Bruno Haible  <bruno@clisp.org>
79624
79625         * config/srclist.txt (build-aux/config.rpath): different from latest
79626         release.
79627
79628 2006-05-08  Bruno Haible  <bruno@clisp.org>
79629
79630         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79631
79632 2006-05-05  Jim Meyering  <jim@meyering.net>
79633
79634         * m4/warning.m4: New file, derived from bison's file by the same name.
79635
79636 2006-05-03  Bruno Haible  <bruno@clisp.org>
79637
79638         * lib/stdint_.h: Shorter URL.
79639         * lib/inttypes.h: Likewise.
79640
79641 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79642
79643         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79644
79645 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * lib/verify.h: Document the internals better.  Most of this change
79648         was written by Bruno Haible.
79649
79650 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * doc/verify.texi: New file, partly based on a proposal by
79653         Bruno Haible.
79654
79655 2006-05-02  Bruno Haible  <bruno@clisp.org>
79656
79657         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79658         test from here...
79659         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79660
79661 2006-04-29  Bruno Haible  <bruno@clisp.org>
79662
79663         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79664         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79665
79666 2006-04-29  Bruno Haible  <bruno@clisp.org>
79667
79668         * gnulib-tool: Make --update option actually work.
79669
79670 2006-04-29  Bruno Haible  <bruno@clisp.org>
79671
79672         * doc/gcd.texi: New file.
79673         * doc/gnulib.texi: Include it.
79674
79675 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * lib/getdate.y (get_date): When adding relative date, start with the
79678         initial time, not with the result of the first mktime call.
79679
79680 2006-04-25  Bruno Haible  <bruno@clisp.org>
79681
79682         * gnulib-tool (func_import): Output the include directives in three
79683         blocks, sorted separately.
79684         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79685
79686 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79689         to define main with arguments, for C++.  Reported by Eric Blake.
79690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79691         Prefer 'int main ()' to 'int main (void)', for C++.
79692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79694         for 'main', for C99 and C++.
79695
79696 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79697
79698         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79699         Don't assume that exit status -1 is valid.
79700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79701         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79702         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79703         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79704         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79705         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79706         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79707         functions can be used without declaring them, or that you can
79708         exit with status -1.
79709         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79710
79711 2006-04-24  Karl Berry  <karl@gnu.org>
79712
79713         * config/srclist.txt (longdouble.m4): sync lost.
79714
79715 2006-04-24  Eric Blake  <ebb9@byu.net>
79716
79717         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79718
79719 2006-04-24  Bruno Haible  <bruno@clisp.org>
79720
79721         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79722         poll() implementation in AIX.
79723         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79724
79725 2006-04-24  Bruno Haible  <bruno@clisp.org>
79726
79727         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79728         assigned exactly once.
79729
79730 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79731             Bruno Haible  <bruno@clisp.org>
79732
79733         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79734         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79735         for AM_CPPFLAGS.
79736
79737 2006-04-23  Bruno Haible  <bruno@clisp.org>
79738
79739         * modules/copy-file: Depend on unistd.
79740         * modules/execute: Likewise.
79741         * modules/fatal-signal: Likewise.
79742         * modules/findprog: Likewise.
79743         * modules/mkdtemp : Likewise.
79744         * modules/pipe: Likewise.
79745         * modules/wait-process: Likewise.
79746
79747 2006-04-23  Bruno Haible  <bruno@clisp.org>
79748
79749         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79750         condition was already detected.
79751         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79752
79753 2006-04-23  Bruno Haible  <bruno@clisp.org>
79754
79755         * lib/copy-file.c: Include <unistd.h> unconditionally.
79756         * lib/execute.c: Likewise.
79757         * lib/fatal-signal.c: Likewise.
79758         * lib/findprog.c: Likewise.
79759         * lib/mkdtemp.c: Likewise.
79760         * lib/pipe.h: Likewise.
79761         * lib/pipe.c: Likewise.
79762         * lib/wait-process.h: Likewise.
79763
79764 2006-04-23  Bruno Haible  <bruno@clisp.org>
79765
79766         * gnulib-tool (func_usage): Fix --import description. Document
79767         --update.
79768         (func_import): Create temporary file in a temporary directory, if
79769         --dry-run is specified. Silence errors from 'grep' when there are no
79770         m4 files in $m4dir.
79771         (func_create_testdir): Silence errors from 'grep' when there are no
79772         m4 files in $m4dir.
79773         Reported by Karl Berry <karl@freefriends.org>.
79774
79775 2006-04-20  Bruno Haible  <bruno@clisp.org>
79776
79777         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79778         one argument, so that the code will be portable to Autoconf 2.60.
79779         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79780         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79781         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79782
79783 2006-04-19  Derek Price  <derek@ximbiot.com>
79784             Eric Blake  <ebb9@byu.net>
79785
79786         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79787         rather than "/full/path.h".  Update comment to match.  Shorten &
79788         generalize m4_translit call via AS_TR_CPP.
79789
79790 2006-04-19  Derek Price  <derek@ximbiot.com>
79791             Eric Blake  <ebb9@byu.net>
79792
79793         * lib/inttypes.h: Correct grammar in comment.
79794
79795 2006-04-18  Derek Price  <derek@ximbiot.com>
79796             Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * modules/inttypes: New file.
79799         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79800
79801 2006-04-18  Derek Price  <derek@ximbiot.com>
79802             Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79805         New files.
79806
79807 2006-04-18  Derek Price  <derek@ximbiot.com>
79808             Paul Eggert  <eggert@cs.ucla.edu>
79809
79810         * lib/inttypes.h: New file.
79811         * lib/strtoimax.c: Assume <inttypes.h>.
79812
79813 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79816         isn't mounted.  Problem reported by Kir Kolyshkin.
79817
79818 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79821         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79822         Derek R. Price.
79823         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79824         implementation.
79825
79826 2006-04-12  Eric Blake  <ebb9@byu.net>
79827
79828         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79829         is now done automatically by the corresponding Autoconf macro.
79830
79831 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79834         time_r.h.
79835
79836 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         Merge regex changes from libc, removing some of our
79839         POSIX-conformance changes that were rejected and redoing them in a
79840         less-intrusive way.
79841
79842         * lib/regcomp.c (re_compile_internal, init_dfa):
79843         Length arg is now size_t, not Idx.  All uses changed.
79844         (peek_token): Forward decl now says internal_function.
79845         (__re_error_msgid, __re_error_msgid_idx):
79846         Now static rather than extern with attribute_hidden.
79847         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79848         For some reason libc prefers K&R style defns for external functions.
79849         (regerror) [!defined _LIBC]: Likewise.
79850         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79851         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79852         (build_range_exp, build_collating_symbol):
79853         Use K&R-style defn.
79854         (re_compile_fastmap): Use '\0' to memset, not 0.
79855         (utf8_sb_map): Make the calculations more obvious.
79856         (init_dfa, parse_bracket_exp, build_charclass_op):
79857         Call calloc and cast result, as glibc does.
79858         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79859         (build_range_exp, build_collating_symbol):
79860         Now internal functions.
79861
79862         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79863
79864         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79865         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79866         Don't depend on VMS; depend on __VMS instead, for POSIX
79867         namespace cleanness.
79868         (regoff_t): Define to ssize_t, not long int.
79869
79870         Remove the REG_ macros named below.  Instead, make the old names
79871         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79872         __USE_GNU_REGEX.
79873         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79874         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79875         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79876         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79877         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79878         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79879         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79880         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79881         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79882         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79883         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79884         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79885         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79886         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79887         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79888         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79889         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79890         (REG_NREGS):
79891         Remove.  All uses replaced by the old RE_* names.
79892         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79893         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79894         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79895         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79896         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79897         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79898         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79899         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79900         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79901         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79902         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79903         Don't bother having these macros be independent of each others'
79904         values, since they no longer exist in the POSIX name space.
79905
79906         Rename the following member names back to their old names,
79907         unless !__USE_GNU_REGEX.  All uses changed back.
79908         (buffer): Renamed from re_buffer.
79909         (allocated): Renamed from re_allocated.
79910         (used): Renamed from re_used.
79911         (syntax): Renamed from re_syntax.
79912         (fastmap): Renamed from re_fastmap.
79913         (translate): Renamed from re_translate.
79914         (can_be_null): Renamed from re_can_be_null.
79915         (regs_allocated): Renamed from re_regs_allocated.
79916         (fastmap_accurate): Renamed from re_fastmap_accurate.
79917         (no_sub): Renamed from re_no_sub.
79918         (not_bol): Renamed from re_not_bol.
79919         (not_eol): Renamed from re_not_eol.
79920         (newline_anchor): Renamed from re_newline_anchor.
79921         (num_regs): Renamed from rm_num_regs.
79922         (start): Renamed from rm_start.
79923         (end): Renamed from rm_end.
79924
79925         (free_state): Move up a bit.
79926
79927         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79928         #define to be empty.
79929         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79930         when that is what is intended.
79931         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79932         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79933         (MAX): New macro.
79934         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79935         All uses changed back to re_malloc, etc.  It's now the caller's
79936         responsibility to check for overflow; all callers changed.
79937         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79938         (re_x2nrealloc): Remove.
79939         (free_state): Remove decl.
79940
79941         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79942         (re_set_registers, re_exec):
79943         Use K&R-style defn.
79944
79945         2006-01-31  Roland McGrath  <roland@redhat.com>
79946
79947         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79948         Reported by Mike Frysinger <vapier@gentoo.org>.
79949
79950         2006-01-15  Andreas Jaeger  <aj@suse.de>
79951
79952         [BZ #1950]
79953         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79954         build_wcs_upper_buffer change.
79955         (build_wcs_upper_buffer): Change return type.
79956
79957         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79958
79959         * lib/regex_internal.h: Include <stdint.h> if available.
79960
79961         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79962
79963         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79964
79965         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79966
79967         * lib/regcomp.c: Adjust for changed secondary hash function.
79968
79969         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79970
79971         * lib/regex.h: Pretty printing.
79972         Clean up namespace a bit.
79973
79974         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79975
79976         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79977         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79978
79979         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79980                     Ulrich Drepper  <drepper@redhat.com>
79981
79982         [BZ #1302]
79983         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79984         changed.
79985         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79986
79987         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79988
79989         [BZ #281]
79990         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79991         * lib/regcomp.c: Remove unnecessary uses of
79992         unsigned RE_TRANSLATE_TYPE.
79993         * lib/regex_internal.h: Likewise.
79994         * lib/regex_internal.c: Likewise.
79995         * lib/regexec.c: Likewise.
79996         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79997
79998         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79999
80000         * lib/regexec.c (find_recover_state): Remove unnecessary
80001         initialization.
80002         (transit_state_bkref): Make DFA a const pointer.
80003         (get_subexp): Likewise.
80004         (check_arrival): Likewise.
80005         (update_cur_sifted_state): Likewise.
80006         (re_search_internal): Likewise.
80007         (prune_impossible_nodes): Likewise.
80008         (acquire_init_state_context): Likewise.
80009         (proceed_next_node): Likewise.
80010         (set_regs): Likewise.
80011         (free_fail_stack_return): Likewise.
80012         (check_arrival_expand_ecl): Mark DFA parameter as const.
80013         (check_arrival_expand_ecl_sub): Likewise.
80014         (check_subexp_limits): Likewise.
80015         (sub_epsilon_src_nodes):  Likewise.
80016         (add_epsilon_src_nodes):  Likewise.
80017         (merge_state_array): Likewise.
80018         (update_regs): Likewise.
80019         (build_trtable): Likewise.
80020         (sift_states_backward): Mark MCTX parameter as const.
80021         (build_sifted_states): Likewise.
80022         (update_cur_sifted_state): Likewise.
80023         (sift_states_mkref): Likewise.
80024         (check_arrival_expand_ecl): Mark eclosure as const.
80025         (check_dst_limits_calc_pos_1): Likewise.
80026         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80027         pointer.
80028
80029         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80030
80031         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80032         (transit_state_sb): Likewise.
80033         (transit_state_mb): Likewise.
80034         (sift_states_iter_mb): Likewise.
80035         (check_arrival_add_next_nodes): Likewise.
80036         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80037         [_LIBC] (re_search_2_stub): Use mempcpy.
80038
80039         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80040         mbrtowc for very simple UTF-8 case.
80041
80042         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80043         a pointer-to-const.
80044         (re_acquire_state_context): Likewise.
80045         * lib/regex_internal.h: Adjust prototypes.
80046
80047         * lib/regex.c: Prevent using C++ compilers.
80048
80049         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80050         (re_acquire_state_context): Likewise.
80051
80052 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * modules/regex (Depends-on): Add ssize_t.
80055
80056 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80057
80058         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80059         translation table.
80060
80061 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80064
80065 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80066             Bruno Haible  <bruno@clisp.org>
80067
80068         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80069         <sys/types.h> and <inttypes.h>.
80070
80071 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80072
80073         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80074         `__error_t_defined', so argp.h will not typedef the former.
80075
80076 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80077
80078         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80079         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80080         glibc names.  Even if glibc is changed to conform to POSIX, the
80081         traditional names will be available anyway, since regex depends on
80082         the extensions module.  Also, fix a longstanding typo in the
80083         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80084         reported by Emanuele Giaquinta.  Also, change sense of cached
80085         variable, so that the message makes sense.
80086
80087 2006-03-24  Simon Josefsson  <jas@extundo.com>
80088
80089         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80090         including some doc fixes.
80091         (base64_encode_alloc): Fix +1 bug on allocation failures.
80092
80093 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80094
80095         * lib/base64.c (base64_encode): Do not read past end of array with
80096         unsanitized input on systems with CHAR_BIT > 8.
80097
80098 2006-03-24  Eric Blake  <ebb9@byu.net>
80099
80100         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80101
80102 2006-03-22  Karl Berry  <karl@gnu.org>
80103
80104         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80105         * config/srclistvars.sh (COREUTILS): new var.
80106
80107 2006-03-17  Jim Meyering  <jim@meyering.net>
80108
80109         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80110         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80111
80112 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80115         no longer needs it.  Instead, check that regoff_t is as least
80116         as wide as ptrdiff_t.
80117
80118         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80119         so that our regex.h stays compatible with the installed regex.
80120         This is helpful for installers who configure --without-included-regex.
80121         Problem reported by Emanuele Giaquinta.
80122
80123 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80124
80125         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80126         Typedef to long int, not to off_, as POSIX will likely change
80127         in that direction.
80128
80129 2006-03-15  Eric Blake  <ebb9@byu.net>
80130
80131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80132
80133 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80134
80135         * lib/argp-help.c (validate_uparams): Fix typo
80136         * lib/argp-parse.c (argp_default_options): Consistently begin help
80137         messages with a lowercase letter.
80138
80139 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80142         overrun buffers and shouldn't be used (much as gets shouldn't be
80143         used).
80144         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80145
80146 2006-03-08  Simon Josefsson  <jas@extundo.com>
80147
80148         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80149         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80150
80151 2006-03-08  Simon Josefsson  <jas@extundo.com>
80152
80153         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80154         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80155
80156 2006-03-08  Simon Josefsson  <jas@extundo.com>
80157
80158         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80159         signal that configure disabled the device.
80160
80161 2006-03-08  Simon Josefsson  <jas@extundo.com>
80162
80163         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80164         languages.
80165
80166 2006-03-07  Simon Josefsson  <jas@extundo.com>
80167
80168         * modules/getopt (Depends-on): Add unistd.
80169
80170         * modules/unistd: New file.
80171
80172 2006-03-07  Simon Josefsson  <jas@extundo.com>
80173
80174         * modules/gc-random: New file.
80175
80176 2006-03-07  Simon Josefsson  <jas@extundo.com>
80177
80178         * m4/unistd_h.m4: New file.
80179
80180 2006-03-07  Simon Josefsson  <jas@extundo.com>
80181
80182         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80183         test to be side-effect free by storing the result in the cache
80184         variable gl_cv_lib_readline, and moving the assignment of
80185         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80186         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80187
80188 2006-03-07  Simon Josefsson  <jas@extundo.com>
80189
80190         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80191         error on missing devices (the functions will return an error).
80192
80193         * m4/gc.m4: Move random stuff to gc-random.m4
80194
80195 2006-03-07  Simon Josefsson  <jas@extundo.com>
80196
80197         * lib/unistd_.h: New file.
80198
80199 2006-03-07  Simon Josefsson  <jas@extundo.com>
80200
80201         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80202
80203 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80206         Problem reported by Juan Manuel Guerrero.
80207
80208 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80211         the unistd module.
80212         * lib/getlogin_r.c: Likewise.
80213         * lib/getlogin_r.h: Likewise.
80214         * lib/glob.c: Likewise.
80215         * lib/pagealign_alloc.c: Likewise.
80216         * lib/unistd_.h: Remove; no longer needed.
80217
80218 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80221         Add unistd.
80222         * modules/c-stack (Depends-on): Add unistd.
80223         * modules/getlogin_r: Likewise.
80224         * modules/glob: Likewise.
80225         * modules/pagealign_alloc: Likewise.
80226         * modules/unistd (Files): Remove lib/unistd_.h.
80227         (EXTRA_DIST): Remove.
80228         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80229         need unistd_.h.
80230         (MOSTLYCLEANFILES): Remove unistd.h-t.
80231
80232 2006-03-03  Simon Josefsson  <jas@extundo.com>
80233
80234         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80235
80236 2006-03-03  Simon Josefsson  <jas@extundo.com>
80237
80238         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80239         libidn and bison.
80240
80241 2006-03-03  Simon Josefsson  <jas@extundo.com>
80242
80243         * build-aux/maint.mk: Add indent target.
80244
80245 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80246
80247         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80248         our replacement poll.h in any case, to avoid a differing
80249         declaration from a system header.  Seen on AIX.
80250
80251 2006-03-01  Simon Josefsson  <jas@extundo.com>
80252
80253         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80254         <kasal@ucw.cz>.
80255
80256 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * modules/gettime (Depends-on): Add extensions module.
80259         * modules/nanosleep (Depends-on): Likewise.
80260         * modules/settime (Depends-on): Likewise.
80261
80262 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80265         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80266         pedantically.
80267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80268         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80269
80270         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80271         not "==".  Reported by Ralf Wildenhues.
80272
80273 2006-03-01  Karl Berry  <karl@gnu.org>
80274
80275         * doc/Copyright/request-*: new files, synced from gnuorg.
80276
80277 2006-03-01  Karl Berry  <karl@gnu.org>
80278
80279         * config/srclist.txt (Copyright/*): new entries.
80280
80281 2006-02-28  Simon Josefsson  <jas@extundo.com>
80282
80283         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80284
80285 2006-02-27  Simon Josefsson  <jas@extundo.com>
80286
80287         * lib/base64.h: Indent #define's.  From Jim Meyering
80288         <jim@meyering.net>.
80289
80290 2006-02-27  Jim Meyering  <jim@meyering.net>
80291
80292         Revert the change of 2006-02-24, so these files can continue
80293         to be sync'd from gettext.
80294         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80295         of `config.h'.
80296
80297 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80298
80299         * modules/intprops: New file.
80300         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80301         Add intprops.
80302         * modules/getloadavg (Files): Remove lib/intprops.h.
80303         (Depends-on): Add intprops.
80304         * modules/human: Likewise.
80305         * modules/inttostr: Likewise.
80306         * modules/openat: Likewise.
80307         * modules/sig2str: Likewise.
80308         * modules/userspec: Likewise.
80309         * modules/utimecmp: Likewise.
80310         * modules/xnanosleep: Likewise.
80311         * modules/xstrtol: Likewise.
80312
80313 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80314
80315         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80316         * modules/lock-tests (TESTS): Use $(EXEEXT).
80317         * modules/tls-tests: Likewise.
80318         * modules/argp-tests: Likewise.
80319         (check_PROGRAMS): New var, replacing...
80320         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80321
80322 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80323
80324         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80325         `config.h'.
80326
80327 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80328
80329         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80330
80331 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80332
80333         Sync from coreutils.
80334         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80335         gl_CHDIR_SAFER.
80336
80337 2006-02-22  Jim Meyering  <jim@meyering.net>
80338
80339         Sync from coreutils.
80340         * m4/chdir-safer.m4: New file.
80341
80342 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80345         AT_FDCWD exceeds INT_MAX.
80346         * lib/openat.h (AT_FDCWD): Likewise.
80347
80348 2006-02-17  Eric Blake  <address@hidden>
80349
80350         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80351
80352 2006-02-16  Simon Josefsson  <jas@extundo.com>
80353
80354         * modules/getaddrinfo (Depends-on): Add sys_socket.
80355
80356 2006-02-15  Simon Josefsson  <jas@extundo.com>
80357
80358         * build-aux/maint.mk: Add dsyntax-check rule.
80359
80360 2006-02-15  Eric Blake  <ebb9@byu.net>
80361
80362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80363         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80364         'present but cannot compile' warnings on cygwin.
80365         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80366         use ws2tcpip.h if sys/socket.h works.
80367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80368         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80369
80370 2006-02-14  Simon Josefsson  <jas@extundo.com>
80371
80372         * modules/maintainer-makefile (Files): Rename.
80373
80374         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80375         and (the local) Makefile.cfg to maint-cfg.mk.
80376
80377         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80378         to the latter.
80379
80380         * modules/maintainer-makefile: New module.
80381
80382         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80383         severaly stripped to make it possible to build it up from scratch
80384         with reliable tests.
80385
80386         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80387         fixes to permit overriding the default actions when configure and
80388         makefile are not available.
80389
80390 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80391
80392         Sync from coreutils.
80393         * modules/lstat (Depends-on): Don't depend on xalloc.
80394         (License): Change from GPL to LGPL, since this is now simply a
80395         replacement for a libc function.
80396
80397 2006-02-14  Jim Meyering  <jim@meyering.net>
80398
80399         Sync from coreutils.
80400
80401         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80402         failure on deficient systems, and simplify gnulib lgpl dependencies.
80403         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80404         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80405
80406         * lib/xalloc-die.c: Remove unused definition of N_.
80407
80408 2006-02-14  Jim Meyering  <jim@meyering.net>
80409
80410         Sync from coreutils.
80411         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80412         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80413         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80414         double-quote uses of that variable, to accommodate the rare case in
80415         which getmntent is available in none of the libraries checked.  This
80416         happens at least on FreeBSD 5.0.
80417
80418 2006-02-13  Simon Josefsson  <jas@extundo.com>
80419
80420         * gnulib-tool (Usage): Fix --import, from
80421         karl@freefriends.org (Karl Berry).
80422
80423 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80424
80425         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80426
80427 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80428
80429         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80430         "autoupdate" on 2005-12-12.
80431
80432 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         * modules/closeout (Depends-on): Remove atexit.
80435
80436 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80439         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80440
80441 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80444         __EXTENSIONS__ if this causes compilation to fail.  Problem
80445         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80446         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80447
80448 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80451         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80453         All uses changed.
80454
80455 2006-01-26  Simon Josefsson  <jas@extundo.com>
80456
80457         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80458         prototype is visible on mingw32.
80459
80460         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80461         for mingw32.
80462
80463         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80464         mingw32).
80465
80466 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80469         attempt to open for write; this always fails, at least on POSIX
80470         hosts.  This reinstates the 2006-01-09 change, which was
80471         inadvertently removed.
80472
80473 2006-01-26  Bruno Haible  <bruno@clisp.org>
80474
80475         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80476         Reported by Paul Eggert.
80477
80478 2006-01-26  Bruno Haible  <bruno@clisp.org>
80479             Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * lib/stdbool_.h (_Bool)
80482         [(! (defined __cplusplus || defined __BEOS__)
80483           && !defined __GNUC__
80484           && !(defined __HP_cc || defined __xlc__
80485                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80486                || defined __sgi))]:
80487         #define to signed char in these cases too; this simplifies
80488         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80489         etc., separately) and makes it more conservative.
80490
80491 2006-01-25  Simon Josefsson  <jas@extundo.com>
80492
80493         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80494         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80495         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80496
80497 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80498
80499         * lib/argp-namefrob.h: Bugfix. Remove stray #
80500
80501 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80504         so that we test the test.
80505         Check for yet another HP-UX cc bug involving *bool |= bool.
80506
80507 2006-01-25  Karl Berry  <karl@gnu.org>
80508
80509         * config/srclist.txt (vasnprintf.c): sync lost.
80510
80511 2006-01-25  Jim Meyering  <jim@meyering.net>
80512
80513         Sync from the stable (b5) branch of coreutils:
80514
80515         * lib/fts.c (fts_children): Don't let close() clobber errno from
80516         failed fchdir().
80517
80518         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80519         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80520         a dangling symlink.  That can also happen at least for ELOOP.
80521         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80522         FYI, this bug predates the inclusion of fts.c in coreutils.
80523
80524         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80525         in their own block, so pre-c99 compilers don't object.
80526
80527         Avoid the double-free (first in fts_read, second in fts_close) that
80528         would occur when an `active' directory is made inaccessible (e.g.,
80529         via chmod a-x) during a traversal.
80530         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80531         before returning.  Reproduce this failure by
80532         mkdir -p a/b; cd a; chmod a-x . b
80533         Reported by Stavros Passas.
80534
80535 2006-01-25  Jim Meyering  <jim@meyering.net>
80536
80537         * lib/fileblocks.c: Remove more useless parentheses.
80538         * lib/readutmp.h: Likewise.
80539
80540 2006-01-25  Bruno Haible  <bruno@clisp.org>
80541
80542         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80543         warnings.
80544         Reported by Paul Eggert.
80545
80546 2006-01-25  Bruno Haible  <bruno@clisp.org>
80547
80548         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80549         rid of a trap command. For Solaris sh.
80550         Reported by Mark D. Baushke <mdb@gnu.org>.
80551
80552 2006-01-24  Simon Josefsson  <jas@extundo.com>
80553
80554         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80555         Bruno.
80556
80557 2006-01-24  Karl Berry  <karl@gnu.org>
80558
80559         * config/srclist.txt (argp-namefrob.h): sync lost.
80560
80561 2006-01-24  Jim Meyering  <jim@meyering.net>
80562
80563         * modules/openat (Files): Add lib/intprops.h.
80564         From Mark D. Baushke.
80565
80566 2006-01-24  Jim Meyering  <jim@meyering.net>
80567
80568         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80569         Reported by Mark D. Baushke.
80570
80571 2006-01-24  Jim Meyering  <jim@meyering.net>
80572
80573         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80574
80575 2006-01-24  Bruno Haible  <bruno@clisp.org>
80576
80577         * modules/strnlen (Maintainer): Change from glibc to all.
80578
80579 2006-01-24  Bruno Haible  <bruno@clisp.org>
80580
80581         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80582         Patch by Paul Eggert.
80583
80584 2006-01-24  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80587         already has it.
80588         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80589         2005-11-26.
80590
80591         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80592         'signed char' to avoid problems with the built-in _Bool type.
80593         Reported by Paul Eggert on 2005-11-26.
80594
80595 2006-01-24  Bruno Haible  <bruno@clisp.org>
80596
80597         * gnulib-tool (func_import): Avoid constructing complicated sed
80598         expressions inside backquote.
80599         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80600
80601 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80602
80603         These changes imported from libc.
80604         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80605         test and two separate function calls.
80606         * lib/strndup.c (__strndup): Add libc_hidden_def.
80607
80608 2006-01-23  Simon Josefsson  <jas@extundo.com>
80609
80610         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80611         Remove the test_*_SOURCES variable: automake infers it by default.
80612         * modules/tls-tests: Likewise.
80613
80614 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80615
80616         Work around porting bugs reported by Dieter in
80617         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80618         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80619         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80620         Include "getopt.h" first, to check interface.
80621         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80622         !HAVE_DECL_GETENV.
80623         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80624         (__strndup): Revert to K&R-style function dfns, the glibc style.
80625         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80626         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80627         Include strnlen.h first, to get prototype properly.
80628         (strnlen): Renamed from __strnlen.
80629         Remove weak alias.
80630
80631 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80634
80635 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * config/srclist.txt: Adjust to reflect glibc reorganization.
80638         This affects only comments.
80639
80640 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80641
80642          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80643          Reported by Bruce Korb <bkorb@gnu.org>.
80644
80645 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80648         to pacify gcc -Wswitch-default.
80649
80650 2006-01-22  Bruno Haible  <bruno@clisp.org>
80651
80652         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80653         temporary buffer for sprintf, take into account the precision also
80654         for 'd', 'i', 'u', 'o', 'x', 'X'.
80655
80656 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80657
80658         * modules/argp-tests: New module
80659         * tests/test-argp.c: New file
80660         * tests/test-argp-2.sh: New file
80661
80662 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80663
80664         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80665         (__argp_base_name): Removed
80666         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80667         typo.
80668         (__argp_base_name): Provide macro definition or extern declaration
80669         depending on the configuration
80670
80671 2006-01-20  Simon Josefsson  <jas@extundo.com>
80672
80673         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80674
80675 2006-01-20  Simon Josefsson  <jas@extundo.com>
80676
80677         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80678
80679 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80682         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80683         Suggested by Bruno Haible.
80684
80685 2006-01-20  Karl Berry  <karl@gnu.org>
80686
80687         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80688         until changes propagate, I guess.
80689
80690 2006-01-19  Simon Josefsson  <jas@extundo.com>
80691
80692         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80693
80694 2006-01-19  Simon Josefsson  <jas@extundo.com>
80695
80696         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80697
80698 2006-01-19  Simon Josefsson  <jas@extundo.com>
80699
80700         * gnulib-tool: Set check_PROGRAMS.
80701
80702         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80703         modules/des-tests, modules/gc-arcfour-tests,
80704         modules/gc-arctwo-tests, modules/gc-des-tests,
80705         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80706         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80707         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80708         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80709         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80710         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80711         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80712         test_*_SOURCES.
80713
80714 2006-01-18  Simon Josefsson  <jas@extundo.com>
80715
80716         * modules/socklen (Depends-on): Depend on sys_socket.
80717
80718 2006-01-18  Simon Josefsson  <jas@extundo.com>
80719
80720         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80721         modules/des-tests, modules/gc-arcfour-tests,
80722         modules/gc-arctwo-tests, modules/gc-des-tests,
80723         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80724         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80725         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80726         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80727         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80728         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80729         $(EXEEXT) to automake TESTS variable, for mingw32.
80730
80731 2006-01-17  Simon Josefsson  <jas@extundo.com>
80732
80733         * modules/socklen (Include): Need sys/socket.h.
80734
80735 2006-01-17  Bruno Haible  <bruno@clisp.org>
80736
80737         * modules/ssize_t (Include): Add <sys/types.h>.
80738
80739 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80742         it's not portable and it doesn't work with cross-compiles.
80743         Problem reported by Bruno Haible.  Fix missing-$ typo in
80744         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80745         -zignore from being used with Sun's C compiler.
80746
80747 2006-01-12  Simon Josefsson  <jas@extundo.com>
80748
80749         * lib/base64.c: Fix warning, reported by Bruno Haible
80750         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80751
80752 2006-01-12  Bruno Haible  <bruno@clisp.org>
80753
80754         * modules/ldd: New file.
80755         * build-aux/ldd.sh.in: New file.
80756         * MODULES.html.sh (Support for building libraries and executables): Add
80757         ldd.
80758
80759 2006-01-12  Bruno Haible  <bruno@clisp.org>
80760
80761         * m4/ldd.m4: New file.
80762
80763 2006-01-12  Bruno Haible  <bruno@clisp.org>
80764
80765         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80766         endless loop while replacing $auxdir with build-aux.
80767
80768 2006-01-11  Simon Josefsson  <jas@extundo.com>
80769
80770         * lib/stdint_.h (SIZE_MAX): Add missing (.
80771
80772 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         Sync from coreutils.
80775         * lib/md5.c: Fix commentary typos.
80776         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80777         * lib/md5.h (__attribute__): Remove; unused.
80778         * lib/sha1.c: Fix commentary to match md5 better.
80779         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80780         so that we don't need to worry about alignment.  All uses changed.
80781         This merges the 2005-10-28 md5 change into sha1.
80782
80783 2006-01-11  Jim Meyering  <jim@meyering.net>
80784
80785         Sync from coreutils.
80786         * lib/md5.c (OP): Fix spacing.
80787
80788 2006-01-11  Bruno Haible  <bruno@clisp.org>
80789
80790         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80791         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80792         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80793
80794 2006-01-11  Bruno Haible  <bruno@clisp.org>
80795
80796         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80797         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80798         the "early" section as well.
80799
80800 2006-01-11  Bruno Haible  <bruno@clisp.org>
80801
80802         Avoid "ar: no archive members specified" error on MacOS X.
80803         * gnulib-tool (func_modules_add_dummy): New function.
80804         (func_import, func_create_testdir): Invoke it.
80805
80806 2006-01-11  Bruno Haible  <bruno@clisp.org>
80807
80808         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80809         with $auxdir in AC_CONFIG_FILES statements.
80810
80811 2006-01-11  Bruno Haible  <bruno@clisp.org>
80812
80813         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80814         Initialize also noinst_HEADERS to empty.
80815
80816 2006-01-11  Bruno Haible  <bruno@clisp.org>
80817
80818         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80819         variables.
80820         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80821         autoreconf.
80822
80823 2006-01-11  Bruno Haible  <bruno@clisp.org>
80824
80825         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80826         overridable by the user.
80827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80828
80829 2006-01-10  Simon Josefsson  <jas@extundo.com>
80830
80831         * modules/sys_socket: New file.
80832
80833 2006-01-10  Simon Josefsson  <jas@extundo.com>
80834
80835         * m4/sys_socket_h.m4: New file.
80836
80837 2006-01-10  Simon Josefsson  <jas@extundo.com>
80838
80839         * lib/socket_.h: New file.
80840
80841 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * modules/readutmp (Maintainer): Add myself.
80844
80845 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80848         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80849         People who are still concerned with buggy memcmp implementations
80850         can invoke gl_FUNC_MEMCMP themselves.
80851
80852 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         * lib/regex_internal.h (BITSET_WORD_BITS):
80855         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80856         preprocessor mishandles large unsigned values as if they were signed.
80857         Problem reported by Claudio Fontana in
80858         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80859
80860 2006-01-10  Jim Meyering  <jim@meyering.net>
80861
80862         Avoid the double-free (first in fts_read, second in fts_close) that
80863         would occur when an `active' directory is made inaccessible (e.g.,
80864         via chmod a-x) during a traversal.
80865         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80866         before returning.  Reproduce this failure by
80867         mkdir -p a/b; cd a; chmod a-x . b
80868         Reported by Stavros Passas.
80869
80870         Sync from coreutils.
80871         * lib/sha1.c: Tweak grammar in a comment.
80872
80873 2006-01-10  Jim Meyering  <jim@meyering.net>
80874
80875         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80876         Patch by Joerg Sonnenberger.
80877
80878 2006-01-10  Bruno Haible  <bruno@clisp.org>
80879
80880         * modules/readutmp: Depend on module free.
80881         * modules/strtok_r: Depend on module restrict.
80882
80883 2006-01-10  Bruno Haible  <bruno@clisp.org>
80884
80885         * modules/gettext (configure.ac): Add an invocation of
80886         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80887
80888 2006-01-10  Bruno Haible  <bruno@clisp.org>
80889
80890         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80891         Reported by Werner Lemberg <wl@gnu.org>.
80892
80893 2006-01-10  Bruno Haible  <bruno@clisp.org>
80894
80895         * lib/localcharset.c: Update from GNU gettext.
80896
80897 2006-01-10  Bruno Haible  <bruno@clisp.org>
80898
80899         * lib/argp.h (__const): Remove macro. Use const instead.
80900         * lib/argp-fmtstream.h (__const): Likewise.
80901         * lib/glob_.h (__const): Remove macro.
80902         * lib/glob-libc.h: Use const instead of __const.
80903
80904 2006-01-10  Bruno Haible  <bruno@clisp.org>
80905
80906         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80907         variable.
80908         Needed to avoid an automake error regarding the 'gettext' module.
80909
80910 2006-01-09  Simon Josefsson  <jas@extundo.com>
80911
80912         * modules/inet_ntop (Depends-on): Add restrict.
80913
80914 2006-01-09  Simon Josefsson  <jas@extundo.com>
80915
80916         * modules/gc-rijndael-tests (License): Put under LGPL.
80917
80918         * modules/gc-des-tests (License): Likewise.
80919
80920         * modules/gc-arcfour-tests (License): Likewise.
80921
80922         * modules/gc-arctwo-tests (License): Likewise.
80923
80924         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80925
80926         * modules/gc-hmac-sha1-tests (Files): Likewise.
80927
80928         * modules/gc-hmac-md5-tests (License): Likewise.
80929
80930         * modules/gc-sha1-tests (License): Likewise.
80931
80932         * modules/gc-md5-tests (License): Likewise.
80933
80934         * modules/gc-md4-tests (License): Likewise.
80935
80936         * modules/gc-md2-tests (License): Likewise.
80937
80938         * modules/gc-tests (License): Likewise.
80939
80940         * modules/des-tests (License): Likewise.
80941
80942         * modules/md4-tests (License): Likewise.
80943
80944         * modules/md2-tests (License): Likewise.
80945
80946 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         Sync from coreutils:
80949
80950         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80951         * modules/lib-ignore: New file.
80952         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80953         chdir-safer.m4, lchmod.m4.
80954         * modules/openat: Add mkdirat.c, openat-priv.h.
80955
80956 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         Sync from coreutils.
80959         * m4/lib-ignore.m4: New file.
80960         * m4/lchmod.m4: New file.
80961
80962 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80963
80964         Sync from coreutils.
80965         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80966         for write access: POSIX says that must fail.
80967         * lib/fts.c (diropen): Likewise.
80968         * lib/save-cwd.c (save_cwd): Likewise.
80969         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80970         well, for minor improvements on hosts that lack O_DIRECTORY.
80971         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80972         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80973         Fall back on chown if open failed with EACCES.
80974
80975         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80976         Report an error at compile-time if only a 1-second nominal clock
80977         resolution is found.
80978
80979         * lib/lchmod.h: New file.
80980         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80981         (make_dir_parents): Use lchown rather than chown, and
80982         lchmod rather than chmod.
80983
80984         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80985         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80986         "proc" reported by n0dalus.
80987
80988         * lib/mountlist.c: Include <limits.h>.
80989         (dev_from_mount_options)
80990         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80991         New function.  It no longer assumes "dev=" has the System V meaning
80992         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80993         (read_file_system_list)
80994         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80995         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80996         dev= in that case.
80997
80998         * lib/posixtm.h (PDS_PRE_2000): New macro.
80999         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81000         allow_century.  All usages changed.  Reject dates outside the range
81001         1969-1999 if PDS_PRE_2000 is used.
81002
81003 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         Sync from coreutils.
81006         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81007         (Time of day items): Mention the possibility of leap seconds.
81008         Problem reported by Dr. David Alan Gilbert.
81009
81010 2006-01-09  Jim Meyering  <jim@meyering.net>
81011
81012         Sync from coreutils.
81013
81014         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81015
81016         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81017
81018         * lib/modechange.c (mode_compile): Reject an invalid mode string
81019         that starts with an octal digit.  From Andreas Gruenbacher.
81020
81021         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81022         and dup to open_safer and dup_safer, respectively.
81023         (openat_permissive): Fix typo in comment.
81024
81025         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81026         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81027         (_): Remove; no longer needed.
81028         (openat): Renamed from rpl_openat; no need for rpl_openat
81029         since openat.h renames openat for us.
81030         Replace most of the body with a call to openat_permissive,
81031         to avoid duplicate code.
81032         Port to (probably hypothetical) environments were mode_t is
81033         wider than int.
81034         (openat_permissive): Require mode arg, so that we can check
81035         types better.  Put it just after flags.  Change cwd failure
81036         indicator from pointer-to-bool to pointer-to-errno-value.
81037         All callers changed.
81038         Invoke openat_save_fail and/or openat_restore_fail if
81039         cwd_errno is null, so that openat can call us.
81040         (openat_permissive, fdopendir, fstatat, unlinkat):
81041         Simplify errno handling to avoid some duplicate code,
81042         as it's OK to set errno on success.
81043         * lib/openat.h: Revamp code so that function macros depend on
81044         __OPENAT_PREFIX only, not also on AT_FDCWD.
81045         (openat_ro): Remove.  Caller changed to use openat_permissive.
81046         (openat_permissive): Now a macro, if not a function.
81047         (openat_restore_fail, openat_save_fail): Now always functions,
81048         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81049
81050         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81051         and openat.c.
81052         * lib/mkdirat.c: Include openat-priv.h.
81053         Remove definitions of macros defined therein.
81054         * lib/openat.c: Likewise.
81055
81056         * lib/mkdirat.c (mkdirat): New file and function.
81057         * lib/openat.h (mkdirat): Declare.
81058
81059         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81060
81061         * lib/openat.h (openat_permissive): Declare.
81062         (openat_ro): Define.
81063
81064         * lib/openat.c (EXPECTED_ERRNO): New macro.
81065         (openat_permissive): New function -- used in remove.c rewrite.
81066         (all functions): Set errno just before returning, only if there
81067         was an actual failure.
81068         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81069
81070         Emulate openat-family functions using Linux's procfs, if possible.
81071         Idea and some code based on Ulrich Drepper's glibc changes.
81072
81073         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81074         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81075         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81076         before falling back on save_cwd and restore_cwd.
81077         (fdopendir, fstatat, unlinkat): Likewise.
81078
81079         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81080         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81081
81082         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81083         as second argument to va_arg.  Otherwise, some versions of gcc
81084         warn that `if this code is reached, the program will abort'.
81085
81086 2006-01-09  Jim Meyering  <jim@meyering.net>
81087
81088         Sync from coreutils.
81089         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81090         Require openat-priv.h.
81091
81092 2006-01-09  Bruno Haible  <bruno@clisp.org>
81093
81094         * modules/strnlen (Include): Use strnlen.h.
81095
81096 2006-01-09  Bruno Haible  <bruno@clisp.org>
81097
81098         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81099
81100 2006-01-09  Bruno Haible  <bruno@clisp.org>
81101
81102         * lib/sysexit_.h (EX_OK): New macro.
81103         Suggested by Martin Lambers <marlam@marlam.de>.
81104
81105 2006-01-09  Bruno Haible  <bruno@clisp.org>
81106
81107         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81108         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81109
81110 2006-01-09  Bruno Haible  <bruno@clisp.org>
81111
81112         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81113         numbers.
81114
81115 2006-01-09  Bruno Haible  <bruno@clisp.org>
81116
81117         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81118         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81119         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81120         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81121
81122 2006-01-09  Bruno Haible  <bruno@clisp.org>
81123
81124         * build-aux/javacomp.sh.in: New file, moved from lib/.
81125         * modules/javacomp-script (Files): Update.
81126         (configure.ac): Add AC_CONFIG_FILES invocation.
81127         (EXTRA_DIST): Remove variable.
81128
81129         * build-aux/javaexec.sh.in: New file, moved from lib/.
81130         * modules/javaexec (Files): Update.
81131         (configure.ac): Add AC_CONFIG_FILES invocation.
81132         (EXTRA_DIST): Remove javaexec.sh.in.
81133
81134         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81135         * modules/csharpcomp-script (Files): Update.
81136         (configure.ac): Add AC_CONFIG_FILES invocation.
81137         (EXTRA_DIST): Remove variable.
81138
81139         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81140         * modules/csharpexec (Files): Update.
81141         (configure.ac): Add AC_CONFIG_FILES invocation.
81142         (EXTRA_DIST): Remove csharpexec.sh.in.
81143
81144 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81145
81146         Sync from coreutils.
81147
81148         Add POSIX ACL support
81149         * lib/acl.h (copy_acl, set_acl): Add declarations.
81150         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81151         systems other than Linux.
81152         (chmod_or_fchmod): New function: use fchmod when possible,
81153         and chmod otherwise.
81154         (file_has_acl): Add a POSIX ACL implementation, with a
81155         Linux-specific subcase.
81156         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81157         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81158         acls are unsupported.
81159         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81160         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81161         are unsupported.
81162
81163 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81164
81165         Sync from coreutils.
81166         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81167
81168 2006-01-07  Bruno Haible  <bruno@clisp.org>
81169
81170         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81171         gl_EARLY.
81172
81173 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81176         Problem reported for Mingw by Mark Junker.
81177
81178 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81179
81180         * README: Gnulib normally doesn't generate a tarball.
81181
81182 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81185         long int, not int, for nanosecond counts, so that people who are
81186         used to POSIX struct timespec won't be surprised.  Reported by Jim
81187         Meyering.
81188
81189 2005-12-28  Bruno Haible  <bruno@clisp.org>
81190
81191         * build-aux/config.rpath: Update from GNU gettext.
81192
81193 2005-12-16  Jim Meyering  <jim@meyering.net>
81194
81195         * modules/fprintftime: New module.
81196         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81197
81198 2005-12-16  Jim Meyering  <jim@meyering.net>
81199
81200         * m4/fprintftime.m4: New file.
81201
81202 2005-12-16  Jim Meyering  <jim@meyering.net>
81203
81204         * lib/fprintftime.c, lib/fprintftime.h: New files.
81205
81206 2005-12-15  Simon Josefsson  <jas@extundo.com>
81207
81208         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81209         new m4/socklen.m4.
81210
81211 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81212
81213         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81214         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81215
81216 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81217
81218         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81219         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81220         struct uparams is valid. Fall back to the default values if it is
81221         not.
81222
81223 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81224
81225         * modules/argp (Files): Add argp-pin.c
81226         (Depends-on): dirname
81227         (lib_SOURCES): Add argp-pin.c
81228
81229 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81230
81231         * m4/argp.m4:  Check if program_invocation_name and
81232         program_invocation_short_name are declared and define appropriate
81233         macros if they are not.
81234
81235 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81236
81237         * lib/argp-help.c (__argp_base_name): New function
81238         (__argp_short_program_name): Rewrite using __argp_base_name
81239         * lib/argp-namefrob.h: Define program_invocation_name and
81240         program_invocation_short_name if requested
81241         (__argp_base_name): Add prototype
81242         * lib/argp-parse.c (argp_def): Use gettext wrappers
81243         (argp_default_parser): Use __argp_base_name
81244         * lib/argp-pin.c: New file. Defines program_invocation_name and
81245         program_invocation_short_name on systems that lack them.
81246
81247 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81250         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81251         porting problem reported by Georg Schwarz in
81252         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81253
81254 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81257         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81258         porting problem reported by Georg Schwarz in
81259         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81260
81261 2005-12-05  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81264         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81265         Reported by Mark Junker <mjscod@gmx.de>.
81266
81267 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81268
81269         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81270         Use implementation from Albert Chin, with some
81271         comments/corrections by Stepan Kasal and myself.
81272
81273 2005-12-02  Bruno Haible  <bruno@clisp.org>
81274
81275         * gnulib-tool (func_import): Accept GPLed build tool modules when
81276         --lgpl is given.
81277         * modules/csharpcomp-script: New file.
81278         * modules/csharpcomp: Depend on it.
81279         * modules/javacomp-script: New file.
81280         * modules/javacomp: Depend on it.
81281         Suggested by Simon Josefsson.
81282
81283 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81286         statement, to work around an HP-UX 10.20 compiler bug reported by
81287         Peter O'Gorman.
81288
81289 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * modules/savedir (Depends-on): Add openat.
81292
81293 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81294
81295         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81296         (uintmax_t) [defined uintmax_t]: Do not declare.
81297         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81298         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81299         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81300         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81301         sake of portability to weird hosts that C allows (though we don't
81302         know of any practical examples).
81303
81304         * lib/savedir.h (fdsavedir): New decl.
81305         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81306         contains most of the former guts of savedir.
81307         (savedir): Use savedirstream.
81308         Include "openat.h".
81309
81310 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * modules/obstack (Files): Add m4/ulonglong.m4.
81313         Problem reported by Davide Angelocola.
81314
81315 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81316
81317         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81318         coreutils no longer futzes with rounding modes.
81319
81320 2005-11-14  Jim Meyering  <jim@meyering.net>
81321
81322         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81323         replacement of mkstemp.
81324
81325 2005-11-10  Simon Josefsson  <jas@extundo.com>
81326
81327         * lib/readline.c: Remove EOL.
81328
81329 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81330
81331         * modules/gethrxtime (Depends-on): Add gettime.
81332
81333 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81336         or gettimeofday; no longer needed.
81337
81338 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81339
81340         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81341         time business.
81342         (gethrxtime) [! (HAVE_NANOUPTIME
81343         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81344         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81345         our own approximation.
81346
81347 2005-11-08  Eric Blake  <ebb9@byu.net>
81348
81349         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81350
81351 2005-11-08  Eric Blake  <ebb9@byu.net>
81352
81353         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81354
81355 2005-11-04  Bruno Haible  <bruno@clisp.org>
81356
81357         * gnulib-tool: Implement --update mode.
81358
81359 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         Fix porting problem reported by Theodoros V. Kalamatianos.
81362         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81363         Don't assume that futimes failing means we must fail.
81364
81365 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81368         variables to suggest the intended function of the PATH_MAX check.
81369
81370 2005-10-30  Kean Johnston  <jkj@sco.com>
81371
81372         Trivial changes to support SCO systems.
81373         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81374         as PATH_MAX.
81375         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81376         where __ptr is null when no I/O is pending.
81377
81378 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81379
81380         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81381         leave errno alone.  Problem reported by Dmitry V. Levin.
81382
81383 2005-10-28  Simon Josefsson  <jas@extundo.com>
81384
81385         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81386         Test more.
81387
81388         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81389
81390         * modules/md2, modules/md2-tests: New files.
81391
81392 2005-10-28  Simon Josefsson  <jas@extundo.com>
81393
81394         * m4/inet_ntop.m4: More tests.
81395
81396         * m4/gc-md2.m4, md2.m4: New file.
81397
81398 2005-10-28  Simon Josefsson  <jas@extundo.com>
81399
81400         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81401         "restrict" keywords, as per POSIX.  Protect the function
81402         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81403         Don't use K&R prototypes.  Check the sprintf return values.
81404         Re-define EAFNOSUPPORT if not present.  Indent.
81405
81406         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81407         suggested by Bruno Haible <bruno@clisp.org>.
81408
81409         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81410
81411         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81412
81413         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81414         libgcrypt).
81415
81416         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81417
81418         * lib/md2.h, lib/md2.c: New files.
81419
81420 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81421
81422         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81423         errno alone.  Problem reported by Frederic Jolliton.
81424
81425 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * modules/verify (License): Change from GPL to LGPL.  This is a
81428         tiny module and there are apparently near-equivalents that are
81429         under the BSD license.
81430
81431 2005-10-24  Simon Josefsson  <jas@extundo.com>
81432
81433         * modules/sha1: Relicense to LGPL.
81434
81435 2005-10-24  Simon Josefsson  <jas@extundo.com>
81436
81437         * lib/md4.h: Shrink buffer size, now that we changed the type.
81438
81439 2005-10-23  Simon Josefsson  <jas@extundo.com>
81440
81441         * gnulib-tool (func_import): Fix --tests-base.
81442
81443 2005-10-22  Simon Josefsson  <jas@extundo.com>
81444
81445         * modules/arcfour (Depends-on): Need stdint.
81446
81447 2005-10-22  Simon Josefsson  <jas@extundo.com>
81448
81449         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81450         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81451
81452 2005-10-22  Simon Josefsson  <jas@extundo.com>
81453
81454         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81455         suggested by Bruno Haible <bruno@clisp.org>.
81456
81457 2005-10-22  Simon Josefsson  <jas@extundo.com>
81458
81459         * lib/crc.h: Include stddef.h, for size_t.
81460
81461 2005-10-22  Simon Josefsson  <jas@extundo.com>
81462
81463         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81464         arcfour_context struct (simplify test vector testing in GNU
81465         Shishi).
81466
81467 2005-10-21  Simon Josefsson  <jas@extundo.com>
81468
81469         * modules/des, modules/des-tests: New files.
81470
81471         * modules/gc-des, modules/gc-des-tests: New files.
81472
81473         * tests/test-des.c, tests/test-gc-des.c: New file.
81474
81475 2005-10-21  Simon Josefsson  <jas@extundo.com>
81476
81477         * modules/arctwo, modules/arctwo-tests: New files.
81478
81479         * tests/test-arctwo.c: New file.
81480
81481         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81482
81483         * tests/test-gc-arctwo.c: New file.
81484
81485 2005-10-21  Simon Josefsson  <jas@extundo.com>
81486
81487         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81488         Bruno Haible <bruno@clisp.org>.
81489
81490         * m4/gc-des.m4: New file.
81491
81492 2005-10-21  Simon Josefsson  <jas@extundo.com>
81493
81494         * m4/arctwo.m4: New file.
81495
81496         * m4/gc-arctwo.m4: New file.
81497
81498 2005-10-21  Simon Josefsson  <jas@extundo.com>
81499
81500         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81501         block.
81502
81503 2005-10-21  Simon Josefsson  <jas@extundo.com>
81504
81505         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81506         <bruno@clisp.org>.
81507
81508         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81509
81510         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81511         Bruno Haible <bruno@clisp.org>.
81512
81513         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81514         <bruno@clisp.org>.
81515
81516 2005-10-21  Simon Josefsson  <jas@extundo.com>
81517
81518         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81519
81520 2005-10-21  Simon Josefsson  <jas@extundo.com>
81521
81522         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81523
81524 2005-10-21  Simon Josefsson  <jas@extundo.com>
81525
81526         * lib/des.h, lib/des.c: New files.
81527
81528         * lib/gc-gnulib.c: Support DES.c
81529
81530 2005-10-21  Simon Josefsson  <jas@extundo.com>
81531
81532         * lib/arctwo.h, lib/arctwo.c: New files.
81533
81534         * lib/gc-gnulib.c: Support ARCTWO.
81535
81536 2005-10-21  Simon Josefsson  <jas@extundo.com>
81537
81538         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81539         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81540
81541 2005-10-21  Simon Josefsson  <jas@extundo.com>
81542
81543         * gnulib-tool (func_import, func_create_testdir): Define automake
81544         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81545         Makefile.am snippet),
81546         suggested by Bruno Haible <bruno@clisp.org>.
81547
81548         * modules/gc (Makefile.am): Use it.
81549
81550 2005-10-21  Bruno Haible  <bruno@clisp.org>
81551
81552         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81553         patch.
81554
81555 2005-10-19  Simon Josefsson  <jas@extundo.com>
81556
81557         * tests/test-gc-rijndael.c: New file.
81558
81559         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81560
81561 2005-10-19  Simon Josefsson  <jas@extundo.com>
81562
81563         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81564         interface too.
81565
81566 2005-10-19  Simon Josefsson  <jas@extundo.com>
81567
81568         * tests/test-gc-arcfour.c: New file.
81569
81570         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81571
81572 2005-10-19  Simon Josefsson  <jas@extundo.com>
81573
81574         * modules/gc-md4, modules/gc-md4-tests: New file.
81575
81576         * tests/test-gc-md4.c: New file.
81577
81578 2005-10-19  Simon Josefsson  <jas@extundo.com>
81579
81580         * m4/gc-md4.m4: New file.
81581
81582 2005-10-19  Simon Josefsson  <jas@extundo.com>
81583
81584         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81585         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81586         <kasal@ucw.cz>.
81587
81588 2005-10-19  Simon Josefsson  <jas@extundo.com>
81589
81590         * m4/gc-arcfour.m4: New file.
81591
81592         * m4/gc-rijndael.m4: New file.
81593
81594 2005-10-19  Simon Josefsson  <jas@extundo.com>
81595
81596         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81597
81598 2005-10-19  Simon Josefsson  <jas@extundo.com>
81599
81600         * lib/gc-gnulib.c: Support ARCFOUR.
81601
81602 2005-10-19  Simon Josefsson  <jas@extundo.com>
81603
81604         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81605         support.
81606
81607         * lib/gc.h: Add ECB enum type.
81608
81609         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81610
81611 2005-10-18  Simon Josefsson  <jas@extundo.com>
81612
81613         * tests/test-md5.c: New file.
81614
81615         * modules/md5-tests: New file.
81616
81617 2005-10-18  Simon Josefsson  <jas@extundo.com>
81618
81619         * tests/test-md4.c: New file.
81620
81621         * modules/md4, modules/md4-tests: New files.
81622
81623 2005-10-18  Simon Josefsson  <jas@extundo.com>
81624
81625         * m4/md4.m4: New file.
81626
81627 2005-10-18  Simon Josefsson  <jas@extundo.com>
81628
81629         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81630
81631 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81632
81633         * gnulib-tool (func_create_testdir): Omit the second check whether
81634         BUILT_SOURCES in nonempty.
81635
81636 2005-10-17  Simon Josefsson  <jas@extundo.com>
81637
81638         * tests/test-rijndael.c: New file.
81639
81640 2005-10-17  Simon Josefsson  <jas@extundo.com>
81641
81642         * modules/sha1: Depend on stdint instead of md5.
81643
81644         * modules/md5: Depend on stdint, remove uint32_t.
81645
81646 2005-10-17  Simon Josefsson  <jas@extundo.com>
81647
81648         * modules/gc-sha1-tests: New file.
81649
81650         * tests/test-gc-sha1.c: New file.
81651
81652 2005-10-17  Simon Josefsson  <jas@extundo.com>
81653
81654         * m4/md5.m4: Remove call to uint32_t.m4.
81655
81656 2005-10-17  Simon Josefsson  <jas@extundo.com>
81657
81658         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81659
81660         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81661         md5.h.
81662
81663         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81664
81665         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81666
81667 2005-10-17  Simon Josefsson  <jas@extundo.com>
81668
81669         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81670
81671 2005-10-17  Simon Josefsson  <jas@extundo.com>
81672
81673         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81674
81675 2005-10-17  Simon Josefsson  <jas@extundo.com>
81676
81677         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81678
81679         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81680
81681 2005-10-17  Bruno Haible  <bruno@clisp.org>
81682
81683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81684         that it can also be used in a test.
81685
81686 2005-10-16  Bruno Haible  <bruno@clisp.org>
81687
81688         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81689         TESTS_ENVIRONMENT, so that individual tests can augment it.
81690
81691         * gnulib-tool (func_create_testdir): Use an intermediate target for
81692         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81693         macros, like $(ALLOCA_H), which cannot be passed through the command
81694         line.
81695
81696 2005-10-15  Simon Josefsson  <jas@extundo.com>
81697
81698         * modules/rijndael-tests: New file.
81699
81700         * modules/rijndael: New file.
81701
81702 2005-10-15  Simon Josefsson  <jas@extundo.com>
81703
81704         * m4/rijndael.m4: New file.
81705
81706 2005-10-15  Simon Josefsson  <jas@extundo.com>
81707
81708         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81709
81710         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81711
81712 2005-10-14  Simon Josefsson  <jas@extundo.com>
81713
81714         * tests/test-arcfour.c: New file.
81715
81716         * modules/arcfour, modules/arcfour-tests: New files.
81717
81718 2005-10-14  Simon Josefsson  <jas@extundo.com>
81719
81720         * m4/arcfour.m4: New file.
81721
81722 2005-10-14  Simon Josefsson  <jas@extundo.com>
81723
81724         * lib/arcfour.h, lib/arcfour.c: New files.
81725
81726 2005-10-14  Roland McGrath  <roland@redhat.com>
81727
81728         Import from libc.  [BZ #1331]
81729         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81730         macro argument.
81731         Reported by Matej Vela <vela@debian.org>.
81732
81733 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81736         include <wchar.h>; no longer needed.
81737
81738 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81741
81742 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81743         and  Ulrich Drepper  <drepper@redhat.com>
81744
81745         Import from libc.
81746         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81747         instead of inline stream orientation test and two separate
81748         function calls.  Pay no attention to USE_IN_LIBIO.
81749
81750 2005-10-13  Simon Josefsson  <jas@extundo.com>
81751
81752         * modules/gc-hmac-md5-tests: New file.
81753
81754         * tests/test-gc-hmac-sha1.c: New file.
81755
81756         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81757
81758         * modules/gc-hmac-md5-tests: New file.
81759
81760         * tests/test-gc-md5.c: New file.
81761
81762         * modules/gc-md5-tests: New file.
81763
81764 2005-10-13  Simon Josefsson  <jas@extundo.com>
81765
81766         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81767         Move memory allocation outside of loop.
81768
81769 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81770
81771         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81772         intermediate directory is in a read-only file system.  Problem
81773         reported by Eric Blake.
81774
81775 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81776
81777         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81778
81779 2005-10-12  Simon Josefsson  <jas@extundo.com>
81780
81781         * tests/test-hmac-sha1.c: New file.
81782
81783         * modules/hmac-sha1-tests: New file.
81784
81785         * modules/hmac-sha1: New file.
81786
81787 2005-10-12  Simon Josefsson  <jas@extundo.com>
81788
81789         * modules/gc-sha1: New file.
81790
81791 2005-10-12  Simon Josefsson  <jas@extundo.com>
81792
81793         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81794
81795         * tests/test-gc-pbkdf2-sha1.c: New file.
81796
81797 2005-10-12  Simon Josefsson  <jas@extundo.com>
81798
81799         * modules/gc-md5, modules/gc-hmac-md5: New files.
81800
81801         * modules/gc (Files): Remove md5, memxor and hmac files.
81802
81803 2005-10-12  Simon Josefsson  <jas@extundo.com>
81804
81805         * m4/gc-pbkdf2-sha1.m4: New file.
81806
81807         * m4/gc-hmac-sha1.m4: New file.
81808
81809         * m4/gc-sha1: New file.
81810
81811         * m4/hmac-sha1.m4: New file.
81812
81813 2005-10-12  Simon Josefsson  <jas@extundo.com>
81814
81815         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81816
81817         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81818
81819 2005-10-12  Simon Josefsson  <jas@extundo.com>
81820
81821         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81822         suggested by Bruno Haible <bruno@clisp.org>.
81823
81824 2005-10-12  Simon Josefsson  <jas@extundo.com>
81825
81826         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81827
81828 2005-10-12  Simon Josefsson  <jas@extundo.com>
81829
81830         * lib/gc-pbkdf2-sha1.c: New file.
81831
81832         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81833
81834 2005-10-12  Simon Josefsson  <jas@extundo.com>
81835
81836         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81837
81838         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81839
81840 2005-10-12  Simon Josefsson  <jas@extundo.com>
81841
81842         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81843         GC_USE_HMAC_MD5, respectively.
81844
81845         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81846         (gc_md5): Fix typo.
81847
81848         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81849
81850         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81851
81852         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81853
81854 2005-10-12  Bruno Haible  <bruno@clisp.org>
81855
81856         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81857         Reported by Stepan Kasal <kasal@ucw.cz>.
81858
81859 2005-10-11  Simon Josefsson  <jas@extundo.com>
81860
81861         * tests/test-crc.c: New file.
81862
81863         * modules/crc, modules/crc-tests: New files.
81864
81865 2005-10-11  Simon Josefsson  <jas@extundo.com>
81866
81867         * m4/crc.m4: New file.
81868
81869 2005-10-11  Simon Josefsson  <jas@extundo.com>
81870
81871         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81872
81873         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81874
81875         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81876
81877 2005-10-11  Simon Josefsson  <jas@extundo.com>
81878
81879         * lib/crc.h, lib/crc.c: New files.
81880
81881         * lib/gc.h (gc_hash_buffer): Add doc.
81882
81883 2005-10-11  Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/c-strcasestr: New file.
81886         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81887
81888 2005-10-11  Bruno Haible  <bruno@clisp.org>
81889
81890         * modules/c-strcase: New file.
81891         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81892
81893 2005-10-11  Bruno Haible  <bruno@clisp.org>
81894
81895         * lib/strcasecmp.c: Include limits.h.
81896         (strcasecmp): Avoid integer overflow on exotic platforms.
81897         * lib/strncasecmp.c: Include limits.h.
81898         (strncasecmp): Avoid integer overflow on exotic platforms.
81899         Reported by Paul Eggert.
81900
81901 2005-10-11  Bruno Haible  <bruno@clisp.org>
81902
81903         * lib/c-strcasestr.h: New file, from GNU gettext.
81904         * lib/c-strcasestr.c: New file, from GNU gettext.
81905
81906 2005-10-11  Bruno Haible  <bruno@clisp.org>
81907
81908         * lib/c-strcase.h: New file, from GNU gettext.
81909         * lib/c-strcasecmp.c: New file, from GNU gettext.
81910         * lib/c-strncasecmp.c: New file, from GNU gettext.
81911
81912 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81913
81914         * modules/mempcpy (License): GPL -> LGPL.
81915         * modules/strchrnul (License): Likewise.
81916         * modules/sysexits (License): Likewise.
81917
81918 2005-10-08  Simon Josefsson  <jas@extundo.com>
81919
81920         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81921
81922 2005-10-07  Simon Josefsson  <jas@extundo.com>
81923
81924         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81925
81926 2005-10-06  Simon Josefsson  <jas@extundo.com>
81927
81928         * tests/test-hmac-md5.c: New file.
81929
81930         * modules/hmac-md5-tests: New file.
81931
81932         * modules/hmac-md5: New file.
81933
81934 2005-10-06  Simon Josefsson  <jas@extundo.com>
81935
81936         * m4/hmac-md5.m4: New file.
81937
81938         * m4/memxor.m4: Require gl_C_RESTRICT.
81939
81940 2005-10-06  Simon Josefsson  <jas@extundo.com>
81941
81942         * lib/memxor.c (memxor): Avoid casts and warnings.
81943
81944 2005-10-06  Simon Josefsson  <jas@extundo.com>
81945
81946         * lib/hmac-md5.c: New file.
81947
81948         * lib/hmac.h: New file.
81949
81950 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81951
81952         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81953         promotes to int, not unsigned int, to catch the AIX 5.3
81954         compiler bug.
81955
81956 2005-10-05  Simon Josefsson  <jas@extundo.com>
81957
81958         * modules/memxor: New file.
81959
81960         * modules/iconv (Files): Move config.rpath to havelib, it is used
81961         there.
81962
81963         * modules/havelib (Files): Add config.rpath.
81964
81965 2005-10-05  Simon Josefsson  <jas@extundo.com>
81966
81967         * m4/memxor.m4: New file.
81968
81969 2005-10-05  Simon Josefsson  <jas@extundo.com>
81970
81971         * lib/memxor.c (memxor): Fix compiler error.
81972
81973         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81974         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81975
81976         * lib/memxor.h, lib/memxor.c: New files.
81977
81978         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81979         we assume all systems have it, suggested by Jim Meyering
81980         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81981         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81982         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81983         same reasons.
81984
81985 2005-10-05  Simon Josefsson  <jas@extundo.com>
81986
81987         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81988
81989 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81992         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81993         needed, since the source code now assumes these .h files.
81994
81995 2005-10-05  Derek Price  <derek@ximbiot.com>
81996
81997         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81998
81999 2005-10-05  Bruno Haible  <bruno@clisp.org>
82000
82001         * modules/stdint (License): Change to LGPL.
82002
82003 2005-10-04  Simon Josefsson  <jas@extundo.com>
82004
82005         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82006         D. Baushke" <mdb@gnu.org>.
82007
82008 2005-10-04  Bruno Haible  <bruno@clisp.org>
82009
82010         * lib/verify.h (verify_true): Provide alternative definition for C++.
82011
82012 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82015         (SSIZE_MAX): New macro, if not already defined.
82016         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82017         than 2 GiB.
82018
82019 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         Sync from coreutils.
82022         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82023         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82024         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82025         ULLONG_MAX doesn't work with 2.7.2.1.
82026
82027 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82028
82029         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82030         From Ben Pfaff.
82031
82032         * modules/exclude (Depends-on): Depend on verify.
82033         * modules/strtoimax (Depends-on): Likewise.
82034         * modules/utimecmp (Depends-on): Likewise.
82035
82036 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * lib/exclude.c: Include verify.h.
82039         (verify): Remove.  All callers changed to use verify.h's version.
82040         * lib/strtoimax.c: Likewise.
82041         * lib/utimecmp.c: Likewis.e
82042
82043         Sync from coreutils.
82044         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82045         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82046         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82047         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82048         bother returning ENOSYS if settimeofday or stime fails; just let
82049         them return whatever errno they want to return.
82050         * lib/utimens.c: Include unistd.h, for dup2.
82051         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82052         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82053
82054 2005-10-02  Jim Meyering  <jim@meyering.net>
82055
82056         Sync from coreutils.
82057         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82058         from glibc-2.2.5 that fails for read-only files.
82059
82060 2005-10-02  Jim Meyering  <jim@meyering.net>
82061
82062         Sync from coreutils.
82063         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82064         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82065         `#if HAVE_CONFIG_H'.
82066         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82067         Remove AT_FDCWD test.
82068         Do not consume the fd unless successful.
82069         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82070         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82071         block, so that we don't even try to compile it if settimeofday is
82072         available.  This works around a compilation failure on OSF1 V5.1,
82073         due to stime requiring a `long int*' while tv_sec is `int'.
82074
82075 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82076
82077         Sync from coreutils.
82078         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82079         against `yes', rather than just testing for nonempty.
82080
82081 2005-10-01  Simon Josefsson  <jas@extundo.com>
82082
82083         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82084         and Darwin.
82085
82086         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82087         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82088         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82089         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82090         Check if struct addrinfo is declared.
82091
82092 2005-10-01  Simon Josefsson  <jas@extundo.com>
82093
82094         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82095         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82096         AI_* and EAI_* definitions.  Protect function declarations.
82097
82098 2005-10-01  Jim Meyering  <jim@meyering.net>
82099
82100         Sync from coreutils.
82101
82102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82103         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82104         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82106         in the inet and nsl libraries.  Required on Solaris 5.7.
82107
82108 2005-10-01  Jim Meyering  <jim@meyering.net>
82109
82110         Sync from coreutils.
82111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82112         in the inet and nsl libraries.  Required on Solaris 5.7.
82113
82114 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82115
82116         * lib/getdelim.c (getdelim): Remove unused variables.
82117
82118 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82119
82120         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82121         so that the code works even with ancient cpp.  Portability problem
82122         with GCC 2.7.2.1 reported by Thomas M.Ott.
82123
82124 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82125
82126         * modules/regex (Depends-on): Add strcase.
82127
82128         * modules/gethostname (Licence): Change from GPL to LGPL, since
82129         gethostname.c is a trivial implementation of a standard library
82130         function.
82131         * modules/poll (License): Change from GPL to LGPL, since it's
82132         derived from LGPL code.
82133
82134 2005-09-27  Jim Meyering  <jim@meyering.net>
82135
82136         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82137         HAVE_CONFIG_H.
82138
82139         * lib/intprops.h (signed_type_or_expr__): Define.
82140         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82141         for unsigned types.
82142
82143 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82144
82145         * lib/verify.h (verify_expr): Remove, replacing with:
82146         (verify_true): New macro that returns true instead of void.
82147         (verify_type__): Remove.
82148         (verify): Use verify_true rather than verify_type__.
82149
82150 2005-09-26  Bruno Haible  <bruno@clisp.org>
82151
82152         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82153         is necessary.
82154         (lib_SOURCES): Remove mbchar.c.
82155         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82156         (Files): Add m4/mbrtowc.m4.
82157         * modules/mbiter: Likewise.
82158         * modules/mbuiter: Likewise.
82159
82160 2005-09-26  Bruno Haible  <bruno@clisp.org>
82161
82162         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82163         compile mbchar.c if they are not both present.
82164         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82165         * m4/mbiter.m4 (gl_MBITER): Likewise.
82166         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82167         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82168         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82169
82170 2005-09-25  Jim Meyering  <jim@meyering.net>
82171
82172         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82173         also uses socklen_t.
82174
82175 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * lib/utimens.c (ENOSYS): Define if not already defined.
82178         (futimens): Support having a null PATH if the file descriptor
82179         is nonnegative.
82180
82181         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82182         Remove.
82183         (__attribute): Define to empty unless GCC 3.1 or later.
82184         This works around a core dump on OpenBSD 3.4, which has GCC
82185         2.95.3, which dumps core when given __attribute__(()).  It also
82186         simplifies other tests, since we really don't want to bother with
82187         worrying about which ancient version of GCC supported what.
82188         Original problem reported by Yoann Vandoorselaere, with part of
82189         the fix suggested by Derek Price.
82190
82191 2005-09-24  Jim Meyering  <jim@meyering.net>
82192
82193         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82194         so we can once again use a positive bitfield width of 1 -- now we
82195         don't have to explain why we were using a bitfield width of 2.
82196
82197 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82198
82199         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82200         and similarly for the other external symbols.  Problem reported
82201         by James Gallager.
82202
82203         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82204         bug reported by Jim Meyering.
82205
82206         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82207         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82208         not needed, since socklen is a prerequisite module.
82209
82210 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82213         Problem reported by Eric Blake.
82214         (getaddrinfo): Initialize se so that it's not garbage.
82215         Redo internal storage allocation so that it doesn't make unportable
82216         assumptions about alignment.
82217         Fix a memory leak.
82218
82219         * lib/utimens.c (futimens): Use futimesat if available.
82220         Prefer it to futimes since it doesn't have the futimes bug.
82221
82222         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82223         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82224         Instead, declare a function that returns a pointer to an array,
82225         and use verify_type__ to declare the size of the array.
82226         Problem and germ of a solution reported by Bruno Haible.
82227         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82228         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82229
82230 2005-09-23  Jim Meyering  <jim@meyering.net>
82231
82232         Sync from coreutils.
82233         Correct build failure (socklen_t not defined) on at least
82234         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82236
82237 2005-09-23  Jim Meyering  <jim@meyering.net>
82238
82239         * modules/getaddrinfo (Depends-on): Add socklen.
82240
82241 2005-09-23  Bruno Haible  <bruno@clisp.org>
82242
82243         * tests/test-verify.c: New file.
82244
82245 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82246
82247         Sync from coreutils.
82248
82249         * modules/argmatch (Depends-on): Add verify.
82250         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82251         unistd-safer.
82252         * modules/save-cwd (Depends-on): Likewise.
82253
82254         * modules/openat (Files): Add lib/openat-die.c.
82255         (Depends-on): Remove error, exitfail.
82256         Add dirname.
82257
82258         * modules/verify: New file.
82259         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82260         with "verify" module.
82261
82262 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82263
82264         Sync from coreutils.
82265
82266         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82267         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82268         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82269         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82270         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82271         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82272         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82273         Don't bother checking for string.h, stdlib.h, unistd.h.
82274         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82275         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82276         module's job.
82277         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82278         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82279
82280         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82281         (gl_GETDATE): Use it.
82282
82283         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82284
82285 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         Sync from coreutils.
82288
82289         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82290         stat-time.h.
82291         * lib/argmatch.h: Include verify.h
82292         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82293         (ARGMATCH_ASSERT): Remove; unused.
82294         * lib/canonicalize.c: Assume STDC_HEADERS.
82295         * lib/exclude.c: Include "strcase.h".
82296         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82297         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82298         and stdio-safer.h.
82299         (getusershell): Call fopen, not fopen_safer.
82300         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82301         Do not include unistd-safer.h.
82302         (save_cwd): Don't call fd_safer; no longer needed
82303         now that we include fcntl--.h.
82304
82305         * lib/getdate.y (relative_time): New type.
82306         (RELATIVE_TIME_0): New constant.
82307         (parser_control): Use relative_time instead of doing it ourselves.
82308         (%union): Add new relative_time rel member.
82309         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82310         Now typeless.
82311         (relunit, relunit_snumber): Now of type rel.
82312         (zone, rel, relunit, get_date): Adjust to above changes.
82313
82314         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82315         Do not include unistd-safer.h.
82316         (getloadavg): Don't call fd_safer; no longer needed
82317         now that we include fcntl--.h.
82318
82319         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82320         (make_dir_parents): Treat ENOSYS like EEXIST.
82321
82322         Improve quality of diagnostics on restore_cwd failure.
82323         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82324         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82325         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82326         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82327         each time through the loop.  Do not diagnose restore_cwd failure;
82328         that is the caller's job (and perhaps the caller does not care).
82329
82330         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82331         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82332         If the file already exists but is not a directory, don't bother
82333         to try to make its parents.
82334         Close potential file descriptor leak if we can't chdir("/") (!).
82335         Don't always return true if chdir($PWD) fails; return true only
82336         if the requested action was done successfully (except for the
82337         chdir($PWD)).
82338         Don't log final directory unless we actually made it.
82339         Refactor to avoid duplicate code to fix up permissions.
82340         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82341
82342         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82343         to make it a bit faster and (I hope) clearer.
82344         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82345         Fix bug in formats like %2N.
82346
82347         * lib/verify.h: New file.
82348
82349 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         Sync from coreutils.
82352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82353
82354 2005-09-22  Jim Meyering  <jim@meyering.net>
82355
82356         Sync from coreutils.
82357
82358         * m4/lstat.m4 (gl_FUNC_LSTAT):
82359         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82360         Remove obsolete comment.
82361         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82362         * m4/xstrtod.m4: Likewise.
82363
82364         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82365
82366 2005-09-22  Jim Meyering  <jim@meyering.net>
82367
82368         Sync from coreutils.
82369
82370         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82371
82372         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82373         the .tm_year member, since otherwise gcc-4.0 would now warn about
82374         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82375
82376         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82377         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82378
82379         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82380         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82381         when run in a time zone for which daylight savings time is in effect
82382         for the starting date.
82383
82384         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82385         stop us from restricting permissions of just-created absolute-named
82386         directories.
82387         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82388         to restore initial working directory.
82389         * lib/mkdir-p.c (make_dir_parents): New parameter:
82390         different_working_dir, to tell caller if/when we change the working
82391         directory and are unable to return to the initial one.
82392         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82393         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82394         `return false'.  This fixes a bug introduced on 2004-07-30.
82395
82396         * lib/openat.c (fdopendir): Be sure to close the supplied
82397         file descriptor before returning.  This makes our replacement
82398         implementation a little closer to Solaris's, where fdopendir
82399         ties the file descriptor to the returned DIR* pointer.
82400         * lib/openat.c (unlinkat): New function.
82401         * lib/openat.h (unlinkat): Add prototype.
82402         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82403         (openat_restore_fail): Rename from openat_restore_die.
82404         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82405
82406         Provide an alternative to exiting immediately upon save_cwd or
82407         restore_cwd failure.  Now, an application can arrange e.g.,
82408         to perform a longjump in that case.
82409         * lib/openat.c: Include dirname.h.
82410         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82411         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82412         and openat_restore_die rather than calling error directly.
82413         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82414
82415         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82416         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82417         define.
82418
82419         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82420         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82421                             int utc, int nanoseconds);
82422         Background:
82423         date should not have to allocate a megabyte of virtual memory to
82424         handle a format argument like +%1048575T.  When implemented with
82425         strftime, it must allocate such a buffer, use strftime to fill it
82426         in, print it, then free it.
82427         With fprintftime, it simply prints everything and exits.
82428         With no need for memory allocation, that's one fewer way to fail.
82429         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82430         optional field width, not before, so we accept %9:z, not %:9z.
82431         (my_strftime): Be sure to use L_('x') for literals.
82432
82433         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82434         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82435         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82436         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82437         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82438         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82439         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82440         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82441         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82442         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82443         * lib/xgethostname.c, lib/xreadlink.c:
82444         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82445
82446         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82447         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82448         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82449         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82450         and don't include <sys/file.h>).
82451
82452 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82453
82454         Sync from coreutils.
82455
82456         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82457         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82458         [!LDAV_DONE]: Avoid unused variable warning.
82459
82460 2005-09-21  Bruno Haible  <bruno@clisp.org>
82461
82462         * lib/unicodeio.h (unicode_to_mb): New declaration.
82463
82464 2005-09-20  Derek Price  <derek@ximbiot.com>
82465
82466         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82467         getaddrinfo.h.
82468
82469 2005-09-20  Bruno Haible  <bruno@clisp.org>
82470
82471         * gnulib-tool: Remove trailing slashes from the values specified for
82472         --source-base, --m4-base, --tests-base, --aux-dir.
82473         Suggested by Simon Josefsson <jas@extundo.com>.
82474
82475 2005-09-20  Bruno Haible  <bruno@clisp.org>
82476
82477         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82478         func_modules_to_filelist, func_import, func_create_testdir): Make all
82479         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82480         change when gnulib-tool is invoked in a different locale.
82481
82482 2005-09-19  Simon Josefsson  <jas@extundo.com>
82483
82484         * m4/socklen.m4: Fix typo.
82485
82486 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82487
82488         Use a consistent style for including <config.h>.
82489         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82490         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82491         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82492         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82493         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82494         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82495         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82496         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82497         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82498         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82499         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82500         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82501         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82502         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82503         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82504         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82505         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82506         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82507         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82508         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82509         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82510         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82511         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82512         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82513         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82514         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82515         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82516         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82517         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82518         lib/xstrtoumax.c, lib/yesno.c:
82519         Standardize inclusion of config.h.
82520         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82521         lib/inttostr.h:  Removed inclusion of config.h from header files.
82522         * lib/inttostr.c:  Adjusted in-tree users.
82523         * lib/timespec.h: Remove superfluous warning to include config.h.
82524         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82525         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82526         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82527         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82528         config.h with HAVE_CONFIG_H.
82529
82530 2005-09-19  Jim Meyering  <jim@meyering.net>
82531
82532         * modules/pathmax (License): Change to LGPL.
82533
82534 2005-09-19  Derek Price  <derek@ximbiot.com>
82535
82536         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82537
82538 2005-09-19  Bruno Haible  <bruno@clisp.org>
82539
82540         * gnulib-tool (import): Provide default for --tests-base.
82541
82542 2005-09-19  Bruno Haible  <bruno@clisp.org>
82543
82544         * doc/quote.texi: New file, extracted from gnulib.texi.
82545         * doc/ctime.texi: New file, extracted from gnulib.texi.
82546         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82547         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82548         * doc/gnulib.texi: Include them.
82549
82550 2005-09-18  Bruno Haible  <bruno@clisp.org>
82551
82552         Portability fix.
82553         * gnulib-tool (func_readlink): New function.
82554         (func_ln_if_changed): Use it.
82555
82556 2005-09-18  Bruno Haible  <bruno@clisp.org>
82557
82558         * gnulib-tool: Support --with-tests also with --import.
82559         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82560         (func_import): Use variables $testsbase and $inctests. Emit a
82561         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82562         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82563         SUBDIRS += $testsdir.
82564         (func_create_testdir): Update.
82565
82566 2005-09-18  Bruno Haible  <bruno@clisp.org>
82567
82568         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82569         instead of $dry_run.
82570         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82571         (func_ln_if_changed): Don't handle dry-run here.
82572         (func_import): In dry-run mode, detect more precisely which actions
82573         would be performed, and don't use "...ing" verbs.
82574
82575 2005-09-18  Bruno Haible  <bruno@clisp.org>
82576
82577         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82578         (func_import): Use join on two temporary files instead of three nested
82579         loops, in order to determine which files are new or old.
82580
82581 2005-09-18  Bruno Haible  <bruno@clisp.org>
82582
82583         * gnulib-tool (func_import): Comment out code that spits out the
82584         new files with --dry-run.
82585
82586 2005-09-18  Bruno Haible  <bruno@clisp.org>
82587
82588         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82589
82590 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * lib/stat-time.h: New file.
82593         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82594         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82595         in a different way.
82596         (timespec_cmp): New function.
82597         * lib/utimecmp.c: Include stat-time.h.
82598         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82599         members exist, not on the obsolescent ST_MTIM_NSEC.
82600         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82601
82602 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82605
82606 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82607
82608         * MODULES.html.sh (File system functions): Add stat-time.
82609         * modules/stat-time: New file.
82610         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82611         is now done in a different way, by the stat-time module.
82612         * modules/utimecmp (Depends-on): Add stat-time.
82613
82614 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * m4/st_mtim.m4: Remove.  Superseded by...
82617         * m4/stat-time.m4: New file.
82618         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82619         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82620
82621 2005-09-15  Derek Price  <derek@ximbiot.com>
82622
82623         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82624
82625 2005-09-15  Derek Price  <derek@ximbiot.com>
82626
82627         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82628         * lib/regex_internal.c: Ditto, using this...
82629         (__GNUC_PREREQ): ...new macro.
82630         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82631         using...
82632         (__GNUC_PREREQ): ...this new macro.
82633
82634         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82635
82636 2005-09-15  Derek Price  <derek@ximbiot.com>
82637             Paul Eggert  <eggert@cs.ucla.edu>
82638
82639         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82640         changes, consolidating in...
82641         * lib/regex_internal.h: ...this file.
82642
82643 2005-09-13  Jim Meyering  <jim@meyering.net>
82644
82645         * lib/canon-host.c: Filter through gnu indent and reword comments
82646         slightly.
82647         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82648
82649 2005-09-13  Derek Price  <derek@ximbiot.com>
82650
82651         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82652         failure.
82653         Reported by Jim Meyering  <jim@meyering.net>.
82654
82655 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82656
82657         * lib/base64.c: Typo.
82658         (base64_encode): Put b64str in initialized data section.
82659
82660 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82661
82662         Merge glibc and coreutils changes into gnulib, plus a few
82663         extra fixes.
82664         * lib/md5.c: Use #error rather than a string.
82665         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82666         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82667         (__attribute__): Define to empty for non recent-GCC.
82668         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82669         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82670         Renamed from their non-__ counterparts, with new macros replacing
82671         them if not _LIBC.  Add __THROW attribute.
82672         (rol): Remove.
82673         (struct md5_ctx): Align buffer if using GCC.
82674         * lib/sha1.h (struct sha1_ctx): Likewise.
82675         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82676         The old name was backwards.
82677         (NOTSWAP): Remove; not used.
82678         (rol): New macro, moved here from md5.h.
82679         (sha1_process_block): Remove a FIXME that doesn't make sense.
82680
82681 2005-09-12  Derek Price  <derek@ximbiot.com>
82682
82683         Return usable errors from canon-host.
82684         * lib/canon-host.h: New file.
82685         * lib/canon-host.c (canon_host): Wrap...
82686         (canon_host_r): ...this new function, which now relies exclusively on
82687         getaddrinfo.
82688         (ch_strerror): New function.
82689         (last_cherror): New global.
82690         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82691         interface.
82692         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82693         void *.
82694         (freeaddrinfo): Free ai->ai_canonname when set.
82695
82696 2005-09-12  Derek Price  <derek@ximbiot.com>
82697
82698         Make canon-host require getaddrinfo.
82699         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82700         AC_LIBSOURCE canon-host.h.  Call...
82701         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82702         gl_GETADDRINFO.
82703         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82704
82705 2005-09-12  Derek Price  <derek@ximbiot.com>
82706
82707         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82708         LGPL.
82709         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82710
82711 2005-09-12  Derek Price  <derek@ximbiot.com>
82712
82713         * lib/gai_strerror.c: Include config.h when available.  Include
82714         getaddrinfo.h before other headers to test interface.
82715         Reported by Larry Jones <lawrence.jones@ugs.com>.
82716
82717 2005-09-12  Derek Price  <derek@ximbiot.com>
82718             Paul Eggert  <eggert@cs.ucla.edu>
82719
82720         * modules/glob (Files): Add glob-libc.h.
82721
82722 2005-09-12  Derek Price  <derek@ximbiot.com>
82723             Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82726         glob_.h, glob-libc.h.
82727         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82728
82729 2005-09-12  Derek Price  <derek@ximbiot.com>
82730             Paul Eggert  <eggert@cs.ucla.edu>
82731
82732         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82733         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82734         protecting things that should be done only in gnulib contexts.
82735         * lib/glob_.h: New file, containing only the glob things needed for
82736         gnulib.
82737         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82738         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82739         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82740         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82741         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82742         and to respect the namespace rules better.
82743
82744 2005-09-08  Simon Josefsson  <jas@extundo.com>
82745
82746         * modules/socklen: New file.
82747
82748 2005-09-08  Simon Josefsson  <jas@extundo.com>
82749
82750         * m4/socklen.m4: New file.
82751
82752 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82753
82754         * modules/utimens (Files): Add m4/utimbuf.m4, since
82755         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82756         Reported by Sergey Poznyakoff.
82757
82758 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82761         definitions, since that's the preferred style in glibc.
82762         Fix a minor spacing issue, and update copyright notice to match
82763         glibc's.
82764
82765 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82766
82767         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82768
82769 2005-09-06  Simon Josefsson  <jas@extundo.com>
82770
82771         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82772         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82773
82774 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82777         warning.
82778
82779 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82780
82781         * config/srclist.txt: Add glibc bug 1302.
82782
82783 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         Change bitset word type from unsigned int to unsigned long int,
82786         as this has better performance on typical 64-bit hosts.
82787         Port bitset code to hosts with unusual word sizes.
82788         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82789         (build_collating_symbol):
82790         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82791         argument is a bitset.  This is merely a style issue, but it makes
82792         it clearer that an entire array is expected.
82793         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82794         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82795         Port to the case where bitset_word is not the same as unsigned int.
82796         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82797         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82798         Likewise.
82799         * lib/regexec.c (check_dst_limits_calc_pos_1,
82800         check_subexp_matching_top):
82801         (build_trtable, group_nodes_into_DFAstates):
82802         Likewise.
82803         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82804         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82805         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82806         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82807         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82808         * lib/regcomp.c (optimize_subexps, lower_subexp):
82809         Work even if bitset_word has holes in its bitwise representation.
82810         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82811         * lib/regexec.c (check_dst_limits_calc_pos_1,
82812         check_subexp_matching_top):
82813         Likewise.
82814         * lib/regex_internal.c (re_string_reconstruct):
82815         Don't assume UCHAR_MAX == 255.
82816         * lib/regex_internal.h (bitset_set_all): Likewise.
82817         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82818         All uses changed.
82819         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82820         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82821         All uses changed.
82822         (BITSET_WORD_MAX): New macro.
82823         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82824         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82825         (bitset_empty, bitset_copy):
82826         Prefer sizeof (bitset) to multiplying it out ourselves.
82827         (bitset_not_merge): Remove; unused.
82828         (bitset_contain): Return bool, not unsigned int with one bit on.
82829         All callers changed.
82830         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82831         alignment than re_node_set; do this by defining a new internal
82832         type struct dests_alloc and using it to allocate memory.
82833
82834 2005-09-05  Bruno Haible  <bruno@clisp.org>
82835
82836         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82837         links.
82838
82839 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82840
82841         * modules/size_max (Makefile.am): Add size_max.h
82842
82843 2005-09-04  Derek Price  <derek@ximbiot.com>
82844
82845         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82846
82847 2005-09-03  Simon Josefsson  <jas@extundo.com>
82848
82849         * gnulib-tool: Fix typo.
82850
82851 2005-09-03  Simon Josefsson  <jas@extundo.com>
82852
82853         * config/srclist.txt: Add glibc bug 1293.
82854
82855 2005-09-03  Derek Price  <derek@ximbiot.com>
82856
82857         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82858         From Larry Jones <lawrence.jones@ugs.com>.
82859
82860 2005-09-02  Simon Josefsson  <jas@extundo.com>
82861
82862         * modules/socklen: New file.
82863
82864 2005-09-02  Simon Josefsson  <jas@extundo.com>
82865
82866         * modules/havelib: New module.
82867
82868         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82869         Use havelib.
82870
82871 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82872
82873         Check for arithmetic overflow when calculating sizes, to prevent
82874         some buffer-overflow issues.  These patches are conservative, in the
82875         sense that when I couldn't determine whether an overflow was possible,
82876         I inserted a run-time check.
82877         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82878         macros.
82879         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82880         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82881         (re_xnrealloc, re_x2nrealloc): New inline functions.
82882         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82883         parse_bracket_exp):
82884         (build_equiv_class, build_charclass): Check for arithmetic overflow
82885         in size expression calculations.
82886         * lib/regex_internal.c (re_string_realloc_buffers):
82887         (build_wcs_upper_buffer, re_node_set_add_intersect):
82888         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82889         (re_dfa_add_node, register_state): Likewise.
82890         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82891         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82892         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82893         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82894
82895 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82898         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82899
82900 2005-09-02  Bruno Haible  <bruno@clisp.org>
82901
82902         Support for lib vs. lib64 distinction on biarch platforms.
82903         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82904         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82905         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82906
82907 2005-09-02  Bruno Haible  <bruno@clisp.org>
82908
82909         * gnulib-tool (import): In the other first-use case, provide defaults
82910         as well.
82911
82912 2005-09-02  Bruno Haible  <bruno@clisp.org>
82913
82914         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82915         patches not yet found in the latest gettext release.
82916
82917 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82918
82919         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82920         to avoid a collision with bits/local_lim.h in glibc.
82921         All uses changed.  Problem reported by Dmitry V. Levin in
82922         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82923
82924         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82925         bugs in int versus size_t comparisons.
82926         (re_string_context_at): Fix bug where the code assumed that
82927         Idx is signed.
82928
82929         Use bool where appropriate.
82930         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82931         All callers changed.
82932         (calc_eclosure_iter): Likewise, for ROOT arg.
82933         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82934         (build_charclass_op): Likewise, for NON_MATCH arg.
82935         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82936         (re_string_construct_common): Likewise, for ICASE arg.
82937         * lib/regexec.c (re_search_2_stub, re_search_stub):
82938         Likewise, for RET_LEN arg.
82939         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82940         (set_regs): Likewise, for FL_BACKTRACK arg.
82941         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82942         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82943         (calc_eclosure_iter, parse_bracket_exp):
82944         Use bool for internal variables that are booleans.
82945         * lib/regexec.c (re_search_internal, check_matching,
82946         proceed_next_node):
82947         (set_regs, build_sifted_states, sift_states_bkref):
82948         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82949         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82950         (find_collation_sequence_value):
82951         Likewise.
82952         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82953         (re_node_set_compare):
82954         Return bool, not int. All callers changed.
82955         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82956         (build_trtable, check_node_accept): Likewise.
82957         * lib/regex_internal.h: Include stdbool.h.
82958
82959         Fix bugs uncovered when converting to bool.
82960         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82961         failure instead of charging ahead blindly.
82962         * lib/regex_internal.c (register_state): Likewise.
82963         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82964         for freeing internal storage.
82965         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82966         bitset pieces used as boolean, to avoid undefined behavior
82967         on hosts that do int overflow checking.
82968
82969 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * config/srclist.txt: Add glibc bugs 1285-1287.
82972
82973 2005-09-01  Jim Meyering  <jim@meyering.net>
82974
82975         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82976         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82977         Require gl_STAT_MACROS, too.
82978
82979 2005-09-01  Bruno Haible  <bruno@clisp.org>
82980
82981         * gnulib-tool (import): In the first-use case, provide defaults.
82982
82983 2005-09-01  Bruno Haible  <bruno@clisp.org>
82984
82985         * gnulib-tool (func_import): Remove the .tmp files.
82986
82987 2005-09-01  Bruno Haible  <bruno@clisp.org>
82988
82989         * gnulib-tool (func_import): Fix handling of symbolic links.
82990
82991 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82992
82993         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82994         old glibc regex code mishandles strings longer than 2**31 bytes.
82995         This patch fixes this when the regex code is used in gnulib
82996         (i.e., outside glibc).
82997
82998         This patch should not affect the use of the regex code inside
82999         glibc.  No doubt this problem also needs to be handled for glibc
83000         as well, but the result will be an incompatible change to the
83001         glibc ABI, and the old ABI will have to be supported too.  That
83002         can be the the subject for another patch.
83003
83004         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83005         governing whether the rest of this patch is active.  By default,
83006         the macro is disabled and the patch has no effect.
83007         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83008         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83009         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83010         (re_match_2, re_set_registers): Use the new types.
83011         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83012         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83013         New macros.
83014         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83015         (re_string_context_at, bin_tree_t, re_dfastate_t):
83016         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83017         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83018         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83019         (re_string_char_size_at, re_string_wchar_at):
83020         (re_string_elem_size_at):
83021         Use the new types and macros to port to 64-bit hosts.
83022         Use unsigned types for internal values, so that the code
83023         mostly works even for arrays larger than SSIZE_MAX.
83024         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83025         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83026         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83027         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83028         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83029         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83030         (calc_inveclosure, parse_dup_op, build_range_exp):
83031         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83032         (fetch_number, create_token_tree, mark_opt_subexp):
83033         Likewise.
83034         * lib/regex_internal.c (re_string_construct_common,
83035         create_ci_newstate):
83036         (create_cd_newstate, re_string_allocate, re_string_construct):
83037         (re_string_realloc_buffers, build_wcs_upper_buffer):
83038         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83039         (re_string_reconstruct, re_string_peek_byte_case):
83040         (re_string_fetch_byte_case, re_string_context_at):
83041         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83042         (re_node_set_init_copy, re_node_set_add_intersect):
83043         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83044         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83045         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83046         (re_acquire_state, re_acquire_state_context, register_state):
83047         Likewise.
83048         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83049         search_cur_bkref_entry):
83050         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83051         (re_search_internal, re_search_2_stub, re_search_stub)
83052         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83053         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83054         (update_cur_sifted_state, check_dst_limits):
83055         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83056         (check_subexp_limits, sift_states_bkref, merge_state_array):
83057         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83058         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83059         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83060         (expand_bkref_cache, check_node_accept_bytes):
83061         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83062         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83063         (acquire_init_state_context, check_halt_node_context):
83064         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83065         (sift_states_backward, clean_state_log_if_needed):
83066         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83067         (find_recover_state, transit_state_sb, transit_state_mb):
83068         (transit_state_bkref, build_trtable, match_ctx_clean):
83069         Likewise.
83070         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83071         to work around an assumption that REG_MISSING is negative.
83072
83073         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83074         (seek_collating_symbol_entry) [defined _LIBC]:
83075         (lookup_collation_sequence_value) [defined _LIBC]:
83076         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83077         Use prototypes rather than old-style function definitions.
83078         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83079         (transit_state_sb) [0]:
83080         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83081
83082         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83083         rm_eo.
83084
83085         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83086         (optimize_subexps, lower_subexp):
83087         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83088         since the signed shift might overflow.  Use 1u<<31 instead.
83089         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83090         Likewise.
83091         * lib/regexec.c (check_dst_limits_calc_pos_1,
83092         check_subexp_matching_top): Likewise.
83093
83094         * lib/regcomp.c (optimize_subexps, lower_subexp):
83095         Use CHAR_BIT rather than 8, for clarity.
83096         * lib/regexec.c (check_dst_limits_calc_pos_1):
83097         (check_subexp_matching_top): Likewise.
83098         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83099         have to worry about portability issues when shifting it left.
83100         Remove no-longer-needed test for table_size > 0.
83101         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83102         in a word, as the resulting behavior is undefined.
83103         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83104         in one case, a <= should have been an <, and in another case the
83105         whole test was missing.
83106         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83107         the standard name CHAR_BIT.
83108         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83109         this is not true on one's complement and signed-magnitude hosts.
83110
83111         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83112         next_last_offset.
83113         (struct re_dfa_t): Remove unused member states_alloc.
83114         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83115
83116 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83119         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83120         and large-file glibc and in 32-bit large-file Solaris.
83121
83122 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83123
83124         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83125         lengths fit in regoff_t; this isn't true if regoff_t is the same
83126         width as size_t.
83127         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83128         (= START + RANGE) instead of RANGE.  This avoids overflow
83129         problems when regoff_t is the same width as size_t.
83130         All callers changed.
83131         (re_search_2_stub): Check for overflow when adding the
83132         sizes of the two strings.
83133         (re_search_stub): Check for overflow when adding START
83134         to RANGE; if it occurs, substitute the extreme value.
83135
83136 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83137
83138         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83139
83140 2005-08-31  Jim Meyering  <jim@meyering.net>
83141
83142         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83143         a pointer-to-const.
83144         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83145         (register_state): Likewise.
83146         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83147         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83148         (group_nodes_into_DFAstates): Likewise.
83149
83150 2005-08-31  Jim Meyering  <jim@meyering.net>
83151
83152         * check-module: Add a FIXME comment.
83153
83154 2005-08-31  Eric Blake  <ebb9@byu.net>
83155
83156         * modules/unistd-safer (Files): Add unistd--.h.
83157         * modules/stdio-safer (Files): Add stdio--.h.
83158
83159 2005-08-31  Derek Price  <derek@ximbiot.com>
83160
83161         * lib/getdelim.c (getdelim): Return EOF on EOF.
83162         Reported by Larry Jones <lawrence.jones@ugs.com>.
83163
83164 2005-08-31  Bruno Haible  <bruno@clisp.org>
83165
83166         Avoid unnecessary diffs in the generated lib/Makefile.am.
83167         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83168         the generated files.
83169         (func_import): Don't set cmd.
83170
83171 2005-08-31  Bruno Haible  <bruno@clisp.org>
83172
83173         * lib/strstr.c: Include <stddef.h>, for NULL.
83174         * lib/strcasestr.c: Likewise.
83175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83176
83177 2005-08-31  Bruno Haible  <bruno@clisp.org>
83178
83179         * gnulib-tool: New option --macro-prefix.
83180         (func_import): Use macro_prefix.
83181         (import): Handle option --macro-prefix.
83182
83183 2005-08-31  Bruno Haible  <bruno@clisp.org>
83184
83185         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83186         Also use new variables cached_lgpl, cached_libtool.
83187
83188 2005-08-31  Bruno Haible  <bruno@clisp.org>
83189
83190         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83191         always instantiating them.
83192
83193 2005-08-31  Bruno Haible  <bruno@clisp.org>
83194
83195         * gnulib-tool (func_import): Read the previous cached settings
83196         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83197         earlier added by gnulib but are now dropped. Warn when a gnulib file
83198         overwrites a non-gnulib file.
83199
83200 2005-08-31  Bruno Haible  <bruno@clisp.org>
83201
83202         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83203         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83204         projects that don't keep autogenerated files in CVS. Put into
83205         actioncmd only the specified modules, not the transitive closure.
83206
83207 2005-08-31  Bruno Haible  <bruno@clisp.org>
83208
83209         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83210         Create directories that shall be filled.
83211         (import): Don't look for gl_* macros in configure.ac. Recurse across
83212         all directories containing a gnulib-cache.m4 files, if meaningful.
83213
83214 2005-08-31  Bruno Haible  <bruno@clisp.org>
83215
83216         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83217         (import): Set seen_libtool when we see gl_LIBTOOL.
83218
83219 2005-08-31  Bruno Haible  <bruno@clisp.org>
83220
83221         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83222         declaration macro definitions from generated gnulib.m4.
83223
83224 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83225
83226         * lib/iconvme.h: Add prototype for iconv_alloc.
83227
83228 2005-08-29  Simon Josefsson  <jas@extundo.com>
83229
83230         * lib/iconvme.c: Fix errno.
83231
83232 2005-08-29  Bruno Haible  <bruno@clisp.org>
83233
83234         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83235         that it works when the directory contains spaces.
83236
83237 2005-08-29  Bruno Haible  <bruno@clisp.org>
83238
83239         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83240
83241 2005-08-29  Bruno Haible  <bruno@clisp.org>
83242
83243         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83244         Emit more advice.
83245
83246 2005-08-29  Bruno Haible  <bruno@clisp.org>
83247         and Stepan Kasal  <kasal@ucw.cz>
83248
83249         * check-module: If more parameters are given, check each of them
83250         separately; add more exceptions, as noted by Jim Meyering.
83251         (check_module): New procedure.
83252         (%exempt_header): Now contains all exceptions.
83253
83254 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83255
83256         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83257
83258 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83259
83260         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83261
83262 2005-08-28  Bruno Haible  <bruno@clisp.org>
83263
83264         * m4/gnulib-tool.m4: New file.
83265
83266 2005-08-27  Jim Meyering  <jim@meyering.net>
83267
83268         * modules/unistd-safer (Files): Add pipe-safer.c.
83269         * modules/fcntl-safer (Files): Add creat-safer.c.
83270
83271 2005-08-27  Jim Meyering  <jim@meyering.net>
83272
83273         * m4/stdlib-safer.m4: New file.  From coreutils.
83274         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83275         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83276         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83277         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83278         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83279
83280 2005-08-27  Jim Meyering  <jim@meyering.net>
83281
83282         * lib/fopen-safer.c: Merge minor changes from coreutils.
83283         * lib/dup-safer.c: Likewise.
83284         * lib/fd-safer.c: Likewise.
83285
83286         Merge from coreutils.
83287         * lib/stdio--.h: New file.
83288         * lib/stdlib--.h: New file.
83289         * lib/mkstemp-safer.c: New file.
83290
83291         GNU tar needs these.
83292         * lib/pipe-safer.c: New file.
83293         * lib/creat-safer.c: New file.
83294         * lib/fcntl--.h (creat): Define to creat_safer.
83295         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83296         * lib/unistd--.h (pipe): Define to pipe_safer.
83297         * lib/unistd-safer.h: Declare pipe_safer.
83298
83299 2005-08-26  Simon Josefsson  <jas@extundo.com>
83300
83301         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83302         Haible <bruno@clisp.org>.
83303
83304 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * lib/regex_internal.h: Remove all references to
83307         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83308         or better.
83309         (bitset_not, bitset_merge, bitset_not_merge):
83310         (bitset_mask, re_string_allocate, re_string_construct):
83311         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83312         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83313         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83314         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83315         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83316         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83317         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83318         (re_acquire_state_context):
83319         Remove unnecessary forward decls.
83320         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83321         Put __attribute at function definition,
83322         now that the function decl has been removed.
83323         * lib/regex_internal.c (re_string_peek_byte_case):
83324         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83325         Likewise.
83326
83327 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83328
83329         * m4/regex.m4: Add AC_PREREQ(2.50).
83330         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83331
83332 2005-08-25  Simon Josefsson  <jas@extundo.com>
83333
83334         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83335         __fsetlocking.
83336
83337 2005-08-25  Simon Josefsson  <jas@extundo.com>
83338
83339         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83340         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83341         GLIBC specific code.
83342
83343 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         Make regex safe for g++.  This fixes one real bug (an "err"
83346         that should have been "*err").  g++ problem reported by
83347         Sam Steingold.
83348         * lib/regex_internal.h (re_calloc): New macro, consistent with
83349         re_malloc etc.  All callers of calloc changed to use re_calloc.
83350         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83351         not int.  All callers changed.
83352         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83353         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83354         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83355         (find_recover_state): Change "err" to "*err"; this fixes what
83356         appears to be a real bug.
83357         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83358         versus int.
83359
83360 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83361
83362         * modules/regex (Depends-on): Add malloc, since the code
83363         assumes that !malloc(0) means failure.
83364
83365 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83368
83369         alloca modernization/simplification for regex.
83370         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83371         needs to be at the start of the file, and can be moved into
83372         regex_internal.h and simplified.
83373         * lib/regex_internal.h: Include <alloca.h>.
83374         (__libc_use_alloca) [!defined _LIBC]: New macro.
83375         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83376         now works outside glibc.
83377
83378 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * config/srclist.txt: Add glibc bugs 1241, 1245.
83381
83382 2005-08-25  Jim Meyering  <jim@meyering.net>
83383
83384         * lib/open-safer.c: Include <config.h>.
83385         Otherwise, we'd lose LARGEFILE support in any file using
83386         e.g. "fcntl--.h"
83387
83388 2005-08-25  Bruno Haible  <bruno@clisp.org>
83389
83390         * m4/minmax.m4: Require autoconf 2.52.
83391         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83392         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83393         alternatives of translit over the alphabet.
83394         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83395
83396 2005-08-24  Simon Josefsson  <jas@extundo.com>
83397
83398         * tests/test-getpass.c: New file.
83399
83400 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83401
83402         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83403         for GNU regex features.
83404
83405 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83406
83407         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83408         * lib/regex.h (regerror): Likewise.
83409
83410         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83411         requires this.  (The code never needed it.)
83412
83413         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83414         All uses of recently-renamed identifiers changed to use the new,
83415         POSIX-compliant names.  The code will build and run just fine
83416         without these changes, but it's better to eat our own dog food
83417         and use the standard-conforming names.
83418
83419         * lib/regex.h: Fix a multitude of POSIX name space violations.
83420         These changes have an effect only for programs that define
83421         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83422         do not change anything for programs compiled in the normal way.
83423         Also, there is no effect on the ABI.
83424
83425         (_REGEX_SOURCE): New macro.
83426         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83427         defined and _GNU_SOURCE is not; this fixes a name space violation.
83428
83429         Rename the following macros to obey POSIX requirements.
83430         The old names are still visible as macros if _REGEX_SOURCE is defined.
83431         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83432         RE_BACKSLASH_ESCAPE_IN_LISTS.
83433         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83434         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83435         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83436         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83437         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83438         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83439         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83440         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83441         (REG_INTERVALS): renamed from RE_INTERVALS.
83442         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83443         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83444         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83445         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83446         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83447         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83448         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83449         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83450         RE_UNMATCHED_RIGHT_PAREN_ORD.
83451         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83452         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83453         (REG_DEBUG): renamed from RE_DEBUG.
83454         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83455         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83456         unusual, since we can't clash with the POSIX REG_ICASE.
83457         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83458         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83459         (REG_NO_SUB): renamed from RE_NO_SUB.
83460         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83461         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83462         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83463         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83464         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83465         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83466         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83467         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83468         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83469         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83470         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83471         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83472         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83473         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83474         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83475         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83476         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83477         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83478         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83479         (REG_FIXED): Renamed from REGS_FIXED.
83480         (REG_NREGS): Renamed from RE_NREGS.
83481
83482         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83483         of other REG_* macros, since POSIX says the user is allowed to
83484         #undef these macros selectively.
83485
83486         (reg_errcode_t): Update comment stating what other tables need
83487         to be consistent.
83488
83489         Rename the following enum values to obey POSIX requirements.
83490         The old names are still visible as macros.
83491         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83492         is not defined, since GNU is supposed to be a superset of POSIX as
83493         much as possible, and since we want reg_errcode_t to be a signed
83494         type for implementation consistency.
83495         (_REG_NOERROR): Renamed from REG_NOERROR.
83496         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83497         (_REG_BADPAT): Renamed from REG_BADPAT.
83498         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83499         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83500         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83501         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83502         (_REG_EBRACK): Renamed from REG_EBRACK.
83503         (_REG_EPAREN): Renamed from REG_EPAREN.
83504         (_REG_EBRACE): Renamed from REG_EBRACE.
83505         (_REG_BADBR): Renamed from REG_BADBR.
83506         (_REG_ERANGE): Renamed from REG_ERANGE.
83507         (_REG_ESPACE): Renamed from REG_ESPACE.
83508         (_REG_BADRPT): Renamed from REG_BADRPT.
83509         (_REG_EEND): Renamed from REG_EEND.
83510         (_REG_ESIZE): Renamed from REG_ESIZE.
83511         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83512         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83513         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83514         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83515         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83516
83517         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83518         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83519         changed.  But support the old name if the new one is not defined
83520         and if _REGEX_SOURCE.
83521
83522         Change the following member names in struct re_pattern_buffer.
83523         The old names are still supported if !_REGEX_SOURCE.
83524         The new names are always supported, regardless of _REGEX_SOURCE.
83525         (re_buffer): Renamed from buffer.
83526         (re_allocated): Renamed from allocated.
83527         (re_used): Renamed from used.
83528         (re_syntax): Renamed from syntax.
83529         (re_fastmap): Renamed from fastmap.
83530         (re_translate): Renamed from translate.
83531         (re_can_be_null): Renamed from can_be_null.
83532         (re_regs_allocated): Renamed from regs_allocated.
83533         (re_fastmap_accurate): Renamed from fastmap_accurate.
83534         (re_no_sub): Renamed from no_sub.
83535         (re_not_bol): Renamed from not_bol.
83536         (re_not_eol): Renamed from not_eol.
83537         (re_newline_anchor): Renamed from newline_anchor.
83538
83539         Change the following member names in struct re_registers.
83540         The old names are still supported if !_REGEX_SOURCE.
83541         The new names are always supported, regardless of _REGEX_SOURCE.
83542         (rm_num_regs): Renamed from num_regs.
83543         (rm_start): Renamed from start.
83544         (rm_end): Renamed from end.
83545
83546         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83547         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83548         Prepend __ to parameter names.
83549
83550         Undo yesterday's changes.
83551
83552 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83555         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83556         lib/regex.c.
83557
83558 2005-08-24  Jim Meyering  <jim@meyering.net>
83559
83560         Sync from coreutils.
83561         * m4/fcntl-safer.m4: New file.
83562
83563         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83564         and object files for this module.
83565
83566 2005-08-24  Jim Meyering  <jim@meyering.net>
83567
83568         Sync from coreutils.
83569         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83570
83571 2005-08-24  Jim Meyering  <jim@meyering.net>
83572
83573         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83574         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83575
83576 2005-08-24  Jim Meyering  <jim@meyering.net>
83577
83578         * modules/fcntl-safer: New module.
83579         * modules/fts (Depends-on): Add fcntl-safer.
83580         * MODULES.html.sh (File descriptor based Input/Output):
83581         Add fcntl-safer.
83582
83583 2005-08-24  Bruno Haible  <bruno@clisp.org>
83584
83585         Support for unit test modules.
83586         * modules/README: Mention tests modules.
83587         * modules/TEMPLATE-TESTS: New file.
83588         * gnulib-tool: New options --extract-tests-module, --with-tests and
83589         --tests-base (unused for the moment).
83590         (testsbase, inctests): New variables.
83591         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83592         (func_verify_module): Exclude TEMPLATE-TESTS.
83593         (func_verify_nontests_module, func_verify_tests_module): New functions.
83594         (func_get_dependencies): Add implicit dependency for tests modules.
83595         (func_get_tests_module): New function.
83596         (func_modules_transitive_closure): When --with-tests was specified,
83597         include the unit tests as well, unless explicitly avoided.
83598         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83599         (func_emit_tests_Makefile_am): New function.
83600         (func_create_testdir): When --with-tests was specified, emit a
83601         tests/ directory.
83602         * MODULES.html.sh (Future developments): Update.
83603
83604 2005-08-24  Bruno Haible  <bruno@clisp.org>
83605
83606         * modules/tls-tests: New file.
83607         * tests/test-tls.c: New file, from GNU gettext.
83608
83609 2005-08-24  Bruno Haible  <bruno@clisp.org>
83610
83611         * modules/lock-tests: New file.
83612         * tests/test-lock.c: New file, from GNU gettext.
83613
83614 2005-08-24  Bruno Haible  <bruno@clisp.org>
83615
83616         * lib/lock.h: Add multiple inclusion guard.
83617         * lib/tls.h: Add multiple inclusion guard.
83618
83619 2005-08-24  Bruno Haible  <bruno@clisp.org>
83620
83621         * gnulib-tool: Add support for the --aux-dir option to
83622         --create-testdir, --create-megatestdir, --test, --megatest.
83623         (func_create_testdir, func_create_megatestdir): Optionally emit a
83624         AC_CONFIG_AUX_DIR directive.
83625         (create-testdir, create-megatestdir, test, megatest): Provide a
83626         default value for $auxdir.
83627
83628 2005-08-24  Bruno Haible  <bruno@clisp.org>
83629
83630         * gnulib-tool (import): Use compound statement instead of subshell
83631         where possible.
83632
83633 2005-08-24  Bruno Haible  <bruno@clisp.org>
83634
83635         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83636
83637 2005-08-24  Bruno Haible  <bruno@clisp.org>
83638
83639         * gnulib-tool (func_version): Update.
83640
83641 2005-08-24  Bruno Haible  <bruno@clisp.org>
83642
83643         * gnulib-tool (func_import, func_create_testdir,
83644         func_create_megatestdir): Quote all autoconf macro arguments.
83645
83646 2005-08-24  Bruno Haible  <bruno@clisp.org>
83647
83648         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83649         option --force, because --force causes the aclocal.m4 of each
83650         subdirectory to be newer than the corresponding config.h.in.
83651
83652 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83653
83654         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83655         All contents moved to gl_REGEX.
83656         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83657         assume that it does.
83658
83659 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * lib/regex.h (REG_NOSYS)
83662         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83663         Define, since POSIX requires it as of 2001.
83664         (_REG_ENOSYS)
83665         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83666         New private symbol, used to keep the enum signed in all cases.
83667         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83668         Youngman in
83669         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83670
83671         * lib/regex_internal.c (re_string_skip_chars, register_state):
83672         (calc_state_hash):
83673         Remove forward decls; no longer needed now that we use prototypes.
83674         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83675         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83676         (clean_state_log_if_needed): Likewise.
83677
83678 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         * config/srclist.txt: Add glibc bugs 1231-1233.
83681
83682 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         Fix problems reported by Sam Steingold in
83685         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83686         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83687         assumed that reg_errcode_t is a signed type, which is not
83688         necessarily true if _XOPEN_SOURCE is not defined.
83689         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83690         since some compilers warn about it otherwise.
83691
83692 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83695         (init_word_char, create_initial_state, duplicate_node_closure):
83696         (fetch_token, peek_token_bracket, build_range_exp):
83697         (build_collating_symbol): Remove forward decls; no longer needed
83698         now that we use prototypes.
83699
83700         * lib/regcomp.c:
83701         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83702         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83703         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83704         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83705         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83706         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83707         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83708         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83709         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83710         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83711         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83712         (build_charclass, build_charclass_op, fetch_number, create_tree):
83713         (create_token_tree, mark_opt_subexp, duplicate_tree):
83714         Use prototypes rather than old-style definitions.
83715
83716         * lib/regex_internal.c:
83717         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83718         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83719         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83720         (re_string_reconstruct, re_string_peek_byte_case):
83721         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83722         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83723         (re_node_set_init_copy, re_node_set_add_intersect):
83724         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83725         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83726         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83727         (re_acquire_state, re_acquire_state_context, register_state):
83728         (create_ci_newstate, create_cd_newstate, free_state):
83729         Likewise.
83730         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83731         re_search_2):
83732         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83733         (re_search_internal, prune_impossible_nodes):
83734         (acquire_init_state_context, check_matching, static):
83735         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83736         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83737         (update_regs, sift_states_backward, build_sifted_states):
83738         (clean_state_log_if_needed, merge_state_array):
83739         (update_cur_sifted_state, add_epsilon_src_nodes):
83740         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83741         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83742         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83743         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83744         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83745         (check_arrival, check_arrival_add_next_nodes):
83746         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83747         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83748         (check_node_accept_bytes, check_node_accept, extend_buffers):
83749         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83750         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83751         (sift_ctx_init):
83752         Likewise.
83753
83754         * lib/regex_internal.h:
83755         (re_string_allocate, re_string_construct, re_string_reconstruct):
83756         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83757         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83758         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83759         (re_string_context_at, re_string_peek_byte_case):
83760         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83761         is defined, since we now use prototypes always.
83762
83763         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83764         C89 or better.  All uses removed.
83765
83766 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * config/srclist.txt: Add glibc bugs 1220-1227.
83769
83770 2005-08-20  Jim Meyering  <jim@meyering.net>
83771
83772         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83773         of unused local, dfa.
83774
83775 2005-08-20  Bruno Haible  <bruno@clisp.org>
83776
83777         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83778
83779 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83782         (re_node_set_insert_last, re_dfa_add_node):
83783         Rename local variables to avoid GCC shadowing warnings.
83784
83785 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83788         [defined lint]: Suppress bogus uninitialized-variable warnings.
83789
83790         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83791         and let the caller return REG_ESPACE if out of space.  This
83792         removes an uninitialied-variable warning with GCC 4.0.1, and also
83793         avoids taking the address of a local variable.  All callers
83794         changed.
83795
83796 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83797
83798         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83799         $LIBCSRC/posix/regexec.c.
83800         Add glibc bug 1217 for regcomp.c.
83801
83802 2005-08-19  Jim Meyering  <jim@meyering.net>
83803
83804         * lib/regexec.c (proceed_next_node): Redo local variables to
83805         avoid GCC shadowing warnings.
83806
83807 2005-08-18  Bruno Haible  <bruno@clisp.org>
83808
83809         * lib/strstr.c (strstr): Fix return value in multibyte case.
83810         * lib/strcasestr.c (strcasestr): Likewise.
83811
83812 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83813
83814         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83815
83816 2005-08-17  Jim Meyering  <jim@meyering.net>
83817
83818         Make the %s format (seconds since the epoch) work for a negative
83819         number and when used with a zero-padded field width, e.g. %015s.
83820
83821         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83822         label so that it precedes the code to set `digits'.  Otherwise,
83823         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83824         print `00-22'.  Now, it prints `-0022', as it should.
83825
83826 2005-08-17  Bruno Haible  <bruno@clisp.org>
83827
83828         * modules/strstr (Files): Add m4/mbrtowc.m4.
83829         (Depends-on): Add mbuiter.
83830
83831 2005-08-17  Bruno Haible  <bruno@clisp.org>
83832
83833         * modules/strcasestr: New file.
83834         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83835         strcasestr.
83836
83837 2005-08-17  Bruno Haible  <bruno@clisp.org>
83838
83839         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83840
83841 2005-08-17  Bruno Haible  <bruno@clisp.org>
83842
83843         * modules/mbuiter: New file.
83844         * MODULES.html.sh (Extended multibyte and wide character utilities):
83845         Add mbuiter.
83846
83847 2005-08-17  Bruno Haible  <bruno@clisp.org>
83848
83849         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83850         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83851
83852 2005-08-17  Bruno Haible  <bruno@clisp.org>
83853
83854         * m4/strcasestr.m4: New file.
83855
83856 2005-08-17  Bruno Haible  <bruno@clisp.org>
83857
83858         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83859         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83860
83861 2005-08-17  Bruno Haible  <bruno@clisp.org>
83862
83863         * lib/strcasestr.h: New file.
83864         * lib/strcasestr.c: New file.
83865
83866 2005-08-17  Bruno Haible  <bruno@clisp.org>
83867
83868         * lib/strcasecmp.c: Use mbuiter.h.
83869
83870 2005-08-17  Bruno Haible  <bruno@clisp.org>
83871
83872         * lib/mbuiter.h: New file.
83873
83874 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83875
83876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83877         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83878         and gl_GETOPT are both invoked via different paths (as happens
83879         with GNU tar CVS because it uses both argp and getopt), the former
83880         wins.
83881
83882 2005-08-16  Bruno Haible  <bruno@clisp.org>
83883
83884         * modules/tls: New file.
83885         * MODULES.html.sh (Multithreading): Add tls.
83886
83887 2005-08-16  Bruno Haible  <bruno@clisp.org>
83888
83889         * modules/strnlen1: New file.
83890         * MODULES.html.sh (String handling): Add strnlen1.
83891
83892 2005-08-16  Bruno Haible  <bruno@clisp.org>
83893
83894         * modules/strcase (Files): Add m4/mbrtowc.m4.
83895         (Depends-on): Add strnlen1, mbchar.
83896
83897 2005-08-16  Bruno Haible  <bruno@clisp.org>
83898
83899         * modules/mbiter: New file.
83900         * MODULES.html.sh (Extended multibyte and wide character utilities):
83901         Add mbiter.
83902
83903 2005-08-16  Bruno Haible  <bruno@clisp.org>
83904
83905         * modules/mbfile: New file.
83906         * MODULES.html.sh (Extended multibyte and wide character utilities):
83907         Add mbfile.
83908
83909 2005-08-16  Bruno Haible  <bruno@clisp.org>
83910
83911         * modules/mbchar: New file.
83912         * MODULES.html.sh (Extended multibyte and wide character utilities):
83913         New section.
83914
83915 2005-08-16  Bruno Haible  <bruno@clisp.org>
83916
83917         * m4/tls.m4: New file, from GNU gettext.
83918
83919 2005-08-16  Bruno Haible  <bruno@clisp.org>
83920
83921         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83922         always.
83923         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83924
83925 2005-08-16  Bruno Haible  <bruno@clisp.org>
83926
83927         * m4/mbiter.m4: New file.
83928
83929 2005-08-16  Bruno Haible  <bruno@clisp.org>
83930
83931         * m4/mbfile.m4: New file.
83932
83933 2005-08-16  Bruno Haible  <bruno@clisp.org>
83934
83935         * m4/mbchar.m4: New file.
83936
83937 2005-08-16  Bruno Haible  <bruno@clisp.org>
83938
83939         * lib/tls.h: New file, from GNU gettext.
83940         * lib/tls.c: New file, from GNU gettext.
83941
83942 2005-08-16  Bruno Haible  <bruno@clisp.org>
83943
83944         * lib/strnlen1.h: New file.
83945         * lib/strnlen1.c: New file.
83946
83947 2005-08-16  Bruno Haible  <bruno@clisp.org>
83948
83949         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83950         (mbi_init): Update.
83951         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83952         NUL byte, not after it.
83953
83954 2005-08-16  Bruno Haible  <bruno@clisp.org>
83955
83956         * lib/strcase.h (strcasecmp): Add note in comments.
83957         * lib/strncasecmp.c: Use code from strcasecmp.c.
83958         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83959         (strcasecmp): Work correctly in multibyte locales.
83960
83961 2005-08-16  Bruno Haible  <bruno@clisp.org>
83962
83963         * lib/mbiter.h: New file.
83964
83965 2005-08-16  Bruno Haible  <bruno@clisp.org>
83966
83967         * lib/mbfile.h: New file.
83968
83969 2005-08-16  Bruno Haible  <bruno@clisp.org>
83970
83971         * lib/mbchar.h: New file.
83972         * lib/mbchar.c: New file.
83973
83974 2005-08-16  Bruno Haible  <bruno@clisp.org>
83975
83976         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83977         the valid ones. Makes the comparison operations transitive:
83978         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83979         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83980
83981 2005-08-15  Simon Josefsson  <jas@extundo.com>
83982
83983         * modules/ssize_t (License): Change to 'unlimited'.
83984
83985         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83986
83987 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83988
83989         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83990         Add comments for each pending glibc patch.
83991
83992 2005-08-15  Bruno Haible  <bruno@clisp.org>
83993
83994         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83995         __cplusplus is defined.
83996
83997 2005-08-14  Jim Meyering  <jim@meyering.net>
83998
83999         Sync from coreutils.
84000
84001         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84002         Use the hash-table-based cycle-detection code not just when
84003         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84004         Reported by James Youngman in
84005         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84006         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84007         FTS_TIGHT_CYCLE_CHECK.
84008         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84009         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84010         once again.
84011         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84012         * lib/fts.c (fd_safer): Remove decl.
84013         Include fcntl--.h rather than unistd-safer.h
84014         (fts_safe_changedir): Don't call fd_safer; no longer needed
84015         now that we include fcntl--.h.
84016
84017 2005-08-12  Simon Josefsson  <jas@extundo.com>
84018
84019         * modules/getndelim2: Use ssize_t module.
84020         * modules/getnline: Likewise.
84021         * modules/safe-read: Likewise.
84022         * modules/xreadlink: Likewise.
84023
84024         * modules/ssize_t: New file.
84025
84026 2005-08-12  Simon Josefsson  <jas@extundo.com>
84027
84028         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84029
84030 2005-08-12  Simon Josefsson  <jas@extundo.com>
84031
84032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84033         ssize_t.
84034
84035 2005-08-12  Simon Josefsson  <jas@extundo.com>
84036
84037         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84038         readline, getdelim and check_version.
84039         (Support for systems lacking ISO C 99: Sizes of integer types):
84040         Add size_max.
84041
84042 2005-08-12  Bruno Haible  <bruno@clisp.org>
84043
84044         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84045
84046 2005-08-11  Simon Josefsson  <jas@extundo.com>
84047
84048         * modules/readline: New file.
84049
84050         * modules/strnlen (Files): Add strnlen.h.
84051
84052 2005-08-11  Simon Josefsson  <jas@extundo.com>
84053
84054         * m4/readline.m4: New file.
84055
84056 2005-08-11  Simon Josefsson  <jas@extundo.com>
84057
84058         * lib/readline.h, readline.c: New file.
84059
84060 2005-08-11  Simon Josefsson  <jas@extundo.com>
84061
84062         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84063         gl_AVOID.
84064
84065 2005-08-11  Bruno Haible  <bruno@clisp.org>
84066
84067         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84068
84069 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84070
84071         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84072
84073 2005-08-10  Simon Josefsson  <jas@extundo.com>
84074
84075         * tests/test-iconvme.c: New file.
84076
84077 2005-08-10  Simon Josefsson  <jas@extundo.com>
84078
84079         * m4/strnlen.m4: New file.
84080
84081         * m4/strndup.m4: Don't check for strnlen declaration, done in
84082         strnlen.m4.
84083
84084 2005-08-10  Simon Josefsson  <jas@extundo.com>
84085
84086         * lib/strndup.c: Use strnlen.h.
84087
84088         * lib/strnlen.h: New file.
84089
84090 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84091
84092         * README: Typos.
84093
84094 2005-08-02  Simon Josefsson  <jas@extundo.com>
84095
84096         * modules/readline: New file.
84097
84098 2005-08-02  Simon Josefsson  <jas@extundo.com>
84099
84100         * modules/getdelim: New file.
84101
84102         * modules/getline: Rewrite, don't use getndelim2.
84103
84104 2005-08-02  Simon Josefsson  <jas@extundo.com>
84105
84106         * m4/getline.m4: Separate out getdelim stuff into separate module.
84107
84108         * m4/getdelim.m4: New file.
84109
84110 2005-08-02  Simon Josefsson  <jas@extundo.com>
84111
84112         * lib/getline.h, getline.c: Rewrite.
84113
84114         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84115
84116 2005-07-31  Bruno Haible  <bruno@clisp.org>
84117
84118         * lib/lock.h (gl_lock_initializer): New macro.
84119         (gl_lock_define_initialized): Use it.
84120         (gl_rwlock_initializer): New macro.
84121         (gl_rwlock_define_initialized): Use it.
84122         (gl_recursive_lock_initializer): New macro.
84123         (gl_recursive_lock_define_initialized): Use it.
84124
84125 2005-07-30  Karl Berry  <karl@gnu.org>
84126
84127         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84128         Report from Ben Pfaff, regarding getopt.
84129
84130 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84133         normal way.
84134         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84135         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84136         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84137         (gl_GETOPT): Use the new macros.  Most of the implementation
84138         is moved to the new macros.  This is for programs like Emacs
84139         that don't want all the functionality of gl_GETOPT.
84140
84141 2005-07-26  Bruno Haible  <bruno@clisp.org>
84142
84143         * m4/lock.m4: Update from GNU gettext.
84144
84145 2005-07-26  Bruno Haible  <bruno@clisp.org>
84146
84147         * lib/lock.h: Update from GNU gettext.
84148         * lib/lock.c: Update from GNU gettext.
84149
84150 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84151
84152         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84153         obsolescent AC_TRY_RUN.  Include the default includes files, for
84154         'exit'.
84155
84156 2005-07-24  Bruno Haible  <bruno@clisp.org>
84157
84158         * modules/visibility: New file.
84159         * MODULES.html.sh (Misc): Add visibility.
84160
84161 2005-07-24  Bruno Haible  <bruno@clisp.org>
84162
84163         * m4/visibility.m4: New file.
84164
84165 2005-07-24  Bruno Haible  <bruno@clisp.org>
84166
84167         * doc/visibility.texi: New file.
84168
84169 2005-07-22  Bruno Haible  <bruno@clisp.org>
84170
84171         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84172         $(ALLOCA_H), redundant through BUILT_SOURCES.
84173         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84174         redundant through BUILT_SOURCES.
84175         * modules/byteswap (Makefile.am): Remove explicit dependency on
84176         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84177         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84178         $(FNMATCH_H), redundant through BUILT_SOURCES.
84179         * modules/getopt (Makefile.am): Remove explicit dependency on
84180         $(GETOPT_H), redundant through BUILT_SOURCES.
84181         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84182         redundant through BUILT_SOURCES.
84183         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84184         redundant through BUILT_SOURCES.
84185         * modules/stdbool (Makefile.am): Remove explicit dependency on
84186         $(STDBOOL_H), redundant through BUILT_SOURCES.
84187         * modules/stdint (Makefile.am): Remove explicit dependency on
84188         $(STDINT_H), redundant through BUILT_SOURCES.
84189         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84190         Remove explicit dependency on $(SYSEXITS_H).
84191         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84192
84193 2005-07-18  Simon Josefsson  <jas@extundo.com>
84194
84195         * lib/check-version.c (check_version): Accept identical versions too.
84196
84197 2005-07-18  Bruno Haible  <bruno@clisp.org>
84198
84199         * modules/lock: New file.
84200         * MODULES.html.sh (Multithreading): New section.
84201
84202 2005-07-18  Bruno Haible  <bruno@clisp.org>
84203
84204         * m4/lock.m4: New file, from GNU gettext.
84205
84206 2005-07-18  Bruno Haible  <bruno@clisp.org>
84207
84208         * lib/lock.h: New file, from GNU gettext.
84209         * lib/lock.c: New file, from GNU gettext.
84210
84211 2005-07-18  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/lock.h (gl_once_t): New type.
84214         (gl_once_define, gl_once): New macros.
84215         * lib/lock.c (fresh_once): New variable.
84216         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84217         functions.
84218
84219 2005-07-16  Simon Josefsson  <jas@extundo.com>
84220
84221         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84222         workaround, suggested by Bruno.
84223
84224 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * modules/xalloc (Depends-on): Add xalloc-die.
84227         * modules/xvasprintf (Depends-on): Add xalloc-die.
84228
84229 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84232         with a minor change.
84233
84234 2005-07-15  Bruno Haible  <bruno@clisp.org>
84235
84236         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84237         When using lib/poll.c, define poll as rpl_poll.
84238
84239 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84240
84241         * modules/argp (Depends-on): Remove unlocked-io.
84242
84243 2005-07-14  Derek Price  <derek@ximbiot.com>
84244
84245         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84246         for glob symlink bug.
84247
84248 2005-07-14  Bruno Haible  <bruno@clisp.org>
84249
84250         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84251         Instead, test for *_unlocked function declarations directly.
84252
84253 2005-07-11  Simon Josefsson  <jas@extundo.com>
84254
84255         * modules/size_max: New file.
84256
84257         * modules/xsize: Depend on size_max module for size_max.m4.
84258
84259 2005-07-11  Simon Josefsson  <jas@extundo.com>
84260
84261         * lib/size_max.h: New file.
84262
84263 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84264
84265         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84266         copyright symbol and the year.
84267         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84268         (version_etc_va): Use parameterized copyright notice.
84269         Reword to conform to the current GNU coding standards.
84270
84271 2005-07-11  Karl Berry  <karl@gnu.org>
84272
84273         * doc/gnulib.texi (Quoting): new node.
84274         (Initial import): more info, from Patrice.
84275
84276 2005-07-11  Bruno Haible  <bruno@clisp.org>
84277
84278         * gnulib-tool (func_usage): Document option --avoid.
84279         (Command line options): Handle --avoid.
84280         (func_acceptable): New function.
84281         (func_modules_transitive_closure): Use it.
84282
84283 2005-07-11  Bruno Haible  <bruno@clisp.org>
84284
84285         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84286         Reported by Jim Meyering.
84287
84288 2005-07-10  Bruno Haible  <bruno@clisp.org>
84289
84290         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84291         Needed when size_t is smaller than 'unsigned int'.
84292         Reported by Paul Eggert.
84293
84294 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84295
84296         * modules/argp (Depends-on): Add unlocked-io
84297
84298 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84299
84300         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84301         block of defines.
84302
84303 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84306         fix now.
84307
84308 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84309         and Paul Eggert  <eggert@cs.ucla.edu>
84310
84311         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84312         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84313
84314 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84315
84316         * modules/regex (Files): Add lib/regex_internal.c,
84317         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84318         (Depends-on): Add extensions.
84319         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84320
84321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84322
84323         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84324         pathconf.
84325         * m4/same.m4 (gl_SAME): Likewise.
84326         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84327
84328         * m4/regex.m4: Adjust to new libc regex implementation.
84329         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84330         all the .c and .h parts of (the new) regex.
84331         Quote the m4 stuff better.
84332         Check for RE_ICASE bug of old gnulib.
84333         Check for REG_STARTEND of recent libc.
84334         Rename local variables from jm_* to gl_*.
84335         Quote operand of "test -f".
84336         Say "recent enough" version of libc, not "version 2".
84337         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84338         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84339         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84340         Remove check for btowc, isascii.
84341         Require AM_LANGINFO_CODESET.
84342
84343 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * lib/regex.c, regex.h: Sync from libc.
84346         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84347         * lib/regexec.c:
84348         New files, synced from libc, except that regex_internal.h
84349         currently has a small porting fix.
84350
84351 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84352
84353         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84354         regex_internal.c, regexec.c.
84355         Add regex_internal.h too, but as a comment, since the libc version
84356         is currently broken in gnulib mode.
84357
84358 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         Support programs like Emacs that use gnulib but not gettext.
84361         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84362         * modules/gettext-h: New file.
84363         * modules/gettext (Files): Remove lib/gettext.h.
84364         (Depends-on): Add gettext-h.
84365         (Makefile.am): Remove lib_SOURCES.
84366         * modules/argmatch, modules/c-stack, modules/closeout:
84367         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84368         * modules/execute, modules/file-type, modules/getaddrinfo:
84369         * modules/getopt, modules/human, modules/javacomp:
84370         * modules/javaexec, modules/mkdir-p, modules/obstack:
84371         * modules/openat, modules/pagealign_alloc, modules/pipe:
84372         * modules/quotearg, modules/regex, modules/rpmatch:
84373         * modules/unicodeio, modules/userspec, modules/version-etc:
84374         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84375         * modules/xsetenv:
84376         Depend on gettext-h, not gettext.
84377
84378 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * gnulib-tool (func_import): Add support for 'public domain' license.
84381         * modules/alloca, modules/atexit, modules/memmove:
84382         Now public domain, not GPL.
84383         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84384         * modules/realloc, modules/strerror, modules/strtod:
84385         Now LGPL, not GPL.
84386
84387 2005-07-05  Bruno Haible  <bruno@clisp.org>
84388
84389         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84390         autoconf CVS. Needed for mingw.
84391
84392 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         Remove the dependency of the strftime module on the tzset module.
84395         * modules/strftime (Depends-on): Remove dependency on tzset.
84396
84397 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84398
84399         Remove the dependency of the strftime module on the tzset module.
84400         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84401         gl_FUNC_TZSET_CLOBBER.
84402
84403 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84404
84405         Remove the dependency of the strftime module on the tzset module.
84406         * lib/strftime.c (my_strftime)
84407         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84408         Copy the input structure, to work around some of the bug with
84409         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84410         Solaris releases, you should also use the tzset module, but we won't
84411         require it as a dependency any more since we don't want LGPLed code
84412         to depend on GPLed code.
84413
84414 2005-07-02  Jim Meyering  <jim@meyering.net>
84415
84416         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84417         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84418         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84419         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84420
84421 2005-07-02  Jim Meyering  <jim@meyering.net>
84422
84423         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84424
84425 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84428         declares only 'struct timespec;' (!).
84429
84430 2005-07-01  Jim Meyering  <jim@meyering.net>
84431
84432         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84433         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84434         * lib/save-cwd.c, tempname.c:
84435         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84436         and don't include <sys/file.h>).
84437
84438 2005-06-29  Jim Meyering  <jim@meyering.net>
84439
84440         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84441         type name.  Use the variable name instead.
84442         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84443         Likewise.
84444
84445 2005-06-28  Simon Josefsson  <jas@extundo.com>
84446
84447         * modules/check-version (Files): Add check-version.m4.
84448
84449 2005-06-28  Simon Josefsson  <jas@extundo.com>
84450
84451         * m4/check-version.m4: New file, suggested by Jim Meyering
84452         <jim@meyering.net>.
84453
84454 2005-06-28  Simon Josefsson  <jas@extundo.com>
84455
84456         * lib/check-version.h, lib/check-version.c: New files.
84457
84458 2005-06-28  Simon Josefsson  <jas@extundo.com>
84459
84460         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84461         collision with global variable.  Better indentation.  Don't
84462         increment buffer pointer beyond buffer end.  Based on comments
84463         from Paul Eggert <eggert@cs.ucla.edu>.
84464
84465         * lib/base64.h: Indent.
84466
84467 2005-06-28  Simon Josefsson  <jas@extundo.com>
84468
84469         * doc/gnulib.texi (Library version handling): New section.
84470
84471 2005-06-28  Jim Meyering  <jim@meyering.net>
84472
84473         * check-module (find_included_lib_files): Hard-code another
84474         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84475         but modules/fts-lgpl (correctly) does not list those files.
84476
84477         * modules/canonicalize (Files): Add lib/pathmax.h.
84478
84479 2005-06-25  Simon Josefsson  <jas@extundo.com>
84480
84481         * modules/check-version: New file.
84482
84483 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84486         initializer of struct addrinfo, as an indication that we don't
84487         care how many members the structure has.
84488
84489 2005-06-24  Derek Price  <derek@ximbiot.com>
84490         and Bruno Haible  <bruno@clisp.org>
84491
84492         Remove stat module & update lstat.
84493         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84494         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84495         * m4/stat.m4: Remove this file.
84496
84497 2005-06-24  Derek Price  <derek@ximbiot.com>
84498         and Bruno Haible  <bruno@clisp.org>
84499
84500         Remove stat module & update lstat.
84501         * lib/stat.c: Remove this file...
84502         (slash_aware_lstat): ...moving this content and its support...
84503         * lib/lstat.c (rpl_lstat): ...into here.
84504         * lib/lstat.h: New file.
84505
84506 2005-06-24  Derek Price  <derek@ximbiot.com>
84507         and Bruno Haible  <bruno@clisp.org>
84508
84509         Remove stat module & update lstat.
84510         * config/srclist.txt (libc sources): Remove stat.
84511
84512 2005-06-24  Derek Price  <derek@ximbiot.com>
84513         and Bruno Haible  <bruno@clisp.org>
84514
84515         Remove stat module & update lstat.
84516         * MODULES.html.sh (stat): Remove.
84517         * MODULES.html: Regenerated.
84518         * modules/lstat (Description): Correct function name.
84519         (Files): Add "lstat.h".
84520         (Depends-on): Remove stat, add xalloc, stat-macros.
84521         * modules/stat: Remove this file.
84522         (Include): Add "lstat.h", remove <sys/stat.h>.
84523
84524 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84525
84526         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84527         (ranged_convert): Don't save conversion in a temporary struct.
84528         This causes a warning with GCC 4.0.0, and anyway in the typical
84529         case it's not worth the extra 100 bytes or so of code.
84530         (ranged_convert, __mktime_internal): When calling a function via a
84531         pointer P, use P () rather than (*P) (), as we now assume C89 or
84532         better.
84533
84534 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84535
84536         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84537         "who -r" failed to give output.  Problem reported by Tim Waugh.
84538
84539         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84540         (xcalloc): Use it to avoid needless tests.
84541         Problem reported by Jim Meyering.
84542
84543 2005-06-20  Derek Price  <derek@ximbiot.com>
84544
84545         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84546         unnecessary for Autoconfs > 2.59c.
84547
84548 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84549
84550         * lib/argp.h (__option_is_short): Check upper limit of
84551         __key. Isprint() requires its argument to have the value
84552         of an unsigned char or EOF.
84553
84554 2005-06-16  Jim Meyering  <jim@meyering.net>
84555
84556         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84557         when either N or S is zero.
84558
84559 2005-06-16  Derek Price  <derek@ximbiot.com>
84560
84561         * m4/bison.m4: Declare YACC & YFLAGS precious.
84562
84563 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84566         multibyte string or pattern, fall back on unibyte matching.
84567         Problem reported by James Youngman.
84568
84569 2005-06-08  Bruno Haible  <bruno@clisp.org>
84570
84571         * modules/csharpcomp: New file.
84572         * MODULES.html.sh (C#): Add csharpcomp.
84573
84574 2005-06-08  Bruno Haible  <bruno@clisp.org>
84575
84576         * m4/csharpcomp.m4: New file, from GNU gettext.
84577
84578 2005-06-08  Bruno Haible  <bruno@clisp.org>
84579
84580         * lib/csharpcomp.h: New file, from GNU gettext.
84581         * lib/csharpcomp.c: New file, from GNU gettext.
84582         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84583
84584 2005-06-08  Bruno Haible  <bruno@clisp.org>
84585
84586         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84587         warning on mingw.
84588
84589 2005-06-07  Derek Price  <derek@ximbiot.com>
84590
84591         Sync from CVS.
84592         * lib/glob_.h: Indent nested #ifdef.
84593
84594 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         Sync from coreutils.
84597         Use "file name" when talking about file names, instead of "filename"
84598         or "path", as per the GNU coding standards.
84599         * lib/mkdir-p.c: Renamed from makepath.c.
84600         (make_dir_parents): Renamed from make_path.  All callers changed.
84601         * lib/mkdir-p.h: Likewise.  All includers changed.
84602         * lib/filenamecat.c: Renamed from path-concat.c.
84603         (file_name_concat): Renamed from path_concat.  All callers changed.
84604         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84605         * lib/filenamecat.h: Likewise.  All includers changed.
84606         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84607         in comments or local variable names.
84608         * lib/basename.c: Likewise.
84609         * lib/canonicalize.c, canonicalize.h: Likewise.
84610         * lib/dirname.c, dirname.h: Likewise.
84611         * lib/euidaccess.c: Likewise.
84612         * lib/exclude.c: Likewise
84613         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84614         * lib/fsusage.c, fsuage.h: Likewise.
84615         * lib/fts.c, fts_.h: Likewise.
84616         * lib/getcwd.c: Likewise.
84617         * lib/getloadavg.c: Likewise.
84618         * lib/mkstemp.c: Likewise.
84619         * lib/mountlist.c, mountlist.h: Likewise.
84620         * lib/openat.c, openat.h: Likewise.
84621         * lib/readlink-stub.c: Likewise.
84622         * lib/readutmp.c, readutmp.h: Likewise.
84623         * lib/rename.c: Likewise.
84624         * lib/rmdir.c: Likewise.
84625         * lib/same.c: Likewise.
84626         * lib/savedir.c: Likewise.
84627         * lib/stripslash.c: Likewise.
84628         * lib/tempname.c: Likewise.
84629         * lib/xreadlink.c: Likewise.
84630         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84631         All uses changed.
84632         * lib/exclude.h: Likewise.
84633
84634         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84635         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84636         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84637         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84638         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84639         files have been getting away with it for years (MORE/BSD 4.3
84640         is extinct now).
84641         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84642         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84643
84644         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84645         Define to 256, not 255, as per modern POSIX.
84646
84647 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         Sync from coreutils.
84650         Use "file name" when talking about file names, instead of "filename"
84651         or "path", as per the GNU coding standards.
84652         * MODULES.html.sh: mkdir-p renamed from makepath.
84653         filenamecat renamed from path-concat.
84654         * modules/filenamecat: Renamed from modules/path-concat.
84655         (Files): filenamecat.h and filenamecat.c renamed from
84656         path-concat.h and path-concat.c.
84657         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84658         (Include): filenamecat.h, not path-concat.h.
84659         * modules/mkdir-p: Renamed from modules/makepath.
84660         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84661         makepath.c.
84662         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84663         (Include): mkdir-p.h, not makepath.h.
84664
84665 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84666
84667         Sync from coreutils.
84668         * m4/mkdir-p.m4: Renamed from makepath.m4.
84669         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84670         Rename files from makepath.c to mkdir-p.c, and from
84671         makepath.h to mkdir-p.h.
84672         * m4/filenamecat.m4: Renamed from path-concat.m4.
84673         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84674         Rename files from path-concat.c to filenamecat.c,
84675         and from path-concat.h to filenamecat.h.
84676         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84677         "file name" in local variables or comments.
84678         * m4/rename.m4: Likewise.
84679
84680 2005-06-01  Bruno Haible  <bruno@clisp.org>
84681
84682         * modules/csharpexec: New file.
84683         * MODULES.html.sh (C#): New section.
84684
84685 2005-06-01  Bruno Haible  <bruno@clisp.org>
84686
84687         * m4/csharp.m4: New file, from GNU gettext.
84688         * m4/csharpexec.m4: New file, from GNU gettext.
84689
84690 2005-06-01  Bruno Haible  <bruno@clisp.org>
84691
84692         * lib/csharpexec.h: New file, from GNU gettext.
84693         * lib/csharpexec.c: New file, from GNU gettext.
84694         * lib/csharpexec.sh.in: New file, from GNU gettext.
84695
84696 2005-05-31  Derek Price  <derek@ximbiot.com>
84697             Paul Eggert  <eggert@cs.ucla.edu>
84698
84699         Sync from cvs.
84700         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84701
84702 2005-05-31  Derek Price  <derek@ximbiot.com>
84703             Paul Eggert  <eggert@cs.ucla.edu>
84704
84705         Sync from cvs.
84706         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84707
84708 2005-05-29  Derek Price  <derek@ximbiot.com>
84709
84710         * config/srclist.txt (glob_.h, glob.c): Add these files.
84711
84712 2005-05-29  Derek Price  <derek@ximbiot.com>
84713
84714         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84715         * modules/glob: New file.
84716         * modules/getlogin_r: Add link to POSIX spec in description.
84717
84718 2005-05-29  Derek Price  <derek@ximbiot.com>
84719             Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * m4/glob.m4: New file.
84722
84723 2005-05-29  Derek Price  <derek@ximbiot.com>
84724             Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * lib/glob_.h, lib/glob.c: New files.
84727
84728 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84729
84730         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84731         * modules/fts-lgpl (Depends-on): Remove gettext.
84732
84733 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84734
84735         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84736         and don't require gt_INTTYPES_PRI.
84737
84738 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84739
84740         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84741
84742         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84743         the configuration hassle isn't worth it.
84744         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84745         (LONGEST_MODIFIER, PRIuMAX): Remove.
84746
84747 2005-05-27  Bruno Haible  <bruno@clisp.org>
84748
84749         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84750
84751 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84752
84753         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84754         _POSIX_PTHREAD_SEMANTICS for Solaris.
84755
84756 2005-05-25  Derek Price  <derek@ximbiot.com>
84757
84758         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84759
84760 2005-05-25  Derek Price  <derek@ximbiot.com>
84761             Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84764         * lib/getlogin_r.c, getlogin_r.h: New files.
84765
84766 2005-05-25  Bruno Haible  <bruno@clisp.org>
84767             Derek Price  <derek@ximbiot.com>
84768
84769         * lib/getlogin_r.h: Simplify API documentation.
84770
84771 2005-05-23  Derek Price  <derek@ximbiot.com>
84772
84773         * modules/minmax (Files): Add m4/minmax.m4.
84774         (configure.ac): Add gl_MINMAX.
84775
84776 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84777
84778         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84779         so that unistd-safer.h (GPL'ed code) need not be included.
84780
84781 2005-05-22  Bruno Haible  <bruno@clisp.org>
84782
84783         * m4/minmax.m4: New file.
84784         Based on a patch by Derek Price <derek@ximbiot.com>.
84785
84786 2005-05-22  Bruno Haible  <bruno@clisp.org>
84787
84788         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84789         (INT64_MIN): Fix definition.
84790         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84791
84792         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84793         NEED_SIGNED_INT_TYPES.
84794
84795         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84796         HAVE_SYSTEM_INTTYPES.
84797
84798 2005-05-22  Bruno Haible  <bruno@clisp.org>
84799
84800         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84801         Also include <sys/param.h> if it defines MIN, MAX.
84802         Based on a patch by Derek Price <derek@ximbiot.com>.
84803
84804 2005-05-21  Jim Meyering  <jim@meyering.net>
84805
84806         * modules/fts (Files): Add m4/inttypes-pri.m4.
84807         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84808
84809 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84810
84811         New fts module.
84812         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84813         (setup_dir, free_dir): New functions.
84814         (enter_dir, leave_dir): Define trivial
84815         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84816         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84817         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84818         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84819         Move to fts-cycle.c.
84820         (fts_open): Use setup_dir.
84821         (fts_close): Use free_dir.
84822         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84823         This adds a label and some gotos, but the alternatives were messier.
84824         Check for memory allocation failure when entering a dir.
84825         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84826         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84827         (FTS): New member fts_cycle, that is a union that contains the
84828         old active_dir_ht and cycle_state.  All uses changed to mention
84829         fts_cycle.ht and fts_cycle.state.
84830         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84831         fts.c, with the following changes:
84832         (setup_dir, free_dir): New functions.
84833         (enter_dir): Now returns bool.  Return true if successful, false
84834         if memory exhausted.  All callers changed.
84835         Do not bother partly cleaning up on
84836         memory allocation failure; that is free_dir's job.
84837         However, free ad if hash_insert fails, to avoid memory leak.
84838         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84839         fts->fts_options to see which union member to use.
84840
84841 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84842
84843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84844         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84845
84846 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84847
84848         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84849
84850 2005-05-20  Jim Meyering  <jim@meyering.net>
84851
84852         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84853         Now a macro, to pacify GCC.
84854
84855 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84856
84857         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84858         of -1.
84859
84860 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84861
84862         * lib/chown.c (rpl_chown): Return -1 on failure.
84863
84864 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84865
84866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84867         Don't check for stddef.h.
84868         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84869         don't use its results.
84870         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84871         since we include them unconditionally.  Don't require
84872         AM_STDBOOL_H, since stdbool is a prerequisite.
84873         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84874         since we assume C89 or better.
84875         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84876         as we don't use their results.
84877         Don't check for fchdir, memmove, memset, strrchr, as we use
84878         them unconditionally.
84879         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84880         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84881
84882 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84885         Include <stddef.h> unconditionally, since we assume C89 now.
84886         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84887         * lib/fts.c: Include fts_.h first, to check interface.
84888         Do not include intprops.h; no longer needed.
84889         Include cycle-check.h and hash.h, since fts_.h no longer does.
84890         Remove unnecessary casts of closedir to void.
84891         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84892         decide whether to decrement nlinks.
84893         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84894         (FTS): Use struct hash_table * instead of Hash_table, so that
84895         we no longer need to include hash.h here.
84896
84897 2005-05-18  Jim Meyering  <jim@meyering.net>
84898
84899         * modules/dirfd (License): Change to LGPL.  Most of the code
84900         is already in the public domain.
84901
84902 2005-05-18  Jim Meyering  <jim@meyering.net>
84903
84904         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84905         Reported by Yoann Vandoorselaere.
84906
84907 2005-05-17  Jim Meyering  <jim@meyering.net>
84908
84909         * m4/fts.m4: New file, from coreutils.
84910
84911 2005-05-17  Jim Meyering  <jim@meyering.net>
84912
84913         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84914
84915 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         Sync from coreutils.
84918         * m4/unlinkdir.m4: New file.
84919
84920 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         Sync from coreutils.
84923         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84924         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84925         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84926         White space changes only.
84927         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84928         special.
84929         * lib/yesno.c: Include getline.h, not ctype.h.
84930         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84931         Use getline to remove arbitrary restriction on response length.
84932
84933 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * config/srclist-update: Spell out "Street" in FSF postal
84936         mail address; this is the style the FSF seems to prefer.
84937
84938         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84939         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84940         this updates FSF postal mail address.
84941
84942         Sync from coreutils.
84943         * modules/unlinkdir: New file.
84944         * modules/yesno (Depends-on): Add getline.
84945         * MODULES.html.sh (File system functions): Add unlinkdir.
84946
84947 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84950         lib/strsep.h:
84951         Change the initial comment to refer to GPL, not LGPL.
84952         gnulib-tool will change it to LGPL as needed.
84953
84954         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84955         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84956         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84957         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84958         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84959         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84960         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84961         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84962         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84963         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84964         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84965         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84966         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84967         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84968         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84969         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84970         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84971         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84972         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84973         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84974         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84975         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84976         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84977         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84978         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84979         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84980         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84981         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84982         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84983         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84984         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84985         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84986         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84987         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84988         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84989         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84990         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84991         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84992         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84993         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84994         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84995         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84996         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84997         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84998         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84999         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85000         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85001         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85002         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85003         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85004         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85005         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85006         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85007         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85008         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85009         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85010         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85011         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85012         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85013         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85014         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85015         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85016         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85017         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85018         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85019         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85020         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85021         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85022         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85023         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85024         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85025         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85026         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85027         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85028         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85029         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85030         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85031         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85032         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85033         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85034         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85035         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85036         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85037         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85038         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85039         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85040         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85041         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85042         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85043         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85044         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85045         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85046         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85047         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85048         lib/yesno.c, lib/yesno.h:
85049         Update FSF postal mail address.
85050
85051 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85052
85053         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85054         tests/test-memmem.c, tests/test-stpncpy.c:
85055         Update FSF postal mail address.
85056
85057 2005-05-13  Bruno Haible  <bruno@clisp.org>
85058
85059         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85060         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85061         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85062         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85063         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85064         Add support for 64-bit integers in the MSVC compiler.
85065
85066 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85067
85068         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85069
85070 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85071
85072         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85073
85074 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         * doc/getdate.texi (General date syntax): Don't say that date
85077         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85078         Problem reported by Nic Ferrier.
85079
85080 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85081
85082         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85083         specified in ai_socktype. Fix invalid ai_protocol
85084         check. ai_protocol is usually set to 0 or depending on
85085         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85086         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85087         ai_socktype / ai_protocol in the returned addrinfo structure.
85088
85089 2005-05-10  Simon Josefsson  <jas@extundo.com>
85090
85091         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85092         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85093
85094 2005-05-10  Karl Berry  <karl@gnu.org>
85095
85096         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85097         (from http://www.gnu.org/licenses).
85098         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85099         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85100         fdl.texi suffices.
85101
85102 2005-05-10  Karl Berry  <karl@gnu.org>
85103
85104         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85105         (COPYING.DOC): remove.
85106
85107         * config/srclist-update: new FSF address.
85108
85109 2005-05-10  Derek Price  <derek@ximbiot.com>
85110
85111         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85112         possible.
85113
85114 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85115             Bruno Haible  <bruno@clisp.org>
85116
85117         * modules/inet_ntop: New file.
85118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85119         inet_ntop.
85120
85121 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85122             Bruno Haible  <bruno@clisp.org>
85123
85124         * m4/inet_ntop.m4: New file.
85125
85126 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85127             Bruno Haible  <bruno@clisp.org>
85128
85129         * lib/inet_ntop.h: New file.
85130         * lib/inet_ntop.c: New file, from glibc with modifications.
85131
85132 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * modules/time_r (License): Change to LGPL.
85135         * modules/extensions (License): Change to LGPL.  Actually,
85136         the license is more permissive than that, but currently gnulib-tool
85137         doesn't know how to handle more-permissive licenses.
85138
85139         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85140         Problem reported by Dave Love.
85141
85142 2005-05-08  Jim Meyering  <jim@meyering.net>
85143
85144         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85145         blank.
85146
85147 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85148
85149         * modules/argmatch (Depends-on): Add stdbool.
85150         * modules/backupfile (Depends-on): Likewise.
85151         * modules/chdir-long (Depends-on): Likewise.
85152         * modules/closeout (Depends-on): Likewise.
85153         * modules/cycle-check (Depends-on): Likewise.
85154         * modules/dirname (Depends-on): Likewise.
85155         * modules/fnmatch (Depends-on): Likewise.
85156         * modules/fsusage (Depends-on): Likewise.
85157         * modules/fwriteerror (Depends-on): Likewise.
85158         * modules/getcwd (Depends-on): Likewise.
85159         * modules/getloadavg (Depends-on): Likewise.
85160         * modules/hard-locale (Depends-on): Likewise.
85161         * modules/makepath (Depends-on): Likewise.
85162         * modules/mountlist (Depends-on): Likewise.
85163         * modules/nanosleep (Depends-on): Likewise.
85164         * modules/posixtm (Depends-on): Likewise.
85165         * modules/quotearg (Depends-on): Likewise.
85166         * modules/readtokens (Depends-on): Likewise.
85167         * modules/readtokens0 (Depends-on): Likewise.
85168         * modules/readutmp (Depends-on): Likewise.
85169         * modules/save-cwd (Depends-on): Likewise.
85170         * modules/strftime (Depends-on): Likewise.
85171         * modules/userspec (Depends-on): Likewise.
85172         * modules/utimecmp (Depends-on): Likewise.
85173         * modules/xgetcwd (Depends-on): Likewise.
85174         * modules/xnanosleep (Depends-on): Likewise.
85175         * modules/xstrtod (Depends-on): Likewise.
85176         * modules/yesno (Depends-on): Likewise.
85177
85178 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85181         needless checks.
85182
85183 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         Merge from coreutils.  Among other things,
85186         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85187         * lib/fd-safer.c: New file.
85188         * lib/fcntl-safer.h, open-safer.c: Remove.
85189         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85190         * lib/dup-safer.c: Include unistd-safer.h first.
85191         Don't include errno.h.
85192         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85193         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85194         * lib/file-type.c: Rely on file-type.h change.
85195         * lib/getloadavg.c: Include unistd-safer.h.
85196         (getloadavg): Use safer open.
85197         * lib/getusershell.c: Include "stdio-safer.h".
85198         (getusershell): Use safer fopen.
85199         * lib/long-options.c (long_options): Use NULL rather than 0.
85200         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85201         'free'.
85202         * lib/modechange.c: Likewise.
85203         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85204         (MODE_DONE): New constant.
85205         (struct mode_change): Remove 'next' member.
85206         (make_node_op_equals): New function; like the old one of the
85207         same name, except it allocates an array.
85208         (mode_compile, mode_create_from_ref): Use it.
85209         (mode_compile): Allocate result as an array, not a linked list.
85210         Parse octal string ourself, so that we catch mistakes like "+0".
85211         (mode_adjust): Arg is an array, not a linked list.
85212         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85213         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85214         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85215         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85216         Remove.  This is now stat-macros.h's job.
85217         (talloc): Remove.  All callers replaced by xalloc, so that
85218         our invokers don't have to worry about reporting memory failures.
85219         (make_node_op_equals): Remove.
85220         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85221         New constants.
85222         (struct mode_change): Moved here from modechange.h.
85223         (mode_append_entry): Remove.
85224         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85225         apps to have incorrect behavior.  Use simpler algorithm for head
85226         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85227         Detect more invalid usages rather than having somewhat-random behavior.
85228         Don't insert an "a=" action, as that leads to incorrect behavior.
85229         (mode_compile, mode_create_from_ref): Return NULL on error instead
85230         of an enum, since now there's only one way to have an error.  All
85231         callers changed.
85232         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85233         at the correct time.  Simplify calculation of "+u" and its ilk.
85234         Don't mishandle "+X".
85235         (mode_free): Remove "register" and localize decls.
85236         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85237         (struct mode_change): Move to modechange.c; callers don't
85238         need to see this stuff.
85239         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85240         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85241         (mode_change, mode_adjust): Reflect the new signatures noted above.
85242         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85243         that might redefine system include files.
85244         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85245         (my_usleep): Use NULL rather than (void *) 0.
85246         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85247         Use siginterrupt to specify that system calls should be interrupted.
85248         (rpl_nanosleep): Move initialization of suspended closer to call of
85249         my_usleep.
85250         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85251         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85252         (desirable_utmp_entry): New function.
85253         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85254         using x2nrealloc, to simplify logic.
85255         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85256         size calculation.  Do not assume utmp file is a regular file.
85257         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85258         (READ_UTMP_CHECK_PIDS): New constant.
85259         * lib/save-cwd.c: Include unistd-safer.h.
85260         (save_cwd): Use fd_safer.
85261         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85262         [!_LIBC] Include "stat-macros.h" instead.
85263         * lib/unistd-safer.h (fd_safer): New decl.
85264
85265 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * modules/getloadavg (Depends-on): Add unistd-safer.
85268         * modules/getusershell (Depends-on): Add stdio-safer.
85269         * modules/lstat (Depends-on): Remove xalloc.
85270         * modules/mkstemp (Depends-on): Add stat-macros.
85271         * modules/modechange (Depends-on): Remove xstrtol.
85272         Add stat-macros, xalloc.
85273         * modules/save-cwd (Depends-on): Add unistd-safer.
85274         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85275         * modules/unistd-safer (Files): Add lib/fd-safer.c
85276         (Makefile.am): Remove lib_SOURCES.
85277
85278         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85279         Remove fcntl-safer; unistd-safer supersedes it.
85280
85281 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85284         AC_HEADER_STAT.
85285         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85286         (gl_PREREQ_CHOWN): Remove.
85287         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85288         it.  Don't require AC_HEADER_STAT.
85289         (gl_PREREQ_LSTAT): Remove.
85290         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85291         Don't require AC_HEADER_STAT.
85292         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85293         (gl_PREREQ_RMDIR): Remove.
85294         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85295         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85296         the stat-macros module a prerequisite.
85297         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85298         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85299         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85300         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85301         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85302         variable names.
85303         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85304         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85305         variable prefixes.
85306         * m4/fcntl-safer.m4: Remove.
85307         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85308         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85309         Invoke gl_PREREQ_FD_SAFER.
85310         (gl_PREREQ_FD_SAFER): New macro.
85311         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85312         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85313         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85314         Remove duplicate call to AC_LIBOBJ(readutmp).
85315         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85316
85317         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85318         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85319
85320 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * MODULES.html.sh (Misc): Add byteswap.
85323
85324 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85325
85326         * modules/getcwd (Depends-on): Add extensions.
85327         * modules/openat (Depends-on): Likewise.
85328
85329 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85330
85331         * modules/byteswap: New file.
85332
85333 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85334
85335         * m4/byteswap.m4: New file.
85336
85337 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85338
85339         * lib/byteswap_.h: New file.
85340
85341 2005-04-25  Karl Berry  <karl@gnu.org>
85342
85343         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85344
85345 2005-04-25  Albert Chin  <china@thewrittenword.com>
85346
85347         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85348         Toolkit C bug.
85349
85350 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85351
85352         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85353         (func_ln_if_changed): Remove forcibly for no error message
85354         in case file does not exist.
85355
85356 2005-04-19  Simon Josefsson  <jas@extundo.com>
85357
85358         * gnulib-tool (Options): Make --symlink mean --symbolic.
85359
85360 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85361
85362         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85363
85364 2005-04-16  Simon Josefsson  <jas@extundo.com>
85365
85366         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85367
85368 2005-04-15  Simon Josefsson  <jas@extundo.com>
85369
85370         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85371
85372 2005-04-15  Simon Josefsson  <jas@extundo.com>
85373
85374         * gnulib-tool: Rename --symlink to --symbolic.
85375
85376 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85377
85378         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85379         symbolic links to files instead of copying/moving.  Add --aux-dir,
85380         specifying directory relative --dir where auxiliary build tools
85381         are placed.
85382
85383 2005-04-14  Bruno Haible  <bruno@clisp.org>
85384
85385         * modules/allocsa (License): Change to LGPL.
85386         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85387
85388 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85391         that "UTC +1 second" continues to work.  Problem reported
85392         by Dmitry V. Levin.
85393         (relunit_snumber): New rule.
85394         (relunit): Use it.
85395
85396 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         * lib/getdate.y (universal_time_zone_table): New constant.
85399         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85400         universal_time_zone_table.
85401         (lookup_zone): Prefer universal_time_zone_table to
85402         local_time_zone_table, so that "GMT" time stamps are allowed in
85403         London during the summer.  Problem reported by Ian Abbott.
85404
85405 2005-04-12  Jim Meyering  <jim@meyering.net>
85406
85407         * lib/human.c (humblock): Set *options even when returning due to
85408         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85409         warning from gcc-4.
85410
85411 2005-04-09  Jim Meyering  <jim@meyering.net>
85412
85413         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85414         -Wuninitialized: initialize tm0.tm_year.
85415
85416 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85419         count, since there's no maximum.  All uses changed.
85420         Add member dsts_seen.
85421         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85422         not being INT_MAX.
85423         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85424         Use pc_rels_seen to decide whether a date is absolute.
85425
85426         * lib/getdate.y (number): Don't overwrite year.
85427         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85428         check.
85429
85430 2005-04-02  Simon Josefsson  <jas@extundo.com>
85431
85432         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85433         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85434
85435 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85436
85437         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85438         where no absolute path name can be longer than PATH_MAX.
85439
85440 2005-03-27  Jim Meyering  <jim@meyering.net>
85441
85442         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85443
85444 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85445
85446         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85447         "one's complement" -> "ones' complement" in comment, as per Knuth.
85448         "value of type" -> "type or expression" in comment.
85449         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85450
85451 2005-03-26  Jim Meyering  <jim@meyering.net>
85452
85453         Comment nits.
85454         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85455         Correct typos: s/or/of/.
85456
85457 2005-03-26  Jim Meyering  <jim@meyering.net>
85458
85459         * modules/check-include-files: Move to ../ and rename to...
85460         * check-module: ...this.
85461
85462 2005-03-25  Jim Meyering  <jim@meyering.net>
85463
85464         * modules/xvasprintf (Files): Add xalloc.h.
85465
85466 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85467
85468         * modules/gettext (Files): config/config.rpath ->
85469         build-aux/config.rpath
85470         * modules/iconv (Files): Likewise.
85471         Problem reported by Oskar Liljeblad.
85472
85473 2005-03-23  Jim Meyering  <jim@meyering.net>
85474
85475         * modules/check-include-files: New script to check for
85476         missing dependencies, multiple includes, etc.
85477
85478         * modules/c-strtold (Depends-on): Add xalloc.
85479         * modules/c-strtod (Depends-on): Add xalloc.
85480         * modules/hash (Depends-on): Add xalloc.
85481         (Files): Remove lib/xalloc.h.
85482
85483         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85484         * modules/userspec (Files): Add lib/inttostr.h.
85485
85486 2005-03-23  Jim Meyering  <jim@meyering.net>
85487
85488         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85489
85490 2005-03-22  Jim Meyering  <jim@meyering.net>
85491
85492         * modules/stat-macros: New module.
85493         * modules/canonicalize, modules/euidaccess, modules/file-type,
85494         * modules/filemode, modules/lchown, modules/makepath,
85495         * modules/rmdir, modules/stat: Depend on new stat-macros module
85496         rather than listing lib/stat-macros.h manually.
85497         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85498
85499 2005-03-22  Jim Meyering  <jim@meyering.net>
85500
85501         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85502
85503 2005-03-22  Bruno Haible  <bruno@clisp.org>
85504
85505         * config/srclist.txt: Replace target directory 'config' with
85506         'build-aux'.
85507         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85508         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85509         ../build-aux/.
85510
85511 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * modules/chdir-long (Depends-on): Add mempcpy.
85514
85515         * modules/acl, modules/backupfile, modules/c-strtod,
85516         modules/c-strtold, modules/canon-host, modules/canonicalize,
85517         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85518         modules/exclude, modules/exitfail, modules/file-type,
85519         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85520         modules/getdate, modules/getline, modules/getpagesize,
85521         modules/getpass, modules/getugroups, modules/group-member,
85522         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85523         modules/inttostr, modules/long-options, modules/makepath,
85524         modules/md5, modules/memcasecmp, modules/memcoll,
85525         modules/modechange, modules/mountlist, modules/path-concat,
85526         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85527         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85528         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85529         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85530         modules/strftime, modules/strndup, modules/strverscmp,
85531         modules/timespec, modules/unlocked-io, modules/userspec,
85532         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85533         modules/yesno:
85534         Remove lib_SOURCES line from Makefile.am section, as this is now
85535         done automatically by the corresponding Autoconf macro.
85536
85537 2005-03-21  Jim Meyering  <jim@meyering.net>
85538
85539         Changes imported from coreutils.
85540
85541         * lib/cycle-check.c: Don't include xalloc.h.
85542
85543         * lib/path-concat.c: Don't include assert.h.
85544         (path_concat): Remove assertion that would have triggered
85545         for ABASE starting with more than one slash.
85546         Reported by Andreas Schwab.
85547
85548         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85549         properly when ABASE is an absolute file name.
85550         Correct the description of this function.
85551         Include <assert.h>.
85552         Add an assertion and a test driver.
85553         This fixes a bug introduced on 2004-07-02.
85554         Andreas Schwab reported the resulting failure of cp --parents:
85555         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85556
85557 2005-03-21  Jim Meyering  <jim@meyering.net>
85558
85559         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85561
85562 2005-03-21  Jim Meyering  <jim@meyering.net>
85563         and  Paul Eggert  <eggert@cs.ucla.edu>
85564
85565         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85566         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85567         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85568         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85569         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85570         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85571         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85572         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85573         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85574         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85575         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85576         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85577         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85578         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85579         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85580         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85581         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85582         for these modules.
85583
85584 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85585
85586         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85587         (which shouldn't happen), generate nothing instead of returning 0
85588         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85589
85590 2005-03-16  Bruno Haible  <bruno@clisp.org>
85591
85592         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85593         HAVE_LONGLONG_64BIT.
85594
85595 2005-03-16  Bruno Haible  <bruno@clisp.org>
85596
85597         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85598         HAVE_LONGLONG_64BIT.
85599
85600 2005-03-16  Bruno Haible  <bruno@clisp.org>
85601
85602         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85603         HAVE_LONGLONG_64BIT.
85604
85605 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85606
85607         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85608         reliably distinguish strftime failure from empty output on POSIX
85609         hosts.
85610
85611 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85612
85613         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85614         (iconv_string): Don't guess a size-zero buffer, as that might cause
85615         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85616         result would be 'too large', where 'too large' is (heuristically)
85617         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85618         overflow concerns.  This will prevent some unwanted malloc failures
85619         when the inputs are very large.
85620
85621 2005-03-15  Karl Berry  <karl@gnu.org>
85622
85623         * config/srclist.txt (config.rpath): from gettext.
85624         * config/config.rpath: update.
85625
85626 2005-03-15  Bruno Haible  <bruno@clisp.org>
85627
85628         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85629         to 'negate'.
85630
85631         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85632         variable.
85633
85634         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85635         results.
85636
85637 2005-03-14  Simon Josefsson  <jas@extundo.com>
85638
85639         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85640         <fx@gnu.org>.
85641
85642 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85645         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85646         intprops.h.
85647         * lib/strtol.c: Likewise.
85648
85649 2005-03-14  Jim Meyering  <jim@meyering.net>
85650
85651         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85652         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85653         to be nonzero so that we (and caller) can detect the difference
85654         between a valid zero-length expansion and an error return, even
85655         when the underlying strftime fails before writing anything into
85656         that location.
85657
85658 2005-03-14  Bruno Haible  <bruno@clisp.org>
85659
85660         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85661         Update from GNU gettext 0.14.3.
85662
85663 2005-03-10  Jim Meyering  <jim@meyering.net>
85664
85665         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85666
85667 2005-03-10  Jim Meyering  <jim@meyering.net>
85668
85669         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85670         so that this module works on systems without fchdir.
85671
85672 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         Factor int-properties macros into a single file, except for
85675         glibc-related files.
85676         * lib/intprops.h: New file.
85677         * lib/getloadavg.c: Include it instead of limits.h.
85678         (INT_STRLEN_BOUND): Remove.
85679         * lib/human.c: Include intprops.h.
85680         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85681         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85682         302/1000.
85683         * lib/inttostr.h: Include intprops.h instead of limits.h.
85684         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85685         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85686         for consistency with intprops.h.
85687         (time_t_is_integer, twos_complement_arithmetic): Use them.
85688         * lib/sig2str.h: Include <signal.h>, intprops.h.
85689         (INT_STRLEN_BOUND): Remove.
85690         * lib/strftime.c (TYPE_SIGNED): Remove.
85691         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85692         * lib/strtol.c: Adjust comments to match intprops.h.
85693         * lib/userspec.c: Include intprops.h.
85694         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85695         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85696         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85697         instead of rolling our own expressions.
85698         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85699
85700         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85701         instead of int.
85702         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85703         the right thing even if adding 1900 would overflow.  Similarly
85704         for tm_mon + 1 and tm_yday + 1.
85705         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85706         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85707         (DO_SIGNED_NUMBER): New macro.
85708         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85709
85710 2005-03-07  Bruno Haible  <bruno@clisp.org>
85711
85712         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85713
85714 2005-03-07  Bruno Haible  <bruno@clisp.org>
85715
85716         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85717
85718 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85719
85720         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85721         (func_import): Only replace files via --import when they have actually
85722         changed.
85723
85724 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85725
85726         * m4/mmap-anon.m4: New file.
85727         * m4/pagealign_alloc.m4: New file.
85728
85729 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85730             Bruno Haible  <bruno@clisp.org>
85731
85732         * modules/pagealign_alloc: New file.
85733         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85734
85735 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85736             Bruno Haible  <bruno@clisp.org>
85737
85738         * lib/pagealign_alloc.h: New file.
85739         * lib/pagealign_alloc.c: New file.
85740
85741 2005-03-03  Bruno Haible  <bruno@clisp.org>
85742
85743         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85744         Use an all-permissive copyright notice, recommended by RMS.
85745
85746 2005-03-02  Bruno Haible  <bruno@clisp.org>
85747
85748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85749         of AIX, the replacement has to be done only after <string.h> is
85750         included, therefore not in config.h. stpncpy.h does the replacement,
85751         and stpncpy.c uses it.
85752
85753 2005-03-02  Bruno Haible  <bruno@clisp.org>
85754
85755         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85756         stpncpy.c uses it.
85757
85758 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85761         The workaround isn't strictly needed for POSIX conformance, and
85762         it's too much of a pain to configure and maintain.  We'll ask
85763         people to fix their kernels instead.
85764         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85765         (NANOSLEEP_BUG_WORKAROUND): Remove.
85766         (xnanosleep): Remove the workaround.
85767
85768 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85771         Reported by Derek Price.
85772         (Include): Add "timespec.h".
85773
85774         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85775
85776 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85777
85778         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85779         to detect nanosleep bug.
85780
85781 2005-03-01  Bruno Haible  <bruno@clisp.org>
85782
85783         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85784
85785 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85786
85787         * modules/gethrxtime: New file.
85788         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85789         (Depends-on): Add gethrxtime.
85790         (configure.ac): Add gl_XNANOSLEEP.
85791         (Makefile.am): Remove lib_SOURCES line.
85792
85793 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85794
85795         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85796         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85797
85798 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85799
85800         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85801         * lib/timespec.h (gettime): Return void, since it always
85802         succeeds now.  All uses changed.
85803         * lib/gettime.c (gettime): Likewise.
85804         [HAVE_NANOTIME]: Prefer nanotime.
85805         Assume gettimeofday succeeds, as POSIX requires.
85806         Assime time () succeeds, since other code already does.
85807         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85808         (timespec_subtract): Remove.
85809         (NANOSLEEP_BUG_WORKAROUND): New constant.
85810         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85811         things considerably.  Use it only on GNU/Linux hosts, since the
85812         workaround shouldn't be needed elsewhere.
85813
85814 2005-02-24  Bruno Haible  <bruno@clisp.org>
85815
85816         * modules/gettext (Files): Add m4/glibc2.m4.
85817
85818 2005-02-24  Bruno Haible  <bruno@clisp.org>
85819
85820         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85821         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85822         * m4/progtest.m4:
85823         Update from GNU gettext 0.14.2.
85824         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85825
85826 2005-02-24  Bruno Haible  <bruno@clisp.org>
85827
85828         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85829         * lib/config.charset: Update from GNU gettext 0.14.2.
85830
85831 2005-02-24  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/gettext.h: Update from GNU gettext 0.14.2.
85834
85835 2005-02-23  Simon Josefsson  <jas@extundo.com>
85836
85837         * m4/iconvme.m4: New file.
85838
85839 2005-02-23  Jim Meyering  <jim@meyering.net>
85840
85841         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85842         change.
85843         Thanks to Bruno Haible for catching it.
85844
85845 2005-02-22  Simon Josefsson  <jas@extundo.com>
85846
85847         * modules/iconvme: New file.
85848
85849         * MODULES.html.sh: Add iconvme.
85850
85851 2005-02-22  Simon Josefsson  <jas@extundo.com>
85852
85853         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85854
85855 2005-02-22  Simon Josefsson  <jas@extundo.com>
85856
85857         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85858
85859 2005-02-22  Jim Meyering  <jim@meyering.net>
85860
85861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85862         s/ifndef/ifdef/.
85863
85864 2005-02-20  Neil Conway  <neilc@samurai.com>
85865
85866         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85867         returned by OSX/Darwin if the specified buffer is not large
85868         enough for the hostname.
85869
85870 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85871
85872         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85873         pass it to _help, otherwise the latter coredumps trying to
85874         dereference state.root_argp.
85875
85876 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * modules/chdir-long (Depends-on): Add memrchr.
85879         * modules/memrchr (Files): Add lib/memrchr.h.
85880         (Include): "memrchr.h".
85881
85882 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85883
85884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85885
85886 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * lib/memrchr.h: New file.
85889         * lib/chdir-long.c: Include it.
85890         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85891         Don't bother including stddef.h.
85892
85893 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85894
85895         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85896         inclusion.
85897         Include <sys/types.h>, for dev_t.
85898         (ME_DUMMY, ME_REMOTE): Move from here....
85899         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85900         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85901         Dmitry V. Levin.
85902         Include mountlist.h first, to test the interface.
85903
85904 2005-01-29  Bruno Haible  <bruno@clisp.org>
85905
85906         * lib/progname.c (program_name): Initialize.
85907         Needed when linking statically on MacOS X.
85908
85909 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85910
85911         Sync from coreutils.
85912         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85913         (Depends-on): Add c-strtod.
85914         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85915
85916 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         Sync from coreutils.
85919         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85920
85921         Remove files that are specific to coreutils.
85922         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85923
85924 2005-01-28  Bruno Haible  <bruno@clisp.org>
85925
85926         * modules/javacomp: New file.
85927         * MODULES.html.sh (Java): Add javacomp.
85928
85929 2005-01-28  Bruno Haible  <bruno@clisp.org>
85930
85931         * m4/javacomp.m4: New file, from GNU gettext.
85932
85933 2005-01-28  Bruno Haible  <bruno@clisp.org>
85934
85935         * lib/javacomp.sh.in: New file, from GNU gettext.
85936         * lib/javacomp.h: New file, from GNU gettext.
85937         * lib/javacomp.c: New file, from GNU gettext.
85938
85939 2005-01-26  Simon Josefsson  <jas@extundo.com>
85940
85941         * lib/gai_strerror.c: Use GPL in header.
85942
85943 2005-01-26  Bruno Haible  <bruno@clisp.org>
85944
85945         * modules/javaexec: New file.
85946         * MODULES.html.sh (Java): Add javaexec.
85947
85948 2005-01-26  Bruno Haible  <bruno@clisp.org>
85949
85950         * m4/javaexec.m4: New file, from GNU gettext.
85951
85952 2005-01-26  Bruno Haible  <bruno@clisp.org>
85953
85954         * lib/javaexec.sh.in: New file, from GNU gettext.
85955         * lib/javaexec.h: New file, from GNU gettext.
85956         * lib/javaexec.c: New file, from GNU gettext.
85957
85958 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85959
85960         * modules/lchown (Depends-on): Remove lchown.h
85961
85962 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85963
85964         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85965         must be defined if the header file was not found, in order
85966         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85967
85968 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85969
85970         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85971         initializers for struct pentry_state.
85972         (__argp_error): Check return value of __asprintf
85973         (__argp_failure): Translate error message
85974
85975         * lib/argp-parse.c: Removed braces around the expansion of N_()
85976
85977 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85978
85979         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85980         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85981         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85982         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85983         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85984         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85985         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85986         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85987         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85988         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85989         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85990         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85991         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85992         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85993         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85994         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85995         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85996         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85997         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85998         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85999         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86000         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86001         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86002         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86003         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86004         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86005         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86006         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86007         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86008         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86009         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86010         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86011         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86012         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86013         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86014         Use an all-permissive copyright notice, recommended by RMS.
86015
86016 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         * modules/chdir-long (Depends-on): Remove mempcpy.
86019
86020 2005-01-21  Jim Meyering  <jim@meyering.net>
86021
86022         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86023         same value as for Solaris 9.
86024
86025         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86026         component length.  This included changing the parameter to be
86027         of type `char *' rather than `char const *'.
86028         * lib/chdir-long.h (chdir_long): Update prototype.
86029
86030         * lib/openat.c (fdopendir, fstatat): New functions.
86031         * lib/openat.h: Include headers required for use of DIR and struct
86032         stat.
86033         [AT_SYMLINK_NOFOLLOW]: Define.
86034         (fdopendir, fstatat): Add prototypes.
86035
86036 2005-01-21  Bruno Haible  <bruno@clisp.org>
86037
86038         * modules/classpath: New file.
86039         * MODULES.html.sh (Java): Add classpath.
86040
86041 2005-01-21  Bruno Haible  <bruno@clisp.org>
86042
86043         * lib/classpath.h: New file, from GNU gettext.
86044         * lib/classpath.c: New file, from GNU gettext.
86045
86046 2005-01-20  Simon Josefsson  <jas@extundo.com>
86047
86048         * modules/version-etc-fsf: New file.
86049
86050 2005-01-20  Simon Josefsson  <jas@extundo.com>
86051
86052         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86053         * lib/version-etc.c: Remove version_etc_copyright.
86054         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86055         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86056
86057 2005-01-20  Simon Josefsson  <jas@extundo.com>
86058
86059         * lib/base64.h (isbase64): Add.
86060
86061         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86062         using a unsigned prototype, don't inline.
86063         (base64_decode): Use it.
86064
86065 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86068         it.
86069
86070 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86071
86072         * lib/save-cwd.c (save_cwd): Remove code to support the case
86073         where fchdir is missing or flaky.
86074
86075 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86076
86077         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86078
86079 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86080
86081         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86082         AC_LIBSOURCES now does this.
86083         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86084         with new ullong_max module.
86085
86086 2005-01-19  Bruno Haible  <bruno@clisp.org>
86087
86088         * modules/sh-quote: New file.
86089         * MODULES.html.sh (Executing programs): Add sh-quote.
86090
86091 2005-01-19  Bruno Haible  <bruno@clisp.org>
86092
86093         * lib/sh-quote.h: New file, from GNU gettext.
86094         * lib/sh-quote.c: New file, from GNU gettext.
86095
86096 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         Merge from coreutils.
86099         * m4/ullong_max.m4: New file.
86100         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86101         (gl_MACROS): Assume localeconv exists.
86102
86103 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         Merge changes from coreutils, as described below in several
86106         changelogs dated today.
86107
86108         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86109         (O_DIRECTORY): Remove; not needed here, since "." must be
86110         a directory.  All uses removed.
86111         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86112         universal on Suns, and we also need to test for IRIX.
86113         Revamp code to use 'if' rather than '#if'.
86114         Avoid unnecessary comparison of cwd->desc to 0.
86115
86116         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86117         for known valid error numbers rather than observed invalid ones.
86118
86119 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * modules/ullong_max: New file.
86122
86123         * modules/chdir-long, modules/openat: New files.
86124         * modules/save-cwd (Depends-on): Depend on chdir-long.
86125         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86126
86127 2005-01-18  Jim Meyering  <jim@meyering.net>
86128
86129         Merge from coreutils.
86130         * m4/chdir-long.m4, m4/openat.m4: New files.
86131         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86132         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86133         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86134         is sane and DOES follow symlinks.  Besides, testing 20 different
86135         systems found no broken chown implementations.
86136         Prompted by a change in rsync's copy of this macro.
86137         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86138
86139         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86140
86141         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86142         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86143         NULL-means-set-to-current-time semantics.
86144         Remove temporary file immediately, rather than waiting
86145         for configure's at-exit trap code to do it.
86146
86147 2005-01-18  Jim Meyering  <jim@meyering.net>
86148
86149         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86150
86151         * lib/utimens.c (futimens): Account for the fact that futimes
86152         can also fail with errno == ENOSYS or errno == ENOENT.
86153         Patch from Dmitry V. Levin.
86154
86155         Change the name of the robust chdir function from chdir to chdir_long.
86156         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86157         (restore_cwd): Use chdir_long, not chdir.
86158         * lib/chdir-long.c: Renamed from chdir.c.
86159         * lib/chdir-long.h: Renamed from chdir.h.
86160         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86161         Hurd.
86162
86163 2005-01-18  Bruno Haible  <bruno@clisp.org>
86164
86165         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86166         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86167         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86168         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86169         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86170         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86171         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86172         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86173         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86174         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86175         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86176         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86177         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86178         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86179         Use an all-permissive copyright notice, recommended by RMS.
86180
86181 2005-01-18  Bob Proulx  <bob@proulx.com>
86182
86183         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86184         simplify offsetof() macro construct to avoid compile failure with
86185         native HP-UX 11.0 ANSI C compiler.
86186
86187 2005-01-17  Bruno Haible  <bruno@clisp.org>
86188
86189         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86190         redundant because stpncpy.m4 takes care of it.
86191
86192 2005-01-17  Bruno Haible  <bruno@clisp.org>
86193
86194         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86195
86196 2005-01-17  Bruno Haible  <bruno@clisp.org>
86197
86198         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86199         used.
86200
86201 2005-01-17  Bruno Haible  <bruno@clisp.org>
86202
86203         * lib/fwriteerror.h (fwriteerror): Change specification to include
86204         fclose.
86205         * lib/fwriteerror.c: Include <stdbool.h>.
86206         (fwriteerror): At the end, close the file stream. Record whether
86207         stdout was already closed.
86208
86209 2005-01-17  Bruno Haible  <bruno@clisp.org>
86210
86211         * lib/execute.c (environ): Declare if needed.
86212         * lib/pipe.c (environ): Likewise.
86213         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86214
86215 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86216
86217         * modules/argp: Depend on vsnprintf
86218
86219 2005-01-10  Jim Meyering  <jim@meyering.net>
86220
86221         * modules/closeout (Depends-on): Add atexit.
86222
86223 2005-01-06  Bruno Haible  <bruno@clisp.org>
86224
86225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86226
86227 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86230         definitions to be after all include files, to avoid collisions.
86231         Problem reported by Bob Proulx.
86232
86233 2005-01-04  Jim Meyering  <jim@meyering.net>
86234
86235         Changes imported from coreutils.
86236         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86237         as the mkstemp template, use a temporary directory and an
86238         8.3-friendly template to avoid trouble on systems like DJGPP.
86239         Reported by Juan M. Guerrero via Stepan Kasal.
86240         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86241         close. Remove the temporary directory right away, rather than waiting
86242         for configure's at-exit trap code to do it.
86243         Suggestion from Stepan Kasal.
86244
86245 2005-01-01  Simon Josefsson  <jas@extundo.com>
86246
86247         * gnulib-tool: Print #include directives when --import'ing.
86248
86249 2004-12-28  Simon Josefsson  <jas@extundo.com>
86250
86251         * tests/test-base64.c: Include required header files.  Remove
86252         unused variables.
86253
86254 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * modules/error (Depends-on): Remove gettext.
86257
86258 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86259
86260         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86261         not needed.  This removes a dependency on the gettext module.
86262         [defined _LIBC]: Do not include <libintl.h>; not needed.
86263
86264 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86265
86266         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86267         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86268
86269 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86270
86271         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86272         HAVE_DECL_STRTOLD.
86273
86274 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86275
86276         * modules/getdate (Depends-on): Remove alloca-opt.
86277
86278 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86281
86282 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86283
86284         * lib/argp-parse.c: Include <stddef.h>.
86285         (alignof, alignto): New macros.
86286         (parser_init): Don't assume that void * is aligned sufficiently
86287         for struct option.
86288
86289         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86290         need to extend the stack.
86291         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86292         large.
86293
86294 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86295
86296         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86297
86298 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86299
86300         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86301         (2004-10-24) change.  Apparently this was a false alarm.
86302
86303         * modules/getdate: Depend on alloca-opt, not alloca.
86304
86305 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86308         Remove now-obsolete comment about AIX.
86309         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86310         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86311         (YYMAXDEPTH): New macro.
86312
86313 2004-12-18  Simon Josefsson  <jas@extundo.com>
86314
86315         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86316
86317 2004-12-18  Bruno Haible  <bruno@clisp.org>
86318
86319         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86320
86321 2004-12-18  Bruno Haible  <bruno@clisp.org>
86322
86323         * lib/fatal-signal.c (fatal_signals): Make non-const.
86324         (init_fatal_signals): New function.
86325         (uninstall_handlers, install_handlers): Ignore signals that were set to
86326         SIG_IGN.
86327         (at_fatal_signal): Call init_fatal_signals.
86328         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86329         SIG_IGN.
86330         Reported by Paul Eggert.
86331
86332 2004-12-18  Bruno Haible  <bruno@clisp.org>
86333
86334         * doc/alloca.texi: New file.
86335         * doc/alloca-opt.texi: New file.
86336
86337 2004-12-17  Jim Meyering  <jim@meyering.net>
86338
86339         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86340         Otherwise, install-sh could exit with improper exit status when
86341         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86342
86343 2004-12-16  Simon Josefsson  <jas@extundo.com>
86344
86345         * tests/test-base64.c: Add license.
86346
86347 2004-12-15  Stepan Kasal  <address@hidden>
86348
86349         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86350
86351 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86352
86353         * modules/getcwd (Files): Add m4/d-ino.m4.
86354         Suggested by Mark D. Baushke.
86355
86356 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86357
86358         * lib/getdate.y (textint): New member "negative".
86359         (time_zone_hhmm): New function.
86360         Expect 14 shift-reduce conflicts, not 13.
86361         (o_colon_minutes): New rule.
86362         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86363         (yylex): Set the "negative" member of signed numbers.
86364
86365 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * doc/getdate.texi (Time of day items, Time zone items):
86368         Describe new formats +00:00, UTC+00:00.
86369
86370 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86371
86372         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86373         spurious "-l"s.  Problem reported by Stepan Kasal.
86374
86375 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86378         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86379
86380 2004-12-04  Simon Josefsson  <jas@extundo.com>
86381
86382         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86383         Vandoorselaere <yoann@prelude-ids.org>.
86384
86385 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         Changes imported from coreutils.
86388         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86389         exist.
86390         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86391
86392 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         Changes imported from coreutils.
86395         * lib/hard-locale.c: Assume <locale.h> exists.
86396         Include "strdup.h".
86397         (GLIBC_VERSION): New macro.
86398         (hard_locale): Assume setlocale exists.
86399         Rewrite to avoid #ifdef.
86400         Use strdup rather than malloc + strcpy.
86401         * lib/human.c: Assume <locale.h> exists.
86402         (human_readable): Assume localeconv exists.
86403
86404 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86405
86406         * modules/hard-locale (Depends-on): Add strdup.
86407
86408 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86409
86410         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86411         convert T2, not T.  (Imported from libc.)
86412
86413 2004-11-30  Simon Josefsson  <jas@extundo.com>
86414
86415         * modules/restrict (License): Change to LGPL.
86416
86417 2004-11-30  Simon Josefsson  <jas@extundo.com>
86418
86419         * m4/restrict.m4: Add copyright and copying conditions.
86420
86421 2004-11-30  Simon Josefsson  <jas@extundo.com>
86422
86423         * m4/base64.m4: New file.
86424
86425 2004-11-30  Simon Josefsson  <jas@extundo.com>
86426
86427         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86428         base64.
86429
86430         * tests/test-base64.c: New file.
86431
86432         * modules/base64: New file.
86433
86434 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86437         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86438
86439         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86440
86441 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86442
86443         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86444         (__getcwd.c): Don't restore errno; glibc doesn't.
86445         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86446         first, falling back to our code only if its results look suspicious.
86447         Ensure that the resulting buffer is only as large as necessary.
86448
86449         * lib/readutmp.c: Include readutmp.h first.
86450         Include <errno.h>, since readutmp.h no longer does that.
86451         * lib/readutmp.h: Don't include <errno.h>,
86452         <sys/param.h>, <time.h>; not needed to establish interface.
86453         (errno): Remove decl.
86454         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86455         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86456         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86457
86458 2004-11-28  Simon Josefsson  <jas@extundo.com>
86459
86460         * lib/base64.h, base64.c: New file.
86461
86462 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86463
86464         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86465
86466 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86469         (Depends-on): Remove pathmax, same.  Add mempcpy.
86470         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86471         (Makefile.am): Append getcwd.h to lib_SOURCES.
86472         (Include): Add getcwd.h.
86473         (Maintainer): Change from Jim Meyering to "all, glibc",
86474         since getdate now uses intended-for-glibc code.
86475         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86476         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86477
86478 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86479
86480         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86481         HP's ANSI C compiler.
86482         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86483         Declaring int functions causes warnings on some modern systems and
86484         shouldn't be needed to compile on ancient ones.
86485         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86486         defined.
86487
86488         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86489         with the following changes.
86490         (__set_errno): Parenthesize properly.
86491         Include <stdbool.h>.
86492         (MIN, MAX, MATCHING_INO): New macros.
86493         (__getcwd): Define with prototype, not K&R form.
86494         Use heuristics to allocate default buffer on stack if possible.
86495         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86496         behavior, and to avoid the PATH_MAX limit when computing
86497         ../../../../...
86498         Use MATCHING_INO to compare inode number to file.
86499         Check for arithmetic overflow in size calculations.
86500         Fix bug in reallocation of dot array that caused getcwd to fail
86501         on directories nested deeper than 75.
86502         Be more careful about saving errno on error.
86503         Do not use realloc; use only free+malloc, as this is a bit
86504         more flexible and avoids a needless copy operation.
86505         Do not inspect st_dev and st_ino for symbolic links; POSIX
86506         doesn't specify the latter.
86507         Check for closedir errors.
86508         Avoid needless casts.
86509         Use "#ifdef weak_alias" around weak_alias, to be like other
86510         glibc code.
86511         The following changes to getcwd.c have effect only when used in
86512         gnulib; they have no effect inside glibc proper.
86513         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86514         as alloca isn't used.
86515         (alloca, __alloca): Likewise.
86516         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86517         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86518         unconditionally, as gnulib assumes C89 or better.
86519         Do not include <sys/param.h>.
86520         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86521         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86522         better.
86523         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86524         Include <dirent.h> in a way that is compatible with modern Autoconf.
86525         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86526         New macros, if not already defined.
86527         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86528         Use "_LIBC", not "defined _LIBC", for consistency.
86529         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86530         a mempcpy module.
86531         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86532         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86533         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86534         credit only to Jim Meyering and adjust the copyright dates.
86535         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86536         <stdlib.h>, <unistd.h>, "pathmax.h".
86537         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86538         (INITIAL_BUFFER_SIZE): Remove.
86539         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86540
86541 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86542
86543         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86544         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86545         Use the _ONCE methods, for efficiency.
86546         Check for fcntl.h.  In test program, include <errno.h>
86547         and <fcntl.h> if available.  Remove old K&R cruft from
86548         test program.  Check for common errors in GNU/Linux,
86549         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86550         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86551         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86552         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86553         name accordingly.
86554         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86555         accommodate new getcwd.c.
86556         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86557         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86558         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86559         that's all we need now.
86560
86561 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86562
86563         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86564         argp-parse.c depends on getopt internals, that means we should
86565         always use our getopt, to be on the safe side.
86566         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86567         order not to spoil the result of an eventual previous invocation
86568         of gl_GETOPT_SUBSTITUTE.
86569
86570 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86571
86572         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86573         redefinition warnings. To avoid them, include the defines
86574         in `#if !defined __need_getopt ... #endif'. The only place
86575         where __getopt_argv_const is used is in definitions
86576         of getopt_long and getopt_long_only below, which are as well
86577         protected by `#ifndef __need_getopt'.
86578         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86579         __need_getopt after including <stdio.h> and <unistd.h> These
86580         headers might have defined it.
86581
86582 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86583
86584         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86585
86586 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86587
86588         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86589         (futimens): New function, which uses futimes if available.
86590         (futimens, utimens): Support timespec==NULL, with same semantics
86591         as utime and utimens.
86592         * lib/utimens.h (futimens): New decl.
86593
86594 2004-11-23  Jim Meyering  <jim@meyering.net>
86595
86596         * lib/getopt_.h: Remove trailing blanks.
86597
86598 2004-11-23  Jim Meyering  <jim@meyering.net>
86599
86600         * lib/__fpending.c: Add comment.
86601
86602 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86603
86604         * modules/canonicalize (Depends-on): Add xreadlink.
86605         Problem reported by James Youngman.
86606
86607 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86608
86609         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86610         New macros.
86611         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86612         optopt): Use them instead of invoking ## directly; otherwise, the
86613         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86614
86615 2004-11-19  Bruno Haible  <bruno@clisp.org>
86616
86617         * lib/strtok_r.c: Move comments from here...
86618         * lib/strtok_r.h: ... to here.
86619
86620 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86621
86622         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86623         implementations that mishandle size_t overflow.
86624
86625 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86626
86627         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86628         might fail.  Problem reported by Yoann Vandoorselaere.
86629         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86630         implementations that mishandle size_t overflow.
86631
86632 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86633
86634         * modules/canon-host (Depends-on): Add strdup.
86635
86636 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86637
86638         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86639
86640 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86641
86642         * lib/canon-host.c: Include "strdup.h".
86643         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86644         Use strdup instead of malloc/strcpy to duplicate strings.
86645
86646         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86647         (human_space_before_unit): New constant.
86648         * lib/human.c (human_readable): Support it.
86649
86650         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86651         (xgetcwd): Set errno correctly when failing.
86652         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86653         the failure is actually due to a PATH_MAX problem.
86654
86655         Further getopt changes to make it more likely that glibc will
86656         buy the changes back.
86657         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86658         (getopt): Use it, so to preserve glibc semantic
86659         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86660         when compiling for libc.
86661         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86662         (getopt_long, getopt_long_only): Use it.
86663
86664         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86665         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86666         (getopt): Argv is now char * const *, as per standard.
86667         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86668         not char *__getopt_argv_const *.
86669         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86670         _getopt_long_only_r): Likewise.
86671         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86672         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86673         _getopt_long_r, _getopt_long_only_r): Likewise.
86674         * lib/getopt_.h (__getopt_argv_const): Remove.
86675         (getopt): Argv is now char * const *, as per standard.
86676
86677         * lib/getdate.y (tORDINAL): New token.
86678         (day, relunit): Allow it for relative times.
86679         (relative_time_table): Use tORDINAL for ordinals.
86680
86681 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86682
86683         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86684         Document that "second" isn't allowed as an ordinal number.
86685
86686 2004-11-16  Jim Meyering  <jim@meyering.net>
86687
86688         * modules/closeout (Depends-on): Add fpending.
86689
86690 2004-11-15  Jim Meyering  <jim@meyering.net>
86691
86692         * lib/closeout.c: Include "__fpending.h" once again.
86693         Include <stdbool.h>.
86694         (close_stdout): Don't fail just because stdout was closed initially,
86695         since some programs don't write to stdout in the normal course of
86696         operation (other than --version and --help), and we don't want this
86697         function to make e.g. `touch file >&-' fail.
86698         But do fail if it was closed and someone has tried to write to it.
86699         E.g., `printf foo >&-' must fail.
86700
86701 2004-11-13  Jim Meyering  <jim@meyering.net>
86702
86703         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86704
86705 2004-11-12  Simon Josefsson  <jas@extundo.com>
86706
86707         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86708         small doc fix is still pending.
86709
86710 2004-11-11  Simon Josefsson  <jas@extundo.com>
86711
86712         * modules/strtok_r: New file.
86713
86714         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86715         strtok_r.
86716
86717 2004-11-11  Simon Josefsson  <jas@extundo.com>
86718
86719         * m4/strtok_r.m4: New file.
86720
86721         * m4/getopt.m4: Replace opterr.
86722
86723 2004-11-11  Simon Josefsson  <jas@extundo.com>
86724
86725         * lib/strtok_r.h, strtok_r.c: New file.
86726
86727 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86728
86729         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86730         of replacing opterr, getopt, etc.  This should handle the
86731         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86732
86733 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86734
86735         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86736         we can stop lying to compilers about the constness of argv when we
86737         are compiled outside glibc.
86738         (getopt, getopt_long, getopt_long_only): Use it.
86739         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86740         _getopt_internal, getopt): Likewise.
86741         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86742         _getopt_long_only_r): Likewise.
86743         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86744         _getopt_long_r, _getopt_long_only_r): Likewise.
86745
86746         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86747         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86748         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86749         the other external symbols.
86750         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86751         declaration, since the above renaming now works around collisions.
86752
86753 2004-11-11  Jim Meyering  <jim@meyering.net>
86754
86755         * lib/linebreak.c: Remove trailing blanks.
86756         * lib/alloca_.h: Likewise.
86757         * lib/acosl.c: Likewise.
86758         * lib/euidaccess.c: Likewise.
86759         * lib/allocsa.h: Likewise.
86760
86761 2004-11-10  Simon Josefsson  <jas@extundo.com>
86762
86763         * m4/getaddrinfo.m4: New file.
86764
86765 2004-11-10  Simon Josefsson  <jas@extundo.com>
86766
86767         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86768
86769 2004-11-10  Simon Josefsson  <jas@extundo.com>
86770
86771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86772         getaddrinfo.
86773
86774         * modules/getaddrinfo: New file.
86775
86776 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86777
86778         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86779
86780 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86781
86782         * lib/mktime.c (SHR): New macro, which is a portable
86783         substitute for >> that should work even on Crays.
86784         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86785         Problem reported by Mark D. Baushke in
86786         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86787         * lib/getdate.y (SHR): Likewise.
86788         (tm_diff): Use it.
86789         * lib/strftime.c (SHR): Likewise.
86790         (tm_diff): Use it.
86791         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86792         quote_these_too, so that right shifts are well defined.  All uses
86793         changed.
86794
86795 2004-11-10  Jim Meyering  <jim@meyering.net>
86796
86797         Ensure that no close failure goes unreported.
86798         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86799         return early when it seems there's nothing to flush.
86800         Don't include __fpending.h.
86801
86802 2004-11-10  Jim Meyering  <jim@meyering.net>
86803
86804         * modules/closeout (Depends-on): Remove fpending.
86805
86806 2004-11-10  Jim Meyering  <jim@meyering.net>
86807
86808         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86809
86810 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86811
86812         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86813         gl_FUNC_STRFTIME.
86814         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86815         and AC_REQUIRE when possible, to avoid duplicate checks.
86816         Check for <wchar.h>.
86817
86818 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86819
86820         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86821
86822 2004-11-09  Bruno Haible  <bruno@clisp.org>
86823
86824         * m4/sockpfaf.m4: New file.
86825
86826 2004-11-05  Bruno Haible  <bruno@clisp.org>
86827
86828         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86829         Reported by Mark D. Baushke <mdb@cvshome.org>.
86830
86831 2004-11-04  Bruno Haible  <bruno@clisp.org>
86832
86833         2004-09-11  Bruno Haible  <bruno@clisp.org>
86834                 * allocsa.valgrind: New file.
86835         2004-02-06  Bruno Haible  <bruno@clisp.org>
86836                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86837                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86838                 Reported by Christopher Seip <chris.seip@hp.com>.
86839
86840 2004-11-04  Bruno Haible  <bruno@clisp.org>
86841
86842         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86843         (Makefile.am): Distribute it.
86844
86845 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86846
86847         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86848         with errno == ERANGE if the buffer is too small.
86849         Problem reported by Mark D. Baushke.
86850
86851 2004-11-03  Albert Chin  <china@thewrittenword.com>
86852             Paul Eggert  <eggert@cs.ucla.edu>
86853
86854         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86855         equivalent, substitute $ac_type for equivalent type rather than
86856         blindly using uint32_t *always* which won't work if uint32_t is not
86857         available.  Define _UINT32_T to work around typedef of uint32_t if
86858         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86859         2.5.1.
86860
86861 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         * m4/jm-macros.m4: Sync from coreutils.
86864         (gl_MACROS): Check for mbrlen, for pathchk.
86865         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86866
86867 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86868
86869         * lib/xreadlink.c (MAXSIZE): New macro.
86870         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86871         size does not exceed MAXSIZE.  Avoid cast.
86872         As suggested by Mark D. Baushke in
86873         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86874         if readlink fails with buffer size just under MAXSIZE, try again
86875         with MAXSIZE.
86876
86877 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86878
86879         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86880
86881 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86882         and  Paul Eggert  <eggert@cs.ucla.edu>
86883
86884         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86885         (get_date): Overparenthesize to avoid GCC warning.
86886
86887 2004-11-02  Bruno Haible  <bruno@clisp.org>
86888
86889         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86890         returns void.
86891
86892 2004-11-02  Bruno Haible  <bruno@clisp.org>
86893
86894         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86895         function returns void.
86896
86897 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86898
86899         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86900         fflush_unlocked, flockfile, funlockfile, funlockfile,
86901         fputs_unlocked, putc_unlocked.
86902
86903 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86906         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86907         already declared.
86908
86909 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * modules/getdate (Files): Add doc/getdate.texi.
86912         (Depends-on): Add setenv, xalloc.
86913
86914 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86915
86916         * lib/getdate.y: Add support for TZ="foo" within a date string.
86917         Fix some bugs near time_t boundaries.  Reject dates with
86918         out-of-range components, e.g., "Sept 31".
86919         Include <stdlib.h>, "setenv.h", "xalloc.h".
86920         (ISDIGIT_LOCALE): Remove; unused.
86921         Note that the TZ and time functions used here are not reentrant.
86922         (mktime_ok, get_tz): New functions.
86923         (TZBUFSIZE): New constant.
86924         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86925         This requires that we sometimes generate our own TZ="XXX..." setting.
86926
86927 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86928
86929         * doc/getdate.texi: New file, from coreutils with modifications for
86930         the new TZ parsing.
86931
86932 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86933
86934         * lib/mktime.c (not_equal_tm): Remove redundant check.
86935
86936 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86937
86938         * modules/regex (lib_SOURCES): Add regex.c.
86939         Reported by James Youngman in
86940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86941
86942 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86943
86944         * lib/getdate.y: Use Bison 1.875 features, and some minor
86945         code cleanups.  This change does not affect semantics.
86946         Don't include <stdlib.h>; no longer needed.
86947         Don't include unlocked-io.h; only the "#if TEST" code uses
86948         stdio, and performance isn't crucial there.
86949         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86950         Bison 1.875 features as described below.
86951         All uses of "PC." replaced by "pc->".
86952         (YYSTYPE): Add a forward declaration.
86953         (yylex, yyerror): Use full prototypes in forward decls.
86954         Use "%pure-parser" rather than obsolescent "%pure_parser".
86955         Use %parse-param and %lex-param instead of obsolescent
86956         YYPARSE_PARAM and YYLEX_PARAM.
86957         (meridian_table, month_and_day_table, time_units_table,
86958         relative_time_table, time_zone_table, military_table,
86959         lookup_zone, lookup_word, get_date):
86960         Use NULL instead of 0 where appropriate.
86961         (to_hour): Avoid abort (), to avoid a dependency on
86962         stdlib.h.
86963         (yyerror, yylex): Now accepts parser_control * arg.
86964         (main) [TEST]: Use '\0' rather than 0 for char.
86965
86966 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86967
86968         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86969
86970 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86973         It's now the caller's responsibility to handle the case where
86974         !HAVE_GETPAGESIZE && !defined getpagesize.
86975
86976         * lib/mktime.c (leapyear): Arg is long int, not int.
86977
86978 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86981
86982 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86983
86984         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86985         missing.  Problem reported by James Youngman.
86986
86987 2004-10-16  Simon Josefsson  <jas@extundo.com>
86988
86989         * gnulib-tool: Fix comments.  Fix parse problem.
86990         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86991
86992 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86993
86994         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86995         implementation of getopt_long.  Problem reported by Alexander Taler in:
86996         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86997
86998 2004-10-15  Bruno Haible  <bruno@clisp.org>
86999
87000         * gnulib-tool: Untabify. Initialize supplied_libname.
87001         (func_usage): More homogenous output.
87002         (func_modules_transitive_closure, func_modules_to_filelist,
87003         func_emit_lib_Makefile_am): New functions.
87004         (func_import): New function, extracted from big case statement. Use
87005         func_get_license, func_modules_transitive_closure,
87006         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87007         opt_lgpl. Don't use test -a, as it's not portable.
87008         (func_create_testdir): Use func_modules_transitive_closure,
87009         func_modules_to_filelist, func_emit_lib_Makefile_am.
87010
87011 2004-10-15  Bruno Haible  <bruno@clisp.org>
87012
87013         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87014
87015 2004-10-15  Bruno Haible  <bruno@clisp.org>
87016
87017         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87018         the portions belonging to each module.
87019         Suggested by Derek Robert Price <derek@ximbiot.com>.
87020
87021 2004-10-12  Simon Josefsson  <jas@extundo.com>
87022
87023         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87024         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87025         to real functions.
87026
87027 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87028
87029         * modules/vsnprintf: New file.
87030
87031 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87032
87033         * m4/vsnprintf.m4: New file.
87034
87035 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87036
87037         * lib/vsnprintf.h: New file.
87038         * lib/vsnprintf.c: New file.
87039
87040 2004-10-11  Bruno Haible  <bruno@clisp.org>
87041
87042         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87043         vsnprintf.
87044
87045 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87046
87047         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87048
87049 2004-10-07  Bruno Haible  <bruno@clisp.org>
87050
87051         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87052         fits into the provided buffer.
87053
87054 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87055
87056         * lib/diacrit.c, diacrit.h: Add GPL notice.
87057
87058         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87059         notice.
87060         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87061         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87062         This avoids a potential constant-folding bug.
87063
87064 2004-10-05  Bruno Haible  <bruno@clisp.org>
87065
87066         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87067         for the declaration of strsep.
87068
87069 2004-10-05  Bruno Haible  <bruno@clisp.org>
87070
87071         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87072
87073 2004-10-04  Simon Josefsson  <jas@extundo.com>
87074
87075         * modules/memmem: New file.
87076         * tests/test-memmem.c: New file.
87077         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87078
87079 2004-10-04  Simon Josefsson  <jas@extundo.com>
87080
87081         * m4/memmem.m4: New file.
87082
87083 2004-10-04  Simon Josefsson  <jas@extundo.com>
87084
87085         * lib/memmem.h: New file.
87086         * lib/memmem.c: New file, taken from glibc.
87087
87088 2004-10-04  Simon Josefsson  <jas@extundo.com>
87089
87090         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87091         '#ifdef USE_UNLOCKED_IO'.
87092
87093 2004-10-04  Simon Josefsson  <jas@extundo.com>
87094
87095         * config/srclist.txt: Add memmem from glibc.
87096
87097 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87098
87099         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87100
87101         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87102         modules/exclude, modules/getdate, modules/getline,
87103         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87104         modules/getusershell, modules/linebuffer, modules/md5,
87105         modules/mountlist, modules/posixtm, modules/readtokens,
87106         modules/readutmp, modules/regex, modules/sha1,
87107         modules/version-etc, modules/yesno:
87108         Remove dependency on unlocked-io.
87109
87110 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87111
87112         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87113
87114         * m4/unlocked-io.m4: Add copyright notice.
87115         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87116
87117 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87118
87119         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87120         * lib/xmalloc.c (xmemdup): Likewise.
87121         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87122         XFREE): Remove these long-obsolescent macros.
87123         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87124         * lib/xstrdup.c: Remove.
87125
87126         * lib/regex.c (re_comp): Cast gettext return value to char *,
87127         Problem reported by Martin Neitzel via Mark D. Baushke.
87128
87129 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87132         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87133         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87134         regex.c, sha1.c, version-etc.c, yesno.c:
87135         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87136         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87137         the includer's responsibility.
87138
87139         Sync from coreutils.
87140
87141         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87142         points to the start of a string, as the C Standard says the
87143         resulting behavior is undefined.
87144
87145         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87146         simple -> simple_backups, numbered_existing ->
87147         numbered_existing_backups, numbered -> numbered_backups
87148         to avoid shadowing problems.  All uses changed.
87149         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87150         * lib/backupfile.c (check_extension, numbered_backup):
87151         Rename locals to avoid shadowing 'basename'.
87152         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87153         once.
87154
87155         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87156         * lib/.cvsignore: Add getopt.h.
87157
87158 2004-10-04  Bruno Haible  <bruno@clisp.org>
87159
87160         * modules/README: New file.
87161         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87162         not a module.
87163
87164 2004-10-02  Jim Meyering  <jim@meyering.net>
87165
87166         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87167
87168 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87169
87170         * modules/strsep: New file.
87171
87172 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87173
87174         * m4/strsep.m4: New file.
87175
87176 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87177
87178         * lib/strsep.h: New file.
87179         * lib/strsep.c: New file.
87180
87181 2004-10-01  Simon Josefsson  <jas@extundo.com>
87182
87183         * lib/snprintf.c (snprintf): Handle size==0.
87184
87185 2004-10-01  Simon Josefsson  <jas@extundo.com>
87186             Bruno Haible  <bruno@clisp.org>
87187
87188         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87189         (snprintf): Declare 'args'.
87190
87191 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87192
87193         * lib/snprintf.c: Remove comments as to why each header is needed.
87194
87195 2004-10-01  Bruno Haible  <bruno@clisp.org>
87196
87197         * MODULES.html.sh: Add strsep.
87198
87199 2004-09-30  Simon Josefsson  <jas@extundo.com>
87200
87201         * modules/snprintf: New file.
87202
87203 2004-09-30  Simon Josefsson  <jas@extundo.com>
87204
87205         * m4/snprintf.m4: New file.
87206
87207 2004-09-30  Simon Josefsson  <jas@extundo.com>
87208
87209         * lib/snprintf.h, lib/snprintf.c: New files.
87210
87211 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87212
87213         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87214         (hol_entry_help): Never translate an empty string.
87215         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87216         * lib/argp.h (OPTION_NO_TRANS): New option.
87217
87218 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87219
87220         * modules/argp (Maintainer): Replace Simon Josefsson
87221         by Sergey Poznyakoff.
87222
87223 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87224
87225         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87226         changes merged back into glibc.
87227
87228 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87229
87230         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87231
87232 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87233
87234         * lib/xvasprintf.c: Include xalloc.h.
87235         (xvasprintf): Use xalloc_die, not xmalloc_die.
87236
87237 2004-09-29  Bruno Haible  <bruno@clisp.org>
87238
87239         * modules/alloca-opt: New file, derived from modules/alloca.
87240         * modules/allocsa: Depend on alloca-opt instead of alloca.
87241         * modules/setenv: Likewise.
87242         * modules/vasnprintf: Likewise.
87243         * MODULES.html.sh: Add alloca-opt.
87244
87245 2004-09-28  Simon Josefsson  <jas@extundo.com>
87246
87247         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87248         LGPL, and to replace license template from GPL to LGPL.
87249
87250 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87251
87252         * modules/dummy: Change license to LGPL.
87253
87254 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87257
87258 2004-09-24  Simon Josefsson  <jas@extundo.com>
87259
87260         * modules/minmax (License): Change from GPL to LGPL.
87261
87262 2004-09-23  Simon Josefsson  <jas@extundo.com>
87263
87264         * gnulib-tool (--import): Typo.
87265
87266 2004-09-23  Simon Josefsson  <jas@extundo.com>
87267
87268         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87269
87270 2004-09-22  Bruno Haible  <bruno@clisp.org>
87271
87272         * modules/*: Add 'License' field.
87273         * gnulib-tool: Accept --extract-license option.
87274         (func_get_license): New function.
87275
87276 2004-09-21  Bruno Haible  <bruno@clisp.org>
87277
87278         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87279         Reported by Simon Josefsson.
87280
87281 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87282
87283         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87284         gl_AC_TYPE_LONG_LONG.
87285
87286 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87287
87288         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87289
87290 2004-09-18  Simon Josefsson  <jas@extundo.com>
87291         and  Paul Eggert  <eggert@cs.ucla.edu>
87292
87293         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87294         calls with autoreconf.  Define GL_LIB.
87295
87296 2004-09-14  Karl Berry  <karl@gnu.org>
87297
87298         * config/srclist.txt: unsync setenv.c, sigh.
87299
87300 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87303         Problem reported by Bruno Haible in:
87304         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87305
87306 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87307
87308         * config/srclist.txt: Comment out argp-pvh.c.
87309
87310 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87311
87312         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87313         in case some system header has #define'd it.  Problem reported by
87314         Soeren D. Schulze in
87315         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87316
87317 2004-09-09  Karl Berry  <karl@gnu.org>
87318
87319         * regex.[ch]: delete from the root.  These were supposed to be
87320                 synced with emacs cvs, but this has not happened for about
87321                 a year, and anyway nothing else uses emacs regex.[ch].
87322                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87323                 lib/regex[.ch] is untouched.
87324
87325 2004-09-09  Bruno Haible  <bruno@clisp.org>
87326
87327         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87328
87329 2004-09-09  Bruno Haible  <bruno@clisp.org>
87330
87331         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87332         modifications.
87333         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87334
87335 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87336
87337         * modules/xvasprintf: New file.
87338         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87339
87340 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87341
87342         * lib/xvasprintf.h: New file.
87343         * lib/xvasprintf.c: New file.
87344         * lib/xasprintf.c: New file.
87345
87346 2004-09-08  Bruno Haible  <bruno@clisp.org>
87347
87348         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87349
87350 2004-09-08  Bruno Haible  <bruno@clisp.org>
87351
87352         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87353         length is > INT_MAX.
87354         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87355         more.
87356
87357 2004-09-08  Bruno Haible  <bruno@clisp.org>
87358
87359         * lib/stdint_.h: New file, taken from GNU clisp.
87360
87361 2004-09-08  Bruno Haible  <bruno@clisp.org>
87362             Oskar Liljeblad  <oskar@osk.mine.nu>
87363
87364         * modules/stdint: New file.
87365         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87366
87367 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87368
87369         Import from coreutils.
87370         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87371         strings on unbounded length.  alloca's performance benefits aren't
87372         that important here.
87373         (V_STRDUP): Remove.
87374         (parse_with_separator): New function, with most of the internals
87375         of the old parse_user_spec.  Allow user to omit both user and group,
87376         for compatibility with FreeBSD.
87377         Clone only the user name, not the entire spec.
87378         Do not set *uid, *gid unless entirely successful.
87379         Avoid memory leak in some failing cases.
87380         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87381         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87382         (parse_user_spec): Rewrite to use parse_with_separator.
87383
87384 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         * modules/userspec: Don't depend on alloca.
87387
87388 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87389
87390         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87391
87392 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87393
87394         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87395         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87396         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87397
87398 2004-08-16  Simon Josefsson  <jas@extundo.com>
87399
87400         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87401         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87402         Add --dry-run for --import.
87403         Let user provided command line parameters override configure.ac
87404         settings.
87405
87406 2004-08-12  Simon Josefsson  <jas@extundo.com>
87407
87408         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87409         as discussed with Paul Eggert in threads rooted at
87410         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87411         and
87412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87413         Before, the test was empty, and relied on ELIDE_CODE in source
87414         code.)
87415         (gl_PREREQ_GETOPT): New macro.
87416         (gl_GETOPT): Use them.
87417
87418 2004-08-12  Simon Josefsson  <jas@extundo.com>
87419
87420         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87421         * lib/getopt_.h: Renamed from getopt.h.
87422
87423 2004-08-12  Simon Josefsson  <jas@extundo.com>
87424
87425         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87426         Change default library name from libfoo to libgnu.
87427         Now, if you have a configure.ac that says:
87428                 gl_SOURCE_BASE(gl)
87429                 gl_M4_BASE(gl/m4)
87430                 gl_MODULES(error getopt etcetera)
87431                 gl_INIT
87432         you can import all you need by running:
87433                 ../gnulib/gnulib-tool --import
87434
87435         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87436         (Makefile.am): Rewrite, use logic from argz.
87437         (Include): Use <getopt.h> instead of "getopt.h".
87438
87439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87440
87441         * modules/argp (Files): Add m4/unlocked-io.m4.
87442         (Depends-on): Add extensions.
87443
87444 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87445
87446         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87447         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87448         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87449         Check for program_invocation_name, program_invocation_short_name,
87450         flockfile, funlockfile, features.h, _getopt_long_only_r.
87451
87452 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87453
87454         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87455         its complicated substitute.
87456         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87457         and program_invocation_name.
87458         (__argp_basename) [!_LIBC]: Remove; the only use was
87459         replaced by its body.
87460         (__argp_short_program_name): Change condition from
87461         !defined __argp_short_program_name to
87462         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87463         to match argp-namefrob.h.
87464         (__argp_failure): Don't assume strerror_r returns char *.
87465         * lib/argp-parse.c (N_): Define unconditionally.
87466         (argp_default_options): Fill out initializers with 0 to avoid
87467         gcc warnings.
87468
87469 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87470
87471         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87472         getopt1.c.
87473
87474 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87475
87476         Merge from coreutils.
87477
87478         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87479
87480         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87481         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87482
87483 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87484
87485         Merge from coreutils.
87486
87487         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87488         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87489         for Reliant Unix 5.43.
87490
87491         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87492         (union fooround): Use uintmax_t, not long int.
87493         The rest is a merge from libc:
87494         [defined _LIBC]: Include <shlib-compat.h>.
87495         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87496
87497         * lib/settime.c (settime): Recode to avoid warning with
87498         Sun Forte C 6U2.
87499
87500         * lib/strverscmp.c: Convert to UTF-8.
87501
87502 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87505         m4/uintmax_t.m4.
87506
87507 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87508
87509         * modules/xalloc-die: New file.
87510         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87511
87512         * modules/md5 (Files): Add m4/uint32_t.m4.
87513         * modules/sha1: Renamed from modules/sha.
87514         (Files):
87515         Rename lib/sha.h to lib/sha1.h.
87516         Rename lib/sha.c to lib/sha1.c.
87517         Rename m4/sha.m4 to m4/sha1.m4.
87518         (lib_SOURCES): Likewise.
87519         (configure.ac): Rename gl_SHA to gl_SHA1.
87520         (Include): sha.h -> sha1.h.
87521
87522 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87525         * m4/sha1.m4: Renamed from sha.m4.
87526         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87527
87528 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87529
87530         * lib/obstack.h (obstack_empty_p):
87531         Don't assume that chunk->contents is suitably aligned.
87532         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87533         Likewise. Problem reported by Benno in
87534         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87535
87536         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87537         readable.  This could be improved further but it'd take some work.
87538
87539 2004-08-08  Simon Josefsson  <jas@extundo.com>
87540
87541         * modules/xgethostname (Depends-on): Remove exit and error (not
87542         used).
87543
87544         * modules/getpass-gnu: Add getpass.h.
87545         (Depends-on): Add stdbool.
87546         * modules/getpass: Add getpass.h.
87547
87548 2004-08-08  Simon Josefsson  <jas@extundo.com>
87549
87550         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87551         Check getpass declaration.
87552
87553 2004-08-08  Simon Josefsson  <jas@extundo.com>
87554
87555         * lib/xgethostname.c: Don't include error.h (not used).
87556
87557         * lib/getpass.h: Add.
87558         * lib/getpass.c: Include getpass.h first.
87559
87560 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87561
87562         * lib/xalloc-die.c: New file.
87563         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87564         All uses removed.
87565         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87566         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87567         xalloc-die.c.
87568         (_, N_, xalloc_die): Move to xalloc-die.c.
87569         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87570         so that we needn't mess with xalloc_msg_memory_exhausted.
87571
87572         * lib/sha1.h: Renamed from sha.h.
87573         (SHA1_H): Renamed from _SHA_H.
87574         (sha1_ctx): Renamed from sha_ctx.
87575         (sha1_init_ctx): Renamed from sha_init_ctx.
87576         (sha1_process_block): Renamed from sha_process_block.
87577         (sha1_process_bytes): Renamed from sha_process_bytes.
87578         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87579         (sha1_read_ctx): Renamed from sha_read_ctx.
87580         (sha1_stream): Renamed from sha_stream.
87581         (sha1_buffer): Renamed from sha_buffer.
87582         * lib/sha1.c: Likewise; renamed from sha.c.
87583         Do not include <sys/types.h>.
87584         Include <stddef.h> rather than <stdlib.h>.
87585
87586 2004-08-08  Bruno Haible  <bruno@clisp.org>
87587
87588         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87589         FILESYSTEM_PREFIX_LEN.
87590         * lib/progreloc.c: Likewise.
87591         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87592
87593 2004-08-06  Simon Josefsson  <jas@extundo.com>
87594
87595         * modules/progname (Depends-on): Don't depend on stdbool.
87596
87597 2004-08-06  Simon Josefsson  <jas@extundo.com>
87598
87599         * modules/getsubopt: New file.
87600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87601         getsubopt.
87602
87603 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87604
87605         More merge from coreutils.
87606
87607         * m4/utimens.m4, m4/utimecmp.m4: New files.
87608         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87609         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87610         prereq.m4, sha.m4: Import changes from coreutils.
87611
87612 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         More merge from coreutils.
87615         * modules/raise, modules/readtokens0, modules/utimens:
87616         * modules/utimecmp, module/xnanosleep: New files.
87617         * modules/strftime: Add lib/strftime.h.
87618         Change include from <time.h> to "strftime.h".
87619         * modules/yesno: Add lib/yesno.h.
87620         * modules/backupfile: Remove lib/addext.c.
87621         * modules/euidaccess: Add stat-macros.h.
87622         * modules/canonicalize, modules/euidaccess,
87623         modules/filemode, modules/lchown, modules/makepath,
87624         modules/rmdir, modules/stat: Likewise.
87625
87626 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         Merge from tar.
87629         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87630         SIZE_MAX is a valid preprocessor constant.
87631         (__argp_basename): Change from "#ifndef _LIBC"
87632         to "#ifndef __argp_short_program_name", so that
87633         we don't compile these functions for tar.
87634
87635         More merges from coreutils.
87636         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87637         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87638         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87639         * lib/addext.c: Remove; no longer needed.
87640         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87641         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87642         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87643         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87644         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87645         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87646         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87647         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87648         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87649         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87650         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87651         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87652         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87653         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87654         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87655         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87656         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87657         Import changes from coreutils.
87658
87659 2004-08-05  Simon Josefsson  <jas@extundo.com>
87660
87661         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87662
87663 2004-08-05  Simon Josefsson  <jas@extundo.com>
87664
87665         * m4/getsubopt.m4: New file.
87666
87667 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87668
87669         Merge from coreutils.
87670
87671         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87672         * m4/getcwd-path-max.m4: New files.
87673
87674         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87675         FILESYSTEM_PREFIX_LEN ->
87676         FILE_SYSTEM_PREFIX_LEN.
87677         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87678         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87679         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87680         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87681
87682         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87683         prerequisite modules now handle the DOS stuff.
87684         Don't check for unistd.h.
87685
87686 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         Merge from coreutils.
87689
87690         * lib/.gdb-history: Remove; this doesn't belong here.
87691
87692         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87693         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87694         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87695         * lib/getcwd.c: New files.
87696
87697         * lib/dirname.h: Include <stdbool.h>.
87698         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87699         for consistency with POSIX terminology.  All uses changed.
87700         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87701         (strip_trailing_slashes): Use bool for booleans.
87702         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87703
87704         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87705         sometimes returns a positive errno value even when it succeeds.
87706         (print_errno_message) [!LIBC]: Fall back on strerror if
87707         __strerror_r fails.
87708
87709         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87710         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87711         (longest_relative_suffix): New function.
87712         (path_concat): Use it.  Assume first argument is not NULL.
87713         Port to DOS.  Omit redundant separators.
87714         Report an error instead of returning NULL.
87715         Use mempcpy instead of memcpy.
87716         (xpath_concat): Remove: not declared or used.
87717
87718         * lib/same.h: Include <stdbool.h>
87719         (same_name): Return bool, not int.
87720         * lib/same.c (same_name): Likewise.
87721         (errno): Don't declare; we assume C89 or better now.
87722
87723         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87724         if not already defined.
87725
87726         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87727         * lib/dup-safer.c (errno): Likewise.
87728
87729 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87730
87731         Merge from coreutils.
87732         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87733         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87734         * modules/path-concat: Don't depend on strdup.
87735
87736 2004-08-03  Simon Josefsson  <jas@extundo.com>
87737
87738         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87739         * lib/progname.h: Don't include stdbool.h.
87740
87741 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87742
87743         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87744         * MODULES.html.sh (func_all_modules): Remove fatal.
87745
87746 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87747
87748         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87749
87750 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87751
87752         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87753         working.
87754
87755 2004-08-02  Simon Josefsson  <jas@extundo.com>
87756
87757         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87758         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87759         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87760
87761 2004-08-01  Simon Josefsson  <jas@extundo.com>
87762
87763         * lib/xgetdomainname.c: Include stdlib.h, for free().
87764
87765 2004-07-19  Bruno Haible  <bruno@clisp.org>
87766
87767         * MODULES.html.sh (func_all_modules): Add dummy.
87768
87769 2004-07-16  Simon Josefsson  <jas@extundo.com>
87770
87771         * modules/dummy: New file.
87772
87773 2004-07-16  Simon Josefsson  <jas@extundo.com>
87774
87775         * lib/dummy.c: New file.
87776
87777 2004-07-16  Bruno Haible  <bruno@clisp.org>
87778
87779         * lib/backupfile.h: Add extern "C" for C++.
87780         * lib/closeout.h: Likewise.
87781         * lib/copy-file.h: Likewise.
87782         * lib/findprog.h: Likewise.
87783         * lib/full-write.h: Likewise.
87784         * lib/pathname.h: Likewise.
87785         * lib/progname.h: Likewise.
87786         * lib/stpcpy.h: Likewise.
87787         * lib/stpncpy.h: Likewise.
87788         * lib/strcase.h: Likewise.
87789         * lib/strstr.h: Likewise.
87790         * lib/xalloc.h: Likewise.
87791
87792         * lib/mbswidth.h: Add extern "C" for C++.
87793         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87794
87795 2004-07-13  Robert Millan  <robertmh@gnu.org>
87796
87797         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87798
87799 2004-07-09  Simon Josefsson  <jas@extundo.com>
87800
87801         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87802         failed without this.)
87803
87804 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * modules/chown (Files): Add lib/fchown-stub.c, since
87807         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87808
87809 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87810
87811         * lib/fchown-stub.c: New file.
87812
87813 2004-06-24  Jim Meyering  <jim@meyering.net>
87814
87815         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87816
87817 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87818
87819         * modules/argz: Omit "#include".
87820
87821         * MODULES.html.sh (func_all_modules): Add calloc, to match
87822         2004-06-01 addition of calloc module.
87823
87824 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87825
87826         * m4/argz.m4: New file, which is autoupdated from libtool.
87827
87828 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87829
87830         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87831         libtool.
87832
87833 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * config/srclist-update: Don't insist on "USA." before the
87836         close-comment, as libtool omits the period and puts the */ on a
87837         separate line.
87838         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87839         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87840
87841 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87842
87843         * modules/argz: New file.
87844         * MODULES.html.sh (func_all_modules): Add argz.
87845
87846 2004-06-12  Jim Meyering  <jim@meyering.net>
87847         and  Paul Eggert  <eggert@cs.ucla.edu>
87848
87849         * modules/hash (Files): Add lib/xalloc.h.
87850         * modules/pipe (Depends-on): Add wait-process.
87851         * modules/stat (Depends-on): Add xalloc.
87852         * modules/userspec (Files): Add lib/userspec.h.
87853         * modules/xstrto
87854
87855         Upgrade from gettext-0.13.
87856         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87857         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87858         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87859
87860 2004-06-10  Jim Meyering  <jim@meyering.net>
87861
87862         * lib/calloc.c: New file.
87863
87864 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87865
87866         * lib/getdate.y (yylex): Allow space between sign and number.
87867         Problem reported by Dan Jacobson.
87868
87869 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87870
87871         Merge from coreutils CVS.
87872
87873         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87874         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87875         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87876         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87877         xstrtol.m4: Fix copyright date and/or serial number.
87878
87879         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87880         See if we need an fchown replacement.
87881         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87882         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87883         and use the replacement function if we detect either defect.
87884
87885         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87886         gl_UTIMECMP.
87887
87888 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87889         and  Jim Meyering  <jim@meyering.net>
87890
87891         Merge from coreutils CVS.
87892
87893         * lib/stat-macros.h: New file, with contents from file-type.h
87894         and coreutils' system.h.
87895         * lib/file-type.c: Include "stat-macros.h".
87896         * lib/file-type.h (file_type): Move all macro definitions to new file,
87897         stat-macros.h.
87898
87899         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87900         Wrap old code with this conditional.
87901         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87902         function that does not dereference symlinks.
87903         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87904
87905         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87906         dependency problems.
87907         (xreadlink): Accept new arg SIZE, for efficiency.
87908         All decls and uses changed.
87909         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87910
87911         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87912         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87913
87914         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87915         sysexits.h.
87916
87917 2004-06-01  Jim Meyering  <jim@meyering.net>
87918
87919         * m4/calloc.m4: New file.
87920
87921 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87922
87923         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87924         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87925         Also, fix a typo in a diagnostic.
87926
87927 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87928
87929         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87930         or AC_FUNC_REALLOC.
87931
87932 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87933
87934         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87935         macros to be defined.
87936         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87937         the allocator returns NULL because the requested size is zero.
87938
87939 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87940
87941         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87942         var.  Add comment explaining why libc still defines it.  This
87943         merges the following patch from glibc:
87944         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87945
87946 2004-05-20  Andreas Schwab  <schwab@suse.de>
87947
87948         * m4/free.m4: Replace free if it not known to work, not the other
87949         way round.
87950
87951 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87952
87953         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87954         present in glibc since revision 1.1 of this file.
87955         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87956         obstack_alignment_mask, obstack_alloc, obstack_base,
87957         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87958         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87959         obstack_grow0, obstack_init, obstack_int_grow,
87960         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87961         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87962         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87963         nonexistent functions.
87964
87965 2004-05-18  Karl Berry  <karl@gnu.org>
87966
87967         * config/srclist.txt: break link for vasnprintf.c.
87968
87969 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87970
87971         Port obstack to the AS/400, where pointers are 16 bytes wide and
87972         you cannot cast an integer to a valid pointer.  This patch is
87973         currently waiting to be integrated into glibc; see
87974         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87975
87976         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87977         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87978         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87979         (struct obstack): temp member is now a union of a pointer and
87980         an integer, instead of an integer.  All integer uses changed.
87981         This does not affect the physical layout of struct obstack,
87982         except on hosts (like the AS/400) where the size or alignment of
87983         void * is greater than that of ptrdiff_t.
87984         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87985         __STDC__)]: Store temporary in pointer member of union, not
87986         integer member.
87987         * lib/obstack.c: Include <stddef.h>, for offsetof.
87988         (struct fooalign): Remove; it doesn't need a name.
87989         (union fooround): Change double to long double, and add void *.
87990         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87991         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87992         not a macro.  Hence the values are always int; so remove all
87993         casts-to-int in uses.
87994
87995 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87996
87997         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87998         we can get this patch merged into glibc.
87999
88000 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88001             Paul Eggert  <eggert@cs.ucla.edu>
88002
88003         * m4/argp: Depend on alloca.
88004
88005 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88006             Paul Eggert  <eggert@cs.ucla.edu>
88007
88008         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88009         freecoding.
88010
88011 2004-05-17  Bruno Haible  <bruno@clisp.org>
88012
88013         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88014         precision that consists of a '.' followed by an empty digit string.
88015         Patch by Tor Lillqvist <tml@iki.fi>.
88016
88017 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88018
88019         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88020         for backward compatibility with older code.  We need our own
88021         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88022         it under some other name, and our alloca.h will define it.
88023
88024 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88025             Derek Price  <derek@ximbiot.com>
88026
88027         * lib/alloca.c: Include <alloca.h>, to get our interface.
88028         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88029         include <alloca.h> first.  Use C89 prototype for alloca; this
88030         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88031         Use #elif for simplicity, since we can assume C89 now.
88032         Don't try to source the system alloca.h since it will not be found
88033         and to prevent recursively including its replacement.
88034         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88035         * lib/regex.c: Likewise.
88036
88037 2004-05-16  Derek Price  <derek@ximbiot.com>
88038             Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         getline cleanup.  This changes the getndelim2 API: both order of
88041         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88042         no delimiter).
88043
88044         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88045         interface does that.
88046         (getline): Always use getdelim, so that we don't have two
88047         copies of this code.
88048         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88049         if available.
88050         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88051         (GETNDELIM2_MAXIMUM): New macro.
88052         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88053         instead of the old practice of delim2==0.  All callers changed.
88054         Return -1 on overflow, instead of returning junk.
88055         Do not set *linesize unless allocation succeeds.
88056         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88057         that we include sys/types.h.
88058         * lib/getnline.h: Likewise.
88059         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88060         (getndelim2): Reorder arguments.
88061         * lib/getnline.c (getnline, getndelim):
88062         Don't discard the NMAX argument.
88063         (getnline): Invoke getndelim, to avoid code duplication.
88064         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88065         of (size_t) -1 by callers of the getnline family.
88066
88067 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88068
88069         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88070         Check for gettimeofday.
88071         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88072         Check for settimeofday, stime.
88073
88074 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88075
88076         * lib/nanosleep.c (suspended): Change its type from int to
88077         sig_atomic_t volatile.
88078         (first_call): Make it private to rpl_nanosleep, and have it
88079         be zero initially as that's a bit faster.
88080         (my_usleep): Round up fractional times instead of truncating them,
88081         as this is the usual meaning for 'sleep'.
88082
88083         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88084         doesn't work.
88085         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88086         (ENOSYS): Define if not defined.
88087         (settime): Fall back on stime if it exists and settimeofday fails.
88088         But don't bother with fallbacks if a method fails with errno == EPERM.
88089
88090 2004-05-11  Jim Meyering  <jim@meyering.net>
88091
88092         Prior to this change, the save_cwd caller required read access to the
88093         current directory on most systems (ones with the fchdir function).
88094
88095         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88096         fails, try write-only, and finally, resort to using xgetcwd.
88097
88098 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88099
88100         * lib/obstack.c, obstack.h: Import changes from libc.
88101
88102 2004-04-28  Bruno Haible  <bruno@clisp.org>
88103
88104         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88105         also implicitly appends .exe to executables.
88106         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88107         accepts Windows pathnames.
88108         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88109         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88110         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88111         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88112         Reported by Derek Robert Price <derek@ximbiot.com>.
88113
88114 2004-04-21  Karl Berry  <karl@gnu.org>
88115
88116         * config/srclist.txt (localcharset.c): break sync.
88117
88118 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88119
88120         * m4/host-os.m4: Add a copyright notice.
88121
88122 2004-04-20  Jim Meyering  <jim@meyering.net>
88123
88124         Change UTILS_ to gl_ in AC_DEFINE'd names.
88125         Change utils_- and jm_-prefixed variables, too.
88126         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88127         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88129
88130         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88131         Don't emit trailing blanks.
88132         Also rename jm_-prefixed variables to have gl_ prefix.
88133
88134         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88135         Also rename jm_-prefixed variables to have gl_ prefix.
88136
88137         * m4/jm-macros.m4: Reflect the renamings.
88138         * m4/prereq.m4: Likewise.
88139
88140 2004-04-20  Jim Meyering  <jim@meyering.net>
88141
88142         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88143         memory.
88144
88145 2004-04-20  Jim Meyering  <jim@meyering.net>
88146             Bruno Haible  <bruno@clisp.org>
88147
88148         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88149         memory when realloc fails.
88150
88151 2004-04-19  Jim Meyering  <jim@meyering.net>
88152
88153         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88154         now that readutmp.c may call `free (0)'.
88155
88156 2004-04-19  Bruno Haible  <bruno@clisp.org>
88157
88158         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88159         * m4/inttypes_h.m4: Likewise.
88160         * m4/stdint_h.m4: Likewise.
88161         * m4/intmax_t.m4: Likewise.
88162         * m4/uintmax_t.m4: Likewise.
88163
88164 2004-04-18  Jim Meyering  <jim@meyering.net>
88165
88166         * m4/prereq.m4: Don't forbid jm_ prefix.
88167
88168         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88169         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88170         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88171         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88172         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88173         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88174         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88175         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88176         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88177         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88178         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88179         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88180         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88181         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88182         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88183         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88184         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88185         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88186         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88187
88188 2004-04-18  Jim Meyering  <jim@meyering.net>
88189
88190         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88191         failure, don't leak memory and do call END_UTMP_ENT.
88192
88193 2004-04-16  Jim Meyering  <jim@meyering.net>
88194
88195         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88196         coreutils' stat program.
88197         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88198
88199 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88200
88201         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88202         C89.
88203         (CHAR_BIT): Remove, since we assume C89.
88204         Include <stdint.h> if available, as per current Autoconf CVS advice.
88205
88206 2004-03-31  Jim Meyering  <jim@meyering.net>
88207
88208         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88209         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88210         * m4/xalloc.m4: Likewise.
88211
88212 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88213
88214         Merge from coreutils.
88215
88216         * m4/inttostr.m4: New file.
88217         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88218         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88219         Require gl_CLOCK_TIME.
88220         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88221
88222 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88223
88224         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88225         not bool, to be more consistent with Unix conventions.
88226         Suggested by Bruno Haible.
88227
88228         Merge from coreutils.
88229
88230         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88231         * lib/umaxtostr.c: New files.
88232
88233         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88234         the usual <time.h> dance.
88235         (get_date): Change signature to support fractional time stamps.
88236         All callers changed.
88237         * lib/getdate.y: Include "getdate.h" first, as we can now
88238         assume C89 and don't need to worry about 'const'.
88239         Similarly, include "unlocked-io.h" near start, not in middle.
88240         Include <limits.h>.
88241         (textint.value): Use long int rather than int.
88242         (textint.digits): Use size_t rather than int.
88243         (BILLION, LOG10_BILLION): New constants.
88244         (parser_control): New member rel_ns.  Members day_ordinal,
88245         time_zone, month, day, hour, minutes, rel_year, rel_month,
88246         rel_day, rel_hour, rel_minutes, rel_seconds
88247         are now long int, not int.  Member seconds is now struct timespec,
88248         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88249         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88250         not int.
88251         (%union.intval): Now long int, not int.
88252         New member timespec.
88253         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88254         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88255         (spec): Now is a timespec or an item list.
88256         (timespec, items): New nonterminals.
88257         (time, rel, relunit, number, get_date):
88258         Add support for fractional seconds.
88259         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88260         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88261         (to_hour): First arg is now long int, not int.
88262         (to_year): Returns long int, not int.
88263         Don't treat year -70 like 70.
88264         (tm_diff): Returns long int, not int.
88265         (lookup_word): Use bool instead of int when appropriate.
88266         (yylex): Use size_t for count, not int.
88267         Detect overflow when parsing large integer constants.
88268         Add support for fractions.
88269         (get_date): Make pointers 'const' if possible.
88270         Use more-portable code to detect integer overflow.
88271         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88272         Don't use ctime; it's not reliable if the year has >4 digits.
88273
88274         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88275         This is for compatibility with BSD.
88276
88277         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88278         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88279         From coreutils' system.h.
88280
88281         * lib/userspec.c: Don't include "posixver.h".
88282         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88283         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88284         compatible extension.  Simplify code by removing a boolean int
88285         that was always nonzero if a string was nonnull.
88286
88287 2004-03-30  Jim Meyering  <jim@meyering.net>
88288
88289         Merge from coreutils.
88290
88291         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88292         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88293         on some systems one must include <grp.h> before it.
88294         Reported by Christian Krackowizer.
88295
88296 2004-03-30  Jim Meyering  <jim@meyering.net>
88297
88298         Merge from coreutils.
88299
88300         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88301
88302         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88303         an empty input stream.
88304
88305         * lib/readtokens.c: Include <stdbool.h>.
88306         (readtoken): Use `size_t' rather than int/long.
88307         All callers adjusted.
88308         Use `bool' rather than `int' where appropriate.
88309         Use memset rather than an explicit loop.
88310         Use x2nrealloc rather than xrealloc.
88311         Allow the use of `\0' as a delimiter.
88312         (readtokens): Likewise.
88313         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88314
88315 2004-03-30  Jim Meyering  <jim@meyering.net>
88316
88317         * m4/realloc.m4: Remove file, since now it does no more than
88318         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88319         the `configure.ac' section of module/realloc.
88320         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88321
88322 2004-03-30  Bruno Haible  <bruno@clisp.org>
88323
88324         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88325         nonnull.
88326
88327 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88328
88329         Merge changes to getloadavg.c from coreutils and Emacs.
88330
88331         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88332         Define to an expression, not to the empty string.
88333         Include cloexec.h and xalloc.h.
88334         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88335         Use set_cloexec_flag rather than rolling our own.
88336         * lib/cloexec.c, lib/cloexec.h: New files.
88337
88338 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88339
88340         * m4/cloexec.m4: New file.
88341
88342 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88343
88344         * lib/getopt.h: Sync with libc CVS.
88345
88346 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88347             Bruno Haible  <bruno@clisp.org>
88348
88349         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88350         mbswidth.
88351
88352 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88353             Bruno Haible  <bruno@clisp.org>
88354
88355         * lib/mbswidth.h: Include <wchar.h> only if
88356         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88357         <wchar.h>.
88358         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88359
88360 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88361
88362         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88363         Sync with libc CVS.
88364         * lib/getopt_int.h: New file, also synced from libc.
88365
88366 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88367
88368         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88369         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88370         Bring back getopt.c, getopt.h, getopt1.c.
88371
88372 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88373
88374         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88375         All uses changed.  Check for sa_sigaction member; this fixes
88376         a bug first reported by Jason Andrade in
88377         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88378
88379 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88380
88381         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88382         '#if' expressions.  Unlike the code it replaces, it does not
88383         depend on (defined _SC_PAGESIZE).  However, it does depend on
88384         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88385         first reported by Jason Andrade in
88386         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88387
88388 2004-02-25  Simon Josefsson  <jas@extundo.com>
88389
88390         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88391
88392 2004-02-25  Simon Josefsson  <jas@extundo.com>
88393
88394         * lib/strdup.h: New file.
88395         * lib/strdup.c: Include it.
88396         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88397         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88398
88399 2004-02-23  Karl Berry  <karl@gnu.org>
88400
88401         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88402         (from fencepost.gnu.org:/gd/gnuorg).
88403
88404 2004-02-23  Karl Berry  <karl@gnu.org>
88405
88406         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88407         * config/srclist.txt: add maintain/standards documents.
88408
88409 2004-02-18  Bruno Haible  <bruno@clisp.org>
88410
88411         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88412         Reported by Derek Robert Price <derek@ximbiot.com>.
88413
88414 2004-02-16  Karl Berry  <karl@gnu.org>
88415
88416         * config/mkinstalldirs, install-sh: update from automake.
88417
88418 2004-02-06  Karl Berry  <karl@gnu.org>
88419
88420         * m4/po.m4: update from gettext 0.14.1.
88421
88422 2004-02-06  Karl Berry  <karl@gnu.org>
88423
88424         * lib/config.charset: update from gettext 0.14.1.
88425
88426 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88427
88428         Add comments and code, prompted by suggestions from Bruno Haible
88429         for sh-quote.
88430         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88431         describing the enum quoting_style values.
88432         * lib/quotearg.c (quotearg_alloc): New function.
88433         (quotearg_buffer_restyled): Treat lone { and } as special.
88434         Treat = as special.  Work around bug with older shells
88435         that "see" a '\' that is really the 2nd byte of a multibyte char.
88436         Quote empty string with shell_quoting_style.
88437
88438 2004-02-03  Bruno Haible  <bruno@clisp.org>
88439
88440         * m4/pipe.m4: New file, from GNU gettext.
88441
88442 2004-02-03  Bruno Haible  <bruno@clisp.org>
88443
88444         * lib/pipe.h: New file, from GNU gettext.
88445         * lib/pipe.c: New file, from GNU gettext.
88446
88447 2004-01-27  Bruno Haible  <bruno@clisp.org>
88448
88449         * m4/execute.m4: New file, from GNU gettext.
88450
88451 2004-01-27  Bruno Haible  <bruno@clisp.org>
88452
88453         * lib/execute.h: New file, from GNU gettext.
88454         * lib/execute.c: New file, from GNU gettext.
88455         * lib/w32spawn.h: New file, from GNU gettext.
88456
88457 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88458
88459         Merge from diffutils.
88460
88461         * lib/file-type.c (file_type): Add typed memory objects.
88462         * lib/file-type.h (S_TYPEISTMO): New macro.
88463
88464         * lib/c-stack.h (c_stack_action): Remove argv argument.
88465         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88466         (die): Don't calculate message unless segv_action returns.
88467         (get_stack_location, min_address_from_argv, max_address_from_argv,
88468         volatile stack_base, volatile_stack_size): Remove.
88469         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88470         that every segmentation violation is a stack overflow.  (Ouch!)
88471         See Debian bug 136249 (still outstanding) for more info about why
88472         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88473
88474 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88475
88476         Exit-status fix from coreutils.
88477
88478         Use exit_failure consistently in place of EXIT_FAILURE,
88479         so that program exit statuses are consistent on failure.
88480
88481         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88482         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88483         * lib/argmatch.h: Comment fix to match the above.
88484         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88485         Now a macro referring to exit_failure, instead of a separate
88486         variable.  Include "exitfail.h" to get it.
88487         * lib/xstrtol.h: Include "exitfail.h".
88488         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88489
88490         * lib/long-options.c (parse_long_options): Use prototype
88491         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88492         for clarity.
88493
88494 2004-01-21  Jim Meyering  <jim@meyering.net>
88495
88496         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88497         so as not to conflict with a different-sized __mktime_internal
88498         function in GNU libc.
88499         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88500         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88501
88502 2004-01-20  Karl Berry  <karl@gnu.org>
88503
88504         * config/config.guess: update from config.
88505
88506         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88507
88508 2004-01-20  Bruno Haible  <bruno@clisp.org>
88509
88510         Safer stack allocation.
88511         * lib/setenv.c: Include allocsa.h.
88512         (alloca): Remove fallback definition.
88513         (freea): Remove macro.
88514         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88515         instead of freea.
88516
88517 2004-01-20  Bruno Haible  <bruno@clisp.org>
88518
88519         * m4/eealloc.m4: New file, from GNU gettext.
88520
88521 2004-01-20  Bruno Haible  <bruno@clisp.org>
88522
88523         * m4/allocsa.m4: New file, from GNU gettext.
88524
88525 2004-01-20  Bruno Haible  <bruno@clisp.org>
88526
88527         * lib/xallocsa.h: New file, from GNU gettext.
88528         * lib/xallocsa.c: New file, from GNU gettext.
88529
88530 2004-01-20  Bruno Haible  <bruno@clisp.org>
88531
88532         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88533
88534 2004-01-20  Bruno Haible  <bruno@clisp.org>
88535
88536         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88537         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88538         specially.
88539
88540 2004-01-20  Bruno Haible  <bruno@clisp.org>
88541
88542         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88543         patch.
88544
88545 2004-01-20  Bruno Haible  <bruno@clisp.org>
88546
88547         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88548
88549 2004-01-20  Bruno Haible  <bruno@clisp.org>
88550
88551         * lib/eealloc.h: New file.
88552
88553 2004-01-20  Bruno Haible  <bruno@clisp.org>
88554
88555         * lib/binary-io.h: Avoid warnings on Cygwin.
88556
88557 2004-01-20  Bruno Haible  <bruno@clisp.org>
88558
88559         * lib/allocsa.h: New file, from GNU gettext.
88560         * lib/allocsa.c: New file, from GNU gettext.
88561
88562 2004-01-18  Karl Berry  <karl@gnu.org>
88563
88564         * doc/gpl.texi, doc/lgpl.texi: new files.
88565
88566 2004-01-18  Karl Berry  <karl@gnu.org>
88567
88568         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88569         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88570
88571 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88572
88573         Merge from coreutils.
88574
88575         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88576         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88577         (gl_DEFAULT_POSIX2_VERSION): Move
88578         the documentation from 'configure' into 'config.hin',
88579         so that 'configure --help' isn't burdened by it and
88580         we don't have to worry about its formatting there.
88581         Reword the documentation so that it's more succinct
88582         and can be run together into a single paragraph.
88583         * m4/same.m4 (gl_SAME): Check for pathconf.
88584
88585 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88586
88587         Merge from coreutils.
88588
88589         * lib/posixver.c: Include posixver.h.
88590
88591         * lib/same.c: Include <stdbool.h>, <limits.h>.
88592         (_POSIX_NAME_MAX): Define if not defined.
88593         (MIN): New macro.
88594         (same_name): If file names are silently truncated, report
88595         that the file names are the same if they are the same after
88596         the silent truncation.
88597
88598         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88599         conversion function.
88600         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88601         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88602         longer needed.
88603
88604 2004-01-15  Jim Meyering  <jim@meyering.net>
88605
88606         Merge from coreutils.
88607
88608         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88609         if no library is required.
88610         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88611         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88612         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88613         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88614         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88615         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88616         value, $ac_cv_search_crypt, if it's "none required".
88617         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88618         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88619         not gl_FUNC_GETLOADAVG.
88620         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88621         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88622
88623 2004-01-15  Jim Meyering  <jim@meyering.net>
88624
88625         Merge from coreutils.
88626
88627         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88628         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88629         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88630
88631         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88632         optional configure-time default.
88633
88634         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88635
88636         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88637
88638 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88639
88640         Merge from coreutils.
88641
88642         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88643         value, $ac_cv_search_nanosleep, if it's "none required".
88644
88645 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88646
88647         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88648         with like-named macro in fnmatch.c.
88649         (EXT): Use an internal constant instead.
88650
88651         Merge fnmatch patches from glibc.
88652         * lib/fnmatch.c (mbsinit): Remove define.
88653         Add libc_hidden_ver (__fnmatch, fnmatch).
88654         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88655         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88656
88657 2004-01-14  Karl Berry  <karl@gnu.org>
88658
88659         * config/install-sh: update from automake.
88660
88661 2004-01-13  Karl Berry  <karl@gnu.org>
88662
88663         * config/install-sh: update from automake.
88664
88665 2004-01-09  Karl Berry  <karl@gnu.org>
88666
88667         * config/install-sh: update from automake.
88668
88669 2004-01-05  Karl Berry  <karl@gnu.org>
88670
88671         * config/config.{sub,guess}: update from config.
88672
88673 2003-12-31  Karl Berry  <karl@gnu.org>
88674
88675         * config/depcomp: update from automake.
88676
88677 2003-12-14  Karl Berry  <karl@gnu.org>
88678
88679         * lib/config.charset: update from gettext-runtime.
88680
88681 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88682
88683         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88684         Bug reported by Alfred M. Szmidt.
88685
88686 2003-12-03  Bruno Haible  <bruno@clisp.org>
88687
88688         * m4/gettext.m4: Upgrade from gettext-0.13.
88689         * m4/po.m4: Upgrade from gettext-0.13.
88690         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88691         * m4/intmax.m4: New file, from gettext-0.13.
88692         * m4/printf-posix.m4: New file, from gettext-0.13.
88693
88694 2003-11-29  Karl Berry  <karl@gnu.org>
88695
88696         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88697
88698 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88699             Bruno Haible  <bruno@clisp.org>
88700
88701         * lib/printf-parse.h: Don't include sys/types.h.
88702         (ARG_NONE): New macro.
88703         (char_directive): Change type of *arg_index fields to size_t.
88704         * lib/printf-parse.c: Don't include sys/types.h.
88705         (SSIZE_MAX): Remove macro.
88706         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88707         Remove unnecessary overflow check.
88708         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88709         fields.
88710
88711 2003-11-25  Bruno Haible  <bruno@clisp.org>
88712
88713         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88714
88715 2003-11-25  Bruno Haible  <bruno@clisp.org>
88716
88717         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88718         gt_TYPE_SSIZE_T.
88719
88720 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88721
88722         * modules/alloca: Remove dependency on xalloc.
88723
88724 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88725
88726         * lib/alloca.c: Remove dependency on xalloc module.
88727         (xalloc_die): Remove.
88728         (memory_full) [!defined emacs]: New macro.
88729         [!defined emacs]: Don't include xalloc.h.
88730         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88731         address arithmetic overflows.  Change datatypes a bit to avoid
88732         unnecessary casts.
88733
88734 2003-11-22  Jim Meyering  <jim@meyering.net>
88735
88736         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88737         s/size/size_t/.
88738
88739 2003-11-21  Karl Berry  <karl@gnu.org>
88740
88741         * config/config.{sub,guess}: update from config.
88742
88743 2003-11-18  Karl Berry  <karl@gnu.org>
88744
88745         * config/config.{sub,guess}: update from config.
88746
88747         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88748
88749 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88750
88751         * README: Mention that S+T cannot overflow if S is the size of
88752         an existing object and T is sufficiently small.
88753
88754 2003-11-17  Jim Meyering  <jim@meyering.net>
88755
88756         On systems without utime and without a utimes function capable of
88757         dealing with a NULL struct utimbuf* argument, this utime replacement
88758         could -- in unusual circumstances -- leak a file descriptor.
88759         * lib/utime.c: Include <unistd.h> and <errno.h>.
88760         (utime_null): Be sure to close `fd' and to preserve errno.
88761         Reported by Geoff Collyer via Arnold Robbins.
88762
88763 2003-11-17  Bruno Haible  <bruno@clisp.org>
88764
88765         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88766         (Depends-on): Add xsize.
88767
88768 2003-11-17  Bruno Haible  <bruno@clisp.org>
88769
88770         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88771
88772 2003-11-17  Bruno Haible  <bruno@clisp.org>
88773
88774         * lib/vasnprintf.c (alloca): Remove fallback definition.
88775         (freea): Remove definition.
88776         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88777         Reported by Paul Eggert.
88778
88779 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88780             Bruno Haible  <bruno@clisp.org>
88781
88782         Protect against address arithmetic overflow.
88783         * lib/printf-args.h: Include stddef.h.
88784         (arguments): Change type of field 'count' to size_t.
88785         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88786         'unsigned int' where appropriate.
88787         * lib/printf-parse.h: Include sys/types.h.
88788         (char_directive): Change type of *arg_index fields to ssize_t.
88789         (char_directives): Change type of fields 'count', max_*_length to
88790         size_t.
88791         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88792         (SSIZE_MAX): Define fallback value.
88793         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88794         instead of 'int' where appropriate. Check a_allocated, d_allocated
88795         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88796         * lib/vasnprintf.c: Include xsize.h.
88797         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88798         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88799         overflow. Avoid wraparound when converting a width or precision from
88800         decimal to binary.
88801
88802 2003-11-16  Bruno Haible  <bruno@clisp.org>
88803
88804         Update from GNU gettext.
88805         * lib/printf-parse.c: Generalize to it can be compiled for wide
88806         strings.
88807         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88808         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88809         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88810         SNPRINTF): New macros.
88811         Don't include <alloca.h> if the file is used inside libintl.
88812         (local_wcslen): New function, for Solaris 2.5.1.
88813         (VASNPRINTF): Use it instead of wcslen.
88814
88815 2003-11-16  Bruno Haible  <bruno@clisp.org>
88816
88817         * lib/xsize.h (xmax): New function.
88818         (xsum, xsum3, xsum4): Declare as "pure" functions.
88819
88820 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88821
88822         * modules/xalloc (Files): Undo latest change, since xalloc.h
88823         no longer needs SIZE_MAX or PTRDIFF_MAX.
88824
88825 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88826
88827         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88828         gl_PTRDIFF_MAX.
88829
88830 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88831
88832         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88833         "return", to pacify some unknown compiler.  Problem reported
88834         by Joerg Schilling.
88835
88836 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88837
88838         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88839         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88840         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88841         heuristic is just as accurate as far as we know, and it removes a
88842         dependency on size_max.m4 and ptrdiff_max.m4.
88843
88844 2003-11-11  Bruno Haible  <bruno@clisp.org>
88845
88846         * modules/xsize (Files): Add m4/size_max.m4.
88847         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88848
88849 2003-11-11  Bruno Haible  <bruno@clisp.org>
88850
88851         * m4/size_max.m4: New file.
88852         * m4/ptrdiff_max.m4: New file.
88853         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88854         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88855         (gl_XALLOC): Invoke it.
88856
88857 2003-11-11  Bruno Haible  <bruno@clisp.org>
88858
88859         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88860         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88861         defined.
88862
88863 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88866         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88867         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88868         From Bruno Haible.
88869         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88870         not (size_t) -1, since it's defined here.
88871
88872 2003-11-09  Karl Berry  <karl@gnu.org>
88873
88874         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88875
88876 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88877
88878         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88879         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88880         Reject sizes of exactly SIZE_MAX bytes.
88881         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88882         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88883
88884 2003-11-05  Bruno Haible  <bruno@clisp.org>
88885
88886         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88887         SIZE_MAX defined in <limits.h> on Solaris.
88888
88889 2003-11-04  Jim Meyering  <jim@meyering.net>
88890
88891         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88892         variable names, rather than @VAR@.
88893         * modules/poll: Likewise.
88894
88895 2003-11-04  Bruno Haible  <bruno@clisp.org>
88896
88897         * modules/xsize: New file.
88898         * modules/linebreak: Depend on xsize.
88899         * MODULES.html.sh (func_all_modules): Add xsize.
88900
88901 2003-11-04  Bruno Haible  <bruno@clisp.org>
88902
88903         * m4/xsize.m4: New file.
88904
88905 2003-11-04  Bruno Haible  <bruno@clisp.org>
88906
88907         * lib/xsize.h: New file.
88908         * lib/linebreak.c: Include xsize.h.
88909         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88910         argument for overflow.
88911         Suggested by Paul Eggert.
88912
88913 2003-11-03  Karl Berry  <karl@gnu.org>
88914
88915         * config/config.{guess,sub}: update from config.
88916
88917 2003-11-03  Jim Meyering  <jim@meyering.net>
88918
88919         * modules/userspec (lib_SOURCES): Add userspec.h.
88920         (Include): Add "userspec.h".
88921         Improve description.
88922
88923 2003-11-03  Jim Meyering  <jim@meyering.net>
88924
88925         * lib/userspec.c: Include "userspec.h".
88926         * lib/userspec.h: New file.
88927
88928 2003-11-03  Bruno Haible  <bruno@clisp.org>
88929
88930         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88931
88932 2003-11-03  Bruno Haible  <bruno@clisp.org>
88933
88934         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88935         available, to avoid (extremely rare) race condition.
88936         Suggested by Paul Eggert.
88937
88938 2003-11-02  Karl Berry  <karl@gnu.org>
88939
88940         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88941
88942 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88943
88944         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88945         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88946         (read_filesystem_list): Set and use me_type_malloced.
88947         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88948         whatever the type happens to be), for brevity and consistency.
88949         Check for size calculation overflow on Alphas running OSF/1.
88950
88951 2003-10-31  Jim Meyering  <jim@meyering.net>
88952
88953         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88954
88955         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88956
88957 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88958             Bruno Haible  <bruno@clisp.org>
88959
88960         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88961         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88962
88963 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88964
88965         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88966         netbsd*-gnu*.  Suggested by Robert Millan.
88967
88968 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88969
88970         * modules/group-member: Depend on stdbool.
88971
88972 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88973
88974         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88975
88976 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88977
88978         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88979         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88980         after the 'gnu' in these cases.  This fixes some bugs in the
88981         previous change, and is based on suggestions by Robert Millan.
88982
88983 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88984
88985         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88986         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88987         no longer needed.
88988         * lib/quotearg.c (quotearg_n_options): Use it.
88989         * lib/group-member.c: Include <stdbool.h>.
88990         (free_group_info): Arg is now const *; don't free arg.
88991         (get_group_info): Now returns bool and accepts struct group_info *,
88992         rather than returning a malloc'ed struct group_info *.
88993         All uses changed.  Check for overflow in internal size calculation.
88994
88995         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88996         rather than xmalloc/xrealloc.
88997         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88998         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88999         conformance bug: the old code used a pointer after freeing the
89000         storage that it addressed.
89001         * lib/hash.c (hash_initialize): Simplify the code by using
89002         xalloc_oversized rather than doing it by hand.
89003         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89004         the buffer preserved.  Use free and xmalloc instead.
89005         * lib/quotearg.c (quotearg_n_options): Likewise.
89006         Use a simpler test for size overflow.  Don't use xalloc_oversized
89007         because unsigned int might be wider than size_t (!); this suggests
89008         that we should switch from unsigned int to size_t for slot numbers.
89009
89010 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89011
89012         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89013         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89014         NetBSD kernels.  Requested by Richard Stallman.
89015
89016 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89017
89018         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89019         to allocate the returned structure.  Do not allocate a subarray,
89020         as x2nrealloc will do that.
89021         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89022         instead of xnrealloc.
89023         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89024
89025 2003-10-27  Bruno Haible  <bruno@clisp.org>
89026
89027         * lib/stdbool_.h: Better support for BeOS.
89028
89029 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89030
89031         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89032         now uses inline.
89033
89034 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89035
89036         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89037         callers that want to do their own size-overflow checking.  Include
89038         <stdbool.h>, since xalloc_oversized returns bool.
89039         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89040         to use xalloc_oversized.
89041
89042         Add two functions x2realloc, x2nrealloc, for programs that grow
89043         arrays dynamically by doubling their sizes.
89044         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89045         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89046         New functions.
89047
89048         Port to C99 semantics for 'inline' of external functions.
89049         Bug reported by Bruno Haible.
89050         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89051         with the old contents of xnmalloc.
89052         (xnmalloc, xmalloc): Use it.
89053         (xnrealloc_inline): New static inline function,
89054         with the old contents of xnrealloc.
89055         (xnrealloc, xrealloc): Use it.
89056
89057         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89058         that.
89059
89060 2003-10-26  Karl Berry  <karl@gnu.org>
89061
89062         * config/srclist.txt (COPYING.DOC): no longer available from
89063         /gd/gnuorg; don't know where the ultimate source is.
89064
89065 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89066
89067         Fix several address-calculation bugs in the hash modules,
89068         plus some minor code cleanup.
89069
89070         * lib/hash.h: Include <stdbool.h>, for bool.
89071         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89072         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89073         hash_get_n_entries, hash_get_max_bucket_length,
89074         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89075         hash_rehash): Use size_t rather than unsigned.
89076         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89077         hash_get_n_buckets_used, hash_get_n_entries,
89078         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89079         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89080         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89081         Likewise.
89082         (SIZE_MAX): Define if not defined.
89083         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89084         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89085         hash_print):
89086         Use const * when possible.
89087         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89088         (check_tuning): Fix bug: if tuning parameters were very close to
89089         0 or 1, rounding errors could have caused subscript violations.
89090         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89091         (hash_initialize): Add 'fail:' label
89092         to free table and return NULL, and use it to simplify code.
89093         Use calloc rather than clearing the storage ourself.
89094         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89095         buffer size calculations.
89096         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89097         Include <stddef.h>, for size_t.
89098         * lib/hash-pjw.c (hash_pjw): Likewise.
89099         Switch to method described by Bruno Haible.
89100         Include <limits.h>, for CHAR_BIT.
89101         (SIZE_BITS): New macro.
89102
89103 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89104
89105         * m4/getline.m4 (AM_FUNC_GETLINE):
89106         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89107         hosts.  Problem reported by Derek Robert Price in
89108         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89109         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89110         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89111
89112 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89113
89114         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89115         ceiling the allocation at NMAX bytes rather than silently
89116         discarding input bytes before NMAX is reached.  This makes
89117         a difference only if NMAX exceeds SIZE_MAX / 2.
89118
89119         * lib/obstack.c: Merge from glibc.
89120         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89121         Add libc_hidden_def (_obstack_newchunk).
89122         (_obstack_free) [! defined _LIBC]: Remove.
89123         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89124         a clone of the function body.
89125         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89126         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89127
89128         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89129         glibc.
89130         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89131         arg to memcpy.
89132
89133         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89134         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89135         Don't use lvalue casts, as GCC plans to remove support for them
89136         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89137         was also present in the non-GCC version, indicating that this
89138         code had always been buggy and had never been widely used.
89139         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89140         Use the fast variant of each macro, rather than copying the
89141         definiens of the fast variant; that way, we'll be more likely to
89142         catch future bugs in the fast variants.
89143
89144 2003-10-20  Bruno Haible  <bruno@clisp.org>
89145
89146         * modules/wait-process: New file.
89147         * MODULES.html.sh (func_all_modules): Add wait-process.
89148
89149 2003-10-20  Bruno Haible  <bruno@clisp.org>
89150
89151         * m4/wait-process.m4: New file.
89152
89153 2003-10-20  Bruno Haible  <bruno@clisp.org>
89154
89155         * lib/wait-process.h: New file, from GNU gettext.
89156         * lib/wait-process.c: New file, from GNU gettext.
89157
89158 2003-10-19  Jim Meyering  <jim@meyering.net>
89159
89160         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89161         HPUX 10.20.
89162
89163 2003-10-18  Karl Berry  <karl@gnu.org>
89164
89165         * config/config.guess: update from config.
89166
89167 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89168
89169         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89170         (getgroups): First arg is int, not size_t.
89171         Don't let 'free' mangle errno.
89172
89173 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89174
89175         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89176
89177 2003-10-16  Karl Berry  <karl@gnu.org>
89178
89179         * config/config.{guess,sub}: update from config.
89180
89181 2003-10-16  Jim Meyering  <jim@meyering.net>
89182
89183         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89184         memcpy.
89185
89186 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89187
89188         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89189         (SIZE_MAX): Remove.
89190         (new_exclude, add_exclude_file): Initial size no longer needs to
89191         be a power of 2.
89192         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89193         our own address arithmetic overflow checking.
89194
89195         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89196         (fnmatch): Do not alloca more than 2000 wide characters;
89197         instead, use malloc for large buffers.
89198         Check for address arithmetic overflow, and return -1
89199         with errno set to ENOMEM in that case.
89200         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89201         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89202         instead, return -1.  Check for address arithmetic overflow.
89203
89204 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89205
89206         Handle invalid suffixes and overflow independently, so that
89207         callers can treat them independently as needed.  Fix some bugs in
89208         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89209         suffix for a human-readable blocksize.  The major caller-visible
89210         change is the addition of a new
89211         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89212         that both overflow and suffix chars were found.
89213
89214         * lib/human.c (humblock): Don't check separately for invalid suffix
89215         char; that is xstrtoumax's job (now that its bug is fixed).
89216         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89217         INTMAX_MAX]: New macros.
89218         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89219         TYPE_MAXIMUM): New macros.
89220         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89221         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89222         if overflow occurs, as it's what __strtol does and it's more useful
89223         in practice.
89224         (__xstrtol): If __strtol reports some error other than ERANGE,
89225         reflect it to the caller as LONGINT_INVALID.  If it reports
89226         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89227         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89228         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89229         value.
89230         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89231         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89232         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89233         [defined UINTMAX_MAX]: New macros.
89234
89235 2003-10-14  Bruno Haible  <bruno@clisp.org>
89236
89237         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89238
89239 2003-10-14  Bruno Haible  <bruno@clisp.org>
89240
89241         * m4/sig_atomic_t: New file, from GNU gettext.
89242         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89243
89244 2003-10-14  Bruno Haible  <bruno@clisp.org>
89245
89246         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89247         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89248         Also use volatile where needed.
89249
89250 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89251
89252         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89253         Change maintainer from Bruno Haible to 'all'.
89254
89255 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89256
89257         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89258
89259 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89260
89261         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89262         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89263         and define in terms of the other primitives.
89264         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89265         (SIZE_MAX): Define if not already defined.
89266         (array_size_overflow): New function.
89267         (xalloc_die): Abort instead of exiting if 'error' returns.
89268         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89269         (xmalloc, xrealloc): Use them.
89270         (xcalloc): Check for address arithmetic overflow.
89271         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89272         a bit faster than strcpy.
89273
89274 2003-10-10  Simon Josefsson  <jas@extundo.com>
89275
89276         * modules/argp (Depends-on): Add restrict and strcase.
89277
89278 2003-10-10  Simon Josefsson  <jas@extundo.com>
89279
89280         * m4/argp.m4: Add AC_C_INLINE.
89281
89282 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89283
89284         Merge getpass from libc, plus a few fixes.
89285
89286         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89287         Include <stdbool.h>.
89288         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89289         __fsetlocking to empty.
89290         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89291         do include <bits/libc-lock.h>.
89292         Do not include <fcntl.h>; not needed.
89293         [_LIBC]: Include <wchar.h>.
89294         (NOTCANCEL_MODE): New macro.
89295         (flockfile, funlockfile) [_LIBC]: New macros.
89296         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89297         [!_LIBC]: New macros.
89298         (call_fclose): New function.
89299         (getpass): Use it.  Save tty stream separately; this simplifies the
89300         code and makes it more reliable if stdin happens to equal stdout.
89301         Invoke __fsetlocking on tty.
89302         Handle thread cancellation if needed.
89303         Namespace cleanup (use __tcgetattr, __getline).
89304         Use bool for Booleans.
89305         [USE_IN_LIBIO]: Handle wide streams.
89306         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89307         stream might go where.
89308
89309         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89310         doesn't have to include <stdio.h> before us.
89311         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89312         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89313         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89314         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89315         if not declared, so that we can use getpass.c code from libc without
89316         rewriting it.
89317         (flockfile, ftrylockfile, funlockfile): New macros.
89318
89319 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89320
89321         * modules/getpass: Depend on stdbool.
89322
89323 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89324
89325         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89326
89327 2003-10-07  Karl Berry  <karl@gnu.org>
89328
89329         * config/config.{guess,sub}: update from config.
89330
89331 2003-10-06  Jim Meyering  <jim@meyering.net>
89332             Bruno Haible  <bruno@clisp.org>
89333
89334         This lets translators provide better translations for the
89335         "Written by ..." part of --version output.
89336         * lib/version-etc.h: Include stdarg.h.
89337         (version_etc_copyright): Declare as readonly.
89338         (version_etc): Make this function variadic with a NULL-terminated list
89339         of author name strings.
89340         (version_etc_va): New declaration.
89341         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89342         (version_etc_copyright): Declare as readonly.
89343         (version_etc_va): New function. Provide a different translatable string
89344         for each possible number of authors < 10. Abbreviate when there are 10
89345         authors or more.
89346         (version_etc): Make this function variadic. Call version_etc_va.
89347         Suggestion from Gary V. Vaughan.
89348
89349         * lib/long-options.h (parse_long_options): Change prototype: the
89350         authors string is moved to the end and becomes variadic.
89351         * lib/long-options.c: Include stdarg.h.
89352         (parse_long_options): Make this function variadic, too.
89353         Call version_etc_va, not version_etc.
89354
89355 2003-10-06  Bruno Haible  <bruno@clisp.org>
89356
89357         * modules/version-etc-2: Remove file.
89358         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89359
89360 2003-10-06  Bruno Haible  <bruno@clisp.org>
89361
89362         * modules/fatal-signal: New file.
89363         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89364
89365 2003-10-06  Bruno Haible  <bruno@clisp.org>
89366
89367         * m4/fatal-signal.m4: New file.
89368         * m4/signalblocking.m4: New file, from GNU gettext.
89369
89370 2003-10-06  Bruno Haible  <bruno@clisp.org>
89371
89372         * lib/version-etc-2.h: Remove file.
89373         * lib/version-etc-2.c: Remove file.
89374
89375 2003-10-06  Bruno Haible  <bruno@clisp.org>
89376
89377         * lib/fatal-signal.h: New file, from GNU gettext.
89378         * lib/fatal-signal.c: New file, from GNU gettext.
89379
89380 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89381
89382         * README: Rework advice for preventing empty .o files.
89383         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89384         not <sys/types.h>.
89385
89386 2003-10-04  Karl Berry  <karl@gnu.org>
89387
89388         * lib/argp*: update from libc.
89389
89390 2003-10-04  Karl Berry  <karl@gnu.org>
89391
89392         * config/config.{guess,sub}: update from config.
89393
89394 2003-10-02  Bruno Haible  <bruno@clisp.org>
89395
89396         * modules/lchown (Include): Add lchown.h.
89397         * modules/time_r (Include): Use "..." syntax.
89398         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89399
89400 2003-10-01  Simon Josefsson  <jas@extundo.com>
89401
89402         * MODULES.html.sh (func_all_modules): Move gethostname from section
89403         'based on' to section 'lacking' POSIX:2001.
89404
89405 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89406
89407         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89408         to output mode on the same stream.
89409
89410 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89411
89412         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89413         Fix arg typo in previous patch.
89414
89415 2003-09-28  Jim Meyering  <jim@meyering.net>
89416
89417         * lib/error.c: Correct cpp indentation.
89418
89419 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89420
89421         * modules/free: New file.
89422
89423 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89424
89425         * m4/free.m4: New file.
89426
89427 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89428
89429         * lib/minmax.h (MIN, MAX)
89430         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89431         Omit the special code that used __typeof__, since we worry that
89432         it could be more trouble than it's worth.  See:
89433         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89434         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89435
89436         * lib/free.c: New file.
89437
89438 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89439
89440         Trivial fixes to Makefile.am parts of module listings.
89441         * modules/strstr: Append strstr.h to lib_SOURCES.
89442         * modules/strcase: Likewise, for strcase.h.
89443
89444 2003-09-27  Karl Berry  <karl@gnu.org>
89445
89446         * config/mkinstalldirs: update from automake.
89447
89448 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89449
89450         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89451         (error_tail): Do not loop, reallocating temporary buffer, since
89452         the output cannot contain more wide characters than the input
89453         contains bytes, the size must be big enough already.  This avoids
89454         one potential size overflow calculation.  Check for size overflow
89455         when calculating temporary buffer size.  Free temporary buffer
89456         when done, if it was allocated with malloc; this plugs a memory
89457         leak.  Remove casts from void * to pointers, that are no longer
89458         needed now that we're assuming C89 or better.
89459
89460         Merge error changes from glibc.
89461
89462         * lib/error.c, error.h: Update copyright notice header to match glibc.
89463         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89464         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89465         Disable cancellation while printing error.
89466         * lib/error.h: Prepend __ to parameter names.
89467
89468 2003-09-26  Jim Meyering  <jim@meyering.net>
89469
89470         * lib/error.c (error_tail): Move some declarations
89471         into inner scope where the local variables are used.
89472
89473 2003-09-26  Bruno Haible  <bruno@clisp.org>
89474
89475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89476         stpncpy().
89477         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89478
89479 2003-09-26  Bruno Haible  <bruno@clisp.org>
89480
89481         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89482         (stpncpy): Define as alias for gnu_stpncpy.
89483         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89484
89485 2003-09-25  Simon Josefsson  <jas@extundo.com>
89486
89487         * lib/xgetdomainname.h: New file.
89488         * lib/xgetdomainname.c: New file.
89489
89490 2003-09-25  Simon Josefsson  <jas@extundo.com>
89491             Bruno Haible  <bruno@clisp.org>
89492
89493         * modules/getdomainname: New file.
89494         * modules/xgetdomainname: New file.
89495         * MODULES.html.sh (func_all_modules): Add getdomainname,
89496         xgetdomainname.
89497
89498 2003-09-25  Simon Josefsson  <jas@extundo.com>
89499             Bruno Haible  <bruno@clisp.org>
89500
89501         * m4/getdomainname.m4: New file.
89502
89503 2003-09-25  Simon Josefsson  <jas@extundo.com>
89504             Bruno Haible  <bruno@clisp.org>
89505
89506         * lib/getdomainname.h: New file.
89507         * lib/getdomainname.c: New file.
89508
89509 2003-09-25  Karl Berry  <karl@gnu.org>
89510
89511         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89512
89513 2003-09-25  Karl Berry  <karl@gnu.org>
89514
89515         * config/install-sh: update from automake.
89516
89517 2003-09-25  Bruno Haible  <bruno@clisp.org>
89518
89519         * modules/version-etc-2: New file, from modules/version-etc with
89520         modifications.
89521         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89522
89523 2003-09-25  Bruno Haible  <bruno@clisp.org>
89524
89525         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89526         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89527
89528 2003-09-24  Simon Josefsson  <jas@extundo.com>
89529
89530         * modules/xgethostname: Add xgethostname.h.
89531
89532 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89533
89534         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89535         the buffer associated with the argument.  Bug reported by
89536         Simon Josefsson.
89537
89538 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89539
89540         * README: Document assumptions that 'int' is at least 32 bits
89541         wide, that integer arithmetic is 2's complement without overflow,
89542         that there are no holes in integer values, that adding sizes of
89543         two nonoverlapping objects can't overflow, and that all-bits-zero
89544         yields scalar zero.  Fix spelling and capitalization typos.
89545
89546 2003-09-19  Karl Berry  <karl@gnu.org>
89547
89548         * lib/argp.h: update from libc.
89549
89550 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89551
89552         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89553         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89554         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89555
89556 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89557
89558         * gnulib-tool: Use "test -h", not "test -L", for portability
89559         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89560         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89561         (sed_extract_prog): Issue s commands one-by-one, rather than
89562         using \| in one s command.
89563
89564 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89565
89566         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89567         input error, instead of returning NULL the next time we are called
89568         (and therefore losing track of errno).
89569
89570 2003-09-16  Bruno Haible  <bruno@clisp.org>
89571
89572         * gnulib-tool (func_create_testdir): Warn about duplicated
89573         dependencies.
89574
89575 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89576
89577         * modules/argmatch, modules/fatal, modules/obstack,
89578         modules/xalloc, modules/xgethostname: Sort dependencies by
89579         importance, not alphabetically.
89580
89581 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89582
89583         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89584         fails, so that the caller gets the proper errno.
89585
89586         * lib/readutmp.c (read_utmp): Likewise.
89587         Check for fstat error.  Close stream and free storage
89588         when failing.
89589
89590 2003-09-14  Karl Berry  <karl@gnu.org>
89591
89592         * config/srclist.txt (strdup.c): disable for c89 changes.
89593
89594 2003-09-14  Jim Meyering  <jim@meyering.net>
89595
89596         * lib/getloadavg.c: Correct cpp indentation.
89597         * lib/strdup.c: Likewise.
89598         * lib/vasnprintf.c: Likewise.
89599
89600 2003-09-14  Bruno Haible  <bruno@clisp.org>
89601
89602         * modules/fwriteerror: New file.
89603         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89604
89605 2003-09-14  Bruno Haible  <bruno@clisp.org>
89606
89607         * lib/fwriteerror.h: New file.
89608         * lib/fwriteerror.c: New file.
89609
89610 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89611
89612         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89613         modules/xgethostname, modules/xalloc: Depend on exit.
89614
89615 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89616
89617         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89618
89619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89620         and AC_MINIX, too, so that their extensions are available.
89621
89622         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89623         This macro has been superseded by gl_BACKUPFILE.
89624
89625         More patches to assume C89 or better.
89626
89627         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89628
89629         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89630         unconditionally.
89631         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89632         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89633         Include <string.h>, <stdlib.h> unconditionally.
89634         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89635         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89636         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89637         headers or for string.h.
89638         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89639         or strtoul.
89640
89641         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89642         headers.
89643         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89644         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89645         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89646         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89647         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89648         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89649         memcpy, memset.
89650         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89651         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89652         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89653         strtol.
89654         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89655         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89657         strtoul.
89658
89659 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89660
89661         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89662         * lib/obstack.c [!defined _LIBC]: Likewise.
89663         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89664         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89665         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89666
89667         More changes to assume C89 or better.
89668
89669         * lib/error.c (error_tail): Assume vprintf.
89670
89671         * lib/argmatch.c (getenv): Remove decl.
89672         * lib/progreloc.c (get_full_program_name): Define via prototype.
89673         * lib/setenv.c (clearenv): Likewise.
89674         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89675         needed.
89676         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89677         (malloc, memcpy): Remove decls.
89678         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89679         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89680         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89681         (memcpy): Remove macro.
89682         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89683         (__P): Remove.  All uses removed.
89684         (PTR): Remove.  All uses changed to void *.
89685         (CHAR_BIT, NULL): Remove.
89686         (spaces, zeros, memset_space, memset_zero)
89687         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89688         Remove.
89689         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89690         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89691         Define with prototype.
89692         Remove now-unnecessary prototype decl.
89693         (extra_args_spec): Assume ANSI C.  All uses changed.
89694         (extra_args_spec_iso): Remove.
89695         (my_strftime, emacs_strftimeu): Define via prototype.
89696         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89697         unconditionally.
89698         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89699         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89700         (strtoul, strtol): Remove decls.
89701         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89702         LONG_MAX): Remove.
89703         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89704         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89705         (LOCALE_PARAM_PROTO): New macro.
89706         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89707         (INTERNAL (strtol), strtol): Define with a prototype.
89708         (PARAMS): Remove.  All uses removed.
89709         * lib/tempname.c: Include <string.h> unconditionally.
89710         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89711         * lib/xgethostname.c (main): Define with a prototype.
89712         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89713         Include <stdlib.h> unconditionally.
89714         (calloc, malloc, realloc, free): Remove decls.
89715         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89716         Include <stdlib.h> unconditionally.  Sort include file names.
89717         (strtod): Remove.
89718         (xstrtod): Define with a prototype.
89719         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89720         (strtol, strtoul): Remove decls.
89721
89722 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89723
89724         More patches to assume C89 or better.
89725         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89726         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89727         string.h, memchr, STDC_HEADERS.
89728
89729 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89730
89731         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89732         Include <stdlib.h>, <string.h> unconditionally.
89733         Remove now-unnecessary cast to char *.
89734         * lib/strnlen.c: Include <string.h> unconditionally.
89735         * lib/yesno.c (yesno): Define with a prototype.
89736
89737 2003-09-11  Bruno Haible  <bruno@clisp.org>
89738
89739         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89740
89741 2003-09-10  Jim Meyering  <jim@meyering.net>
89742
89743         * lib/error.c: Correct indentation of cpp directives.
89744
89745 2003-09-10  Bruno Haible  <bruno@clisp.org>
89746
89747         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89748         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89749         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89750         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89751         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89752         <stdlib.h> and <string.h> checks.
89753         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89754         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89755
89756 2003-09-10  Bruno Haible  <bruno@clisp.org>
89757
89758         * lib/strcspn.c: Include <string.h> unconditionally.
89759         * lib/strpbrk.c: Include <string.h> unconditionally.
89760         * lib/strstr.c: Include <string.h> unconditionally.
89761         * lib/unicodeio.c: Include <string.h> unconditionally.
89762         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89763         * lib/unsetenv.c: Likewise.
89764         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89765         * lib/yesno.c: Include <stdlib.h> unconditionally.
89766         (rpmatch): Add prototype.
89767
89768 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89769
89770         More patches to assume C89 or better.
89771         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89772         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89773         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89774         or for string.h.
89775         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89776         stdlib.h.
89777         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89778         C headers.
89779         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89780         string.h.
89781         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89782         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89783         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89784         or for string.h.
89785         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89786         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89787         C headers.
89788         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89789         memcpy.
89790         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89791         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89792         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89793         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89794         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89795         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89796         string.h, free.
89797         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89798         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89799         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89800         C headers, or for string.h.
89801         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89802         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89803         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89804         headers, memory.h, stdlib.h, string.h, strings.h.
89805         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89806         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89807         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89808         strchr.
89809         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89810         headers, memory.h, string.h.
89811         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89812         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89813         free.
89814         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89815         headers.
89816         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89817         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89818         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89819         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89820         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89821
89822 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89823
89824         More K&R removal.
89825
89826         * lib/acosl.c (main): Use a prototype.
89827         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89828         tanl.c: Likewise.
89829
89830         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89831
89832         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89833         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89834         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89835         with a prototype.
89836         * lib/getopt.c (const): Remove macro.
89837         Include <string.h> unconditionally.
89838         (my_index): Remove; all uses changed to strchr.
89839         (strlen): Remove decl.
89840         (exchange): Remove forward decl; no longer needed.
89841         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89842         Define with prototype.
89843         * lib/getopt1.c (const): Remove macro.
89844         (getopt_long, getopt_long_only, main): Define with prototype.
89845
89846         * lib/getugroups.c: Include <string.h> unconditionally.
89847
89848         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89849         (getusershell, setusershell, endusershell, readname, main):
89850         Define with prototypes.
89851
89852         * lib/group-member.c: Include group-member.h first.
89853         Include <stdlib.h> unconditionally.
89854
89855         * lib/hard-locale.c: Include hard-locale.h first.
89856         Include <stdlib.h>, <string.h> unconditionally.
89857
89858         * lib/hash.c (free, malloc): Remove decls.
89859         Include <stdlib.h> unconditionally.
89860
89861         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89862         (getenv): Do not declare.
89863
89864         * lib/idcache.c: Include <string.h> unconditionally.
89865
89866         * lib/long-options.c: Include long-options.h first, to test interface.
89867         Include <stdlib.h> unconditionally.
89868
89869         * lib/makepath.c: Include makepath.h first, to test interface.
89870         Include <stdlib.h> and <string.h> unconditionally.
89871
89872         * lib/linebuffer.c: Include <stdlib.h>.
89873         (free): Remove decl.
89874
89875         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89876         stddef.h. rpl_malloc returns void *, not char *.
89877         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89878         prototype.
89879
89880         * lib/md5.h: Include <limits.h> unconditionally.
89881         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89882         (__P): Remove; all uses removed.
89883         * lib/md5.c: Include "md5.h" first.
89884         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89885         md5_buffer, md5_process_bytes, md5_process_block):
89886         Define with prototypes.
89887         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89888         * lib/sha.c: Include "sha.h" first.
89889         Include <stdlib.h>, <string.h> unconditionally.
89890
89891         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89892         * lib/memcmp.c (__ptr_t): Likewise.
89893         * lib/memrchr.c (__ptr_t): Likewise.
89894         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89895         Include <string.h> unconditionally.
89896         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89897         * lib/memchr.c: Include <stdlib.h> unconditionally.
89898         * lib/memchr.c (LONG_MAX): Remove.
89899         * lib/memrchr.c (LONG_MAX): Likewise.
89900         * lib/memchr.c (__memchr): Define via a prototype.
89901         * lib/memrchr.c (__memrchr): Likewise.
89902         * lib/memcmp.c (__P): Remove, and remove all uses.
89903         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89904         Remove forward decls; no longer needed.
89905         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89906         Use types required by C89 in prototype.
89907
89908         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89909         * lib/savedir.c: Likewise.
89910         * lib/mkdir.c (free): Remove decl.
89911         * lib/rmdir.c (rmdir): Define with a prototype.
89912         * lib/savedir.c: Include savedir.h first, to test interface.
89913
89914         * lib/mktime.c (STDC_HEADERS): Remove.
89915         Include <stdlib.h>, <string.h> unconditionally.
89916
89917         * lib/modechange.c: Include <stdlib.h> unconditionally.
89918         (malloc): Remove decl.
89919
89920         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89921         (free): Remove decl.
89922
89923         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89924         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89925         (This type really should be intptr_t, but that's a C99ism.)
89926         (_obstack_memcpy): Remove: all uses changed to memcpy.
89927         Include <string.h> unconditionally.
89928         (struct obstack): Assume __STDC__ for types of members
89929         chunkfun, freefun, extra_arg.
89930         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89931         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89932         obstack_begin, obstack_specify_allocation,
89933         obstack_specify_allocation_with_arg, obstack_chunkfun,
89934         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89935         Remove unprototyped decls and the macros that use them.
89936         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89937         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89938         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89939         (defined __STDC__ && __STDC__)]:
89940         Remove nonprototyped code.
89941         Include <stdlib.h> unconditionally.
89942         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89943         _obstack_allocated_p, _obstack_free, obstack_free,
89944         _obstack_memory_used, print_and_abort):
89945         Define using prototypes.
89946         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89947         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89948         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89949         obstack_next_free, obstack_object_size, obstack_room) [0]:
89950         Remove unused, unprototyped code.
89951
89952         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89953
89954         * lib/physmem.c (physmem_total, physmem_available, main): Define
89955         with prototypes.
89956
89957         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89958         (main): Define with a prototype.
89959
89960         * lib/posixver.c (getenv): Remove decl.
89961
89962         * lib/putenv.c (malloc): Returns void *, not char *.
89963         Include <string.h> unconditionally.
89964         (strchr, memcpy, NULL): Do not define.
89965
89966         * lib/readtokens.c: Include readtokens.h first, to test interface.
89967         Include <stdlib.h>, <string.h> unconditionally.
89968         (init_tokenbuffer): Define with a prototype.
89969
89970         * lib/regex.c (PARAMS): Remove.  All uses removed.
89971         All uses of _RE_ARGS removed, too.
89972         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89973         unconditionally.
89974         (bzero): Assume memset exists.
89975         (memcmp, memcpy, NULL): Remove.
89976         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89977         char, or assignments to local vars of type signed char.
89978         (init_syntax_once, PREFIX(extract_number_and_incr),
89979         PREFIX(print_partial_compiled_pattern),
89980         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89981         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89982         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89983         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89984         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89985         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89986         wcs_compile_range, byte_compile_range, truncate_wchar,
89987         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89988         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89989         count_mbs_length, wcs_re_match_2_internal,
89990         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89991         PREFIX(alt_match_null_string_p),
89992         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89993         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89994         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89995         now-unnecessary declaration, if any.
89996         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89997         regcomp, regexec):
89998         Remove now-unnecessary casts among pointer types.
89999         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90000
90001         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90002         (free): Remove decl.
90003
90004         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90005
90006         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90007         (free): Remove decl.
90008
90009         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90010         * lib/xgetcwd.c: Likewise.
90011
90012         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90013         (free): Remove decl.
90014
90015         * lib/strchrnul.c (strchrnul): Define with a prototype.
90016         Fix bug: c_in was not converted to char before searching.
90017
90018         The following changes are not K&R related:
90019
90020         * lib/group-member.h: Include <sys/types.h>, so that this file is
90021         self-contained.
90022         * lib/makepath.h: Likewise.
90023
90024         * lib/getusershell.c (readname, default_index, line_size, readname):
90025         Use size_t, not int, for sizes.
90026         (readname): If the size overflows, report an error instead of
90027         looping forever.
90028
90029 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90030
90031         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90032         libc.
90033
90034 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90035
90036         * README: New section: portability guidelines.
90037
90038 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90039
90040         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90041         C89 spec.
90042
90043 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90044
90045         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90046
90047 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90048
90049         Assume C89 or better; remove K&R cruft.
90050         A few of these changes were first proposed by Derek Robert Price
90051         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90052
90053         * lib/addext.c: Include <string.h> unconditionally.
90054         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90055         Don't declare getenv or malloc.
90056
90057         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90058         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90059         (NULL): Remove.
90060         (find_stack_direction, alloca): Use prototypes.
90061
90062         * lib/atexit.c (atexit): Define using a prototype.
90063
90064         * lib/basename.c, dirname.c, stripslash.c:
90065         Include <string.h> unconditionally.
90066
90067         * lib/bcopy.c: Include <stddef.h>.
90068         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90069
90070         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90071
90072         * lib/error.h (error, error_at_line, error_print_progname)
90073         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90074         * lib/error.c: Include error.h first, to check interface.
90075         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90076         (VA_START): Remove; all uses changeed to va_start.
90077         (exit, strerror): Remove decls.
90078         (error_print_progname): Prototype uncondionally.
90079         Don't include <errno.h>; no longer needed.
90080         (private_strerror): Remove.
90081         (error_tail): Always define.
90082         (error, error_at_line): Assume C89 or better; always use prototypes.
90083         * lib/fatal.c: Include "fatal.h" first, to test interface.
90084         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90085         (VA_START): Remove; all uses changed to va_start.
90086         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90087         this case.
90088         (exit): Remove decl.
90089         (fatal): Prototype unconditionally.  Assume va_start works.
90090         Abort at end, to pacify gcc.
90091
90092         * lib/euidaccess.c (main): Define with a prototype.
90093
90094         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90095
90096         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90097
90098         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90099         prototypes.
90100         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90101         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90102         (getenv): Remove decl.
90103         (fnmatch): Define using a prototype.
90104         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90105         (FCT): Define using a prototype.
90106
90107         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90108
90109         * lib/gethostname.c: Include <stddef.h>.
90110         (gethostname): Define with prototype.  Length is size_t, not int.
90111
90112 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90113
90114         Assume C89 or better; remove K&R cruft.
90115         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90116         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90117         string.h, getenv, malloc.
90118         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90119         headers.
90120         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90121         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90122         do not check for strerror.
90123         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90124         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90125         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90126         do not check for doprnt or vprintf.
90127         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90128         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90129
90130 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90131
90132         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90133         getversion.c should have been removed then, but was accidentally
90134         preserved.
90135
90136         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90137         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90138
90139 2003-09-08  Karl Berry  <karl@gnu.org>
90140
90141         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90142                 config, forget about prep.
90143
90144         * config/depcomp, missing: update from automake.
90145
90146 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90147
90148         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90149         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90150
90151 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90152
90153         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90154         copy_tm_result.  Bug reported by Simon Josefsson in
90155         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90156
90157 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90158
90159         * m4/time_r.m4: New file.
90160         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90162         is. Check for timegm declaration.
90163         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90164         Do not check for gmtime_r.
90165         Replace mktime if __mktime_internal does not exist and if mktime
90166         hasn't been replaced already.
90167
90168 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90169
90170         * lib/time_r.c, lib/time_r.h: New files.
90171
90172         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90173         __localtime_r.
90174         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90175         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90176
90177         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90178         __gmtime_r.
90179         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90180         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90181         Include <time_r.h>.
90182
90183         * lib/timegm.c: Switch to glibc implementation, with the following
90184         changes:
90185         [defined HAVE_CONFIG_H]: Include <config.h>.
90186         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90187         (__mktime_internal) [!defined _LIBC]: New decl.
90188         (__gmtime_r) [!defined _LIBC]: New macro and function.
90189         (timegm): Use a prototype, since gnulib assumes C89.
90190         Do not bother declaring tmp to be const, as it's not really usefu.
90191         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90192         (timegm): Declare only if HAVE_DECL_TIMEGM.
90193
90194 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90195
90196         * MODULES.html.sh (func_all_modules): Add time_r.
90197         * modules/time_r: New file.
90198         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90199         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90200
90201 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90202
90203         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90204         Bug reported by Lute Kamstra in
90205         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90206
90207         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90208         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90209         course with correspondingly smaller numbers for tomorrow and
90210         yesterday.  From Tadayoshi Funaba.  Originally installed into
90211         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90212         coreutils merge?).
90213
90214 2003-08-31  Simon Josefsson  <jas@extundo.com>
90215
90216         * modules/timegm: New file.
90217         * MODULES.html.sh (func_all_modules): Add timegm.
90218
90219 2003-08-31  Simon Josefsson  <jas@extundo.com>
90220
90221         * m4/timegm.m4: New file.
90222
90223 2003-08-31  Simon Josefsson  <jas@extundo.com>
90224
90225         * lib/timegm.h: New file.
90226         * lib/timegm.c: New file.  Based on
90227         wget-1.8.2/src/http.c:mktime_from_utc.
90228
90229 2003-08-31  Karl Berry  <karl@gnu.org>
90230
90231         * lib/argp.h: update from libc.
90232
90233 2003-08-28  Bruno Haible  <bruno@clisp.org>
90234
90235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90236         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90237         followed by '#define fnmatch fnmatch_posix' gives an error.
90238
90239 2003-08-28  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90242         warning on QNX, which defines O_BINARY to 000000.
90243
90244 2003-08-27  Jim Meyering  <jim@meyering.net>
90245
90246         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90247         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90248         would fail after 32.  Reported by Danny Levinson.  Details here:
90249         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90250
90251 2003-08-24  Bruno Haible  <bruno@clisp.org>
90252
90253         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90254         MSVC7 <stdio.h> is included later.
90255
90256 2003-08-22  Simon Josefsson  <jas@extundo.com>
90257
90258         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90259
90260 2003-08-20  Karl Berry  <karl@gnu.org>
90261
90262         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90263
90264 2003-08-20  Bruno Haible  <bruno@clisp.org>
90265
90266         * modules/progname: New file.
90267         * MODULES.html.sh (func_all_modules): Add progname.
90268
90269 2003-08-20  Bruno Haible  <bruno@clisp.org>
90270
90271         * lib/progname.h: New file, from GNU gettext.
90272         * lib/progname.c: New file, from GNU gettext.
90273         * lib/progreloc.c: New file, from GNU gettext.
90274
90275 2003-08-19  Jim Meyering  <jim@meyering.net>
90276
90277         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90278         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90279
90280 2003-08-19  Bruno Haible  <bruno@clisp.org>
90281
90282         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90283         more.
90284
90285 2003-08-19  Bruno Haible  <bruno@clisp.org>
90286
90287         * lib/xstrdup.c: Assume <string.h> exists.
90288
90289 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90290
90291         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90292         in makefile rules.
90293
90294 2003-08-18  Jim Meyering  <jim@meyering.net>
90295
90296         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90297         * m4/lib-ld.m4: Likewise.
90298
90299 2003-08-18  Jim Meyering  <jim@meyering.net>
90300
90301         * lib/setenv.h: Indent nested cpp directive.
90302         * lib/vasnprintf.c: Remove trailing blanks.
90303
90304 2003-08-17  Simon Josefsson  <jas@extundo.com>
90305
90306         * modules/xstrndup: New file.
90307         * MODULES.html.sh (func_all_modules): Add xstrndup.
90308
90309 2003-08-17  Simon Josefsson  <jas@extundo.com>
90310
90311         * modules/argp: Fix autoconf macro name. Add more dependencies.
90312
90313 2003-08-17  Simon Josefsson  <jas@extundo.com>
90314
90315         * m4/xstrndup.m4: New file.
90316
90317 2003-08-17  Simon Josefsson  <jas@extundo.com>
90318
90319         * m4/argp.m4: New file.
90320
90321 2003-08-17  Simon Josefsson  <jas@extundo.com>
90322             Bruno Haible  <bruno@clisp.org>
90323
90324         * lib/xstrndup.h: New file.
90325         * lib/xstrndup.c: New file.
90326
90327 2003-08-17  Bruno Haible  <bruno@clisp.org>
90328
90329         * modules/strndup (Files, Include): Add lib/strndup.h.
90330
90331 2003-08-17  Bruno Haible  <bruno@clisp.org>
90332
90333         * modules/euidaccess (Files): Add lib/euidaccess.h.
90334
90335 2003-08-17  Bruno Haible  <bruno@clisp.org>
90336
90337         * lib/strndup.h: New file.
90338
90339 2003-08-17  Bruno Haible  <bruno@clisp.org>
90340
90341         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90342         like AC_GNU_SOURCE.
90343         * modules/extensions (configure.ac): Comment out the invocation of
90344         gl_USE_SYSTEM_EXTENSIONS.
90345
90346 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90347
90348         Merges from coreutils, etc.
90349         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90350         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90351         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90352         fixing a typo.
90353         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90354         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90355
90356 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90357
90358         Document merge from coreutils.
90359         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90360         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90361         * modules/utime: Add m4/utimes-null.m4.
90362
90363 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90364
90365         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90366         space, undoing this 2003-08-12 change:
90367         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90368
90369 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90370
90371         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90372         strtoul.c from libc, undoing this 2003-08-12 change:
90373         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90374
90375 2003-08-16  Jim Meyering  <jim@meyering.net>
90376
90377         Merges from coreutils.
90378         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90379         prefix.  Adjust cache variables similarly.  Create 500 rather than
90380         just 300 files, to exercise bug on Darwin6.5, too.
90381         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90382         $missing_dir.
90383         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90384         AM_SYS_POSIX_TERMIOS.
90385         Reported by mkc@mathdogs.com.
90386         Also change use of $am_cv_sys_posix_termios
90387         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90388         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90389         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90390         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90391         in /proc/mounts until it finds one with matching device number.  This
90392         is unnecessary when the FILE argument *is* a mount point.  No stat call
90393         is necessary in that case.  So, disable the statvfs-testing code on
90394         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90395         as RedHat bug# 84846.
90396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90397         to 1MB, so as not to render systems with no stack size limit (e.g.,
90398         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90399         Include <unistd.h>.  On some systems,
90400         it is required for the definition of _SC_PAGESIZE.
90401
90402 2003-08-16  Jim Meyering  <jim@meyering.net>
90403
90404         Merge from coreutils.
90405         * lib/xstrtoimax.c: #else #if -> #elif.
90406         * lib/xstrtoumax.c: Likewise.
90407
90408 2003-08-16  Jim Meyering  <jim@meyering.net>
90409
90410         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90411         * m4/utimes.m4: Removed.
90412         * m4/utimes-null.m4: Renamed from utimes.m4.
90413
90414         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90415         to 1MB, so as not to render systems with no stack size limit (e.g.,
90416         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90417         Include <unistd.h>.  On some systems,
90418         it is required for the definition of _SC_PAGESIZE.
90419
90420 2003-08-16  Jim Meyering  <jim@meyering.net>
90421         and Paul Eggert  <eggert@cs.ucla.edu>
90422
90423         Merges from coreutils, etc.
90424
90425         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90426         using the latest version from cvs.  This avoids problems with #line
90427         directives using a vendor (Sun) compiler.
90428         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90429         Don't set GETGROUPS_LIB here; now it's
90430         done via getgroups.m4's wrapper function.
90431         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90432         rather than just in sh-util/configure.in, so that the
90433         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90434         same.
90435         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90436         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90437         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90438         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90439         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90440         Remove code that is now done by the newly-required macros.
90441         Append $(EXEEXT) to DF_PROG.
90442         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90443         Do not invoke or require the following here,
90444         since prereq.m4 or some gnulib .m4 now does this for us:
90445         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90446         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90447         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90448         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90449         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90450         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90451         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90452         AC_FUNC_OBSTACK.
90453         Do not replace the following functions, as this is now the job
90454         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90455         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90456         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90457         atexit getpass, strdup, getpagesize.
90458         Replace 'raise'.
90459         Do not check for the following functions, as this is now the job
90460         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90461         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90462         setregid.
90463         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90464         Check for sys/sysctl.h.
90465         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90466         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90467         of checking for ssize_t ourselves.
90468
90469         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90470         Require every macro that gnulib/modules/* suggests for us.
90471         (jm_PREREQ_ADDEXT): New macro.
90472         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90473         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90474
90475         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90476         (gl_PHYSMEM): Use it.
90477         Also check for `table' function.
90478         Check for new headers and functions.
90479         Add check for sys/sysmp.h.
90480         With suggestions from Kaveh Ghazi.
90481         Ignore headers that are present but cannot be compiled.  This
90482         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90483         C 5.4.
90484
90485 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90486
90487         Document merge from coreutils.
90488         * modules/userspec: Depend on posixver.
90489         * modules/strftime: Depend on tzset.
90490
90491 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90492
90493         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90494         rather than tab, after '#' in shell-script copyright notices.
90495         Suggested by Bruno Haible.
90496
90497 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90498
90499         * config/srclist-update: Use three spaces, rather than tab, after '#'
90500         in shell-script copyright notices.  Suggested by Bruno Haible.
90501         Remove unnecessary parenthesization in regular expression.
90502
90503 2003-08-15  Jim Meyering  <jim@meyering.net>
90504
90505         Merge from coreutils.
90506         * lib/xgethostname.c: Include <stdlib.h>.
90507         (xghostname): Don't exit for anything other than memory-related
90508         failure; just return NULL.
90509         * lib/userspec.c: Include "posixver.h".
90510         (parse_user_spec): Accept `.' as a separator only
90511         in pre-POSIX-200112 mode.
90512         * lib/strtoimax.c: Use #elif rather than #else #if.
90513         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90514         Remove function, now that we can rely on a working tzset function.
90515         [!_LIBC]: Ensure that the required autoconf test has been run.
90516         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90517         Use underlying_strftime for %r.
90518         * lib/sha.c: Merge in some clean-up and optimization changes from
90519         glibc.
90520         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90521         Ensure that it is a multiple of 64.
90522         Rearrange loop exit tests so as to avoid performing an
90523         additional fread after encountering an error or EOF.
90524         * lib/realloc.c: Update copyright date.
90525
90526 2003-08-15  Jim Meyering  <jim@meyering.net>
90527         and Paul Eggert  <eggert@twinsun.com>
90528
90529         Merge from coreutils.
90530         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90531         member but strut utmpx does not.  Needed for AIX 4.3.3.
90532         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90533
90534 2003-08-15  Jim Meyering  <jim@meyering.net>
90535         and Paul Eggert  <eggert@cs.ucla.edu>
90536
90537         Merges from coreutils, etc.
90538         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90539         Require gl_FUNC_TZSET_CLOBBER.
90540         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90541         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90542         members.
90543
90544 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90545
90546         Help the merge from coreutils.
90547         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90548         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90549         * m4/tzset.m4: Use it too.
90550
90551 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90552
90553         * modules/tzset: New file.
90554
90555 2003-08-14  Jim Meyering  <jim@meyering.net>
90556
90557         Merges from coreutils.
90558         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90559         variable names, rather than @FNMATCH_H@.
90560         * modules/alloca: Likewise for $(ALLOCA_H).
90561
90562         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90563         the three copies of the literal target, `fnmatch.h'.
90564         * modules/alloca (alloca.h): Likewise.
90565
90566 2003-08-14  Jim Meyering  <jim@meyering.net>
90567
90568         Merge from coreutils.
90569         * m4/tzset.m4: New file.
90570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90571         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90572         otherwise, AIX 5.1 systems would end up using the latter.
90573         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90574         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90575         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90576         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90577
90578 2003-08-14  Jim Meyering  <jim@meyering.net>
90579
90580         Merge from coreutils.
90581         * lib/obstack.h: Whitespace changes.
90582         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90583         and xcalloc return values.
90584         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90585         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90586         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90587         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90588         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90589         error from mntctl.
90590         Use mntctl's return value to drive the entry-processing loop, since
90591         we can't rely on the value of the vmt_length member in the last
90592         entry.  On some systems doing so could result in exhausting
90593         virtual memory.  Based in part on a patch from Mike Jetzer.
90594
90595 2003-08-14  Jim Meyering  <jim@meyering.net>
90596         and Paul Eggert  <eggert@twinsun.com>
90597
90598         Merges from coreutils, plus other fixes.
90599         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90600         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90601         for credits and details.  Thanks to Kaveh Ghazi for helping
90602         to keep these files in sync.
90603         (ARRAY_SIZE): Define it.
90604         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90605         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90606         (memcasecmp): Don't assume size_t fits in unsigned int.
90607         Remove casts and duplicate code.
90608         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90609         (memcpy): Remove definition.
90610         Merge in some clean-up and optimization changes from glibc.
90611         [BLOCKSIZE]: Move definition to top of file.
90612         Ensure that it is a multiple of 64.
90613         Rearrange loop exit tests so as to avoid performing an
90614         additional fread after encountering an error or EOF.
90615         * lib/md5.h (md5_uintptr): Define.
90616         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90617         return to the initial working directory.  Preserve errno
90618         for caller.
90619         * lib/idcache.c: Include "xalloc.h".
90620         (xmalloc, xrealloc): Remove decls.
90621         (getuser): Remove casts no longer required in C89.
90622         * lib/human.c: Include stdio.h, for sprintf.
90623         * lib/group-member.c: Include "xalloc.h".
90624         (xmalloc, xrealloc): Remove decls.
90625         (get_group_info): Remove casts no longer required in C89.
90626         * lib/getusershell.c (readname): Remove casts no longer required in
90627         C89.
90628         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90629         * lib/getline.c: Whitespace fix, from coreutils.
90630
90631 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90632
90633         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90634         Check for isascii.
90635
90636         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90637         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90638         Undo previous (whitespace-only) change.
90639
90640 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90641
90642         * lib/exclude.c: Include <ctype.h>
90643         (IN_CTYPE_DOMAIN): New macro.
90644         (is_space): New fn.
90645         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90646         and empty lines.
90647
90648         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90649         Undo previous (whitespace-only) change.
90650
90651 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90652
90653         * config/srclist-update: Change update back to the old behavior,
90654         leaving whitespace alone.  Use one 'sed' command rather than a
90655         pipeline.
90656         (fixlicense): Now a variable, not a function.
90657         (remove_trailing_blanks): Remove.
90658         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90659         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90660         Undo previous (whitespace-only) change.
90661
90662 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90663
90664         Merge from coreutils.
90665         * modules/euidaccess: Add lib_SOURCES, include for new
90666         file euidaccess.h
90667
90668 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90669
90670         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90671         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90672         Normalize leading white space and remove trailing white space.
90673
90674         Merge from coreutils
90675         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90676
90677         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90678         0.12.1.  These files are now being upgraded automatically by
90679         ../config/srclist-update.
90680
90681 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90682
90683         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90684         Normalize leading white space and remove trailing white space.
90685         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90686         notice, as per ../config/srclist-update.
90687
90688         Merge from coreutils.
90689         * lib/euidaccess.h: New file.
90690         * lib/euidaccess.c: Include it.
90691         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90692         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90693         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90694
90695 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90696
90697         * config/srclist-update: Add copyright notice.
90698         (remove_id_lines, remove_trailing_blanks): New constants.
90699         (fixfile): Use them to normalize spacing a bit in copied files.
90700         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90701         Normalize leading white space and remove trailing white space.
90702
90703         * config/texinfo.tex: Sync with texinfo.
90704
90705         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90706         strtoul.c from libc, to merge coreutils whitespace changes.
90707
90708         * config/srclist.txt: Get the following m4 files from gettext:
90709         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90710         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90711         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90712         wint_t.m4.
90713
90714 2003-08-12  Karl Berry  <karl@gnu.org>
90715
90716         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90717         been made.
90718
90719 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90720
90721         * modules/gnu-source, m4/gnu-source.m4:
90722         Remove; we're assuming Autoconf 2.54 or later now.
90723         Suggested by Bruno Haible.
90724         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90725
90726 2003-08-11  Bruno Haible  <bruno@clisp.org>
90727
90728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90729
90730 2003-08-11  Bruno Haible  <bruno@clisp.org>
90731
90732         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90733         (vasnprintf): Use it instead of wcslen.
90734
90735 2003-08-11  Bruno Haible  <bruno@clisp.org>
90736
90737         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90738         value to ensure that _Bool promotes to int. Use #define for _Bool when
90739         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90740
90741 2003-08-10  Karl Berry  <karl@gnu.org>
90742
90743         * lib/regex.h: update from libc (whitespace fix).
90744
90745 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90746
90747         Merge some files from coreutils.  These changes were
90748         originally made by Jim Meyering.
90749         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90750         many older Unixes require this.
90751         * lib/alloca.c (alloca): Remove cast to argument of free;
90752         no longer needed in C89.
90753         * lib/alloca_.h, regex.h: Fix white space to match
90754         what GNU indent does.
90755
90756 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90757
90758         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90759         apparently Emacs's Unicode mode got confused before my 2003-08-05
90760         checkin.
90761
90762 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90763
90764         * m4/extensions.m4: New file.
90765         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90766         Require gl_USE_SYSTEM_EXTENSIONS.
90767         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90768         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90769
90770 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90771
90772         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90773         * modules/extensions, modules/gnu-source: New files.
90774         * modules/timespec, modules/unlocked-io: Depend on extensions.
90775
90776 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90777
90778         * modules/restrict: New file.
90779         * MODULES.html.sh (func_all_modules): Add restrict.
90780         * modules/regex: Depend on restrict.
90781
90782 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90783
90784         * m4/restrict.m4: New file.
90785         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90786
90787 2003-08-07  Bruno Haible  <bruno@clisp.org>
90788
90789         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90790         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90791
90792 2003-08-07  Bruno Haible  <bruno@clisp.org>
90793
90794         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90795         makes the module 'getndelim2' compatible with the module 'getline'.
90796
90797 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90798
90799         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90800         byte with "\201" to avoid glitches when editing that source file
90801         with multi-gnome-terminal.
90802
90803 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90804
90805         * lib/bumpalloc.h: Remove.
90806
90807 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90808
90809         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90810         * modules/bumpalloc: Remove.
90811
90812 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90813
90814         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90815         GNU coding style.
90816
90817         Merge from coreutils.
90818         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90819         1. From glibc.
90820         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90821         from Karl Berry, implemented by Jim Meyering.
90822         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90823         from Dmitry V. Levin.
90824         Remove anachronistic cast of xrealloc.
90825         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90826         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90827         type. Otherwise, it wouldn't compile with at least /bin/cc on
90828         ymp-cray-unicos9.0.2.X.
90829         Combine two mostly-identical uses of alloca into one.
90830         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90831
90832 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90833
90834         [From Emacs.]
90835
90836         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90837         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90838         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90839         obsolete NLIST_NAME_UNION.
90840         [__GNU__]: Undef BSD and FSCALE.
90841         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90842
90843 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90844
90845         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90846         an enum type, so that it's guaranteed to promote to int.  See:
90847         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90848
90849 2003-08-03  Karl Berry  <karl@gnu.org>
90850
90851         * config/depcomp: update from automake.
90852
90853 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90854
90855         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90856         (strerror): Don't assume that a printable int fits in 14 bytes.
90857
90858 2003-07-31  Bruno Haible  <bruno@clisp.org>
90859
90860         * modules/getpass-gnu: New file.
90861         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90862
90863 2003-07-31  Bruno Haible  <bruno@clisp.org>
90864
90865         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90866
90867 2003-07-24  Karl Berry  <karl@gnu.org>
90868
90869         * config/missing: update from automake.
90870
90871 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90872             Bruno Haible  <bruno@clisp.org>
90873
90874         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90875         * lib/getline.c (getline, getdelim): Likewise.
90876         Remove _GNU_SOURCE define; now it's defined in config.h through
90877         m4/getline.m4.
90878
90879 2003-07-23  Karl Berry  <karl@gnu.org>
90880
90881         * config/config.sub: update from prep.
90882
90883 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90884
90885         * modules/xalloc (Depends-on): Add exitfail.
90886         * modules/xmemcoll: Likewise.
90887
90888 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90889
90890         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90891         over-parenthesization in macros.
90892
90893         Sync with coreutils.
90894
90895         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90896         required by C99.
90897
90898         Use `exit_failure' for xalloc and xmemcoll instead of their own
90899         private exit-failure variables.
90900         * lib/xalloc.h (xalloc_exit_failure): Remove.
90901         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90902         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90903         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90904         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90905         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90906
90907 2003-07-20  Jim Meyering  <jim@meyering.net>
90908
90909         * modules/closeout (Depends-on): Add exitfail.
90910         Suggestion from Bruno Haible.
90911
90912 2003-07-19  Karl Berry  <karl@gnu.org>
90913
90914         * config/config.sub: update from prep.
90915
90916 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90917
90918         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90919         Remove.
90920         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90921         to test that it can stand by itself.  Include "exitfail.h".
90922         Clients should set exit_failure instead.
90923         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90924
90925 2003-07-18  Bruno Haible  <bruno@clisp.org>
90926
90927         * modules/getndelim2: New file.
90928         * modules/getline: Share files with module getndelim2.
90929         * modules/getnline: Depend on getndelim2 instead of sharing files with
90930         it. Add getnline.c to lib_SOURCES.
90931         * MODULES.html.sh (func_all_modules): Add getndelim2.
90932
90933 2003-07-18  Bruno Haible  <bruno@clisp.org>
90934
90935         * m4/getndelim2.m4: New file.
90936         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90937         invoke gl_PREREQ_GETNDELIM2.
90938         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90939         gl_PREREQ_GETNDELIM2.
90940         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90941         gl_GETNDELIM2.
90942
90943 2003-07-18  Bruno Haible  <bruno@clisp.org>
90944
90945         * lib/getndelim2.h: New file.
90946         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90947         getndelim2.h.
90948         (getndelim2): Make non-static. Change return type to ssize_t.
90949         * lib/getline.h: Change argument names.
90950         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90951         * lib/getnline.c: Include getndelim2.h.
90952
90953 2003-07-18  Andreas Schwab  <schwab@suse.de>
90954
90955         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90956
90957 2003-07-17  Karl Berry  <karl@gnu.org>
90958
90959         * config/config.sub: update from prep.
90960
90961 2003-07-17  Bruno Haible  <bruno@clisp.org>
90962
90963         * modules/getnline: New file.
90964         * modules/getline: Add lib/getndelim2.c to source file list.
90965         * MODULES.html.sh (func_all_modules): Add getnline.
90966
90967 2003-07-17  Bruno Haible  <bruno@clisp.org>
90968
90969         * m4/getnline.m4: New file.
90970
90971 2003-07-17  Bruno Haible  <bruno@clisp.org>
90972
90973         * m4/Makefile.am.in: Remove file.
90974         * m4/Makefile.am: Remove file.
90975         * m4/Makefile.in: Remove file.
90976
90977 2003-07-17  Bruno Haible  <bruno@clisp.org>
90978
90979         * lib/getnline.h: New file.
90980         * lib/getnline.c: New file.
90981         * lib/getndelim2.c: New file, extracted from getline.c.
90982         (getndelim2): Renamed from getdelim2, with added nmax argument.
90983         * lib/getline.c: Include getndelim2.c.
90984         (getdelim2): Moved out to getndelim2.c.
90985         (getline, getdelim): Update.
90986
90987 2003-07-17  Bruno Haible  <bruno@clisp.org>
90988
90989         * lib/Makefile.am: Remove file.
90990         * lib/Makefile.in: Remove file.
90991
90992 2003-07-17  Bruno Haible  <bruno@clisp.org>
90993
90994         * configure.in: Remove file.
90995         * Makefile.in: Remove file.
90996
90997 2003-07-17  Bruno Haible  <bruno@clisp.org>
90998
90999         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91000
91001 2003-07-16  Karl Berry  <karl@gnu.org>
91002
91003         * config/srclist-update: was running fixlicense twice, which caused
91004                 texinfo.tex to be nullified for some reason.  Simplify,
91005                 $gplsrc is no longer needed as far as I can see?
91006
91007 2003-07-16  Jim Meyering  <jim@meyering.net>
91008
91009         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91010
91011 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91012
91013         * config/srclist.txt: Get the following files from gettext-runtime/intl
91014         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91015         ref-del.sin.  From Bruno Haible.
91016         * config/srclist-update (fixfile): Change grep pattern again, since the
91017         previous fix didn't work (there was another trailing $).  Use
91018         '[$]' to escape the $s.
91019
91020 2003-07-15  Karl Berry  <karl@gnu.org>
91021
91022         * lib/vasnprintf.c: update from gettext.
91023
91024 2003-07-15  Karl Berry  <karl@gnu.org>
91025
91026         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91027         gets expanded when surrounded by '$'.
91028
91029 2003-07-15  Jim Meyering  <jim@meyering.net>
91030
91031         * modules/save-cwd: Don't depend on error.  From Derek Price.
91032
91033 2003-07-15  Jim Meyering  <jim@meyering.net>
91034
91035         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91036
91037 2003-07-14  Simon Josefsson  <jas@extundo.com>
91038
91039         * modules/mempcpy: New file.
91040         * MODULES.html.sh (func_all_modules): Add mempcpy.
91041
91042 2003-07-14  Simon Josefsson  <jas@extundo.com>
91043
91044         * m4/mempcpy.m4: New file.
91045
91046 2003-07-14  Simon Josefsson  <jas@extundo.com>
91047
91048         * lib/mempcpy.h: New file.
91049         * lib/mempcpy.c: New file.
91050
91051 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91052
91053         * modules/getdate, modules/posixtm: Depend on mktime.
91054
91055 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91056
91057         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91058         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91059         unicodeio.c, unicodeio.h, unlocked-io.h:
91060         Switch from LGPL to GPL.
91061
91062 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91063
91064         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91065         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91066         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91067         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91068         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91069         updated automatically by ../config/srclist-update.  This changes
91070         their license from LPGL to GPL.
91071
91072 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91073
91074         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91075         assumed to refer to the root of the most recent stable gettext version.
91076         * config/srclistvars.sh: Add defaults for eggert.
91077         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91078         Match "This program" as well as "The program".  This is needed
91079         for gettext.
91080
91081 2003-07-14  Jim Meyering  <jim@meyering.net>
91082
91083         Don't emit diagnostics.  Let callers do that.
91084         * lib/save-cwd.c: Don't include "error.h".
91085         (save_cwd): Don't call error.  Ensure that errno is valid
91086         when returning nonzero.
91087
91088         * lib/save-cwd.h (restore_cwd): Update prototype.
91089         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91090         Simplify.  Don't call error upon failure.  Let callers do that.
91091         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91092         when auditing is enabled.  But don't bother updating the #if.
91093
91094 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91095
91096         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91097         it breaks C++ compilation.
91098         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91099
91100 2003-07-10  Simon Josefsson  <jas@extundo.com>
91101
91102         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91103
91104 2003-07-10  Jim Meyering  <jim@meyering.net>
91105
91106         * m4/clock_time.m4: Remove trailing blank.
91107         * m4/intmax_t.m4: Likewise.
91108
91109 2003-07-10  Jim Meyering  <jim@meyering.net>
91110
91111         * lib/vasnprintf.c: Remove trailing blanks.
91112         Make cpp indentation consistent.
91113
91114 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91115
91116         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91117         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91118         Switch from LGPL to GPL.
91119
91120 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91121
91122         * config/srclist.txt: Sort sublists.  Add
91123         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91124         that differ from gnulib for one reason or another; we'd like this list
91125         to be smaller but for now let's document what we have.
91126
91127 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91128
91129         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91130         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91131         and sweeter "eval x=$x".
91132         * config/srclist.txt: Get lib/argp* from glibc.
91133
91134 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91135
91136         * lib/mktime.c: Fix some boundary cases and remove need for floating
91137         point.
91138
91139         Issue a compile-time diagnostic if time_t is floating point, or if
91140         two's complement arithmetic is not in effect, or if arithmetic
91141         right shift does not propagate the sign.  These assumptions were
91142         all in the original code but they weren't checked.
91143
91144         (TIME_T_MIDPOINT, verify): New macros.
91145         (__isleap): Remove; it has integer overflow problems.
91146         (leapyear): New function, without those problems.
91147         (ydhms_tm_diff): Remove; splitting into two parts.
91148         (ydhms_diff): New function, containing the arithmetic part of
91149         the old ydhms_tm_diff function.  Issue a compile-time
91150         diagnostic if we are not using C99 integer division.
91151         Avoid casts when possible.
91152         (guess_time_tm): New function, containing the checking part of
91153         the old ydhms_tm_diff function.  Return the new value, rather than
91154         the difference between it and the old.  Accept a new argument T
91155         so that *T specifies the old value.  Check for overflow in the result.
91156
91157         (__mktime_internal): Use a time_t offset, not a long int offset.
91158         This undoes the 2003-06-04 change, which is no longer needed now
91159         that we have better overflow checking.
91160         (localtime_offset): Likewise.
91161
91162         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91163         and long are 64-bit but int is only 32-bit.
91164         (ydhms_diff): Use long int to store year1 and yday1.
91165         Issue a compile-time diagnostic if long int is not wide enough.
91166
91167         (__mktime_internal): Use long int to store adjusted year and yday.
91168         Use plain C rather than preprocessor commands, if that doesn't
91169         affect efficiency.
91170         Check for overflow (and try to repair) after each probe
91171         rather than checking only at the very end.  This avoids some bugs
91172         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91173         does not equal GMT offset at maximum time).
91174         Use integer to check for overflow rather than floating point; this
91175         is more portable to non-IEEE hosts, and is a tad faster.
91176         When we detect that we are oscillating between two values,
91177         don't check whether tm_isdst has the requested value, since
91178         we already know the answer.  When tm_isdst has the wrong value,
91179         use a different heuristic to find the right one, based on the
91180         extreme values actually observed in practice in tz2003a,
91181         rather than the (overly optimistic) "previous 3 calendar quarters".
91182
91183         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91184         "T const" to accommodate glibc style.
91185         (check_result): Use less-confusing report format.  "long" -> "long int.
91186         (main): Likewise.
91187         Don't loop if the iteration overflows time_t.
91188         Allow a negative step in the iteration.
91189
91190 2003-07-06  Karl Berry  <karl@gnu.org>
91191
91192         * config/depcomp: update from automake.
91193         * config/config.sub: update from prep.
91194
91195 2003-07-03  Karl Berry  <karl@gnu.org>
91196
91197         * config/config.guess: update from prep.
91198
91199 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91200
91201         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91202         xreadlink.c now includes it unconditionally.
91203
91204 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91205
91206         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91207         having it depend on HAVE_SYS_TYPES_H.
91208
91209 2003-07-01  Bruno Haible  <bruno@clisp.org>
91210
91211         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91212         <sys/types.h> should be sufficient.
91213         Reported by Paul Eggert.
91214
91215 2003-06-26  Karl Berry  <karl@gnu.org>
91216
91217         * config/depcomp: update from automake.
91218
91219 2003-06-26  Bruno Haible  <bruno@clisp.org>
91220
91221         * modules/human: Depend on module stdbool.
91222
91223 2003-06-25  Bruno Haible  <bruno@clisp.org>
91224
91225         * modules/readlink: New file.
91226         * modules/xreadlink: Depend on it.
91227         * MODULES.html.sh (func_all_modules): Add readlink.
91228
91229 2003-06-25  Bruno Haible  <bruno@clisp.org>
91230
91231         * m4/readlink.m4: New file.
91232
91233 2003-06-25  Bruno Haible  <bruno@clisp.org>
91234
91235         * lib/readlink.c: New file.
91236
91237 2003-06-22  Karl Berry  <karl@gnu.org>
91238
91239         * config/srclist.txt: update mkinstalldirs from automake.
91240         * config/mkinstalldirs: update.
91241
91242 2003-06-22  Bruno Haible  <bruno@clisp.org>
91243
91244         Portability to mingw32.
91245         * m4/ssize_t.m4: New file, from GNU gettext.
91246         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91247         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91248
91249 2003-06-22  Bruno Haible  <bruno@clisp.org>
91250
91251         * modules/safe-read: Add m4/ssize_t.m4.
91252         * modules/xreadlink: Add m4/ssize_t.m4.
91253
91254 2003-06-20  Bruno Haible  <bruno@clisp.org>
91255
91256         Assume C89, so PARAMS isn't needed.
91257         * lib/unicodeio.h (PARAMS): Remove.
91258         * lib/unicodeio.c: Don't use PARAMS.
91259
91260 2003-06-18  Karl Berry  <karl@gnu.org>
91261
91262         * config/config.{guess,sub}: update from prep.
91263
91264 2003-06-18  Jim Meyering  <jim@meyering.net>
91265
91266         Merge changes from coreutils.
91267         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91268         Remove explicit declarations of xmalloc and realloc.
91269         Include xalloc.h.
91270         (read_utmp): Remove anachronistic cast of xmalloc.
91271
91272 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91273
91274         Assume C89, so PARAMS isn't needed.
91275         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91276         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91277         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91278         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91279         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91280         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91281         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91282         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91283         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91284         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91285         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91286         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91287         no longer needed. Anyway, config.h should always be included before any
91288         other file.
91289
91290 2003-06-11  Simon Josefsson  <jas@extundo.com>
91291
91292         * modules/sysexits: New file.
91293         * MODULES.html.sh (func_all_modules): Add sysexits.
91294
91295 2003-06-11  Simon Josefsson  <jas@extundo.com>
91296
91297         * lib/sysexit_.h: New file.
91298
91299 2003-06-11  Derek Price  <derek@ximbiot.com>
91300
91301         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91302         necessary.
91303
91304 2003-06-11  Bruno Haible  <bruno@clisp.org>
91305
91306         * m4/sysexits.m4: New file.
91307
91308 2003-06-10  Simon Josefsson  <jas@extundo.com>
91309
91310         * lib/argp.h: New file, from glibc.
91311         * lib/argp-ba.c: New file, from glibc.
91312         * lib/argp-eexst.c: New file, from glibc.
91313         * lib/argp-fmtstream.c: New file, from glibc.
91314         * lib/argp-fmtstream.h: New file, from glibc.
91315         * lib/argp-fs-xinl.c: New file, from glibc.
91316         * lib/argp-help.c: New file, from glibc.
91317         * lib/argp-namefrob.h: New file, from glibc.
91318         * lib/argp-parse.c: New file, from glibc.
91319         * lib/argp-pv.c: New file, from glibc.
91320         * lib/argp-pvh.c: New file, from glibc.
91321         * lib/argp-xinl.c: New file, from glibc.
91322
91323 2003-06-10  Simon Josefsson  <jas@extundo.com>
91324
91325         * modules/strchrnul: New file.
91326
91327 2003-06-10  Simon Josefsson  <jas@extundo.com>
91328
91329         * modules/argp: New file.
91330
91331 2003-06-10  Simon Josefsson  <jas@extundo.com>
91332
91333         * m4/strchrnul.m4: New file.
91334
91335 2003-06-10  Simon Josefsson  <jas@extundo.com>
91336
91337         * lib/strchrnul.h: New file.
91338         * lib/strchrnul.c: New file.
91339
91340 2003-06-10  Bruno Haible  <bruno@clisp.org>
91341
91342         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91343
91344 2003-06-07  Karl Berry  <karl@gnu.org>
91345
91346         * config/config.{guess,sub}: update from prep.
91347
91348 2003-06-07  Jim Meyering  <jim@meyering.net>
91349
91350         * modules/strtod: Use $(...) notation, not @...@ for
91351         AC_REPLACE'd variables.
91352         * modules/localcharset: Likewise.
91353
91354 2003-06-07  Jim Meyering  <jim@meyering.net>
91355
91356         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91357         in place of my name in the copyright comment.
91358         Remove definition and uses of __P.
91359
91360         From coreutils.
91361         * lib/stat.c: Don't declare xmalloc explicitly.
91362         Instead, include "xalloc.h".
91363         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91364         xrealloc, and xcalloc return values.
91365         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91366         Improve comment.
91367         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91368
91369 2003-06-07  Bruno Haible  <bruno@clisp.org>
91370
91371         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91372         avoid AC_CONFIG_LINKS.
91373         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91374         fnmatch.h, to avoid AC_CONFIG_LINKS.
91375         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91376
91377 2003-06-07  Bruno Haible  <bruno@clisp.org>
91378
91379         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91380         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91381         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91382         directory.
91383         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91384         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91385         directory.
91386
91387 2003-06-06  Jim Meyering  <jim@meyering.net>
91388
91389         Merge from coreutils.
91390         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91391         Consolidate declarations and initializations of *_base* locals.
91392
91393         Merge from coreutils.
91394         This avoids a core dump on systems without GNU putenv,
91395         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91396         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91397         (unsetenv): New static function, from GNU libc.
91398         (rpl_putenv): Use it.
91399
91400         * lib/modechange.c: Remove trailing blanks.
91401
91402         Merge from coreutils.
91403         * lib/fsusage.c: Remove declaration of statfs.
91404         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91405
91406         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91407
91408 2003-06-06  Jim Meyering  <jim@meyering.net>
91409
91410         * lib/stdbool_.h: Renamed from stdbool.h.in.
91411
91412 2003-06-06  Jim Meyering  <jim@meyering.net>
91413             Bruno Haible  <bruno@clisp.org>
91414
91415         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91416         Adjust Makefile.am snippet not to redirect directly to target.
91417         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91418
91419 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91420
91421         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91422         mismatch, look in future quarters as well as past.  This fixes a
91423         bug when processing fall-backwards gaps immediately after a long
91424         period of daylight-saving time.
91425
91426         * lib/mktime.c: Assume freestanding C89 or better.
91427         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91428         (__P): Remove; not used.
91429         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91430         (mktime, not_equal_tm, print_tm, check_result,
91431         main): Use prototypes.  Use const * where appropriate.
91432         (main): Fix typo in testing code that uncovered by above changes.
91433         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91434
91435 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91436
91437         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91438         locale.h, localeconv.  This merges changes from coreutils.
91439
91440         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91441         It can be removed after the next Autoconf is released.
91442         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91443         needed.
91444
91445 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91446
91447         * lib/mktime.c: Fix Debian bug 177940
91448         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91449         (localtime_offset): Now long int, not time_t, because we want it
91450         to be guaranteed to be signed.  All uses changed.
91451         (__mktime_internal): If overflow would occur when adding offset,
91452         don't add it.
91453
91454         Merge 'human' changes from coreutils.  Rewrite to support
91455         locale-specific notations like thousands separators.
91456         * lib/human.c: Simplify authorship notice.
91457         Include human.h immediately after config.h.
91458         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91459         <limits.h>: Do not include, since human.h does.
91460         (SIZE_MAX, UINTMAX_MAX): New macros.
91461         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91462         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91463         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91464         (power_letter): Renamed from suffixes.
91465         (generate_suffix_backwards): Remove.
91466         (adjust_value): Now takes int style (because of human.h changes)
91467         and long double value (for greater precision on some platforms).
91468         (group_number): New function.
91469         (human_readable): Use it.  Use integer options, not enum.
91470         Put the options before the sizes in the arg list.
91471         Support all the new options.
91472         The old human_readable function has been removed;
91473         use inttostr.h instead.
91474         (human_readable, default_block_size, humblock):
91475         Use uintmax_t, not int, for block sizes.
91476         (human_readable_inexact, block_size_types): Remove.
91477         (block_size_opts): New constant.
91478         (human_options): Renamed from human_block_size, with new signature
91479         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91480         * lib/human.h: Add copyright and authorship notice.
91481         Include <limits.h> and <stdbool.h> unconditionally.
91482         (PARAMS): Remove.  All uses removed.
91483         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91484         (enum human_inexact_style): Remove tag; now a nameless enum.
91485         (human_floor, human_ceiling, human_round_to_even): Now have
91486         values 2, 0, 1 rather than -1, 1, 0.
91487         (human_group_digits, human_suppress_point_zero, human_autoscale,
91488         human_base_1024, human_SI, human_B): New constants.
91489         (human_readable_inexact, human_block_size): Remove.
91490         (human_readable): Size args are now uintmax_t, not int.
91491         (human_options): New decl.
91492
91493         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91494         unnecessary now that we assume C89 or better.  This change
91495         imported from coreutils.
91496
91497         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91498         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91499         in the 2003-05-30 sync from glibc.
91500
91501         .h files should stand alone, but we shouldn't include <sys/types.h>
91502         if we can get away with just <stddef.h>.
91503
91504         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91505         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91506         rather than <sys/types.h>, as we merely need size_t.
91507         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91508         to get size_t.
91509         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91510         Include <stdio.h>, to get FILE.
91511         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91512         memcasecmp.h has included <stddef.h> and all we need is size_t.
91513         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91514         our interface, instead of including <sys/types.h>
91515
91516 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91517
91518         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91519         now, as glibc mktime is buggy on non-glibc systems.
91520
91521 2003-06-03  Karl Berry  <karl@gnu.org>
91522
91523         * config/config.sub: update from prep.
91524
91525 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91526
91527         [from coreutils]
91528         Fix some minor time-related bugs with POSIX time arguments.
91529         Some valid time stamps were being rejected (notably -1, and
91530         time stamps before 1900 on 64-bit hosts).  And some invalid
91531         time stamps were being accepted, e.g. September 31.
91532
91533         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91534         that we can return (time_t) -1 successfully.
91535         * lib/posixtm.c: Likewise.
91536         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91537         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91538         (t): Remove static var.
91539         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91540         of static var.  All uses changed.
91541         (year): Do not reject years before 1900; they can occur with
91542         64-bit time_t.
91543         (posix_time_parse): Do not check for out-of-range components;
91544         that is now the caller's responsibility, since our checks were
91545         only approximations.
91546         (posixtime): Use mktime to check for out-of-range components,
91547         since it knows them exactly.
91548         If mktime returns (time_t) -1, check whether an error actually occurred
91549         by invoking localtime on -1.
91550         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91551         posixtime failures better.
91552         Improve the test data (in comments only).
91553
91554 2003-06-02  Karl Berry  <karl@gnu.org>
91555
91556         * config/mkinstalldirs (version): new variable.
91557         (--version): new option.
91558         (usage): improve message.
91559
91560 2003-05-30  Karl Berry  <karl@gnu.org>
91561
91562         * lib/mktime.c: update from libc.
91563
91564 2003-05-30  Bruno Haible  <bruno@clisp.org>
91565
91566         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91567         * config/config.rpath: Upgrade to gettext-0.12.1.
91568
91569 2003-05-30  Bruno Haible  <bruno@clisp.org>
91570
91571         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91572         * m4/nls.m4: New file, from gettext-0.12.1.
91573         * m4/po.m4: New file, from gettext-0.12.1.
91574         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91575
91576 2003-05-30  Bruno Haible  <bruno@clisp.org>
91577
91578         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91579         * lib/localcharset.h: Likewise.
91580         * lib/localcharset.c: Likewise.
91581
91582 2003-05-29  Karl Berry  <karl@gnu.org>
91583
91584         * config/config.rpath: update from gettext.
91585
91586 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91587
91588         Assume the headers required for C89 freestanding compilers.
91589         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91590         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91591         * m4/human.m4 (gl_HUMAN): Likewise.
91592         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91593         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91594         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91595         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91596         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91597         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91598
91599 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91600
91601         Assume the headers required for C89 freestanding compilers.
91602         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91603         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91604         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91605         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91606         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91607         define, since <limits.h> is guaranteed to do that.
91608         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91609         * lib/exclude.c: Include <stdbool.h> unconditionally.
91610         * lib/tempname.c: Include <stddef.h> unconditionally.
91611         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91612         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91613         <stddef.h> does that.
91614         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91615         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91616         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91617         needed.
91618         * lib/xstrtol.c: Likewise.
91619         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91620         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91621
91622         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91623         warnings on some platforms.
91624
91625         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91626         arbitrarily.
91627
91628 2003-05-26  Jim Meyering  <jim@meyering.net>
91629
91630         Merge in a change from coreutils:
91631         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91632         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91633         that condition, rather than `-1' which is slightly misleading.
91634         Change the name of the cache variable to have the gl_ prefix.
91635         Prompted by a patch from Richard Dawe for DJGPP.
91636
91637 2003-05-24  Karl Berry  <karl@gnu.org>
91638
91639         * config/config.guess: update from prep.
91640
91641 2003-05-22  Karl Berry  <karl@gnu.org>
91642
91643         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91644
91645 2003-05-20  Karl Berry  <karl@gnu.org>
91646
91647         * config/config.guess: update from prep.
91648
91649 2003-05-18  Karl Berry  <karl@gnu.org>
91650
91651         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91652         might actually be set by the user.
91653
91654         * config/depcomp, install-sh, mdate-sh: update from automake.
91655
91656 2003-05-17  Bruno Haible  <bruno@clisp.org>
91657
91658         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91659         invalid expansion for AC_EGREP_CPP.
91660         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91661         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91662         Suggested by Akim Demaille <akim@epita.fr> in
91663         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91664
91665 2003-05-12  Jim Meyering  <jim@meyering.net>
91666
91667         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91668         the space-padded-by-default conversion specifiers, %e, %k, %l.
91669
91670 2003-05-12  Bruno Haible  <bruno@clisp.org>
91671
91672         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91673         the string is longer than 4 KB.
91674
91675 2003-05-11  Karl Berry  <karl@gnu.org>
91676
91677         * config/config.{guess,sub}: update from prep.
91678
91679 2003-05-09  Bruno Haible  <bruno@clisp.org>
91680
91681         * modules/error: Add m4/strerror_r.m4 to file list.
91682
91683 2003-05-03  Bruno Haible  <bruno@clisp.org>
91684
91685         Upgrade to Unicode-4.0.
91686         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91687         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91688         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91689         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91690         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91691         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91692         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91693         Change width of U+E0100..U+E01EF from 1 to 0.
91694
91695 2003-04-25  Jim Meyering  <jim@meyering.net>
91696
91697         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91698         of type size_t, not int.
91699
91700 2003-04-25  Bruno Haible  <bruno@clisp.org>
91701
91702         * lib/copy-file.c: Include <stddef.h>, for size_t.
91703
91704 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91705
91706         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91707         code which expansion is under static control.  Patch imported from
91708         Akim Demaille's patch to Bison; see
91709         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91710
91711 2003-04-14  Bruno Haible  <bruno@clisp.org>
91712
91713         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91714
91715 2003-04-11  Jim Meyering  <jim@meyering.net>
91716
91717         Merge changes from Coreutils.
91718
91719         2003-03-22  Jim Meyering  <jim@meyering.net>
91720
91721         * lib/strftime.c (widen): Cast alloca return value to proper type.
91722
91723         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91724
91725         From GNU libc.
91726         * lib/strftime.c (my_strftime): Handle very large width
91727         specifications for numeric values correctly.  Improve checks for
91728         overflow.
91729
91730         2003-01-19  Jim Meyering  <jim@meyering.net>
91731
91732         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91733         definitions.
91734         (nl_get_alt_digit) [! defined my_strftime]: Define.
91735         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91736         _nl_get_alt_digit and _nl_get_walt_digit.
91737
91738         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91739         libc. These changes have no effect outside of _LIBC.
91740
91741 2003-04-10  Bruno Haible  <bruno@clisp.org>
91742
91743         * modules/findprog: New file.
91744         * MODULES.html.sh (func_all_modules): Add it.
91745
91746 2003-04-10  Bruno Haible  <bruno@clisp.org>
91747
91748         * m4/findprog.m4: New file.
91749         * m4/eaccess.m4: New file.
91750
91751 2003-04-10  Bruno Haible  <bruno@clisp.org>
91752
91753         * lib/findprog.h: New file, from GNU gettext.
91754         * lib/findprog.c: New file, from GNU gettext.
91755
91756 2003-04-05  Jim Meyering  <jim@meyering.net>
91757
91758         Merge changes from Coreutils.
91759
91760         * lib/exclude.h (PARAMS): Remove definition and uses.
91761         * lib/exclude.c: Remove uses of `PARAMS'.
91762
91763         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91764         Add test-cases for DOS filenames. Declare program_name.
91765         (main): Set up program_name.  Patch by Rich Dawe.
91766
91767         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91768         error from mntctl.
91769         Use mntctl's return value to drive the entry-processing loop, since
91770         we can't rely on the value of the vmt_length member in the last
91771         entry.  On some systems doing so could result in exhausting
91772         virtual memory.  Based in part on a patch from Mike Jetzer.
91773
91774 2003-04-04  Bruno Haible  <bruno@clisp.org>
91775
91776         * modules/linebreak: New file.
91777         * MODULES.html.sh (func_all_modules): Add it.
91778
91779 2003-04-04  Bruno Haible  <bruno@clisp.org>
91780
91781         * m4/linebreak.m4: New file.
91782
91783 2003-04-04  Bruno Haible  <bruno@clisp.org>
91784
91785         * lib/linebreak.h: New file, from GNU gettext.
91786         * lib/linebreak.c: New file, from GNU gettext with slight
91787         modifications.
91788         * lib/lbrkprop.h: New file, from GNU gettext.
91789
91790 2003-04-03  Bruno Haible  <bruno@clisp.org>
91791
91792         * modules/utf8-ucs4: New file.
91793         * modules/utf16-ucs4: New file.
91794         * modules/ucs4-utf8: New file.
91795         * modules/ucs4-utf16: New file.
91796         * MODULES.html.sh (func_all_modules): Add them.
91797
91798 2003-04-03  Bruno Haible  <bruno@clisp.org>
91799
91800         * m4/utf-ucs4.m4: New file.
91801         * m4/ucs4-utf.m4: New file.
91802
91803 2003-04-03  Bruno Haible  <bruno@clisp.org>
91804
91805         * lib/utf8-ucs4.h: New file, from GNU gettext.
91806         * lib/utf16-ucs4.h: New file, from GNU gettext.
91807         * lib/ucs4-utf8.h: New file, from GNU gettext.
91808         * lib/ucs4-utf16.h: New file, from GNU gettext.
91809
91810 2003-04-02  Bruno Haible  <bruno@clisp.org>
91811
91812         * modules/binary-io: New file.
91813         * MODULES.html.sh (func_all_modules): Add it.
91814
91815 2003-04-02  Bruno Haible  <bruno@clisp.org>
91816
91817         * lib/binary-io.h: New file, from GNU gettext.
91818
91819 2003-04-01  Bruno Haible  <bruno@clisp.org>
91820
91821         * modules/pathname: New file.
91822         * MODULES.html.sh (func_all_modules): Add it.
91823
91824 2003-04-01  Bruno Haible  <bruno@clisp.org>
91825
91826         * lib/pathname.h: New file, from GNU gettext.
91827         * lib/concatpath.c: New file, from GNU gettext.
91828
91829 2003-03-30  Bruno Haible  <bruno@clisp.org>
91830
91831         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91832
91833 2003-03-30  Bruno Haible  <bruno@clisp.org>
91834
91835         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91836         function chown() doesn't exist.
91837
91838 2003-03-28  Bruno Haible  <bruno@clisp.org>
91839
91840         * modules/copy-file: New file.
91841         * MODULES.html.sh (func_all_modules): Add it.
91842
91843 2003-03-28  Bruno Haible  <bruno@clisp.org>
91844
91845         * m4/copy-file.m4: New file.
91846
91847 2003-03-28  Bruno Haible  <bruno@clisp.org>
91848
91849         * lib/copy-file.h: New file, from GNU gettext.
91850         * lib/copy-file.c: New file, from GNU gettext.
91851
91852 2003-03-18  Jim Meyering  <jim@meyering.net>
91853
91854         * lib/quote.c (quote_n): Fix typo in comment.
91855
91856 2003-03-18  Bruno Haible  <bruno@clisp.org>
91857
91858         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91859         checking.
91860         * m4/onceonly_2_57.m4: Likewise.
91861
91862 2003-03-17  Bruno Haible  <bruno@clisp.org>
91863
91864         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91865         (m4_quote): Remove macro.
91866         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91867
91868 2003-03-14  Jim Meyering  <jim@meyering.net>
91869
91870         Merge changes from Coreutils.
91871         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91872         to be const, in order to avoid warnings.
91873         (obstack_room): Likewise.
91874         (obstack_empty_p): Likewise.
91875
91876 2003-03-14  Bruno Haible  <bruno@clisp.org>
91877
91878         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91879         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91880
91881 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91882
91883         Merge changes from Bison.
91884         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91885         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91886         when compiling Bison 1.875's `bitset bset = obstack_alloc
91887         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91888         * lib/hash.c: Include <stdbool.h> unconditionally.
91889
91890 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91891
91892         * m4/onceonly.m4 (m4_quote): New macro.
91893         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91894         Quote AC_FOREACH variable-expansions properly.
91895
91896 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91897
91898         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91899
91900 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91901
91902         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91903         Reported by Bruce Becker; see:
91904         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91905
91906 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91907             Bruno Haible  <bruno@clisp.org>
91908
91909         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91910         Reported by John Hughes, see
91911         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91912
91913 2003-02-20  Bruno Haible  <bruno@clisp.org>
91914
91915         * MODULES.html.sh (func_all_modules): Add poll.
91916
91917 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91918
91919         * modules/poll: New file.
91920
91921 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91922
91923         * lib/poll_.h: New file.
91924         * lib/poll.c: New file.
91925
91926 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91927
91928         * m4/poll.m4: New file.
91929
91930 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91931
91932         * modules/mathl: New file.
91933
91934 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91935
91936         * lib/mathl.h: New file.
91937         * lib/acosl.c: New file.
91938         * lib/asinl.c: New file.
91939         * lib/atanl.c: New file.
91940         * lib/ceill.c: New file.
91941         * lib/cosl.c: New file.
91942         * lib/expl.c: New file.
91943         * lib/floorl.c: New file.
91944         * lib/frexpl.c: New file.
91945         * lib/ldexpl.c: New file.
91946         * lib/logl.c: New file.
91947         * lib/sincosl.c: New file.
91948         * lib/sinl.c: New file.
91949         * lib/sqrtl.c: New file.
91950         * lib/tanl.c: New file.
91951         * lib/trigl.c: New file.
91952         * lib/trigl.h: New file.
91953
91954 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91955
91956         * m4/mathl.m4: New file.
91957
91958 2003-02-18  Bruno Haible  <bruno@clisp.org>
91959
91960         * MODULES.html.sh (func_all_modules): Add mathl.
91961
91962 2003-02-17  Bruno Haible  <bruno@clisp.org>
91963
91964         * modules/mkdtemp: New module.
91965         * MODULES.html.sh (func_all_modules): Add it.
91966
91967 2003-02-17  Bruno Haible  <bruno@clisp.org>
91968
91969         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91970
91971 2003-02-17  Bruno Haible  <bruno@clisp.org>
91972
91973         * lib/mkdtemp.h: New file, from GNU gettext.
91974         * lib/mkdtemp.c: New file, from GNU gettext.
91975
91976 2003-02-02  Jim Meyering  <jim@meyering.net>
91977
91978         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91979         e.g. glibc-2.2.93.
91980
91981 2003-01-31  Bruno Haible  <bruno@clisp.org>
91982
91983         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91984         'rpl_rename'.
91985         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91986         'rpl_strnlen'.
91987         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91988         'rpl_strtod'.
91989         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91990         'rpl_utime'.
91991
91992 2003-01-31  Bruno Haible  <bruno@clisp.org>
91993
91994         * lib/rename.c: #undef rename before defining rpl_rename.
91995         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91996
91997 2003-01-30  Bruno Haible  <bruno@clisp.org>
91998
91999         * modules/vasnprintf, modules/vasprintf: New modules.
92000         * MODULES.html.sh (func_all_modules): Add them.
92001
92002 2003-01-30  Bruno Haible  <bruno@clisp.org>
92003
92004         * m4/signed.m4: New file, from GNU gettext.
92005         * m4/longdouble.m4: New file, from GNU gettext.
92006         * m4/wchar_t.m4: New file, from GNU gettext.
92007         * m4/wint_t.m4: New file, from GNU gettext.
92008         * m4/vasnprintf.m4: New file.
92009         * m4/vasprintf.m4: New file.
92010
92011 2003-01-30  Bruno Haible  <bruno@clisp.org>
92012
92013         * lib/printf-args.h: New file, from GNU gettext.
92014         * lib/printf-args.c: New file, from GNU gettext.
92015         * lib/printf-parse.h: New file, from GNU gettext.
92016         * lib/printf-parse.c: New file, from GNU gettext.
92017         * lib/vasnprintf.h: New file, from GNU gettext.
92018         * lib/vasnprintf.c: New file, from GNU gettext.
92019         * lib/asnprintf.c: New file, from GNU gettext.
92020         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92021         * lib/vasprintf.c: New file, from GNU gettext.
92022         * lib/asprintf.c: New file, from GNU gettext.
92023
92024 2003-01-29  Bruno Haible  <bruno@clisp.org>
92025
92026         * modules/stpncpy: New module.
92027         * MODULES.html.sh (func_all_modules): Add it.
92028
92029 2003-01-29  Bruno Haible  <bruno@clisp.org>
92030
92031         * m4/stpncpy.m4: New file.
92032
92033 2003-01-29  Bruno Haible  <bruno@clisp.org>
92034
92035         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92036         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92037
92038 2003-01-28  Bruno Haible  <bruno@clisp.org>
92039
92040         * modules/c-ctype: New module.
92041         * MODULES.html.sh (func_all_modules): Add it.
92042
92043 2003-01-28  Bruno Haible  <bruno@clisp.org>
92044
92045         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92046         Paul Eggert.
92047         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92048         Paul Eggert.
92049
92050 2003-01-27  Bruno Haible  <bruno@clisp.org>
92051
92052         * modules/xsetenv: New module.
92053         * MODULES.html.sh (func_all_modules): Add it.
92054
92055 2003-01-27  Bruno Haible  <bruno@clisp.org>
92056
92057         * lib/xsetenv.h: New file, from GNU gettext.
92058         * lib/xsetenv.c: New file, from GNU gettext.
92059
92060 2003-01-23  Jim Meyering  <jim@meyering.net>
92061
92062         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92063         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92064
92065 2003-01-23  Bruno Haible  <bruno@clisp.org>
92066
92067         * modules/minmax: New module.
92068         * MODULES.html.sh (func_all_modules): Add it.
92069
92070 2003-01-23  Bruno Haible  <bruno@clisp.org>
92071
92072         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92073         Eggert.
92074
92075 2003-01-22  Bruno Haible  <bruno@clisp.org>
92076
92077         * modules/exit: New module.
92078         * MODULES.html.sh (func_all_modules): Add it.
92079
92080 2003-01-22  Bruno Haible  <bruno@clisp.org>
92081
92082         * lib/exit.h: New file, from GNU gettext.
92083
92084 2003-01-19  Bruno Haible  <bruno@clisp.org>
92085
92086         * gnulib-tool: Recognize option --extract-maintainer.
92087         (func_get_maintainer): New function.
92088         * modules/*: Add Maintainer entry.
92089
92090 2003-01-16  Jim Meyering  <jim@meyering.net>
92091
92092         * m4/regex.m4: The `regex' struct is both input and output.
92093         Initialize it before each use.  Patch by Tim Waugh.
92094
92095 2003-01-16  Bruno Haible  <bruno@clisp.org>
92096
92097         * MODULES.html.sh: Add a table of contents. Add the module name as
92098         leftmost column. Add hyperlinks.
92099
92100 2003-01-15  Bruno Haible  <bruno@clisp.org>
92101
92102         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92103
92104 2003-01-15  Bruno Haible  <bruno@clisp.org>
92105
92106         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92107         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92108         suffix.
92109
92110 2003-01-15  Bruno Haible  <bruno@clisp.org>
92111
92112         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92113
92114 2003-01-15  Bruno Haible  <bruno@clisp.org>
92115
92116         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92117         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92118
92119 2003-01-14  Jim Meyering  <jim@meyering.net>
92120
92121         * lib/same.c (same_name): Tweak a comment.
92122
92123 2003-01-14  Bruno Haible  <bruno@clisp.org>
92124
92125         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92126         when a string comparison is sufficient.
92127
92128 2003-01-14  Bruno Haible  <bruno@clisp.org>
92129
92130         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92131         'unsigned int'.
92132
92133 2003-01-14  Bruno Haible  <bruno@clisp.org>
92134
92135         * lib/hash-pjw.c: Add comment about low quality of this function.
92136
92137 2003-01-13  Bruno Haible  <bruno@clisp.org>
92138
92139         * modules/stpcpy: Distribute lib/stpcpy.h.
92140         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92141
92142 2003-01-13  Bruno Haible  <bruno@clisp.org>
92143
92144         * modules/*: Add a description.
92145         * modules/strpbrk: Fix Makefile.am snippet.
92146         * modules/strtoimax: Fix dependencies.
92147         * modules/strtoumax: Likewise.
92148
92149 2003-01-13  Bruno Haible  <bruno@clisp.org>
92150
92151         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92152         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92153         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92154
92155 2003-01-13  Bruno Haible  <bruno@clisp.org>
92156
92157         * gnulib-tool (func_create_testdir): Store config/* files in the main
92158         directory.
92159         * config.rpath: Move to ...
92160         * config/config.rpath: ... here.
92161         * modules/gettext: Contains config/config.rpath, not config.rpath.
92162         * modules/iconv: Likewise.
92163
92164 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92165
92166         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92167         to avoid collisions with libcurses and libreadline.
92168
92169         * m4/getstr.m4: Remove.
92170         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92171
92172 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92173
92174         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92175         to avoid collisions with libcurses and libreadline.
92176
92177         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92178         * lib/getstr.h, getstr.c: Remove.
92179         * lib/getline.c: Include "getline.h", to check interface.
92180         Move body of old getstr.c here: this defines MIN_CHUNK and
92181         declares getdelim2, which is renamed from getstr.
92182         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92183
92184         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92185         All uses changed.
92186         * lib/linebuffer.h: Likewise.
92187         (readline): Remove backward-compatibility macro.
92188
92189 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92190
92191         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92192         to avoid collisions with libcurses and libreadline.
92193         * getstr: Remove.
92194         * MODULES.html.sh: Remove getstr.
92195         * modules/getline: Depend on unlocked-io, not getstr.
92196
92197 2003-01-12  Jim Meyering  <jim@meyering.net>
92198
92199         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92200
92201 2003-01-10  Bruno Haible  <bruno@clisp.org>
92202
92203         * modules/alloca: Change Makefile.am requirements. Simplify Include
92204         requirements. Add lib/alloca_.h to file list.
92205
92206 2003-01-10  Bruno Haible  <bruno@clisp.org>
92207
92208         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92209
92210 2003-01-10  Bruno Haible  <bruno@clisp.org>
92211
92212         * lib/alloca_.h: New file.
92213         * lib/getdate.y: Unconditionally include alloca.h.
92214         * lib/makepath.c: Likewise.
92215         * lib/setenv.c: Likewise.
92216         * lib/userspec.c: Likewise.
92217
92218 2003-01-09  Karl Berry  <karl@gnu.org>
92219
92220         * MODULES.html.sh: include `dirname $0` in PATH, to find
92221         gnulib-tool.
92222
92223 2003-01-09  Bruno Haible  <bruno@clisp.org>
92224
92225         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92226         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92227
92228 2003-01-09  Bruno Haible  <bruno@clisp.org>
92229
92230         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92231
92232 2003-01-09  Bruno Haible  <bruno@clisp.org>
92233
92234         * lib/stdbool.h.in: New file.
92235
92236 2003-01-09  Bruno Haible  <bruno@clisp.org>
92237
92238         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92239         * MODULES.html.sh: Likewise.
92240
92241 2003-01-08  Jim Meyering  <jim@meyering.net>
92242
92243         * lib/full-write.c: Undefine and define-away `const' after inclusion
92244         of errno.h, not before.  Suggestion from Bruno Haible.
92245
92246 2003-01-08  Bruno Haible  <bruno@clisp.org>
92247
92248         * modules/full-read: Depend on full-write.
92249
92250 2003-01-08  Bruno Haible  <bruno@clisp.org>
92251
92252         * lib/safe-read.c: Include specification header first, to ensure its
92253         selfcontainedness.
92254         * lib/full-write.c: Likewise.
92255
92256 2003-01-07  Jim Meyering  <jim@meyering.net>
92257
92258         * lib/full-write.c: Rework so that it may serve to define full_read,
92259         too.
92260         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92261
92262 2003-01-07  Bruno Haible  <bruno@clisp.org>
92263
92264         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92265         <inttypes.h>.
92266         * lib/xstrtol.h: Likewise.
92267         * lib/xstrtoimax.c: Likewise.
92268         * lib/xstrtoumax.c: Likewise.
92269         * lib/human.h: Likewise.
92270
92271         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92272         on systems that have <inttypes.h> but not <stdint.h>.
92273
92274 2003-01-07  Bruno Haible  <bruno@clisp.org>
92275
92276         * MODULES.html.sh: Add copyright notice.
92277         (missed_files): Omit CVS directory entries.
92278         (func_module): Make it work with sed-3.02.
92279         * MODULES.txt: Remove file.
92280
92281 2003-01-06  Jim Meyering  <jim@meyering.net>
92282
92283         * lib/version-etc.c: Update year in translatable copyright string.
92284
92285 2003-01-03  Karl Berry  <karl@gnu.org>
92286
92287         * config/config.{guess,sub}: update from prep.
92288
92289 2003-01-02  Karl Berry  <karl@gnu.org>
92290
92291         * doc/COPYING.DOC: belatedly updated to 1.2.
92292
92293 2003-01-01  Karl Berry  <karl@gnu.org>
92294
92295         * gnulib-tool (func_verify_module): report module name $module in
92296         error message, not $1.
92297         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92298         be created, only if it doesn't exist.
92299         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92300
92301 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92302
92303         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92304
92305 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92306
92307         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92308         memcmp if strcoll doesn't work.
92309
92310 2002-12-31  Bruno Haible  <bruno@clisp.org>
92311
92312         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92313         nonempty.
92314
92315 2002-12-31  Bruno Haible  <bruno@clisp.org>
92316
92317         * lib/memcoll.c (STRCOLL): New macro.
92318         (memcoll): Use it.
92319
92320 2002-12-31  Bruno Haible  <bruno@clisp.org>
92321
92322         * lib/localcharset.h: New file.
92323         * lib/localcharset.c: Include it.
92324         * lib/unicodeio.c: Likewise.
92325
92326 2002-12-31  Bruno Haible  <bruno@clisp.org>
92327
92328         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92329         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92330
92331 2002-12-31  Bruno Haible  <bruno@clisp.org>
92332
92333         * lib/getline.h: Include <stddef.h>, for size_t.
92334
92335         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92336         * lib/unicodeio.c: Don't include <stddef.h>.
92337
92338 2002-12-31  Bruno Haible  <bruno@clisp.org>
92339
92340         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92341         HAVE_TM_ZONE.
92342
92343 2002-12-24  Karl Berry  <karl@gnu.org>
92344
92345         * config/config.guess: update from prep.
92346
92347 2002-12-24  Bruno Haible  <bruno@clisp.org>
92348
92349         General infrasructure.
92350         * m4/README: Rewritten.
92351         * m4/onceonly.m4: New file.
92352         * m4/onceonly_2_57.m4: New file.
92353
92354         Module atexit.
92355         * m4/atexit.m4: New file.
92356
92357         Module strtod.
92358         * m4/strtod.m4: New file.
92359
92360         Module strtol.
92361         * m4/strtol.m4: New file.
92362
92363         Module strtoul.
92364         * m4/strtoul.m4: New file.
92365
92366         Module memchr.
92367         * m4/memchr.m4: New file.
92368
92369         Module memcmp.
92370         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92371         (jm_FUNC_MEMCMP): Invoke it.
92372
92373         Module memcpy.
92374         * m4/memcpy.m4: New file.
92375
92376         Module memmove.
92377         * m4/memmove.m4: New file.
92378
92379         Module memset.
92380         * m4/memset.m4: New file.
92381
92382         Module strcspn.
92383         * m4/strcspn.m4: New file.
92384
92385         Module strpbrk.
92386         * m4/strpbrk.m4: New file.
92387
92388         Module strstr.
92389         * m4/strstr.m4: New file.
92390
92391         Module strerror.
92392         * m4/strerror.m4: New file.
92393
92394         Module mktime.
92395         * m4/mktime.m4: Renamed from jm-mktime.m4.
92396         (gl_PREREQ_MKTIME): New macro.
92397         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92398
92399         Module malloc.
92400         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92401         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92402         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92403
92404         Module realloc.
92405         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92406         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92407         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92408
92409         Module strftime.
92410         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92411         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92412         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92413         gl_TM_GMTOFF.
92414         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92415
92416         Module xalloc.
92417         * m4/xalloc.m4: New file.
92418
92419         Module alloca.
92420         * m4/alloca.m4: New file.
92421
92422         Module putenv.
92423         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92424         (jm_FUNC_PUTENV): Invoke it.
92425
92426         Module setenv.
92427         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92428         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92429         when invoked twice.
92430         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92431         gt_FUNC_SETENV.
92432
92433         Module memrchr.
92434         * m4/memrchr.m4: New file.
92435
92436         Module stpcpy.
92437         * m4/stpcpy.m4: New file.
92438
92439         Module strcase.
92440         * m4/strcase.m4: New file.
92441
92442         Module strdup.
92443         * m4/strdup.m4: New file.
92444
92445         Module strnlen.
92446         * m4/strnlen.m4: New file.
92447
92448         Module strndup.
92449         * m4/strndup.m4: New file.
92450
92451         Module xstrtod.
92452         * m4/xstrtod.m4: New file.
92453
92454         Module xstrtol.
92455         * m4/xstrtol.m4: New file.
92456
92457         Module getdate.
92458         * m4/getdate.m4: New file.
92459
92460         Module unlocked-io.
92461         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92462         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92463         * m4/jm-glibc-io.m4n: Remove file.
92464
92465         Module long-options.
92466         * m4/long-options.m4: New file.
92467
92468         Module md5.
92469         * m4/md5.m4: New file.
92470
92471         Module sha.
92472         * m4/sha.m4: New file.
92473
92474         Module getstr.
92475         * m4/getstr.m4: New file.
92476
92477         Module getline.
92478         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92479         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92480         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92481         simply getline. Infoke gl_PREREQ_GETLINE.
92482
92483         Module obstack.
92484         * m4/obstack.m4: New file.
92485
92486         Module hash.
92487         * m4/hash.m4: New file.
92488
92489         Module readtokens.
92490         * m4/readtokens.m4: New file.
92491
92492         Module strverscmp.
92493         * m4/strverscmp.m4: New file.
92494
92495         Module stdbool.
92496         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92497         OSF/1.
92498
92499         Module strtoll.
92500         * m4/strtoll.m4: New file.
92501
92502         Module strtoull.
92503         * m4/strtoull.m4: New file.
92504
92505         Module strtoimax.
92506         * m4/strtoimax.m4: New file.
92507
92508         Module strtoumax.
92509         * m4/strtoumax.m4: New file.
92510
92511         Module xstrtoimax.
92512         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92513         jm_AC_PREREQ_XSTRTOIMAX.
92514         Moved the strtol prerequisites to strtol.m4.
92515         Moved the strtoll prerequisites to strtoll.m4.
92516         Moved the strtoimax prerequisites to strtoimax.m4.
92517
92518         Module xstrtoumax.
92519         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92520         jm_AC_PREREQ_XSTRTOUMAX.
92521         Moved the strtoul prerequisites to strtoul.m4.
92522         Moved the strtoull prerequisites to strtoull.m4.
92523         Moved the strtoumax prerequisites to strtoumax.m4.
92524
92525         Module chown.
92526         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92527         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92528
92529         Module dup2.
92530         * m4/dup2.m4: New file.
92531
92532         Module ftruncate.
92533         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92534         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92535
92536         Module getgroups.
92537         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92538         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92539
92540         Module gettimeofday.
92541         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92542         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92543         gl_PREREQ_GETTIMEOFDAY.
92544
92545         Module mkdir.
92546         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92547         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92548
92549         Module mkstemp.
92550         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92551         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92552         jm_AC_TYPE_UINTMAX_T.
92553         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92554
92555         Module stat.
92556         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92557         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92558
92559         Module lstat.
92560         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92561         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92562
92563         Module timespec.
92564         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92565         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92566         * m4/st_mtim.m4: Indentation.
92567
92568         Module nanosleep.
92569         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92570         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92571         gl_PREREQ_NANOSLEEP.
92572
92573         Module regex.
92574         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92575         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92576         (gl_REGEX): New macro.
92577
92578         Module rename.
92579         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92580         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92581
92582         Module rmdir.
92583         * m4/rmdir.m4: New file.
92584
92585         Module utime.
92586         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92587         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92588         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92589
92590         Module dirname.
92591         * m4/dirname.m4: New file.
92592
92593         Module getopt.
92594         * m4/getopt.m4: New file.
92595
92596         Module unistd-safer.
92597         * m4/unistd-safer.m4: New file.
92598
92599         Module fnmatch.
92600         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92601         declaration.
92602         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92603         (gl_FUNC_FNMATCH_POSIX): New macro.
92604         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92605         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92606         simply fnmatch.
92607
92608         Module exclude.
92609         * m4/exclude.m4: New file.
92610
92611         Module human.
92612         * m4/human.m4: New file.
92613
92614         Module acl.
92615         * m4/acl.m4: Nop.
92616
92617         Module backupfile.
92618         * m4/backupfile.m4: New file.
92619         * m4/d-ino.m4: Indentation.
92620
92621         Module fsusage.
92622         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92623         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92624         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92625
92626         Module dirfd.
92627         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92628         requirements.
92629
92630         Module euidaccess.
92631         * m4/euidaccess.m4: New file.
92632
92633         Module file-type.
92634         * m4/file-type.m4: New file.
92635
92636         Module fileblocks.
92637         * m4/fileblocks.m4: New file.
92638
92639         Module filemode.
92640         * m4/filemode.m4: New file.
92641
92642         Module isdir.
92643         * m4/isdir.m4: New file.
92644
92645         Module lchown.
92646         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92647         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92648
92649         Module makepath.
92650         * m4/makepath.m4: New file.
92651
92652         Module modechange.
92653         * m4/modechange.m4: New file.
92654
92655         Module mountlist.
92656         * m4/mountlist.m4: New file.
92657         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92658         Indentation.
92659
92660         Module path-concat.
92661         * m4/path-concat.m4: New file.
92662
92663         Module pathmax.
92664         * m4/pathmax.m4: New file.
92665
92666         Module same.
92667         * m4/same.m4: New file.
92668
92669         Module save-cwd.
92670         * m4/save-cwd.m4: New file.
92671
92672         Module savedir.
92673         * m4/savedir.m4: New file.
92674
92675         Module xgetcwd.
92676         * m4/xgetcwd.m4: New file.
92677         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92678
92679         Module xreadlink.
92680         * m4/xreadlink.m4: New file.
92681
92682         Module safe-read.
92683         * m4/safe-read.m4: New file.
92684
92685         Module safe-write.
92686         * m4/safe-write.m4: New file.
92687
92688         Module closeout.
92689         * m4/closeout.m4: New file.
92690
92691         Module stdio-safer.
92692         * m4/stdio-safer.m4: New file.
92693
92694         Module getpass.
92695         * m4/getpass.m4: New file.
92696
92697         Module getugroups.
92698         * m4/getugroups.m4: New file.
92699
92700         Module group-member.
92701         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92702         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92703
92704         Module idcache.
92705         * m4/idcache.m4: New file.
92706
92707         Module userspec.
92708         * m4/userspec.m4: New file.
92709
92710         Module gettime.
92711         * m4/clock_time.m4: New file.
92712         * m4/gettime.m4: New file.
92713
92714         Module settime.
92715         * m4/settime.m4: New file.
92716
92717         Module posixtm.
92718         * m4/posixtm.m4: New file.
92719
92720         Module gethostname.
92721         * m4/gethostname.m4: New file.
92722
92723         Module canon-host.
92724         * m4/canon-host.m4: New file.
92725
92726         Module gettext.
92727         * m4/codeset.m4: New file, from gettext-0.11.5.
92728         * m4/gettext.m4: New file, from gettext-0.11.5.
92729         * m4/glibc21.m4: New file, from gettext-0.11.5.
92730         * m4/iconv.m4: New file, from gettext-0.11.5.
92731         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92732         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92733         * m4/inttypes.m4: New file, from gettext-0.11.5.
92734         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92735         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92736         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92737         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92738         * m4/lib-link.m4: New file, from gettext-0.11.5.
92739         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92740         * m4/progtest.m4: New file, from gettext-0.11.5.
92741         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92742         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92743         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92744
92745         Module localcharset.
92746         * m4/localcharset.m4: New file.
92747
92748         Module hard-locale.
92749         * m4/hard-locale.m4: New file.
92750
92751         Module mbswidth.
92752         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92753         onceonly macros.
92754         * m4/mbrtowc.m4: Add comment.
92755
92756         Module memcasecmp.
92757         * m4/memcasecmp.m4: New file.
92758
92759         Module memcoll.
92760         * m4/memcoll.m4: New file.
92761
92762         Module unicodeio.
92763         * m4/unicodeio.m4: New file.
92764
92765         Module rpmatch.
92766         * m4/rpmatch.m4: New file.
92767
92768         Module yesno.
92769         * m4/yesno.m4: New file.
92770
92771         Module exitfail.
92772         * m4/exitfail.m4: New file.
92773
92774         Module c-stack.
92775         * m4/c-stack.m4 (gl_C_STACK): New macro.
92776         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92777
92778         Module error.
92779         * m4/error.m4 (gl_ERROR): New macro.
92780         (jm_PREREQ_ERROR): Use onceonly macros.
92781
92782         Module fatal.
92783         * m4/fatal.m4: New file.
92784
92785         Module getloadavg.
92786         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92787         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92788
92789         Module getpagesize.
92790         * m4/getpagesize.m4: New file.
92791
92792         Module getusershell.
92793         * m4/getusershell.m4: New file.
92794
92795         Module physmem.
92796         * m4/physmem.m4: New file.
92797
92798         Module posixver.
92799         * m4/posixver.m4: New file.
92800
92801         Module quotearg.
92802         * m4/quotearg.m4: New file.
92803
92804         Module quote.
92805         * m4/quote.m4: New file.
92806
92807         Module readutmp.
92808         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92809
92810         Module sig2str.
92811         * m4/sig2str.m4: New file.
92812
92813         Other.
92814         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92815         ulonglong.m4.
92816         * m4/intmax_t.m4: New file.
92817         * m4/d-type.m4: Indentation.
92818         * m4/jm-macros.m4: Update.
92819         * m4/prereq.m4 (jm_PREREQ): Update.
92820         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92821         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92822         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92823         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92824         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92825         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92826         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92827         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92828         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92829         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92830         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92831         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92832         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92833         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92834         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92835         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92836         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92837         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92838         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92839
92840 2002-12-24  Bruno Haible  <bruno@clisp.org>
92841
92842         * MODULES.txt: Update according to m4/ changes.
92843
92844         Module gettext.
92845         * config.rpath: New file, from gettext-0.11.5.
92846
92847         * modules/*: New module descriptions.
92848         * gnulib-tool: New file.
92849         * MODULES.html.sh: New file.
92850
92851 2002-12-21  Karl Berry  <karl@gnu.org>
92852
92853         * doc/fdl.texi: update to version 1.2.
92854
92855 2002-12-19  Karl Berry  <karl@gnu.org>
92856
92857         * config/config.guess: update from prep.
92858
92859 2002-12-18  Bruno Haible  <bruno@clisp.org>
92860
92861         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92862         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92863
92864 2002-12-17  Bruno Haible  <bruno@clisp.org>
92865
92866         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92867         stdlib.h, string.h.
92868
92869 2002-12-17  Bruno Haible  <bruno@clisp.org>
92870
92871         * lib/canon-host.c (strdup): Remove unused declaration.
92872
92873         * lib/fsusage.c: Include full_read.h.
92874         (get_fs_usage): Use full_read instead of safe_read.
92875
92876         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92877
92878 2002-12-12  Karl Berry  <karl@gnu.org>
92879
92880         * config/config.guess: update from prep.
92881
92882 2002-12-11  Bruno Haible  <bruno@clisp.org>
92883
92884         * m4/setenv.m4: New file, from gettext-0.11.5.
92885
92886 2002-12-11  Bruno Haible  <bruno@clisp.org>
92887
92888         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92889         not unsetenv().
92890         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92891         modifications:
92892
92893         2002-12-11  Bruno Haible  <bruno@clisp.org>
92894
92895                 * setenv.c (alloca): Fall back to malloc.
92896                 (freea): New macro.
92897                 (setenv): Use freea() to free memory allocated with alloca().
92898
92899         2002-11-13  Bruno Haible  <bruno@clisp.org>
92900
92901                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92902                 function declarations.
92903                 * unsetenv.c (unsetenv): Likewise.
92904
92905         2002-03-04  Bruno Haible  <bruno@clisp.org>
92906
92907                 Portability to AIX 4.3.3.
92908                 * unsetenv.c: New file, extracted from setenv.c.
92909                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92910
92911         2001-12-20  Bruno Haible  <bruno@clisp.org>
92912
92913                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92914                 use malloc instead. For SunOS 4.
92915
92916         2001-12-11  Bruno Haible  <bruno@clisp.org>
92917
92918                 * setenv.c: Declare alloca.
92919                 (compar_fn_t): New typedef.
92920                 (KNOWN_VALUE, STORE_VALUE): Use it.
92921
92922         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92923         setenv.h.
92924
92925 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92926
92927         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92928         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92929         Choose values that are less likely to collide with system fnmatch
92930         options.
92931         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92932         defined (e.g., a pure POSIX system).
92933         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92934         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92935
92936 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92937
92938         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92939         a pain in practice to deal with generated m4 files.  This change
92940         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92941
92942         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92943         and jm-glibc-io.m4, as they are no longer a special case.
92944         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92945         kludge and the auto-generation stuff.  Check only whether the
92946         functions are declared, not whether they exist, since older hosts
92947         that don't declare the functions can't use the optimization anyway.
92948
92949 2002-12-06  Jim Meyering  <jim@meyering.net>
92950
92951         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92952
92953         Merge in changes from libc's misc/error.c, in preparation
92954         for the merge of gnulib's changes back into libc.
92955
92956         * lib/error.c (_): Define only if not already defined.
92957         Move definition to follow all #include directives.
92958         Include unlocked-io.h only if !_LIBC.
92959         [_LIBC]: Include <libio/libioP.h>.
92960         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92961         (fflush): Tweak definition to use INTUSE.
92962         (putc): Define.
92963
92964 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92965
92966         * lib/alloca.c [defined emacs]: Include "lisp.h".
92967         (xalloc_die) [defined emacs]: New macro.
92968         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92969         [! defined emacs]: Include <xalloc.h>.
92970         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92971         (pointer): Typedef to POINTER_TYPE *.
92972         (malloc): Remove decl; we now always use xmalloc.
92973         (alloca): Use old-style definition, since Emacs needs this.
92974         Check for arithmetic overflow when computing combined size.
92975
92976 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92977
92978         Do not generate unlocked-io.h automatically, since it's easier to
92979         maintain it by hand.
92980
92981         * lib/unlocked-io.h: New file, from GNU diffutils,
92982         but with proper copyright notice and attribution.
92983         * lib/gen-uio: Remove.
92984         * lib/Makefile.am: Add copyright notice.
92985         (libfetish_a_SOURCES): Add unlocked-io.h.
92986         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92987         (DISTCLEANFILES, io_functions): Remove macros.
92988         (EXTRA_DIST): Remove gen_uio.
92989         (unlocked-io.h): Remove rule.
92990
92991 2002-12-04  Jim Meyering  <jim@meyering.net>
92992
92993         Reflect the fact that stat.c and lstat.c are no longer generated.
92994         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92995         (DISTCLEANFILES): Likewise.
92996         (EXTRA_DIST): Likewise.
92997         (all_local): Don't depend on stat.c or lstat.c.
92998         (stat.c, lstat.c): Remove rules.
92999         (EXTRA_DIST): Remove xstat.in.
93000
93001         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93002         * lib/stat.c: New file.  Contents mostly from xstat.in.
93003         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93004         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93005
93006         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93007         too.
93008         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93009
93010 2002-12-03  Jim Meyering  <jim@meyering.net>
93011
93012         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93013         but not semantics, to minimize the differences between these two files.
93014         (safe_read): Change comment to mention SAFE_READ_ERROR.
93015
93016         * lib/safe-read.c (IS_EINTR): Define.
93017         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93018
93019 2002-12-02  Jim Meyering  <jim@meyering.net>
93020
93021         * lib/safe-read.c (EINTR): Define.
93022         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93023         (INT_MAX): Provide fallback.
93024         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93025
93026         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93027
93028 2002-12-02  Bruno Haible  <bruno@clisp.org>
93029
93030         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93031         Define, taken from safe-read.c.
93032         (INT_MAX): Provide fallback.
93033         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93034         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93035
93036         * lib/safe-read.c (EINTR): Remove definition.
93037         (safe_read): Don't use EINTR if it is absent.
93038
93039 2002-12-01  Jim Meyering  <jim@meyering.net>
93040
93041         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93042         zero.
93043         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93044
93045 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93046
93047         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93048         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93049         with `if (! (value < limit)) abort ();', for readability.
93050
93051 2002-11-26  Karl Berry  <karl@gnu.org>
93052
93053         * lib/strdup.c: copy from libc again, with jim's ok.
93054         * lib/.cppi-disable: re-add strdup.c
93055
93056 2002-11-25  Karl Berry  <karl@gnu.org>
93057
93058         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93059         instead of "strtol.c".
93060
93061 2002-11-25  Karl Berry  <karl@gnu.org>
93062
93063         * config/install-sh: update from automake for variable quoting, $0 in
93064         error msgs, etc.
93065
93066         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93067         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93068         entry.
93069
93070 2002-11-25  Jim Meyering  <jim@meyering.net>
93071
93072         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93073
93074 2002-11-24  Karl Berry  <karl@gnu.org>
93075
93076         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93077         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93078
93079 2002-11-24  Jim Meyering  <jim@meyering.net>
93080
93081         Update from coreutils:
93082
93083         * lib/mktime.c: Merge in changes from libc.
93084
93085         Avoid a link-time failure on some Linux systems.
93086         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93087         (otherwise).
93088         (__mon_yday): Declare with the STATIC attribute.
93089         (__mktime_internal): Likewise.
93090         Based on a report from Greg Schafer.
93091
93092 2002-11-23  Jim Meyering  <jim@meyering.net>
93093
93094         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93095         Use `unsigned', not `int', as type of index.
93096
93097         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93098
93099         * lib/fsusage.c: Remove unneeded parentheses around operands of
93100         `defined'.
93101
93102 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93103
93104         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93105         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93106         so that we can be included first.
93107         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93108         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93109         No need to include stddef.h or sys/types.h any more.
93110         Surround local include files with "", not "<>".
93111         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93112         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93113         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93114         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93115         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93116         (ISPRINT): Remove; no longer needed now that we assume C89.
93117
93118         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93119         Preserve errno.
93120
93121         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93122         quotearg_char): Use SIZE_MAX rather than
93123         (size_t) -1 when we are talking about "infinity".
93124
93125         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93126
93127 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93128
93129         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93130         hint that one should use `if (! x) abort ();' rather than `assert
93131         (x);', and anyway it's one less thing to worry about configuring.
93132         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93133         hash_rehash, hash_insert): Use abort rather than assert.
93134
93135 2002-11-22  Bruno Haible  <bruno@clisp.org>
93136
93137         * lib/safe-read.h: Assume C89. Add comments.
93138         (safe_read): Change return type to size_t.
93139         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93140         byte counts > SSIZE_MAX correctly.
93141         * lib/safe-write.h: New file.
93142         * lib/safe-write.c: New file.
93143         * lib/full-read.h: New file.
93144         * lib/full-read.c: New file.
93145         * lib/full-write.h: Assume C89. Add comments.
93146         * lib/full-write.c: Include safe-write.h.
93147         (full_write): Rewritten to use safe_write.
93148         Suggested by Jim Meyering and Paul Eggert.
93149
93150 2002-11-21  Jim Meyering  <jim@meyering.net>
93151
93152         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93153
93154         Merge in changes from the coreutils.
93155
93156         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93157         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93158         <stdint.h>.
93159         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93160         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93161         int.  Work more efficiently if X is the same width as uintmax_t.
93162         Do not compare X to -1, to avoid bogus compiler warning.
93163         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93164         Don't assume that f_frsize and f_bsize are the same type.
93165
93166         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93167         warning on FreeBSD.
93168
93169         * lib/makepath.c (make_path): Restore umask *before* creating the final
93170         component.
93171         (make_path): Minor reformatting.
93172
93173         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93174         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93175         HAVE_MALLOC/HAVE_REALLOC.
93176
93177         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93178         dummy ones.  At least on GNU/Linux systems, `auto' means something
93179         else.
93180         From Michael Stone.
93181
93182 2002-11-21  Bruno Haible  <bruno@clisp.org>
93183
93184         Remove case insensitive option matching.
93185         * lib/argmatch.h (argcasematch): Remove declaration.
93186         (ARGCASEMATCH): Remove macro.
93187         (__xargmatch_internal): Remove case_sensitive argument.
93188         (XARGMATCH): Update.
93189         (XARGCASEMATCH): Remove macro.
93190         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93191         case_sensitive argument.
93192         (argcasematch): Remove function.
93193         (__xargmatch_internal): Remove case_sensitive argument.
93194         (main): Use XARGMATCH instead of XARGCASEMATCH.
93195
93196         * lib/xmalloc.c: Change compile-time error message. Add comment about
93197         required autoconf version.
93198
93199 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93200
93201         Merge argmatch cleanups from Bison.  Assume C89.
93202
93203         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93204         Include stdlib.h, for EXIT_FAILURE.
93205         Always include <string.h>, since we assume C89.
93206         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93207         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93208         Include <stddef.h> instead, since it's all we need for size_t.
93209         (PARAMS): Remove.  All uses removed.
93210         (ARRAY_CARDINALITY): Do not bother to #undef.
93211         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93212         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93213         Remove unnecessary parentheses.
93214         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93215         Insert necessary parentheses.
93216         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93217         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93218
93219 2002-11-19  Bruno Haible  <bruno@clisp.org>
93220
93221         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93222         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93223
93224         * lib/mbswidth.h (PARAMS): Remove macro.
93225         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93226         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93227
93228         * lib/gcd.h (PARAMS): Remove macro.
93229         (gcd): Use ANSI C function declarations.
93230         * lib/gcd.c (gcd): Likewise.
93231
93232 2002-11-15  Bruno Haible  <bruno@clisp.org>
93233
93234         * lib/strcspn.c: Include <stddef.h>.
93235         (strcspn): Use ANSI C function declaration. Change return type to
93236         size_t. Use NULL.
93237         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93238         (strpbrk): Use NULL.
93239         * lib/strpbrk.h (PARAMS): Remove macro.
93240         (strpbrk): Use ANSI C function declaration.
93241         * lib/strstr.c: Don't include <sys/types.h>.
93242         * lib/strstr.h (PARAMS): Remove macro.
93243         (strstr): Use ANSI C function declarations.
93244
93245 2002-11-14  Karl Berry  <karl@gnu.org>
93246
93247         * config/mkinstalldirs: `do' on separate line, instead of
93248         `for var; do'.
93249
93250 2002-11-06  Bruno Haible  <bruno@clisp.org>
93251
93252         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93253         * lib/gcd.c (gcd): Likewise.
93254
93255 2002-11-05  Bruno Haible  <bruno@clisp.org>
93256
93257         * lib/gcd.h: New file, from gettext-0.11.5.
93258         * lib/gcd.c: New file, from gettext-0.11.5.
93259
93260 2002-11-05  Bruno Haible  <bruno@clisp.org>
93261
93262         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93263         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93264         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93265         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93266
93267         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93268         <libintl.h>.
93269         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93270         <libintl.h>.
93271
93272         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93273         * lib/human.c: Include gettext.h instead of <libintl.h>.
93274         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93275         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93276         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93277         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93278         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93279         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93280         (textdomain): Remove definition.
93281         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93282
93283         * lib/long-options.c: Remove include of <libintl.h> and definition of
93284         _.
93285         * lib/same.c: Remove include of <libintl.h> and definition of _.
93286
93287 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93288
93289         * lib/config.charset: A few additions for Solaris.
93290
93291 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93292
93293         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93294         * lib/localcharset.c (locale_charset): Declare as extern "C".
93295
93296 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93297
93298         * lib/config.charset: msdos in uk_UA uses CP1125.
93299
93300 2002-11-04  Bruno Haible  <bruno@clisp.org>
93301
93302         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93303         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93304         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93305         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93306         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93307
93308 2002-11-04  Bruno Haible  <bruno@clisp.org>
93309
93310         * lib/localcharset.c (locale_charset): Don't return an empty string.
93311
93312 2002-11-04  Bruno Haible  <bruno@clisp.org>
93313
93314         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93315         aliases.
93316
93317 2002-11-04  Bruno Haible  <bruno@clisp.org>
93318
93319         * lib/config.charset: Update for newest glibc. Add canonical names
93320         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93321
93322 2002-11-04  Bruno Haible  <bruno@clisp.org>
93323
93324         * lib/config.charset: Add support for NetBSD.
93325
93326 2002-11-04  Bruno Haible  <bruno@clisp.org>
93327
93328         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93329
93330 2002-11-01  Bruno Haible  <bruno@clisp.org>
93331
93332         * configure.in: Add AC_CONFIG_AUX_DIR call.
93333         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93334         test/Makefile.
93335         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93336
93337 2002-09-28  Karl Berry  <karl@gnu.org>
93338
93339         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93340         installed automake until the next release, since changes have been
93341         made.
93342
93343 2002-09-25  Karl Berry  <karl@gnu.org>
93344
93345         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93346         * lib/getopt*: copy from libc/posix.
93347         * lib/gettext.h: copy from gettext.
93348         * lib/.cppi-disable: add strdup.c, gettext.h.
93349
93350 2002-09-25  Karl Berry  <karl@gnu.org>
93351
93352         * config/srclist.txt: enable gettext.h check.
93353         * config/config.{guess,sub}: update from prep.
93354         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93355                 from automake 1.6.3.
93356         See srclist*.
93357
93358 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93359
93360         * regex.c (PATFETCH): Remove the translating fetch.
93361         (PATFETCH_RAW): Rename to PATFETCH.
93362         (set_image_of_range): New fun.
93363         (SET_RANGE_TABLE_WORK_AREA): Use it.
93364         (regex_compile): Don't translate the pattern chars so eagerly.
93365         Only do it when inserting an `exactn' bytecode or when handling
93366         a char-range.
93367         (mutually_exclusive_p): Avoid empty statement.
93368
93369 2002-07-06  Jim Meyering  <meyering@lucent.com>
93370
93371         * m4/README: Don't mention Makefile.am.in.
93372         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93373
93374 2002-07-01  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/c-stack.c: Include sys/time.h.
93377         From Volker Borchert.
93378
93379 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93380
93381         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93382
93383 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93384
93385         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93386         New macro.  Use it uniformly instead of
93387         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93388         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93389         reported by Vin Shelton.
93390
93391 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93392
93393         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93394         Do not assume SA_SIGINFO behavior.
93395         Bug reported by Jim Meyering on NetBSD 1.5.2.
93396
93397 2002-06-22  Jim Meyering  <meyering@lucent.com>
93398
93399         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93401
93402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93403         now that configure.ac uses AC_GNU_SOURCE.
93404         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93405         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93406
93407         Update to latest tools.  Suggestions from Paul Eggert.
93408         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93409         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93410         * m4/fnmatch.m4: Likewise.
93411         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93412         to AC_HEADER_STDBOOL
93413
93414 2002-06-22  Jim Meyering  <meyering@lucent.com>
93415
93416         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93417         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93418
93419 2002-06-22  Jim Meyering  <meyering@lucent.com>
93420
93421         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93422
93423         * lib/exitfail.c, exitfail.h: Likewise.
93424         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93425
93426         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93427         of fnmatch.h.
93428         (EXTRA_DIST): Add fnmatch_loop.c.
93429         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93430
93431         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93432         * lib/fnmatch.c: Update from diffutils-2.8.2.
93433         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93434         * lib/fnmatch.h: Remove file.
93435
93436 2002-06-21  Jim Meyering  <meyering@lucent.com>
93437
93438         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93439         * m4/mbrtowc.m4: Likewise.
93440
93441         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93442         * m4/mbswidth.m4: Reflect name change:
93443         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93444         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93445
93446         * m4/lib-link.m4: Update from gettext-0.11.2.
93447         * m4/gettext.m4: Likewise.
93448
93449         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93450         From Alfred M. Szmidt.
93451
93452 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93453
93454         * lib/file-type.h: Report an error if neither S_ISREG nor
93455         S_IFREG is defined, instead of using a test specific to glibc
93456         2.2.  This should be safe, since POSIX requires S_ISREG and
93457         Unix Version 7 had S_IFREG.  We don't need to check for
93458         <sys/types.h> since we don't use any symbols that it defines.
93459
93460 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93461
93462         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93463         $@-t, so that each temporary file name is unique and valid in the first
93464         8 characters, for operation under DOS.
93465
93466 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93467
93468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93469
93470 2002-06-15  Jim Meyering  <meyering@lucent.com>
93471
93472         Work even with DJGPP 2.03, which lacks support for symlinks.
93473         From Richard Dawe.
93474         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93475         is defined.
93476         * lib/lchown.c (S_ISLNK): Likewise.
93477
93478 2002-06-15  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93481         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93482         have been included before this file.
93483
93484 2002-06-14  Jim Meyering  <meyering@lucent.com>
93485
93486         * lib/file-type.h: Use the version from diffutils-2.8.2.
93487         * lib/file-type.c: Likewise.
93488
93489 2002-06-07  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93492         They're needed at least for NetBSD 1.5.2.
93493         ($statxfs_includes): Include those same headers.
93494         ($statxfs_includes): Include sys/vfs.h if available.
93495         ($statxfs_includes): Likewise for sys/statvfs.h.
93496         Check for the following members in both structs statfs and statvfs:
93497         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93498
93499 2002-06-01  Jim Meyering  <meyering@lucent.com>
93500
93501         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93502         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93503
93504 2002-05-28  Jim Meyering  <meyering@lucent.com>
93505
93506         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93507         Reported by Volker Borchert.
93508
93509 2002-05-27  Jim Meyering  <meyering@lucent.com>
93510
93511         Fix a problem seen only on nonconforming systems whereby ls.c's
93512         use of localtime, and then of gettimeofday would cause trouble:
93513         the localtime call used to initialize rpl_gettimeofday's save
93514         mechanism would clobber ls's current local time information so
93515         that in any long listing the first file would always be listed
93516         with date 1970-01-01.  Analysis by Volker Borchert.
93517
93518         * lib/gettimeofday.c (localtime): Undefine.
93519         (rpl_localtime): New function.
93520
93521 2002-05-27  Jim Meyering  <meyering@lucent.com>
93522
93523         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93524         localtime.
93525
93526         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93527         use the replacement function; it wouldn't resolve at link time.
93528         Reported by Volker Borchert.
93529
93530 2002-05-22  Jim Meyering  <meyering@lucent.com>
93531
93532         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93533         file-type.h.
93534         * lib/file-type.h: New file.
93535         * lib/file-type.c (file_type): New file/function.  Extracted from
93536         diffutils.
93537
93538 2002-04-30  Jim Meyering  <meyering@lucent.com>
93539
93540         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93541
93542 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93543
93544         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93545
93546 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93547
93548         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93549         Do not check for alloca.h (no longer used) or stdbool.h (was never
93550         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93551
93552 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93553
93554         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93555
93556 2002-04-29  Jim Meyering  <meyering@lucent.com>
93557
93558         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93559         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93560         Use AC_FUNC_STRNLEN here instead.
93561
93562         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93563         With autoconf-2.53a, it's part of AC_PROG_CC.
93564
93565 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93566
93567         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93569
93570 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93571
93572         * lib/sig2str.h, lib/sig2str.c: New files.
93573         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93574
93575 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93576
93577         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93578         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93579         of 127, since 64 is the largest conceivable number for ancient
93580         nonstandard hosts.
93581         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93582
93583 2002-04-28  Jim Meyering  <meyering@lucent.com>
93584
93585         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93586
93587 2002-04-24  Jim Meyering  <meyering@lucent.com>
93588
93589         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93590         (jm_PREREQ): Use it.
93591
93592         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93593         mach/mach.h fcntl.h.
93594         Check for this function: setlocale.
93595
93596 2002-04-24  Jim Meyering  <meyering@lucent.com>
93597
93598         * lib/gettext.h: New file, from Gettext.
93599         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93600         (libfetish_a_SOURCES): Add gettext.h.
93601
93602 2002-04-16  Jim Meyering  <meyering@lucent.com>
93603
93604         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93605         ut_pid, ut_id, ut_exit.
93606
93607 2002-04-16  Jim Meyering  <meyering@lucent.com>
93608
93609         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93610         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93611         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93612
93613 2002-04-12  Jim Meyering  <meyering@lucent.com>
93614
93615         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93616         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93617         existence of the getmntinfo function.  Needed for Darwin 5.3.
93618
93619         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93620         This is necessary at least on Darwin 5.3.
93621
93622         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93623         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93624         strnlen.o in the library, and that makes some versions of ranlib
93625         object.
93626
93627 2002-04-12  Jim Meyering  <meyering@lucent.com>
93628
93629         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93630
93631 2002-04-09  Jim Meyering  <meyering@lucent.com>
93632
93633         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93634         to be more precise.  Rather than saying we're checking whether the
93635         function `works', say what we're testing.
93636         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93637         Reported by Bruno Haible.
93638
93639 2002-03-10  Jim Meyering  <meyering@lucent.com>
93640
93641         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93642         Suggestion from Santiago Vila.
93643
93644 2002-03-08  Jim Meyering  <meyering@lucent.com>
93645
93646         * lib/rename.c: Mention that this wrapper is needed also on
93647         mips-dec-ultrix4.4 systems.
93648
93649 2002-03-02  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93652         not HAVE_CLOCK_SETTIME.
93653
93654 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93655
93656         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93657         Check for clock_settime.
93658
93659 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93660
93661         * lib/nanosleep.h: Rename to....
93662         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93663
93664         * lib/gettime.c: New file.
93665         * lib/settime.c: New file.
93666         * lib/stime.c: Remove.
93667
93668         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93669         timespec.h.  Remove nanosleep.h.
93670
93671 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93672
93673         * m4/acl.m4: New file.
93674         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93675         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93676
93677 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93678
93679         * lib/acl.c, lib/acl.h: New files.
93680         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93681
93682 2002-02-24  Jim Meyering  <meyering@lucent.com>
93683
93684         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93685         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93686         cause trouble.  Reported by Nelson Beebe.
93687
93688 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93689
93690         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93691         compilers that don't know that xalloc_die never returns.
93692
93693 2002-02-20  Jim Meyering  <meyering@lucent.com>
93694
93695         * lib/getdate.c: Regenerate using bison-1.33.
93696
93697 2002-02-17  Jim Meyering  <meyering@lucent.com>
93698
93699         * config/config.guess (main): Don't use `head -1'; it's no longer
93700         portable. Use `sed 1q' instead.
93701
93702 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93703
93704         * m4/codeset.m4: Upgrade to gettext-0.11.
93705         * m4/gettext.m4: Upgrade to gettext-0.11.
93706         * m4/glibc21.m4: Upgrade to gettext-0.11.
93707         * m4/iconv.m4: Upgrade to gettext-0.11.
93708         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93709         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93710         * m4/lib-ld.m4: New file, from gettext-0.11.
93711         * m4/lib-link.m4: New file, from gettext-0.11.
93712         * m4/lib-prefix.m4: New file, from gettext-0.11.
93713         * m4/progtest.m4: Upgrade to gettext-0.11.
93714
93715 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93716
93717         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93718         (jm_PREREQ): Use it.
93719
93720 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/posixver.c, lib/posixver.h: New files.
93723         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93724
93725 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93726             Bruno Haible  <bruno@clisp.org>
93727
93728         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93729         (fwrite_success_callback): New declaration.
93730         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93731         print_unicode_char. Call failure callback instead of error.
93732         (fwrite_success_callback): New function.
93733         (exit_failure_callback): New function.
93734         (fallback_failure_callback): New function.
93735         (print_unicode_char): Call unicode_to_mb.
93736
93737 2002-01-26  Jim Meyering  <meyering@lucent.com>
93738
93739         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93740         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93741
93742 2002-01-26  Jim Meyering  <meyering@lucent.com>
93743
93744         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93745
93746 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93747
93748         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93749
93750 2002-01-22  Jim Meyering  <meyering@lucent.com>
93751
93752         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93753         Otherwise, some versions of automake would omit the rule that makes
93754         Makefile from Makefile.in.
93755
93756 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93757
93758         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93759         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93760         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93761         (memcoll): Set errno to zero if there is no error.
93762
93763         * lib/quotearg.c (quotearg_buffer_restyled):
93764         Fix bug with quoting buffers containing NUL when backslashing escapes.
93765         This bug was exposed by the other changes in this patch.
93766         (quotearg_n_options): New arg ARGSIZE.
93767         All callers changed.
93768         (quoting_options_from_style): New function.
93769         (quotearg_n_style): Use it.
93770         (quotearg_n_style_mem): New function.
93771
93772         * lib/quotearg.h (quotearg_n_style_mem): New function.
93773
93774 2002-01-19  Jim Meyering  <meyering@lucent.com>
93775
93776         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93777         Remove useless quotes: DF_PROG="df".
93778         * m4/strnlen.m4: New file.
93779
93780 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93781
93782         * lib/backupfile.c (ISDIGIT): Comment fix.
93783         * lib/getdate.y (ISDIGIT): Likewise.
93784         * lib/posixtm.c (ISDIGIT, year): Likewise.
93785         * lib/strverscmp.c (ISDIGIT): Likewise.
93786         * lib/userspec.c (ISDIGIT): Likewise.
93787
93788 2002-01-16  Jim Meyering  <meyering@lucent.com>
93789
93790         * lib/getdate.y: Add three semicolons, each just before a closing
93791         brace. Bison (as of version 1.31) no longer papers over that mistake.
93792
93793 2002-01-05  Jim Meyering  <meyering@lucent.com>
93794
93795         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93796
93797 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93798
93799         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93800         not silently exit merely because the output buffer happens to
93801         have nothing pending.
93802
93803 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93804
93805         See the big note in ../ChangeLog.
93806         * lib/human.c (suffixes): Prefer K to k for 1024.
93807         (generate_suffix_backwards): New function.
93808         (human_readable_inexact): Use it.
93809         * lib/xstrtol.c (__xstrtol): If there is no number but there
93810         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93811         Accept 'K' as well as 'k'.
93812
93813 2001-12-15  Jim Meyering  <meyering@lucent.com>
93814
93815         * lib/regex.h (__restrict_arr): Update from libc.
93816
93817         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93818         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93819         (STREQ): Define.
93820
93821 2001-12-14  Jim Meyering  <meyering@lucent.com>
93822
93823         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93824         Suggestion from Bruno Haible.
93825
93826 2001-12-10  Jim Meyering  <meyering@lucent.com>
93827
93828         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93829         xrealloc, Instead, include "xalloc.h".
93830         (initbuffer): Don't cast xmalloc return value to char*.
93831         (readline): Reword comment.
93832         Don't cast xrealloc return value to char*
93833         Return NULL, not 0.
93834
93835 2001-12-09  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93838         about `signed and unsigned type in conditional expression'.
93839         * lib/posixtm.c (posix_time_parse): Likewise.
93840
93841         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93842
93843         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93844         to avoid a pedantic warning.
93845
93846         * lib/getstr.c: Don't include assert.h.
93847         (getstr): Remove warning-evoking assertions.
93848         Return -1 if offset parameter is out of bounds.
93849         Change the type of a local from int to size_t.
93850
93851         * lib/strftime.c (my_strftime_localtime_r): Include this function
93852         definition in the `#if ! HAVE_TM_GMTOFF' block.
93853
93854         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93855         Include xalloc.h instead.
93856
93857 2001-12-02  Jim Meyering  <meyering@lucent.com>
93858
93859         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93860         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93861         included.
93862
93863         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93864         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93865
93866 2001-11-30  Akim Demaille  <akim@epita.fr>
93867
93868         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93869         before being defined.
93870
93871 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93872
93873         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93874         First arg is int, not unsigned.
93875         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93876         (SIZE_MAX, UINT_MAX): New macros.
93877         (quotearg_n_options): Abort if N is negative.
93878         Avoid overflow check on hosts where size_t is 64 bits and int
93879         is 32 bits, as overflow is impossible there.
93880         Fix off-by-one typo that caused unnecessary reallocation.
93881
93882 2001-11-27  Jim Meyering  <meyering@lucent.com>
93883
93884         * lib/tempname.c: Merge with version from libc.
93885         * lib/regex.c: Likewise.
93886
93887         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93888         systems for which STDC_HEADERS is 0, it was not included, resulting in
93889         a warning about an integer-to-pointer conversion problem with getenv.
93890         Reported by Volker Borchert.
93891
93892 2001-11-26  Jim Meyering  <meyering@lucent.com>
93893
93894         * lib/gtod.h: Remove file.
93895         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93896         * lib/gettimeofday.c: Don't include gtod.h.
93897         (GTOD_init): Remove function.
93898         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93899         Suggestion from Volker Borchert.
93900
93901 2001-11-23  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93904         it.
93905         * lib/hash.c (struct hash_table): Define it here instead.
93906
93907 2001-11-22  Jim Meyering  <meyering@lucent.com>
93908
93909         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93910
93911 2001-11-20  Jim Meyering  <meyering@lucent.com>
93912
93913         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93914         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93915
93916 2001-11-19  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93919         directory.  Use "conftestXXXXXX" as the template.
93920         Suggestion from Paul Eggert.
93921
93922         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93923         immediately, so the test doesn't mistakenly hit the max-open-files
93924         limit.
93925
93926 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93927
93928         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93929         (TEMPORARIES): New macro.
93930         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93931         removes an artificial limitation (e.g. HP-UX 10.20, where
93932         TMP_MAX is 17576).
93933
93934 2001-11-18  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93937
93938 2001-11-18  Jim Meyering  <meyering@lucent.com>
93939
93940         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93941         on SunOS 4.
93942
93943         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93944         files will be created before anything else.
93945
93946 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93947
93948         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93949         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93950
93951 2001-11-17  Jim Meyering  <meyering@lucent.com>
93952
93953         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93954         Prompted by a report from Bob Proulx.
93955
93956         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93957         Instead, require UTILS_FUNC_MKSTEMP.
93958
93959 2001-11-17  Jim Meyering  <meyering@lucent.com>
93960
93961         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93962         Now, that's done as part of AC_FUNC_STRTOD.
93963
93964 2001-11-17  Jim Meyering  <meyering@lucent.com>
93965
93966         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93967         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93968         rather than group writable.  Patch by Juan F. Codagnone.
93969
93970         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93971         xrealloc, Instead, include "xalloc.h".
93972
93973         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93974         Remove explicit declarations of xmalloc, xrealloc,
93975         and xstrdup.  Instead, include "xalloc.h".
93976
93977         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93978         unlocked-io.h.
93979         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93980         Likewise.
93981         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93982
93983         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93984         Reported by Padraig Brady.
93985
93986         * lib/mkstemp.c: #undef mkstemp.
93987         Include config.h.
93988         (rpl_mkstemp): Rename from mkstemp.
93989         Protoize.
93990
93991 2001-11-16  Jim Meyering  <meyering@lucent.com>
93992
93993         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93994         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93995         determine the amount of total physical memory, use pstat_getstatic.
93996         HPUX-11 doesn't define _SC_PHYS_PAGES.
93997         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93998         If sysconf couldn't be used to determine the amount of available
93999         physical memory, use both pstat_getstatic and pstat_getdynamic.
94000         Based on a patch from Bob Proulx.
94001
94002 2001-11-10  Jim Meyering  <meyering@lucent.com>
94003
94004         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94005         (jm_PREREQ): Use it.
94006
94007 2001-11-09  Jim Meyering  <meyering@lucent.com>
94008
94009         * m4/jm-macros.m4: Require autoconf-2.52f.
94010         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94011         Use these AC_-prefixed names, not the AM_-prefixed ones.
94012
94013         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94014
94015 2001-11-05  Jim Meyering  <meyering@lucent.com>
94016
94017         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94018
94019 2001-11-04  Jim Meyering  <meyering@lucent.com>
94020
94021         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94022         $DEFS.
94023
94024 2001-11-03  Jim Meyering  <meyering@lucent.com>
94025
94026         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94027         of AC_DEFUN.
94028
94029         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94030         know the name of the variable in the macro definition.
94031
94032 2001-11-03  Jim Meyering  <meyering@lucent.com>
94033
94034         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94035         in argmatch_to_argument call.
94036
94037         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94038         argument.
94039
94040         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94041         e.g., a fault due to an attempt to free a NULL pointer.
94042
94043 2001-11-01  Jim Meyering  <meyering@lucent.com>
94044
94045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94046         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94047
94048 2001-11-01  Jim Meyering  <meyering@lucent.com>
94049
94050         * lib/dirfd.c, lib/dirfd.h: New files.
94051         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94052
94053         * lib/hash.c (hash_print) [TESTING]: Clean up.
94054
94055 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94056
94057         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94058         to avoid a warning if -Wall.
94059
94060 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94061
94062         * README: New file
94063         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94064         (per RMS's instructions, this is now the canonical source)
94065         * lgpl/, gpl/: New directories.
94066
94067 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94068
94069         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94070
94071 2001-10-21  Jim Meyering  <meyering@lucent.com>
94072
94073         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94074         this code would end up calling gettext even in packages built
94075         with --disable-nls.
94076         * lib/getopt.c (_): Likewise.
94077         * lib/regex.c (_): Likewise.
94078
94079 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94080
94081         * m4/error.m4 (jm_PREREQ_ERROR):
94082         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94083         AC_FUNC_STRERROR_R does that.
94084         Check for strerror declaration.
94085
94086         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94087         are supposed to have them these days.
94088         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94089         Merge changes from latest Autoconf CVS.
94090         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94091         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94092         POSIX decided to standardize on the int flavor of strerror_r.
94093
94094 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94095
94096         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94097         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94098         Use strerror_r that is only a macro, even if it is not a function.
94099         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94100         (private_strerror): Use prototypes, not old-style function definition.
94101         (print_errno_message): New function.
94102         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94103         char*-flavored one.
94104         (error_tail, error, error_at_line): Use it.
94105
94106 2001-10-11  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94109         and quote_n (1, ... to avoid clobbering a buffer.
94110
94111 2001-10-05  Jim Meyering  <meyering@lucent.com>
94112
94113         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94114         hash-pjw.h.
94115         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94116         * lib/hash-pjw.h: New file.
94117
94118 2001-09-30  Jim Meyering  <meyering@lucent.com>
94119
94120         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94121         `struct fsstat' has the `f_fstypename' member.
94122         Use that to define FS_TYPE, which is now used to make
94123         the getfsstat link test tighter.
94124
94125 2001-09-30  Jim Meyering  <meyering@lucent.com>
94126
94127         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94128         Include <sys/ucred.h>, for Apple Darwin.
94129         Include sys/mount.h and sys/fs_types.h only if available.
94130         (FS_TYPE): Define.
94131         (read_filesystem_list): Use FS_TYPE.
94132
94133 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94134
94135         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94136         a boolean context.
94137
94138 2001-09-29  Jim Meyering  <meyering@lucent.com>
94139
94140         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94141         [one-argument getmntent function]): Include stdio.h before mntent.h.
94142         SunOS 4.1.x needs it for the declaration of `FILE'.
94143         Patch by Volker Borchert.
94144
94145         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94146         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94147         sys/fs_types.h, and make the link-test for getfsstat guard #include
94148         directives with appropriate #if HAVE_*_H tests so that we can
94149         detect getfsstat on Apple Darwin1.3.7 systems.
94150         Reported by Nelson Beebe.
94151         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94152
94153 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94154
94155         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94156         #defines strtoimax.  Also treat the other strto* functions
94157         like strtoimax.
94158
94159         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94160         Check for strtoul and strtoumax,
94161         as those declarations are made even in the signed case.
94162         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94163         Likewise, for strtol and strtoimax.
94164
94165 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94166
94167         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94168         #defines strtoimax.  Also treat the other strto* functions
94169         like strtoimax.
94170
94171         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94172         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94173         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94174
94175 2001-09-26  Jim Meyering  <meyering@lucent.com>
94176
94177         Most macros in unlocked-io.h had the wrong number of arguments.
94178         * lib/gen-uio: New script.
94179         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94180         * lib/unlocked-io.hin: Remove file.
94181         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94182         rather than trying to embed it here.
94183         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94184         Reported by Padraig Brady.
94185
94186 2001-09-25  Volker Borchert  <bt@teknon.de>
94187
94188         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94189         `result'.
94190
94191 2001-09-24  Jim Meyering  <meyering@lucent.com>
94192
94193         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94194
94195 2001-09-23  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94198         instead of the mere test for existence of mntent.h.  The latter
94199         would get a false-positive on AIX 3.4 systems.
94200         In the outer getmntent if-block, don't die if neither of the getmntent
94201         tests succeeds.  Instead, just fall through and continue with the
94202         remaining tests.
94203
94204 2001-09-23  Jim Meyering  <meyering@lucent.com>
94205
94206         * lib/mountlist.c: Remove useless parentheses in #if directives.
94207         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94208         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94209
94210 2001-09-22  Jim Meyering  <meyering@lucent.com>
94211
94212         * m4/gettext.m4: New file.  From gettext.
94213         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94214         * m4/progtest.m4: Likewise
94215         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94216         * m4/glibc21.m4: Likewise.
94217
94218         * m4/libintl.m4: Remove.  No longer used.
94219
94220 2001-09-22  Jim Meyering  <meyering@lucent.com>
94221
94222         * lib/localcharset.c: Update from latest gettext.
94223         * lib/config.charset: Likewise.
94224
94225 2001-09-20  Jim Meyering  <meyering@lucent.com>
94226
94227         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94228         strtoimax.
94229         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94230         strtoumax.
94231
94232 2001-09-20  Jim Meyering  <meyering@lucent.com>
94233
94234         * lib/xstrtol.c (strtoimax): Guard declaration with
94235         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94236         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94237         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94238         (strtoumax): Likewise, for completeness (it wasn't necessary).
94239
94240 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94241
94242         * lib/strtoimax.c (HAVE_LONG_LONG):
94243         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94244         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94245         to work around bug in IBM C compiler.
94246
94247 2001-09-17  Jim Meyering  <meyering@lucent.com>
94248
94249         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94250         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94251         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94252         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94253         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94254         whenever the right hand side need not be expanded by the shell.
94255
94256 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94257
94258         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94259         library.  It's not correct, as some older glibcs are buggy.
94260         fnmatch wasn't fixed until glibc 2.2.
94261
94262         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94263         special shell magic here.
94264
94265 2001-09-16  Jim Meyering  <meyering@lucent.com>
94266
94267         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94268         * m4/jm-macros.m4: Require it.
94269
94270 2001-09-16  Jim Meyering  <meyering@lucent.com>
94271
94272         * lib/mkdir.c: New file.
94273
94274 2001-09-15  Jim Meyering  <meyering@lucent.com>
94275
94276         * m4/jm-macros.m4: Check for help2man.
94277
94278 2001-09-11  Jim Meyering  <meyering@lucent.com>
94279
94280         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94281         The body, by Paul Eggert, was moved here from configure.in.
94282         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94283
94284 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94285
94286         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94287         (jm_PREREQ): Use it.
94288
94289 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94290
94291         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94292         Use ssize_t, not int, to store result of readlink.
94293         Check for ssize_t overflow as well as size_t overflow,
94294         as POSIX says the result of readlink is implementation-defined
94295         when ssize_t overflows.
94296         Remove unnecessary cast to char*.
94297         Use free+malloc instead of realloc, as the storage doesn't need
94298         to be preserved and it's clearer and can be more efficient that way.
94299         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94300         * lib/xreadlink.h (xreadlink): Update prototype.
94301
94302 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94303
94304         * lib/xgetcwd.c: Revert some of the previous change; intead,
94305         fix the HAVE_GETCWD_NULL code to behave more like the
94306         !HAVE_GETCWD_NULL code used to.
94307
94308         Include "xalloc.h".
94309         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94310         invoke xalloc_die.
94311
94312 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94313
94314         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94315         sys/param.h, as pathmax.h includes them.
94316
94317 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94318
94319         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94320         (jm_PREREQ_XGETCWD): New macro.
94321
94322         * m4/getcwd.m4: New file.
94323
94324 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94325
94326         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94327         like the HAVE_GETCWD_NULL code.
94328         Include pathmax.h if not HAVE_GETCWD.
94329         Do not include xalloc.h.
94330         (INITIAL_BUFFER_SIZE): New symbol.
94331         Do not use xmalloc / xrealloc, since the caller is responsible for
94332         handling errors.  Preserve errno around `free' during failure.
94333         Do not overrun buffer when using getwd.
94334
94335 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94336
94337         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94338         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94339         getcwd (NULL, 0).
94340
94341 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94342
94343         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94344         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94345         spotted by Jim Meyering.
94346
94347 2001-09-03  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94350         failure.
94351
94352 2001-09-02  Jim Meyering  <meyering@lucent.com>
94353
94354         * lib/error.c: Update from GNU libc.
94355
94356 2001-09-01  Jim Meyering  <meyering@lucent.com>
94357
94358         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94359         Used by df.
94360
94361 2001-09-01  Jim Meyering  <meyering@lucent.com>
94362
94363         * lib/xreadlink.c: New file.
94364         * lib/xreadlink.h: New file.
94365         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94366         xreadlink.h.
94367
94368         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94369         doesn't conflict with sparc Solaris 7's definition in
94370         /usr/include/sys/int_types.h.
94371
94372         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94373         files.
94374         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94375         and strncasecmp as r-values.  Unixware didn't have declarations.
94376
94377 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94378
94379         * lib/xstrtol.h: Add copyright notice.
94380         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94381         LONGINT_INVALID_SUFFIX_CHAR.
94382
94383 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94384
94385         * lib/xstrtol.c (strtoimax): New decl.
94386
94387 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94388
94389         * lib/xgetcwd.c: Don't include pathmax.h.
94390         Include stdlib.h and unistd.h if available.
94391         Include xalloc.h.
94392         (xmalloc, xstrdup, free): Remove decls.
94393         (xgetcwd): Don't assume sizes fit in unsigned.
94394         Check for overflow when computing sizes.
94395         Simplify reallocation code.
94396
94397 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94398
94399         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94400         a directory's st_size can have an arbitrary value, so the old
94401         usage could waste an arbitrary amount of memory.  All uses
94402         changed.
94403         * lib/savedir.h: Update prototype.
94404
94405 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94406
94407         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94408
94409         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94410         old strtoimax.c.
94411
94412         Also, make the following further changes to make this file's
94413         configuration more similar to that of strtol.c:
94414         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94415         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94416         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94417         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94418         changed to signed values.
94419
94420         And make the following changes as well:
94421         Fix copyright notice, as 1999 was missing.
94422         (verify): New macro.
94423         (strtoimax): Check sizes at compile-time, not run-time.
94424         Prefer strtol to strtoll if both work.
94425         (main): Remove; it was not that useful and was a pain to maintain.
94426
94427         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94428
94429 2001-08-31  Jim Meyering  <meyering@lucent.com>
94430
94431         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94432         Use an initial, malloc'd, buffer of length 128 rather than
94433         a statically allocated one of length 1024.
94434
94435 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94436
94437         Simplify code, partly by assuming autoconf 2.52 semantics.
94438
94439         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94440
94441         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94442         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94443         All uses removed.
94444         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94445         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94446         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94447         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94448         jm_AC_HEADER_INTTYPES_H.
94449         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94450
94451         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94452
94453         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94454         Quote first arg of AC_DEFUN.
94455         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94456         since they are needed to parse the include file even if we need
94457         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94458         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94459         but with opposite signedness.
94460
94461 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94462
94463         Merge 'exclude' changes from tar 1.13.22.
94464         This fixes one or two unlikely storage allocation overflow bugs,
94465         but doesn't change user-visible behavior otherwise.
94466
94467 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94468
94469         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94470         (jm_PREREQ_EXCLUDE): New macro.
94471
94472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94473
94474         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94475         tm to be declared.
94476
94477 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94478
94479         * lib/hash.c: Remove '2001' from copyright notice.
94480
94481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94482
94483         * lib/full-write.h: New file.
94484         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94485         * lib/full-write.c: Correct credits, as cccp.c no longer
94486         exists and anyway it was so heavily changed from the old cccp
94487         code as to be unrecognizable.  Include full-write.h.
94488         (full_write): Return size_t, with short writes meaning failure.
94489         All callers changed.  This fixes a bug with large buffers
94490         on 64-bit hosts.
94491         * lib/utime.c: Include full-write.h.
94492
94493 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94494
94495         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94496         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94497         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94498         Include if available.
94499         (<xalloc.h>): Include
94500         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94501         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94502         collide with FNM macros.
94503         (struct patopts): New struct.
94504         (struct exclude): Use it, as exclude patterns now come with options.
94505         (new_exclude): Support above changes.
94506         (new_exclude, add_exclude_file):
94507         Initial size must now be a power of two to simplify overflow checking.
94508         (free_exclude, fnmatch_no_wildcards): New function.
94509         (excluded_filename): No longer requires options arg, as the options
94510         are determined by add_exclude.  Now returns bool, not int.
94511         (excluded_filename, add_exclude):
94512         Add support for the fancy new exclusion options.
94513         (add_exclude, add_exclude_file): Now takes int options arg.
94514         Check for arithmetic overflow when computing sizes.
94515         (add_exclude_file): xrealloc might modify errno, so don't
94516         realloc until after errno might be used.
94517
94518         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94519         New macros.
94520         (free_exclude): New decl.
94521         (add_exclude, add_exclude_file): Now takes int options arg.
94522         (excluded_filename): No longer requires options arg, as the options
94523         are determined by add_exclude.  Now returns bool, not int.
94524
94525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94526
94527         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94528
94529 2001-08-27  Jim Meyering  <meyering@lucent.com>
94530
94531         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94532
94533         * lib/version-etc.c (N_): Remove definition.
94534         Revert most of last change.
94535         Instead, simply don't mark the `Copyright...' string for translation.
94536         Based on advice from Paul Eggert.
94537
94538         * lib/strtoxmax.c: Tweak comment.
94539
94540 2001-08-26  Jim Meyering  <meyering@lucent.com>
94541
94542         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94543
94544         * m4/xstrtoimax.m4: New file.
94545         * m4/xstrtoumax.m4: Add comments explaining why we
94546         AC_REPLACE_FUNCS(strtol).
94547
94548 2001-08-26  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94551         of copyright with `%s' so translators don't get an untranslated
94552         message in 2002.
94553         (COPYRIGHT_YEAR): Define.
94554         (version_etc): Use fprintf rather than fputs.
94555         Suggestion from Ulrich Drepper.
94556
94557         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94558
94559         * lib/strtoll.c: New file, from GNU libc.
94560         * lib/xstrtoimax.c: New file.
94561
94562         * lib/xstrtol.h: Add xstrtoimax.
94563         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94564         * lib/strtoimax.c: New file.  Likewise, but first define
94565         STRTOUXMAX_SIGNED.
94566
94567         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94568         ...
94569         * lib/strtoxmax.c: ... then renamed to this.
94570
94571 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94572
94573         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94574         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94575         (jm_AC_TYPE_INTMAX_T): New macro.
94576         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94577
94578         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94579
94580         * m4/longlong.m4: Renamed from ulonglong.m4.
94581         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94582         * m4/uintmax_t.m4: Removed.
94583
94584 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94585
94586         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94587         Port to Solaris 8, where 'sed' requires a space after the 'r'
94588         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94589         Redirect output to $tmp just once.
94590
94591 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94592
94593         * lib/addext.c (<errno.h>): Include.
94594         (errno): Declare if not defined.
94595         (addext): Work correctly when pathconf returns -1 and leaves
94596         errno alone because there is no limit.  Also, work even if
94597         pathconf returns a value greater than SIZE_MAX.
94598
94599 2001-08-12  Jim Meyering  <meyering@lucent.com>
94600
94601         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94602         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94603         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94604         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94605         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94606         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94607         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94608         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94609         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94610         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94611         utime.m4, utimes.m4, xstrtoumax.m4:
94612         Quote the first argument in each use of AC_DEFUN.
94613
94614 2001-08-12  Jim Meyering  <meyering@lucent.com>
94615
94616         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94617         Simply `return getcwd (NULL, 0);'.
94618         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94619         Use 1300 as initial value for length, not PATH_MAX.
94620
94621         * lib/pathmax.h: Clean up cpp syntax.
94622
94623 2001-08-12  Jim Meyering  <meyering@lucent.com>
94624
94625         * lib/gettimeofday.c: New file.
94626         * lib/gtod.h: New file.
94627         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94628
94629 2001-08-05  Jim Meyering  <meyering@lucent.com>
94630
94631         * m4/jm-macros.m4: Require autoconf-2.52.
94632
94633 2001-08-04  Jim Meyering  <meyering@lucent.com>
94634
94635         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94636         stmt, to get in sync with glibc.
94637
94638 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94639
94640         The following changes are from gettext 0.10.39 as maintained by
94641         Bruno Haible.
94642
94643         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94644         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94645         with inverted sense.  All uses changed.
94646
94647         * lib/mbswidth.c: Don't include <limits.h>.
94648         Include <stdlib.h> and <string.h> unconditionally.
94649         (iswcntrl, mbsinit, ISCNTRL): New macros.
94650         (mbsnwidth): Use K&R style function declarations.
94651         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94652         can optimize it when MB_CUR_MAX == 1.
94653         The width of control characters is zero, not 1.
94654
94655 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94656
94657         The following changes are from gettext 0.10.39 as maintained by
94658         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94659
94660         * m4/codeset.m4: Upgrade to serial AM1.
94661         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94662         all uses changed.  Quote first arg of AC_DEFUN.
94663         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94664
94665         * m4/iconv.m4: Upgrade to serial AM2.
94666         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94667         Add --with-libconv-prefix.
94668         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94669         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94670         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94671         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94672         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94673
94674         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94675         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94676         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94677         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94678         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94679         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94680         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94681         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94682         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94683
94684         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94685         string.h any more.
94686
94687         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94688         not the default value.
94689
94690         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94691         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94692         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94693         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94694         Also check for iswcntrl, used for wcwidth fallback.
94695         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94696         to Autoconf 2.13.
94697
94698 2001-08-03  Jim Meyering  <meyering@lucent.com>
94699
94700         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94701         as it was in the original.  Reported by Paul Eggert.
94702
94703 2001-07-16  Jim Meyering  <meyering@lucent.com>
94704
94705         * m4/gettimeofday.m4: New file.
94706         Prompted by a report from Bernhard Baehr.
94707
94708 2001-07-15  Jim Meyering  <meyering@lucent.com>
94709
94710         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94711         stuff. Now it's in ../Makefile.cfg.
94712
94713 2001-07-15  Jim Meyering  <meyering@lucent.com>
94714
94715         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94716         (BUILT_SOURCES): Add unlocked-io.h.
94717         (io_functions): Define.
94718         (unlocked-io.h): New rule.
94719         (DISTCLEANFILES): Add unlocked-io.h.
94720         (all-local): Depend on unlocked-io.h, to ensure it is created.
94721
94722         * lib/unlocked-io.hin: New file
94723
94724         * lib/regex.c: Update from glibc.
94725
94726 2001-07-05  Jim Meyering  <meyering@lucent.com>
94727
94728         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94729         recommendation.
94730         (libfetish_a_SOURCES): Put all .h files here instead.
94731         Remove a thus-exposed (better checks in automake) duplicate and
94732         two unnecessary .h files.
94733
94734 2001-07-04  Jim Meyering  <meyering@lucent.com>
94735
94736         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94737         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94738         distcheck failure.
94739
94740 2001-07-02  Jim Meyering  <meyering@lucent.com>
94741
94742         The following changes were prompted by suggestions from Bruno Haible.
94743
94744         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94745         is now generated.
94746         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94747         definition of EXTRA_DIST.
94748         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94749         ensure that the generated file is created/updated whenever the list
94750         of $(unlocked_functions) is changed.
94751         (jm-glibc-io.m4): New rule.
94752         (unlocked-io.h): New rule -- currently unused.
94753
94754 2001-06-24  Jim Meyering  <meyering@lucent.com>
94755
94756         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94757         unmatched right bracket, rather than kludging it with an extra,
94758         falsely-matching quote in a comment.  Patch by Akim Demaille.
94759
94760 2001-06-11  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/regex.c: Update from GNU libc.
94763
94764 2001-05-27  Jim Meyering  <meyering@lucent.com>
94765
94766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94767         Check for ut_type in struct utmp.
94768
94769 2001-05-27  Jim Meyering  <meyering@lucent.com>
94770
94771         * lib/readutmp.h (UT_TYPE): Define.
94772
94773 2001-05-24  Jim Meyering  <meyering@lucent.com>
94774
94775         * lib/argmatch.c: Include "quote.h".
94776         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94777         quote function.  Reported by Göran Uddeborg.
94778
94779 2001-05-22  Jim Meyering  <meyering@lucent.com>
94780
94781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94782         now that we use the package-supplied version unconditionally.
94783         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94784
94785 2001-05-21  Jim Meyering  <meyering@lucent.com>
94786
94787         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94788         shell syntax errors.
94789
94790 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94791
94792         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94793
94794 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94795
94796         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94797         Don't bother to check library strftime, since
94798         we'll be using our own my_strftime function anyway.
94799         Define my_strftime instead of strftime.
94800
94801 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94802
94803         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94804         which is not yet declared.
94805
94806 2001-05-15  Jim Meyering  <meyering@lucent.com>
94807
94808         * m4/regex.m4: Use proper quoting so brackets appear in the test
94809         program.
94810         Reported by, and with help from, Bruno Haible.
94811
94812 2001-05-13  Jim Meyering  <meyering@lucent.com>
94813
94814         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94815         undefined.
94816
94817 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94818
94819         dirname code cleanup.  base_name now behaves more compatibly
94820         with POSIX basename when given file names that have trailing
94821         slashes, and similarly for dir_name.  Add new primitives
94822         base_len and dir_len.  Put the directory-name-related decls
94823         into dirname.h.
94824
94825         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94826         * lib/backupfile.c (base_name): Likewise.
94827         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94828         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94829         * lib/makepath.c (strip_trailing_slashes): Likewise.
94830         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94831         ISSLASH): Likewise.
94832         * lib/rename.c (strip_trailing_slashes): Likewise.
94833         * lib/same.c (base_name): Likewise.
94834         * lib/stripslash.c (ISSLASH): Likewise.
94835
94836         * lib/addext.c: Include <dirname.h> after size_t is defined.
94837         * lib/backupfile.c: Likewise.
94838
94839         * lib/addext.c (addext): Use base_len to trim redundant
94840         trailing slashes instead of doing it ourselves.
94841         But do not trim the last slash if it is not redundant.
94842
94843         * lib/backupfile.c (find_backup_file_name,
94844         max_backup_version): Use base_len instead of rolling it ourselves.
94845         Handle the case of "" and (on DOS) "C:" correctly.
94846
94847         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94848         needed. Include <string.h>, <dirname.h>.
94849         (base_name): Allow file names ending in slashes, other than names
94850         that are all slashes.  In this case, return the basename followed
94851         by the slashes.  This is more general, and can be used in places
94852         where the original base_name purposely had an assertion failure.
94853         (base_len): New function.
94854
94855         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94856         Do not include <assert.h>; no longer needed.
94857         Include xalloc.h.
94858         (memrchr): Remove decl.
94859         (dir_name_r): Remove.
94860         (dir_len): Renamed from dirlen.  All callers changed.
94861         Rewrite in terms of base_name, for simplicity and consistency.
94862         (dir_name): Never return NULL.  All callers changed.
94863         Do not include <stdlib.h> in test program; no longer needed.
94864         return 0; is fine for test program.
94865
94866         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94867         New macros.
94868         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94869
94870         * lib/path-concat.c (path_concat): Use base_len to compute
94871         base length, not strlen; this means we cannot rely on memcpy
94872         to null-terminate.
94873
94874         * lib/same.c (STREQ): Remove.
94875         (same_name): Handle the case where the basename ends in trailing '/'.
94876
94877         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94878         a slash was stripped.  Do not strip the last slash after a
94879         file system prefix.
94880
94881 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94882
94883         * lib/Makefile.am (libfetish_a_SOURCES):
94884         Add strftime.c, since we now compile it on all hosts.
94885
94886         * lib/strftime.c (my_strftime):
94887         Define to nstrftime if emacs, but only if my_strftime is not defined.
94888         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94889         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94890         Add one more extra argument: a nanoseconds value.
94891         All uses changed.
94892         (ns): New macro.
94893         (my_strftime function): Add %N format.
94894         (emacs_strftimeu): Renamed from emacs_strftime,
94895         with extra ut argument.
94896
94897 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94898
94899         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94900
94901 2001-04-21  Jim Meyering  <meyering@lucent.com>
94902
94903         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94904         doesn't interfere.
94905
94906 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94907
94908         * m4/ftruncate.m4: Check for chsize.
94909         Link with ftruncate.o unconditionally if ftruncate is missing.
94910         This was required when cross-compiling to i586-mingw32msvc.
94911
94912 2001-04-08  Jim Meyering  <meyering@lucent.com>
94913
94914         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94915         recomputed; that's necessary when the offset spans a DST transition.
94916         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94917
94918 2001-04-02  Jim Meyering  <meyering@lucent.com>
94919
94920         * lib/regex.h, regex.c: Update from GNU libc.
94921
94922 2001-03-24  Jim Meyering  <meyering@lucent.com>
94923
94924         * m4/jm-macros.m4: Require autoconf-2.49d.
94925
94926 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94927
94928         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94929
94930 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94931
94932         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94933
94934 2001-03-17  Jim Meyering  <meyering@lucent.com>
94935
94936         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94937         now that the version in autoconf is equivalent.
94938         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94939
94940         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94941         Suggestion from Akim Demaille.
94942
94943         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94944         (jm_PREREQ_TEMPNAME): New function.
94945
94946 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94947
94948         * lib/tempname.c (uint64_t): Define to uintmax_t if
94949         not defined, and if UINT64_MAX is not defined.
94950         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94951         Reported by John David Anglin.
94952
94953 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94954
94955         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94956         resolve alias if codeset is empty.
94957         * lib/config.charset (BeOS): Use wildcard syntax.
94958
94959 2001-03-13  Jim Meyering  <meyering@lucent.com>
94960
94961         * lib/path-concat.c (path_concat)
94962         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94963         concatenating e.g., `C:' and `foo'.
94964         From Bruno Haible.
94965
94966 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94967
94968         * lib/localcharset.c (locale_charset): Don't use
94969         setlocale(LC_CTYPE,NULL). Don't return NULL.
94970         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94971
94972 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94973
94974         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94975         support for DOS/DJGPP.
94976
94977 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94978
94979         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94980         lacks mkstemp.  Compile our own tempname.c if we compile our own
94981         mkstemp.c, as mkstemp relies on tempname.
94982
94983 2001-03-01  Jim Meyering  <meyering@lucent.com>
94984
94985         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94986         AH_VERBATIM really does output its argument verbatim.
94987
94988 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94989
94990         * lib/Makefile.am (libfetish_a_SOURCES):
94991         Add dup-safer.c, fopen-safer.c.
94992         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94993
94994         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94995         * lib/unistd-safer.h: New files.
94996
94997 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94998
94999         The mkstemp replacement is taken from glibc 2.2.2, with some
95000         portability fixes for use outside glibc, as follows:
95001
95002         * lib/tempname.c (struct_stat64): New macro.
95003         (direxists, __gen_tempname): Use it.
95004         This avoids a portability problem with Solaris 8.
95005
95006         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95007         (<stddef.h>, <stdint.h>, <string.h>):
95008         Include only if STDC_HEADERS || _LIBC.
95009         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95010         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95011         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95012         (__set_errno): Define this macro if <errno.h> doesn't.
95013         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95014         Define these macros if <stdio.h> doesn't.
95015         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95016         Define these macros if <sys/stat.h>
95017         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95018         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95019         __xstat64): Define if not _LIBC.
95020         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95021         (__gen_tempname): Invoke gettimeofday only if
95022         HAVE_GETTIMEOFDAY || _LIBC;
95023         otherwise, fall back on plain "time".
95024         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95025
95026         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95027
95028         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95029
95030 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95031
95032         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95033
95034 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95035
95036         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95037         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95038         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95039         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95040
95041 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95042
95043         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95044         Remove workaround macros for hosts that have mbrtowc but not
95045         mbstate_t, as we now insist on proper declarations for both
95046         before using mbrtowc.
95047
95048 2001-02-17  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95051         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95052         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95053         UnixWare 7.1.1.
95054
95055         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95056         rather than AC_CACHE_VAL.
95057
95058 2001-02-17  Jim Meyering  <meyering@lucent.com>
95059
95060         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95061         around included file name.
95062
95063         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95064
95065         * lib/strftime.c: Update from GNU libc (the only changes were to
95066         comments).
95067
95068 2001-02-17  Jim Meyering  <meyering@lucent.com>
95069
95070         * lib/regex.c: Update from libc.
95071
95072 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95073
95074         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95075         clash.
95076
95077 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95078
95079         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95080         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95081         Reported by Mark Hounschell via Paul Eggert.
95082
95083 2001-02-07  Jim Meyering  <meyering@lucent.com>
95084
95085         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95086
95087 2001-02-05  Jim Meyering  <meyering@lucent.com>
95088
95089         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95090         it includes the patch required for `large file' support with at least
95091         HP-UX's 10.20 /bin/cc.
95092
95093 2001-02-03  Jim Meyering  <meyering@lucent.com>
95094
95095         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95096         AS_IF, now that it works once again (mysteriously).
95097         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95098
95099 2001-01-30  Jim Meyering  <meyering@lucent.com>
95100
95101         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95102         * m4/chown.m4: Rename conftestchown to conftest.chown.
95103         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95104         s/conftestdir2/conftest.d2/.
95105         * m4/utimes.m4: s/conftestdata/conftest.data/
95106         Inspired by Pavel Roskin's change in autoconf.
95107
95108 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95109
95110         * lib/config.charset: Update for FreeBSD 4.2.
95111
95112 2001-01-27  Jim Meyering  <meyering@lucent.com>
95113
95114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95115         a use of AS_IF.
95116         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95117
95118 2001-01-26  Jim Meyering  <meyering@lucent.com>
95119
95120         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95121         quotearg.c includes it.
95122
95123 2001-01-26  Jim Meyering  <meyering@lucent.com>
95124
95125         * lib/quotearg.c: Include stddef.h.
95126         * lib/quote.c: Include stddef.h.
95127         Reported by Axel Kittenberger.
95128
95129         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95130         line in double quotes so that it evokes a better diagnostic.
95131         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95132         Reported by Axel Kittenberger.
95133
95134 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95135
95136         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95137         as if it was a `charset'.
95138
95139 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95140
95141         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95142         has const.
95143
95144 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95145
95146         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95147         to avoid a warning.  Add back 'const' to inptr.
95148
95149 2001-01-20  Jim Meyering  <meyering@lucent.com>
95150
95151         Be sure that headers are checked before used in code compiled
95152         for the type checks.
95153         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95154         In place of that, invoke jm_CHECK_ALL_TYPES.
95155         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95156         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95157         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95158         The check for ssize_t was mistakenly run before the test for unistd.h.
95159
95160         The configure-time check for stdbool.h was missing.
95161         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95162         (jm_PREREQ_HASH): New function.
95163
95164 2001-01-17  Jim Meyering  <meyering@lucent.com>
95165
95166         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95167         for autoconf-2.49c.
95168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95169
95170 2001-01-16  Jim Meyering  <meyering@lucent.com>
95171
95172         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95173         From Bruno Haible.
95174
95175 2001-01-14  Jim Meyering  <meyering@lucent.com>
95176
95177         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95178         foo and bar.  Create conftestdir/ in the script, not in the C code.
95179         Remove directories in the script, not in the C code.
95180         Remove conftestdir{,2} before trying to create the directory.
95181         Make the entire configure script fail if the mkdir fails.
95182
95183 2001-01-14  Jim Meyering  <meyering@lucent.com>
95184
95185         * lib/rename.c: New file.  From Volker Borchert.
95186         Include stdlib.h, string.h or strings.h, and xalloc.h.
95187         Use strip_trailing_slashes rather than open-coding it.
95188
95189 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95190
95191         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95192
95193 2001-01-03  Jim Meyering  <meyering@lucent.com>
95194
95195         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95196         of local `inptr' to avoid warning with some system declarations of
95197         iconv.
95198
95199 2001-01-02  Volker Borchert  <bt@teknon.de>
95200
95201         * m4/rename.m4: New file.
95202         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95203
95204 2001-01-01  Jim Meyering  <meyering@lucent.com>
95205
95206         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95207         even on systems with utmpx.h.  It's necessary for the declaration of
95208         utmp's ut_user member.  Reported by Andreas Jaeger.
95209
95210         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95211         available. They are required for the declarations of getgrgid and
95212         getpwuid resp.
95213         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95214         Reported by Andreas Jaeger.
95215
95216 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95217
95218         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95219         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95220         so `make install' also works in VPATH builds.
95221
95222 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95223
95224         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95225         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95226         can be used in subdirectories.
95227
95228 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95229
95230         * lib/modechange.c: Do not assume that mode_t uses the
95231         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95232         the other-execute bit of FOO even if S_IXOTH != 1.
95233
95234         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95235         WOTH, XOTH, ALLM): New macros.
95236         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95237          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95238         Use them.
95239         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95240         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95241         (mode_compile):
95242         No need to use uintmax_t; unsigned long is long enough.
95243         Don't bother to get suffix since we don't use it.
95244
95245 2000-12-26  Jim Meyering  <meyering@lucent.com>
95246
95247         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95248         better with autoheader.
95249
95250 2000-12-24  Jim Meyering  <meyering@lucent.com>
95251
95252         * lib/hash.c (is_prime): Return explicit boolean values.
95253         (hash_get_first): Return NULL to appease Irix5.6's 89.
95254         Reported by Nelson Beebe.
95255
95256 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95257
95258         * lib/localcharset.c (locale_charset): Add support for Win32.
95259
95260 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95261
95262         * lib/physmem.h, lib/physmem.c: New files.
95263
95264         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95265         (noinst_HEADERS): Add physmem.h.
95266
95267         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95268         't' for compatibility with Solaris 8 sort.
95269
95270 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95271
95272         * lib/config.charset: Add support for BeOS.
95273
95274 2000-12-17  Jim Meyering  <meyering@lucent.com>
95275
95276         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95277         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95278
95279 2000-12-16  Jim Meyering  <meyering@lucent.com>
95280
95281         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95282         N and M) would have treated it like `chown N:N FILE'.
95283
95284         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95285
95286 2000-12-16  Jim Meyering  <meyering@lucent.com>
95287
95288         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95289         SHELLS_FILE to a file name that's useful on djgpp systems.
95290         Include stdlib.h.
95291         (ADDITIONAL_DEFAULT_SHELLS): Define.
95292         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95293         Based mostly on a patch from Prashant TR.
95294
95295 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95296
95297         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95298         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95299         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95300
95301 2000-12-08  Andreas Schwab  <schwab@suse.de>
95302
95303         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95304         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95305
95306 2000-12-07  Jim Meyering  <meyering@lucent.com>
95307
95308         * lib/stripslash.c (ISSLASH): Define.
95309         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95310         `/'.
95311         From Prashant TR.
95312
95313         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95314         (dir_name_r): Declare this function as static.
95315         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95316         manifest itself on a name containing a mix of slashes and
95317         backslashes.
95318         Make this function work with names starting with a DOS-style
95319         drive letter and colon prefix.
95320         (dir_name): Append `.' if necessary.
95321         Based mostly on patches from Prashant TR and Eli Zaretskii.
95322
95323         * lib/dirname.h (dir_name_r): Remove prototype.
95324
95325 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95326
95327         * m4/off_t-format.m4: Remove this file.
95328         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95329
95330 2000-12-06  Jim Meyering  <meyering@lucent.com>
95331
95332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95333         replacement strtoull, we may well need the replacement strtoul, too.
95334         Check for declarations of strtoul and strtoull.
95335         Check for strtol.  Mainly as a cue to cause automake to include
95336         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95337         Check for limits.h -- strtol.c needs it.
95338
95339 2000-12-05  Jim Meyering  <meyering@lucent.com>
95340
95341         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95342
95343 2000-12-04  Jim Meyering  <meyering@lucent.com>
95344
95345         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95346         Also include memory.h, stdlib.h, unistd.h if appropriate.
95347         Reported by Andreas Jaeger (conflicting declaration of malloc).
95348
95349 2000-12-02  Jim Meyering  <meyering@lucent.com>
95350
95351         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95352         * m4/jm-macros.m4 (jm_MACROS): require it.
95353
95354 2000-12-02  Jim Meyering  <meyering@lucent.com>
95355
95356         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95357
95358 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95359
95360         * lib/memrchr.c: Include <config.h> before any system include file.
95361
95362 2000-11-30  Jim Meyering  <meyering@lucent.com>
95363
95364         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95365
95366 2000-11-30  Jim Meyering  <meyering@lucent.com>
95367
95368         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95369
95370 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95371
95372         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95373
95374 2000-11-26  Jim Meyering  <meyering@lucent.com>
95375
95376         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95377
95378 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95379
95380         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95381         size of (size_t) -1; it's not portable.
95382
95383 2000-11-17  Jim Meyering  <meyering@lucent.com>
95384
95385         * lib/strstr.c: Update from GNU libc.
95386
95387 2000-11-17  Akim Demaille  <akim@epita.fr>
95388
95389         * lib/obstack.h: Formatting changes.
95390         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95391         prevent type checking.
95392         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95393         cast the value to (void *): assigning a `foo *' to a `void *'
95394         variable is valid.
95395         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95396
95397 2000-11-16  Jim Meyering  <meyering@lucent.com>
95398
95399         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95400
95401 2000-11-11  Jim Meyering  <meyering@lucent.com>
95402
95403         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95404
95405 2000-11-10  Jim Meyering  <meyering@lucent.com>
95406
95407         * lib/obstack.h: Update from GNU libc.
95408         * lib/obstack.c: Likewise.
95409
95410 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95411
95412         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95413
95414 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95415
95416         * lib/getusershell.c (setusershell): Use rewind rather than
95417         fseek/fseeko, to avoid configuration hassles with fseeko.
95418         Don't bother opening SHELLS_FILE if shellstream is NULL;
95419         it's not necessary.
95420
95421 2000-11-05  Jim Meyering  <meyering@lucent.com>
95422
95423         * lib/makepath.h (make_dir): Declare.
95424         * lib/makepath.c (make_dir): Remove `static' attribute.
95425         Tweak a comment.
95426
95427 2000-11-04  Jim Meyering  <meyering@lucent.com>
95428
95429         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95430
95431 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95432
95433         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95434         last one in a bucket, advance to the next bucket.
95435
95436 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95437
95438         * lib/fnmatch.c: Do not comment out all the code if we are using
95439         the GNU C library, because in some cases we are replacing buggy
95440         code in the GNU C library itself.
95441
95442 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95443
95444         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95445         (regex_compile): Catch bogus \(\1\).
95446
95447 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95448
95449         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95450         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95451         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95452
95453 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95454
95455         * lib/error.h, getline.h, modechange.h:
95456         Remove "2000" from Copyright line, as the file hasn't been
95457         changed this year other than in the copyright notice.
95458
95459         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95460         was changed this year.
95461
95462 2000-10-29  Jim Meyering  <meyering@lucent.com>
95463
95464         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95465         renaming.
95466         * m4/ls-mntd-fs.m4: Likewise
95467
95468 2000-10-29  Jim Meyering  <meyering@lucent.com>
95469
95470         * lib/xstat.in: Fix grammar in comment.
95471
95472 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95473
95474         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95475         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95476         doesn't define __restrict_arr.
95477
95478 2000-10-28  Jim Meyering  <meyering@lucent.com>
95479
95480         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95481         (jm_PREREQ_MEMCHR): New function.
95482
95483 2000-10-28  Jim Meyering  <meyering@lucent.com>
95484
95485         * lib/memchr.c: Update from libc.
95486         Adjust for portability:
95487         [HAVE_STDLIB_H]: Include stdlib.h.
95488         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95489         Undef __memchr, too.
95490         [!weak_alias]: Define __memchr to memchr.
95491
95492         * lib/regex.c: Update from libc.
95493         * lib/regex.h: Likewise.
95494         * lib/getopt1.c: Likewise.
95495         * lib/memcmp.c: Likewise.
95496
95497         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95498         Avoid using fseek, when possible -- it's broken by design.
95499         Patch by Ulrich Drepper.
95500
95501 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95502
95503         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95504         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95505         Giving in to popular pressure to shut up the compiler with casts.
95506
95507 2000-10-26  Jim Meyering  <meyering@lucent.com>
95508
95509         * lib/strftime.c: Update from libc.
95510
95511 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95512
95513         * regex.c: More `unsigned char' -> `re_char' changes.
95514         Also change several `int' into `re_wchar_t'.
95515         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95516         (PUSH_FAILURE_POINTER): Don't cast any more.
95517         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95518         We want GCC to complain, since this piece of code makes
95519         re_match non-reentrant, which *should* be fixed.
95520         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95521         (EXTEND_BUFFER): Use RETALLOC.
95522         (SET_LIST_BIT): Don't cast.
95523         (re_wchar_t): New type.
95524         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95525         that those two functions will always properly return.
95526         (IMMEDIATE_QUIT_CHECK): Cast to void.
95527         (analyse_first): Use recursion rather than an explicit stack.
95528         (re_compile_fastmap): Can't fail anymore.
95529         (re_search_2): Don't check re_compile_fastmap for failure.
95530         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95531         Now also sets the new value (passed in a new argument).
95532         (re_match_2_internal): Use it.
95533         Also, use a new var `reg' of type size_t when looping through regs
95534         rather than reuse the inappropriate `mcnt'.
95535
95536 2000-10-25  Jim Meyering  <meyering@lucent.com>
95537
95538         * lib/obstack.c: Update from libc.
95539
95540 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95541
95542         * regex.c (regex_compile): Change the way of handling a range from
95543         a char less than 256 to a char not less than 256.
95544
95545 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95546
95547         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95548         NT-Emacs only.
95549         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95550         so that re_search functions only quit when callers expect them to.
95551
95552 2000-10-23  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95555         wrong.  That set_locale call must not have any side effects.
95556         From Paul Eggert.
95557
95558 2000-10-22  Jim Meyering  <meyering@lucent.com>
95559
95560         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95561         [CYCLIC]: Remove now-unused definition.
95562
95563         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95564         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95565         Suggestion from Ulrich Drepper.
95566
95567 2000-10-21  Jim Meyering  <meyering@lucent.com>
95568
95569         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95570         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95571         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95572
95573 2000-10-21  Jim Meyering  <meyering@lucent.com>
95574
95575         * lib/dirname.c (memrchr): Declare if necessary.
95576         (dir_name): Remove the restriction that there be no
95577         trailing slashes.  Now, this code skips past them, effectively
95578         ignoring them.
95579         [TEST_DIRNAME] (main): New unit tests.
95580
95581         * lib/memrchr.c: New file from GNU libc.
95582         Undef __memrchr, too.
95583         [!weak_alias]: Define __memrchr to memrchr.
95584         Guard weak_alias use with `#ifdef weak_alias'.
95585
95586 2000-10-21  Jim Meyering  <meyering@lucent.com>
95587
95588         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95589         (dir_name): Use dir_name_r.
95590         * lib/dirname.h (dir_name_r): Declare it.
95591
95592 2000-10-17  Jim Meyering  <meyering@lucent.com>
95593
95594         * lib/quote.h (PARAMS): Define and use.
95595         Reported by Akim Demaille.
95596
95597         * lib/getopt.c: Update from libc.
95598
95599 2000-10-16  Jim Meyering  <meyering@lucent.com>
95600
95601         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95602         setlocale.
95603         From Jan Fedak.
95604
95605 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95606
95607         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95608
95609 2000-09-25  Jim Meyering  <meyering@lucent.com>
95610
95611         * lib/md5.h (rol): Define (from GnuPG).
95612
95613         * lib/sha.c: Give credit (GnuPG) where due.
95614         (M): Use rol rather than open-coding it.
95615         Add a FIXME comment.
95616
95617 2000-09-21  Jim Meyering  <meyering@lucent.com>
95618
95619         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95620         Reported by Michael Stone.
95621
95622 2000-09-20  Jim Meyering  <meyering@lucent.com>
95623
95624         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95625         (noinst_HEADERS): Add sha.h.
95626         Based on code from Scott G. Miller and from GnuPG.
95627
95628 2000-09-18  Jim Meyering  <meyering@lucent.com>
95629
95630         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95631         LIBS. Otherwise, everyone ends up linking with -lelf for some
95632         configurations.
95633         Reported by Mike Stone.
95634
95635 2000-09-15  Jim Meyering  <meyering@lucent.com>
95636
95637         * lib/regex.c: Update from libc.
95638
95639 2000-09-10  Jim Meyering  <meyering@lucent.com>
95640
95641         * lib/getopt.c (_getopt_internal): Update from glibc.
95642
95643 2000-09-09  Jim Meyering  <meyering@lucent.com>
95644
95645         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95646         think it should be used as a general replacement for isascii.
95647         * lib/fnmatch.c: Likewise.
95648         * lib/mbswidth.c: Likewise
95649         * lib/regex.c: Likewise.
95650
95651         Don't use atoi.
95652         * lib/userspec.c: Include sys/param.h and limits.h.
95653         Include xstrtol.h.
95654         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95655         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95656         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95657         UID, GID.  Check range.
95658
95659 2000-09-06  Jim Meyering  <meyering@lucent.com>
95660
95661         * lib/getopt.c (_getopt_internal): Update from glibc.
95662
95663 2000-08-30  Jim Meyering  <meyering@lucent.com>
95664
95665         * lib/strftime.c: Merge in changes from GNU libc.
95666
95667 2000-08-26  Jim Meyering  <meyering@lucent.com>
95668
95669         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95670         * m4/fpending.m4: New file.
95671
95672 2000-08-26  Jim Meyering  <meyering@lucent.com>
95673
95674         * lib/closeout.c: Include "__fpending.h".
95675         (close_stdout_status): Return right away if there's nothing to flush.
95676
95677         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95678         * lib/__fpending.c: New file.
95679         * lib/__fpending.h: New file.
95680
95681 2000-08-20  Jim Meyering  <meyering@lucent.com>
95682
95683         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95684         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95685         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95686
95687 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95688
95689         Improve fileutils installation on systems where running
95690         programs (like install) can't be unlinked.
95691         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95692         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95693
95694 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95695
95696         Standardize on "memory exhausted" instead of "Memory exhausted"
95697         or "virtual memory exhausted".
95698         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95699         "virtual memory exhausted".
95700         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95701         our own message.
95702         * lib/userspec.c (parse_user_spec): Likewise.
95703         * lib/bumpalloc.h: comment fix
95704         * lib/same.c, userspec.c: Include xalloc.h.
95705
95706         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95707         not char *const and pointing to a constant array.
95708         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95709         (xrealloc): Comment fix.
95710
95711         * lib/userspec.c (parse_user_spec):
95712         Don't translate a message until just before returning,
95713         to avoid unnecessary translation.
95714
95715 2000-08-07  Jim Meyering  <meyering@lucent.com>
95716
95717         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95718         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95719         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95720         getgroups.c, gethostname.c, getopt.h, group-member.c,
95721         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95722         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95723         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95724         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95725         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95726         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95727         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95728         yesno.c: Back out Copyright date changes for each file with no change
95729         this year.  This eases coordination with other programs using the same
95730         source code modules.  From Paul Eggert.
95731
95732 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95733
95734         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95735         not char, for compatibility with glibc 2.1.3 strftime.c.
95736
95737 2000-08-03  Greg McGary  <greg@mcgary.org>
95738
95739         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95740         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95741         (EXTEND_BUFFER): Use them.
95742
95743 2000-08-01  Jim Meyering  <meyering@lucent.com>
95744
95745         * lib/dirname.c (ISSLASH): Define.
95746         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95747         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95748         both `\' and `/' may be use as path separators.
95749         Based on a patch from Prashant TR.
95750
95751 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95752
95753         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95754         slot vector a constant, since it might get modified.
95755
95756 2000-07-31  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/xmalloc.c: Use `virtual memory exhausted', not
95759         `Memory exhausted'.
95760         * lib/obstack.c (print_and_abort): Likewise.
95761
95762 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95763
95764         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95765         buffer, so that the caller can always quote one small
95766         component of a "memory exhausted" message in slot 0.
95767         From a suggestion by Jim Meyering.
95768
95769 2000-07-30  Jim Meyering  <meyering@lucent.com>
95770
95771         * lib/makepath.c (make_path): Quote the other instance, too.
95772
95773         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95774         (STATIC_BUF_SIZE): Define.
95775         (quotearg_n_options): Use only statically allocated storage when
95776         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95777         than STATIC_BUF_SIZE.
95778
95779 2000-07-29  Jim Meyering  <meyering@lucent.com>
95780
95781         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95782         * lib/dirname.c (dir_name): Likewise.
95783
95784         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95785         `/'.
95786
95787         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95788         (dir_name): Assert that there are no trailing slashes.
95789
95790 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95791
95792         * lib/mbswidth.h (mbswidth): Add a flags argument.
95793         (mbswidth): New declaration.
95794         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95795         * lib/mbswidth.c (mbswidth): Add a flags argument.
95796         (mbsnwidth): New function.
95797
95798 2000-07-24  Jim Meyering  <meyering@lucent.com>
95799
95800         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95801
95802 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95803
95804         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95805
95806 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95807
95808         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95809         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95810         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95811         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95812         invoke multibyte primitives.
95813
95814 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95815
95816         * lib/quotearg.c:
95817         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95818         so that mbstate_t is always defined.
95819
95820         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95821         be 1 in at least one GCC installation, and this configuration
95822         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95823         performance on hosts that have mbrtowc but have only unibyte
95824         locales, but I assume these hosts are rare.
95825
95826 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95827
95828         * lib/mbswidth.c (_XOPEN_SOURCE):
95829         Don't define; this causes problems on Solaris 7.
95830         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95831
95832 2000-07-23  Jim Meyering  <meyering@lucent.com>
95833
95834         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95835         too: getgrgid, getpwuid, getuid.
95836
95837 2000-07-23  Jim Meyering  <meyering@lucent.com>
95838
95839         * lib/basename.c (base_name): Add an assertion.
95840
95841 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95842
95843         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95844         shadow its mbsinit function.
95845
95846 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95847
95848         * lib/mbswidth.h: New file.
95849         * lib/mbswidth.c: New file.
95850         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95851         (noinst_HEADERS): Add mbswidth.h.
95852
95853 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95854
95855         * lib/config.charset: Add support for FreeBSD. Improve support for
95856         HP-UX and IRIX 6.
95857
95858 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95859
95860         * m4/mbswidth.m4: New file.
95861         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95862
95863 2000-07-15  Jim Meyering  <meyering@lucent.com>
95864
95865         * lib/makepath.c: Include quote.h.
95866         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95867         corresponding argument in a `quote (...)' call.
95868         Give better diagnostics.
95869
95870         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95871         (noinst_HEADERS): Add quote.h.
95872
95873         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95874         from tar's src/misc.c.
95875         * lib/quote.h: New file.  Prototypes for same.
95876
95877 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95878
95879         From a suggestion by Bruno Haible.
95880         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95881         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95882         to decide whether to define the BeOS workaround macro;
95883         this adjusts to the change to AC_MBSTATE_T.
95884
95885 2000-07-14  Jim Meyering  <meyering@lucent.com>
95886
95887         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95888         jm_AC_TYPE_UINTMAX_T.
95889
95890 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95891
95892         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95893
95894         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95895         quotearg_buffer_restyled): Add support for
95896         clocale_quoting_style.  Undo previous change to
95897         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95898         and "{RIGHT QUOTATION MARK}" msgids.
95899
95900 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95901
95902         From a suggestion by Bruno Haible.
95903         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95904         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95905         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95906         and mbstate_t, to a single-part test that simply defines mbstate_t.
95907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95908         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95909
95910 2000-07-10  Jim Meyering  <meyering@lucent.com>
95911
95912         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95913
95914         * m4/gnu-source.m4: Output to confdefs.h directly.
95915         Suggestion from Akim Demaille.
95916
95917 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95918
95919         The old behavior of quoting `like this' doesn't look good with
95920         newer, ISO-style fonts.  See:
95921         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95922
95923         Instead, quote "like this" by default.  Let the translator
95924         tailor the locale-specific quoting behavior by providing
95925         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95926
95927         * lib/quotearg.c (N_): New macro.
95928         (gettext_default): New function.
95929         (quotearg_buffer_restyled): Use
95930         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95931         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95932
95933 2000-07-09  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95936         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95937
95938         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95939         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95940
95941 2000-07-09  Jim Meyering  <meyering@lucent.com>
95942
95943         * lib/Most files: Update copyright dates to include 2000.
95944
95945 2000-07-08  Jim Meyering  <meyering@lucent.com>
95946
95947         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95948         if not defined.
95949         (xgethostname): Remove now-unnecessary #ifdef.
95950         Move declaration of `err' into loop where it's used.
95951
95952 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95953         and Bruno Haible  <haible@clisp.cons.org>
95954
95955         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95956         only if the test for an object-type mbstate_t fails.  This
95957         prevents us from mistakenly reporting that mbstate_t is a
95958         system object type after we "#define mbstate_t int" to work
95959         around its lack.
95960
95961 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95962         and Bruno Haible  <haible@clisp.cons.org>
95963
95964         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95965
95966 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95967
95968         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95969         to strerror_r.
95970         Include <ctype.h> for use of isalpha.
95971
95972 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95973
95974         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95975         by allocating a larger buffer. Test the gethostname return value for
95976         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95977         returns an error and ENAMETOOLONG isn't defined.
95978
95979 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95980
95981         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95982         dimension.
95983
95984 2000-07-04  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95987         of the deprecated AC_CHECKING.
95988
95989 2000-07-04  Jim Meyering  <meyering@lucent.com>
95990
95991         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95992         Reported by Bruno Haible.
95993
95994 2000-07-04  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95997         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95998         lacks mbrtowc.
95999
96000 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96001
96002         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96003         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96004
96005 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96006         and Bruno Haible  <haible@clisp.cons.org>
96007
96008         * lib/quotearg.c (mbrtowc):
96009         Assign to *pwc, and return 1 only if result is nonzero.
96010         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96011
96012 2000-07-03  Jim Meyering  <meyering@lucent.com>
96013
96014         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96015
96016 2000-07-03  Jim Meyering  <meyering@lucent.com>
96017
96018         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96019         This is necessary to get a definition of e.g., UTMP_FILE on
96020         HP-UX 10.20.
96021         From Bob Proulx.
96022
96023 2000-07-02  Jim Meyering  <meyering@lucent.com>
96024
96025         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96026
96027         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96028         AC_LIBOBJ(function_name).
96029         * m4/chown.m4: Likewise.
96030         * m4/fnmatch.m4: Likewise.
96031         * m4/ftruncate.m4: Likewise.
96032         * m4/getgroups.m4: Likewise.
96033         * m4/getline.m4: Likewise.
96034         * m4/group-member.m4: Likewise.
96035         * m4/jm-macros.m4: Likewise.
96036         * m4/lstat.m4: Likewise.
96037         * m4/malloc.m4: Likewise.
96038         * m4/memcmp.m4: Likewise.
96039         * m4/nanosleep.m4: Likewise.
96040         * m4/putenv.m4: Likewise.
96041         * m4/realloc.m4: Likewise.
96042         * m4/regex.m4: Likewise.
96043         * m4/stat.m4: Likewise.
96044         * m4/strftime.m4: Likewise.
96045
96046 2000-07-02  Jim Meyering  <meyering@lucent.com>
96047
96048         * lib/quotearg.c (mbstate_t): Don't define here.
96049
96050 2000-07-02  Jim Meyering  <meyering@lucent.com>
96051
96052         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96053
96054 2000-07-01  Jim Meyering  <meyering@lucent.com>
96055
96056         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96057
96058 2000-07-01  Jim Meyering  <meyering@lucent.com>
96059
96060         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96061         problem.
96062
96063 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96064
96065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96066         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96067
96068 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96069
96070         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96071         per change in ../m4/ls-mntd-fs.m4.
96072         (read_filesystem_list): Ignore symbolic links.
96073
96074 2000-06-29  Jim Meyering  <meyering@lucent.com>
96075
96076         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96077         for declaration of strcmp.
96078
96079         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96080
96081         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96082         Avoid warning by casting result to `char *' to remove `const'.
96083
96084 2000-06-28  Jim Meyering  <meyering@lucent.com>
96085
96086         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96087         included by quotearg.c, for which we perform this test.  From
96088         Bruno Haible.
96089
96090 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96091
96092         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96093         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96094         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96095
96096 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96097
96098         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96099
96100 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96101
96102         savedir now sets errno on failure and invokes xmalloc to get memory.
96103         Fix a couple of other minor bugs while we're at it.
96104
96105         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96106         (NAMLEN): Remove macro.
96107         (malloc, realloc): Remove decls.
96108         (stpcpy): Likewise.
96109         ("xalloc.h"): Include.
96110         (NAME_SIZE_DEFAULT): New macro.
96111         (savedir): Use xmalloc / xrealloc to allocate memory.
96112         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96113         Skip "" directory entries.
96114         Use strlen to calculate directory entry length, since the old method
96115         is rarely used these days and isn't worth supporting.
96116         Don't use a pointer after freeing it.
96117         Check for integer overflow when calculating allocation size.
96118         Use memcpy to copy entries, instead of stpcpy.
96119         Set errno properly when returning NULL.
96120         Check for readdir error.
96121
96122 2000-06-26  Jim Meyering  <meyering@lucent.com>
96123
96124         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96125
96126 2000-06-25  Jim Meyering  <meyering@lucent.com>
96127
96128         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96129         Linux header bug when _XOPEN_SOURCE is defined to 500.
96130
96131 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96132
96133         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96134         deficiency.
96135
96136 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96137
96138         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96139         Include xalloc.h.
96140         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96141
96142 2000-06-24  Jim Meyering  <meyering@lucent.com>
96143
96144         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96145         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96146         for which strerror does return char*, but which lacks a conveniently
96147         accessible declaration of the function.  If the compile-test says
96148         strerror_r doesn't work, then resort to a `run'-test that works on
96149         BeOS and segfaults on DEC Unix.
96150
96151 2000-06-24  Jim Meyering  <meyering@lucent.com>
96152
96153         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96154
96155 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96156
96157         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96159
96160 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96161
96162         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96163         (mbrtowc, mbstate_t): Define substitutes if
96164         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96165         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96166         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96167
96168 2000-06-23  Jim Meyering  <meyering@lucent.com>
96169
96170         * m4/afs.m4: Add missing AC_MSG_RESULT.
96171         Reported by Bruno Haible.
96172
96173         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96174         Suggestion from Bruno Haible.
96175
96176 2000-06-23  Jim Meyering  <meyering@lucent.com>
96177
96178         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96179
96180 2000-06-21  Jim Meyering  <meyering@lucent.com>
96181
96182         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96183
96184 2000-06-21  Jim Meyering  <meyering@lucent.com>
96185
96186         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96187         (noinst_HEADERS): Add getstr.h.
96188
96189         * lib/getline.c (getstr): Move into a separate file.
96190         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96191         the following changes: new parameter, delim2; both delim[12]
96192         parameters have type `int', not `char'.  The latter would lose
96193         with 8-bit delimiters.
96194         * lib/getstr.h: New file.
96195
96196 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96197
96198         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96199         than 1024, return a memory chunk of least possible size, instead
96200         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96201         Use free/xmalloc instead of xrealloc to avoid copying for very long
96202         paths.
96203
96204 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96205
96206         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96207         the empty string.
96208
96209 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96210
96211         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96212         address, not strdup.  Include <stdlib.h> and don't declare free().
96213
96214 2000-06-19  Jim Meyering  <meyering@lucent.com>
96215
96216         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96217
96218 2000-06-18  Jim Meyering  <meyering@lucent.com>
96219
96220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96221
96222         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96223         `checking whether...' message to be consistent with that of the
96224         lstat test.
96225
96226 2000-06-18  Jim Meyering  <meyering@lucent.com>
96227
96228         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96229         Besides, these days every porting target provides a mkdir function.
96230
96231         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96232         needed. (this snippet comes from src/system.h).
96233
96234 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96235
96236         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96237
96238 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96239
96240         * lib/human.c (adjust_value): New function.
96241         (human_readable_inexact): Apply rounding style even when
96242         printing approximate values.
96243
96244 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96245
96246         * lib/human.c (human_readable_inexact): Allow an input block
96247         size that is not a multiple of the output block size, and vice versa.
96248         Reported by Piergiorgio Sartor.
96249
96250 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96251
96252         * lib/getdate.y (get_date): Apply relative times after time
96253         zone indicator, not before.  Reported by Todd A. Jacobs.
96254
96255 2000-06-13  Jim Meyering  <meyering@lucent.com>
96256
96257         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96258
96259         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96260
96261 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96262
96263         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96264
96265 2000-06-12  Jim Meyering  <meyering@lucent.com>
96266
96267         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96268         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96269         optional argument.
96270         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96271         the optional argument, `lib'.
96272
96273 2000-06-08  Jim Meyering  <meyering@lucent.com>
96274
96275         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96276
96277 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96278
96279         Rewrite largefile configuration so that we don't need to run
96280         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96281         AC_CANONICAL_HOST in configure.in -- jmm]
96282
96283         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96284         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96285         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96286         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96287         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96288         All uses changed.
96289         Instead of inspecting the output of getconf, try to compile the
96290         test program without and with the macro definition.
96291         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96292         for getconf.  Instead, check for the needed flags by compiling
96293         test programs.
96294
96295 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96296
96297         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96298
96299 2000-06-04  Jim Meyering  <meyering@lucent.com>
96300
96301         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96302         SunOS 4.1.4 for which gid_t is an unsigned type.
96303
96304 2000-06-03  Jim Meyering  <meyering@lucent.com>
96305
96306         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96307         now that autoconf requires that.
96308
96309         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96310         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96311         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96312
96313 2000-06-03  Jim Meyering  <meyering@lucent.com>
96314
96315         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96316
96317 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96318
96319         * m4/glibc21.m4: New file.
96320         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96321
96322 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96323
96324         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96325         newer, don't install charset.alias.
96326         * lib/config.charset: Change the Linux/glibc rules so they become empty
96327         on glibc-2.1 or newer.
96328
96329 2000-06-02  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/mountlist.c: Back out last change.  Instead, do this...
96332         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96333         me_dummy member using the same `ignore'-testing code.
96334         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96335         fs_type strings.
96336         From Mark D. Roth.
96337
96338 2000-05-29  Jim Meyering  <meyering@lucent.com>
96339
96340         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96341         mounts with the `ignore' attribute.  Based on a patch from
96342         Mark D. Roth.
96343
96344 2000-05-28  Jim Meyering  <meyering@lucent.com>
96345
96346         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96347         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96348         * m4/stat.m4: Likewise.
96349         * m4/lstat.m4: Likewise.
96350         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96351
96352         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96353         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96354
96355 2000-05-26  Jim Meyering  <meyering@lucent.com>
96356
96357         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96358
96359 2000-05-24  Jim Meyering  <meyering@lucent.com>
96360
96361         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96362         autoconf requires that.
96363         * m4/lib-check.m4: Likewise.
96364         * m4/jm-macros.m4: Likewise.
96365         * m4/strftime.m4: Likewise.
96366
96367         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96368         AC_CHECK_DECLS, now that autoconf requires that.
96369
96370 2000-05-22  Jim Meyering  <meyering@lucent.com>
96371
96372         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96373         * m4/lstat.m4: Likewise.
96374
96375 2000-05-22  Jim Meyering  <meyering@lucent.com>
96376
96377         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96378
96379 2000-05-20  Jim Meyering  <meyering@lucent.com>
96380
96381         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96382         (jm_PREREQ): Use it.
96383
96384 2000-05-18  Jim Meyering  <meyering@lucent.com>
96385
96386         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96387         back, too, since it may have been modified by allocate_entry.
96388         (hash_delete): Rewrite to use neither the assignment operator
96389         nor the comma operator in an if-expression.
96390
96391 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96392
96393         * lib/closeout.c:
96394         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96395         Remove; no longer needed.
96396         "quotearg.h": Add include.
96397         (file_name): Do not bother to explicitly initialize to NULL; it's less
96398         efficient on some hosts.
96399         (close_stdout_status): Remove test as to whether stdout was already
96400         closed; it breaks for the case "echo x | sort >&-".
96401         Quote file name colons.
96402         Do not assume that _("write error") lacks format strings.
96403
96404 2000-05-15  Jim Meyering  <meyering@lucent.com>
96405
96406         * lib/version-etc.c (version_etc_copyright): Update the copyright
96407         string used in all --version output.
96408
96409 2000-05-14  Jim Meyering  <meyering@lucent.com>
96410
96411         * lib/closeout.c (close_stdout_set_file_name): New function.
96412         (close_stdout_status): Use new file-scoped global.
96413         Return right away if fstat says the stdout file descriptor is invalid.
96414         * lib/closeout.h (close_stdout_set_file_name): Declare.
96415
96416 2000-05-10  Jim Meyering  <meyering@lucent.com>
96417
96418         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96419         (close_stdout_set_status): New function.
96420         * lib/closeout.h (close_stdout_set_status): Declare.
96421
96422 2000-05-09  Jim Meyering  <meyering@lucent.com>
96423
96424         * m4/gettext.m4: Rename this...
96425         * m4/libintl.m4: ...to this.
96426
96427 2000-05-08  Jim Meyering  <meyering@lucent.com>
96428
96429         * lib/long-options.c: Don't include closeout.h.
96430         (parse_long_options): Don't call close_stdout for --version.
96431
96432 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96433
96434         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96435         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96436         2.1.3 bug.  This avoids a clash when files like regex.c define
96437         _GNU_SOURCE.
96438
96439 2000-05-06  Jim Meyering  <meyering@lucent.com>
96440
96441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96442         (AC_REPLACE_FUNCS): Add strnlen.
96443
96444         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96445         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96446
96447         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96448         AC_SEARCH_LIBS call for nanosleep.
96449         (LIB_NANOSLEEP): Set and AC_SUBST.
96450
96451 2000-05-06  Jim Meyering  <meyering@lucent.com>
96452
96453         * lib/strnlen.c: Undefine __strnlen and strnlen.
96454         [!weak_alias]: Define __strnlen to strnlen.
96455
96456         * lib/atexit.c: New file, from libiberty.
96457
96458 2000-05-06  Jim Meyering  <meyering@lucent.com>
96459
96460         * lib/closeout.c (close_stdout_status): Also check for errors on the
96461         stderr stream.
96462
96463 2000-05-05  Jim Meyering  <meyering@lucent.com>
96464
96465         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96466         AC_SEARCH_LIBS call for clock_gettime.
96467         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96468
96469         * m4/search-libs.m4: Update from autoconf.
96470
96471         su doesn't work on Solaris 2.6.
96472         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96473         <shadow.h>.  Reported by Dragos Harabor.
96474
96475 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96476
96477         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96478         memcpy instead of xmalloc, xrealloc, path_concat.
96479         (locale_charset): Treat empty environment variables as absent.
96480         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96481
96482 2000-05-04  Jim Meyering  <meyering@lucent.com>
96483
96484         * lib/getopt.c: Update from glibc.
96485         * lib/obstack.c: Likewise.
96486         * lib/obstack.h: Likewise.
96487         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96488         file
96489
96490         * lib/regex.h: Likewise.
96491         * lib/strndup.c: Likewise.
96492         * lib/strnlen.c: New file, from glibc.
96493
96494 2000-05-03  Jim Meyering  <meyering@lucent.com>
96495
96496         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96497
96498 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96499
96500         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96501         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96502         compile-time test, rather than inspecting host and OS, to
96503         decide whether to define _LARGEFILE_SOURCE.
96504
96505 2000-05-01  Jim Meyering  <meyering@lucent.com>
96506
96507         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96508
96509         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96510         Based on a patch from Bruno Haible.
96511
96512 2000-05-01  Jim Meyering  <meyering@lucent.com>
96513
96514         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96515
96516 2000-04-29  Jim Meyering  <meyering@lucent.com>
96517
96518         * lib/path-concat.c: Declare strdup only if it's not defined.
96519         * lib/canon-host.c: Likewise.
96520
96521 2000-04-28  Jim Meyering  <meyering@lucent.com>
96522
96523         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96524         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96525         is included first, then limits.h is included by locale.h by libintl.h.
96526         From John David Anglin.
96527
96528 2000-04-25  Jim Meyering  <meyering@lucent.com>
96529
96530         * lib/makepath.c (S_IRWXUGO): Define.
96531         (make_path): Always perform explicit chmod if MODE specifies any
96532         of the `special' permission bits.  Prompted by a bug report against
96533         install from Mate Wierdl and Joost van Baal.
96534
96535 2000-04-18  Jim Meyering  <meyering@lucent.com>
96536
96537         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96538         (jm_PREREQ): Use it.
96539
96540 2000-04-18  Jim Meyering  <meyering@lucent.com>
96541
96542         * lib/README: New file.
96543
96544         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96545         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96546
96547 2000-04-17  Jim Meyering  <meyering@lucent.com>
96548
96549         Get it right :-)
96550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96551         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96552         Suggestion from Akim Demaille.
96553
96554 2000-04-17  Jim Meyering  <meyering@lucent.com>
96555
96556         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96557         the definition of it to rpl_strftime also defined-away the system's
96558         declaration.
96559
96560 2000-04-15  Jim Meyering  <meyering@lucent.com>
96561
96562         Use `C' to denote so-called `contiguous' files, the same way
96563         that tar does.
96564         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96565         (ftypelet): Use S_ISCTG.
96566         From Michael Deutschmann.
96567
96568 2000-04-14  Jim Meyering  <meyering@lucent.com>
96569
96570         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96571         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96572         clobbered.
96573
96574 2000-04-14  Jim Meyering  <meyering@lucent.com>
96575
96576         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96577
96578 2000-04-13  Jim Meyering  <meyering@lucent.com>
96579
96580         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96581         AH_VERBATIM to insert required #ifndef into config.h.in.
96582         Suggestion from Akim Demaille.
96583
96584 2000-04-12  Jim Meyering  <meyering@lucent.com>
96585
96586         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96587         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96588         Christian Krackowizer.
96589
96590         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96591         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96592         (AC_SYS_LARGEFILE): Require.
96593         (AM_C_PROTOTYPES): Require.
96594
96595 2000-04-08  Jim Meyering  <meyering@lucent.com>
96596
96597         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96598         names don't conflict.  Reported by Eli Zaretskii.
96599
96600 2000-04-07  Jim Meyering  <meyering@lucent.com>
96601
96602         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96603         sys/types.h, to work around system header problems on AIX 3.2.5.
96604         From Bruno Haible.
96605
96606 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96607
96608         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96609         bug.  Deal with the different error behavior of Irix iconv.
96610
96611 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96612
96613         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96614         IRIX if the installer said otherwise.
96615
96616 2000-04-05  Jim Meyering  <meyering@lucent.com>
96617
96618         Portability tweaks required for ultrix4.3.
96619         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96620         (jm_CHECK_DECLS): Add getutent to the list of functions.
96621         (_jm_DECL_HEADERS): Add utmpx.h.
96622         From John David Anglin.
96623
96624         * m4/strftime.m4: Back out the 2000-04-02 change.
96625         Instead of that change, simply undefine putenv in the test program.
96626
96627 2000-04-05  Jim Meyering  <meyering@lucent.com>
96628
96629         Portability tweaks required for ultrix4.3.
96630         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96631         getutent.
96632         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96633         * lib/canon-host.c: Declare strdup.
96634         * lib/path-concat.c: Likewise.
96635         From John David Anglin.
96636
96637 2000-04-04  Jim Meyering  <meyering@lucent.com>
96638
96639         Be more DOS 8.3-friendly.
96640         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96641         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96642         * lib/Makefile.am: Reflect renaming.
96643         Reported by Eli Zaretskii.
96644
96645         Use a temporary file name that won't clash with `charset.alias'
96646         in the DOS 8.3 name space.
96647         * lib/Makefile.am (charset_tmp): Define.
96648         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96649         (uninstall-local): Likewise.
96650         Reported by Eli Zaretskii.
96651
96652 2000-04-03  Jim Meyering  <meyering@lucent.com>
96653
96654         * m4/gettext.m4: Fix typo in comment.
96655
96656         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96657         textutils/configure.in).  Suggestion from Paul Eggert.
96658         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96659
96660 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96661
96662         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96663         variable in the shell rather than using putenv, which isn't
96664         portable.  This avoids the configure-time inter-test dependency
96665         on the potentially-renamed putenv function.
96666
96667 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96668
96669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96670         before checking struct stat.st_blksize, so that
96671         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96672
96673 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96674
96675         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96676         since strftime.c uses HAVE_STRFTIME to decide whether to use
96677         the underlying strftime.
96678
96679 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96680
96681         * lib/time/strftime.c (my_strftime): Make sure we call the system
96682         strftime, not ourselves, when invoking the underlying strftime.
96683
96684 2000-03-24  Jim Meyering  <meyering@lucent.com>
96685
96686         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96687         (charset_alias): Define.
96688         (install-exec-local): Factor out common code.
96689         (uninstall-local): Split lines longer than 80.
96690         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96691         (SUFFIXES): Define.
96692         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96693         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96694
96695 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96696
96697         * lib/config.charset: Output a line containing "Packages using this
96698         file".
96699         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96700         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96701         ref-del.sed): New rules.
96702
96703 2000-03-17  Jim Meyering  <meyering@lucent.com>
96704
96705         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96706         Otherwise, include <strings.h>
96707
96708 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96709
96710         * lib/unicodeio.c (utf8_wctomb): New function.
96711         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96712         format instead of in UCS-4 with platform dependent endianness.
96713
96714 2000-03-10  Jim Meyering  <meyering@lucent.com>
96715
96716         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96717         From Marco Franzen.
96718
96719 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96720
96721         * lib/savedir.c (savedir): Work even if directory size is
96722         negative; this can happen with some screwy NFS configurations.
96723
96724 2000-03-06  Jim Meyering  <meyering@lucent.com>
96725
96726         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96727         if it's NULL (because we ran out of memory).  From Bruno Haible.
96728
96729 2000-03-05  Jim Meyering  <meyering@lucent.com>
96730
96731         * lib/localcharset.c ("path-concat.h"): Include.
96732         (get_charset_aliases): Use path_concat instead of ANSI string
96733         concatenation.
96734
96735         * lib/unicodeio.h (PARAMS): Define.
96736         Use it to guard prototype.
96737
96738 2000-03-04  Jim Meyering  <meyering@lucent.com>
96739
96740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96741         for lib/localcharset.c.
96742
96743 2000-03-04  Jim Meyering  <meyering@lucent.com>
96744
96745         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96746         installing into it.
96747         (uninstall-local): Uncomment this rule so `make distcheck' works
96748         once again.
96749
96750         * lib/unicodeio.c (<errno.h>): Include it.
96751         (errno): Declare if not defined.
96752
96753         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96754
96755         * lib/config.charset: New version, incorporating remarks from a linux
96756         i18n mailing list.  From Bruno Haible.
96757
96758 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96759
96760         * m4/codeset.m4: New file.
96761         * m4/iconv.m4: New file.
96762         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96763
96764 2000-03-03  Jim Meyering  <meyering@lucent.com>
96765
96766         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96767
96768 2000-03-02  Jim Meyering  <meyering@lucent.com>
96769
96770         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96771         the messages come out on separate lines.
96772
96773         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96774         rather than jm_CHECK_DECLARATIONS.
96775         * m4/decl.m4: Remove now-unused file.
96776
96777         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96778         geteuid.
96779
96780 2000-03-02  Jim Meyering  <meyering@lucent.com>
96781
96782         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96783
96784 2000-03-01  Jim Meyering  <meyering@lucent.com>
96785
96786         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96787         * lib/unicodeio.c: Likewise.
96788
96789 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96790
96791         * lib/config.charset: New file.
96792         * lib/localcharset.c: New file.
96793         * lib/unicodeio.h, lib/unicodeio.c: New files.
96794         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96795         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96796         (noinst_HEADERS): Add unicodeio.h.
96797         (all-local, install-exec-local, charset.alias): New targets.
96798
96799 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96800
96801         * lib/quotearg.c (ALERT_CHAR): New macro.
96802         (quotearg_buffer_restyled): Use it.
96803
96804 2000-02-27  Jim Meyering  <meyering@lucent.com>
96805
96806         * m4/check-decl.m4: Add getenv to the list.
96807
96808 2000-02-27  Jim Meyering  <meyering@lucent.com>
96809
96810         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96811         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96812
96813         * lib/backupfile.c: Guard inclusion of stdlib.h with
96814         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96815         Declare malloc if needed.
96816
96817         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96818         `#ifndef HAVE_DECL..'
96819         now that autoconf always defines the HAVE_DECL_ symbols.
96820         * lib/human.c: Likewise.
96821         * lib/same.c: Likewise.
96822         * lib/strtoumax.c: Likewise.
96823
96824         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96825         declaration check was not run.
96826         * lib/hash.c: Likewise.
96827         * lib/human.c: Likewise.
96828         * lib/same.c: Likewise.
96829         * lib/strtoumax.c: Likewise.
96830
96831         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96832         `.', then first look up the entire `.'-containing string as a login
96833         name.
96834
96835 2000-02-23  Jim Meyering  <meyering@lucent.com>
96836
96837         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96838         in place of my hack.
96839
96840 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96841
96842         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96843         (textint): New typedef.
96844         (parser_control): Member year changed from int to textint.
96845         All uses changed.
96846         (YYSTYPE): Removed; replaced by %union with int and textint members.
96847         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96848         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96849         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96850         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96851         (date, number, to_year): Use width of number in digits, not its value,
96852         to determine whether it's a 2-digit year, or a 2-digit time.
96853         (yylex): Store number of digits of numeric tokens.
96854         Reported by John Kendall.
96855
96856         (parser_control): Changed from struct parser_control to typedef (for
96857         consistency).  All uses changed.
96858
96859         (tID): Removed; not used.
96860         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96861
96862 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96863
96864         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96865         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96866
96867 2000-02-12  Jim Meyering  <meyering@lucent.com>
96868
96869         * lib/userspec.c (ISDIGIT): Define it.
96870         (isdigit): Remove definition.
96871         (is_number): Use ISDIGIT, not isdigit.
96872         <libintl.h>: Include.
96873         (_ and N_): Define.
96874         (parse_user_spec): Mark translatable strings.
96875
96876 2000-02-10  Jim Meyering  <meyering@lucent.com>
96877
96878         With these changes, nanosleep.[ch] are finally enough like the other
96879         lib/* replacement files to compile on a few more losing systems.
96880
96881         * lib/nanosleep.h: Don't include config.h.
96882         Remove prototype from declaration of nanosleep.
96883         (PARAMS): Remove now-unneeded definition.
96884         * lib/nanosleep.c: #undef nanosleep.
96885         (rpl_nanosleep): Rename from nanosleep.
96886
96887 2000-02-10  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96890         gnu_nanosleep to rpl_nanosleep.
96891
96892 2000-02-09  Jim Meyering  <meyering@lucent.com>
96893
96894         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96895         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96896
96897 2000-02-08  Akim Demaille  <akim@epita.fr>
96898
96899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96900         `[' and `]' and remove uses of `changequote'.
96901         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96902         (AC_SYS_LARGEFILE): Likewise.
96903         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96904         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96905         of changequote.
96906         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96907         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96908         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96909         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96910
96911 2000-02-05  Jim Meyering  <meyering@lucent.com>
96912
96913         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96914         Remove explicit use of AC_HEADER_TIME.  It is required by
96915         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96916         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96917         in autoconf whereby the expansion of the latter ended up preceding
96918         the expansion of its prerequisite, AC_HEADER_TIME.
96919         Reported by Volker Borchert.
96920
96921 2000-02-03  Jim Meyering  <meyering@lucent.com>
96922
96923         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96924
96925 2000-02-03  Jim Meyering  <meyering@lucent.com>
96926
96927         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96928         rather than with `#if HAVE_UTMPNAME'.
96929
96930 2000-02-02  Jim Meyering  <meyering@lucent.com>
96931
96932         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96933         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96934         Reported by Eli Zaretskii.
96935
96936 2000-02-01  Jim Meyering  <meyering@lucent.com>
96937
96938         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96939
96940 2000-01-31  Jim Meyering  <meyering@lucent.com>
96941
96942         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96943         functions.  Add the time.h and sys/time.h headers along with the
96944         AC_REQUIRE'ment of AC_HEADER_TIME.
96945
96946 2000-01-31  Jim Meyering  <meyering@lucent.com>
96947
96948         * lib/nanosleep.h (nanosleep): Guard declaration with
96949         `#if ! HAVE_DECL_NANOSLEEP'.
96950         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96951         the declaration in that vendor's sys/timers.h.
96952         Reported by Christian Krackowizer.
96953
96954         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96955         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96956         (ISPRINT): Likewise.
96957         Reported by Tom Tromey.
96958
96959 2000-01-30  Jim Meyering  <meyering@lucent.com>
96960
96961         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96962
96963         * m4/prereq.m4 (utmp_includes): Define.
96964         Check for ut_user and ut_name members in both struct utmpx
96965         and struct utmp.
96966
96967 2000-01-30  Jim Meyering  <meyering@lucent.com>
96968
96969         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96970         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96971         header files where only utmpx.ut_user is declared.
96972
96973         * lib/readutmp.h (UT_USER): Define.
96974
96975 2000-01-29  Jim Meyering  <meyering@lucent.com>
96976
96977         * m4/lib-check.m4: New file containing library-related checks from
96978         fileutils and sh-utils (textutils had none).
96979
96980 2000-01-28  Jim Meyering  <meyering@lucent.com>
96981
96982         * m4/perl.m4: Change format of warning message to look more like that
96983         from the missing script.  Suggestion from François Pinard.
96984
96985 2000-01-25  Jim Meyering  <meyering@lucent.com>
96986
96987         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96988         well as time.h in the compile check.
96989         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96990         Fix typo in cross-compiling case: s/yes/no/.
96991
96992 2000-01-23  Jim Meyering  <meyering@lucent.com>
96993
96994         * m4/jm-macros.m4: Move df-related tests here from
96995         fileutils/configure.in
96996
96997         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96998         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96999
97000         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97001         s/space/ac_fsusage_space/.
97002         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97003
97004         * m4/ftruncate.m4: New file (derived from part of
97005         fileutils/configure.in).
97006         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97007         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97008
97009         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97010         AC_SUBST these here, rather than just in sh-util/configure.in, so
97011         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97012         all the same.
97013         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97014         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97015         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97016         (AC_SUBST(POW_LIBM)): Likewise.
97017         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97018
97019 2000-01-23  Jim Meyering  <meyering@lucent.com>
97020
97021         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97022         obstack.c.
97023
97024 2000-01-22  Jim Meyering  <meyering@lucent.com>
97025
97026         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97027
97028         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97029
97030         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97031         configure.in
97032         (AC_CHECK_HEADERS): Likewise for sh-utils.
97033         (AC_CHECK_HEADERS): Likewise for textutils.
97034         Merge the three lists of headers.
97035
97036         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97037         from fileutils' configure.in.
97038
97039         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97040         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97041         check-decl.m4.
97042
97043         * m4/check-decl.m4: Use #if rather than #ifdef.
97044         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97045         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97046         (_jm_DECL_HEADERS): Define new function.
97047         (jm_CHECK_DECLARATIONS): Require it.
97048
97049 2000-01-22  Jim Meyering  <meyering@lucent.com>
97050
97051         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97052         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97053         Required for some AIX systems.  Reported by Christian Krackowizer.
97054         [TESTING] (main): New function.
97055
97056         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97057         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97058         letters.
97059
97060         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97061         iswprint.
97062
97063         * lib/strverscmp.c (ISDIGIT): Define.
97064         (strverscmp): Use ISDIGIT, not isdigit.
97065
97066 2000-01-19  Jim Meyering  <meyering@lucent.com>
97067
97068         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97069         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97070         defines `struct timespec' in <sys/time.h>
97071
97072         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97073         Thanks to Akim for explaining.
97074
97075 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97076
97077         * lib/nanosleep.c (nanosleep):
97078         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97079         POSIX.1 doesn't require SA_INTERRUPT and some systems
97080         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97081         it's been part of POSIX.1 since day 1 (in 1988).
97082
97083 2000-01-17  Jim Meyering  <meyering@lucent.com>
97084
97085         * lib/interlock: Remove unused file.  Reported by François Pinard.
97086
97087 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97088
97089         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97090         alert, backslash, formfeed, and vertical tab unnecessarily in
97091         shell quoting style.
97092
97093 2000-01-16  Jim Meyering  <meyering@lucent.com>
97094
97095         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97096         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97097         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97098         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97099
97100 2000-01-16  Jim Meyering  <meyering@lucent.com>
97101
97102         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97103         because the latter didn't work.
97104
97105 2000-01-15  Jim Meyering  <meyering@lucent.com>
97106
97107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97108         (AC_REPLACE_FUNCS): Add memcpy and memset.
97109         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97110         Add strpbrk.
97111         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97112
97113 2000-01-12  Jim Meyering  <meyering@lucent.com>
97114
97115         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97116         (jm_PREREQ): Use it.
97117         (jm_PREREQ_READUTMP): New macro.
97118         (jm_PREREQ): Use it.
97119
97120 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97121
97122         Quote multibyte characters correctly.
97123         * m4/c-bs-a.m4: New file.
97124         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97125         (jm_PREREQ): Use it.
97126
97127 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97128
97129         * m4/uintmax_t.m4: Port to autoconf 2.13.
97130
97131 2000-01-08  Jim Meyering  <meyering@ascend.com>
97132
97133         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97134         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97135
97136 2000-01-04  Jim Meyering  <meyering@ascend.com>
97137
97138         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97139         jm_STRUCT_DIRENT_D_TYPE.
97140         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97141         jm_STRUCT_DIRENT_D_INO.
97142         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97143         jm_STRUCT_UTIMBUF.
97144         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97145         renamings.
97146         * m4/utime.m4: Likewise.
97147
97148         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97149         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97150
97151 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97152
97153         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97154         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97155
97156 2000-01-02  Jim Meyering  <meyering@ascend.com>
97157
97158         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97159         remember if this is necessary.
97160
97161 1999-12-26  Jim Meyering  <meyering@ascend.com>
97162
97163         * m4/jm-macros.m4: Use it here.
97164         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97165
97166 1999-12-23  Jim Meyering  <meyering@ascend.com>
97167
97168         * m4/jm-macros.m4: Check for clock_gettime (moved from
97169         fileutils/configure.in)
97170         Check for gettimeofday.
97171
97172 1999-12-20  Jim Meyering  <meyering@ascend.com>
97173
97174         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97175         autoconf-2.14a-1999-12-20.
97176
97177 1999-12-19  Jim Meyering  <meyering@ascend.com>
97178
97179         * m4/lstat-slash.m4: New file.
97180         * m4/jm-macros.m4: Use the new macro:
97181         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97182
97183 1999-12-07  Jim Meyering  <meyering@ascend.com>
97184
97185         * m4/perl.m4: Require that File::Compare be available, too.
97186         Too many systems seem to lack it.
97187
97188         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97189         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97190
97191 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97192
97193         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97194         problem with the QNX 4.25 shell, which doesn't propagate exit
97195         status of failed commands inside shell assignments.
97196
97197 1999-11-17  Jim Meyering  <meyering@ascend.com>
97198
97199         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97200
97201 1999-11-07  Jim Meyering  <meyering@ascend.com>
97202
97203         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97204
97205 1999-11-06  Jim Meyering  <meyering@ascend.com>
97206
97207         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97208         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97209
97210 1999-11-05  Jim Meyering  <meyering@ascend.com>
97211
97212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97213         configure.in of textutils, fileutils, and sh-utils into this one
97214         (shared between those packages) file.
97215         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97216         AC_STRUCT_ST_BLKSIZE.
97217
97218 1999-11-03  Jim Meyering  <meyering@ascend.com>
97219
97220         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97221         of AC_CHECK_TYPE checks includes unistd.h.
97222         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97223         Suggestion from Akim Demaille.
97224
97225 1999-10-30  Jim Meyering  <meyering@ascend.com>
97226
97227         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97228         m4-quoted string.
97229         * m4/ls-mntd-fs.m4: Likewise.
97230         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97231         * m4/jm-winsz1.m4: Likewise.
97232
97233         * m4/const.m4: Remove file, since the fix made it into the experimental
97234         version of autoconf.
97235         * m4/mktime.m4: Likewise.
97236
97237         * m4/check-type.m4: Remove file, now that the latest version of
97238         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97239
97240         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97241         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97242         AC_CHECK_TYPE.
97243
97244 1999-10-04  Jim Meyering  <meyering@ascend.com>
97245
97246         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97247
97248 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97249
97250         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97251         2.95.1 bug with HP-UX 10.20.
97252
97253 1999-09-17  Jim Meyering  <meyering@ascend.com>
97254
97255         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97256         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97257         due to missing strdup (against sh-utils-2.0).
97258
97259 1999-08-29  Jim Meyering  <meyering@ascend.com>
97260
97261         * m4/jm-macros.m4: Require jm_BISON.
97262         * m4/bison.m4: New file.
97263
97264 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97265
97266         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97267         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97268
97269 1999-08-05  Jim Meyering  <meyering@ascend.com>
97270
97271         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97272         to avoid conflicts with `conftest' on 8+3 filesystems.
97273         Suggestion from Eli Zaretskii.
97274
97275 1999-08-04  Jim Meyering  <meyering@ascend.com>
97276
97277         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97278         fileutils and sh-utils (textutils's getline test was inadequate).
97279         (AM_FUNC_GETLINE): Run this test.
97280         (AC_CHECK_FUNCS): Check for getdelim.
97281         Reported by Bob Proulx.
97282
97283 1999-08-02  Jim Meyering  <meyering@ascend.com>
97284
97285         * m4/jm-macros.m4: Add a comment.
97286
97287 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97288
97289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97290         <inttypes.h> defines strtoumax as a macro (and not as a
97291         function).
97292
97293 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97294
97295         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97296         that we can shift, multiply and divide unsigned long long
97297         values; Ultrix cc can't do it.
97298
97299 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97300
97301         * m4/mktime.m4: New file, which is a preview of what should appear
97302         in the next public autoconf release.
97303
97304 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97305
97306         * m4/lfs.m4: Remove this file.
97307         * m4/largefile.m4: New file.  It contains the old contents of
97308         lfs.m4, except that all names with prefix AC_LFS have been
97309         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97310         compatible with future autoconf versions.  Also, some minor m4
97311         quoting problems have been fixed.
97312
97313 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97314
97315         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97316         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97317         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97318         and simplify the shell code.
97319
97320 1999-08-01  Jim Meyering  <meyering@ascend.com>
97321
97322         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97323         m4.
97324
97325 1999-07-20  Jim Meyering  <meyering@ascend.com>
97326
97327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97328
97329 1999-07-15  Jim Meyering  <meyering@ascend.com>
97330
97331         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97332
97333 1999-05-22  Jim Meyering  <meyering@ascend.com>
97334
97335         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97336
97337 1999-05-20  Jim Meyering  <meyering@ascend.com>
97338
97339         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97340         Add a colon after each `then' in case $4 is empty.
97341
97342 1999-05-16  Jim Meyering  <meyering@ascend.com>
97343
97344         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97345
97346 1999-05-10  Jim Meyering  <meyering@ascend.com>
97347
97348         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97349
97350         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97351         AC_FUNC_MKTIME.
97352
97353 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97354
97355         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97356
97357 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97358
97359         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97360         not CPPFLAGS, so that linking works correctly in IRIX.
97361
97362 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97363
97364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97365
97366 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97367
97368         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97369         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97371         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97372         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97373
97374         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97375
97376 1999-04-20  Jim Meyering  <meyering@ascend.com>
97377
97378         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97379         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97380         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97381
97382 1999-04-18  Jim Meyering  <meyering@ascend.com>
97383
97384         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97385         * m4/jm-macros.m4: Use it.
97386
97387 1999-04-06  Jim Meyering  <meyering@ascend.com>
97388
97389         * m4/strftime.m4: Remove test for %f.
97390
97391 1999-03-29  Jim Meyering  <meyering@ascend.com>
97392
97393         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97394         superset of the AC_TYPE_* checks in the textutils, fileutils,
97395         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97396         AC_TYPE_PID_T.
97397
97398 1999-03-28  Jim Meyering  <meyering@ascend.com>
97399
97400         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97401         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97402         replaced e.g., in the *.sh files of the sh-utils.
97403
97404 1999-03-20  Jim Meyering  <meyering@ascend.com>
97405
97406         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97407         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97408         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97409
97410 1999-03-19  Jim Meyering  <meyering@ascend.com>
97411
97412         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97413
97414 1999-03-12  Jim Meyering  <meyering@ascend.com>
97415
97416         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97417
97418 1999-03-07  Jim Meyering  <meyering@ascend.com>
97419
97420         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97421         declared.
97422
97423 1999-02-17  Jim Meyering  <meyering@ascend.com>
97424
97425         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97426         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97427
97428 1999-02-07  Jim Meyering  <meyering@ascend.com>
97429
97430         * m4/group-member.m4: New file -- extracted from sh-utils'
97431         configure.in.
97432
97433         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97434         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97435
97436 1999-02-06  Jim Meyering  <meyering@ascend.com>
97437
97438         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97439         * m4/fnmatch.m4: Likewise.
97440         * m4/getgroups.m4: Likewise.
97441         * m4/lstat.m4: Likewise.
97442         * m4/malloc.m4: Likewise.
97443         * m4/putenv.m4: Likewise.
97444         * m4/realloc.m4: Likewise.
97445         * m4/regex.m4: Likewise.
97446         * m4/stat.m4: Likewise.
97447         * m4/strftime.m4: Likewise.
97448         Suggestion from Alain Magloire.
97449
97450         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97451         * m4/fnmatch.m4: Likewise.
97452         * m4/getgroups.m4: Likewise.
97453         * m4/getline.m4: Likewise.
97454         * m4/lstat.m4: Likewise.
97455         * m4/malloc.m4: Likewise.
97456         * m4/memcmp.m4: Likewise.
97457         * m4/putenv.m4: Likewise.
97458         * m4/realloc.m4: Likewise.
97459         * m4/regex.m4: Likewise.
97460         * m4/stat.m4: Likewise.
97461         * m4/strftime.m4: Likewise.
97462         Suggestion from Alain Magloire.
97463
97464         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97465         an argument.
97466
97467         * m4/regex.m4: Add a run-time Test for proper operation of
97468         re_compile_pattern.
97469
97470 1999-01-31  Jim Meyering  <meyering@ascend.com>
97471
97472         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97473
97474 1999-01-30  Jim Meyering  <meyering@ascend.com>
97475
97476         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97477
97478         * m4/jm-mktime.m4: Make this a wrapper around the official
97479         AM_FUNC_MKTIME rather than my private copy, now that the official one
97480         is up to date.
97481         * m4/mktime.m4: Remove file.
97482
97483         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97484         * m4/uptime.m4: Likewise.
97485         * m4/uintmax_t.m4: Likewise.
97486
97487 1999-01-28  Jim Meyering  <meyering@ascend.com>
97488
97489         * m4/jm-macros.m4: Use jm_AFS.
97490         * m4/afs.m4: New file (from fileutils' configure.in).
97491
97492         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97493         * m4/chown.m4: Likewise.
97494         * m4/d-ino.m4: Likewise.
97495         * m4/d-type.m4: Likewise.
97496         * m4/fnmatch.m4: Likewise.
97497         * m4/getgroups.m4: Likewise.
97498         * m4/gettext.m4: Likewise.
97499         * m4/jm-mktime.m4: Likewise.
97500         * m4/jm-winsz2.m4: Likewise.
97501         * m4/lcmessage.m4: Likewise.
97502         * m4/ls-mntd-fs.m4: Likewise.
97503         * m4/malloc.m4: Likewise.
97504         * m4/memcmp.m4: Likewise.
97505         * m4/putenv.m4: Likewise.
97506         * m4/realloc.m4: Likewise.
97507         * m4/st_mtim.m4: Likewise.
97508         * m4/strftime.m4: Likewise.
97509
97510 1999-01-16  Jim Meyering  <meyering@ascend.com>
97511
97512         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97513         (ARGMATCH_DIE_DECL): Define.
97514
97515 1999-01-12  Jim Meyering  <meyering@ascend.com>
97516
97517         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97518         Reported by Lars Hecking.
97519
97520 1999-01-10  Jim Meyering  <meyering@ascend.com>
97521
97522         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97523         gross kludge.
97524         * m4/inttypes_h.m4: Likewise.
97525         * m4/lstat.m4: Likewise.
97526         * m4/malloc.m4: Likewise.
97527         * m4/readdir.m4: Likewise.
97528         * m4/realloc.m4: Likewise.
97529         * m4/st_dm_mode.m4: Likewise.
97530         * m4/stat.m4: Likewise.
97531         * m4/utimbuf.m4: Likewise.
97532         * m4/utimes.m4: Likewise.
97533
97534         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97535         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97536         comments in config.h.in are meaningful.
97537
97538         * m4/jm-macros.m4: Require autoconf-2.13 here.
97539
97540         * m4/regex.m4: By default, don't use the included regex.c on systems
97541         with glibc 2.  Suggestion from Uli Drepper.
97542
97543 1999-01-02  Jim Meyering  <meyering@ascend.com>
97544
97545         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97546
97547 1998-12-18  Jim Meyering  <meyering@ascend.com>
97548
97549         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97550         Based on a suggestion from Lars Hecking.
97551
97552 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97553
97554         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97555
97556 1998-11-16  Jim Meyering  <meyering@ascend.com>
97557
97558         * m4/lfs.m4: Double-quote the `uname...` expression.
97559
97560 1998-11-14  Jim Meyering  <meyering@ascend.com>
97561
97562         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97563         * m4/stat.m4: Likewise.
97564
97565 1998-11-03  Jim Meyering  <meyering@ascend.com>
97566
97567         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97568         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97569
97570 1998-10-18  Jim Meyering  <meyering@ascend.com>
97571
97572         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97573
97574 1998-10-17  Jim Meyering  <meyering@ascend.com>
97575
97576         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97577         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97578         calls for those previously hard-coded headers.  Instead, take a new
97579         parameter.
97580         (jm_CHECK_DECLARATIONS): Reflect interface change.
97581         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97582         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97583
97584         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97585
97586 1998-10-14  Jim Meyering  <meyering@ascend.com>
97587
97588         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97589         instead of "TZ=America/Vancouver".  From Paul Eggert.
97590
97591 1998-10-11  Jim Meyering  <meyering@ascend.com>
97592
97593         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97594         This adds a test for a recently added compatibility fix for mktime.c.
97595         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97596
97597 1998-09-27  Jim Meyering  <meyering@ascend.com>
97598
97599         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97600
97601         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97602         ../configure.in, including a change from Gordon Matzigkeit to allow
97603         cross-compiling for the Hurd.
97604
97605         * m4/glibc.m4: New file/macro to test for the GNU C Library
97606         versions 1 and 2.  From Gordon Matzigkeit.
97607         Indent.
97608
97609 1998-09-21  Jim Meyering  <meyering@ascend.com>
97610
97611         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97612
97613 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97614
97615         Port nanosecond-resolution times to UnixWare 2.1.2 and
97616         pedantic Solaris 2.6.
97617
97618         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97619         AC_STRUCT_ST_MTIM.
97620         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97621         Generate name of ns member, instead of just 1 or undef.
97622         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97623
97624 1998-08-15  Jim Meyering  <meyering@ascend.com>
97625
97626         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97627         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97628         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97629         instead of jm_TYPE_SSIZE_T.
97630
97631 1998-08-12  Jim Meyering  <meyering@ascend.com>
97632
97633         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97634
97635 1998-08-02  Jim Meyering  <meyering@ascend.com>
97636
97637         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97638         in acconfig.h manually.
97639
97640 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97641
97642         * m4/st_mtim.m4: New file.
97643
97644 1998-07-28  Jim Meyering  <meyering@ascend.com>
97645
97646         * m4/utimes.m4: Undef stat.
97647
97648 1998-07-25  Jim Meyering  <meyering@ascend.com>
97649
97650         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97651         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97652
97653 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97654
97655         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97656         uid and gid actually remain unchanged.
97657
97658 1998-07-07  Jim Meyering  <meyering@ascend.com>
97659
97660         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97661
97662 1998-07-04  Jim Meyering  <meyering@ascend.com>
97663
97664         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97665         to prove that this macro can be used in packages without regex.c.
97666
97667 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97668
97669         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97670         is to be used.
97671
97672 1998-07-03  Jim Meyering  <meyering@ascend.com>
97673
97674         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97675
97676         * m4/gettext.m4: New file -- from gettext-0.10.35.
97677         * m4/lcmessage.m4: Likewise.
97678         * m4/progtest.m4: Likewise.
97679
97680         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97681         * m4/jm-macros.m4: Require the new macro.
97682
97683 1998-06-29  Jim Meyering  <meyering@ascend.com>
97684
97685         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97686         for the definition of NGROUPS (used in a system header included
97687         by sys/mount.h).
97688
97689 1998-06-28  Jim Meyering  <meyering@ascend.com>
97690
97691         * m4/ls-mntd-fs.m4: New file.
97692         * m4/fstypename.m4: New file.
97693
97694         * m4/jm-macros.m4: Require the new macro.
97695         * m4/jm-glibc-io.m4: New file.
97696
97697 1998-05-19  Jim Meyering  <meyering@ascend.com>
97698
97699         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97700         * m4/lchown.m4: New file.
97701
97702         * m4/Makefile.am.in: New file.
97703         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97704
97705 1998-05-14  Jim Meyering  <meyering@ascend.com>
97706
97707         * m4/Makefile.am (EXTRA_DIST): Add them.
97708         * m4/jm-macros.m4: New file.
97709         * m4/utimbuf.m4: New file.
97710
97711 1998-05-12  Jim Meyering  <meyering@ascend.com>
97712
97713         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97714
97715 1998-05-11  Jim Meyering  <meyering@ascend.com>
97716
97717         * m4/isc-posix.m4: New file.
97718
97719 1998-05-10  Jim Meyering  <meyering@ascend.com>
97720
97721         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97722
97723 1998-05-09  Jim Meyering  <meyering@ascend.com>
97724
97725         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97726         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97727         with automake.
97728
97729         * m4/ssize_t.m4: New file.
97730         * m4/mktime.m4: Remove file -- the new automake has this now.
97731
97732 1998-04-26  Jim Meyering  <meyering@ascend.com>
97733
97734         * m4/assert.m4: New file.
97735         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97736
97737 1998-04-05  Jim Meyering  <meyering@ascend.com>
97738
97739         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97740         (jm_PREREQ): Use it here.
97741
97742 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97743
97744         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97745         in acconfig.h.
97746
97747 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97748
97749         * m4/prereq.m4: New file.
97750         * m4/error.m4: New file.
97751         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97752
97753 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97754
97755         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97756         cache-check for the same variable -- that defeated the purpose of
97757         the test; the test program was never run.  This was a problem only
97758         on systems with losing getline functions -- HP-UX 10.20 is one.
97759         Reported by Bjorn Helgaas.
97760
97761 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97762
97763         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97764
97765 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97766
97767         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97768
97769         * m4/const.m4: New file.  Use an initializer in this declaration
97770         typedef int charset[2]; const charset x;
97771         Reported by Bob Glickstein.
97772
97773 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97774
97775         * m4/chown.m4: Fix reversed types on -1 args to chown.
97776         From Kaveh Ghazi.
97777
97778 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97779
97780         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97781         Add lseek and memchr.
97782
97783         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97784         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97785         have a 20-character limit on names.
97786
97787 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97788
97789         * m4/inttypes_h.m4: New file.
97790         * m4/uintmax_t.m4: New file.
97791         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97792
97793
97794         -----
97795
97796         Local Variables:
97797         coding: utf-8
97798         End:
97799
97800         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97801
97802         Copying and distribution of this file, with or without
97803         modification, are permitted provided the copyright notice
97804         and this notice are preserved.