fseeko: Fix C++ test error on mingw.
[pspp] / ChangeLog
1 2010-04-03  Bruno Haible  <bruno@clisp.org>
2
3         fseeko: Fix C++ test error on mingw.
4         * lib/stdio.in.h (fseeko): Use modern idiom.
5         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7         is missing and that it needs to be replaced.
8         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
9         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
10         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
11
12 2010-04-03  Bruno Haible  <bruno@clisp.org>
13
14         mkstemp: Fix C++ test error on mingw.
15         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17         function is missing and that it needs to be replaced.
18         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
19         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20
21 2010-04-03  Bruno Haible  <bruno@clisp.org>
22
23         stpncpy: Fix C++ test error on mingw.
24         * lib/string.in.h (stpncpy): Use modern idiom.
25         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26         function is missing and that it needs to be replaced.
27         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28         REPLACE_STPNCPY.
29         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30
31 2010-04-03  Bruno Haible  <bruno@clisp.org>
32
33         sys_stat: Fix C++ test error on mingw.
34         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36
37 2010-04-03  Bruno Haible  <bruno@clisp.org>
38
39         pty: Update doc.
40         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
41
42 2010-04-03  Bruno Haible  <bruno@clisp.org>
43
44         unistd: Fix C++ test error on mingw.
45         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
46
47 2010-04-03  Bruno Haible  <bruno@clisp.org>
48
49         Update doc regarding mingw.
50         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51         * doc/glibc-functions/login_tty.texi: Likewise.
52         * doc/glibc-functions/forkpty.texi: Likewise.
53
54 2010-04-03  Bruno Haible  <bruno@clisp.org>
55
56         stdlib: Avoid compilation failure of c-strtold on mingw.
57         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
58
59 2010-04-03  Bruno Haible  <bruno@clisp.org>
60
61         locale: Make C++ tests work on Cygwin and mingw.
62         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
63         cannot provide the function.
64         Reported by Simon Josefsson.
65
66 2010-04-03  Bruno Haible  <bruno@clisp.org>
67
68         localename: Port to MacOS X 10.6.
69         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70         memory layout of the locales in MacOS X 10.6 as well.
71         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
72
73 2010-04-02  Bruno Haible  <bruno@clisp.org>
74
75         gnulib-tool: Ensure that long-running tests are executed last.
76         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
77         running tests after the one for the other tests.
78
79 2010-04-02  Bruno Haible  <bruno@clisp.org>
80
81         gnulib-tool: Ensure the tests in the main directory are executed first.
82         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
83         start with the current directory.
84
85 2010-04-02  Bruno Haible  <bruno@clisp.org>
86
87         Tests for module 'havelib', moved here from GNU gettext.
88         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
89         modifications.
90         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
91         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
92         with modifications.
93         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
94         modifications.
95         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
96         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
97         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
98         with modifications.
99         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
100         with modifications.
101         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
102         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
103         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
104         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
105         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
106         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
107         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
108         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
109         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
110         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
111         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
112         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
113         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
114         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
115         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
116         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
117         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
118         with modifications.
119         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
120         with modifications.
121         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
122         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
123         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
124         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
125         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
126         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
127         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
128         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
129         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
130         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
131         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
132         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
133         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
134         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
135         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
136         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
137         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
138         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
139         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
140         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
141         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
142         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
143         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
144         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
145         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
146         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
147         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
148         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
149         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
150         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
151         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
152         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
153         * tests/havelib/rpathx/rpathx.c: New file, from
154         gettext/autoconf-lib-link.
155         * tests/havelib/rpathx/Makefile.am: New file, from
156         gettext/autoconf-lib-link.
157         * tests/havelib/rpathx/configure.ac: New file, from
158         gettext/autoconf-lib-link with modifications.
159         * tests/havelib/rpathy/rpathy.c: New file, from
160         gettext/autoconf-lib-link.
161         * tests/havelib/rpathy/Makefile.am: New file, from
162         gettext/autoconf-lib-link.
163         * tests/havelib/rpathy/configure.ac: New file, from
164         gettext/autoconf-lib-link with modifications.
165         * tests/havelib/rpathz/rpathz.c: New file, from
166         gettext/autoconf-lib-link.
167         * tests/havelib/rpathz/Makefile.am: New file, from
168         gettext/autoconf-lib-link.
169         * tests/havelib/rpathz/configure.ac: New file, from
170         gettext/autoconf-lib-link with modifications.
171         * tests/havelib/rpathlx/usex.c: New file, from
172         gettext/autoconf-lib-link.
173         * tests/havelib/rpathlx/Makefile.am: New file, from
174         gettext/autoconf-lib-link.
175         * tests/havelib/rpathlx/configure.ac: New file, from
176         gettext/autoconf-lib-link with modifications.
177         * tests/havelib/rpathly/usey.c: New file, from
178         gettext/autoconf-lib-link.
179         * tests/havelib/rpathly/Makefile.am: New file, from
180         gettext/autoconf-lib-link.
181         * tests/havelib/rpathly/configure.ac: New file, from
182         gettext/autoconf-lib-link with modifications.
183         * tests/havelib/rpathlz/usez.c: New file, from
184         gettext/autoconf-lib-link.
185         * tests/havelib/rpathlz/Makefile.am: New file, from
186         gettext/autoconf-lib-link.
187         * tests/havelib/rpathlz/configure.ac: New file, from
188         gettext/autoconf-lib-link with modifications.
189         * tests/havelib/rpathlyx/usey.c: New file, from
190         gettext/autoconf-lib-link.
191         * tests/havelib/rpathlyx/Makefile.am: New file, from
192         gettext/autoconf-lib-link.
193         * tests/havelib/rpathlyx/configure.ac: New file, from
194         gettext/autoconf-lib-link with modifications.
195         * tests/havelib/rpathlzyx/usez.c: New file, from
196         gettext/autoconf-lib-link.
197         * tests/havelib/rpathlzyx/Makefile.am: New file, from
198         gettext/autoconf-lib-link.
199         * tests/havelib/rpathlzyx/configure.ac: New file, from
200         gettext/autoconf-lib-link with modifications.
201         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
202         with modifications.
203
204 2010-04-02  Bruno Haible  <bruno@clisp.org>
205
206         gnulib-tool: Create distributed built sources also for the tests.
207         * gnulib-tool (func_create_testdir): Also generate distributed built
208         sources in the tests directory.
209
210 2010-04-02  Bruno Haible  <bruno@clisp.org>
211
212         gnulib-tool: Obey user's environment variables.
213         * gnulib-tool (func_create_testdir): When creating built sources,
214         respect the environment variables for autoconf, automake, etc. given by
215         the user.
216
217 2010-04-02  Bruno Haible  <bruno@clisp.org>
218
219         gnulib-tool: Provide the value of --m4-base to modules.
220         * gnulib-tool (func_import, func_create_testdir): Emit a definition
221         of gl_m4_base.
222
223 2010-04-02  Eric Blake  <eblake@redhat.com>
224
225         maint.mk: fix some fallout
226         * NEWS: Document the incompatible change, and its effect on cfg.mk.
227         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
228
229 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
230
231         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
232         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
233         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
234         (sc_cast_of_x_alloc_return_value): Likewise.
235         (sc_cast_of_alloca_return_value): Likewise.
236         (sc_space_tab): Likewise.
237         (sc_prohibit_atoi_atof): Likewise.
238         (sc_prohibit_magic_number_exit): Likewise.
239         (sc_error_exit_success): Likewise.
240         (sc_file_system): Likewise.
241         (sc_prohibit_have_config_h): Likewise.
242         (sc_require_config_h): Likewise.
243         (sc_prohibit_HAVE_MBRTOWC): Likewise.
244         (sc_obsolete_symbols): Likewise.
245         (sc_changelog): Likewise.
246         (sc_program_name): Likewise.
247         (sc_the_the): Likewise.
248         (sc_trailing_blank): Likewise.
249         (sc_two_space_separator_in_usage): Likewise.
250         (sc_useless_cpp_parens): Likewise.
251         (sc_GPL_version): Likewise.
252         (sc_GFDL_version): Likewise.
253         (sc_texinfo_acronym): Likewise.
254         (sc_prohibit_cvs_keyword): Likewise.
255         (sc_prohibit_stat_st_blocks): Likewise.
256         (sc_prohibit_S_IS_definition): Likewise.
257         (sc_redundant_const): Likewise.
258         (sc_makefile_TAB_only_indentation): Likewise.
259         (sc_m4_quote_check): Likewise.
260         (sc_makefile_path_separator_check): Likewise.
261         (sc_copyright_check): Likewise.
262         (sc_Wundef_boolean): Likewise.
263         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
264
265         maint.mk: match 0 or more whitespace-before-function-call '('
266         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
267         that have zero or two-and-more spaces between the function name
268         and the open parenthesis.
269         (sc_error_message_warn_fatal): Likewise.
270         (sc_error_message_uppercase): Likewise.
271         (sc_error_message_period): Likewise.
272
273 2010-03-31  Eric Blake  <eblake@redhat.com>
274
275         maint.mk: check for [ as well as test
276         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
277         Based on a libvirt report by Matthias Bolte.
278
279         gnumakefile: don't squelch _version output
280         * top/GNUmakefile (_version): Create one-shot dependency rather
281         than using $(shell) when version must be regenerated.
282         (_autoreconf): Run verbosely, by default.
283
284         sys_time: avoid compiler warnings
285         * lib/sys_time.in.h (includes): Ensure gcc pragma is
286         unconditional, fixing regression from 2010-03-29.
287         Reported by Simon Josefsson.
288
289 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
290
291         maint.mk: s/_header_without_use/_sc_header_without_use/
292         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
293         (sc_prohibit_assert_without_use): Use the new name.
294         (sc_prohibit_close_stream_without_use): Likewise.
295         (sc_prohibit_getopt_without_use): Likewise.
296         (sc_prohibit_quotearg_without_use): Likewise.
297         (sc_prohibit_quote_without_use): Likewise.
298         (sc_prohibit_long_options_without_use): Likewise.
299         (sc_prohibit_inttostr_without_use): Likewise.
300         (sc_prohibit_ignore_value_without_use): Likewise.
301         (sc_prohibit_error_without_use): Likewise.
302         (sc_prohibit_xalloc_without_use): Likewise.
303         (sc_prohibit_hash_without_use): Likewise.
304         (sc_prohibit_hash_pjw_without_use): Likewise.
305         (sc_prohibit_safe_read_without_use): Likewise.
306         (sc_prohibit_argmatch_without_use): Likewise.
307         (sc_prohibit_canonicalize_without_use): Likewise.
308         (sc_prohibit_root_dev_ino_without_use): Likewise.
309         (sc_prohibit_openat_without_use): Likewise.
310         (sc_prohibit_c_ctype_without_use): Likewise.
311         (sc_prohibit_signal_without_use): Likewise.
312         (sc_prohibit_intprops_without_use): Likewise.
313
314 2010-03-30  Eric Blake  <eblake@redhat.com>
315
316         maint: improve module indicators
317         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
318         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
319         columns, and avoid extra macro expansion.
320
321         fdopendir: work around FreeBSD bug
322         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
323         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
324         * modules/dirent (Makefile.am): Substitute it.
325         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
326         declaration.
327         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
328         fix.
329         Reported by Christian Weisgerber <naddy@mips.inka.de>.
330
331 2010-03-29  Bruno Haible  <bruno@clisp.org>
332
333         Emit #pragma system_header after the inclusion guard, not before.
334         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
335         guard that spans the entire file, not before. This enables an
336         optimization in GCC's preprocessor.
337         * lib/ctype.in.h: Likewise.
338         * lib/dirent.in.h: Likewise.
339         * lib/errno.in.h: Likewise.
340         * lib/float.in.h: Likewise.
341         * lib/getopt.in.h: Likewise.
342         * lib/iconv.in.h: Likewise.
343         * lib/langinfo.in.h: Likewise.
344         * lib/locale.in.h: Likewise.
345         * lib/math.in.h: Likewise.
346         * lib/netdb.in.h: Likewise.
347         * lib/netinet_in.in.h: Likewise.
348         * lib/pty.in.h: Likewise.
349         * lib/sched.in.h: Likewise.
350         * lib/se-selinux.in.h: Likewise.
351         * lib/search.in.h: Likewise.
352         * lib/spawn.in.h: Likewise.
353         * lib/stdarg.in.h: Likewise.
354         * lib/stdint.in.h: Likewise.
355         * lib/string.in.h: Likewise.
356         * lib/strings.in.h: Likewise.
357         * lib/sys_file.in.h: Likewise.
358         * lib/sys_ioctl.in.h: Likewise.
359         * lib/sys_time.in.h: Likewise.
360         * lib/sys_times.in.h: Likewise.
361         * lib/sys_utsname.in.h: Likewise.
362         * lib/sys_wait.in.h: Likewise.
363         * lib/sysexits.in.h: Likewise.
364         * lib/wctype.in.h: Likewise.
365
366 2010-03-28  James Youngman  <jay@gnu.org>
367
368         save-cwd: don't leak a file descriptor when the caller execs.
369         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
370         saved file descriptor.
371         * modules/save-cwd (Depends-on): Depend on cloexec.
372
373 2010-03-29  Bruno Haible  <bruno@clisp.org>
374
375         Remove vestiges of fts-lgpl module.
376         * lib/fts_.h: Assume GNULIB_FTS is 1.
377         * lib/fts.c: Likewise.
378         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
379
380 2010-03-28  Bruno Haible  <bruno@clisp.org>
381
382         Fix definition of tests witness macro.
383         * gnulib-tool (func_import): Fix definition of witness macro.
384
385 2010-03-28  Bruno Haible  <bruno@clisp.org>
386
387         Fix ioctl's protoype on glibc systems.
388         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
389         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
390         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
391         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
392         signature. If not, arrange to replace the ioctl function.
393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
394         REPLACE_IOCTL.
395         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
396         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
397         Reported by Ludovic Courtès <ludo@gnu.org>.
398
399 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
400
401         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
402         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
403         made it so grep -r --include=GLOB* ... did not work.
404
405 2010-03-26  Jim Meyering  <meyering@redhat.com>
406             Eric Blake  <eblake@redhat.com>
407
408         maint.mk: prohibit use of test's -o and -a operators
409         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
410
411 2010-03-28  Bruno Haible  <bruno@clisp.org>
412
413         Remove unused GNULIB_XYZ macro definitions.
414         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
415         invocation.
416
417 2010-03-28  Bruno Haible  <bruno@clisp.org>
418
419         Mark privileged tests modules.
420         * modules/idpriv-drop-tests (Status): New section.
421         * modules/idpriv-droptemp-tests (Status): New section.
422
423 2010-03-28  Bruno Haible  <bruno@clisp.org>
424
425         Split C++ tests into separate tests modules.
426         * modules/dirent-c++-tests: New file, extracted from
427         modules/dirent-tests.
428         * modules/dirent-tests: Depend on it.
429         * modules/fcntl-h-c++-tests: New file, extracted from
430         modules/fcntl-h-tests.
431         * modules/fcntl-h-tests: Depend on it.
432         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
433         * modules/glob-tests: Depend on it.
434         * modules/iconv-h-c++-tests: New file, extracted from
435         modules/iconv-h-tests.
436         * modules/iconv-h-tests: Depend on it.
437         * modules/langinfo-c++-tests: New file, extracted from
438         modules/langinfo-tests.
439         * modules/langinfo-tests: Depend on it.
440         * modules/locale-c++-tests: New file, extracted from
441         modules/locale-tests.
442         * modules/locale-tests: Depend on it.
443         * modules/math-c++-tests: New file, extracted from modules/math-tests.
444         * modules/math-tests: Depend on it.
445         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
446         * modules/pty-tests: Depend on it.
447         * modules/search-c++-tests: New file, extracted from
448         modules/search-tests.
449         * modules/search-tests: Depend on it.
450         * modules/signal-c++-tests: New file, extracted from
451         modules/signal-tests.
452         * modules/signal-tests: Depend on it.
453         * modules/spawn-c++-tests: New file, extracted from
454         modules/spawn-tests.
455         * modules/spawn-tests: Depend on it.
456         * modules/stdio-c++-tests: New file, extracted from
457         modules/stdio-tests.
458         * modules/stdio-tests: Depend on it.
459         * modules/stdlib-c++-tests: New file, extracted from
460         modules/stdlib-tests.
461         * modules/stdlib-tests: Depend on it.
462         * modules/string-c++-tests: New file, extracted from
463         modules/string-tests.
464         * modules/string-tests: Depend on it.
465         * modules/sys_ioctl-c++-tests: New file, extracted from
466         modules/sys_ioctl-tests.
467         * modules/sys_ioctl-tests: Depend on it.
468         * modules/sys_select-c++-tests: New file, extracted from
469         modules/sys_select-tests.
470         * modules/sys_select-tests: Depend on it.
471         * modules/sys_socket-c++-tests: New file, extracted from
472         modules/sys_socket-tests.
473         * modules/sys_socket-tests: Depend on it.
474         * modules/sys_stat-c++-tests: New file, extracted from
475         modules/sys_stat-tests.
476         * modules/sys_stat-tests: Depend on it.
477         * modules/sys_time-c++-tests: New file, extracted from
478         modules/sys_time-tests.
479         * modules/sys_time-tests: Depend on it.
480         * modules/time-c++-tests: New file, extracted from modules/time-tests.
481         * modules/time-tests: Depend on it.
482         * modules/unistd-c++-tests: New file, extracted from
483         modules/unistd-tests.
484         * modules/unistd-tests: Depend on it.
485         * modules/wchar-c++-tests: New file, extracted from
486         modules/wchar-tests.
487         * modules/wchar-tests: Depend on it.
488         * modules/wctype-c++-tests: New file, extracted from
489         modules/wctype-tests.
490         * modules/wctype-tests: Depend on it.
491         Reported by Simon Josefsson.
492
493 2010-03-28  Bruno Haible  <bruno@clisp.org>
494
495         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
496         * gnulib-tool (func_exists_module): New function, extracted from
497         func_verify_module.
498         (func_verify_module): Use it.
499         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
500         'foo' only if 'foo' exists.
501         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
502         module.
503
504 2010-03-28  Bruno Haible  <bruno@clisp.org>
505
506         gnulib-tool: Add support for special categories of tests.
507         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
508         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
509         (func_usage): Document them.
510         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
511         inc_unportable_tests, inc_all_tests): New variables.
512         (func_acceptable): Consider these variables.
513         (func_modules_transitive_closure): Make it work when the 'Status' field
514         consists of multiple words.
515         (func_import): Store and restore the values of inc_cxx_tests,
516         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
517         inc_all_tests in gnulib-comp.m4.
518         (func_create_testdir): Set inc_all_tests to true.
519         * doc/gnulib.texi (Extra tests modules): New section.
520         Suggested by Jim Meyering.
521
522 2010-03-28  Bruno Haible  <bruno@clisp.org>
523
524         ansi-c++-opt: Allow turning off the C++ build by default.
525         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
526         gl_CXX_CHOICE_DEFAULT_NO is defined.
527         Requested by Eric Blake.
528
529 2010-03-28  Bruno Haible  <bruno@clisp.org>
530
531         unistd: Avoid #define replacements in C++ mode.
532         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
533         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
534         setsockopt, shutdown, select): In C++, attach a warning to the function
535         if possible, rather than #defining the symbol to a dysfunctional alias.
536         Reported by John W. Eaton <jwe@gnu.org>.
537
538 2010-03-28  Bruno Haible  <bruno@clisp.org>
539
540         Fix link errors on mingw.
541         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
542         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
543         $(LIBSOCKET).
544         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
545         $(LIBSOCKET).
546
547 2010-03-28  Bruno Haible  <bruno@clisp.org>
548             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
549
550         lib-ignore: Determine different options for different compilers.
551         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
552         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
553         Add comments.
554         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
555         * NEWS: Mention the change.
556
557 2010-03-27  Bruno Haible  <bruno@clisp.org>
558
559         Remove unused GNULIB_XYZ macro definitions.
560         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
561         * modules/fseek (configure.ac): Likewise.
562         * modules/ioctl (configure.ac): Likewise.
563         * modules/open (configure.ac): Likewise.
564         * modules/stdlib-safer (configure.ac): Likewise.
565
566 2010-03-27  Bruno Haible  <bruno@clisp.org>
567
568         Add a remark about certain modules.
569         * modules/malloc (Comment): New section.
570         * modules/realloc (Comment): Likewise.
571         * modules/sigpipe (Comment): Likewise.
572
573 2010-03-27  Bruno Haible  <bruno@clisp.org>
574
575         Resolve conflict between the two kinds of module indicators.
576         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
577         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
578         * modules/canonicalize (configure.ac): Invoke
579         gl_MODULE_INDICATOR_FOR_TESTS.
580         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
581         GNULIB_XYZ.
582         * tests/test-dirent-c++.cc: Likewise.
583         * tests/test-dirent-safer.c: Likewise.
584         * tests/test-dup2.c: Likewise.
585         * tests/test-fchdir.c: Likewise.
586         * tests/test-fcntl-h-c++.cc: Likewise.
587         * tests/test-getopt.c: Likewise.
588         * tests/test-getopt.h: Likewise.
589         * tests/test-langinfo-c++.cc: Likewise.
590         * tests/test-locale-c++.cc: Likewise.
591         * tests/test-math-c++.cc: Likewise.
592         * tests/test-pty-c++.cc: Likewise.
593         * tests/test-search-c++.cc: Likewise.
594         * tests/test-signal-c++.cc: Likewise.
595         * tests/test-spawn-c++.cc: Likewise.
596         * tests/test-stdio-c++.cc: Likewise.
597         * tests/test-stdlib-c++.cc: Likewise.
598         * tests/test-string-c++.cc: Likewise.
599         * tests/test-sys_ioctl-c++.cc: Likewise.
600         * tests/test-sys_select-c++.cc: Likewise.
601         * tests/test-sys_socket-c++.cc: Likewise.
602         * tests/test-sys_stat-c++.cc: Likewise.
603         * tests/test-sys_time-c++.cc: Likewise.
604         * tests/test-time-c++.cc: Likewise.
605         * tests/test-unistd-c++.cc: Likewise.
606         * tests/test-wchar-c++.cc: Likewise.
607         * tests/uninorm/test-u8-nfc.c: Likewise.
608         * tests/uninorm/test-u8-nfd.c: Likewise.
609         * tests/uninorm/test-u8-nfkc.c: Likewise.
610         * tests/uninorm/test-u8-nfkd.c: Likewise.
611         * tests/uninorm/test-u16-nfc.c: Likewise.
612         * tests/uninorm/test-u16-nfd.c: Likewise.
613         * tests/uninorm/test-u16-nfkc.c: Likewise.
614         * tests/uninorm/test-u16-nfkd.c: Likewise.
615         * tests/uninorm/test-u32-nfc.c: Likewise.
616         * tests/uninorm/test-u32-nfc-big.c: Likewise.
617         * tests/uninorm/test-u32-nfd.c: Likewise.
618         * tests/uninorm/test-u32-nfd-big.c: Likewise.
619         * tests/uninorm/test-u32-nfkc.c: Likewise.
620         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
621         * tests/uninorm/test-u32-nfkd.c: Likewise.
622         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
623         * tests/uninorm/test-u32-normalize-big.c: Likewise.
624
625 2010-03-27  Bruno Haible  <bruno@clisp.org>
626
627         Distinguish two kinds of module indicators.
628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
629         gl_MODULE_INDICATOR.
630         (gl_MODULE_INDICATOR): New macro.
631         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
632         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
633         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
634         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
635         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
636         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
637         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
638         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
639         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
640         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
641         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
642         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
644         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
645         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
646         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
647         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
648         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
649         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
650         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
651         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
652         * modules/cloexec (configure.ac): Likewise.
653         * modules/getopt-gnu (configure.ac): Likewise.
654         * modules/uninorm/u8-normalize (configure.ac): Likewise.
655         * modules/uninorm/u16-normalize (configure.ac): Likewise.
656         * modules/uninorm/u32-normalize (configure.ac): Likewise.
657         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
658
659 2010-03-27  Bruno Haible  <bruno@clisp.org>
660
661         New module description field 'Comment'.
662         * gnulib-tool: New option --extract-comment.
663         (func_usage): Document it.
664         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
665         (func_get_comment): New function.
666         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
667
668 2010-03-27  Bruno Haible  <bruno@clisp.org>
669
670         Addendum to 2010-02-07 commit.
671         * gnulib-tool (func_usage): Document --extract-applicability option.
672
673 2010-03-27  Bruno Haible  <bruno@clisp.org>
674
675         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
676         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
677         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
678         rather than link errors.
679
680 2010-03-27  Bruno Haible  <bruno@clisp.org>
681
682         Avoid side effects from tests-related modules on the compilation of lib.
683         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
684         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
685         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
686         parameter. Emit into AM_CPPFLAGS a definition of the designated C
687         macro.
688         (func_import): Define a witness macro. Assign it a value that depends
689         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
690         tests-related modules.
691         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
692         Reported by Jim Meyering.
693
694 2010-03-27  Bruno Haible  <bruno@clisp.org>
695
696         Factorize common .m4 code.
697         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
698         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
699         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
700         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
701         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
702         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
703         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
704         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
705         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
706         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
707         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
708         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
709         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
710         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
711         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
712         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
713         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
714         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
716         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
717         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
718         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
719         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
720         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
721         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
722         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
723         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
725         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
726         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
727         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
728         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
729
730 2010-03-27  Bruno Haible  <bruno@clisp.org>
731
732         Fix a compilation error on Cygwin with g++ >= 4.3.
733         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
734         if it is undefined or if we alias it to chmod.
735         (lstat): Don't warn about the use of this function if it is undefined
736         or if we alias it to stat.
737         Reported by Simon Josefsson.
738
739 2010-03-27  Bruno Haible  <bruno@clisp.org>
740
741         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
742         * modules/getlogin (configure.ac): Update.
743
744         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
745         * modules/getlogin_r (configure.ac): Update.
746
747         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
748         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
749         * modules/inet_ntop (configure.ac): Update.
750
751         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
752         * modules/inet_pton (configure.ac): Update.
753
754         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
755         * modules/mbslen (configure.ac): Update.
756
757         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
758         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
759         * modules/forkpty (configure.ac): Update.
760         * modules/openpty (configure.ac): Update.
761
762 2010-03-26  Simon Josefsson  <simon@josefsson.org>
763
764         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
765         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
766
767 2010-03-25  Eric Blake  <eblake@redhat.com>
768
769         maint: use pragma consistently across replacement headers
770         * lib/ctype.in.h (system_header): Hoist for consistent placement.
771         * lib/dirent.in.h (system_header): Likewise.
772         * lib/errno.in.h (system_header): Likewise.
773         * lib/float.in.h (system_header): Likewise.
774         * lib/getopt.in.h (system_header): Likewise.
775         * lib/iconv.in.h (system_header): Likewise.
776         * lib/inttypes.in.h (system_header): Likewise.
777         * lib/langinfo.in.h (system_header): Likewise.
778         * lib/locale.in.h (system_header): Likewise.
779         * lib/math.in.h (system_header): Likewise.
780         * lib/netdb.in.h (system_header): Likewise.
781         * lib/netinet_in.in.h (system_header): Likewise.
782         * lib/pty.in.h (system_header): Likewise.
783         * lib/sched.in.h (system_header): Likewise.
784         * lib/se-selinux.in.h (system_header): Likewise.
785         * lib/search.in.h (system_header): Likewise.
786         * lib/spawn.in.h (system_header): Likewise.
787         * lib/stdarg.in.h (system_header): Likewise.
788         * lib/stdint.in.h (system_header): Likewise.
789         * lib/string.in.h (system_header): Likewise.
790         * lib/strings.in.h (system_header): Likewise.
791         * lib/sys_file.in.h (system_header): Likewise.
792         * lib/sys_ioctl.in.h (system_header): Likewise.
793         * lib/sys_socket.in.h (system_header): Likewise.
794         * lib/sys_times.in.h (system_header): Likewise.
795         * lib/sys_utsname.in.h (system_header): Likewise.
796         * lib/sys_wait.in.h (system_header): Likewise.
797         * lib/sysexits.in.h (system_header): Likewise.
798         * lib/unistd.in.h (system_header): Likewise.
799         * lib/wctype.in.h (system_header): Likewise.
800
801         arpa/inet: fix mingw compilation warning
802         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
803         Reported by Matthew Bolte.
804
805 2010-03-25  Bruno Haible  <bruno@clisp.org>
806
807         Avoid collision between gnulib wrapper and libintl wrapper.
808         * lib/printf.c (printf): Don't define if a printf wrapper is already
809         defined in intl/printf.c.
810         Reported by Michel Boaventura <michel@michelboaventura.com>.
811
812 2010-03-25  Bruno Haible  <bruno@clisp.org>
813
814         Use ANSI C.
815         * lib/readutmp.h (getutent): Provide ANSI C prototype.
816
817 2010-03-25  Bruno Haible  <bruno@clisp.org>
818
819         Minor formatting changes.
820         * lib/acosl.c: Insert space before function argument list.
821         * lib/argz.c: Likewise.
822         * lib/asinl.c: Likewise.
823         * lib/expl.c: Likewise.
824         * lib/gen-uni-tables.c: Likewise.
825         * lib/gettext.h: Likewise.
826         * lib/glthread/lock.h: Likewise.
827         * lib/tanl.c: Likewise.
828         * lib/uniname/uniname.c: Likewise.
829         * tests/test-idpriv-drop.c: Likewise.
830         * tests/test-idpriv-droptemp.c: Likewise.
831         * tests/test-lock.c: Likewise.
832         * tests/test-tls.c: Likewise.
833         * lib/argp-help.c: Insert space before function-like macro argument
834         list.
835         * lib/memcmp.c: Likewise.
836         * tests/test-base64.c: Likewise.
837         * lib/localename.c: Insert space before sizeof's argument list.
838         * lib/safe-alloc.h: Likewise.
839         * lib/file-set.h: Insert space before macro argument list.
840         * tests/test-argp.c: Likewise.
841         * lib/argp-namefrob.h: Insert space before function parameter list.
842         * lib/getaddrinfo.c: Likewise.
843         * lib/netdb.in.h: Likewise.
844         * lib/parse-duration.h: Likewise.
845         * lib/parse-duration.c: Likewise.
846         * lib/poll.c: Likewise.
847         * lib/select.c: Likewise.
848         * lib/trim.h: Likewise.
849         * tests/test-usleep.c: Likewise.
850         * lib/ldexpl.c: Insert space before function parameter list and before
851         function argument list.
852         * lib/logl.c: Likewise.
853         * lib/sqrtl.c: Likewise.
854         * lib/trim.c: Likewise.
855         * lib/cosl.c: Use GNU style indentation. Insert space before function
856         argument list.
857         * lib/sinl.c: Likewise.
858         * lib/tsearch.c: Insert space after 'for'.
859         Reported by Jim Meyering.
860
861 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
862
863         * maint.mk (sc_Wundef_boolean): Check for the presence of the
864         config header before grepping, as it's not present before
865         autoreconf/configure are run.  Reported by Simon Josefsson.
866
867 2010-03-23  Bruno Haible  <bruno@clisp.org>
868
869         pt_chown: Make it work with automake < 1.11.
870         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
871         Reported by Simon Josefsson.
872
873 2010-03-23  Bruno Haible  <bruno@clisp.org>
874
875         pt_chown: Don't depend on GPLed modules.
876         * lib/pt_chown.c: Don't include idpriv.h.
877         (main): Don't drop privileges.
878         * modules/pt_chown (Depends-on): Remove idpriv-drop.
879         Reported by Simon Josefsson.
880
881 2010-03-24  Simon Josefsson  <simon@josefsson.org>
882
883         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
884         suggestions from karl@freefriends.org (Karl Berry).
885
886 2010-03-22  Eric Blake  <eblake@redhat.com>
887
888         gethostname: further tweaks
889         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
890         are overriding gethostname.
891         Suggested by Bruno Haible.
892
893 2010-03-21  Bruno Haible  <bruno@clisp.org>
894
895         Fix comments.
896         * lib/forkpty.c (rpl_forkpty): Fix comment.
897         * lib/openpty.c (rpl_openpty): Likewise.
898         Reported by Eric Blake.
899
900 2010-03-22  Eric Blake  <eblake@redhat.com>
901
902         gethostname: fix build on mingw
903         * lib/unistd.in.h (includes): Work around fact that mingw
904         <winsock2.h> re-includes <unistd.h>, by avoiding any
905         redeclarations if we are being included by <winsock2.h>.
906         Reported by Matthias Bolte.
907
908 2010-03-21  Bruno Haible  <bruno@clisp.org>
909
910         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
911         * lib/forkpty.c (forkpty): New replacement function, from glibc with
912         modifications.
913         * lib/pty.in.h (forkpty): Update declaration. Add comments.
914         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
915         provide the replacement.
916         * modules/forkpty (Depends-on): Add openpty, login_tty.
917         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
918         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
919         * doc/glibc-functions/forkpty.texi: More supported platforms.
920         * config/srclist.txt: Add forkpty.c (commented).
921
922 2010-03-21  Bruno Haible  <bruno@clisp.org>
923
924         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
925         (Makefile.am): Verify that PTY_LIB is defined.
926
927         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
928
929 2010-03-21  Bruno Haible  <bruno@clisp.org>
930
931         Tests for module 'login_tty'.
932         * modules/login_tty-tests: New file.
933         * tests/test-login_tty.c: New file.
934
935         New module 'login_tty'.
936         * lib/login_tty.c: New file.
937         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
938         * modules/login_tty: New file.
939         * doc/glibc-functions/login_tty.texi: Mention the new module.
940
941 2010-03-21  Bruno Haible  <bruno@clisp.org>
942
943         login_tty: Documentation.
944         * doc/glibc-functions/login_tty.texi: New file.
945         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
946
947 2010-03-21  Bruno Haible  <bruno@clisp.org>
948
949         pty: Consistent macro naming.
950         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
951         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
952         * modules/pty (configure.ac): Update.
953
954 2010-03-21  Bruno Haible  <bruno@clisp.org>
955
956         Tests for openpty: Make stricter.
957         * tests/test-openpty.c (main): Add test of canonical processing and
958         erase.
959         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
960
961         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
962         * lib/openpty.c (openpty): New replacement function.
963         * lib/pty.in.h: Include <termios.h>.
964         (openpty): Update declaration. Add comments.
965         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
966         is not declared, arrange to provide the replacement. Check for _getpty
967         and posix_openpt.
968         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
969         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
970         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
971         * modules/pty-tests (test_pty_c___LDADD): New variable.
972         * doc/glibc-functions/openpty.texi: More supported platforms.
973
974 2010-03-21  Bruno Haible  <bruno@clisp.org>
975
976         setenv: Tweaks.
977         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
978         the test program.
979         * doc/posix-functions/setenv.texi: Update platforms list.
980
981 2010-03-21  Bruno Haible  <bruno@clisp.org>
982
983         New module 'unlockpt'.
984         * lib/unlockpt.c: New file, from glibc with modifications.
985         * m4/unlockpt.m4: New file.
986         * modules/unlockpt: New file.
987         * lib/stdlib.in.h (unlockpt): New declaration.
988         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
989         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
990         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
991         HAVE_UNLOCKPT.
992         * doc/posix-functions/unlockpt.texi: Mention the new module.
993         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
994         * config/srclist.txt: Add unlockpt.c (commented).
995
996 2010-03-21  Jim Meyering  <meyering@redhat.com>
997
998         maint.mk: prohibit inclusion of "intprops.h" without use
999         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1000
1001 2010-03-21  Bruno Haible  <bruno@clisp.org>
1002
1003         New module 'grantpt'.
1004         * lib/grantpt.c: New file, from glibc with modifications.
1005         * m4/grantpt.m4: New file.
1006         * modules/grantpt: New file.
1007         * lib/stdlib.in.h (grantpt): New declaration.
1008         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1009         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1010         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1011         HAVE_GRANTPT.
1012         * doc/posix-functions/grantpt.texi: Mention the new module.
1013         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1014         * config/srclist.txt: Add grantpt.c (commented).
1015
1016 2010-03-21  Bruno Haible  <bruno@clisp.org>
1017
1018         New module 'pt_chown'.
1019         * lib/pt_chown.c: New file, from glibc with modifications.
1020         * lib/pty-private.h: New file, from glibc with modifications.
1021         * modules/pt_chown: New file.
1022         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1023
1024 2010-03-21  Bruno Haible  <bruno@clisp.org>
1025
1026         Tests for module 'ptsname'.
1027         * modules/ptsname-tests: New file.
1028         * tests/test-ptsname.c: New file.
1029
1030         New module 'ptsname'.
1031         * lib/ptsname.c: New file, from glibc with modifications.
1032         * m4/ptsname.m4: New file.
1033         * modules/ptsname: New file.
1034         * lib/stdlib.in.h (ptsname): New declaration.
1035         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1036         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1037         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1038         HAVE_PTSNAME.
1039         * doc/posix-functions/ptsname.texi: Mention the new module.
1040         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1041         * config/srclist.txt: Add ptsname.c (commented).
1042
1043 2010-03-21  Bruno Haible  <bruno@clisp.org>
1044
1045         Tests for module 'ttyname_r'.
1046         * modules/ttyname_r-tests: New file.
1047         * tests/test-ttyname_r.c: New file.
1048
1049         New module 'ttyname_r'.
1050         * lib/ttyname_r.c: New file.
1051         * m4/ttyname_r.m4: New file.
1052         * modules/ttyname_r: New file.
1053         * lib/unistd.in.h (ttyname_r): New declaration.
1054         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1055         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1056         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1057         HAVE_TTYNAME_R.
1058         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1059         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1060
1061 2010-03-20  Bruno Haible  <bruno@clisp.org>
1062
1063         signal: Undefine macro definitions in C++ mode.
1064         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1065         sigfillset): Undefine macro definitions from the system header in C++
1066         mode.
1067         Reported by John W. Eaton <jwe@gnu.org>.
1068
1069 2010-03-20  Bruno Haible  <bruno@clisp.org>
1070
1071         Ensure no #include statements inside extern "C" { ... }.
1072         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1073         contain #include statements.
1074         * lib/time.in.h: Likewise.
1075
1076 2010-03-20  Bruno Haible  <bruno@clisp.org>
1077
1078         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1079         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1080         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1081         Reported by John W. Eaton <jwe@gnu.org>.
1082
1083 2010-03-20  Bruno Haible  <bruno@clisp.org>
1084
1085         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1086         Reported by Jim Meyering.
1087
1088 2010-03-20  Bruno Haible  <bruno@clisp.org>
1089
1090         pipe: Set errno upon failure.
1091         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1092         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1093         errno value in error message.
1094
1095 2010-03-20  Bruno Haible  <bruno@clisp.org>
1096             Jim Meyering  <meyering@redhat.com>
1097
1098         lchown: Avoid "unused variable" warning.
1099         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1100
1101 2010-03-20  Bruno Haible  <bruno@clisp.org>
1102
1103         Work around unlink() bug on MacOS X 10.5.6.
1104         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1105         attempting to unlink a parent directory.
1106         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1107         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1108         activate for the replacement function.
1109         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1110
1111 2010-03-20  Bruno Haible  <bruno@clisp.org>
1112
1113         Fix link errors on Solaris 8.
1114         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1115         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1116
1117 2010-03-19  Jim Meyering  <meyering@redhat.com>
1118
1119         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1120         The _LIBC implementation of build_range_exp correctly honors the
1121         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1122         However, the non-_LIBC implementation would ignore that syntax-bit
1123         flag and return REG_ERANGE unconditionally.
1124         This change makes it honor that flag.
1125         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1126         Make two pointer parameters "const".
1127         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1128         (parse_bracket_exp): Update caller.
1129
1130         regex.m4: correct the reversed range endpoint ([b-a]) test
1131         * m4/regex.m4: When requiring that [b-a] evoke failure,
1132         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1133         test pass once again for x86-based systems.
1134
1135 2010-03-19  Bruno Haible  <bruno@clisp.org>
1136
1137         scandir: Fix link error on Solaris 8.
1138         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1139         macros.
1140
1141 2010-03-19  Bruno Haible  <bruno@clisp.org>
1142
1143         getusershell: Fix documentation.
1144         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1145         module.
1146         * doc/glibc-functions/setusershell.texi: Likewise.
1147
1148         getusershell: Provide declaration, missing on Solaris 9.
1149         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1150         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1151         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1152         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1154         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1155         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1156         HAVE_GETUSERSHELL.
1157         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1158
1159 2010-03-19  Bruno Haible  <bruno@clisp.org>
1160
1161         wctype: Provide iswblank function.
1162         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1163         exists and is fine.
1164         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1165         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1166         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1167         * doc/posix-functions/iswblank.texi: Update.
1168
1169 2010-03-19  Bruno Haible  <bruno@clisp.org>
1170
1171         Tests of module 'pty' in C++ mode.
1172         * modules/pty-tests: New file.
1173         * tests/test-pty-c++.cc: New file.
1174         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1175
1176 2010-03-19  Eric Blake  <eblake@redhat.com>
1177
1178         logb: fix documentation
1179         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1180         1.5 declaration bug.
1181
1182         forkpty, openpty: prefer glibc's const-safe prototype
1183         * lib/forkpty.c (rpl_forkpty): New file.
1184         * lib/openpty.c (rpl_openpty): Likewise.
1185         * modules/forkpty (Files): Distribute it.
1186         * modules/openpty (Files): Likewise.
1187         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1188         check...
1189         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1190         replacement for for non-const BSD signature.
1191         * modules/pty (Makefile.am): Substitute witnesses.
1192         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1193         * tests/test-forkpty.c: Update signature check.
1194         * tests/test-openpty.c: Likewise.
1195         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1196         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1197
1198         forkpty, openpty: split functions into new modules
1199         * modules/pty (Makefile.am): Substitute new witnesses.
1200         (Libraries): Move library detection...
1201         * modules/forkpty: ...into new module.
1202         * modules/openpty: Another new module.
1203         * modules/pty-tests: Rename and split...
1204         * modules/forkpty-tests: ...to this...
1205         * modules/openpty-tests: ...and this.
1206         * tests/test-pty.c: Rename and split...
1207         * tests/test-forkpty.c: ...to this...
1208         * tests/test-openpty.c: ...and this.
1209         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1210         (gl_PTY): Split library searching...
1211         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1212         (gl_FORKPTY, gl_OPENPTY): New macros.
1213         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1214         * NEWS: Mention the split.
1215         * MODULES.html.sh (Misc): Document the modules.
1216         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1217         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1218
1219         pty: improve replacement header
1220         * lib/pty.in.h: New file.
1221         * modules/pty (Files): Ship it.
1222         (Makefile.am): Always build replacement.
1223         * m4/pty.m4: Rename...
1224         * m4/pty_h.m4: ...to this.
1225         (gl_PTY): Modernize setting of witness macros; update check of
1226         forkpty to take proper advantage of cache.
1227         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1228
1229         getopt: avoid compiler warning
1230         * lib/getopt.c (attribute_hidden): Remove unused macro.
1231
1232 2010-03-18  Bruno Haible  <bruno@clisp.org>
1233
1234         Fix link errors on Solaris 8.
1235         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1236         * modules/search-tests (test_search_c___LDADD): Likewise.
1237         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1238         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1239         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1240         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1241         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1242         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1243         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1244
1245 2010-03-18  Bruno Haible  <bruno@clisp.org>
1246
1247         Fix bug introduced on 2010-03-14.
1248         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1249         (gl_SPAWN_H): Require it.
1250         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1251         Reported by Simon Josefsson.
1252
1253 2010-03-18  Bruno Haible  <bruno@clisp.org>
1254
1255         Fix typo introduced on 2009-12-31.
1256         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1257         posix_spawn_file_actions_adddup2.
1258
1259 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1260         and Eric Blake  <eblake@redhat.com>
1261
1262         test-vc-list-files-git: make more robust
1263         * tests/test-vc-list-files-git.sh: Unset problematic environment
1264         variables.  Chain commands together.
1265
1266 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1267
1268         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1269         `AC_CHECK_DECL' invocation.
1270
1271 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1272
1273         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1274         appears before executable statements. Suggested by Petr Sumbera
1275         <Petr.Sumbera@Sun.COM>.
1276
1277 2010-03-14  Bruno Haible  <bruno@clisp.org>
1278
1279         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1280         portability problems. Instead use a simpler test.
1281         (main): Check that invalid arguments are rejected only on Linux.
1282
1283 2010-03-14  Bruno Haible  <bruno@clisp.org>
1284
1285         Fix bug introduced on 2009-12-31.
1286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1287         gl_PREREQ_SYS_H_WINSOCK2 always.
1288         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1289         SYS_SOCKET_H variable.
1290         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1291         Update comments.
1292         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1293         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1294         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1295         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1296         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1297
1298 2010-03-14  Bruno Haible  <bruno@clisp.org>
1299
1300         Fix values returned by sinl, cosl.
1301         * lib/trigl.h: Add specification comments.
1302         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1303         that combines the values from the precomputed table with the values of
1304         the Chebyshev polynomials.
1305
1306 2010-03-14  Bruno Haible  <bruno@clisp.org>
1307
1308         Fix compilation error when modules 'posix_spawn[p]' are not used.
1309         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1310         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1311
1312 2010-03-14  Bruno Haible  <bruno@clisp.org>
1313
1314         Fix compilation error on mingw when module 'time_r' is not used.
1315         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1316         is 1.
1317         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1318         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1319         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1320         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1321
1322 2010-03-14  Bruno Haible  <bruno@clisp.org>
1323
1324         Fix compilation error with Sun C.
1325         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1326         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1327         instead of GCC specific ULONG_LONG_MAX.
1328         * lib/xstrtoll.c: Likewise.
1329         * lib/xstrtoull.c: Likewise.
1330
1331 2010-03-13  Bruno Haible  <bruno@clisp.org>
1332
1333         Allow the user to disable C++ code and tests.
1334         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1335         (gl_PROG_ANSI_CXX): Require it.
1336
1337 2010-03-13  Bruno Haible  <bruno@clisp.org>
1338
1339         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1340         cases.
1341
1342 2010-03-13  Bruno Haible  <bruno@clisp.org>
1343
1344         Test that gnulib does not break the standard C++ headers.
1345         * tests/test-locale-c++2.cc: New file.
1346         * modules/locale-tests (Files): Add it.
1347         (Makefile.am): Compile it for test-locale-c++.
1348         * tests/test-math-c++2.cc: New file.
1349         * modules/math-tests (Files): Add it.
1350         (Makefile.am): Compile it for test-math-c++.
1351         * tests/test-signal-c++2.cc: New file.
1352         * modules/signal-tests (Files): Add it.
1353         (Makefile.am): Compile it for test-signal-c++.
1354         * tests/test-stdio-c++2.cc: New file.
1355         * modules/stdio-tests (Files): Add it.
1356         (Makefile.am): Compile it for test-stdio-c++.
1357         * tests/test-stdlib-c++2.cc: New file.
1358         * modules/stdlib-tests (Files): Add it.
1359         (Makefile.am): Compile it for test-stdlib-c++.
1360         * tests/test-string-c++2.cc: New file.
1361         * modules/string-tests (Files): Add it.
1362         (Makefile.am): Compile it for test-string-c++.
1363         * tests/test-time-c++2.cc: New file.
1364         * modules/time-tests (Files): Add it.
1365         (Makefile.am): Compile it for test-time-c++.
1366         Reported by John W. Eaton <jwe@gnu.org>.
1367
1368 2010-03-13  Bruno Haible  <bruno@clisp.org>
1369
1370         * gnulib-tool (func_usage): Clarify which options are available for
1371         --create-testdir and --create-megatestdir.
1372
1373 2010-03-13  Bruno Haible  <bruno@clisp.org>
1374
1375         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1376         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1377         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1378         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1379         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1380         when appropriate.
1381         Reported by Jim Meyering.
1382
1383 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1384
1385         * gnulib-tool (func_import): Explain origin of code.
1386
1387 2010-03-12  Bruno Haible  <bruno@clisp.org>
1388
1389         Fix problem with automake's definition of CXXLINK.
1390         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1391         Reported by Simon Josefsson and Ludovic Courtès.
1392
1393 2010-03-12  Bruno Haible  <bruno@clisp.org>
1394
1395         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1396         stable releases.
1397
1398 2010-03-11  Bruno Haible  <bruno@clisp.org>
1399
1400         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1401         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1402         whether the system provides one variant or multiple variants of the
1403         function.
1404         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1405         C++ compilers.
1406         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1407         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1408         Reported by Jim Meyering.
1409
1410 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1411
1412         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1413
1414 2010-03-08  Bruno Haible  <bruno@clisp.org>
1415
1416         gnulib-tool: Add support for --libtool in --create-testdir.
1417         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1418         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1419
1420 2010-03-08  Eric Blake  <eblake@redhat.com>
1421
1422         gnulib-tool.texi: mention possibility of git submodule
1423         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1424         submodules.
1425         * doc/.gitignore: Ignore another generated file.
1426
1427 2010-03-08  Karl Berry  <karl@gnu.org>
1428
1429         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1430         of committing gnulib files while skipping others.
1431
1432 2010-03-07  Bruno Haible  <bruno@clisp.org>
1433
1434         Tests of module 'wctype' in C++ mode.
1435         * tests/test-wctype-c++.cc: New file.
1436         * modules/wctype-tests (Files): Add it and tests/signature.h.
1437         (Depends-on): Add ansi-c++-opt.
1438         (Makefile.am): Arrange to compile and run test-wctype-c++.
1439
1440         Tests of module 'wchar' in C++ mode.
1441         * tests/test-wchar-c++.cc: New file.
1442         * modules/wchar-tests (Files): Add it and tests/signature.h.
1443         (Depends-on): Add ansi-c++-opt.
1444         (Makefile.am): Arrange to compile and run test-wchar-c++.
1445         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1446         gl_MODULE_INDICATOR.
1447
1448         Tests of module 'unistd' in C++ mode.
1449         * tests/test-unistd-c++.cc: New file.
1450         * modules/unistd-tests (Files): Add it and tests/signature.h.
1451         (Depends-on): Add ansi-c++-opt.
1452         (Makefile.am): Arrange to compile and run test-unistd-c++.
1453         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1454         gl_MODULE_INDICATOR.
1455
1456         Tests of module 'time' in C++ mode.
1457         * tests/test-time-c++.cc: New file.
1458         * modules/time-tests (Files): Add it and tests/signature.h.
1459         (Depends-on): Add ansi-c++-opt.
1460         (Makefile.am): Arrange to compile and run test-time-c++.
1461         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1462
1463         Tests of module 'sys_time' in C++ mode.
1464         * tests/test-sys_time-c++.cc: New file.
1465         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1466         (Depends-on): Add ansi-c++-opt.
1467         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1468         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1469         gl_MODULE_INDICATOR.
1470
1471         Tests of module 'sys_stat' in C++ mode.
1472         * tests/test-sys_stat-c++.cc: New file.
1473         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1474         (Depends-on): Add ansi-c++-opt.
1475         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1476         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1477         gl_MODULE_INDICATOR.
1478
1479         Tests of module 'sys_socket' in C++ mode.
1480         * tests/test-sys_socket-c++.cc: New file.
1481         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1482         (Depends-on): Add ansi-c++-opt.
1483         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1485         gl_MODULE_INDICATOR.
1486
1487         Tests of module 'sys_select' in C++ mode.
1488         * tests/test-sys_select-c++.cc: New file.
1489         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1490         (Depends-on): Add ansi-c++-opt.
1491         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1492         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1493         gl_MODULE_INDICATOR.
1494
1495         Tests of module 'sys_ioctl' in C++ mode.
1496         * tests/test-sys_ioctl-c++.cc: New file.
1497         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1498         (Depends-on): Add ansi-c++-opt.
1499         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1500         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1501         gl_MODULE_INDICATOR.
1502
1503         Tests of module 'string' in C++ mode.
1504         * tests/test-string-c++.cc: New file.
1505         * modules/string-tests (Files): Add it and tests/signature.h.
1506         (Depends-on): Add ansi-c++-opt.
1507         (Makefile.am): Arrange to compile and run test-string-c++.
1508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1509         gl_MODULE_INDICATOR.
1510
1511         Tests of module 'stdlib' in C++ mode.
1512         * tests/test-stdlib-c++.cc: New file.
1513         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1514         (Depends-on): Add ansi-c++-opt.
1515         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1516         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1517         gl_MODULE_INDICATOR.
1518
1519         Tests of module 'stdio' in C++ mode.
1520         * tests/test-stdio-c++.cc: New file.
1521         * modules/stdio-tests (Files): Add it and tests/signature.h.
1522         (Depends-on): Add ansi-c++-opt.
1523         (Makefile.am): Arrange to compile and run test-stdio-c++.
1524         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1525         gl_MODULE_INDICATOR.
1526
1527         Tests of module 'spawn' in C++ mode.
1528         * tests/test-spawn-c++.cc: New file.
1529         * modules/spawn-tests (Files): Add it and tests/signature.h.
1530         (Depends-on): Add ansi-c++-opt.
1531         (Makefile.am): Arrange to compile and run test-spawn-c++.
1532         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1533         gl_MODULE_INDICATOR.
1534
1535         Tests of module 'signal' in C++ mode.
1536         * tests/test-signal-c++.cc: New file.
1537         * modules/signal-tests (Files): Add it and tests/signature.h.
1538         (Depends-on): Add ansi-c++-opt.
1539         (Makefile.am): Arrange to compile and run test-signal-c++.
1540         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1541         gl_MODULE_INDICATOR.
1542
1543         Tests of module 'search' in C++ mode.
1544         * tests/test-search-c++.cc: New file.
1545         * modules/search-tests (Files): Add it and tests/signature.h.
1546         (Depends-on): Add ansi-c++-opt.
1547         (Makefile.am): Arrange to compile and run test-search-c++.
1548         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1549         gl_MODULE_INDICATOR.
1550
1551         Tests of module 'math' in C++ mode.
1552         * tests/test-math-c++.cc: New file.
1553         * modules/math-tests (Files): Add it and tests/signature.h.
1554         (Depends-on): Add ansi-c++-opt.
1555         (Makefile.am): Arrange to compile and run test-math-c++.
1556         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1557
1558         Tests of module 'locale' in C++ mode.
1559         * tests/test-locale-c++.cc: New file.
1560         * modules/locale-tests (Files): Add it and tests/signature.h.
1561         (Depends-on): Add ansi-c++-opt.
1562         (Makefile.am): Arrange to compile and run test-locale-c++.
1563         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1564         gl_MODULE_INDICATOR.
1565
1566         Tests of module 'langinfo' in C++ mode.
1567         * tests/test-langinfo-c++.cc: New file.
1568         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1569         (Depends-on): Add ansi-c++-opt.
1570         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1571         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1572         gl_MODULE_INDICATOR.
1573
1574         Tests of module 'iconv-h' in C++ mode.
1575         * tests/test-iconv-h-c++.cc: New file.
1576         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1577         (Depends-on): Add ansi-c++-opt.
1578         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1579
1580         Tests of module 'glob' in C++ mode.
1581         * tests/test-glob-c++.cc: New file.
1582         * modules/glob-tests (Files): Add it.
1583         (Depends-on): Add ansi-c++-opt.
1584         (Makefile.am): Arrange to compile and run test-glob-c++.
1585
1586         Tests of module 'fcntl-h' in C++ mode.
1587         * tests/test-fcntl-h-c++.cc: New file.
1588         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1589         (Depends-on): Add ansi-c++-opt.
1590         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1591         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1592         gl_MODULE_INDICATOR.
1593
1594         Tests of module 'dirent' in C++ mode.
1595         * tests/test-dirent-c++.cc: New file.
1596         * modules/dirent-tests (Files): Add it and tests/signature.h.
1597         (Depends-on): Add ansi-c++-opt.
1598         (Makefile.am): Arrange to compile and run test-dirent-c++.
1599         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1600         gl_MODULE_INDICATOR.
1601
1602         New module 'ansi-c++-opt'.
1603         * modules/ansi-c++-opt: New file.
1604         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1605
1606         Document C++ namespace mode.
1607         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1608
1609         wctype: Avoid #define replacements in C++ mode.
1610         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1611         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1612         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1613         In C++, define a namespaced alias symbol.
1614         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1615         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1616         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1617         rule.
1618
1619         wchar: Avoid #define replacements in C++ mode.
1620         * lib/wchar.in.h: Include c++defs.h.
1621         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
1622         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
1623         symbol.
1624         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
1625         * modules/wchar (Depends-on): Add c++defs.
1626         (Makefile.am): Update wchar.h rule.
1627
1628         unistd: Avoid #define replacements in C++ mode.
1629         * lib/unistd.in.h: Include c++defs.h.
1630         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
1631         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
1632         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
1633         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
1634         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
1635         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
1636         symbol.
1637         (environ): Update.
1638         * modules/unistd (Depends-on): Add c++defs.
1639         (Makefile.am): Update unistd.h rule.
1640
1641         time: Avoid #define replacements in C++ mode.
1642         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
1643         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
1644         define a namespaced alias symbol.
1645         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
1646         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
1647         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
1648         * modules/time (Depends-on): Add c++defs, warn-on-use.
1649         (Makefile.am): Update time.h rule.
1650         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1651         * modules/nanosleep (configure.ac): Likewise.
1652         * modules/strptime (configure.ac): Likewise.
1653         * modules/timegm (configure.ac): Likewise.
1654
1655         sys_time: Avoid #define replacements in C++ mode.
1656         * lib/sys_time.in.h: Include c++defs.h.
1657         (gettimeofday): In C++, define a namespaced alias symbol.
1658         * modules/sys_time (Depends-on): Add c++defs.
1659         (Makefile.am): Update sys/time.h rule.
1660
1661         sys_stat: Avoid #define replacements in C++ mode.
1662         * lib/sys_stat.in.h: Include c++defs.h.
1663         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
1664         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
1665         namespaced alias symbol.
1666         In C++, define a namespaced alias symbol.
1667         * modules/sys_stat (Depends-on): Add c++defs.
1668         (Makefile.am): Update sys/stat.h rule.
1669
1670         sys_socket: Avoid #define replacements in C++ mode.
1671         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
1672         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
1673         definitions also when the system has a <sys/socket.h>.
1674         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1675         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
1676         In C++, define a namespaced alias symbol.
1677         * modules/sys_socket (Depends-on): Add c++defs.
1678         (Makefile.am): Update sys/socket.h rule.
1679
1680         sys_select: Avoid #define replacements in C++ mode.
1681         * lib/sys_select.in.h: Include c++defs.h. Enable the function
1682         definitions also when the system has a <sys/select.h>.
1683         (select): In C++, define a namespaced alias symbol.
1684         * modules/sys_select (Depends-on): Add c++defs.
1685         (Makefile.am): Update sys/select.h rule.
1686
1687         sys_ioctl: Avoid #define replacements in C++ mode.
1688         * lib/sys_ioctl.in.h: Include c++defs.h.
1689         (ioctl): In C++, define a namespaced alias symbol.
1690         * modules/sys_ioctl (Depends-on): Add c++defs.
1691         (Makefile.am): Update sys/ioctl.h rule.
1692
1693         string: Avoid #define replacements in C++ mode.
1694         * lib/string.in.h: Include c++defs.h.
1695         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
1696         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1697         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1698         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
1699         strsignal, strverscmp): In C++, define a namespaced alias symbol.
1700         * modules/string (Depends-on): Add c++defs.
1701         (Makefile.am): Update string.h rule.
1702
1703         stdlib: Avoid #define replacements in C++ mode.
1704         * lib/stdlib.in.h: Include c++defs.h.
1705         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
1706         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
1707         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
1708         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
1709         symbol.
1710         * modules/stdlib (Depends-on): Add c++defs.
1711         (Makefile.am): Update stdlib.h rule.
1712
1713         stdio: Avoid #define replacements in C++ mode.
1714         * lib/stdio.in.h: Include c++defs.h.
1715         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
1716         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
1717         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
1718         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
1719         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
1720         namespaced alias symbol.
1721         * modules/stdio (Depends-on): Add c++defs.
1722         (Makefile.am): Update stdio.h rule.
1723
1724         spawn: Avoid #define replacements in C++ mode.
1725         * lib/spawn.in.h: Include c++defs.h.
1726         (posix_spawn, posix_spawnp, posix_spawnattr_init,
1727         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1728         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1729         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1730         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1731         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1732         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1733         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1734         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1735         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1736         In C++, define a namespaced alias symbol.
1737         * modules/spawn (Depends-on): Add c++defs.
1738         (Makefile.am): Update spawn.h rule.
1739
1740         signal: Avoid #define replacements in C++ mode.
1741         * lib/signal.in.h: Include c++defs.h.
1742         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1743         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
1744         namespaced alias symbol.
1745         * modules/signal (Depends-on): Add c++defs.
1746         (Makefile.am): Update signal.h rule.
1747
1748         search: Avoid #define replacements in C++ mode.
1749         * lib/search.in.h: Include c++defs.h.
1750         (_gl_search_compar_fn, _gl_search_action_fn): New types.
1751         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
1752         symbol.
1753         * modules/search (Depends-on): Add c++defs.
1754         (Makefile.am): Update search.h rule.
1755
1756         math: Avoid #define replacements in C++ mode.
1757         * lib/math.in.h: Include c++defs.h.
1758         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
1759         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
1760         trunc, truncl): In C++, define a namespaced alias symbol.
1761         * modules/math (Depends-on): Add c++defs.
1762         (Makefile.am): Update math.h rule.
1763
1764         locale: Avoid #define replacements in C++ mode.
1765         * lib/locale.in.h: Include c++defs.h.
1766         (duplocale): In C++, define a namespaced alias symbol.
1767         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
1768         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
1769         * modules/locale (Depends-on): Add c++defs.
1770         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
1771
1772         langinfo: Avoid #define replacements in C++ mode.
1773         * lib/langinfo.in.h: Include c++defs.h.
1774         (nl_langinfo): In C++, define a namespaced alias symbol.
1775         * modules/langinfo (Depends-on): Add c++defs.
1776         (Makefile.am): Update langinfo.h rule.
1777
1778         iconv-h: Avoid #define replacements in C++ mode.
1779         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
1780         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
1781         symbol.
1782         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
1783         whenever iconv is present.
1784         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
1785         (Makefile.am): Update iconv.h rule.
1786
1787         glob: Avoid #define replacements in C++ mode.
1788         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
1789         (_gl_glob_errfunc_fn): New type.
1790         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
1791         symbol.
1792         * modules/glob (Depends-on): Add c++defs, warn-on-use.
1793         (Makefile.am): Update glob.h rule.
1794
1795         fcntl-h: Avoid #define replacements in C++ mode.
1796         * lib/fcntl.in.h: Include c++defs.h.
1797         (fcntl, open, openat): In C++, define a namespaced alias symbol.
1798         * modules/fcntl-h (Depends-on): Add c++defs.
1799         (Makefile.am): Update fcntl.h rule.
1800
1801         dirent: Avoid #define replacements in C++ mode.
1802         * lib/dirent.in.h: Include c++defs.h.
1803         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
1804         namespaced alias symbol.
1805         (dirfd): Update declaration.
1806         * modules/dirent (Depends-on): Add c++defs.
1807         (Makefile.am): Update dirent.h rule.
1808
1809         ctype: Make it usable in C++ code.
1810         * lib/ctype.in.h: Include c++defs.h.
1811         (isblank): Declare as extern "C".
1812         * modules/ctype (Depends-on): Add c++defs.
1813         (Makefile.am): Update ctype.h rule.
1814
1815         New module 'c++defs'.
1816         * modules/c++defs: New file.
1817         * build-aux/c++defs.h: New file.
1818         Reported by John W. Eaton <jwe@gnu.org>.
1819
1820 2010-03-07  Bruno Haible  <bruno@clisp.org>
1821
1822         logb: Provide missing declaration for Cygwin.
1823         * lib/math.in.h (logb): New declaration.
1824         * m4/logb.m4: New file.
1825         * modules/logb (Files): Add m4/logb.m4.
1826         (Depends-on): Add math.
1827         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
1828         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
1829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
1830         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
1831         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
1832
1833 2010-03-07  Bruno Haible  <bruno@clisp.org>
1834
1835         Fix test-cond link error.
1836         * tests/test-cond.c: Include <stdio.h>.
1837
1838 2010-03-07  Bruno Haible  <bruno@clisp.org>
1839
1840         Fix test-dirent-safer link error.
1841         * modules/dirent-safer-tests (Makefile.am): Define
1842         test_dirent_safer_LDADD.
1843
1844 2010-03-07  Bruno Haible  <bruno@clisp.org>
1845
1846         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
1847         among default module list.
1848
1849 2010-03-07  Bruno Haible  <bruno@clisp.org>
1850
1851         Fix link error on platforms with GNU libiconv.
1852         * modules/unistr/u8-strcoll-tests (Makefile): Define
1853         test_u8_strcoll_LDADD.
1854         * modules/unistr/u16-strcoll-tests (Makefile): Define
1855         test_u16_strcoll_LDADD.
1856         * modules/unistr/u32-strcoll-tests (Makefile): Define
1857         test_u32_strcoll_LDADD.
1858
1859 2010-03-07  Bruno Haible  <bruno@clisp.org>
1860
1861         Use POSIX declarations for socket functions.
1862         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
1863         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
1864         rpl_sendto): Change declaration to match POSIX.
1865         * lib/connect.c (rpl_connect): Likewise.
1866         * lib/accept.c (rpl_accept): Likewise.
1867         * lib/bind.c (rpl_bind): Likewise.
1868         * lib/getpeername.c (rpl_getpeername): Likewise.
1869         * lib/getsockname.c (rpl_getsockname): Likewise.
1870         * lib/recv.c (rpl_recv): Likewise.
1871         * lib/send.c (rpl_send): Likewise.
1872         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1873         * lib/sendto.c (rpl_sendto): Likewise.
1874
1875 2010-03-06  Bruno Haible  <bruno@clisp.org>
1876
1877         Clarify access, euidaccess, faccessat.
1878         * doc/posix-functions/faccessat.texi: Mention security problem under
1879         "Other problems", not "Portability problems".
1880         * doc/posix-functions/access.texi: Likewise. Mention a related security
1881         problem.
1882         * doc/glibc-functions/euidaccess.texi: Mention security problems.
1883         * lib/euidaccess.c: Add comments about platforms.
1884         * lib/unistd.in.h (access, euidaccess): Add warnings.
1885
1886 2010-03-07  Bruno Haible  <bruno@clisp.org>
1887
1888         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
1889         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
1890         (POSIX_SPAWN_SETSCHEDULER): Likewise.
1891         (POSIX_SPAWN_USEVFORK): Define in a way that works when
1892         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1893         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
1894         declare when POSIX_SPAWN_SETSCHEDULER is zero.
1895         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
1896         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
1897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
1898         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
1899         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
1900         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
1901         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
1902         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
1903         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
1904         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
1905         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
1906         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
1907         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
1908         Likewise.
1909         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
1910         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
1911         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
1912         Likewise.
1913         * tests/test-spawn.c (main): Make it work when
1914         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
1915
1916 2010-03-07  Bruno Haible  <bruno@clisp.org>
1917
1918         Fix incorrect Makefile.am generation in German locale.
1919         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1920         Execute sed command with character range in C locale.
1921
1922 2010-03-06  Bruno Haible  <bruno@clisp.org>
1923
1924         Tests for module 'iconv-h'.
1925         * modules/iconv-h-tests: New file.
1926         * tests/test-iconv-h.c: New file.
1927
1928         New module 'iconv-h'.
1929         * modules/iconv-h: New file.
1930         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
1931         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
1932         (configure.ac): Remove gl_ICONV_H.
1933         (Makefile.am): Remove rule for iconv.h.
1934
1935 2010-03-06  Bruno Haible  <bruno@clisp.org>
1936
1937         More consistent naming of *.m4 files.
1938         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
1939         * modules/wctype (Files): Update.
1940
1941         More consistent naming of *.m4 files.
1942         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
1943         * modules/wchar (Files): Update.
1944
1945 2010-03-06  Jim Meyering  <meyering@redhat.com>
1946
1947         euidaccess: relax license to LGPLv2+
1948         * modules/euidaccess (License): Relax to LGPLv2+.
1949
1950 2010-03-06  Bruno Haible  <bruno@clisp.org>
1951
1952         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
1953         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
1954         (Makefile.am): Augment lib_SOURCES instead.
1955
1956 2010-03-04  Jim Meyering  <meyering@redhat.com>
1957
1958         utime: remove obsolete module
1959         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
1960         unnecessary for years, and has been marked as obsolete for 10 months.
1961         * modules/utime: Remove file.
1962         * lib/utime.c: Remove file.
1963         * m4/utime.m4: Remove file.
1964         * m4/utimes-null.m4: Remove file.
1965         * doc/posix-functions/utime.texi (utime): Remove reference to
1966         the module.  Move the sole "fixed by gnulib" item into the
1967         "problems not fixed by Gnulib" list.
1968         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
1969
1970 2010-03-05  Simon Josefsson  <simon@josefsson.org>
1971
1972         * modules/exit (License): Relax license to LGPLv2+.
1973         (Status): Mark as obsolete.
1974         * NEWS: Mention deprecated 'exit' module.
1975         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
1976         of now obsolete 'exit'.
1977
1978 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1979
1980         fts-lgpl: remove unused module
1981         * modules/fts-lgpl: Remove.
1982         * MODULES.html.sh (func_all_modules): Adjust.
1983         * check-module (find_included_lib_files): Adjust.
1984         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
1985
1986 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
1987
1988         copy-acl: enhance Solaris ACL error handling
1989         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
1990         * lib/set-mode-acl.c (qset_acl): Likewise.
1991
1992 2010-03-02  Bruno Haible  <bruno@clisp.org>
1993
1994         spawn: Don't override the system defined values on FreeBSD 8.
1995         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
1996         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
1997         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
1998         if HAVE_POSIX_SPAWN is 1.
1999         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2000
2001 2010-03-01  Bruno Haible  <bruno@clisp.org>
2002
2003         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2004         regarding Automake.
2005
2006 2010-02-25  Bruno Haible  <bruno@clisp.org>
2007
2008         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2009         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2010         setting, not afterwards.
2011         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2012
2013 2010-02-24  Eric Blake  <eblake@redhat.com>
2014
2015         bootstrap, git-version-gen: use timestamp
2016         * build-aux/git-version-gen (scriptversion): Force UTC.
2017         * build-aux/bootstrap (scriptversion): New variable.
2018
2019         bootstrap: allow older git
2020         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2021         older than 1.6.4.  Requested by the libvirt project.
2022
2023 2010-02-23  Eric Blake  <eblake@redhat.com>
2024
2025         warn-on-use: work with old autoconf
2026         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2027         AS_VAR semantics of autoconf 2.60.
2028         Reported by Bruno Haible.
2029
2030         bootstrap: improve some comments
2031         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2032         clarification comments.
2033
2034         gettimeofday: provide correct function
2035         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2036         when replacement is declared, otherwise provide gettimeofday.
2037         Reported by Michael Goffioul.
2038
2039 2010-02-23  Jim Meyering  <meyering@redhat.com>
2040
2041         lib-ignore: relax license to "unlimited", not LGPLv2+
2042         * modules/lib-ignore (License): Relax to "unlimited".
2043
2044 2010-02-23  Jim Meyering  <meyering@redhat.com>
2045
2046         lib-ignore: relax license to LGPLv2+
2047         * modules/lib-ignore (License): Relax to LGPLv2+.
2048
2049 2010-02-22  Eric Blake  <eblake@redhat.com>
2050
2051         lseek: avoid bash 3.2 broken pipe bug
2052         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2053         warning from bash 3.2.
2054         Reported by Ben Pfaff, with analysis from Bruno Haible.
2055
2056         bootstrap: support non-FSF copyright holder
2057         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2058         bootstrap.conf override of COPYRIGHT_HOLDER.
2059         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2060
2061         bootstrap: interoperate with gettext 0.14.1
2062         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2063
2064         bootstrap: allow for alternate submodule location
2065         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2066         hardcoding submodule location.
2067         (gnulib_mk): Allow direct use of Makefile.am.
2068
2069         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2070         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2071         rather than reconfiguring where the submodule points.
2072
2073         gettimeofday: restore support for platforms that lack function
2074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2075         replacement if function is missing.
2076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2077         * modules/sys_time (Makefile.am): Substitute it.
2078         * lib/sys_time.in.h (gettimeofday): Check it.
2079         Reported by Michael Goffioul.
2080
2081 2010-02-21  Bruno Haible  <bruno@clisp.org>
2082
2083         * lib/stdio.in.h (obstack_printf): Fix typo.
2084
2085 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2086
2087         vc-list-files: use bzr ls's -R option
2088         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2089         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2090
2091 2010-02-21  Jim Meyering  <meyering@redhat.com>
2092
2093         init.sh: fix EXEEXT shims to work also for names like test-prog
2094         * tests/init.sh: Re-exec a better shell, when needed.
2095         If the current shell lacks support for posix $(...), an init.sh-using
2096         test will now try to find a shell that supports that.  If EXEEXT is
2097         nonempty, we also require support for hyphen-in-alias-name and shell
2098         substitutions like ${var#glob}.  Failure to find such a shell results
2099         in a skipped test.
2100
2101 2010-02-21  Bruno Haible  <bruno@clisp.org>
2102
2103         Really work around around "broken pipe" error message from bash 3.2.
2104         * gnulib-tool (func_reset_sigpipe): Remove function.
2105         (echo): In bash 3.2, define to a function that uses printf.
2106         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2107
2108 2010-02-20  Bruno Haible  <bruno@clisp.org>
2109
2110         Restore support for automake 1.9.6 with autoconf 2.61.
2111         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2112         Reported by James Youngman <jay@gnu.org>.
2113
2114 2010-02-20  Bruno Haible  <bruno@clisp.org>
2115
2116         Improve *printf warning condition.
2117         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2118         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2119         and the function is overridden due to SIGPIPE emulation.
2120
2121 2010-02-20  Bruno Haible  <bruno@clisp.org>
2122
2123         * lib/stdio.in.h: Tweak comments.
2124
2125 2010-02-19  Bruno Haible  <bruno@clisp.org>
2126
2127         Make it easier to find modules. New gnulib-tool option '--find'.
2128         * gnulib-tool: New option --find.
2129         (func_usage): Document it.
2130         (func_sanitize_modulelist): New function, extracted from
2131         func_all_modules.
2132         (func_all_modules): Invoke it.
2133         * doc/gnulib-tool.texi (Which modules?): New node.
2134
2135 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2136
2137         * lib/sys_select.in.h: Provide select replacement even if
2138         sys/select.h exists on a system, for Interix.
2139
2140 2010-02-18  Jim Meyering  <meyering@redhat.com>
2141
2142         init.sh: don't use $(...) just yet
2143         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2144         to accommodate e.g., Solaris' /bin/sh.
2145
2146 2010-02-17  Bruno Haible  <bruno@clisp.org>
2147
2148         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2149         Reported by Ludovic Courtès <ludo@gnu.org>.
2150
2151 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2152
2153         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2154         linking with -lintl.
2155
2156 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2157
2158         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2159         if not provided by the system's netdb.h.  Reported by
2160         ludo@gnu.org (Ludovic Courtès).
2161
2162 2010-02-15  Jim Meyering  <meyering@redhat.com>
2163
2164         init.sh: improve portability and efficiency
2165         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2166         "dummy" in a for loop.
2167         Use '!', not '^' to select the complement of a character set used
2168         in a "case" statement.
2169         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2170         Suggestions from Eric Blake.
2171
2172         init.sh: automatically accommodate programs with the .exe suffix
2173         Automatically arrange for an invocation of "prog" to execute the
2174         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2175         may use the simpler "prog", yet still work when built on a system
2176         that requires specifying the added suffix.
2177         Do this by constructing a function named "prog" that invokes
2178         "prog.exe" for each .exe file in selected directories.
2179         * tests/init.sh (find_exe_basenames_): New function.
2180         (create_exe_shim_functions_): New function.
2181         (path_prepend_): Use it.
2182
2183         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2184         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2185         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2186
2187 2010-02-14  Jim Meyering  <meyering@redhat.com>
2188
2189         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2190         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2191         (sc_prohibit_hash_pjw_without_use): New rule.
2192
2193         maint.mk: allow the default upload destination dir to be overridden
2194         * top/maint.mk (upload_dest_dir_): Define with a default that
2195         preserves the status quo.
2196         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2197         Reported by Peter Simons.
2198
2199         maint.mk: prohibit inclusion of "hash.h" without_use
2200         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2201
2202 2010-02-10  Jim Meyering  <meyering@redhat.com>
2203
2204         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2205         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2206
2207 2010-02-09  Eric Blake  <ebb9@byu.net>
2208         and Bruno Haible  <bruno@clisp.org>
2209
2210         obstack-printf-posix: ensure declaration
2211         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2212         extracted from gl_FUNC_OBSTACK_PRINTF.
2213         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2214         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2215         Likewise.
2216         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2217         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2218         0.
2219
2220 2010-02-08  Bruno Haible  <bruno@clisp.org>
2221
2222         gnulib-tool: Fix typo in 2010-02-07 commit.
2223         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2224         Reported by Eric Blake.
2225
2226 2010-02-07  Bruno Haible  <bruno@clisp.org>
2227
2228         gnulib-tool: Fix up caching patches.
2229         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2230         option --no-cache. Use associative arrays when supported by the shell.
2231         (sed_comments): New variable.
2232         (modcache): Renamed from do_cache.
2233         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2234         abbreviate unnecessarily.
2235         (have_associative): New variable.
2236         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2237         way also for ksh and zsh.
2238         (func_init_sed_convert_to_cache_statements): New function, extracted
2239         from func_cache_lookup_module. Add support for associative arrays.
2240         Don't set the c_MODULE_cached variable here. Ignore all lines before
2241         the first field header. Remove only the final newline, not all trailing
2242         newlines. Support empty fields correctly. Limit the use of 'eval' to
2243         assignments.
2244         (func_get_description, func_get_status, func_get_notice,
2245         func_get_applicability, func_get_filelist, func_get_dependencies,
2246         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2247         func_get_automake_snippet, func_get_include_directive,
2248         func_get_link_directive, func_get_license, func_get_maintainer):
2249         Update documentation. List the unoptimized code first. Add support for
2250         associative arrays. Limit the use of 'eval' to assignments.
2251         (func_get_applicability): Undo stylistic pessimisations.
2252         (func_get_automake_snippet, func_get_include_directive): Reduce code
2253         duplication.
2254         (func_modules_transitive_closure, func_modules_add_dummy,
2255         func_modules_notice, func_modules_to_filelist, func_add_file,
2256         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2257         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2258         func_create_testdir, func_create_megatestdir): Update documentation.
2259
2260 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2261
2262         * gnulib-tool (func_cache_lookup_module): Store the module name
2263         belonging to the cache variable; error out if two different
2264         module names map to the same cache variable name.
2265
2266 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2267
2268         gnulib-tool: Make caching optional.
2269         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2270         Update matching short versions of --no-changelog.
2271         (func_usage): Update.
2272         (sed_extract_cache_prog): Renamed from ...
2273         (sed_extract_prog): ... this; revert to old extraction script.
2274         (func_get_description, func_get_status)
2275         (func_get_notice, func_get_applicability, func_get_filelist)
2276         (func_get_dependencies, func_get_autoconf_early_snippet)
2277         (func_get_autoconf_snippet, func_get_automake_snippet)
2278         (func_get_include_directive, func_get_link_directive)
2279         (func_get_license, func_get_maintainer): If $do_cache is false,
2280         use old, non-caching extraction scripts.
2281         Suggestion by Bruno Haible.
2282
2283 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2284
2285         gnulib-tool: cache module metainformation.
2286         * gnulib-tool (sed_extract_prog): Match newline before each
2287         header, and rewrite header to a shell variable suffix.
2288         (func_cache_var, func_cache_lookup_module): New functions,
2289         to turn a module name into a cache variable prefix, and to
2290         look up and cache module metainformation.
2291         (func_get_description, func_get_status)
2292         (func_get_notice, func_get_applicability, func_get_filelist)
2293         (func_get_dependencies, func_get_autoconf_early_snippet)
2294         (func_get_autoconf_snippet, func_get_automake_snippet)
2295         (func_get_include_directive, func_get_link_directive)
2296         (func_get_license, func_get_maintainer): Use
2297         func_cache_lookup_module.
2298
2299 2010-02-07  Bruno Haible  <bruno@clisp.org>
2300
2301         fnctl: Fix missing dependency.
2302         * modules/fcntl (Depends-on): Add getdtablesize.
2303         Reported by John W. Eaton <jwe@gnu.org>.
2304
2305 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2306
2307         Argp: fix recognition of short alias options.
2308
2309         * lib/argp-parse.c (convert_options): Fix improper use of
2310         `|' between character values.
2311         * tests/test-argp.c (group1_option): New alias option
2312         --read (-r).
2313         (group1_parser): Special handling for 'r'.
2314         (test15): New test case.
2315         (test_fun): Add test15.
2316         * tests/test-argp-2.sh: Update expected --help and --usage
2317         outputs.
2318
2319 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2320
2321         * tests/test-argp.c: Fix indentation.
2322
2323 2010-02-04  Eric Blake  <ebb9@byu.net>
2324
2325         gettimeofday: expose type of second argument
2326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2327         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2328         * tests/test-gettimeofday.c: Use it to silence warning.
2329         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2330         the issue.
2331
2332 2010-02-03  Jim Meyering  <meyering@redhat.com>
2333
2334         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2335         * lib/regcomp.c (TYPE_SIGNED): Define.
2336         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2337
2338         regcomp.c: avoid a new -Wshadow warning
2339         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2340
2341 2010-02-01  Jim Meyering  <meyering@redhat.com>
2342
2343         removing useless parentheses in cpp #define directives
2344         For motivation, see commit c0221df4, "define STREQ(a,b)
2345         consistently, removing useless parentheses"
2346         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2347         * lib/mountlist.c (MNT_IGNORE): Likewise.
2348         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2349
2350 2010-02-01  Eric Blake  <ebb9@byu.net>
2351
2352         sys_time: use link-warning
2353         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2354         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2355         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2356         * modules/sys_time (Depends-on): Add warn-on-use.
2357         (Makefile.am): Always build replacement.
2358         (configure.ac): Update substitutions.
2359         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2360         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2361         bother with SYS_TIME_H.
2362         * modules/gettimeofday (configure.ac): Declare indicator.
2363         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2364         in use.
2365
2366         closein-tests: silence compiler warning
2367         * tests/test-closein.c (main): Ignore fread result.
2368         * modules/closein-tests (Depends-on): Add ignore-value.
2369
2370         tests: silence warning about system return
2371         * tests/test-areadlink-with-size.c (main): Ignore system result.
2372         * tests/test-areadlink.c (main): Likewise.
2373         * tests/test-areadlinkat-with-size.c (main): Likewise.
2374         * tests/test-areadlinkat.c (main): Likewise.
2375         * tests/test-canonicalize-lgpl.c (main): Likewise.
2376         * tests/test-canonicalize.c (main): Likewise.
2377         * tests/test-chown.c (main): Likewise.
2378         * tests/test-fchownat.c (main): Likewise.
2379         * tests/test-fdutimensat.c (main): Likewise.
2380         * tests/test-fstatat.c (main): Likewise.
2381         * tests/test-futimens.c (main): Likewise.
2382         * tests/test-lchown.c (main): Likewise.
2383         * tests/test-link.c (main): Likewise.
2384         * tests/test-linkat.c (main): Likewise.
2385         * tests/test-lstat.c (main): Likewise.
2386         * tests/test-mkdir.c (main): Likewise.
2387         * tests/test-mkdirat.c (main): Likewise.
2388         * tests/test-mkfifo.c (main): Likewise.
2389         * tests/test-mkfifoat.c (main): Likewise.
2390         * tests/test-mknod.c (main): Likewise.
2391         * tests/test-readlink.c (main): Likewise.
2392         * tests/test-remove.c (main): Likewise.
2393         * tests/test-rename.c (main): Likewise.
2394         * tests/test-renameat.c (main): Likewise.
2395         * tests/test-rmdir.c (main): Likewise.
2396         * tests/test-symlink.c (main): Likewise.
2397         * tests/test-symlinkat.c (main): Likewise.
2398         * tests/test-unlink.c (main): Likewise.
2399         * tests/test-unlinkat.c (main): Likewise.
2400         * tests/test-utimens.c (main): Likewise.
2401         * tests/test-utimensat.c (main): Likewise.
2402         * modules/areadlink-tests (Depends-on): Add ignore-value.
2403         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2404         * modules/areadlinkat-tests (Depends-on): Likewise.
2405         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2406         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2407         * modules/canonicalize-tests (Depends-on): Likewise.
2408         * modules/chown-tests (Depends-on): Likewise.
2409         * modules/fdutimensat-tests (Depends-on): Likewise.
2410         * modules/futimens-tests (Depends-on): Likewise.
2411         * modules/lchown-tests (Depends-on): Likewise.
2412         * modules/link-tests (Depends-on): Likewise.
2413         * modules/linkat-tests (Depends-on): Likewise.
2414         * modules/lstat-tests (Depends-on): Likewise.
2415         * modules/mkdir-tests (Depends-on): Likewise.
2416         * modules/mkfifo-tests (Depends-on): Likewise.
2417         * modules/mkfifoat-tests (Depends-on): Likewise.
2418         * modules/mknod-tests (Depends-on): Likewise.
2419         * modules/openat-tests (Depends-on): Likewise.
2420         * modules/readlink-tests (Depends-on): Likewise.
2421         * modules/remove-tests (Depends-on): Likewise.
2422         * modules/rename-tests (Depends-on): Likewise.
2423         * modules/renameat-tests (Depends-on): Likewise.
2424         * modules/rmdir-tests (Depends-on): Likewise.
2425         * modules/symlink-tests (Depends-on): Likewise.
2426         * modules/symlinkat-tests (Depends-on): Likewise.
2427         * modules/unlink-tests (Depends-on): Likewise.
2428         * modules/utimens-tests (Depends-on): Likewise.
2429         * modules/utimensat-tests (Depends-on): Likewise.
2430
2431 2010-01-31  Bruno Haible  <bruno@clisp.org>
2432
2433         Perform the same test for many <math.h> functions.
2434         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2435         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2436         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2437         of gl_MATHFUNC.
2438         * modules/acos (configure.ac): Likewise.
2439         * modules/asin (configure.ac): Likewise.
2440         * modules/atan (configure.ac): Likewise.
2441         * modules/atan2 (configure.ac): Likewise.
2442         * modules/cbrt (configure.ac): Likewise.
2443         * modules/copysign (configure.ac): Likewise.
2444         * modules/cos (configure.ac): Likewise.
2445         * modules/cosh (configure.ac): Likewise.
2446         * modules/erf (configure.ac): Likewise.
2447         * modules/erfc (configure.ac): Likewise.
2448         * modules/exp (configure.ac): Likewise.
2449         * modules/fmod (configure.ac): Likewise.
2450         * modules/hypot (configure.ac): Likewise.
2451         * modules/j0 (configure.ac): Likewise.
2452         * modules/j1 (configure.ac): Likewise.
2453         * modules/jn (configure.ac): Likewise.
2454         * modules/lgamma (configure.ac): Likewise.
2455         * modules/log (configure.ac): Likewise.
2456         * modules/log10 (configure.ac): Likewise.
2457         * modules/log1p (configure.ac): Likewise.
2458         * modules/pow (configure.ac): Likewise.
2459         * modules/remainder (configure.ac): Likewise.
2460         * modules/sin (configure.ac): Likewise.
2461         * modules/sinh (configure.ac): Likewise.
2462         * modules/tan (configure.ac): Likewise.
2463         * modules/tanh (configure.ac): Likewise.
2464         * modules/y0 (configure.ac): Likewise.
2465         * modules/y1 (configure.ac): Likewise.
2466         * modules/yn (configure.ac): Likewise.
2467         Suggested by Paolo Bonzini.
2468
2469 2010-01-31  Bruno Haible  <bruno@clisp.org>
2470
2471         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2472
2473 2010-01-31  Bruno Haible  <bruno@clisp.org>
2474
2475         Work around getdelim() bug on FreeBSD 8.0.
2476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2477         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2478         not work.
2479         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2480         is 1.
2481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2482         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2483         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2484         a non-zero size.
2485         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2486
2487 2010-01-31  Bruno Haible  <bruno@clisp.org>
2488
2489         Work around getline() bug on FreeBSD 8.0.
2490         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2491         and a non-zero size.
2492         * tests/test-getline.c (main): Likewise.
2493         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2494         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2495
2496 2010-01-28  Eric Blake  <ebb9@byu.net>
2497
2498         regex: fix build failure
2499         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2500         platforms.
2501
2502 2010-01-28  Jim Meyering  <meyering@redhat.com>
2503
2504         regex: do not ignore memory allocation failure
2505         * lib/regex_internal.c (create_cd_newstate): Detect
2506         re_node_set_init_copy failure.   Extracted from glibc commit
2507         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2508
2509         regex: sync more white-space changes from libc
2510         * lib/regex_internal.c: White-space only changes.
2511         * lib/regexec.c: Likewise.
2512
2513         regex: add many uses of __attribute_warn_unused_result__
2514         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2515         * lib/regexec.c: Likewise.
2516         Extracted from a messy glibc commit.
2517
2518         regcomp.c: spelling and merge-artifact from glibc
2519         * lib/regcomp.c: Merge remainder of glibc's
2520         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2521
2522         regcomp.c: sync white-space changes from glibc
2523         * lib/regcomp.c: Merge to accommodate white space
2524         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2525
2526         regcomp.c: do not ignore internal return values
2527         * lib/regcomp.c: Do not ignore internal return values.
2528         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2529         but without its white-space changes and spelling fixes.
2530
2531         regex_internal.h: define __attribute_warn_unused_result__
2532         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2533
2534         maint: add a syntax-check rule to check for vulnerable Makefile.in
2535         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2536
2537 2010-01-27  Jim Meyering  <meyering@redhat.com>
2538
2539         ncftpput-ftp: clean up spaces
2540         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2541         Remove trailing blanks.
2542
2543 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2544
2545         * build-aux/git-version-gen: Fix copyright statement.
2546         * build-aux/gnupload: Likewise.
2547         * tests/test-arcfour.c: Likewise.
2548         * tests/test-arctwo.c: Likewise.
2549         * tests/test-count-one-bits.c: Likewise.
2550         * tests/test-crc.c: Likewise.
2551         * tests/test-des.c: Likewise.
2552         * tests/test-gc-arcfour.c: Likewise.
2553         * tests/test-gc-arctwo.c: Likewise.
2554         * tests/test-gc-des.c: Likewise.
2555         * tests/test-gc-hmac-md5.c: Likewise.
2556         * tests/test-gc-hmac-sha1.c: Likewise.
2557         * tests/test-gc-md2.c: Likewise.
2558         * tests/test-gc-md4.c: Likewise.
2559         * tests/test-gc-md5.c: Likewise.
2560         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2561         * tests/test-gc-rijndael.c: Likewise.
2562         * tests/test-gc-sha1.c: Likewise.
2563         * tests/test-gc.c: Likewise.
2564         * tests/test-gethostname.c: Likewise.
2565         * tests/test-gettimeofday.c: Likewise.
2566         * tests/test-hash.c: Likewise.
2567         * tests/test-hmac-md5.c: Likewise.
2568         * tests/test-hmac-sha1.c: Likewise.
2569         * tests/test-md2.c: Likewise.
2570         * tests/test-md4.c: Likewise.
2571         * tests/test-md5.c: Likewise.
2572         * tests/test-memchr.c: Likewise.
2573         * tests/test-memchr2.c: Likewise.
2574         * tests/test-memcmp.c: Likewise.
2575         * tests/test-memmem.c: Likewise.
2576         * tests/test-memrchr.c: Likewise.
2577         * tests/test-rawmemchr.c: Likewise.
2578         * tests/test-read-file.c: Likewise.
2579         * tests/test-rijndael.c: Likewise.
2580         * tests/test-sockets.c: Likewise.
2581         * tests/test-strchrnul.c: Likewise.
2582         * tests/test-strstr.c: Likewise.
2583         * tests/test-strtod.c: Likewise.
2584         * build-aux/ncftpput-ftp: Likewise.
2585
2586 2010-01-26  Eric Blake  <ebb9@byu.net>
2587
2588         ignore-value: update recommended header name
2589         * modules/ignore-value (Include): Only use <> for headers that
2590         exist in glibc.
2591
2592 2010-01-26  Jim Meyering  <meyering@redhat.com>
2593
2594         test-userspec.c: avoid compiler warnings
2595         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2596         and "initialization discards qualifiers..." warnings.
2597         Put the first "uid" in its own scope, and make char* members "const".
2598
2599 2010-01-25  Bruno Haible  <bruno@clisp.org>
2600
2601         gnulib-tool: Make warning diagnostics consistent.
2602         * gnulib-tool (func_warning): New function.
2603         Use it everywhere where gnulib-tool produces output to stderr and it is
2604         not a fatal error.
2605
2606 2010-01-25  Bruno Haible  <bruno@clisp.org>
2607
2608         Fix test dependencies.
2609         * modules/xstrtol-tests (Depends-on): Add inttypes.
2610         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2611
2612 2010-01-25 Pádraig Brady <P@draigBrady.com>
2613
2614         syntax-check: detect incorrect boolean macro values in config.h
2615         * modules/maintainer-makefile (configure.ac): Parameterize the location
2616         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2617         The logic is from Eric Blake and the location indicated by Jim Meyering.
2618         Note the more natural CONFIG_HEADER name is prohibited by automake
2619         for backwards compatibility reasons.
2620         * top/maint.mk (sc_Wundef_boolean): New rule.
2621
2622 2010-01-25  Jim Meyering  <meyering@redhat.com>
2623
2624         bootstrap: detect MacOS 10.6's shasum, too
2625         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
2626         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
2627
2628 2010-01-23  Jim Meyering  <meyering@redhat.com>
2629
2630         xstrtoll: new module
2631         * modules/xstrtoll: New file.
2632         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
2633         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
2634         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
2635         ./configure fails if you use this module and lack "long long".
2636         * modules/xstrtoll-tests: New module.
2637         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
2638         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
2639         new init.sh-based test framework.
2640
2641 2010-01-24  Bruno Haible  <bruno@clisp.org>
2642
2643         Tests for module 'yn'.
2644         * modules/yn-tests: New file.
2645         * tests/test-yn.c: New file.
2646
2647         Tests for module 'y1'.
2648         * modules/y1-tests: New file.
2649         * tests/test-y1.c: New file.
2650
2651         Tests for module 'y0'.
2652         * modules/y0-tests: New file.
2653         * tests/test-y0.c: New file.
2654
2655         Tests for module 'tanh'.
2656         * modules/tanh-tests: New file.
2657         * tests/test-tanh.c: New file.
2658
2659         Tests for module 'tan'.
2660         * modules/tan-tests: New file.
2661         * tests/test-tan.c: New file.
2662
2663         Tests for module 'sqrt'.
2664         * modules/sqrt-tests: New file.
2665         * tests/test-sqrt.c: New file.
2666
2667         Tests for module 'sinh'.
2668         * modules/sinh-tests: New file.
2669         * tests/test-sinh.c: New file.
2670
2671         Tests for module 'sin'.
2672         * modules/sin-tests: New file.
2673         * tests/test-sin.c: New file.
2674
2675         Tests for module 'rint'.
2676         * modules/rint-tests: New file.
2677         * tests/test-rint.c: New file.
2678
2679         Tests for module 'remainder'.
2680         * modules/remainder-tests: New file.
2681         * tests/test-remainder.c: New file.
2682
2683         Tests for module 'pow'.
2684         * modules/pow-tests: New file.
2685         * tests/test-pow.c: New file.
2686
2687         Tests for module 'nextafter'.
2688         * modules/nextafter-tests: New file.
2689         * tests/test-nextafter.c: New file.
2690
2691         Tests for module 'modf'.
2692         * modules/modf-tests: New file.
2693         * tests/test-modf.c: New file.
2694
2695         Tests for module 'logb'.
2696         * modules/logb-tests: New file.
2697         * tests/test-logb.c: New file.
2698
2699         Tests for module 'log1p'.
2700         * modules/log1p-tests: New file.
2701         * tests/test-log1p.c: New file.
2702
2703         Tests for module 'log10'.
2704         * modules/log10-tests: New file.
2705         * tests/test-log10.c: New file.
2706
2707         Tests for module 'log'.
2708         * modules/log-tests: New file.
2709         * tests/test-log.c: New file.
2710
2711         Tests for module 'lgamma'.
2712         * modules/lgamma-tests: New file.
2713         * tests/test-lgamma.c: New file.
2714
2715         Tests for module 'ldexp'.
2716         * modules/ldexp-tests: New file.
2717         * tests/test-ldexp.c: New file.
2718
2719         Tests for module 'jn'.
2720         * modules/jn-tests: New file.
2721         * tests/test-jn.c: New file.
2722
2723         Tests for module 'j1'.
2724         * modules/j1-tests: New file.
2725         * tests/test-j1.c: New file.
2726
2727         Tests for module 'j0'.
2728         * modules/j0-tests: New file.
2729         * tests/test-j0.c: New file.
2730
2731         Tests for module 'hypot'.
2732         * modules/hypot-tests: New file.
2733         * tests/test-hypot.c: New file.
2734
2735         Tests for module 'fmod'.
2736         * modules/fmod-tests: New file.
2737         * tests/test-fmod.c: New file.
2738
2739         Tests for module 'fabs'.
2740         * modules/fabs-tests: New file.
2741         * tests/test-fabs.c: New file.
2742
2743         Tests for module 'exp'.
2744         * modules/exp-tests: New file.
2745         * tests/test-exp.c: New file.
2746
2747         Tests for module 'erfc'.
2748         * modules/erfc-tests: New file.
2749         * tests/test-erfc.c: New file.
2750
2751         Tests for module 'erf'.
2752         * modules/erf-tests: New file.
2753         * tests/test-erf.c: New file.
2754
2755         Tests for module 'cosh'.
2756         * modules/cosh-tests: New file.
2757         * tests/test-cosh.c: New file.
2758
2759         Tests for module 'cos'.
2760         * modules/cos-tests: New file.
2761         * tests/test-cos.c: New file.
2762
2763         Tests for module 'copysign'.
2764         * modules/copysign-tests: New file.
2765         * tests/test-copysign.c: New file.
2766
2767         Tests for module 'cbrt'.
2768         * modules/cbrt-tests: New file.
2769         * tests/test-cbrt.c: New file.
2770
2771         Tests for module 'atan2'.
2772         * modules/atan2-tests: New file.
2773         * tests/test-atan2.c: New file.
2774
2775         Tests for module 'atan'.
2776         * modules/atan-tests: New file.
2777         * tests/test-atan.c: New file.
2778
2779         Tests for module 'asin'.
2780         * modules/asin-tests: New file.
2781         * tests/test-asin.c: New file.
2782
2783         Tests for module 'acos'.
2784         * modules/acos-tests: New file.
2785         * tests/test-acos.c: New file.
2786
2787 2010-01-24  Bruno Haible  <bruno@clisp.org>
2788
2789         Fix tests for common <math.h> functions.
2790         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
2791         code snippet that references the function pointer, rather than merely
2792         calling the function. Substitute the FUNC_LIBM variable.
2793         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
2794         * modules/acos (configure.ac): Likewise.
2795         * modules/asin (configure.ac): Likewise.
2796         * modules/atan (configure.ac): Likewise.
2797         * modules/atan2 (configure.ac): Likewise.
2798         * modules/cbrt (configure.ac): Likewise.
2799         * modules/copysign (configure.ac): Likewise.
2800         * modules/cos (configure.ac): Likewise.
2801         * modules/cosh (configure.ac): Likewise.
2802         * modules/erf (configure.ac): Likewise.
2803         * modules/erfc (configure.ac): Likewise.
2804         * modules/exp (configure.ac): Likewise.
2805         * modules/fabs (configure.ac): Likewise.
2806         * modules/fmod (configure.ac): Likewise.
2807         * modules/hypot (configure.ac): Likewise.
2808         * modules/j0 (configure.ac): Likewise.
2809         * modules/j1 (configure.ac): Likewise.
2810         * modules/jn (configure.ac): Likewise.
2811         * modules/ldexp (configure.ac): Likewise.
2812         * modules/lgamma (configure.ac): Likewise.
2813         * modules/log (configure.ac): Likewise.
2814         * modules/log10 (configure.ac): Likewise.
2815         * modules/log1p (configure.ac): Likewise.
2816         * modules/logb (configure.ac): Likewise.
2817         * modules/modf (configure.ac): Likewise.
2818         * modules/nextafter (configure.ac): Likewise.
2819         * modules/pow (configure.ac): Likewise.
2820         * modules/remainder (configure.ac): Likewise.
2821         * modules/rint (configure.ac): Likewise.
2822         * modules/sin (configure.ac): Likewise.
2823         * modules/sinh (configure.ac): Likewise.
2824         * modules/tan (configure.ac): Likewise.
2825         * modules/tanh (configure.ac): Likewise.
2826         * modules/y0 (configure.ac): Likewise.
2827         * modules/y1 (configure.ac): Likewise.
2828         * modules/yn (configure.ac): Likewise.
2829
2830 2010-01-24  Bruno Haible  <bruno@clisp.org>
2831
2832         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
2833         * tests/test-acosl.c (x): New variable.
2834         (main): Store argument in x and fetch it from x.
2835         * tests/test-asinl.c (x): New variable.
2836         (main): Store argument in x and fetch it from x.
2837         * tests/test-atanl.c (x): New variable.
2838         (main): Store argument in x and fetch it from x.
2839         * tests/test-cosl.c (x): New variable.
2840         (main): Store argument in x and fetch it from x.
2841         * tests/test-expl.c (x): New variable.
2842         (main): Store argument in x and fetch it from x.
2843         * tests/test-logl.c (x): New variable.
2844         (main): Store argument in x and fetch it from x.
2845         * tests/test-sinl.c (x): New variable.
2846         (main): Store argument in x and fetch it from x.
2847         * tests/test-sqrtl.c (x): New variable.
2848         (main): Store argument in x and fetch it from x.
2849         * tests/test-tanl.c (x): New variable.
2850         (main): Store argument in x and fetch it from x.
2851
2852 2010-01-24  Bruno Haible  <bruno@clisp.org>
2853
2854         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
2855         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
2856         assignments to the initial TESTS_ENVIRONMENT.
2857         * doc/gnulib.texi (Unit test modules): Document it.
2858         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
2859         TESTS_ENVIRONMENT.
2860         * modules/btowc-tests (Makefile.am): Likewise.
2861         * modules/c-stack-tests (Makefile.am): Likewise.
2862         * modules/c-strcase-tests (Makefile.am): Likewise.
2863         * modules/copy-file-tests (Makefile.am): Likewise.
2864         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
2865         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
2866         * modules/mbrtowc-tests (Makefile.am): Likewise.
2867         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2868         * modules/mbscasestr-tests (Makefile.am): Likewise.
2869         * modules/mbschr-tests (Makefile.am): Likewise.
2870         * modules/mbscspn-tests (Makefile.am): Likewise.
2871         * modules/mbsinit-tests (Makefile.am): Likewise.
2872         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2873         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
2874         * modules/mbspbrk-tests (Makefile.am): Likewise.
2875         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2876         * modules/mbsrchr-tests (Makefile.am): Likewise.
2877         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
2878         * modules/mbsspn-tests (Makefile.am): Likewise.
2879         * modules/mbsstr-tests (Makefile.am): Likewise.
2880         * modules/nl_langinfo-tests (Makefile.am): Likewise.
2881         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
2882         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2883         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2884         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2885         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2886         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
2887         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2888         * modules/wcrtomb-tests (Makefile.am): Likewise.
2889         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
2890         * modules/wcsrtombs-tests (Makefile.am): Likewise.
2891         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
2892         assignments from TESTS_ENVIRONMENT.
2893         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
2894         augmentation.
2895         * modules/argp-version-etc-tests (Makefile.am): Likewise.
2896         * modules/atexit-tests (Makefile.am): Likewise.
2897         * modules/binary-io-tests (Makefile.am): Likewise.
2898         * modules/closein-tests (Makefile.am): Likewise.
2899         * modules/dprintf-posix-tests (Makefile.am): Likewise.
2900         * modules/exclude-tests (Makefile.am): Likewise.
2901         * modules/fflush-tests (Makefile.am): Likewise.
2902         * modules/fpending-tests (Makefile.am): Likewise.
2903         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2904         * modules/freadahead-tests (Makefile.am): Likewise.
2905         * modules/freadptr-tests (Makefile.am): Likewise.
2906         * modules/freadseek-tests (Makefile.am): Likewise.
2907         * modules/fseek-tests (Makefile.am): Likewise.
2908         * modules/fseeko-tests (Makefile.am): Likewise.
2909         * modules/ftell-tests (Makefile.am): Likewise.
2910         * modules/ftello-tests (Makefile.am): Likewise.
2911         * modules/idpriv-drop-tests (Makefile.am): Likewise.
2912         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
2913         * modules/lseek-tests (Makefile.am): Likewise.
2914         * modules/parse-duration-tests (Makefile.am): Likewise.
2915         * modules/perror-tests (Makefile.am): Likewise.
2916         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
2917         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
2918         * modules/pipe-tests (Makefile.am): Likewise.
2919         * modules/pread-tests (Makefile.am): Likewise.
2920         * modules/printf-posix-tests (Makefile.am): Likewise.
2921         * modules/select-tests (Makefile.am): Likewise.
2922         * modules/sigpipe-tests (Makefile.am): Likewise.
2923         * modules/tsearch-tests (Makefile.am): Likewise.
2924         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
2925         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
2926         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2927         * modules/uniwidth/width-tests (Makefile.am): Likewise.
2928         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
2929         * modules/version-etc-tests (Makefile.am): Likewise.
2930         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2931         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2932         * modules/xalloc-die-tests (Makefile.am): Likewise.
2933         * modules/xprintf-posix-tests (Makefile.am): Likewise.
2934         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2935         * modules/xstrtol-tests (Makefile.am): Likewise.
2936         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2937         * modules/yesno-tests (Makefile.am): Likewise.
2938         Suggested by Jim Meyering.
2939
2940 2010-01-24  Bruno Haible  <bruno@clisp.org>
2941
2942         More documentation.
2943         * doc/gnulib.texi (Writing modules): New chapter.
2944         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
2945         the new chapter.
2946
2947 2010-01-24  Jim Meyering  <meyering@redhat.com>
2948
2949         maint.mk: do not prepend "./" after filtering
2950         * top/maint.mk (_prepend_srcdir_prefix): New variable
2951         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
2952         "./" when $(srcdir) is ".".
2953
2954         define STREQ(a,b) consistently, removing useless parentheses
2955         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
2956         since the only risk is that "a" or "b" contains an unparenthesized
2957         comma, but if either did that, STREQ would have 3 or more arguments.
2958         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
2959         * lib/fts.c (STREQ): Remove unnecessary parentheses.
2960         * lib/hash-triple.c (STREQ): Likewise.
2961         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
2962         * lib/getugroups.c (STREQ): Likewise.
2963
2964 2010-01-23  Jim Meyering  <meyering@redhat.com>
2965
2966         maint.mk: fix syntax-check in a non-srcdir build directory
2967         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
2968         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
2969
2970 2010-01-22  Jim Meyering  <meyering@redhat.com>
2971
2972         userspec: add unit tests
2973         * tests/test-userspec.c: New file.
2974         * modules/userspec-tests: Likewise.
2975
2976 2010-01-21  Jim Meyering  <meyering@redhat.com>
2977
2978         maint.mk: handle source file names containing "." robustly
2979         * top/maint.mk (_dot_escaped_srcdir): Define.
2980         (VC_LIST): Use it in LHS of sed substitution.
2981
2982 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
2983
2984         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
2985         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
2986         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
2987         from a non-srcdir build.
2988
2989 2010-01-20  Eric Blake  <ebb9@byu.net>
2990
2991         warn-on-use: use instead of link-warning
2992         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
2993         * modules/unistd (Depends-on, Makefile.am): Likewise.
2994         * modules/arpa_inet (Depends-on): Replace link-warning with
2995         warn-on-use.
2996         (Makefile.am): Update rules accordingly.
2997         * modules/ctype (Depends-on, Makefile.am): Likewise.
2998         * modules/dirent (Depends-on, Makefile.am): Likewise.
2999         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3000         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3001         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3002         * modules/locale (Depends-on, Makefile.am): Likewise.
3003         * modules/math (Depends-on, Makefile.am): Likewise.
3004         * modules/search (Depends-on, Makefile.am): Likewise.
3005         * modules/signal (Depends-on, Makefile.am): Likewise.
3006         * modules/spawn (Depends-on, Makefile.am): Likewise.
3007         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3008         * modules/string (Depends-on, Makefile.am): Likewise.
3009         * modules/strings (Depends-on, Makefile.am): Likewise.
3010         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3011         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3012         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3013         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3014         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3015         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3016         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3017         * modules/wchar (Depends-on, Makefile.am): Likewise.
3018         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3019         should be poisoned.
3020         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3021         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3022         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3023         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3024         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3025         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3026         * m4/math_h.m4 (gl_MATH_H): Likewise.
3027         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3028         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3029         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3030         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3031         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3032         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3033         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3035         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3036         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3037         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3039         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3040         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3041         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3042         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3043         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3044         GL_LINK_WARNING.
3045         * lib/ctype.in.h: Likewise.
3046         * lib/dirent.in.h: Likewise.
3047         * lib/fcntl.in.h: Likewise.
3048         * lib/inttypes.in.h: Likewise.
3049         * lib/langinfo.in.h: Likewise.
3050         * lib/locale.in.h: Likewise.
3051         * lib/math.in.h: Likewise.
3052         * lib/search.in.h: Likewise.
3053         * lib/signal.in.h: Likewise.
3054         * lib/spawn.in.h: Likewise.
3055         * lib/stdio.in.h: Likewise.
3056         * lib/stdlib.in.h: Likewise.
3057         * lib/string.in.h: Likewise.
3058         * lib/strings.in.h: Likewise.
3059         * lib/sys_file.in.h: Likewise.
3060         * lib/sys_ioctl.in.h: Likewise.
3061         * lib/sys_select.in.h: Likewise.
3062         * lib/sys_socket.in.h: Likewise.
3063         * lib/sys_stat.in.h: Likewise.
3064         * lib/sys_times.in.h: Likewise.
3065         * lib/sys_utsname.in.h: Likewise.
3066         * lib/unistd.in.h: Likewise.
3067         * lib/wchar.in.h: Likewise.
3068
3069 2010-01-20  Bruno Haible  <bruno@clisp.org>
3070
3071         Avoid duplicate -lm.
3072         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3073         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3075         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3076         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3077         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3078         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3079         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3080         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3081         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3082         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3083         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3084         Reported by Paolo Bonzini.
3085
3086 2010-01-19  Bruno Haible  <bruno@clisp.org>
3087
3088         langinfo, nl_langinfo: Relicense under LGPLv2+.
3089         * modules/langinfo (License): Change to LGPLv2+.
3090         * modules/nl_langinfo (License): Likewise.
3091         Patch by David Lutterkort <lutter@redhat.com>.
3092
3093 2010-01-19  Bruno Haible  <bruno@clisp.org>
3094
3095         Avoid compilation error with cc on OSF/1 5.1.
3096         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3097         statement, not before.
3098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3099
3100 2010-01-18  Bruno Haible  <bruno@clisp.org>
3101
3102         Avoid a link error due to the __printf__ symbol.
3103         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3104         and 2.6.x.
3105         (__format__, __printf__): Remove definitions.
3106         * lib/argp-fmtstream.h: Likewise.
3107         * lib/argp.h: Likewise.
3108         * lib/error.h: Likewise.
3109         * lib/vasnprintf.h: Likewise.
3110         * lib/xprintf.h: Likewise.
3111         * lib/xvasprintf.h: Likewise.
3112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3113
3114 2010-01-18  Bruno Haible  <bruno@clisp.org>
3115
3116         Tests for module 'tanl'.
3117         * modules/tanl-tests: New file.
3118         * tests/test-tanl.c: New file.
3119
3120         Tests for module 'sqrtl'.
3121         * modules/sqrtl-tests: New file.
3122         * tests/test-sqrtl.c: New file.
3123
3124         Tests for module 'sinl'.
3125         * modules/sinl-tests: New file.
3126         * tests/test-sinl.c: New file.
3127
3128         Tests for module 'logl'.
3129         * modules/logl-tests: New file.
3130         * tests/test-logl.c: New file.
3131
3132         Tests for module 'expl'.
3133         * modules/expl-tests: New file.
3134         * tests/test-expl.c: New file.
3135
3136         Tests for module 'cosl'.
3137         * modules/cosl-tests: New file.
3138         * tests/test-cosl.c: New file.
3139
3140         Tests for module 'atanl'.
3141         * modules/atanl-tests: New file.
3142         * tests/test-atanl.c: New file.
3143
3144         Tests for module 'asinl'.
3145         * modules/asinl-tests: New file.
3146         * tests/test-asinl.c: New file.
3147
3148         Tests for module 'acosl'.
3149         * modules/acosl-tests: New file.
3150         * tests/test-acosl.c: New file.
3151
3152         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3153         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3154         tanl): Use the standard gnulib idiom.
3155         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3156         * lib/sinl.c: Likewise.
3157         * lib/tanl.c: Don't include trigl.c.
3158         (kernel_tanl): Make static.
3159         * lib/sincosl.c: Include trigl.h first.
3160         * lib/trigl.c: Likewise.
3161         * m4/acosl.m4: New file.
3162         * m4/asinl.m4: New file.
3163         * m4/atanl.m4: New file.
3164         * m4/cosl.m4: New file.
3165         * m4/expl.m4: New file.
3166         * m4/logl.m4: New file.
3167         * m4/sinl.m4: New file.
3168         * m4/sqrtl.m4: New file.
3169         * m4/tanl.m4: New file.
3170         * m4/mathl.m4: Remove file.
3171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3172         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3173         Don't initialize GNULIB_MATHL.
3174         * modules/acosl: New file.
3175         * modules/asinl: New file.
3176         * modules/atanl: New file.
3177         * modules/cosl: New file.
3178         * modules/expl: New file.
3179         * modules/logl: New file.
3180         * modules/sinl: New file.
3181         * modules/sqrtl: New file.
3182         * modules/tanl: New file.
3183         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3184         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3185         substitute GNULIB_MATHL.
3186         * modules/mathl: Rewritten.
3187         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3188         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3189         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3190         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3191         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3192         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3193         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3194         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3195         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3196
3197 2010-01-18  Bruno Haible  <bruno@clisp.org>
3198
3199         sqrt: Make gl_FUNC_SQRT requirable.
3200         * m4/sqrt.m4: New file.
3201         * modules/sqrt (Files): Add it.
3202         (configure.ac): Invoke gl_FUNC_SQRT.
3203
3204 2010-01-18  Bruno Haible  <bruno@clisp.org>
3205
3206         New modules for common <math.h> functions.
3207         * m4/mathfunc.m4: New file.
3208         * modules/acos: New file.
3209         * modules/asin: New file.
3210         * modules/atan: New file.
3211         * modules/atan2: New file.
3212         * modules/cbrt: New file.
3213         * modules/copysign: New file.
3214         * modules/cos: New file.
3215         * modules/cosh: New file.
3216         * modules/erf: New file.
3217         * modules/erfc: New file.
3218         * modules/exp: New file.
3219         * modules/fabs: New file.
3220         * modules/fmod: New file.
3221         * modules/hypot: New file.
3222         * modules/j0: New file.
3223         * modules/j1: New file.
3224         * modules/jn: New file.
3225         * modules/ldexp: New file.
3226         * modules/lgamma: New file.
3227         * modules/log: New file.
3228         * modules/log10: New file.
3229         * modules/log1p: New file.
3230         * modules/logb: New file.
3231         * modules/modf: New file.
3232         * modules/nextafter: New file.
3233         * modules/pow: New file.
3234         * modules/remainder: New file.
3235         * modules/rint: New file.
3236         * modules/sin: New file.
3237         * modules/sinh: New file.
3238         * modules/sqrt: New file.
3239         * modules/tan: New file.
3240         * modules/tanh: New file.
3241         * modules/y0: New file.
3242         * modules/y1: New file.
3243         * modules/yn: New file.
3244         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3245         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3246         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3247         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3248         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3249         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3250         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3251         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3252         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3253         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3254         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3255         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3256         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3257         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3258         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3259         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3260         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3261         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3262         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3263         * doc/posix-functions/log.texi: Mention the 'log' module.
3264         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3265         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3266         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3267         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3268         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3269         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3270         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3271         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3272         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3273         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3274         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3275         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3276         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3277         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3278         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3279         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3280
3281 2010-01-18  Jim Meyering  <meyering@redhat.com>
3282
3283         ignore-value: relax license to LGPLv2+
3284         * modules/ignore-value (License): Relax to LGPLv2+.
3285
3286         getdate: don't leak when TZ contains two or more '"'s
3287         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3288         double quote in TZ after the first one.
3289
3290         readtokens: do not leak internal token_lengths buffer
3291         * lib/readtokens.c (readtokens): Free the local, lengths,
3292         when the supplied "token_lengths" parameter is NULL.
3293
3294 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3295
3296         Fix a couple of missing LIBTHREAD link failures on AIX.
3297         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3298         $(LIBTHREAD).
3299         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3300
3301         Link test-poll against INET_PTON_LIB.
3302         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3303         for inet_pton on Solaris 10.
3304
3305 2010-01-17  Bruno Haible  <bruno@clisp.org>
3306
3307         unistdio/*-sprintf: Fix typo in module description.
3308         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3309         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3310         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3311         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3312         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3313         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3314         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3316
3317 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3318
3319         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3320         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3321         variables in shell case patterns, for AIX and HP-UX ksh.
3322
3323         Split large sed scripts, for HP-UX sed.
3324         * modules/stdio: Split sed scripts around 50 sed commands,
3325         to avoid HP-UX limit of 99 commands, in the near future.
3326         * modules/string: Likewise.
3327         * modules/unistd: Likewise.
3328
3329         gnulib-tool: avoid writing in the current directory.
3330         * gnulib-tool (func_emit_lib_Makefile_am)
3331         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3332         not in the current directory, so concurrent gnulib-tool
3333         instances do not interfere.
3334
3335 2010-01-16  Jim Meyering  <meyering@redhat.com>
3336
3337         doc: update users.txt
3338         * users.txt: Add grep.
3339         (diffutils, gzip): Update URLs.
3340
3341 2010-01-12  Bruno Haible  <bruno@clisp.org>
3342
3343         posix_spawn: Avoid test failure on Cygwin.
3344         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3345         characters.
3346         Reported by Simon Josefsson.
3347
3348 2010-01-12  Bruno Haible  <bruno@clisp.org>
3349
3350         * tests/test-cond.c (main): When skipping the test, show the reason.
3351
3352 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3353
3354         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3355
3356 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3357
3358         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3359         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3360
3361 2010-01-12  Eric Blake  <ebb9@byu.net>
3362
3363         build: guarantee AS_VAR_IF
3364         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3365         (gl_AS_VAR_IF): Move...
3366         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3367         Reported by Simon Josefsson.
3368
3369 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3370
3371         * lib/stdio.in.h: Fix typo.
3372
3373 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3374
3375         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3376         libgpg-error.
3377
3378 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3379
3380         * tests/test-xalloc-die.sh: Use $EXEEXT.
3381
3382 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3383             Bruno Haible  <bruno@clisp.org>
3384
3385         getlogin, getlogin_r: Avoid test failure.
3386         * tests/test-getlogin.c: Include <stdio.h>.
3387         (main): Skip the test when the function fails because stdin is not a
3388         tty.
3389         * tests/test-getlogin_r.c: Include <stdio.h>.
3390         (main): Skip the test when the function fails because stdin is not a
3391         tty.
3392
3393 2010-01-11  Eric Blake  <ebb9@byu.net>
3394
3395         tests: avoid more large file warnings
3396         * tests/test-fflush.c: Avoid warning about ftell use.
3397         * tests/test-fseek.c: Avoid warning about fseek use.
3398
3399 2010-01-10  Bruno Haible  <bruno@clisp.org>
3400
3401         nproc: Work better on Linux when /proc and /sys are not mounted.
3402         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3403         as lower bound when, on glibc/Linux systems,
3404         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3405         Suggested by Pádraig Brady <P@draigbrady.com>.
3406         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3407
3408         nproc: Refactor.
3409         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3410         extracted from num_processors.
3411         (num_processors): Call it.
3412
3413 2010-01-11  Jim Meyering  <meyering@redhat.com>
3414
3415         utimecmp: avoid new warning from upcoming gcc-4.5.0
3416         * lib/utimecmp.c (BILLION): Define using #define rather than an
3417         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3418
3419 2010-01-11  Eric Blake  <ebb9@byu.net>
3420
3421         math: add portability warnings for classification macros
3422         * modules/math (Depends-on): Add warn-on-use.
3423         (Makefile.am): Provide new substitutions.
3424         * m4/math_h.m4 (gl_MATH_H): Require inline.
3425         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3426         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3427         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3428         implement warnings.
3429
3430         unistd: warn on use of environ without module
3431         * modules/unistd (Depends-on): Add warn-on-use.
3432         (Makefile.am): Provide new substitutions.
3433         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3434         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3435
3436         stdio: warn on suspicious uses
3437         * modules/stdio (Depends-on): Add warn-on-use.
3438         (Makefile.am): Provide new substitutions.
3439         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3440         fseeko.
3441         * lib/stdio.in.h (gets): Always warn on use.
3442         (fseek, ftell): Adjust when warnings are issued, and honor
3443         _GL_NO_LARGE_FILES as a way to silence the warning.
3444         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3445         any warning about large file offsets.
3446         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3447         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3448         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3449         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3450         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3451         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3452         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3453         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3454
3455         warn-on-use: new module
3456         * modules/warn-on-use: New file.
3457         * build-aux/warn-on-use.h: Likewise.
3458         * m4/warn-on-use.m4: Likewise.
3459         * MODULES.html.sh (Support for building): Mention it.
3460
3461 2010-01-10  Bruno Haible  <bruno@clisp.org>
3462
3463         Tests for module 'unistr/u32-strdup'.
3464         * modules/unistr/u32-strdup-tests: New file.
3465         * tests/unistr/test-u32-strdup.c: New file.
3466
3467         Tests for module 'unistr/u16-strdup'.
3468         * modules/unistr/u16-strdup-tests: New file.
3469         * tests/unistr/test-u16-strdup.c: New file.
3470
3471         Tests for module 'unistr/u8-strdup'.
3472         * modules/unistr/u8-strdup-tests: New file.
3473         * tests/unistr/test-u8-strdup.c: New file.
3474         * tests/unistr/test-strdup.h: New file.
3475
3476         Tests for module 'unistr/u32-strncmp'.
3477         * modules/unistr/u32-strncmp-tests: New file.
3478         * tests/unistr/test-u32-strncmp.c: New file.
3479
3480         Tests for module 'unistr/u16-strncmp'.
3481         * modules/unistr/u16-strncmp-tests: New file.
3482         * tests/unistr/test-u16-strncmp.c: New file.
3483
3484         Tests for module 'unistr/u8-strncmp'.
3485         * modules/unistr/u8-strncmp-tests: New file.
3486         * tests/unistr/test-u8-strncmp.c: New file.
3487         * tests/unistr/test-strncmp.h: New file.
3488
3489         Tests for module 'unistr/u32-strcoll'.
3490         * modules/unistr/u32-strcoll-tests: New file.
3491         * tests/unistr/test-u32-strcoll.c: New file.
3492
3493         Tests for module 'unistr/u16-strcoll'.
3494         * modules/unistr/u16-strcoll-tests: New file.
3495         * tests/unistr/test-u16-strcoll.c: New file.
3496
3497         Tests for module 'unistr/u8-strcoll'.
3498         * modules/unistr/u8-strcoll-tests: New file.
3499         * tests/unistr/test-u8-strcoll.c: New file.
3500
3501         Tests for module 'unistr/u32-strcmp'.
3502         * modules/unistr/u32-strcmp-tests: New file.
3503         * tests/unistr/test-u32-strcmp.c: New file.
3504         * tests/unistr/test-u32-strcmp.h: New file.
3505
3506         Tests for module 'unistr/u16-strcmp'.
3507         * modules/unistr/u16-strcmp-tests: New file.
3508         * tests/unistr/test-u16-strcmp.c: New file.
3509         * tests/unistr/test-u16-strcmp.h: New file.
3510
3511         Tests for module 'unistr/u8-strcmp'.
3512         * modules/unistr/u8-strcmp-tests: New file.
3513         * tests/unistr/test-u8-strcmp.c: New file.
3514         * tests/unistr/test-u8-strcmp.h: New file.
3515         * tests/unistr/test-strcmp.h: New file.
3516
3517         Tests for module 'unistr/u32-strncat'.
3518         * modules/unistr/u32-strncat-tests: New file.
3519         * tests/unistr/test-u32-strncat.c: New file.
3520
3521         Tests for module 'unistr/u16-strncat'.
3522         * modules/unistr/u16-strncat-tests: New file.
3523         * tests/unistr/test-u16-strncat.c: New file.
3524
3525         Tests for module 'unistr/u8-strncat'.
3526         * modules/unistr/u8-strncat-tests: New file.
3527         * tests/unistr/test-u8-strncat.c: New file.
3528         * tests/unistr/test-strncat.h: New file.
3529
3530         Tests for module 'unistr/u32-strcat'.
3531         * modules/unistr/u32-strcat-tests: New file.
3532         * tests/unistr/test-u32-strcat.c: New file.
3533
3534         Tests for module 'unistr/u16-strcat'.
3535         * modules/unistr/u16-strcat-tests: New file.
3536         * tests/unistr/test-u16-strcat.c: New file.
3537
3538         Tests for module 'unistr/u8-strcat'.
3539         * modules/unistr/u8-strcat-tests: New file.
3540         * tests/unistr/test-u8-strcat.c: New file.
3541         * tests/unistr/test-strcat.h: New file.
3542
3543         Tests for module 'unistr/u32-stpncpy'.
3544         * modules/unistr/u32-stpncpy-tests: New file.
3545         * tests/unistr/test-u32-stpncpy.c: New file.
3546
3547         Tests for module 'unistr/u16-stpncpy'.
3548         * modules/unistr/u16-stpncpy-tests: New file.
3549         * tests/unistr/test-u16-stpncpy.c: New file.
3550
3551         Tests for module 'unistr/u8-stpncpy'.
3552         * modules/unistr/u8-stpncpy-tests: New file.
3553         * tests/unistr/test-u8-stpncpy.c: New file.
3554         * tests/unistr/test-stpncpy.h: New file.
3555
3556         Tests for module 'unistr/u32-strncpy'.
3557         * modules/unistr/u32-strncpy-tests: New file.
3558         * tests/unistr/test-u32-strncpy.c: New file.
3559
3560         Tests for module 'unistr/u16-strncpy'.
3561         * modules/unistr/u16-strncpy-tests: New file.
3562         * tests/unistr/test-u16-strncpy.c: New file.
3563
3564         Tests for module 'unistr/u8-strncpy'.
3565         * modules/unistr/u8-strncpy-tests: New file.
3566         * tests/unistr/test-u8-strncpy.c: New file.
3567         * tests/unistr/test-strncpy.h: New file.
3568
3569         Tests for module 'unistr/u32-stpcpy'.
3570         * modules/unistr/u32-stpcpy-tests: New file.
3571         * tests/unistr/test-u32-stpcpy.c: New file.
3572
3573         Tests for module 'unistr/u16-stpcpy'.
3574         * modules/unistr/u16-stpcpy-tests: New file.
3575         * tests/unistr/test-u16-stpcpy.c: New file.
3576
3577         Tests for module 'unistr/u8-stpcpy'.
3578         * modules/unistr/u8-stpcpy-tests: New file.
3579         * tests/unistr/test-u8-stpcpy.c: New file.
3580         * tests/unistr/test-stpcpy.h: New file.
3581
3582         Tests for module 'unistr/u32-strcpy'.
3583         * modules/unistr/u32-strcpy-tests: New file.
3584         * tests/unistr/test-u32-strcpy.c: New file.
3585
3586         Tests for module 'unistr/u16-strcpy'.
3587         * modules/unistr/u16-strcpy-tests: New file.
3588         * tests/unistr/test-u16-strcpy.c: New file.
3589
3590         Tests for module 'unistr/u8-strcpy'.
3591         * modules/unistr/u8-strcpy-tests: New file.
3592         * tests/unistr/test-u8-strcpy.c: New file.
3593         * tests/unistr/test-strcpy.h: New file.
3594
3595         Tests for module 'unistr/u32-strnlen'.
3596         * modules/unistr/u32-strnlen-tests: New file.
3597         * tests/unistr/test-u32-strnlen.c: New file.
3598
3599         Tests for module 'unistr/u16-strnlen'.
3600         * modules/unistr/u16-strnlen-tests: New file.
3601         * tests/unistr/test-u16-strnlen.c: New file.
3602
3603         Tests for module 'unistr/u8-strnlen'.
3604         * modules/unistr/u8-strnlen-tests: New file.
3605         * tests/unistr/test-u8-strnlen.c: New file.
3606         * tests/unistr/test-strnlen.h: New file.
3607
3608         Tests for module 'unistr/u32-strlen'.
3609         * modules/unistr/u32-strlen-tests: New file.
3610         * tests/unistr/test-u32-strlen.c: New file.
3611
3612         Tests for module 'unistr/u16-strlen'.
3613         * modules/unistr/u16-strlen-tests: New file.
3614         * tests/unistr/test-u16-strlen.c: New file.
3615
3616         Tests for module 'unistr/u8-strlen'.
3617         * modules/unistr/u8-strlen-tests: New file.
3618         * tests/unistr/test-u8-strlen.c: New file.
3619
3620         Tests for module 'unistr/u32-prev'.
3621         * modules/unistr/u32-prev-tests: New file.
3622         * tests/unistr/test-u32-prev.c: New file.
3623
3624         Tests for module 'unistr/u16-prev'.
3625         * modules/unistr/u16-prev-tests: New file.
3626         * tests/unistr/test-u16-prev.c: New file.
3627
3628         Tests for module 'unistr/u8-prev'.
3629         * modules/unistr/u8-prev-tests: New file.
3630         * tests/unistr/test-u8-prev.c: New file.
3631
3632         Tests for module 'unistr/u32-next'.
3633         * modules/unistr/u32-next-tests: New file.
3634         * tests/unistr/test-u32-next.c: New file.
3635
3636         Tests for module 'unistr/u16-next'.
3637         * modules/unistr/u16-next-tests: New file.
3638         * tests/unistr/test-u16-next.c: New file.
3639
3640         Tests for module 'unistr/u8-next'.
3641         * modules/unistr/u8-next-tests: New file.
3642         * tests/unistr/test-u8-next.c: New file.
3643
3644         Tests for module 'unistr/u32-strmbtouc'.
3645         * modules/unistr/u32-strmbtouc-tests: New file.
3646         * tests/unistr/test-u32-strmbtouc.c: New file.
3647
3648         Tests for module 'unistr/u16-strmbtouc'.
3649         * modules/unistr/u16-strmbtouc-tests: New file.
3650         * tests/unistr/test-u16-strmbtouc.c: New file.
3651
3652         Tests for module 'unistr/u8-strmbtouc'.
3653         * modules/unistr/u8-strmbtouc-tests: New file.
3654         * tests/unistr/test-u8-strmbtouc.c: New file.
3655
3656         Tests for module 'unistr/u32-strmblen'.
3657         * modules/unistr/u32-strmblen-tests: New file.
3658         * tests/unistr/test-u32-strmblen.c: New file.
3659
3660         Tests for module 'unistr/u16-strmblen'.
3661         * modules/unistr/u16-strmblen-tests: New file.
3662         * tests/unistr/test-u16-strmblen.c: New file.
3663
3664         Tests for module 'unistr/u8-strmblen'.
3665         * modules/unistr/u8-strmblen-tests: New file.
3666         * tests/unistr/test-u8-strmblen.c: New file.
3667
3668         Tests for module 'unistr/u32-cpy-alloc'.
3669         * modules/unistr/u32-cpy-alloc-tests: New file.
3670         * tests/unistr/test-u32-cpy-alloc.c: New file.
3671
3672         Tests for module 'unistr/u16-cpy-alloc'.
3673         * modules/unistr/u16-cpy-alloc-tests: New file.
3674         * tests/unistr/test-u16-cpy-alloc.c: New file.
3675
3676         Tests for module 'unistr/u8-cpy-alloc'.
3677         * modules/unistr/u8-cpy-alloc-tests: New file.
3678         * tests/unistr/test-u8-cpy-alloc.c: New file.
3679         * tests/unistr/test-cpy-alloc.h: New file.
3680
3681         Tests for module 'unistr/u32-mbsnlen'.
3682         * modules/unistr/u32-mbsnlen-tests: New file.
3683         * tests/unistr/test-u32-mbsnlen.c: New file.
3684
3685         Tests for module 'unistr/u16-mbsnlen'.
3686         * modules/unistr/u16-mbsnlen-tests: New file.
3687         * tests/unistr/test-u16-mbsnlen.c: New file.
3688
3689         Tests for module 'unistr/u8-mbsnlen'.
3690         * modules/unistr/u8-mbsnlen-tests: New file.
3691         * tests/unistr/test-u8-mbsnlen.c: New file.
3692
3693         Tests for module 'unistr/u32-chr'.
3694         * modules/unistr/u32-chr-tests: New file.
3695         * tests/unistr/test-u32-chr.c: New file.
3696
3697         Tests for module 'unistr/u16-chr'.
3698         * modules/unistr/u16-chr-tests: New file.
3699         * tests/unistr/test-u16-chr.c: New file.
3700
3701         Tests for module 'unistr/u8-chr'.
3702         * modules/unistr/u8-chr-tests: New file.
3703         * tests/unistr/test-u8-chr.c: New file.
3704         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
3705
3706         Tests for module 'unistr/u32-cmp2'.
3707         * modules/unistr/u32-cmp2-tests: New file.
3708         * tests/unistr/test-u32-cmp2.c: New file.
3709
3710         Tests for module 'unistr/u16-cmp2'.
3711         * modules/unistr/u16-cmp2-tests: New file.
3712         * tests/unistr/test-u16-cmp2.c: New file.
3713
3714         Tests for module 'unistr/u8-cmp2'.
3715         * modules/unistr/u8-cmp2-tests: New file.
3716         * tests/unistr/test-u8-cmp2.c: New file.
3717         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
3718
3719         Tests for module 'unistr/u32-cmp'.
3720         * modules/unistr/u32-cmp-tests: New file.
3721         * tests/unistr/test-u32-cmp.c: New file.
3722
3723         Tests for module 'unistr/u16-cmp'.
3724         * modules/unistr/u16-cmp-tests: New file.
3725         * tests/unistr/test-u16-cmp.c: New file.
3726
3727         Tests for module 'unistr/u8-cmp'.
3728         * modules/unistr/u8-cmp-tests: New file.
3729         * tests/unistr/test-u8-cmp.c: New file.
3730         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
3731
3732         Tests for module 'unistr/u32-set'.
3733         * modules/unistr/u32-set-tests: New file.
3734         * tests/unistr/test-u32-set.c: New file.
3735
3736         Tests for module 'unistr/u16-set'.
3737         * modules/unistr/u16-set-tests: New file.
3738         * tests/unistr/test-u16-set.c: New file.
3739
3740         Tests for module 'unistr/u8-set'.
3741         * modules/unistr/u8-set-tests: New file.
3742         * tests/unistr/test-u8-set.c: New file.
3743         * tests/unistr/test-set.h: New file.
3744
3745         Tests for module 'unistr/u32-move'.
3746         * modules/unistr/u32-move-tests: New file.
3747         * tests/unistr/test-u32-move.c: New file.
3748
3749         Tests for module 'unistr/u16-move'.
3750         * modules/unistr/u16-move-tests: New file.
3751         * tests/unistr/test-u16-move.c: New file.
3752
3753         Tests for module 'unistr/u8-move'.
3754         * modules/unistr/u8-move-tests: New file.
3755         * tests/unistr/test-u8-move.c: New file.
3756         * tests/unistr/test-move.h: New file.
3757
3758         Tests for module 'unistr/u32-cpy'.
3759         * modules/unistr/u32-cpy-tests: New file.
3760         * tests/unistr/test-u32-cpy.c: New file.
3761
3762         Tests for module 'unistr/u16-cpy'.
3763         * modules/unistr/u16-cpy-tests: New file.
3764         * tests/unistr/test-u16-cpy.c: New file.
3765
3766         Tests for module 'unistr/u8-cpy'.
3767         * modules/unistr/u8-cpy-tests: New file.
3768         * tests/unistr/test-u8-cpy.c: New file.
3769         * tests/unistr/test-cpy.h: New file.
3770
3771 2010-01-09  Bruno Haible  <bruno@clisp.org>
3772
3773         Tests for module 'unistr/u32-uctomb'.
3774         * modules/unistr/u32-uctomb-tests: New file.
3775         * tests/unistr/test-u32-uctomb.c: New file.
3776
3777         Tests for module 'unistr/u16-uctomb'.
3778         * modules/unistr/u16-uctomb-tests: New file.
3779         * tests/unistr/test-u16-uctomb.c: New file.
3780
3781         Tests for module 'unistr/u8-uctomb'.
3782         * modules/unistr/u8-uctomb-tests: New file.
3783         * tests/unistr/test-u8-uctomb.c: New file.
3784
3785         Tests for module 'unistr/u32-mbtoucr'.
3786         * modules/unistr/u32-mbtoucr-tests: New file.
3787         * tests/unistr/test-u32-mbtoucr.c: New file.
3788
3789         Tests for module 'unistr/u16-mbtoucr'.
3790         * modules/unistr/u16-mbtoucr-tests: New file.
3791         * tests/unistr/test-u16-mbtoucr.c: New file.
3792
3793         Tests for module 'unistr/u8-mbtoucr'.
3794         * modules/unistr/u8-mbtoucr-tests: New file.
3795         * tests/unistr/test-u8-mbtoucr.c: New file.
3796
3797         Tests for module 'unistr/u32-mbtouc'.
3798         * modules/unistr/u32-mbtouc-tests: New file.
3799         * tests/unistr/test-u32-mbtouc.c: New file.
3800
3801         Tests for module 'unistr/u16-mbtouc'.
3802         * modules/unistr/u16-mbtouc-tests: New file.
3803         * tests/unistr/test-u16-mbtouc.c: New file.
3804
3805         Tests for module 'unistr/u8-mbtouc'.
3806         * modules/unistr/u8-mbtouc-tests: New file.
3807         * tests/unistr/test-u8-mbtouc.c: New file.
3808
3809         Tests for module 'unistr/u32-mbtouc-unsafe'.
3810         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
3811         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
3812         * tests/unistr/test-u32-mbtouc.h: New file.
3813
3814         Tests for module 'unistr/u16-mbtouc-unsafe'.
3815         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
3816         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
3817         * tests/unistr/test-u16-mbtouc.h: New file.
3818
3819         Tests for module 'unistr/u8-mbtouc-unsafe'.
3820         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
3821         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
3822         * tests/unistr/test-u8-mbtouc.h: New file.
3823
3824         Tests for module 'unistr/u32-mblen'.
3825         * modules/unistr/u32-mblen-tests: New file.
3826         * tests/unistr/test-u32-mblen.c: New file.
3827
3828         Tests for module 'unistr/u16-mblen'.
3829         * modules/unistr/u16-mblen-tests: New file.
3830         * tests/unistr/test-u16-mblen.c: New file.
3831
3832         Tests for module 'unistr/u8-mblen'.
3833         * modules/unistr/u8-mblen-tests: New file.
3834         * tests/unistr/test-u8-mblen.c: New file.
3835
3836         Tests for module 'unistr/u32-to-u16'.
3837         * modules/unistr/u32-to-u16-tests: New file.
3838         * tests/unistr/test-u32-to-u16.c: New file.
3839
3840         Tests for module 'unistr/u32-to-u8'.
3841         * modules/unistr/u32-to-u8-tests: New file.
3842         * tests/unistr/test-u32-to-u8.c: New file.
3843
3844         Tests for module 'unistr/u16-to-u32'.
3845         * modules/unistr/u16-to-u32-tests: New file.
3846         * tests/unistr/test-u16-to-u32.c: New file.
3847
3848         Tests for module 'unistr/u16-to-u8'.
3849         * modules/unistr/u16-to-u8-tests: New file.
3850         * tests/unistr/test-u16-to-u8.c: New file.
3851
3852         Tests for module 'unistr/u8-to-u32'.
3853         * modules/unistr/u8-to-u32-tests: New file.
3854         * tests/unistr/test-u8-to-u32.c: New file.
3855
3856         Tests for module 'unistr/u8-to-u16'.
3857         * modules/unistr/u8-to-u16-tests: New file.
3858         * tests/unistr/test-u8-to-u16.c: New file.
3859
3860         Tests for module 'unistr/u32-check'.
3861         * modules/unistr/u32-check-tests: New file.
3862         * tests/unistr/test-u32-check.c: New file.
3863
3864         Tests for module 'unistr/u16-check'.
3865         * modules/unistr/u16-check-tests: New file.
3866         * tests/unistr/test-u16-check.c: New file.
3867
3868         Tests for module 'unistr/u8-check'.
3869         * modules/unistr/u8-check-tests: New file.
3870         * tests/unistr/test-u8-check.c: New file.
3871
3872         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
3873         (category_equals): New function.
3874         (main): Add more tests.
3875         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
3876
3877         * tests/unictype/test-bidi_byname.c (main): Add more tests.
3878
3879 2010-01-10  Bruno Haible  <bruno@clisp.org>
3880
3881         unistr/u*-strcoll: Try harder to distinguish different strings.
3882         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
3883         compare s1 and s2 to see if they are different.
3884
3885 2010-01-10  Bruno Haible  <bruno@clisp.org>
3886
3887         unistr/u*-stpncpy: Fix the return value.
3888         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
3889         description of the return value consistent with stpncpy in glibc.
3890         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
3891         written non-NUL unit.
3892
3893 2010-01-10  Bruno Haible  <bruno@clisp.org>
3894
3895         unistr/u*-next: Add missing dependencies.
3896         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
3897         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
3898         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
3899
3900 2010-01-10  Bruno Haible  <bruno@clisp.org>
3901
3902         unistr/u8-mbsnlen: Fix return value for incomplete character.
3903         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
3904         u8_mblen.
3905         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
3906         Remove unistr/u8-mblen.
3907         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
3908         u16_mblen.
3909         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
3910         Remove unistr/u16-mblen.
3911
3912 2010-01-10  Bruno Haible  <bruno@clisp.org>
3913
3914         wchar: Fix compilation error when <wchar.h> is used from coreutils.
3915         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
3916         Reported by Brian Gough <bjg@gnu.org> and
3917         Chris Clayton <chris2553@googlemail.com> via
3918         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
3919
3920 2010-01-09  Bruno Haible  <bruno@clisp.org>
3921
3922         unistr/u16-to-u32: Reject invalid input.
3923         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
3924         u16_mbtouc.
3925         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
3926         Remove unistr/u16-mbtouc.
3927
3928         unistr/u16-to-u8: Reject invalid input.
3929         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
3930         u16_mbtouc.
3931         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
3932         Remove unistr/u16-mbtouc.
3933
3934         unistr/u8-to-u32: Reject invalid input.
3935         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
3936         u8_mbtouc.
3937         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
3938         Remove unistr/u8-mbtouc.
3939
3940         unistr/u8-to-u16: Reject invalid input.
3941         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
3942         u8_mbtouc.
3943         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
3944         Remove unistr/u8-mbtouc.
3945
3946 2010-01-09  Bruno Haible  <bruno@clisp.org>
3947
3948         Tests for module 'getlogin'.
3949         * modules/getlogin-tests: New file.
3950         * tests/test-getlogin.c: New file.
3951
3952         New module 'getlogin'.
3953         * lib/unistd.in.h (getlogin): New declaration.
3954         * lib/getlogin.c: New file.
3955         * m4/getlogin.m4: New file.
3956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
3957         HAVE_GETLOGIN.
3958         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
3959         HAVE_GETLOGIN.
3960         * modules/getlogin: New file.
3961         * doc/posix-functions/getlogin.texi: Mention the new module.
3962         Reported by John W. Eaton <jwe@gnu.org>.
3963
3964 2010-01-09  Bruno Haible  <bruno@clisp.org>
3965
3966         getlogin_r: Support for native Windows.
3967         * lib/getlogin_r.c: Include <windows.h>
3968         (getlogin_r): Implement for native Windows.
3969         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
3970         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
3971         via John W. Eaton <jwe@gnu.org>.
3972
3973 2010-01-09  Bruno Haible  <bruno@clisp.org>
3974
3975         getlogin_r: Small fixes.
3976         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
3977         succeeds.
3978         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
3979         before testing whether getlogin_r is declared. No need to set
3980         HAVE_DECL_GETLOGIN_R to 1.
3981         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
3982
3983 2010-01-09  Bruno Haible  <bruno@clisp.org>
3984
3985         * lib/unistd.in.h (getlogin_r): Add comment.
3986
3987 2010-01-09  Bruno Haible  <bruno@clisp.org>
3988
3989         Tests for module 'getlogin_r'.
3990         * modules/getlogin_r-tests: New file.
3991         * tests/test-getlogin_r.c: New file.
3992
3993 2010-01-09  Jim Meyering  <meyering@redhat.com>
3994
3995         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
3996         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
3997         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
3998
3999 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4000
4001         * lib/dup2.c (rpl_dup2): Improve comment.
4002
4003 2010-01-08  Eric Blake  <ebb9@byu.net>
4004
4005         maint.mk: allow packages to add makefile @@ exceptions
4006         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4007         (sc_makefile_check): Rename...
4008         (sc_makefile_at_at_check): ...to this, and use hook.
4009
4010         dup2: work around mingw bug
4011         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4012         Reported by Simon Josefsson.
4013
4014 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4015
4016         glob: Fix C++ compilation.
4017         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4018         C++.
4019
4020 2010-01-07  Bruno Haible  <bruno@clisp.org>
4021
4022         Fix indentation of wctype.in.h, broken since 2007-01-06.
4023         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4024
4025 2010-01-07  Bruno Haible  <bruno@clisp.org>
4026
4027         mbslen: Avoid collision with system function.
4028         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4029         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4030         * m4/mbslen.m4: New file.
4031         * modules/mbslen (Files): Add it.
4032         (configure.ac): Invoke gl_MBSLEN.
4033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4034         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4035         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4036         via Ian Beckwith <ianb@erislabs.net>.
4037
4038 2010-01-07  Bruno Haible  <bruno@clisp.org>
4039
4040         dirent: Document the last fix.
4041         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4042
4043 2010-01-07  Bruno Haible  <bruno@clisp.org>
4044
4045         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4046         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4047         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4048         va_list are defined.
4049         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4050         Reported by Eric Blake.
4051
4052 2010-01-07  Bruno Haible  <bruno@clisp.org>
4053
4054         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4055         * modules/xlist (Depends-on): Add 'list',
4056         * modules/xoset (Depends-on): Add 'oset'.
4057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4058
4059 2010-01-07  Bruno Haible  <bruno@clisp.org>
4060
4061         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4062         * doc/posix-functions/strncasecmp.texi: Likewise.
4063
4064 2010-01-07  Bruno Haible  <bruno@clisp.org>
4065
4066         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4067
4068 2010-01-07  John W. Eaton  <jwe@octave.org>
4069
4070         wctype: allow C++ use
4071         * lib/wctype.in.h: Add extern "C" block for C++.
4072
4073 2010-01-06  Eric Blake  <ebb9@byu.net>
4074
4075         maint.mk: detect incorrect GFDL usage
4076         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4077
4078 2010-01-06  Jim Meyering  <meyering@redhat.com>
4079         and Eric Blake  <ebb9@byu.net>
4080
4081         maint.mk: ignore multi-line copyright in NEWS
4082         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4083
4084 2010-01-06  Eric Blake  <ebb9@byu.net>
4085
4086         select: add missing dependency
4087         * modules/select-tests (Depends-on): Move sockets dependency...
4088         * modules/select (Depends-on): ...here.
4089         Reported by Ian Beckwith.
4090
4091         doc: regenerate INSTALL
4092         * doc/INSTALL: Reflect recent autoconf update.
4093         * doc/INSTALL.ISO: Likewise.
4094         * doc/INSTALL.UTF-8: Likewise.
4095
4096         pread: fix compilation on glibc
4097         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4098         Reported by Ralf Wildenhues.
4099
4100         dirent: fix test failure
4101         * lib/dirent.in.h (includes): Guarantee ino_t.
4102         Reported by Ralf Wildenhues.
4103
4104 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4105
4106         linkat, renameat: avoid bad free
4107         * lib/at-func2.c (at_func2): Fix typo.
4108         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4109
4110 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4111
4112         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4113         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4114         to avoid failure of symlink test later.
4115
4116 2010-01-06  Eric Blake  <ebb9@byu.net>
4117
4118         stdio, unistd: guarantee ssize_t
4119         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4120         2008 are exposed when needed.
4121         * lib/stdio.in.h (includes): Likewise.
4122         Reported by Ralf Wildenhues.
4123
4124 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4125
4126         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4127         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4128         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4129
4130 2010-01-06  Jim Meyering  <meyering@redhat.com>
4131
4132         readtokens: this module *does* require xalloc.h
4133         It uses only functions that were omitted by the old syntax-check rule.
4134         * lib/readtokens.c: Include "xalloc.h" once again.
4135         * modules/readtokens (Depends-on): Add xalloc.
4136         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4137
4138 2010-01-05  Eric Blake  <ebb9@byu.net>
4139
4140         maint: support 'make announcement' from a VPATH build
4141         * top/maint.mk (announcement): Look for correct NEWS file.
4142
4143 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4144
4145         utimens (fdutimens): ignore a negative FD, per contract
4146         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4147         when we have a valid file descriptor.  Otherwise, using a brand
4148         new glibc (with just-patched futimens that now fails with EBADF)
4149         would cause this function to fail with ENOSYS.
4150         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4151         See also http://bugzilla.redhat.com/552320.
4152
4153 2010-01-05  Eric Blake  <ebb9@byu.net>
4154
4155         strcase: document what it provides
4156         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4157         gnulib module.
4158         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4159         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4160
4161 2010-01-05  Jim Meyering  <meyering@redhat.com>
4162
4163         maint: remove useless inclusions of "xalloc.h"
4164         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4165         * lib/readtokens.c: Likewise.
4166         * lib/same.c: Likewise.
4167         * modules/getloadavg (Depends-on): Remove xalloc.
4168         * modules/readtokens: Likewise.
4169         * modules/same: Likewise.
4170
4171         maint.mk: include 4 more function names in alloca.h-checking regexp
4172         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4173         regexp.  Before, we would give a false-positive (saying alloca.h
4174         is included unnecessarily) when the only uses involved omitted symbols.
4175
4176         xalloc.h: use consistent formatting
4177         * lib/xalloc.h: Move declarations to start in the first column.
4178
4179 2010-01-05  Eric Blake  <ebb9@byu.net>
4180
4181         mkdir: avoid xalloc
4182         * lib/mkdir.c (includes): Drop unused header.
4183         Reported by John W. Eaton.
4184
4185 2010-01-04  Jim Meyering  <meyering@redhat.com>
4186
4187         nl_langinfo: avoid configure-time syntax error
4188         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4189         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4190         the empty string.  Don't let that provoke a shell syntax error.
4191
4192         regcomp, regexec, fnmatch: avoid array bounds read error
4193         * lib/regcomp.c (build_equiv_class): From glibc:
4194         Use only the low 24 bits of a findidx return value as an index
4195         into the weights array.  Patch by Ulrich Drepper:
4196         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4197         * lib/regexec.c (check_node_accept_bytes): Likewise.
4198         * lib/fnmatch_loop.c (FCT): Likewise.
4199
4200         regcomp: skip collseq lookup when there are no rules
4201         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4202         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4203
4204         regcomp: recognize ill-formed { } expressions
4205         * lib/regcomp.c (parse_dup_op): From glibc:
4206         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4207
4208         regcomp: fix typo in comment
4209         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4210         s/satisfy/satisfies/.
4211
4212         regcomp: sync from glibc: remove dead store
4213         * lib/regcomp.c (duplicate_node_closure): Remove useless
4214         search_duplicated_node call and dead store.
4215
4216         regcomp: sync from glibc; always use nl_langinfo
4217         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4218         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4219         * modules/regex (Depends-on): Add nl_langinfo.
4220
4221 2010-01-04  Eric Blake  <ebb9@byu.net>
4222
4223         fdopendir: fix configure test
4224         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4225
4226 2010-01-01  Bruno Haible  <bruno@clisp.org>
4227
4228         wchar: Remove unused configure check.
4229         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4230
4231 2010-01-01  Eric Blake  <ebb9@byu.net>
4232
4233         headers: make check of system header explicit
4234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4235         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4236         ourselves.
4237         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4240         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4241         internals.
4242         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4243         missing.
4244         Suggested by Bruno Haible.
4245
4246 2010-01-01  Jim Meyering  <meyering@redhat.com>
4247
4248         ChangeLog: tweak to eliminate unnecessary copyright line
4249         * ChangeLog: Remove a copyright line that was mistakenly updated
4250         by today's update-copyright run.  Reported by Eric Blake.
4251
4252         test-update-copyright: don't let envvar setting cause test failure
4253         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4254
4255 2010-01-01  Bruno Haible  <bruno@clisp.org>
4256
4257         localename: Avoid gcc warning.
4258         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4259         function if it is not used.
4260
4261 2010-01-01  Jim Meyering  <meyering@redhat.com>
4262
4263         update nearly all FSF copyright year lists to include 2010
4264         Use the same procedure as for 2009, outlined in
4265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4266
4267         version-etc: set COPYRIGHT_YEAR to 2010
4268         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4269
4270 2009-12-31  Eric Blake  <ebb9@byu.net>
4271
4272         doc: correct availability of cygwin 1.5.x getopt
4273         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4274         variables.
4275         * doc/posix-functions/opterr.texi (opterr): Likewise.
4276         * doc/posix-functions/optind.texi (optind): Likewise.
4277         * doc/posix-functions/optopt.texi (optopt): Likewise.
4278         * doc/posix-functions/tzname.texi (tzname): Likewise.
4279
4280         openat: update maintainer
4281         * modules/openat (Maintainer): Add myself.
4282
4283         utimens: avoid shadowing warning
4284         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4285         buffers into one, to avoid shadowing, as well as avoiding a
4286         redundant stat.
4287         Reported by Jim Meyering.
4288
4289         test-dup2: avoid compiler warning
4290         * tests/test-dup2.c (is_inheritable): Only define if used.
4291
4292 2010-01-01  Bruno Haible  <bruno@clisp.org>
4293
4294         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4295         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4296         defined, use wctomb instead of wcrtomb.
4297
4298 2010-01-01  Bruno Haible  <bruno@clisp.org>
4299
4300         iconv: Reject native Solaris iconv.
4301         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4302         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4303
4304 2009-12-31  Bruno Haible  <bruno@clisp.org>
4305
4306         * tests/test-signal.c (main): Remove test of 'SIG'.
4307
4308 2009-12-31  Bruno Haible  <bruno@clisp.org>
4309
4310         spawn: Fix incomplete fix.
4311         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4312         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4313         warnings for GNULIB_POSIXCHECK again.
4314         Reported by Eric Blake.
4315
4316 2009-12-31  Bruno Haible  <bruno@clisp.org>
4317
4318         Avoid namespace pollution on glibc systems.
4319         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4320         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4321         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4322         glibc systems.
4323
4324 2009-12-31  Bruno Haible  <bruno@clisp.org>
4325
4326         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4327         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4328         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4329         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4330         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4331         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4332         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4333
4334 2009-12-31  Bruno Haible  <bruno@clisp.org>
4335
4336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4337         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4338         afterwards.
4339
4340 2009-12-31  Bruno Haible  <bruno@clisp.org>
4341
4342         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4343         SYS_UTSNAME_H.
4344
4345 2009-12-31  Bruno Haible  <bruno@clisp.org>
4346
4347         spawn: Fix misapplied patch.
4348         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4349         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4350         warnings for GNULIB_POSIXCHECK.
4351
4352 2009-12-31  Bruno Haible  <bruno@clisp.org>
4353
4354         times: Update after sys_times changed.
4355         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4356         * modules/times (Files): Add it.
4357         (configure.ac): Invoke gl_FUNC_TIMES.
4358
4359 2009-12-31  Bruno Haible  <bruno@clisp.org>
4360
4361         Use AC_C_INLINE where necessary.
4362         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4363         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4365         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4366         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4367         * m4/mbiter.m4 (gl_MBITER): Likewise.
4368         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4369         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4370         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4371         * modules/u64 (configure.ac): Likewise.
4372
4373 2009-12-31  Bruno Haible  <bruno@clisp.org>
4374
4375         Use AC_C_INLINE instead of module 'inline' where possible.
4376         * modules/inline (Description): Clarify purpose.
4377         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4378         * modules/count-one-bits (Depends-on): Remove inline.
4379         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4380         * modules/openat (Depends-on): Remove inline.
4381         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4382         instead of depending on module 'inline'.
4383         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4384         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4385         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4386         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4387         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4388         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4389         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4390         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4391         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4392         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4393         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4394         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4395         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4396         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4397         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4398         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4399         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4400         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4401         Likewise.
4402         * modules/unictype/property-ascii-hex-digit (Depends-on,
4403         configure.ac): Likewise.
4404         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4405         configure.ac): Likewise.
4406         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4407         configure.ac): Likewise.
4408         * modules/unictype/property-bidi-block-separator (Depends-on,
4409         configure.ac): Likewise.
4410         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4411         configure.ac): Likewise.
4412         * modules/unictype/property-bidi-common-separator (Depends-on,
4413         configure.ac): Likewise.
4414         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4415         Likewise.
4416         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4417         configure.ac): Likewise.
4418         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4419         configure.ac): Likewise.
4420         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4421         configure.ac): Likewise.
4422         * modules/unictype/property-bidi-european-digit (Depends-on,
4423         configure.ac): Likewise.
4424         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4425         configure.ac): Likewise.
4426         * modules/unictype/property-bidi-left-to-right (Depends-on,
4427         configure.ac): Likewise.
4428         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4429         configure.ac): Likewise.
4430         * modules/unictype/property-bidi-other-neutral (Depends-on,
4431         configure.ac): Likewise.
4432         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4433         Likewise.
4434         * modules/unictype/property-bidi-segment-separator (Depends-on,
4435         configure.ac): Likewise.
4436         * modules/unictype/property-bidi-whitespace (Depends-on,
4437         configure.ac): Likewise.
4438         * modules/unictype/property-combining (Depends-on, configure.ac):
4439         Likewise.
4440         * modules/unictype/property-composite (Depends-on, configure.ac):
4441         Likewise.
4442         * modules/unictype/property-currency-symbol (Depends-on,
4443         configure.ac): Likewise.
4444         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4445         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4446         Likewise.
4447         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4448         configure.ac): Likewise.
4449         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4450         Likewise.
4451         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4452         Likewise.
4453         * modules/unictype/property-extender (Depends-on, configure.ac):
4454         Likewise.
4455         * modules/unictype/property-format-control (Depends-on, configure.ac):
4456         Likewise.
4457         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4458         Likewise.
4459         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4460         Likewise.
4461         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4462         Likewise.
4463         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4464         Likewise.
4465         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4466         Likewise.
4467         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4468         Likewise.
4469         * modules/unictype/property-id-start (Depends-on, configure.ac):
4470         Likewise.
4471         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4472         Likewise.
4473         * modules/unictype/property-ids-binary-operator (Depends-on,
4474         configure.ac): Likewise.
4475         * modules/unictype/property-ids-trinary-operator (Depends-on,
4476         configure.ac): Likewise.
4477         * modules/unictype/property-ignorable-control (Depends-on,
4478         configure.ac): Likewise.
4479         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4480         Likewise.
4481         * modules/unictype/property-join-control (Depends-on, configure.ac):
4482         Likewise.
4483         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4484         Likewise.
4485         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4486         Likewise.
4487         * modules/unictype/property-logical-order-exception (Depends-on,
4488         configure.ac): Likewise.
4489         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4490         Likewise.
4491         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4492         * modules/unictype/property-non-break (Depends-on, configure.ac):
4493         Likewise.
4494         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4495         Likewise.
4496         * modules/unictype/property-numeric (Depends-on, configure.ac):
4497         Likewise.
4498         * modules/unictype/property-other-alphabetic (Depends-on,
4499         configure.ac): Likewise.
4500         * modules/unictype/property-other-default-ignorable-code-point
4501         (Depends-on, configure.ac): Likewise.
4502         * modules/unictype/property-other-grapheme-extend (Depends-on,
4503         configure.ac): Likewise.
4504         * modules/unictype/property-other-id-continue (Depends-on,
4505         configure.ac): Likewise.
4506         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4507         Likewise.
4508         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4509         Likewise.
4510         * modules/unictype/property-other-math (Depends-on, configure.ac):
4511         Likewise.
4512         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4513         Likewise.
4514         * modules/unictype/property-paired-punctuation (Depends-on,
4515         configure.ac): Likewise.
4516         * modules/unictype/property-paragraph-separator (Depends-on,
4517         configure.ac): Likewise.
4518         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4519         Likewise.
4520         * modules/unictype/property-pattern-white-space (Depends-on,
4521         configure.ac): Likewise.
4522         * modules/unictype/property-private-use (Depends-on, configure.ac):
4523         Likewise.
4524         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4525         Likewise.
4526         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4527         Likewise.
4528         * modules/unictype/property-radical (Depends-on, configure.ac):
4529         Likewise.
4530         * modules/unictype/property-sentence-terminal (Depends-on,
4531         configure.ac): Likewise.
4532         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4533         Likewise.
4534         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4535         * modules/unictype/property-terminal-punctuation (Depends-on,
4536         configure.ac): Likewise.
4537         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4538         Likewise.
4539         * modules/unictype/property-unassigned-code-value (Depends-on,
4540         configure.ac): Likewise.
4541         * modules/unictype/property-unified-ideograph (Depends-on,
4542         configure.ac): Likewise.
4543         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4544         Likewise.
4545         * modules/unictype/property-variation-selector (Depends-on,
4546         configure.ac): Likewise.
4547         * modules/unictype/property-white-space (Depends-on, configure.ac):
4548         Likewise.
4549         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4550         Likewise.
4551         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4552         Likewise.
4553         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4554         Likewise.
4555         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4556         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4557         Likewise.
4558
4559 2009-12-31  Bruno Haible  <bruno@clisp.org>
4560
4561         Remove unnecessary AC_C_INLINE invocation.
4562         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4563         since 2009-08-21.
4564
4565 2009-12-31  Jim Meyering  <meyering@redhat.com>
4566
4567         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4568         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4569         With this change, we can all remove the gpg_key_ID = ... definition
4570         from our respective cfg.mk files.
4571
4572         maint.mk: create announcement template in ~/, not in /tmp
4573         * top/maint.mk (emit_upload_commands): Adjust.
4574         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4575         Remove temporary file, .ci-msg.
4576
4577 2009-12-31  Eric Blake  <ebb9@byu.net>
4578
4579         link-warning: always build headers with link warnings
4580         * modules/arpa_inet (Makefile.am): Always build replacement
4581         header.
4582         * modules/ctype (Makefile.am): Likewise.
4583         * modules/dirent (Makefile.am): Likewise.
4584         * modules/inttypes (Makefile.am): Likewise.
4585         * modules/langinfo (Makefile.am): Likewise.
4586         * modules/locale (Makefile.am): Likewise.
4587         * modules/spawn (Makefile.am): Likewise.
4588         * modules/sys_file (Makefile.am): Likewise.
4589         * modules/sys_ioctl (Makefile.am): Likewise.
4590         * modules/sys_select (Makefile.am): Likewise.
4591         * modules/sys_socket (Makefile.am): Likewise.
4592         * modules/sys_times (Makefile.am): Likewise.
4593         * modules/sys_utsname (Makefile.am): Likewise.
4594         * modules/sys_wait (Makefile.am): Likewise.
4595         * modules/wchar (Makefile.am): Likewise.
4596         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4597         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4598         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4599         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4600         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4601         Likewise.
4602         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4603         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4604         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4605         Likewise.
4606         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4607         Likewise.
4608         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4610         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4611         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4612         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4614         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4615         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4616         (gl_WCHAR_H_DEFAULTS): Likewise.
4617
4618 2009-12-31  Eric Blake  <ebb9@byu.net>
4619
4620         signal, spawn: use link warnings
4621         * lib/signal.in.h (sigset_t): Make unconditional.
4622         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
4623         (sigpending, sigprocmask, sigaction): Add link warnings.
4624         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
4625         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
4626         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
4627         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
4628         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
4629         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
4630         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
4631         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
4632         (posix_spawn_file_actions_destroy)
4633         (posix_spawn_file_actions_addopen)
4634         (posix_spawn_file_actions_addclose)
4635         (posix_spawn_file_actions_adddup2): Likewise.
4636         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
4637         * tests/test-signal.c (main): Enhance test.
4638
4639         spawn: improve wrapper support
4640         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
4641         (gl_SPAWN_H_DEFAULTS): New defaults.
4642         * modules/spawn (Makefile.am): Substitute them.
4643         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
4644         Only declare if missing or broken.
4645
4646         sys_times, sys_utsname: use include_next
4647         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
4648         header.
4649         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
4650         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4651         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4652         * modules/sys_times (Depends-on): Add include_next.
4653         (Makefile.am): Substitute additional values.
4654         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
4655         * lib/sys_times.in.h (includes): Include native header, if
4656         available.
4657         * lib/sys_utsname.in.h (includes): Likewise.
4658         * tests/test-sys_times.c (main): Enhance test.
4659
4660         fdutimensat: revert prior patch
4661         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
4662         utimens.h.
4663         Reported by Bruno Haible.
4664
4665 2009-12-30  Eric Blake  <ebb9@byu.net>
4666
4667         sys_wait: drop link-warning dependency
4668         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
4669         link-warning efforts.
4670         * lib/sys_wait.in.h: Likewise.
4671
4672         fdutimensat: remove bogus dependency
4673         * modules/fdutimensat (Depends-on): Drop inline.
4674
4675         unistd: fix typo
4676         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
4677
4678 2009-12-30  Bruno Haible  <bruno@clisp.org>
4679
4680         Fix compilation error with Solaris cc.
4681         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
4682         * lib/unicase/u16-is-invariant.c: Likewise.
4683         * lib/unicase/u32-is-invariant.c: Likewise.
4684         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4685
4686 2009-12-30  Bruno Haible  <bruno@clisp.org>
4687
4688         Fix test crash.
4689         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
4690         locales.
4691         Reported by Simon Josefsson <simon@josefsson.org>.
4692
4693 2009-12-30  Bruno Haible  <bruno@clisp.org>
4694
4695         Fix compilation error on most platforms.
4696         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
4697         Reported by Simon Josefsson <simon@josefsson.org>
4698         and Nelson H. F. Beebe <beebe@math.utah.edu>.
4699
4700 2009-12-30  Eric Blake  <ebb9@byu.net>
4701
4702         futimens, utimensat: work around ntfs-3g bug
4703         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
4704         a ctime bug is present, and expand workaround to cover ntfs-3g.
4705         * lib/utimens.c (fdutimens, lutimens): Likewise.
4706         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
4707         (validate_timespec): Adjust return value.
4708         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
4709         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4710         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
4711
4712 2009-12-29  Eric Blake  <ebb9@byu.net>
4713
4714         link-warning: make usage consistent
4715         * modules/ctype (Depends-on): Add link-warning.
4716         (Makefile.am): Update rules accordingly.
4717         * modules/langinfo (Depends-on, Makefile.am): Likewise.
4718         * modules/locale (Depends-on, Makefile.am): Likewise.
4719         * modules/sys_file (Makefile.am): Likewise.
4720         * modules/getopt-posix (Makefile.am): Delete unused link warning
4721         efforts.
4722         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
4723         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
4724         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
4725         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
4726
4727         stdio: remove unused variables
4728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
4729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4730         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4731
4732         tests: test more substitute headers
4733         * modules/ctype-tests: New file.
4734         * modules/dirent-tests: Likewise.
4735         * modules/spawn-tests: Likewise.
4736         * modules/sys_file-tests: Likewise.
4737         * modules/sys_ioctl-tests: Likewise.
4738         * modules/sys_wait-tests: Likewise.
4739         * tests/test-ctype.c: Likewise.
4740         * tests/test-dirent.c: Likewise.
4741         * tests/test-spawn.c: Likewise.
4742         * tests/test-sys_file.c: Likewise.
4743         * tests/test-sys_ioctl.c: Likewise.
4744         * tests/test-sys_wait.c: Likewise.
4745         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
4746         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
4747         whether or not flock is in use.
4748
4749         tests: remove License section from module
4750         * modules/arpa_inet-tests: Remove unneeded section.
4751         * modules/byteswap-tests: Likewise.
4752         * modules/ceilf-tests: Likewise.
4753         * modules/ceill-tests: Likewise.
4754         * modules/crypto/des-tests: Likewise.
4755         * modules/crypto/gc-arcfour-tests: Likewise.
4756         * modules/crypto/gc-arctwo-tests: Likewise.
4757         * modules/crypto/gc-des-tests: Likewise.
4758         * modules/crypto/gc-hmac-md5-tests: Likewise.
4759         * modules/crypto/gc-hmac-sha1-tests: Likewise.
4760         * modules/crypto/gc-md2-tests: Likewise.
4761         * modules/crypto/gc-md4-tests: Likewise.
4762         * modules/crypto/gc-md5-tests: Likewise.
4763         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
4764         * modules/crypto/gc-rijndael-tests: Likewise.
4765         * modules/crypto/gc-sha1-tests: Likewise.
4766         * modules/crypto/gc-tests: Likewise.
4767         * modules/crypto/md2-tests: Likewise.
4768         * modules/crypto/md4-tests: Likewise.
4769         * modules/fcntl-h-tests: Likewise.
4770         * modules/floorf-tests: Likewise.
4771         * modules/floorl-tests: Likewise.
4772         * modules/frexp-nolibm-tests: Likewise.
4773         * modules/frexp-tests: Likewise.
4774         * modules/frexpl-nolibm-tests: Likewise.
4775         * modules/frexpl-tests: Likewise.
4776         * modules/getaddrinfo-tests: Likewise.
4777         * modules/inttypes-tests: Likewise.
4778         * modules/isfinite-tests: Likewise.
4779         * modules/isinf-tests: Likewise.
4780         * modules/ldexpl-tests: Likewise.
4781         * modules/locale-tests: Likewise.
4782         * modules/math-tests: Likewise.
4783         * modules/netdb-tests: Likewise.
4784         * modules/netinet_in-tests: Likewise.
4785         * modules/printf-frexp-tests: Likewise.
4786         * modules/printf-frexpl-tests: Likewise.
4787         * modules/priv-set-tests: Likewise.
4788         * modules/random_r-tests: Likewise.
4789         * modules/round-tests: Likewise.
4790         * modules/roundf-tests: Likewise.
4791         * modules/roundl-tests: Likewise.
4792         * modules/search-tests: Likewise.
4793         * modules/select-tests: Likewise.
4794         * modules/signal-tests: Likewise.
4795         * modules/stdbool-tests: Likewise.
4796         * modules/stddef-tests: Likewise.
4797         * modules/stdint-tests: Likewise.
4798         * modules/stdio-tests: Likewise.
4799         * modules/stdlib-tests: Likewise.
4800         * modules/string-tests: Likewise.
4801         * modules/strings-tests: Likewise.
4802         * modules/sys_select-tests: Likewise.
4803         * modules/sys_socket-tests: Likewise.
4804         * modules/sys_stat-tests: Likewise.
4805         * modules/sys_time-tests: Likewise.
4806         * modules/sys_utsname-tests: Likewise.
4807         * modules/sysexits-tests: Likewise.
4808         * modules/time-tests: Likewise.
4809         * modules/trunc-tests: Likewise.
4810         * modules/truncf-tests: Likewise.
4811         * modules/truncl-tests: Likewise.
4812         * modules/tsearch-tests: Likewise.
4813         * modules/unistd-tests: Likewise.
4814         * modules/wchar-tests: Likewise.
4815         * modules/wctype-tests: Likewise.
4816
4817         tests: fix license on several tests
4818         * tests/test-des.c: Update to GPLv3+.
4819         * tests/test-flock.c: Likewise.
4820         * tests/test-fsync.c: Likewise.
4821         * tests/test-futimens.h: Likewise.
4822         * tests/test-gc-arcfour.c: Likewise.
4823         * tests/test-gc-arctwo.c: Likewise.
4824         * tests/test-gc-des.c: Likewise.
4825         * tests/test-gc-hmac-md5.c: Likewise.
4826         * tests/test-gc-hmac-sha1.c: Likewise.
4827         * tests/test-gc-md2.c: Likewise.
4828         * tests/test-gc-md4.c: Likewise.
4829         * tests/test-gc-md5.c: Likewise.
4830         * tests/test-gc-pbkdf2-sha1.c: Likewise.
4831         * tests/test-gc-rijndael.c: Likewise.
4832         * tests/test-gc-sha1.c: Likewise.
4833         * tests/test-gc.c: Likewise.
4834         * tests/test-getcwd.c: Likewise.
4835         * tests/test-link.c: Likewise.
4836         * tests/test-link.h: Likewise.
4837         * tests/test-lutimens.h: Likewise.
4838         * tests/test-md2.c: Likewise.
4839         * tests/test-md4.c: Likewise.
4840         * tests/test-mkdir.h: Likewise.
4841         * tests/test-rename.c: Likewise.
4842         * tests/test-rename.h: Likewise.
4843         * tests/test-safe-alloc.c: Likewise.
4844         * tests/test-utimens-common.h: Likewise.
4845         * tests/test-utimens.h: Likewise.
4846
4847         maint: sync license texts
4848         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
4849         * doc/gpl-3.0.texi: Revert copyright year update.
4850         * doc/lgpl-3.0.texi: Likewise.
4851
4852 2009-12-29  Jim Meyering  <meyering@redhat.com>
4853
4854         update nearly all FSF copyright year lists to include 2009
4855         The files named by the following are exempted:
4856             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
4857               test -f "$dst" && { echo "$dst"; continue; }
4858               test -d "$dst" || continue
4859               echo "$dst"/$(basename "$src")
4860             done > exempt
4861             git ls-files tests/unictype >> exempt
4862         In the remaining files, convert to all-interval notation if
4863         - there is already at least one year interval like 2000-2003
4864         - the file is maintained by me
4865         - the file is in lib/uni*/, where that style already prevails
4866         Otherwise, use update-copyright's default.
4867
4868 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4869         and Eric Blake  <ebb9@byu.net>
4870
4871         tests: don't require debug system() to pass
4872         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
4873         * tests/test-rmdir.h (test_rmdir_func): Likewise.
4874         * tests/test-unlink.h (test_unlink_func): Likewise.
4875         * tests/test-fstatat.c (main): ...into callers.
4876         * tests/test-lstat.c (main): Likewise.
4877         * tests/test-rmdir.c (main): Likewise.
4878         * tests/test-unlink.c (main): Likewise.
4879         * tests/test-unlinkat.c (main): Likewise.
4880         * tests/test-areadlink-with-size.c (main): Don't require a
4881         debug-only system call to pass, aiding cross-testing to mingw.
4882         * tests/test-areadlink.c (main): Likewise.
4883         * tests/test-areadlinkat-with-size.c (main): Likewise.
4884         * tests/test-areadlinkat.c (main): Likewise.
4885         * tests/test-canonicalize-lgpl.c (main): Likewise.
4886         * tests/test-canonicalize.c (main): Likewise.
4887         * tests/test-chown.c (main): Likewise.
4888         * tests/test-fchownat.c (main): Likewise.
4889         * tests/test-lchown.c (main): Likewise.
4890         * tests/test-fdutimensat.c (main): Likewise.
4891         * tests/test-futimens.c (main): Likewise.
4892         * tests/test-link.c (main): Likewise.
4893         * tests/test-linkat.c (main): Likewise.
4894         * tests/test-mkdir.c (main): Likewise.
4895         * tests/test-mkdirat.c (main): Likewise.
4896         * tests/test-mkfifo.c (main): Likewise.
4897         * tests/test-mkfifoat.c (main): Likewise.
4898         * tests/test-mknod.c (main): Likewise.
4899         * tests/test-readlink.c (main): Likewise.
4900         * tests/test-remove.c (main): Likewise.
4901         * tests/test-rename.c (main): Likewise.
4902         * tests/test-renameat.c (main): Likewise.
4903         * tests/test-symlink.c (main): Likewise.
4904         * tests/test-symlinkat.c (main): Likewise.
4905         * tests/test-utimens.c (main): Likewise.
4906         * tests/test-utimensat.c (main): Likewise.
4907
4908 2009-12-29  Simon Josefsson  <simon@josefsson.org>
4909
4910         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
4911         on $(UNUSED_PARAMETER_H) to avoid build failure.
4912
4913 2009-12-28  Jim Meyering  <meyering@redhat.com>
4914
4915         update-copyright: you may specify a max. line length other than 72
4916         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4917
4918         maint: use consistent FSF copyright line syntax
4919         * lib/posixtm.c: Add missing comma in FSF copyright line.
4920         * lib/posixtm.h: Likewise.
4921         * lib/getugroups.c: Add missing ", Inc.".
4922
4923         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
4924         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
4925         FSF copyright line.  Remove trailing blanks.
4926
4927 2009-12-28  Eric Blake  <ebb9@byu.net>
4928
4929         test-dup2: reduce dependencies
4930         * modules/cloexec (Configure.ac): Set witness.
4931         * modules/dup2-tests (Depends-on): Drop cloexec.
4932         * tests/test-dup2.c (main): Skip portion of test if cloexec module
4933         not present.
4934         Suggested by Bruno Haible.
4935
4936 2009-12-26  Bruno Haible  <bruno@clisp.org>
4937
4938         Remove an unneeded dependency.
4939         * modules/fseterr (Depends-on): Remove dup2.
4940
4941 2009-12-26  Eric Blake  <ebb9@byu.net>
4942
4943         tests: use macros.h in more places
4944         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
4945         (ASSERT_STREAM): Provide default of stderr.
4946         * tests/test-dirent-safer.c: Include macros.h, using alternate
4947         stream for assertions.
4948         * tests/test-dup-safer.c: Likewise.
4949         * tests/test-freopen-safer.c: Likewise.
4950         * tests/test-getopt.c: Likewise.
4951         * tests/test-openat-safer.c: Likewise.
4952         * tests/test-pipe.c: Likewise.
4953         * tests/test-popen-safer.c: Likewise.
4954         * modules/dirent-safer-tests (Files): Include macros.h.
4955         * modules/unistd-safer-tests (Files): Likewise.
4956         * modules/freopen-safer-tests (Files): Likewise.
4957         * modules/getopt-posix-tests (Files): Likewise.
4958         * modules/openat-safer-tests (Files): Likewise.
4959         * modules/pipe-tests (Files): Likewise.
4960
4961 2009-12-26  Bruno Haible  <bruno@clisp.org>
4962
4963         javacomp: Portability fix.
4964         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
4965         that it also works on Solaris.
4966
4967 2009-12-26  Bruno Haible  <bruno@clisp.org>
4968
4969         localename: Fix storage allocation of gl_locale_name_thread's result.
4970         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
4971         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
4972         all platforms that have 'uselocale'.
4973         (gl_locale_name_thread_unsafe): New function, extracted from
4974         gl_locale_name_thread.
4975         (gl_locale_name_thread): Call struniq on all platforms that have
4976         'uselocale'.
4977         * tests/test-localename.c (test_locale_name_thread): Check that the
4978         resulting strings are permanently allocated.
4979         * modules/localename-tests (Depends-on): Add strdup.
4980
4981 2009-12-26  Bruno Haible  <bruno@clisp.org>
4982
4983         * tests/test-localename.c (categories): Fill in the strings.
4984
4985 2009-12-26  Jim Meyering  <meyering@redhat.com>
4986
4987         isdir: complete the removal of m4/isdir.m4
4988         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
4989
4990         isdir: clean up, since at least grep still uses it
4991         * lib/isdir.c: Include "isdir.h".
4992         (S_ISDIR): Remove now-unneeded definition.
4993         * modules/isdir (Files): Add lib/isdir.h.
4994         * lib/isdir.h: New file, with declaration.
4995         * m4/isdir.m4: Remove file -- unneeded.
4996
4997 2009-12-25  Bruno Haible  <bruno@clisp.org>
4998
4999         selinux-h: Make generated .h files standalone.
5000         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5001         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5002         * lib/se-selinux.in.h: Likewise.
5003         * modules/selinux-h (Depends-on): Add unused-parameter.
5004         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5005         selinux/selinux.h and selinux/context.h.
5006         Suggested by Eric Blake.
5007
5008 2009-12-25  Bruno Haible  <bruno@clisp.org>
5009
5010         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5011         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5012         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5013         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5014         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5015
5016 2009-12-24  Bruno Haible  <bruno@clisp.org>
5017
5018         openat: Fix warning.
5019         * lib/openat-proc.c: Include <unistd.h>.
5020
5021 2009-12-24  Bruno Haible  <bruno@clisp.org>
5022
5023         New module 'unused-parameter'.
5024         * build-aux/unused-parameter.h: New file, extracted from earlier
5025         gnulib-common.m4.
5026         * modules/unused-parameter: New file.
5027         * lib/unistr.h: Include unused-parameter.h.
5028         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5029         _GL_UNUSED.
5030         * modules/unistr/base (Depends-on): Add unused-parameter.
5031
5032 2009-12-24  Bruno Haible  <bruno@clisp.org>
5033
5034         Add missing dependencies to 'extensions' module.
5035         * m4/extensions.m4: Add comment.
5036         * modules/accept4 (Depends-on): Add extensions.
5037         * modules/dup3 (Depends-on): Likewise.
5038         * modules/fcntl (Depends-on): Likewise.
5039         * modules/futimens (Depends-on): Likewise.
5040         * modules/mknod (Depends-on): Likewise.
5041         * modules/pipe2 (Depends-on): Likewise.
5042         * modules/stat-time (Depends-on): Likewise.
5043         * modules/strcasestr-simple (Depends-on): Likewise.
5044         * modules/strsignal (Depends-on): Likewise.
5045         * modules/utimensat (Depends-on): Likewise.
5046         * modules/localcharset (Depends-on): Likewise. Needed because of
5047         gl_FCNTL_O_FLAGS.
5048         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5049         AC_TYPE_MBSTATE_T.
5050         * modules/wcsnrtombs (Depends-on): Likewise.
5051         * modules/wcsrtombs (Depends-on): Likewise.
5052
5053 2009-12-24  Bruno Haible  <bruno@clisp.org>
5054
5055         binary-io: Avoid gcc warning due to SET_BINARY.
5056         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5057         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5058
5059 2009-12-24  Bruno Haible  <bruno@clisp.org>
5060
5061         Avoid future namespace pollution on glibc systems.
5062         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5063         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5064         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5065         glibc systems.
5066
5067 2009-12-24  Bruno Haible  <bruno@clisp.org>
5068
5069         Refactor common macros used in tests.
5070         * tests/macros.h: New file.
5071         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5072         and/or <stdlib.h>, if appropriate.
5073         (ASSERT, SIZEOF): Remove macros.
5074         * tests/test-areadlink-with-size.c: Likewise.
5075         * tests/test-areadlinkat.c: Likewise.
5076         * tests/test-areadlinkat-with-size.c: Likewise.
5077         * tests/test-argmatch.c: Likewise.
5078         * tests/test-argv-iter.c: Likewise.
5079         * tests/test-array-mergesort.c: Likewise.
5080         * tests/test-array_list.c: Likewise.
5081         * tests/test-array_oset.c: Likewise.
5082         * tests/test-avltree_list.c: Likewise.
5083         * tests/test-avltree_oset.c: Likewise.
5084         * tests/test-avltreehash_list.c: Likewise.
5085         * tests/test-base64.c: Likewise.
5086         * tests/test-binary-io.c: Likewise.
5087         * tests/test-bitrotate.c: Likewise.
5088         * tests/test-btowc.c: Likewise.
5089         * tests/test-byteswap.c: Likewise.
5090         * tests/test-c-ctype.c: Likewise.
5091         * tests/test-c-stack.c: Likewise.
5092         * tests/test-c-strcasecmp.c: Likewise.
5093         * tests/test-c-strcasestr.c: Likewise.
5094         * tests/test-c-strncasecmp.c: Likewise.
5095         * tests/test-c-strstr.c: Likewise.
5096         * tests/test-canonicalize-lgpl.c: Likewise.
5097         * tests/test-canonicalize.c: Likewise.
5098         * tests/test-carray_list.c: Likewise.
5099         * tests/test-ceilf1.c: Likewise.
5100         * tests/test-ceilf2.c: Likewise.
5101         * tests/test-ceill.c: Likewise.
5102         * tests/test-chown.c: Likewise.
5103         * tests/test-cloexec.c: Likewise.
5104         * tests/test-copy-acl.c: Likewise.
5105         * tests/test-copy-file.c: Likewise.
5106         * tests/test-count-one-bits.c: Likewise.
5107         * tests/test-dprintf-posix.c: Likewise.
5108         * tests/test-dup2.c: Likewise.
5109         * tests/test-dup3.c: Likewise.
5110         * tests/test-duplocale.c: Likewise.
5111         * tests/test-fbufmode.c: Likewise.
5112         * tests/test-fchdir.c: Likewise.
5113         * tests/test-fchownat.c: Likewise.
5114         * tests/test-fcntl-safer.c: Likewise.
5115         * tests/test-fcntl.c: Likewise.
5116         * tests/test-fdopendir.c: Likewise.
5117         * tests/test-fdutimensat.c: Likewise.
5118         * tests/test-fflush2.c: Likewise.
5119         * tests/test-file-has-acl.c: Likewise.
5120         * tests/test-filevercmp.c: Likewise.
5121         * tests/test-flock.c: Likewise.
5122         * tests/test-floorf1.c: Likewise.
5123         * tests/test-floorf2.c: Likewise.
5124         * tests/test-floorl.c: Likewise.
5125         * tests/test-fnmatch.c: Likewise.
5126         * tests/test-fopen.h: Likewise.
5127         * tests/test-fpending.c: Likewise.
5128         * tests/test-fprintf-posix.c: Likewise.
5129         * tests/test-fpurge.c: Likewise.
5130         * tests/test-freadable.c: Likewise.
5131         * tests/test-freadahead.c: Likewise.
5132         * tests/test-freading.c: Likewise.
5133         * tests/test-freadptr.c: Likewise.
5134         * tests/test-freadptr2.c: Likewise.
5135         * tests/test-freadseek.c: Likewise.
5136         * tests/test-freopen.c: Likewise.
5137         * tests/test-frexp.c: Likewise.
5138         * tests/test-frexpl.c: Likewise.
5139         * tests/test-fseek.c: Likewise.
5140         * tests/test-fseeko.c: Likewise.
5141         * tests/test-fstatat.c: Likewise.
5142         * tests/test-fstrcmp.c: Likewise.
5143         * tests/test-fsync.c: Likewise.
5144         * tests/test-ftell.c: Likewise.
5145         * tests/test-ftello.c: Likewise.
5146         * tests/test-func.c: Likewise.
5147         * tests/test-futimens.c: Likewise.
5148         * tests/test-fwritable.c: Likewise.
5149         * tests/test-fwriting.c: Likewise.
5150         * tests/test-getcwd.c: Likewise.
5151         * tests/test-getdate.c: Likewise.
5152         * tests/test-getdelim.c: Likewise.
5153         * tests/test-getdtablesize.c: Likewise.
5154         * tests/test-getgroups.c: Likewise.
5155         * tests/test-getline.c: Likewise.
5156         * tests/test-getndelim2.c: Likewise.
5157         * tests/test-glob.c: Likewise.
5158         * tests/test-hash.c: Likewise.
5159         * tests/test-i-ring.c: Likewise.
5160         * tests/test-iconv-utf.c: Likewise.
5161         * tests/test-iconv.c: Likewise.
5162         * tests/test-idpriv-drop.c: Likewise.
5163         * tests/test-idpriv-droptemp.c: Likewise.
5164         * tests/test-inet_ntop.c: Likewise.
5165         * tests/test-inet_pton.c: Likewise.
5166         * tests/test-isblank.c: Likewise.
5167         * tests/test-isfinite.c: Likewise.
5168         * tests/test-isinf.c: Likewise.
5169         * tests/test-isnan.c: Likewise.
5170         * tests/test-isnand.h: Likewise.
5171         * tests/test-isnanf.h: Likewise.
5172         * tests/test-isnanl.h: Likewise.
5173         * tests/test-lchown.c: Likewise.
5174         * tests/test-ldexpl.c: Likewise.
5175         * tests/test-link.c: Likewise.
5176         * tests/test-linkat.c: Likewise.
5177         * tests/test-linked_list.c: Likewise.
5178         * tests/test-linkedhash_list.c: Likewise.
5179         * tests/test-localename.c: Likewise.
5180         * tests/test-lseek.c: Likewise.
5181         * tests/test-lstat.c: Likewise.
5182         * tests/test-mbmemcasecmp.c: Likewise.
5183         * tests/test-mbmemcasecoll.c: Likewise.
5184         * tests/test-mbrtowc.c: Likewise.
5185         * tests/test-mbscasecmp.c: Likewise.
5186         * tests/test-mbscasestr1.c: Likewise.
5187         * tests/test-mbscasestr2.c: Likewise.
5188         * tests/test-mbscasestr3.c: Likewise.
5189         * tests/test-mbscasestr4.c: Likewise.
5190         * tests/test-mbschr.c: Likewise.
5191         * tests/test-mbscspn.c: Likewise.
5192         * tests/test-mbsinit.c: Likewise.
5193         * tests/test-mbsncasecmp.c: Likewise.
5194         * tests/test-mbsnrtowcs.c: Likewise.
5195         * tests/test-mbspbrk.c: Likewise.
5196         * tests/test-mbspcasecmp.c: Likewise.
5197         * tests/test-mbsrchr.c: Likewise.
5198         * tests/test-mbsrtowcs.c: Likewise.
5199         * tests/test-mbsspn.c: Likewise.
5200         * tests/test-mbsstr1.c: Likewise.
5201         * tests/test-mbsstr2.c: Likewise.
5202         * tests/test-mbsstr3.c: Likewise.
5203         * tests/test-memchr.c: Likewise.
5204         * tests/test-memchr2.c: Likewise.
5205         * tests/test-memcmp.c: Likewise.
5206         * tests/test-memmem.c: Likewise.
5207         * tests/test-memrchr.c: Likewise.
5208         * tests/test-mkdir.c: Likewise.
5209         * tests/test-mkdirat.c: Likewise.
5210         * tests/test-mkfifo.c: Likewise.
5211         * tests/test-mkfifoat.c: Likewise.
5212         * tests/test-mknod.c: Likewise.
5213         * tests/test-nanosleep.c: Likewise.
5214         * tests/test-nl_langinfo.c: Likewise.
5215         * tests/test-obstack-printf.c: Likewise.
5216         * tests/test-open.c: Likewise.
5217         * tests/test-openat.c: Likewise.
5218         * tests/test-pipe-filter-gi1.c: Likewise.
5219         * tests/test-pipe-filter-gi2-main.c: Likewise.
5220         * tests/test-pipe-filter-ii1.c: Likewise.
5221         * tests/test-pipe-filter-ii2-main.c: Likewise.
5222         * tests/test-pipe2.c: Likewise.
5223         * tests/test-popen.h: Likewise.
5224         * tests/test-posixtm.c: Likewise.
5225         * tests/test-pread.c: Likewise.
5226         * tests/test-printf-frexp.c: Likewise.
5227         * tests/test-printf-frexpl.c: Likewise.
5228         * tests/test-printf-posix.c: Likewise.
5229         * tests/test-priv-set.c: Likewise.
5230         * tests/test-quotearg.c: Likewise.
5231         * tests/test-random_r.c: Likewise.
5232         * tests/test-rawmemchr.c: Likewise.
5233         * tests/test-rbtree_list.c: Likewise.
5234         * tests/test-rbtree_oset.c: Likewise.
5235         * tests/test-rbtreehash_list.c: Likewise.
5236         * tests/test-readlink.c: Likewise.
5237         * tests/test-remove.c: Likewise.
5238         * tests/test-rename.c: Likewise.
5239         * tests/test-renameat.c: Likewise.
5240         * tests/test-rmdir.c: Likewise.
5241         * tests/test-round1.c: Likewise.
5242         * tests/test-roundf1.c: Likewise.
5243         * tests/test-roundl.c: Likewise.
5244         * tests/test-safe-alloc.c: Likewise.
5245         * tests/test-sameacls.c: Likewise.
5246         * tests/test-set-mode-acl.c: Likewise.
5247         * tests/test-setenv.c: Likewise.
5248         * tests/test-sigaction.c: Likewise.
5249         * tests/test-signbit.c: Likewise.
5250         * tests/test-sleep.c: Likewise.
5251         * tests/test-snprintf-posix.c: Likewise.
5252         * tests/test-snprintf.c: Likewise.
5253         * tests/test-sprintf-posix.c: Likewise.
5254         * tests/test-stat-time.c: Likewise.
5255         * tests/test-stat.c: Likewise.
5256         * tests/test-strcasestr.c: Likewise.
5257         * tests/test-strchrnul.c: Likewise.
5258         * tests/test-strerror.c: Likewise.
5259         * tests/test-striconv.c: Likewise.
5260         * tests/test-striconveh.c: Likewise.
5261         * tests/test-striconveha.c: Likewise.
5262         * tests/test-strsignal.c: Likewise.
5263         * tests/test-strstr.c: Likewise.
5264         * tests/test-strtod.c: Likewise.
5265         * tests/test-strverscmp.c: Likewise.
5266         * tests/test-symlink.c: Likewise.
5267         * tests/test-symlinkat.c: Likewise.
5268         * tests/test-trunc1.c: Likewise.
5269         * tests/test-trunc2.c: Likewise.
5270         * tests/test-truncf1.c: Likewise.
5271         * tests/test-truncf2.c: Likewise.
5272         * tests/test-truncl.c: Likewise.
5273         * tests/test-uname.c: Likewise.
5274         * tests/test-unlink.c: Likewise.
5275         * tests/test-unlinkat.c: Likewise.
5276         * tests/test-unsetenv.c: Likewise.
5277         * tests/test-usleep.c: Likewise.
5278         * tests/test-utimens.c: Likewise.
5279         * tests/test-utimensat.c: Likewise.
5280         * tests/test-vasnprintf-posix.c: Likewise.
5281         * tests/test-vasnprintf-posix2.c: Likewise.
5282         * tests/test-vasnprintf.c: Likewise.
5283         * tests/test-vasprintf-posix.c: Likewise.
5284         * tests/test-vasprintf.c: Likewise.
5285         * tests/test-vdprintf-posix.c: Likewise.
5286         * tests/test-vfprintf-posix.c: Likewise.
5287         * tests/test-vprintf-posix.c: Likewise.
5288         * tests/test-vsnprintf-posix.c: Likewise.
5289         * tests/test-vsnprintf.c: Likewise.
5290         * tests/test-vsprintf-posix.c: Likewise.
5291         * tests/test-wcrtomb.c: Likewise.
5292         * tests/test-wcsnrtombs.c: Likewise.
5293         * tests/test-wcsrtombs.c: Likewise.
5294         * tests/test-wctype.c: Likewise.
5295         * tests/test-wcwidth.c: Likewise.
5296         * tests/test-xfprintf-posix.c: Likewise.
5297         * tests/test-xmemdup0.c: Likewise.
5298         * tests/test-xprintf-posix.c: Likewise.
5299         * tests/test-xvasprintf.c: Likewise.
5300         * tests/unicase/test-locale-language.c: Likewise.
5301         * tests/unicase/test-mapping-part1.h: Likewise.
5302         * tests/unicase/test-predicate-part1.h: Likewise.
5303         * tests/unicase/test-u8-casecmp.c: Likewise.
5304         * tests/unicase/test-u8-casecoll.c: Likewise.
5305         * tests/unicase/test-u8-casefold.c: Likewise.
5306         * tests/unicase/test-u8-is-cased.c: Likewise.
5307         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5308         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5309         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5310         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5311         * tests/unicase/test-u8-tolower.c: Likewise.
5312         * tests/unicase/test-u8-totitle.c: Likewise.
5313         * tests/unicase/test-u8-toupper.c: Likewise.
5314         * tests/unicase/test-u16-casecmp.c: Likewise.
5315         * tests/unicase/test-u16-casecoll.c: Likewise.
5316         * tests/unicase/test-u16-casefold.c: Likewise.
5317         * tests/unicase/test-u16-is-cased.c: Likewise.
5318         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5319         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5320         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5321         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5322         * tests/unicase/test-u16-tolower.c: Likewise.
5323         * tests/unicase/test-u16-totitle.c: Likewise.
5324         * tests/unicase/test-u16-toupper.c: Likewise.
5325         * tests/unicase/test-u32-casecmp.c: Likewise.
5326         * tests/unicase/test-u32-casecoll.c: Likewise.
5327         * tests/unicase/test-u32-casefold.c: Likewise.
5328         * tests/unicase/test-u32-is-cased.c: Likewise.
5329         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5330         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5331         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5332         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5333         * tests/unicase/test-u32-tolower.c: Likewise.
5334         * tests/unicase/test-u32-totitle.c: Likewise.
5335         * tests/unicase/test-u32-toupper.c: Likewise.
5336         * tests/unicase/test-ulc-casecmp.c: Likewise.
5337         * tests/unicase/test-ulc-casecoll.c: Likewise.
5338         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5339         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5340         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5341         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5342         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5343         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5344         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5345         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5346         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5347         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5348         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5349         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5350         * tests/unictype/test-bidi_byname.c: Likewise.
5351         * tests/unictype/test-bidi_name.c: Likewise.
5352         * tests/unictype/test-bidi_of.c: Likewise.
5353         * tests/unictype/test-bidi_test.c: Likewise.
5354         * tests/unictype/test-block_list.c: Likewise.
5355         * tests/unictype/test-block_of.c: Likewise.
5356         * tests/unictype/test-block_test.c: Likewise.
5357         * tests/unictype/test-categ_and.c: Likewise.
5358         * tests/unictype/test-categ_and_not.c: Likewise.
5359         * tests/unictype/test-categ_byname.c: Likewise.
5360         * tests/unictype/test-categ_name.c: Likewise.
5361         * tests/unictype/test-categ_none.c: Likewise.
5362         * tests/unictype/test-categ_of.c: Likewise.
5363         * tests/unictype/test-categ_or.c: Likewise.
5364         * tests/unictype/test-categ_test_withtable.c: Likewise.
5365         * tests/unictype/test-combining.c: Likewise.
5366         * tests/unictype/test-decdigit.c: Likewise.
5367         * tests/unictype/test-digit.c: Likewise.
5368         * tests/unictype/test-mirror.c: Likewise.
5369         * tests/unictype/test-numeric.c: Likewise.
5370         * tests/unictype/test-pr_byname.c: Likewise.
5371         * tests/unictype/test-pr_test.c: Likewise.
5372         * tests/unictype/test-predicate-part1.h: Likewise.
5373         * tests/unictype/test-scripts.c: Likewise.
5374         * tests/unictype/test-sy_c_ident.c: Likewise.
5375         * tests/unictype/test-sy_java_ident.c: Likewise.
5376         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5377         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5378         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5379         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5380         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5381         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5382         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5383         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5384         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5385         * tests/uninorm/test-compat-decomposition.c: Likewise.
5386         * tests/uninorm/test-composition.c: Likewise.
5387         * tests/uninorm/test-decomposing-form.c: Likewise.
5388         * tests/uninorm/test-decomposition.c: Likewise.
5389         * tests/uninorm/test-u8-nfc.c: Likewise.
5390         * tests/uninorm/test-u8-nfd.c: Likewise.
5391         * tests/uninorm/test-u8-nfkc.c: Likewise.
5392         * tests/uninorm/test-u8-nfkd.c: Likewise.
5393         * tests/uninorm/test-u8-normcmp.c: Likewise.
5394         * tests/uninorm/test-u8-normcoll.c: Likewise.
5395         * tests/uninorm/test-u16-nfc.c: Likewise.
5396         * tests/uninorm/test-u16-nfd.c: Likewise.
5397         * tests/uninorm/test-u16-nfkc.c: Likewise.
5398         * tests/uninorm/test-u16-nfkd.c: Likewise.
5399         * tests/uninorm/test-u16-normcmp.c: Likewise.
5400         * tests/uninorm/test-u16-normcoll.c: Likewise.
5401         * tests/uninorm/test-u32-nfc.c: Likewise.
5402         * tests/uninorm/test-u32-nfd.c: Likewise.
5403         * tests/uninorm/test-u32-nfkc.c: Likewise.
5404         * tests/uninorm/test-u32-nfkd.c: Likewise.
5405         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5406         * tests/uninorm/test-u32-normcmp.c: Likewise.
5407         * tests/uninorm/test-u32-normcoll.c: Likewise.
5408         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5409         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5410         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5411         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5412         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5413         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5414         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5415         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5416         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5417         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5418         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5419         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5420         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5421         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5422         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5423         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5424         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5425         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5426         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5427         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5428         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5429         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5430         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5431         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5432         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5433         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5434         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5435         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5436         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5437         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5438         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5439         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5440         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5441         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5442         * tests/uniwidth/test-u8-width.c: Likewise.
5443         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5444         * tests/uniwidth/test-u16-width.c: Likewise.
5445         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5446         * tests/uniwidth/test-u32-width.c: Likewise.
5447         * tests/uniwidth/test-uc_width.c: Likewise.
5448         * tests/uniwidth/test-uc_width2.c: Likewise.
5449         * modules/acl-tests (Files): Add tests/macros.h.
5450         * modules/areadlink-tests (Files): Likewise.
5451         * modules/areadlink-with-size-tests (Files): Likewise.
5452         * modules/areadlinkat-tests (Files): Likewise.
5453         * modules/areadlinkat-with-size-tests (Files): Likewise.
5454         * modules/argmatch-tests (Files): Likewise.
5455         * modules/argv-iter-tests (Files): Likewise.
5456         * modules/array-list-tests (Files): Likewise.
5457         * modules/array-mergesort-tests (Files): Likewise.
5458         * modules/array-oset-tests (Files): Likewise.
5459         * modules/avltree-list-tests (Files): Likewise.
5460         * modules/avltree-oset-tests (Files): Likewise.
5461         * modules/avltreehash-list-tests (Files): Likewise.
5462         * modules/base64-tests (Files): Likewise.
5463         * modules/binary-io-tests (Files): Likewise.
5464         * modules/bitrotate-tests (Files): Likewise.
5465         * modules/btowc-tests (Files): Likewise.
5466         * modules/byteswap-tests (Files): Likewise.
5467         * modules/c-ctype-tests (Files): Likewise.
5468         * modules/c-stack-tests (Files): Likewise.
5469         * modules/c-strcase-tests (Files): Likewise.
5470         * modules/c-strcasestr-tests (Files): Likewise.
5471         * modules/c-strstr-tests (Files): Likewise.
5472         * modules/canonicalize-lgpl-tests (Files): Likewise.
5473         * modules/canonicalize-tests (Files): Likewise.
5474         * modules/carray-list-tests (Files): Likewise.
5475         * modules/ceilf-tests (Files): Likewise.
5476         * modules/ceill-tests (Files): Likewise.
5477         * modules/chown-tests (Files): Likewise.
5478         * modules/cloexec-tests (Files): Likewise.
5479         * modules/copy-file-tests (Files): Likewise.
5480         * modules/count-one-bits-tests (Files): Likewise.
5481         * modules/dprintf-posix-tests (Files): Likewise.
5482         * modules/dup2-tests (Files): Likewise.
5483         * modules/dup3-tests (Files): Likewise.
5484         * modules/duplocale-tests (Files): Likewise.
5485         * modules/fbufmode-tests (Files): Likewise.
5486         * modules/fchdir-tests (Files): Likewise.
5487         * modules/fcntl-safer-tests (Files): Likewise.
5488         * modules/fcntl-tests (Files): Likewise.
5489         * modules/fdopendir-tests (Files): Likewise.
5490         * modules/fdutimensat-tests (Files): Likewise.
5491         * modules/fflush-tests (Files): Likewise.
5492         * modules/filevercmp-tests (Files): Likewise.
5493         * modules/flock-tests (Files): Likewise.
5494         * modules/floorf-tests (Files): Likewise.
5495         * modules/floorl-tests (Files): Likewise.
5496         * modules/fnmatch-tests (Files): Likewise.
5497         * modules/fopen-safer-tests (Files): Likewise.
5498         * modules/fopen-tests (Files): Likewise.
5499         * modules/fpending-tests (Files): Likewise.
5500         * modules/fprintf-posix-tests (Files): Likewise.
5501         * modules/fpurge-tests (Files): Likewise.
5502         * modules/freadable-tests (Files): Likewise.
5503         * modules/freadahead-tests (Files): Likewise.
5504         * modules/freading-tests (Files): Likewise.
5505         * modules/freadptr-tests (Files): Likewise.
5506         * modules/freadseek-tests (Files): Likewise.
5507         * modules/freopen-tests (Files): Likewise.
5508         * modules/frexp-nolibm-tests (Files): Likewise.
5509         * modules/frexp-tests (Files): Likewise.
5510         * modules/frexpl-nolibm-tests (Files): Likewise.
5511         * modules/frexpl-tests (Files): Likewise.
5512         * modules/fseek-tests (Files): Likewise.
5513         * modules/fseeko-tests (Files): Likewise.
5514         * modules/fstrcmp-tests (Files): Likewise.
5515         * modules/fsync-tests (Files): Likewise.
5516         * modules/ftell-tests (Files): Likewise.
5517         * modules/ftello-tests (Files): Likewise.
5518         * modules/func-tests (Files): Likewise.
5519         * modules/futimens-tests (Files): Likewise.
5520         * modules/fwritable-tests (Files): Likewise.
5521         * modules/fwriting-tests (Files): Likewise.
5522         * modules/getcwd-tests (Files): Likewise.
5523         * modules/getdate-tests (Files): Likewise.
5524         * modules/getdelim-tests (Files): Likewise.
5525         * modules/getdtablesize-tests (Files): Likewise.
5526         * modules/getgroups-tests (Files): Likewise.
5527         * modules/getline-tests (Files): Likewise.
5528         * modules/getndelim2-tests (Files): Likewise.
5529         * modules/glob-tests (Files): Likewise.
5530         * modules/hash-tests (Files): Likewise.
5531         * modules/i-ring-tests (Files): Likewise.
5532         * modules/iconv-tests (Files): Likewise.
5533         * modules/iconv_open-utf-tests (Files): Likewise.
5534         * modules/idpriv-drop-tests (Files): Likewise.
5535         * modules/idpriv-droptemp-tests (Files): Likewise.
5536         * modules/inet_ntop-tests (Files): Likewise.
5537         * modules/inet_pton-tests (Files): Likewise.
5538         * modules/isblank-tests (Files): Likewise.
5539         * modules/isfinite-tests (Files): Likewise.
5540         * modules/isinf-tests (Files): Likewise.
5541         * modules/isnan-tests (Files): Likewise.
5542         * modules/isnand-nolibm-tests (Files): Likewise.
5543         * modules/isnand-tests (Files): Likewise.
5544         * modules/isnanf-nolibm-tests (Files): Likewise.
5545         * modules/isnanf-tests (Files): Likewise.
5546         * modules/isnanl-nolibm-tests (Files): Likewise.
5547         * modules/isnanl-tests (Files): Likewise.
5548         * modules/lchown-tests (Files): Likewise.
5549         * modules/ldexpl-tests (Files): Likewise.
5550         * modules/link-tests (Files): Likewise.
5551         * modules/linkat-tests (Files): Likewise.
5552         * modules/linked-list-tests (Files): Likewise.
5553         * modules/linkedhash-list-tests (Files): Likewise.
5554         * modules/localename-tests (Files): Likewise.
5555         * modules/lseek-tests (Files): Likewise.
5556         * modules/lstat-tests (Files): Likewise.
5557         * modules/mbmemcasecmp-tests (Files): Likewise.
5558         * modules/mbmemcasecoll-tests (Files): Likewise.
5559         * modules/mbrtowc-tests (Files): Likewise.
5560         * modules/mbscasecmp-tests (Files): Likewise.
5561         * modules/mbscasestr-tests (Files): Likewise.
5562         * modules/mbschr-tests (Files): Likewise.
5563         * modules/mbscspn-tests (Files): Likewise.
5564         * modules/mbsinit-tests (Files): Likewise.
5565         * modules/mbsncasecmp-tests (Files): Likewise.
5566         * modules/mbsnrtowcs-tests (Files): Likewise.
5567         * modules/mbspbrk-tests (Files): Likewise.
5568         * modules/mbspcasecmp-tests (Files): Likewise.
5569         * modules/mbsrchr-tests (Files): Likewise.
5570         * modules/mbsrtowcs-tests (Files): Likewise.
5571         * modules/mbsspn-tests (Files): Likewise.
5572         * modules/mbsstr-tests (Files): Likewise.
5573         * modules/memchr-tests (Files): Likewise.
5574         * modules/memchr2-tests (Files): Likewise.
5575         * modules/memcmp-tests (Files): Likewise.
5576         * modules/memmem-tests (Files): Likewise.
5577         * modules/memrchr-tests (Files): Likewise.
5578         * modules/mkdir-tests (Files): Likewise.
5579         * modules/mkfifo-tests (Files): Likewise.
5580         * modules/mkfifoat-tests (Files): Likewise.
5581         * modules/mknod-tests (Files): Likewise.
5582         * modules/nanosleep-tests (Files): Likewise.
5583         * modules/nl_langinfo-tests (Files): Likewise.
5584         * modules/obstack-printf-tests (Files): Likewise.
5585         * modules/open-tests (Files): Likewise.
5586         * modules/openat-tests (Files): Likewise.
5587         * modules/pipe-filter-gi-tests (Files): Likewise.
5588         * modules/pipe-filter-ii-tests (Files): Likewise.
5589         * modules/pipe2-tests (Files): Likewise.
5590         * modules/popen-safer-tests (Files): Likewise.
5591         * modules/popen-tests (Files): Likewise.
5592         * modules/posixtm-tests (Files): Likewise.
5593         * modules/pread-tests (Files): Likewise.
5594         * modules/printf-frexp-tests (Files): Likewise.
5595         * modules/printf-frexpl-tests (Files): Likewise.
5596         * modules/printf-posix-tests (Files): Likewise.
5597         * modules/priv-set-tests (Files): Likewise.
5598         * modules/quotearg-tests (Files): Likewise.
5599         * modules/random_r-tests (Files): Likewise.
5600         * modules/rawmemchr-tests (Files): Likewise.
5601         * modules/rbtree-list-tests (Files): Likewise.
5602         * modules/rbtree-oset-tests (Files): Likewise.
5603         * modules/rbtreehash-list-tests (Files): Likewise.
5604         * modules/readlink-tests (Files): Likewise.
5605         * modules/remove-tests (Files): Likewise.
5606         * modules/rename-tests (Files): Likewise.
5607         * modules/renameat-tests (Files): Likewise.
5608         * modules/rmdir-tests (Files): Likewise.
5609         * modules/round-tests (Files): Likewise.
5610         * modules/roundf-tests (Files): Likewise.
5611         * modules/roundl-tests (Files): Likewise.
5612         * modules/safe-alloc-tests (Files): Likewise.
5613         * modules/setenv-tests (Files): Likewise.
5614         * modules/sigaction-tests (Files): Likewise.
5615         * modules/signbit-tests (Files): Likewise.
5616         * modules/sleep-tests (Files): Likewise.
5617         * modules/snprintf-posix-tests (Files): Likewise.
5618         * modules/snprintf-tests (Files): Likewise.
5619         * modules/sprintf-posix-tests (Files): Likewise.
5620         * modules/stat-tests (Files): Likewise.
5621         * modules/stat-time-tests (Files): Likewise.
5622         * modules/strcasestr-tests (Files): Likewise.
5623         * modules/strchrnul-tests (Files): Likewise.
5624         * modules/strerror-tests (Files): Likewise.
5625         * modules/striconv-tests (Files): Likewise.
5626         * modules/striconveh-tests (Files): Likewise.
5627         * modules/striconveha-tests (Files): Likewise.
5628         * modules/strsignal-tests (Files): Likewise.
5629         * modules/strstr-tests (Files): Likewise.
5630         * modules/strtod-tests (Files): Likewise.
5631         * modules/strverscmp-tests (Files): Likewise.
5632         * modules/symlink-tests (Files): Likewise.
5633         * modules/symlinkat-tests (Files): Likewise.
5634         * modules/trunc-tests (Files): Likewise.
5635         * modules/truncf-tests (Files): Likewise.
5636         * modules/truncl-tests (Files): Likewise.
5637         * modules/uname-tests (Files): Likewise.
5638         * modules/unicase/cased-tests (Files): Likewise.
5639         * modules/unicase/ignorable-tests (Files): Likewise.
5640         * modules/unicase/locale-language-tests (Files): Likewise.
5641         * modules/unicase/tolower-tests (Files): Likewise.
5642         * modules/unicase/totitle-tests (Files): Likewise.
5643         * modules/unicase/toupper-tests (Files): Likewise.
5644         * modules/unicase/u8-casecmp-tests (Files): Likewise.
5645         * modules/unicase/u8-casecoll-tests (Files): Likewise.
5646         * modules/unicase/u8-casefold-tests (Files): Likewise.
5647         * modules/unicase/u8-is-cased-tests (Files): Likewise.
5648         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
5649         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
5650         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
5651         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
5652         * modules/unicase/u8-tolower-tests (Files): Likewise.
5653         * modules/unicase/u8-totitle-tests (Files): Likewise.
5654         * modules/unicase/u8-toupper-tests (Files): Likewise.
5655         * modules/unicase/u16-casecmp-tests (Files): Likewise.
5656         * modules/unicase/u16-casecoll-tests (Files): Likewise.
5657         * modules/unicase/u16-casefold-tests (Files): Likewise.
5658         * modules/unicase/u16-is-cased-tests (Files): Likewise.
5659         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
5660         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
5661         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
5662         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
5663         * modules/unicase/u16-tolower-tests (Files): Likewise.
5664         * modules/unicase/u16-totitle-tests (Files): Likewise.
5665         * modules/unicase/u16-toupper-tests (Files): Likewise.
5666         * modules/unicase/u32-casecmp-tests (Files): Likewise.
5667         * modules/unicase/u32-casecoll-tests (Files): Likewise.
5668         * modules/unicase/u32-casefold-tests (Files): Likewise.
5669         * modules/unicase/u32-is-cased-tests (Files): Likewise.
5670         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
5671         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
5672         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
5673         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
5674         * modules/unicase/u32-tolower-tests (Files): Likewise.
5675         * modules/unicase/u32-totitle-tests (Files): Likewise.
5676         * modules/unicase/u32-toupper-tests (Files): Likewise.
5677         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
5678         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
5679         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
5680         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
5681         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
5682         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
5683         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
5684         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
5685         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
5686         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
5687         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
5688         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
5689         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
5690         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
5691         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
5692         * modules/unictype/bidicategory-name-tests (Files): Likewise.
5693         * modules/unictype/bidicategory-of-tests (Files): Likewise.
5694         * modules/unictype/bidicategory-test-tests (Files): Likewise.
5695         * modules/unictype/block-list-tests (Files): Likewise.
5696         * modules/unictype/block-of-tests (Files): Likewise.
5697         * modules/unictype/block-test-tests (Files): Likewise.
5698         * modules/unictype/category-C-tests (Files): Likewise.
5699         * modules/unictype/category-Cc-tests (Files): Likewise.
5700         * modules/unictype/category-Cf-tests (Files): Likewise.
5701         * modules/unictype/category-Cn-tests (Files): Likewise.
5702         * modules/unictype/category-Co-tests (Files): Likewise.
5703         * modules/unictype/category-Cs-tests (Files): Likewise.
5704         * modules/unictype/category-L-tests (Files): Likewise.
5705         * modules/unictype/category-Ll-tests (Files): Likewise.
5706         * modules/unictype/category-Lm-tests (Files): Likewise.
5707         * modules/unictype/category-Lo-tests (Files): Likewise.
5708         * modules/unictype/category-Lt-tests (Files): Likewise.
5709         * modules/unictype/category-Lu-tests (Files): Likewise.
5710         * modules/unictype/category-M-tests (Files): Likewise.
5711         * modules/unictype/category-Mc-tests (Files): Likewise.
5712         * modules/unictype/category-Me-tests (Files): Likewise.
5713         * modules/unictype/category-Mn-tests (Files): Likewise.
5714         * modules/unictype/category-N-tests (Files): Likewise.
5715         * modules/unictype/category-Nd-tests (Files): Likewise.
5716         * modules/unictype/category-Nl-tests (Files): Likewise.
5717         * modules/unictype/category-No-tests (Files): Likewise.
5718         * modules/unictype/category-P-tests (Files): Likewise.
5719         * modules/unictype/category-Pc-tests (Files): Likewise.
5720         * modules/unictype/category-Pd-tests (Files): Likewise.
5721         * modules/unictype/category-Pe-tests (Files): Likewise.
5722         * modules/unictype/category-Pf-tests (Files): Likewise.
5723         * modules/unictype/category-Pi-tests (Files): Likewise.
5724         * modules/unictype/category-Po-tests (Files): Likewise.
5725         * modules/unictype/category-Ps-tests (Files): Likewise.
5726         * modules/unictype/category-S-tests (Files): Likewise.
5727         * modules/unictype/category-Sc-tests (Files): Likewise.
5728         * modules/unictype/category-Sk-tests (Files): Likewise.
5729         * modules/unictype/category-Sm-tests (Files): Likewise.
5730         * modules/unictype/category-So-tests (Files): Likewise.
5731         * modules/unictype/category-Z-tests (Files): Likewise.
5732         * modules/unictype/category-Zl-tests (Files): Likewise.
5733         * modules/unictype/category-Zp-tests (Files): Likewise.
5734         * modules/unictype/category-Zs-tests (Files): Likewise.
5735         * modules/unictype/category-and-not-tests (Files): Likewise.
5736         * modules/unictype/category-and-tests (Files): Likewise.
5737         * modules/unictype/category-byname-tests (Files): Likewise.
5738         * modules/unictype/category-name-tests (Files): Likewise.
5739         * modules/unictype/category-none-tests (Files): Likewise.
5740         * modules/unictype/category-of-tests (Files): Likewise.
5741         * modules/unictype/category-or-tests (Files): Likewise.
5742         * modules/unictype/category-test-withtable-tests (Files): Likewise.
5743         * modules/unictype/combining-class-tests (Files): Likewise.
5744         * modules/unictype/ctype-alnum-tests (Files): Likewise.
5745         * modules/unictype/ctype-alpha-tests (Files): Likewise.
5746         * modules/unictype/ctype-blank-tests (Files): Likewise.
5747         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
5748         * modules/unictype/ctype-digit-tests (Files): Likewise.
5749         * modules/unictype/ctype-graph-tests (Files): Likewise.
5750         * modules/unictype/ctype-lower-tests (Files): Likewise.
5751         * modules/unictype/ctype-print-tests (Files): Likewise.
5752         * modules/unictype/ctype-punct-tests (Files): Likewise.
5753         * modules/unictype/ctype-space-tests (Files): Likewise.
5754         * modules/unictype/ctype-upper-tests (Files): Likewise.
5755         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
5756         * modules/unictype/decimal-digit-tests (Files): Likewise.
5757         * modules/unictype/digit-tests (Files): Likewise.
5758         * modules/unictype/mirror-tests (Files): Likewise.
5759         * modules/unictype/numeric-tests (Files): Likewise.
5760         * modules/unictype/property-alphabetic-tests (Files): Likewise.
5761         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
5762         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
5763         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
5764         Likewise.
5765         * modules/unictype/property-bidi-block-separator-tests (Files):
5766         Likewise.
5767         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
5768         Likewise.
5769         * modules/unictype/property-bidi-common-separator-tests (Files):
5770         Likewise.
5771         * modules/unictype/property-bidi-control-tests (Files): Likewise.
5772         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
5773         Likewise.
5774         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
5775         Likewise.
5776         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
5777         Likewise.
5778         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
5779         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
5780         Likewise.
5781         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
5782         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
5783         Likewise.
5784         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
5785         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
5786         * modules/unictype/property-bidi-segment-separator-tests (Files):
5787         Likewise.
5788         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
5789         * modules/unictype/property-byname-tests (Files): Likewise.
5790         * modules/unictype/property-combining-tests (Files): Likewise.
5791         * modules/unictype/property-composite-tests (Files): Likewise.
5792         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
5793         * modules/unictype/property-dash-tests (Files): Likewise.
5794         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
5795         * modules/unictype/property-default-ignorable-code-point-tests (Files):
5796         Likewise.
5797         * modules/unictype/property-deprecated-tests (Files): Likewise.
5798         * modules/unictype/property-diacritic-tests (Files): Likewise.
5799         * modules/unictype/property-extender-tests (Files): Likewise.
5800         * modules/unictype/property-format-control-tests (Files): Likewise.
5801         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
5802         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
5803         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
5804         * modules/unictype/property-hex-digit-tests (Files): Likewise.
5805         * modules/unictype/property-hyphen-tests (Files): Likewise.
5806         * modules/unictype/property-id-continue-tests (Files): Likewise.
5807         * modules/unictype/property-id-start-tests (Files): Likewise.
5808         * modules/unictype/property-ideographic-tests (Files): Likewise.
5809         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
5810         * modules/unictype/property-ids-trinary-operator-tests (Files):
5811         Likewise.
5812         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
5813         * modules/unictype/property-iso-control-tests (Files): Likewise.
5814         * modules/unictype/property-join-control-tests (Files): Likewise.
5815         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
5816         * modules/unictype/property-line-separator-tests (Files): Likewise.
5817         * modules/unictype/property-logical-order-exception-tests (Files):
5818         Likewise.
5819         * modules/unictype/property-lowercase-tests (Files): Likewise.
5820         * modules/unictype/property-math-tests (Files): Likewise.
5821         * modules/unictype/property-non-break-tests (Files): Likewise.
5822         * modules/unictype/property-not-a-character-tests (Files): Likewise.
5823         * modules/unictype/property-numeric-tests (Files): Likewise.
5824         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
5825         * modules/unictype/property-other-default-ignorable-code-point-tests
5826         (Files): Likewise.
5827         * modules/unictype/property-other-grapheme-extend-tests (Files):
5828         Likewise.
5829         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
5830         * modules/unictype/property-other-id-start-tests (Files): Likewise.
5831         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
5832         * modules/unictype/property-other-math-tests (Files): Likewise.
5833         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
5834         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
5835         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
5836         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
5837         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
5838         * modules/unictype/property-private-use-tests (Files): Likewise.
5839         * modules/unictype/property-punctuation-tests (Files): Likewise.
5840         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
5841         * modules/unictype/property-radical-tests (Files): Likewise.
5842         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
5843         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
5844         * modules/unictype/property-space-tests (Files): Likewise.
5845         * modules/unictype/property-terminal-punctuation-tests (Files):
5846         Likewise.
5847         * modules/unictype/property-test-tests (Files): Likewise.
5848         * modules/unictype/property-titlecase-tests (Files): Likewise.
5849         * modules/unictype/property-unassigned-code-value-tests (Files):
5850         Likewise.
5851         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
5852         * modules/unictype/property-uppercase-tests (Files): Likewise.
5853         * modules/unictype/property-variation-selector-tests (Files): Likewise.
5854         * modules/unictype/property-white-space-tests (Files): Likewise.
5855         * modules/unictype/property-xid-continue-tests (Files): Likewise.
5856         * modules/unictype/property-xid-start-tests (Files): Likewise.
5857         * modules/unictype/property-zero-width-tests (Files): Likewise.
5858         * modules/unictype/scripts-tests (Files): Likewise.
5859         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
5860         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
5861         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
5862         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
5863         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
5864         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
5865         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
5866         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
5867         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
5868         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
5869         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
5870         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
5871         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
5872         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
5873         * modules/uninorm/composition-tests (Files): Likewise.
5874         * modules/uninorm/decomposing-form-tests (Files): Likewise.
5875         * modules/uninorm/decomposition-tests (Files): Likewise.
5876         * modules/uninorm/filter-tests (Files): Likewise.
5877         * modules/uninorm/nfc-tests (Files): Likewise.
5878         * modules/uninorm/nfd-tests (Files): Likewise.
5879         * modules/uninorm/nfkc-tests (Files): Likewise.
5880         * modules/uninorm/nfkd-tests (Files): Likewise.
5881         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
5882         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
5883         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
5884         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
5885         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
5886         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
5887         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
5888         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
5889         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
5890         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
5891         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
5892         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
5893         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
5894         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
5895         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
5896         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
5897         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
5898         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
5899         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
5900         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
5901         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
5902         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
5903         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
5904         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
5905         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
5906         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
5907         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
5908         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
5909         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
5910         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
5911         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
5912         * modules/uniwidth/u8-width-tests (Files): Likewise.
5913         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
5914         * modules/uniwidth/u16-width-tests (Files): Likewise.
5915         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
5916         * modules/uniwidth/u32-width-tests (Files): Likewise.
5917         * modules/uniwidth/width-tests (Files): Likewise.
5918         * modules/unlink-tests (Files): Likewise.
5919         * modules/unsetenv-tests (Files): Likewise.
5920         * modules/usleep-tests (Files): Likewise.
5921         * modules/utimens-tests (Files): Likewise.
5922         * modules/utimensat-tests (Files): Likewise.
5923         * modules/vasnprintf-posix-tests (Files): Likewise.
5924         * modules/vasnprintf-tests (Files): Likewise.
5925         * modules/vasprintf-posix-tests (Files): Likewise.
5926         * modules/vasprintf-tests (Files): Likewise.
5927         * modules/vdprintf-posix-tests (Files): Likewise.
5928         * modules/vfprintf-posix-tests (Files): Likewise.
5929         * modules/vprintf-posix-tests (Files): Likewise.
5930         * modules/vsnprintf-posix-tests (Files): Likewise.
5931         * modules/vsnprintf-tests (Files): Likewise.
5932         * modules/vsprintf-posix-tests (Files): Likewise.
5933         * modules/wcrtomb-tests (Files): Likewise.
5934         * modules/wcsnrtombs-tests (Files): Likewise.
5935         * modules/wcsrtombs-tests (Files): Likewise.
5936         * modules/wctype-tests (Files): Likewise.
5937         * modules/wcwidth-tests (Files): Likewise.
5938         * modules/xmemdup0-tests (Files): Likewise.
5939         * modules/xprintf-posix-tests (Files): Likewise.
5940         * modules/xvasprintf-tests (Files): Likewise.
5941
5942 2009-12-24  Eric Blake  <ebb9@byu.net>
5943
5944         test-nanosleep: fix typo
5945         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
5946         patch.
5947         Reported by Bruno Haible.
5948
5949 2009-12-24  Bruno Haible  <bruno@clisp.org>
5950
5951         Reduce namespace pollution on glibc systems.
5952         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
5953         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
5954         systems.
5955         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
5956         <getopt.h> on glibc systems.
5957         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
5958         systems.
5959         * lib/fcntl.c: Include <unistd.h> here instead.
5960
5961 2009-12-24  Bruno Haible  <bruno@clisp.org>
5962
5963         * lib/stdlib.in.h (includes): Fix typo in today's commit.
5964
5965 2009-12-24  Eric Blake  <ebb9@byu.net>
5966
5967         tests: add signature checks
5968         * tests/signature.h (SIGNATURE_CHECK): New file.
5969         * modules/atexit-tests (Files): Use it.
5970         * modules/btowc-tests (Files): Likewise.
5971         * modules/canonicalize-lgpl-tests (Files): Likewise.
5972         * modules/ceilf-tests (Files): Likewise.
5973         * modules/ceill-tests (Files): Likewise.
5974         * modules/chown-tests (Files): Likewise.
5975         * modules/dprintf-posix-tests (Files): Likewise.
5976         * modules/dup2-tests (Files): Likewise.
5977         * modules/dup3-tests (Files): Likewise.
5978         * modules/duplocale-tests (Files): Likewise.
5979         * modules/fchdir-tests (Files): Likewise.
5980         * modules/fcntl-tests (Files): Likewise.
5981         * modules/fdopendir-tests (Files): Likewise.
5982         * modules/fflush-tests (Files): Likewise.
5983         * modules/flock-tests (Files): Likewise.
5984         * modules/floorf-tests (Files): Likewise.
5985         * modules/floorl-tests (Files): Likewise.
5986         * modules/fnmatch-tests (Files): Likewise.
5987         * modules/fopen-tests (Files): Likewise.
5988         * modules/fprintf-posix-tests (Files): Likewise.
5989         * modules/freopen-tests (Files): Likewise.
5990         * modules/frexp-nolibm-tests (Files): Likewise.
5991         * modules/frexp-tests (Files): Likewise.
5992         * modules/frexpl-nolibm-tests (Files): Likewise.
5993         * modules/frexpl-tests (Files): Likewise.
5994         * modules/fseek-tests (Files): Likewise.
5995         * modules/fseeko-tests (Files): Likewise.
5996         * modules/fsync-tests (Files): Likewise.
5997         * modules/ftell-tests (Files): Likewise.
5998         * modules/ftello-tests (Files): Likewise.
5999         * modules/futimens-tests (Files): Likewise.
6000         * modules/getaddrinfo-tests (Files): Likewise.
6001         * modules/getcwd-tests (Files): Likewise.
6002         * modules/getdelim-tests (Files): Likewise.
6003         * modules/getdtablesize-tests (Files): Likewise.
6004         * modules/getgroups-tests (Files): Likewise.
6005         * modules/gethostname-tests (Files): Likewise.
6006         * modules/getline-tests (Files): Likewise.
6007         * modules/getopt-posix-tests (Files): Likewise.
6008         * modules/gettimeofday-tests (Files): Likewise.
6009         * modules/glob-tests (Files): Likewise.
6010         * modules/iconv-tests (Files): Likewise.
6011         * modules/inet_ntop-tests (Files): Likewise.
6012         * modules/inet_pton-tests (Files): Likewise.
6013         * modules/isblank-tests (Files): Likewise.
6014         * modules/lchown-tests (Files): Likewise.
6015         * modules/ldexpl-tests (Files): Likewise.
6016         * modules/link-tests (Files): Likewise.
6017         * modules/linkat-tests (Files): Likewise.
6018         * modules/lseek-tests (Files): Likewise.
6019         * modules/lstat-tests (Files): Likewise.
6020         * modules/mbrtowc-tests (Files): Likewise.
6021         * modules/mbsinit-tests (Files): Likewise.
6022         * modules/mbsnrtowcs-tests (Files): Likewise.
6023         * modules/mbsrtowcs-tests (Files): Likewise.
6024         * modules/memchr-tests (Files): Likewise.
6025         * modules/memcmp-tests (Files): Likewise.
6026         * modules/memmem-tests (Files): Likewise.
6027         * modules/memrchr-tests (Files): Likewise.
6028         * modules/mkdir-tests (Files): Likewise.
6029         * modules/mkfifo-tests (Files): Likewise.
6030         * modules/mkfifoat-tests (Files): Likewise.
6031         * modules/mknod-tests (Files): Likewise.
6032         * modules/nanosleep-tests (Files): Likewise.
6033         * modules/nl_langinfo-tests (Files): Likewise.
6034         * modules/obstack-printf-tests (Files): Likewise.
6035         * modules/open-tests (Files): Likewise.
6036         * modules/openat-tests (Files): Likewise.
6037         * modules/perror-tests (Files): Likewise.
6038         * modules/pipe2-tests (Files): Likewise.
6039         * modules/poll-tests (Files): Likewise.
6040         * modules/popen-tests (Files): Likewise.
6041         * modules/posix_spawn-tests (Files): Likewise.
6042         * modules/posix_spawnp-tests (Files): Likewise.
6043         * modules/pread-tests (Files): Likewise.
6044         * modules/printf-posix-tests (Files): Likewise.
6045         * modules/pty-tests (Files): Likewise.
6046         * modules/random_r-tests (Files): Likewise.
6047         * modules/rawmemchr-tests (Files): Likewise.
6048         * modules/readlink-tests (Files): Likewise.
6049         * modules/remove-tests (Files): Likewise.
6050         * modules/rename-tests (Files): Likewise.
6051         * modules/renameat-tests (Files): Likewise.
6052         * modules/rmdir-tests (Files): Likewise.
6053         * modules/round-tests (Files): Likewise.
6054         * modules/roundf-tests (Files): Likewise.
6055         * modules/roundl-tests (Files): Likewise.
6056         * modules/select-tests (Files): Likewise.
6057         * modules/setenv-tests (Files): Likewise.
6058         * modules/sigaction-tests (Files): Likewise.
6059         * modules/sleep-tests (Files): Likewise.
6060         * modules/snprintf-posix-tests (Files): Likewise.
6061         * modules/snprintf-tests (Files): Likewise.
6062         * modules/sprintf-posix-tests (Files): Likewise.
6063         * modules/stat-tests (Files): Likewise.
6064         * modules/strcasestr-tests (Files): Likewise.
6065         * modules/strchrnul-tests (Files): Likewise.
6066         * modules/strerror-tests (Files): Likewise.
6067         * modules/strsignal-tests (Files): Likewise.
6068         * modules/strstr-tests (Files): Likewise.
6069         * modules/strtod-tests (Files): Likewise.
6070         * modules/strverscmp-tests (Files): Likewise.
6071         * modules/symlink-tests (Files): Likewise.
6072         * modules/symlinkat-tests (Files): Likewise.
6073         * modules/times-tests (Files): Likewise.
6074         * modules/trunc-tests (Files): Likewise.
6075         * modules/truncf-tests (Files): Likewise.
6076         * modules/truncl-tests (Files): Likewise.
6077         * modules/tsearch-tests (Files): Likewise.
6078         * modules/uname-tests (Files): Likewise.
6079         * modules/unlink-tests (Files): Likewise.
6080         * modules/unsetenv-tests (Files): Likewise.
6081         * modules/usleep-tests (Files): Likewise.
6082         * modules/utimensat-tests (Files): Likewise.
6083         * modules/vasprintf-tests (Files): Likewise.
6084         * modules/vdprintf-posix-tests (Files): Likewise.
6085         * modules/vfprintf-posix-tests (Files): Likewise.
6086         * modules/vprintf-posix-tests (Files): Likewise.
6087         * modules/vsnprintf-posix-tests (Files): Likewise.
6088         * modules/vsnprintf-tests (Files): Likewise.
6089         * modules/vsprintf-posix-tests (Files): Likewise.
6090         * modules/wcrtomb-tests (Files): Likewise.
6091         * modules/wcsnrtombs-tests (Files): Likewise.
6092         * modules/wcsrtombs-tests (Files): Likewise.
6093         * modules/wcwidth-tests (Files): Likewise.
6094         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6095         * tests/test-isinf.c (isinf): Likewise.
6096         * tests/test-isnan.c (isnan): Likewise.
6097         * tests/test-signbit.c (signbit): Likewise.
6098         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6099         declaration, either as macro or with correct signature.
6100         (select): Ensure function under test is declared with correct
6101         signature in correct header.
6102         * tests/test-atexit.c (atexit): Likewise.
6103         * tests/test-btowc.c (btowc): Likewise.
6104         * tests/test-canonicalize-lgpl.c (realpath)
6105         (canonicalize_file_name): Likewise.
6106         * tests/test-ceilf1.c (ceilf): Likewise.
6107         * tests/test-ceill.c (ceill): Likewise.
6108         * tests/test-chown.c (chown): Likewise.
6109         * tests/test-dprintf-posix.c (dprintf): Likewise.
6110         * tests/test-dup2.c (dup2): Likewise.
6111         * tests/test-dup3.c (dup3): Likewise.
6112         * tests/test-duplocale.c (duplocale): Likewise.
6113         * tests/test-fchdir.c (fchdir): Likewise.
6114         * tests/test-fchownat.c (fchownat): Likewise.
6115         * tests/test-fcntl.c (fcntl): Likewise.
6116         * tests/test-fdopendir.c (fdopendir): Likewise.
6117         * tests/test-fflush.c (fflush): Likewise.
6118         * tests/test-flock.c (flock): Likewise.
6119         * tests/test-floorf1.c (floorf): Likewise.
6120         * tests/test-floorl.c (floorl): Likewise.
6121         * tests/test-fnmatch.c (fnmatch): Likewise.
6122         * tests/test-fopen.c (fopen): Likewise.
6123         * tests/test-fprintf-posix.c (fprintf): Likewise.
6124         * tests/test-freopen.c (freopen): Likewise.
6125         * tests/test-frexp.c (frexp): Likewise.
6126         * tests/test-frexpl.c (frexpl): Likewise.
6127         * tests/test-fseek.c (fseek): Likewise.
6128         * tests/test-fseeko.c (fseeko): Likewise.
6129         * tests/test-fstatat.c (fstatat): Likewise.
6130         * tests/test-fsync.c (fsync): Likewise.
6131         * tests/test-ftell.c (ftell): Likewise.
6132         * tests/test-ftello.c (ftello): Likewise.
6133         * tests/test-futimens.c (futimens): Likewise.
6134         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6135         (gai_strerror): Likewise.
6136         * tests/test-getcwd.c (getcwd): Likewise.
6137         * tests/test-getdelim.c (getdelim): Likewise.
6138         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6139         * tests/test-getgroups.c (getgroups): Likewise.
6140         * tests/test-gethostname.c (gethostname): Likewise.
6141         * tests/test-getline.c (getline): Likewise.
6142         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6143         Likewise.
6144         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6145         * tests/test-glob.c (glob, globfree): Likewise.
6146         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6147         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6148         * tests/test-inet_pton.c (inet_pton): Likewise.
6149         * tests/test-isblank.c (isblank): Likewise.
6150         * tests/test-lchown.c (lchown): Likewise.
6151         * tests/test-ldexpl.c (ldexpl): Likewise.
6152         * tests/test-link.c (link): Likewise.
6153         * tests/test-linkat.c (linkat): Likewise.
6154         * tests/test-lseek.c (lseek): Likewise.
6155         * tests/test-lstat.c (lstat): Likewise.
6156         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6157         * tests/test-mbsinit.c (mbsinit): Likewise.
6158         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6159         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6160         * tests/test-memchr.c (memchr): Likewise.
6161         * tests/test-memcmp.c (memcmp): Likewise.
6162         * tests/test-memmem.c (memmem): Likewise.
6163         * tests/test-memrchr.c (memrchr): Likewise.
6164         * tests/test-mkdir.c (mkdir): Likewise.
6165         * tests/test-mkdirat.c (mkdirat): Likewise.
6166         * tests/test-mkfifo.c (mkfifo): Likewise.
6167         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6168         * tests/test-mknod.c (mknod): Likewise.
6169         * tests/test-nanosleep.c (nanosleep): Likewise.
6170         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6171         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6172         Likewise.
6173         * tests/test-open.c (open): Likewise.
6174         * tests/test-openat.c (openat): Likewise.
6175         * tests/test-perror.c (perror): Likewise.
6176         * tests/test-pipe2.c (pipe2): Likewise.
6177         * tests/test-poll.c (poll): Likewise.
6178         * tests/test-popen.c (popen, pclose): Likewise.
6179         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6180         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6181         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6182         (posix_spawn_file_actions_destroy)
6183         (posix_spawn_file_actions_addclose)
6184         (posix_spawn_file_actions_addopen)
6185         (posix_spawn_file_actions_adddup2): Likewise.
6186         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6187         * tests/test-pread.c (pread): Likewise.
6188         * tests/test-printf-posix.c (printf): Likewise.
6189         * tests/test-pty.c (openpty, forkpty): Likewise.
6190         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6191         (random_r): Likewise.
6192         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6193         * tests/test-readlink.c (readlink): Likewise.
6194         * tests/test-remove.c (remove): Likewise.
6195         * tests/test-rename.c (rename): Likewise.
6196         * tests/test-renameat.c (renameat): Likewise.
6197         * tests/test-rmdir.c (rmdir): Likewise.
6198         * tests/test-round1.c (round): Likewise.
6199         * tests/test-roundf1.c (roundf): Likewise.
6200         * tests/test-roundl.c (roundl): Likewise.
6201         * tests/test-setenv.c (setenv): Likewise.
6202         * tests/test-sigaction.c (sigaction): Likewise.
6203         * tests/test-sleep.c (sleep): Likewise.
6204         * tests/test-snprintf.c (snprintf): Likewise.
6205         * tests/test-sprintf-posix.c (sprintf): Likewise.
6206         * tests/test-stat.c (stat): Likewise.
6207         * tests/test-stpncpy.c (stpncpy): Likewise.
6208         * tests/test-strcasestr.c (strcasestr): Likewise.
6209         * tests/test-strchrnul.c (strchrnul): Likewise.
6210         * tests/test-strerror.c (strerror): Likewise.
6211         * tests/test-strsignal.c (strsignal): Likewise.
6212         * tests/test-strstr.c (strstr): Likewise.
6213         * tests/test-strtod.c (strtod): Likewise.
6214         * tests/test-strverscmp.c (strverscmp): Likewise.
6215         * tests/test-symlink.c (symlink): Likewise.
6216         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6217         * tests/test-times.c (times): Likewise.
6218         * tests/test-trunc1.c (trunc): Likewise.
6219         * tests/test-truncf1.c (truncf): Likewise.
6220         * tests/test-truncl.c (truncl): Likewise.
6221         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6222         Likewise.
6223         * tests/test-uname.c (uname): Likewise.
6224         * tests/test-unlink.c (unlink): Likewise.
6225         * tests/test-unlinkat.c (unlinkat): Likewise.
6226         * tests/test-unsetenv.c (unsetenv): Likewise.
6227         * tests/test-usleep.c (usleep): Likewise.
6228         * tests/test-utimensat.c (utimensat): Likewise.
6229         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6230         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6231         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6232         * tests/test-vprintf-posix.c (vprintf): Likewise.
6233         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6234         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6235         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6236         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6237         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6238         * tests/test-wcwidth.c (wcwidth): Likewise.
6239
6240         build: pull in conditional headers during GNULIB_POSIXCHECK
6241         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6242         definitions from any conditionally-included headers.
6243         * lib/stdlib.in.h (includes): Likewise.
6244         * lib/unistd.in.h (includes): Likewise.
6245
6246 2009-12-24  Bruno Haible  <bruno@clisp.org>
6247
6248         * tests/test-argv-iter.c: Include header file being tested immediately
6249         after config.h.
6250         * tests/test-base64.c: Likewise.
6251         * tests/test-flock.c: Likewise.
6252         * tests/test-fsync.c: Likewise.
6253         * tests/test-getdate.c: Likewise.
6254         * tests/test-getndelim2.c: Likewise.
6255         * tests/test-isfinite.c: Likewise.
6256         * tests/test-isinf.c: Likewise.
6257         * tests/test-strerror.c: Likewise.
6258         * tests/test-strsignal.c: Likewise.
6259
6260 2009-12-23  Eric Blake  <ebb9@byu.net>
6261
6262         unistd: work around cygwin bug
6263         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6264         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6265         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6266
6267 2009-12-23  Bruno Haible  <bruno@clisp.org>
6268
6269         localename: More tests.
6270         * tests/test-localename.c (SIZEOF): New macro.
6271         (categories): New variable.
6272         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6273         test_locale_name_default): Add test w.r.t. thread locale.
6274         (test_locale_name_thread): New function.
6275         (main): Invoke it.
6276
6277         localename: Make aware of thread locale.
6278         * lib/localename.h (gl_locale_name_thread): New declaration.
6279         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6280         behaviour with respect to thread locale.
6281         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6282         <langinfo.h>, glthread/lock.h.
6283         (SIZE_BITS): New macro.
6284         (string_hash): New function.
6285         (struct hash_node): New type.
6286         (HASH_TABLE_SIZE): New macro.
6287         (struniq_hash_table, struniq_lock): New variables.
6288         (struniq): New function.
6289         (gl_locale_name_thread): New function.
6290         (gl_locale_name): Invoke it.
6291         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6292         * modules/localename (Depends-on): Add lock.
6293         Reported by Mike Gran <spk121@yahoo.com>.
6294
6295 2009-12-23  Eric Blake  <ebb9@byu.net>
6296
6297         va-args: new module
6298         * modules/va-args: New file.
6299         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6300         * MODULES.html.sh (Core language properties): Mention it.
6301
6302         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6303         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6304         named alias for __attribute__((__unused__)).
6305         * lib/chown.c: Update client.
6306         * lib/fchmodat.c: Likewise.
6307         * lib/fts.c: Likewise.
6308         * lib/getdate.y: Likewise.
6309         * lib/getgroups.c: Likewise.
6310         * lib/getopt.c: Likewise.
6311         * lib/getugroups.c: Likewise.
6312         * lib/mkdir.c: Likewise.
6313         * lib/mkfifo.c: Likewise.
6314         * lib/mkfifoat.c: Likewise.
6315         * lib/mknod.c: Likewise.
6316         * lib/mknodat.c: Likewise.
6317         * lib/readlink.c: Likewise.
6318         * lib/se-context.in.h: Likewise.
6319         * lib/se-selinux.in.h: Likewise.
6320         * lib/sockets.c: Likewise.
6321         * lib/symlink.c: Likewise.
6322         * lib/symlinkat.c: Likewise.
6323         * lib/unicodeio.c: Likewise.
6324         * lib/unistr.h: Likewise.
6325         * tests/test-areadlink.c: Likewise.
6326         * tests/test-areadlinkat.c: Likewise.
6327         * tests/test-filenamecat.c: Likewise.
6328         * tests/test-fseeko.c: Likewise.
6329         * tests/test-ftello.c: Likewise.
6330         * tests/test-getdate.c: Likewise.
6331         * tests/test-getgroups.c: Likewise.
6332         * tests/test-gethostname.c: Likewise.
6333         * tests/test-quotearg.c: Likewise.
6334         * tests/test-version-etc.c: Likewise.
6335         * tests/test-xalloc-die.c: Likewise.
6336         * tests/test-xfprintf-posix.c: Likewise.
6337         * tests/test-xprintf-posix.c: Likewise.
6338         * tests/test-xvasprintf.c: Likewise.
6339
6340         tests: avoid compiler warnings
6341         * tests/test-fcntl.c (main): Delete unused parameters.
6342         * tests/test-freopen-safer.c (main): Likewise.
6343         * tests/test-xalloc-die.c (main): Mark unused parameters.
6344         * tests/test-fseeko.c (main): Likewise.
6345         * tests/test-ftello.c (main): Likewise.
6346         * tests/test-nanosleep.c (main): Avoid declaration warning.
6347         * tests/test-sleep.c (main): Likewise.
6348         * tests/test-unsetenv.c (main): Silence warning about string
6349         literal.
6350         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6351
6352 2009-12-23  Bruno Haible  <bruno@clisp.org>
6353
6354         * tests/test-localename.c (test_locale_name): New function, extracted
6355         from main. Also test mixed situations.
6356         (test_locale_name_posix, test_locale_name_environ,
6357         test_locale_name_default): New functions.
6358         (main): Invoke them all.
6359         * modules/localename-tests (configure.ac): Test for newlocale.
6360
6361 2009-12-23  Bruno Haible  <bruno@clisp.org>
6362
6363         unistd: Ensure getcwd gets declared before being overridden.
6364         * lib/unistd.in.h: Conditionally include <io.h>.
6365
6366 2009-12-22  Bruno Haible  <bruno@clisp.org>
6367
6368         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6369         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6370         (gl_WCHAR_H): Invoke it.
6371         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6372         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6373         Reported by Karl Berry <karl@freefriends.org>.
6374
6375 2009-12-22  Eric Blake  <ebb9@byu.net>
6376
6377         math, unistd: avoid redundant includes
6378         * lib/math.in.h (isnan): No need to re-include <math.h>.
6379         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6380
6381         getsubopt: work around cygwin bug
6382         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6383         avoid conflicting with system getsubopt.
6384         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6385         bug.
6386
6387         getopt: synchronize from glibc
6388         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6389         parameter order.  Adjust all callers.
6390         (_getopt_internal_r, main): Adjust quoting in error messages.
6391         Drop considerations for outdated POSIX 1003.2 error message.
6392         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6393         callers.
6394         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6395
6396         test-getopt: test stderr behavior
6397         * modules/getopt-posix-tests (Depends-on): Add dup2.
6398         * tests/test-getopt.c (ASSERT): Avoid stderr.
6399         (main): Move stderr to a temporary file.
6400         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6401         Instead, add parameter to inform caller if output occurred.
6402         (test_getopt): Adjust all existing tests to expect silence, and
6403         add new tests of leading ":".
6404         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6405         glibc shortcomings with leading "-:" or "+:" in optstring.
6406         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6407         Likewise.
6408         * doc/posix-functions/getopt.texi (getopt): Likewise.
6409
6410         test-getopt: enhance test
6411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6412         supports optind=0.
6413         * tests/test-getopt.c (OPTIND_MIN): Move...
6414         * tests/test-getopt.h (OPTIND_MIN): ...here.
6415         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6416         Require that optind=0 works, since modern BSD supports it in
6417         addition to optreset, and since coreutils expects it.
6418         (test_getopt_long_only): New test.
6419         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6420         glibc shortcomings with 'W;', and enforcement of optind=0.
6421         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6422         Likewise.
6423
6424 2009-12-21  Bruno Haible  <bruno@clisp.org>
6425
6426         localename: Improvements for MacOS X and Cygwin.
6427         * lib/localename.h (gl_locale_name_environ): New declaration.
6428         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6429         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6430         (gl_locale_name_posix): Invoke it.
6431         (gl_locale_name_default): Add comments. Use Windows native API also on
6432         Cygwin.
6433
6434 2009-12-21  Bruno Haible  <bruno@clisp.org>
6435
6436         Update list of Win32 locale ids.
6437         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6438         (LANG_SAMI): Renamed from LANG_SAAMI.
6439         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6440         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6441         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6442         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6443         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6444         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6445         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6446         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6447         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6448         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6449         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6450         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6451         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6452         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6453         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6454         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6455         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6456         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6457         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6458         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6459         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6460         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6461         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6462         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6463         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6464         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6465         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6466         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6467         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6468         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6469         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6470         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6471         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6472         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6473         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6474         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6475         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6476         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6477         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6478         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6479         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6480         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6481         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6482         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6483         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6484         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6485         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6486         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6487         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6488         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6489         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6490         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6491         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6492         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6493         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6494         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6495         Add more languages and countries for Sami, Sorbian. Add more countries
6496         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6497         for Pashto. Change country for Syriac, Tswana.
6498
6499 2009-12-21  Eric Blake  <ebb9@byu.net>
6500
6501         test-utimens: avoid spurious failure
6502         * tests/test-chown.h (nap): Factor...
6503         * tests/nap.h: ...into new file.
6504         * tests/test-lchown.h (nap): Avoid duplication.
6505         * tests/test-utimens-common.h (nap): Use shared implementation,
6506         necessary on file systems with 1-second resolution.
6507         * modules/chown-tests (Files): Include new file.
6508         * modules/fdutimensat-tests (Files): Likewise.
6509         * modules/futimens-tests (Files): Likewise.
6510         * modules/lchown-tests (Files): Likewise.
6511         * modules/openat-tests (Files): Likewise.
6512         * modules/utimens-tests (Files): Likewise.
6513         * modules/utimensat-tests (Files): Likewise.
6514
6515 2009-12-19  Eric Blake  <ebb9@byu.net>
6516
6517         futimens, utimensat: work around Linux bug
6518         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6519         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6520         * lib/utimensat.c (rpl_utimensat): Work around it.
6521         * lib/futimens.c (rpl_futimens): Adjust comment.
6522
6523         utimens: work around Linux ctime bug
6524         * lib/utimens.c (detect_ctime_bug): New helper function.
6525         (update_timespec): Differentiate between workaround needed for
6526         this bug vs. what is needed for systems that lack utimensat.
6527         (fdutimens, lutimens): Work around bug.
6528
6529         utimens: check for ctime update
6530         * tests/test-utimens-common.h (check_ctime): Define.
6531         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6532         * tests/test-futimens.h (test_futimens): Likewise.
6533         * tests/test-lutimens.h (test_lutimens): Likewise.
6534         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6535         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6536
6537 2009-12-19  Bruno Haible  <bruno@clisp.org>
6538
6539         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6540         * tests/test-dprintf-posix2.sh: New file.
6541         * tests/test-dprintf-posix2.c: New file.
6542         * modules/dprintf-posix-tests (Files): Add them.
6543         (configure.ac): Check for getrlimit and setrlimit.
6544         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6545
6546 2009-12-19  Bruno Haible  <bruno@clisp.org>
6547
6548         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6549         * tests/test-fprintf-posix3.sh: New file.
6550         * tests/test-fprintf-posix3.c: New file.
6551         * modules/fprintf-posix-tests (Files): Add them.
6552         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6553
6554 2009-12-19  Eric Blake  <ebb9@byu.net>
6555
6556         dirfd: fix prototype
6557         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6558         * lib/dirfd.c (dirfd): Likewise.
6559
6560         canonicalize: reduce memory usage
6561         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6562         allocation to size.
6563         Reported by Solar Designer <solar@openwall.com>.
6564
6565 2009-12-19  Bruno Haible  <bruno@clisp.org>
6566
6567         New module attribute 'Applicability'.
6568         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6569         * gnulib-tool: New option --extract-applicability.
6570         (func_usage): Document it.
6571         (sed_extract_prog): Recognize it.
6572         (func_get_applicability): New function.
6573         (func_import): Generalize handling of 'link-warning' module.
6574         * modules/link-warning (Applicability): New section.
6575         * modules/arg-nonnull (Applicability): New section.
6576         Repoted by Simon Josefsson <simon@josefsson.org>.
6577
6578 2009-12-19  Bruno Haible  <bruno@clisp.org>
6579
6580         fflush: tweak
6581         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6582         * lib/fseeko.c (rpl_fseeko): Likewise.
6583
6584 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6585
6586         * lib/gl_list.h: Fix typo in comment.
6587
6588 2009-12-16  Eric Blake  <ebb9@byu.net>
6589
6590         fcntl: use to simplify other modules
6591         * modules/cloexec (Depends-on): Add fcntl.
6592         * modules/fchdir (Depends-on): Likewise.
6593         * modules/fd-safer-flag (Depends-on): Likewise.
6594         * modules/unistd-safer (Depends-on): Likewise.
6595         * modules/dup3 (configure.ac): Set module indicator.
6596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6597         missing.
6598         * lib/fchdir.c (_gl_register_dup): Fix comment.
6599         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6600         * lib/dup-safer.c (dup_safer): Likewise.
6601         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6602         * lib/dup3.c (dup3): Likewise.
6603         * tests/test-fchdir.c (main): Enhance test.
6604         Fixes a dup_cloexec bug reported by Ondřej Vašík.
6605
6606         fcntl: port portions of fcntl to mingw
6607         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6608         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6609         replacement for mingw.
6610         * modules/fcntl (Description): Update.
6611         (Depends-on): Add dup2.
6612         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6613         * modules/fcntl-h (Makefile.am): Substitute it.
6614         * lib/fcntl.in.h (fcntl): Update declaration.
6615         (F_DUPFD, F_GETFD): New macros, when needed.
6616         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6617         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
6618         * tests/test-fcntl.c (check_flags, main): Enhance test for items
6619         we now guarantee.
6620
6621         fcntl: work around cygwin bug in F_DUPFD
6622         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
6623         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
6624         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
6625         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
6626         * doc/posix-functions/fcntl.texi (fcntl): Document it.
6627
6628         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
6629         * modules/fcntl (Files): List new files.
6630         (configure.ac): Run a test.
6631         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
6632         * lib/fcntl.c (rpl_fcntl): Likewise.
6633         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
6634         (gl_FCNTL_H): Always replace fcntl.h.
6635         * modules/fcntl-h (Makefile.am): Substitute witnesses.
6636         * lib/fcntl.in.h (fcntl): Declare replacement.
6637         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
6638         needed, plus a witness.
6639         * doc/posix-functions/fcntl.texi (fcntl): Document this.
6640         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6641         * tests/test-fcntl.c: New file.
6642         * modules/fcntl-tests: Likewise.
6643
6644         binary-io: avoid potential compilation warning
6645         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
6646         directives.
6647
6648         fflush: avoid compilation error on NetBSD
6649         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
6650         between off_t and fpos_t, since the latter is sometimes a struct.
6651         * lib/fseeko.c (rpl_fseeko): Likewise.
6652         Reported by Alexander Nasonov <alnsn@yandex.ru>.
6653
6654 2009-12-15  Eric Blake  <ebb9@byu.net>
6655
6656         fcntl-h, stdio, sys_ioctl: fix declarations
6657         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
6658         function must not take arguments.
6659         * lib/sys_ioctl.in.h (ioctl): Likewise.
6660         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
6661         (open): Add a link warning.
6662
6663 2009-12-15  Jim Meyering  <meyering@redhat.com>
6664
6665         areadlink, areadlink-with-size: relax license to LGPLv2+
6666         * modules/areadlink (License): Relax to LGPLv2+.
6667         * modules/areadlink-with-size (License): Likewise.
6668
6669 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
6670             Bruno Haible  <bruno@clisp.org>
6671
6672         *printf: Fix memory leak.
6673         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
6674         * lib/vfprintf.c (vfprintf): Likewise.
6675         * lib/dprintf.c (dprintf): Likewise.
6676         * lib/vdprintf.c (vdprintf): Likewise.
6677
6678 2009-12-14  Eric Blake  <ebb9@byu.net>
6679
6680         accept4: adjust module dependencies
6681         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
6682
6683         utimens: one more try at avoiding compiler warning
6684         * lib/utimens.c (lutimens): Lower scope of result.
6685
6686 2009-12-13  Bruno Haible  <bruno@clisp.org>
6687
6688         Move the malloc checking from module 'list' to new module 'xlist'.
6689         * modules/xlist: New file.
6690         * lib/gl_xlist.h: New file.
6691         * lib/gl_xlist.c: New file.
6692         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
6693         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
6694         gl_list_add_last, gl_list_add_before, gl_list_add_after,
6695         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
6696         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
6697         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
6698         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
6699         gl_sortedlist_nx_add): New declarations.
6700         (struct gl_list_implementation): Rename and change methods accordingly.
6701         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
6702         (gl_list_nx_create): Renamed from gl_list_create.
6703         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6704         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6705         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6706         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6707         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6708         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6709         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6710         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6711         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
6712         gl_list_create_empty.
6713         (gl_list_nx_create): Renamed from gl_list_create.
6714         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
6715         (gl_list_nx_set_at): Renamed from gl_list_set_at.
6716         (gl_list_nx_add_first): Renamed from gl_list_add_first.
6717         (gl_list_nx_add_last): Renamed from gl_list_add_last.
6718         (gl_list_nx_add_before): Renamed from gl_list_add_before.
6719         (gl_list_nx_add_after): Renamed from gl_list_add_after.
6720         (gl_list_nx_add_at): Renamed from gl_list_add_at.
6721         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
6722         * lib/gl_array_list.c: Don't include xalloc.h.
6723         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
6724         NULL upon out-of-memory.
6725         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
6726         out-of-memory.
6727         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
6728         Change return type to 'int'.
6729         (gl_array_nx_set_at): Renamed from gl_array_set_at.
6730         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6731         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
6732         upon out-of-memory.
6733         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
6734         upon out-of-memory.
6735         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
6736         upon out-of-memory.
6737         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
6738         upon out-of-memory.
6739         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
6740         out-of-memory.
6741         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
6742         Update.
6743         (gl_array_list_implementation): Update.
6744         * lib/gl_carray_list.c: Don't include xalloc.h.
6745         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
6746         Return NULL upon out-of-memory.
6747         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
6748         out-of-memory.
6749         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
6750         Change return type to 'int'.
6751         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
6752         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
6753         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
6754         upon out-of-memory.
6755         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
6756         upon out-of-memory.
6757         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
6758         out-of-memory.
6759         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
6760         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
6761         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
6762         Update.
6763         (gl_carray_list_implementation): Update.
6764         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
6765         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
6766         gl_linked_create_empty. Return NULL upon out-of-memory.
6767         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
6768         out-of-memory.
6769         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
6770         Change return type to 'int'. Return -1 upon out-of-memory.
6771         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
6772         out-of-memory.
6773         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
6774         upon out-of-memory.
6775         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
6776         upon out-of-memory.
6777         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
6778         NULL upon out-of-memory.
6779         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
6780         upon out-of-memory.
6781         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
6782         out-of-memory.
6783         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
6784         Update.
6785         * lib/gl_linked_list.c: Don't include xalloc.h.
6786         (gl_linked_list_implementation): Update.
6787         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
6788         (add_to_bucket): Change return type to 'int'.
6789         (gl_linkedhash_list_implementation): Update.
6790         * lib/gl_anytree_list1.h (free_subtree): New function.
6791         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
6792         gl_tree_create_empty. Return NULL upon out-of-memory.
6793         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
6794         Change return type to 'int'. Return -1 upon out-of-memory.
6795         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
6796         out-of-memory.
6797         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
6798         (gl_tree_remove_node): New function, moved here from
6799         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
6800         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
6801         Update.
6802         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
6803         malloc, not xmalloc. Return NULL upon out-of-memory.
6804         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6805         out-of-memory.
6806         (gl_tree_remove_node_from_tree): New function, extracted from
6807         gl_tree_remove_node.
6808         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6809         upon out-of-memory.
6810         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6811         out-of-memory.
6812         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6813         upon out-of-memory.
6814         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6815         upon out-of-memory.
6816         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6817         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
6818         not xmalloc. Return NULL upon out-of-memory.
6819         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
6820         out-of-memory.
6821         (gl_tree_remove_node_from_tree): New function, extracted from
6822         gl_tree_remove_node.
6823         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
6824         upon out-of-memory.
6825         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
6826         out-of-memory.
6827         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
6828         upon out-of-memory.
6829         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
6830         upon out-of-memory.
6831         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
6832         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
6833         gl_anytree_list1.h before gl_anyavltree_list2.h.
6834         (gl_avltree_list_implementation): Update.
6835         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
6836         gl_anytree_list1.h before gl_anyavltree_list2.h.
6837         (gl_rbtree_list_implementation): Update.
6838         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
6839         Change return type to 'int'. Return -1 upon out-of-memory. Use
6840         __builtin_expect.
6841         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
6842         (gl_avltreehash_list_implementation): Update.
6843         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
6844         (gl_rbtreehash_list_implementation): Update.
6845         * modules/array-list (Depends-on): Remove xalloc.
6846         * modules/carray-list (Depends-on): Likewise.
6847         * modules/linked-list (Depends-on): Likewise.
6848         * modules/linkedhash-list (Depends-on): Likewise.
6849         * modules/avltree-list (Depends-on): Likewise.
6850         * modules/rbtree-list (Depends-on): Likewise.
6851         * modules/avltreehash-list (Depends-on): Likewise.
6852         * modules/rbtreehash-list (Depends-on): Likewise.
6853
6854         * modules/xsublist: New file.
6855         * lib/gl_xsublist.h: New file.
6856         * lib/gl_xsublist.c: New file.
6857         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
6858         (gl_sublist_nx_create): New declaration.
6859         * lib/gl_sublist.c: Don't include xalloc.h.
6860         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
6861         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
6862         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
6863         Change return type to 'int'. Return -1 upon out-of-memory.
6864         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
6865         upon out-of-memory.
6866         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
6867         NULL upon out-of-memory.
6868         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
6869         upon out-of-memory.
6870         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
6871         NULL upon out-of-memory.
6872         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
6873         NULL upon out-of-memory.
6874         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
6875         upon out-of-memory.
6876         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
6877         (gl_sublist_list_implementation): Update.
6878         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
6879         upon out-of-memory.
6880         * modules/sublist (Depends-on): Remove xalloc.
6881
6882         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
6883         * tests/test-carray_list.c: Likewise.
6884         * tests/test-linked_list.c: Likewise.
6885         * tests/test-linkedhash_list.c: Likewise.
6886         * tests/test-avltree_list.c: Likewise.
6887         * tests/test-rbtree_list.c: Likewise.
6888         * tests/test-avltreehash_list.c: Likewise.
6889         * tests/test-rbtreehash_list.c: Likewise.
6890         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
6891         * modules/carray-list-tests (Makefile.am): Likewise.
6892         * modules/linked-list-tests (Makefile.am): Likewise.
6893         * modules/linkedhash-list-tests (Makefile.am): Likewise.
6894         * modules/avltree-list-tests (Makefile.am): Likewise.
6895         * modules/rbtree-list-tests (Makefile.am): Likewise.
6896         * modules/avltreehash-list-tests (Makefile.am): Likewise.
6897         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
6898
6899         * NEWS: Mention the changes.
6900
6901         * lib/clean-temp.c: Include gl_xlist.h.
6902         * modules/clean-temp (Depends-on): Add xlist.
6903
6904         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
6905         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
6906
6907         * tests/test-array_oset.c: Include gl_xlist.h.
6908         * modules/array-oset-tests (Depends-on): Add xlist.
6909
6910         Reported by José E. Marchesi <jemarch@gnu.org>.
6911
6912 2009-12-13  Bruno Haible  <bruno@clisp.org>
6913
6914         Move the malloc checking from module 'oset' to new module 'xoset'.
6915         * modules/xoset: New file.
6916         * lib/gl_xoset.h: New file.
6917         * lib/gl_xoset.c: New file.
6918         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
6919         declarations.
6920         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
6921         (struct gl_oset_implementation): Rename and change methods accordingly.
6922         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
6923         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6924         'int'. Mark as __warn_unused_result__.
6925         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
6926         gl_oset_create_empty.
6927         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
6928         'int'.
6929         * lib/gl_array_oset.c: Don't include xalloc.h.
6930         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
6931         malloc, not xmalloc.
6932         (grow): Change return type to 'int'. Don't call xalloc_die.
6933         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
6934         to 'int'.
6935         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
6936         'int'.
6937         (gl_array_oset_implementation): Update.
6938         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
6939         gl_tree_create_empty.
6940         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
6941         'int'.
6942         * lib/gl_avltree_oset.c: Don't include xalloc.h.
6943         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6944         xmalloc.
6945         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6946         not xmalloc.
6947         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6948         xmalloc.
6949         (gl_avltree_oset_implementation): Update.
6950         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
6951         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
6952         xmalloc.
6953         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
6954         not xmalloc.
6955         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
6956         xmalloc.
6957         (gl_rbtree_oset_implementation): Update.
6958         * modules/array-oset (Depends-on): Remove xalloc.
6959         * modules/avltree-oset (Depends-on): Likewise.
6960         * modules/rbtree-oset (Depends-on): Likewise.
6961         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
6962         * tests/test-avltree_oset.c: Likewise.
6963         * tests/test-rbtree_oset.c: Likewise.
6964         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6965         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
6966         * modules/rbtree-oset-tests (Makefile.am): Likewise.
6967         * NEWS: Mention the change.
6968
6969 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
6970
6971         maint.mk: allow a project to override release-prep commands
6972         * top/maint.mk (alpha, beta, stable): Move release-preparatory
6973         commands into a new rule.
6974         (release-prep): New rule.
6975         (release-prep-hook): New overridable variable.
6976
6977 2009-12-13  Bruno Haible  <bruno@clisp.org>
6978
6979         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
6980
6981 2009-12-13  Jim Meyering  <meyering@redhat.com>
6982
6983         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
6984         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
6985
6986 2009-12-12  Bruno Haible  <bruno@clisp.org>
6987
6988         duplocale: Tweak.
6989         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
6990
6991 2009-12-12  Karl Berry  <karl@gnu.org>
6992
6993         * config/srclist.txt (strtoll.c): tab changes, no more sync.
6994
6995 2009-12-12  Bruno Haible  <bruno@clisp.org>
6996
6997         * m4/po.m4: Undo incorrect untabification.
6998
6999 2009-12-12  Bruno Haible  <bruno@clisp.org>
7000
7001         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7002         * modules/c-strtod (Depends-on): Add locale.
7003         * modules/c-strtold (Depends-on): Likewise.
7004
7005 2009-12-12  Bruno Haible  <bruno@clisp.org>
7006
7007         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7008
7009 2009-12-11  Eric Blake  <ebb9@byu.net>
7010
7011         setenv: relax requirement in light of POSIX ruling
7012         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7013         not NULL.
7014         * tests/test-setenv.c (main): Relax test.
7015         * tests/test-unsetenv.c (main): Likewise.
7016         * doc/posix-functions/setenv.texi (setenv): Document this.
7017         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7018
7019 2009-12-11  Bruno Haible  <bruno@clisp.org>
7020
7021         New module 'fd-safer-flag'.
7022         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7023         * lib/dup-safer.c (dup_safer_flag): Remove function.
7024         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7025         * lib/fd-safer.c (fd_safer_flag): Remove function.
7026         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7027         * modules/cloexec (configure.ac): Drop indicator macro.
7028         * modules/fd-safer-flag: New file.
7029         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7030         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7031         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7032
7033 2009-12-11  Bruno Haible  <bruno@clisp.org>
7034
7035         Tests for module 'nl_langinfo'.
7036         * modules/nl_langinfo-tests: New file.
7037         * tests/test-nl_langinfo.sh: New file.
7038         * tests/test-nl_langinfo.c: New file.
7039
7040         New module 'nl_langinfo'.
7041         * lib/nl_langinfo.c: New file.
7042         * m4/nl_langinfo.m4: New file.
7043         * modules/nl_langinfo: New file.
7044         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7045
7046 2009-12-11  Bruno Haible  <bruno@clisp.org>
7047
7048         Tests for module 'langinfo'.
7049         * modules/langinfo-tests: New file.
7050         * tests/test-langinfo.c: New file.
7051
7052         New module 'langinfo'.
7053         * lib/langinfo.in.h: New file.
7054         * m4/langinfo_h.m4: New file.
7055         * modules/langinfo: New file.
7056         * doc/posix-headers/langinfo.texi: Mention the new module.
7057
7058 2009-12-11  Bruno Haible  <bruno@clisp.org>
7059
7060         * lib/config.charset: Untabify.
7061
7062 2009-12-11  Bruno Haible  <bruno@clisp.org>
7063
7064         * modules/unistd-safer (configure.ac): Drop indicator macro.
7065
7066 2009-12-11  Bruno Haible  <bruno@clisp.org>
7067
7068         Move pipe2-safer code to its own file.
7069         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7070         * lib/pipe-safer.c (pipe2_safer): Remove function.
7071         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7072         (Makefile.am): Add it to lib_SOURCES.
7073
7074 2009-12-10  Bruno Haible  <bruno@clisp.org>
7075
7076         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7077
7078 2009-12-10  Bruno Haible  <bruno@clisp.org>
7079
7080         Declare which arguments expect non-NULL values, for GCC and clang.
7081         * build-aux/arg-nonnull.h: New file.
7082         * modules/arg-nonnull: New file.
7083         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7084         (inet_ntop, inet_pton): Use it.
7085         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7086         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7087         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7088         (open, openat): Use it.
7089         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7090         (fnmatch): Use it.
7091         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7092         (getopt, getopt_long, getopt_long_only): Use it.
7093         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7094         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7095         Use it.
7096         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7097         (iconv_open): Use it.
7098         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7099         (strtoimax, strtoumax): Use it.
7100         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7101         (duplocale): Use it.
7102         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7103         (frexp, frexpl): Use it.
7104         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7105         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7106         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7107         (tsearch, tfind, tdelete, twalk): Use it.
7108         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7109         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7110         sigpending): Use it.
7111         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7112         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7113         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7114         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7115         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7116         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7117         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7118         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7119         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7120         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7121         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7122         Use it.
7123         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7124         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7125         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7126         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7127         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7128         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7129         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7130         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7131         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7132         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7133         strtoull, unsetenv): Use it.
7134         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7135         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7136         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7137         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7138         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7139         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7140         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7141         (strcasecmp, strncasecmp): Use it.
7142         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7143         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7144         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7145         rpl_setsockopt): Use it.
7146         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7147         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7148         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7149         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7150         (gettimeofday): Use it.
7151         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7152         (times): Use it.
7153         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7154         (uname): Use it.
7155         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7156         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7157         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7158         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7159         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7160         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7161         unlinkat, write): Use it.
7162         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7163         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7164         * lib/argv-iter.h: Include arg-nonnull.h.
7165         (_ATTRIBUTE_NONNULL_): Remove macro.
7166         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7167         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7168         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7169         optimization.
7170         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7171         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7172         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7173         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7174         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7175         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7176         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7177         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7178         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7179         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7180         * modules/dirent (Depends-on): Add arg-nonnull.
7181         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7182         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7183         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7184         * modules/fnmatch (Depends-on): Add arg-nonnull.
7185         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7186         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7187         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7188         * modules/glob (Depends-on): Add arg-nonnull.
7189         (Makefile.am): Insert arg-nonnull.h into glob.h.
7190         * modules/iconv_open (Depends-on): Add arg-nonnull.
7191         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7192         * modules/inttypes (Depends-on): Add arg-nonnull.
7193         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7194         * modules/locale (Depends-on): Add arg-nonnull.
7195         (Makefile.am): Insert arg-nonnull.h into locale.h.
7196         * modules/math (Depends-on): Add arg-nonnull.
7197         (Makefile.am): Insert arg-nonnull.h into math.h.
7198         * modules/netdb (Depends-on): Add arg-nonnull.
7199         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7200         * modules/search (Depends-on): Add arg-nonnull.
7201         (Makefile.am): Insert arg-nonnull.h into search.h.
7202         * modules/signal (Depends-on): Add arg-nonnull.
7203         (Makefile.am): Insert arg-nonnull.h into signal.h.
7204         * modules/spawn (Depends-on): Add arg-nonnull.
7205         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7206         * modules/stdio (Depends-on): Add arg-nonnull.
7207         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7208         * modules/stdlib (Depends-on): Add arg-nonnull.
7209         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7210         * modules/string (Depends-on): Add arg-nonnull.
7211         (Makefile.am): Insert arg-nonnull.h into string.h.
7212         * modules/strings (Depends-on): Add arg-nonnull.
7213         (Makefile.am): Insert arg-nonnull.h into strings.h.
7214         * modules/sys_socket (Depends-on): Add arg-nonnull.
7215         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7216         * modules/sys_stat (Depends-on): Add arg-nonnull.
7217         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7218         * modules/sys_time (Depends-on): Add arg-nonnull.
7219         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7220         * modules/sys_times (Depends-on): Add arg-nonnull.
7221         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7222         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7223         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7224         * modules/time (Depends-on): Add arg-nonnull.
7225         (Makefile.am): Insert arg-nonnull.h into time.h.
7226         * modules/unistd (Depends-on): Add arg-nonnull.
7227         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7228         * modules/wchar (Depends-on): Add arg-nonnull.
7229         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7230         * modules/argv-iter (Depends-on): Add arg-nonnull.
7231         * tests/test-canonicalize.c (null_ptr): New function.
7232         (main): Use it.
7233         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7234         (main): Use it.
7235         * tests/test-memmem.c (null_ptr): New function.
7236         (main): Use it.
7237         Reported by Jim Meyering.
7238
7239 2009-12-10  Bruno Haible  <bruno@clisp.org>
7240
7241         Use spaces for indentation, not tabs.
7242         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7243         * m4/*.m4: Untabify.
7244         * build-aux/*.h: Untabify.
7245         * tests/**/*.[hc]: Untabify.
7246         * README: New section "Indent with spaces, not TABs", based on
7247         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7248         * NEWS: Mention the change.
7249
7250 2009-12-10  Bruno Haible  <bruno@clisp.org>
7251
7252         pty test: Fix link error.
7253         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7254         test_pty_LDADD.
7255
7256 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7257
7258         * modules/pty: New file.
7259         * modules/pty-tests: New file.
7260         * m4/pty.m4: New file.
7261         * tests/test-pty.c: New file.
7262         * doc/glibc-headers/pty.texi: Modified.
7263         * doc/glibc-functions/forkpty.texi: Modified.
7264         * doc/glibc-functions/openpty.texi: Modified.
7265
7266 2009-12-10  Bruno Haible  <bruno@clisp.org>
7267
7268         Avoid syntax error in C++ mode.
7269         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7270
7271 2009-12-10  Bruno Haible  <bruno@clisp.org>
7272
7273         Use sed with option -e.
7274         * gnulib-tool (func_version, func_emit_copyright_notice,
7275         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7276         option -e to sed.
7277         * modules/link-warning (Makefile.am): Likewise.
7278
7279 2009-12-10  Jim Meyering  <meyering@redhat.com>
7280
7281         mgetgroups: do not write bytes beyond end of malloc'd buffer
7282         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7283         username, we call getgroups with a one-element-shorter buffer,
7284         but still told it the length was original, max_n_groups.
7285
7286 2009-12-09  Eric Blake  <ebb9@byu.net>
7287
7288         cloexec: relax license
7289         * modules/cloexec (Maintainer): Add myself.
7290         (License): Use LGPL, not GPL.
7291
7292         link-warning: optimize generation
7293         * modules/link-warning (Makefile.am): Reduce process usage.
7294
7295 2009-12-09  Bruno Haible  <bruno@clisp.org>
7296
7297         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7298         workaround was added on 2009-11-17.
7299
7300 2009-12-09  Jim Meyering  <meyering@redhat.com>
7301             Bruno Haible  <bruno@clisp.org>
7302
7303         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7304         * modules/link-warning (Makefile.am): Make the comment-removing sed
7305         command more robust in the face of bootstrap-prepended comment lines.
7306
7307 2009-12-09  Bruno Haible  <bruno@clisp.org>
7308
7309         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7310         most one group.
7311
7312 2009-12-09  Simon Josefsson <simon@josefsson.org>
7313             Bruno Haible  <bruno@clisp.org>
7314
7315         * build-aux/link-warning.h: Add copyright notice.
7316         * modules/link-warning (Makefile.am): Generate link-warning.h from
7317         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7318         * NEWS: Mention change in link-warning module.
7319         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7320         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7321         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7322         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7323         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7324         * modules/math (Makefile.am): Add dependency to math.h.
7325         * modules/search (Makefile.am): Add dependency to search.h.
7326         * modules/signal (Makefile.am): Add dependency to signal.h.
7327         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7328         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7329         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7330         * modules/string (Makefile.am): Add dependency to string.h.
7331         * modules/strings (Makefile.am): Add dependency to strings.h.
7332         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7333         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7334         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7335         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7336         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7337         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7338         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7339         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7340         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7341
7342 2009-12-09  Bruno Haible  <bruno@clisp.org>
7343
7344         fchdir: Optimize away rpl_fstat when possible.
7345         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7346         REPLACE_OPEN_DIRECTORY.
7347         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7348
7349 2009-12-09  Bruno Haible  <bruno@clisp.org>
7350
7351         * lib/fchdir.c: Update comment.
7352
7353 2009-12-09  Bruno Haible  <bruno@clisp.org>
7354
7355         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7356
7357 2009-12-08  Eric Blake  <ebb9@byu.net>
7358
7359         fchdir: avoid memory leak on re-registration.
7360         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7361
7362 2009-12-08  Jim Meyering  <meyering@redhat.com>
7363
7364         init.sh: avoid Solaris 10 /bin/sh portability problem
7365         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7366         sourced script:
7367           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7368           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7369           bar
7370         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7371         and two tests used that idiom.
7372         * tests/init.sh: Update suggested usage comments.
7373         (path_prepend_): New function, to be used in place
7374         of the --src-path=DIR option.
7375         (setup_): Move PATH-prepending code into path_prepend_.
7376         * tests/test-pread.sh: Adapt to new usage.
7377         * tests/test-xalloc-die.sh: Likewise.
7378
7379 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7380
7381         * doc/gnulib.texi (Glibc pty.h): Add.
7382         * doc/glibc-functions/forkpty.texi: Add.
7383         * doc/glibc-functions/openpty.texi: Add.
7384         Suggested by Bruno Haible.
7385
7386 2009-12-08  Eric Blake  <ebb9@byu.net>
7387
7388         fchdir: fix logic bugs
7389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7390         * tests/test-fchdir.c (main): Enhance test.
7391         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7392         is in use.
7393
7394         dup2: fix logic bugs
7395         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7396         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7397         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7398         exists.
7399         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7400
7401 2009-12-07  Eric Blake  <ebb9@byu.net>
7402
7403         unlink: fix m4 detection
7404         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7405
7406         unistd-safer: add unit test
7407         * modules/unistd-safer-tests: New file.
7408         * tests/test-dup-safer.c: Likewise.
7409         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7410         * tests/test-dup2.c (setmode): Likewise.
7411         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7412
7413         cloexec: preserve text vs. binary across dup_cloexec
7414         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7415         mode.
7416         * modules/dup2-tests (Depends-on): Add binary-io.
7417         * modules/cloexec-tests (Depends-on): Likewise.
7418         * tests/test-dup2.c (setmode, is_mode): New helpers.
7419         (main): Add tests that translation mode is preserved.
7420         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7421         Reported by Bruno Haible.
7422
7423         mgetgroups: reduce duplicate listings
7424         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7425         resulting array.
7426         * tests/test-chown.h (test_chown): Simplify client.
7427         * tests/test-lchown.h (test_lchown): Likewise.
7428
7429 2009-12-06  Bruno Haible  <bruno@clisp.org>
7430
7431         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7432         value.
7433
7434 2009-12-06  Bruno Haible  <bruno@clisp.org>
7435
7436         * lib/progname.c: Include stdio.h, stdlib.h.
7437         (set_program_name): Reject a NULL argument.
7438
7439 2009-12-05  Eric Blake  <ebb9@byu.net>
7440
7441         pipe2-safer: new module
7442         * modules/pipe2-safer: New file.
7443         * lib/unistd-safer.h (pipe2_safer): New prototype.
7444         * lib/unistd--.h (pipe2): New wrapper.
7445         * lib/pipe-safer.c (pipe2_safer): New function.
7446         * modules/pipe (Depends-on): Add pipe2-safer.
7447         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7448
7449         stdlib-safer: preserve cloexec flag for mkostemp[s]
7450         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7451         fd_safer_flag.
7452
7453         unistd-safer: allow preservation of cloexec status via flag
7454         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7455         prototypes.
7456         * lib/dup-safer.c (dup_safer_flag): New function.
7457         * lib/fd-safer.c (fd_safer_flag): Likewise.
7458         * modules/cloexec (configure.ac): Set witness.
7459
7460         test-dup2: enhance test
7461         * modules/dup2-tests (Depends-on): Add cloexec.
7462         * tests/test-dup2.c (main): Enhance test.
7463
7464         cloexec: add dup_cloexec
7465         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7466         header and comments.
7467         * lib/cloexec.c (set_cloexec_flag): Add comments.
7468         (dup_cloexec): New function, with mingw implementation borrowed
7469         from...
7470         * lib/w32spawn.h (dup_noinherit): ...here.
7471         * modules/execute (Depends-on): Add cloexec.
7472         * modules/pipe (Depends-on): Likewise.
7473         * modules/cloexec (Depends-on): Add dup2.
7474         * modules/cloexec-tests (Files): New file.
7475         * tests/test-cloexec.c: Likewise.
7476
7477         test-xalloc-die: fix test for mingw
7478         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7479         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7480         directory and .exe suffix off argv[0] output.
7481
7482         test-fseeko: fix test for mingw
7483         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7484         than undefining fseek, so test will pass on mingw.
7485
7486 2009-12-05  Bruno Haible  <bruno@clisp.org>
7487
7488         * lib/progname.h (set_program_name): Clarify specification.
7489         * lib/progname.c (set_program_name): Likewise.
7490         Reported by Jim Meyering.
7491
7492 2009-12-05  Jim Meyering  <meyering@redhat.com>
7493
7494         maint.mk: backslash-escape parens in default regexp
7495         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7496         backslash-escape the literal parentheses.
7497
7498         maint.mk: news-date-check: use grep -E
7499         * top/maint.mk (today): Define a Make variable, not a...
7500         (news-date-check): ...shell variable.
7501         (news-date-regexp): Use the Make variable.
7502         Use grep's -E option.  Change the failing diagnostic to mention
7503         the variable, $(news-date-regexp).
7504
7505 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7506
7507         maintainer-makefile: allow customization of NEWS entry format
7508         * top/maint.mk (news-date-regexp): New overridable variable.
7509         (news-date-check): Use it.
7510
7511 2009-12-04  Eric Blake  <ebb9@byu.net>
7512
7513         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7514         * lib/mgetgroups.h (xgetgroups): New prototype.
7515         * lib/mgetgroups.c (xgetgroups): New wrapper.
7516         (mgetgroups): Handle ENOSYS.
7517         * modules/mgetgroups (Depends-on): Add realloc.
7518         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7519
7520         mgetgroups: avoid argument promotion issues with -1
7521         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7522         for invalid gid_t.
7523         * tests/test-chown.h (getegid, test_chown): Likewise.
7524         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7525
7526 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7527
7528         exclude: Fix header file problems.
7529         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7530
7531 2009-12-01  Jim Meyering  <meyering@redhat.com>
7532
7533         fts: fts_open: do not let an empty string cause immediate failure
7534         This is required in support of GNU rm, for which the command
7535         "rm A '' B" must process and remove both A and B, in spite of
7536         the empty string argument.
7537         * lib/fts.c (fts_open): Do not let the presence of an empty string
7538         cause fts_open to fail immediately.  Most fts-using tools must be
7539         able to process all arguments, in order, and can be expected to
7540         diagnose such arguments themselves.
7541
7542 2009-11-30  Eric Blake  <ebb9@byu.net>
7543
7544         utimens: fix compilation error
7545         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7546         Declare variable at right scope.
7547
7548 2009-11-29  Jim Meyering  <meyering@redhat.com>
7549
7550         bootstrap: handle perl-5.11's changed --version output
7551         * build-aux/bootstrap (get_version): Handle perl separately,
7552         since perl-5.11's --version output is different.
7553
7554 2009-11-28  Jim Meyering  <meyering@redhat.com>
7555
7556         userspec: depend on the inttostr module, too
7557         * modules/userspec (Depends-on): Add inttostr.
7558
7559         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7560         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7561         number of MAXUID when it evaluates to (uid_t) -1.
7562         Likewise for group ID.  Reported by Matt McCutchen in
7563         <http://savannah.gnu.org/bugs/?28113>
7564
7565         userspec: reformat to use spaces, not TABs
7566         * lib/userspec.c: Expand TABs to spaces.
7567         Add Emacs' "indent-tabs-mode: nil" hint.
7568
7569 2009-11-27  Eric Blake  <ebb9@byu.net>
7570
7571         getopt-gnu: flush out another BSD bug
7572         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7573         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7574         flush out BSD bug.
7575         * tests/test-getopt.h (test_getopt): End lists with NULL.
7576         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7577         (test_getopt_long_posix): Enhance test.
7578         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7579         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7580         getopt-gnu.
7581         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7582         Likewise.
7583
7584 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7585
7586         * modules/idpriv-droptemp-tests (Notice): Fix text.
7587
7588 2009-11-27  Jim Meyering  <meyering@redhat.com>
7589
7590         test-xalloc-die: avoid spurious failure due to libtool argv difference
7591         In a libtool-enabled project, this test would fail due to a difference
7592         in the emitted program name, e.g.,
7593         -test-xalloc-die: memory exhausted
7594         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7595         Use program to avoid that.
7596         * modules/xalloc-die-tests (Depends-on): Add progname.
7597         * tests/test-xalloc-die.c: Include progname.h".
7598         (program_name): Remove decl.
7599         (main): Call set_program_name.
7600         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7601
7602 2009-11-26  Richard Jones  <rjones@redhat.com>
7603
7604         w32sock: leave win32 error in place.
7605         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7606
7607 2009-11-26  Eric Blake  <ebb9@byu.net>
7608
7609         init.sh: suggest to use skip_ and fail_ functions in comments
7610         * tests/init.sh: Add a sentence.
7611
7612 2009-11-25  Bruno Haible  <bruno@clisp.org>
7613
7614         init.sh: add documentation in comments
7615         * tests/init.sh: Add some developer and user documentation.
7616
7617 2009-11-26  Jim Meyering  <meyering@redhat.com>
7618
7619         init.sh: accommodate even those who specify bogus srcdir manually
7620         * tests/init.sh: Normally, srcdir is guaranteed by automake and
7621         configure-time tests to be sanitized, so that there is no need to
7622         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
7623         (with no double quotes) suffices.  However, since tests may be
7624         invoked manually, and since you may explicitly set srcdir to the
7625         name of a directory containing spaces, do quote its uses here.
7626         * tests/test-pread.sh: Likewise.
7627         Suggested by Bruno Haible.
7628
7629         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
7630         * tests/test-pread.sh: Write no data into the pipe, because
7631         test-pread actually reads none.  This avoids a diagnostic,
7632         "bash: echo: write error: Broken pipe", that arises in the unusual
7633         event something is ignoring SIGPIPE, and might be interpreted
7634         as some sort of failure.  Reported by Bruno Haible.
7635
7636 2009-11-25  Jim Meyering  <meyering@redhat.com>
7637
7638         test-pread: cover failure with ESPIPE and EINVAL
7639         * tests/test-pread.c (main): Test for failure, too.
7640         * tests/test-pread.sh: Invoke with stdin on a pipe.
7641         Suggested by Eric Blake.
7642
7643         pread: improvement and fix
7644         * modules/pread (Depends-on): Depend on lseek, for portability to
7645         e.g., mingw.  Suggested by Eric Blake.
7646         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
7647
7648         unistd.in.h: correct declaration of pread
7649         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
7650         Reported by Richard W.M. Jones.
7651
7652         test-pread.sh: distribute the test script
7653         * modules/pread-tests (Files): Include test-pread.sh.
7654
7655         test-pread.sh: clean up
7656         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
7657         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
7658         That is unnecessary, since it's always ".".
7659         Suggestion from Eric Blake.
7660
7661         test-pread.sh: make executable
7662         * tests/test-pread.sh: Set executable bit.
7663         Reported by Eric Blake.
7664
7665         correct typo in test-pread.sh
7666         * tests/test-pread.sh: Add #! line.
7667
7668         test pread
7669         * tests/test-pread.c: New file.
7670         * tests/test-pread.sh: Likewise.
7671         * modules/pread-tests: Likewise.
7672
7673         pread: new module
7674         * modules/pread: New file.
7675         * lib/unistd.in.h (pread): Define/declare.
7676         * lib/pread.c (pread): New file.
7677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
7678         * modules/unistd (Makefile.am): Substitute witnesses.
7679         * doc/posix-functions/pread.texi (pread): Update.
7680         * MODULES.html.sh: Add pread.
7681
7682 2009-11-25  Jim Meyering  <meyering@redhat.com>
7683
7684         tests/init.sh: new file to be used via most *.sh tests
7685         * tests/init.sh: New file.
7686
7687 2009-11-25  Eric Blake  <ebb9@byu.net>
7688
7689         utimens: work around older Linux failure with symlinks
7690         * lib/utimens.c (lutimensat_works_really): New variable.
7691         (fdutimens, lutimens): Use it to manage kernels that support
7692         nanosecond times on files, but not on symlinks.
7693         Reported by Ondřej Vašík.
7694
7695         utimes: fix configure grammar
7696         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
7697
7698 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
7699
7700         regex: Fix fastmap for multibyte character ranges.
7701         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
7702         characters when a multibyte character range is included.
7703
7704 2009-11-22  Andy Wingo  <wingo@pobox.com>
7705
7706         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
7707         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
7708
7709 2009-11-24  Bruno Haible  <bruno@clisp.org>
7710
7711         doc: Most *_l functions exist in MacOS X 10.5.
7712         * doc/posix-functions/duplocale.texi: Update platforms list.
7713         * doc/posix-functions/freelocale.texi: Likewise.
7714         * doc/posix-functions/newlocale.texi: Likewise.
7715         * doc/posix-functions/uselocale.texi: Likewise.
7716         * doc/posix-functions/isalnum_l.texi: Likewise.
7717         * doc/posix-functions/isalpha_l.texi: Likewise.
7718         * doc/posix-functions/isblank_l.texi: Likewise.
7719         * doc/posix-functions/iscntrl_l.texi: Likewise.
7720         * doc/posix-functions/isdigit_l.texi: Likewise.
7721         * doc/posix-functions/isgraph_l.texi: Likewise.
7722         * doc/posix-functions/islower_l.texi: Likewise.
7723         * doc/posix-functions/isprint_l.texi: Likewise.
7724         * doc/posix-functions/ispunct_l.texi: Likewise.
7725         * doc/posix-functions/isspace_l.texi: Likewise.
7726         * doc/posix-functions/isupper_l.texi: Likewise.
7727         * doc/posix-functions/iswalnum_l.texi: Likewise.
7728         * doc/posix-functions/iswalpha_l.texi: Likewise.
7729         * doc/posix-functions/iswblank_l.texi: Likewise.
7730         * doc/posix-functions/iswcntrl_l.texi: Likewise.
7731         * doc/posix-functions/iswctype_l.texi: Likewise.
7732         * doc/posix-functions/iswdigit_l.texi: Likewise.
7733         * doc/posix-functions/iswgraph_l.texi: Likewise.
7734         * doc/posix-functions/iswlower_l.texi: Likewise.
7735         * doc/posix-functions/iswprint_l.texi: Likewise.
7736         * doc/posix-functions/iswpunct_l.texi: Likewise.
7737         * doc/posix-functions/iswspace_l.texi: Likewise.
7738         * doc/posix-functions/iswupper_l.texi: Likewise.
7739         * doc/posix-functions/iswxdigit_l.texi: Likewise.
7740         * doc/posix-functions/isxdigit_l.texi: Likewise.
7741         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
7742         * doc/posix-functions/strcasecmp_l.texi: Likewise.
7743         * doc/posix-functions/strcoll_l.texi: Likewise.
7744         * doc/posix-functions/strfmon_l.texi: Likewise.
7745         * doc/posix-functions/strftime_l.texi: Likewise.
7746         * doc/posix-functions/strncasecmp_l.texi: Likewise.
7747         * doc/posix-functions/strxfrm_l.texi: Likewise.
7748         * doc/posix-functions/tolower_l.texi: Likewise.
7749         * doc/posix-functions/toupper_l.texi: Likewise.
7750         * doc/posix-functions/towctrans_l.texi: Likewise.
7751         * doc/posix-functions/towlower_l.texi: Likewise.
7752         * doc/posix-functions/towupper_l.texi: Likewise.
7753         * doc/posix-functions/wcscoll_l.texi: Likewise.
7754         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
7755         * doc/posix-functions/wctrans_l.texi: Likewise.
7756         * doc/posix-functions/wctype_l.texi: Likewise.
7757         * doc/glibc-functions/strptime_l.texi: Likewise.
7758         * doc/glibc-functions/strtod_l.texi: Likewise.
7759         * doc/glibc-functions/strtof_l.texi: Likewise.
7760         * doc/glibc-functions/strtol_l.texi: Likewise.
7761         * doc/glibc-functions/strtold_l.texi: Likewise.
7762         * doc/glibc-functions/strtoll_l.texi: Likewise.
7763         * doc/glibc-functions/strtoul_l.texi: Likewise.
7764         * doc/glibc-functions/strtoull_l.texi: Likewise.
7765         * doc/glibc-functions/wcsftime_l.texi: Likewise.
7766         * doc/glibc-functions/wcstod_l.texi: Likewise.
7767         * doc/glibc-functions/wcstof_l.texi: Likewise.
7768         * doc/glibc-functions/wcstol_l.texi: Likewise.
7769         * doc/glibc-functions/wcstold_l.texi: Likewise.
7770         * doc/glibc-functions/wcstoll_l.texi: Likewise.
7771         * doc/glibc-functions/wcstoul_l.texi: Likewise.
7772         * doc/glibc-functions/wcstoull_l.texi: Likewise.
7773
7774 2009-11-24  Bruno Haible  <bruno@clisp.org>
7775
7776         duplocale: Fix logic bug.
7777         * lib/duplocale.c: Don't include <langinfo.h>.
7778         (_NL_LOCALE_NAME): Remove macro.
7779         (rpl_duplocale): Use setlocale instead of nl_langinfo.
7780         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
7781
7782 2009-11-23  Jim Meyering  <meyering@redhat.com>
7783
7784         test-update-copyright: don't hard-code /usr/bin/perl
7785         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
7786         perl to print the current year.  Gilles Espinasse reported that
7787         the replaced use of perl was hard-coded as /usr/bin/perl.
7788
7789 2009-11-23  Bruno Haible  <bruno@clisp.org>
7790
7791         duplocale: Add support for glibc 2.3.x.
7792         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
7793
7794 2009-11-22  Bruno Haible  <bruno@clisp.org>
7795
7796         vasnprintf: Tiny optimization.
7797         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
7798         MacOS X.
7799
7800 2009-11-22  Bruno Haible  <bruno@clisp.org>
7801
7802         Tests for module 'duplocale'.
7803         * modules/duplocale-tests: New file.
7804         * tests/test-duplocale.c: New file.
7805
7806         New module 'duplocale'.
7807         * m4/duplocale.m4: New file.
7808         * lib/locale.in.h (duplocale): New declaration.
7809         * lib/duplocale.c: New file.
7810         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
7811         gl_LOCALE_H_DEFAULTS): New macros.
7812         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
7813         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
7814         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
7815         REPLACE_DUPLOCALE.
7816         * modules/duplocale: New file.
7817         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
7818
7819 2009-11-22  Bruno Haible  <bruno@clisp.org>
7820
7821         * modules/locale-tests (configure.ac): Test for newlocale function.
7822         * tests/test-locale.c: When the system has extended locale functions,
7823         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
7824
7825         locale: Make locale_t available when possible.
7826         * lib/locale.in.h: Include <xlocale.h> when it exists.
7827         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
7828         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
7829         * modules/locale (Depends-on): Add extensions.
7830         (Makefile.am): Also substitute HAVE_XLOCALE_H.
7831         * doc/posix-headers/locale.texi: Document the problem with locale_t.
7832
7833 2009-11-22  Bruno Haible  <bruno@clisp.org>
7834
7835         Add comments.
7836         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
7837         invocation.
7838         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7839         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7840         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7841
7842 2009-11-22  Bruno Haible  <bruno@clisp.org>
7843
7844         error: account for the possibility of freopen (stdout).
7845         * lib/error.c: Include <unistd.h>.
7846         (flush_stdout): New function, extracted from error and error_at_line.
7847         Determine stdout's fd dynamically.
7848         (error, error_at_line): Invoke flush_stdout.
7849         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
7850         * modules/error (Depends-on): Add unistd.
7851
7852 2009-11-22  Bruno Haible  <bruno@clisp.org>
7853
7854         diffseq: Add comment.
7855         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
7856
7857 2009-11-22  Jim Meyering  <meyering@redhat.com>
7858
7859         c-stack: avoid defining an unused static function
7860         * lib/c-stack.c (find_stack_direction): Do not define this function
7861         when it will not be used.
7862
7863         diffseq: avoid spurious gcc warnings
7864         * lib/diffseq.h (IF_LINT2): Define.
7865         (compareseq): Use it to initialize two members of "part".
7866         This avoids two used-uninitialized warnings.
7867
7868 2009-11-21  Jim Meyering  <meyering@redhat.com>
7869
7870         c-stack: avoid "ignoring return value of `write'" warning
7871         * lib/c-stack.c: Include "ignore-value.h".
7872         (die): Explicitly ignore each write return value.
7873         * modules/c-stack (Depends-on): Add ignore-value.
7874
7875 2009-11-21  Bruno Haible  <bruno@clisp.org>
7876
7877         diffseq: reduce scope of variable 'best'.
7878         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
7879         variable, earlier used for two different purposes.
7880
7881 2009-11-21  Jim Meyering  <meyering@redhat.com>
7882
7883         diffseq: remove useless assignment to "best"
7884         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
7885         assignment.  At that point "best" is already guaranteed to be zero.
7886
7887 2009-11-20  Eric Blake  <ebb9@byu.net>
7888
7889         build: mention ftp redirector in release announcements
7890         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
7891         values that used to come from cfg.mk; mention FTP redirect URL.
7892         * build-aux/announce-gen: Mention the mirror list.
7893         Suggested by Karl Berry.
7894
7895         nanosleep: improve port to mingw
7896         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
7897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
7898         LIB_NANOSLEEP, but only when needed.
7899         * modules/select (Link): Document LIBSOCKET.
7900         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
7901         enough.
7902
7903         nanosleep: work around cygwin bug
7904         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
7905         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
7906         bug.
7907         (getnow): Delete, not needed.
7908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
7909         LIB_CLOCK_GETTIME.
7910         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
7911         clock-time, gettime.
7912         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
7913         bug.
7914         * modules/nanosleep-tests: New test.
7915         * tests/test-nanosleep.c: New file.
7916
7917         sleep: work around cygwin bug
7918         * lib/sleep.c (rpl_sleep): Work around the bug.
7919         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
7920         (gl_PREREQ_SLEEP): Delete unused macro.
7921         * modules/sleep (Depends-on): Add verify.
7922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
7923         * modules/unistd (Makefile.am): Substitute witness.
7924         * lib/unistd.in.h (sleep): Update prototype.
7925         * doc/posix-functions/sleep.texi (sleep): Document the bug.
7926         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
7927         * modules/sleep-tests (Depends-on): Check for alarm.
7928
7929 2009-11-20  Jim Meyering  <meyering@redhat.com>
7930
7931         maint.mk: improve sc_prohibit_magic_number_exit
7932         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
7933         so it does not match uses like System.exit(1).
7934         Add comments showing how to correct all offenders.
7935
7936 2009-11-19  Eric Blake  <ebb9@byu.net>
7937
7938         xalloc-die-tests: add missing library
7939         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
7940
7941         test-xvasprintf: silence compiler warnings
7942         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
7943         empty string from gcc.
7944
7945 2009-11-19  Jim Meyering  <meyering@redhat.com>
7946
7947         xfreopen: new module, from coreutils
7948         * modules/xfreopen: New module.
7949         * lib/xfreopen.c: New file.
7950         * lib/xfreopen.h: New file.
7951         * MODULES.html.sh (File stream based Input/Output"): Add it.
7952
7953 2009-11-19  Eric Blake  <ebb9@byu.net>
7954
7955         manywarnings: depend on warnings
7956         * modules/manywarnings (Depends-on): Add warnings.
7957
7958         build: avoid compiler warnings
7959         * lib/select.c (rpl_select): Delete unused variable.
7960         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
7961
7962 2009-11-18  Eric Blake  <ebb9@byu.net>
7963
7964         tests: avoid false negative with --with-packager
7965         * tests/test-version-etc.sh: Discard packager information.
7966         * tests/test-argp-version-etc-1.sh: Likewise.
7967         Reported by Mike Frysinger.
7968
7969         utimens: fix regression on Solaris
7970         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
7971         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
7972         can only change fd timestamps via futimesat.  Instead, use an
7973         additional witness macro to avoid BSD bug.
7974         Reported by Jim Meyering.
7975
7976 2009-11-17  Eric Blake  <ebb9@byu.net>
7977
7978         usleep: use it to simplify tests
7979         * modules/stat-time-tests (Depends-on): Add usleep.
7980         (configure.ac): Drop usleep check.
7981         * modules/chown-tests (Depends-on, configure.ac): Likewise.
7982         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
7983         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
7984         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
7985         * modules/openat-tests (Depends-on, configure.ac): Likewise.
7986         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
7987         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
7988         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
7989         Likewise.
7990         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
7991         * tests/test-lchown.h (nap): Likewise.
7992         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
7993         * tests/test-stat-time.c (nap): Likewise.
7994         * tests/test-utimens-common.h (nap): Update comments.
7995
7996         usleep: new module
7997         * modules/usleep: New file.
7998         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7999         * lib/usleep.c (usleep): Likewise.
8000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8001         * modules/unistd (Makefile.am): Substitute witnesses.
8002         * lib/unistd.in.h (usleep): Add declaration.
8003         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8004         * MODULES.html.sh (Date and time): Likewise.
8005         * modules/usleep-tests (Depends-on): New test.
8006         * tests/test-usleep.c: New file.
8007
8008         chown: work around OpenBSD bug
8009         * lib/chown.c (rpl_chown): Work around the bug.
8010         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8011         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8012         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8013         * modules/chown (Depends-on): Add stdbool.
8014         * modules/lchown (Depends-on): Likewise.
8015         * doc/posix-functions/chown.texi (chown): Document the bug.
8016         * doc/posix-functions/lchown.texi (lchown): Likewise.
8017         * tests/test-lchown.h (test_chown): Relax test.
8018
8019         mkstemp: avoid conflict with C++ keyword template
8020         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8021         * lib/mkostemp.c (mkostemp): Likewise.
8022         * lib/mkostemps.c (mkostemps): Likewise.
8023         * lib/mkstemp.c (mkstemp): Likewise.
8024         * lib/mkstemps.c (mkstemps): Likewise.
8025
8026         xalloc-die-tests: optimize
8027         * tests/test-xalloc-die.sh: Reduce number of processes.
8028
8029 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8030
8031         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8032         patch from ludo@gnu.org (Ludovic Courtès).
8033
8034 2009-11-17  Jim Meyering  <meyering@redhat.com>
8035
8036         version-etc: use proper license string
8037         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8038         * modules/version-etc-fsf: Likewise.
8039
8040 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8041
8042         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8043         printed to stdout.  Deal with EOL differences.
8044
8045 2009-11-17  Eric Blake  <ebb9@byu.net>
8046
8047         unsetenv: work around Solaris bug
8048         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8049         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8050         Reported by Jim Meyering.
8051
8052         vasnprintf: avoid compiler warnings
8053         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8054         variables.
8055         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8056
8057 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8058
8059         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8060         settings since xalloc-die is no longer the self test,
8061         xalloc-die.sh is.
8062
8063 2009-11-17  Jim Meyering  <meyering@redhat.com>
8064
8065         test-xalloc-die.sh: make the code agree with the commit log
8066         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8067         at the end, just in case you happen to have a test-xalloc-die
8068         program in some other PATH directory.
8069
8070         test-xalloc-die.sh: fix a portability bug
8071         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8072         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8073         Otherwise, argv[0] (as often seen in diagnostics) would be too
8074         system-dependent, sometimes with, and sometimes without the leading "./".
8075
8076         version-etc-fsf: relax license to LGPLv3+
8077         * modules/version-etc-fsf (License): Relax license.
8078
8079 2009-11-16  Eric Blake  <ebb9@byu.net>
8080
8081         xalloc-die-tests: avoid printing null pointer
8082         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8083         shell script.
8084         * tests/test-xalloc-die.c (program_name): Declare.
8085         * tests/test-xalloc-die.sh (tmpfiles): New file.
8086
8087         setenv, unsetenv: work around various bugs
8088         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8089         (setenv) [HAVE_SETENV]: Work around bugs.
8090         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8091         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8092         for bugs.
8093         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8094         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8096         * modules/stdlib (Makefile.am): Update substitutions.
8097         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8098         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8099         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8100         * modules/setenv-tests: New test.
8101         * modules/unsetenv-tests: Likewise.
8102         * tests/test-setenv.c: New file.
8103         * tests/test-unsetenv.c: Likewise.
8104
8105 2009-11-16  Jim Meyering  <meyering@redhat.com>
8106
8107         version-etc: relax license to LGPLv3+
8108         * modules/version-etc (License): Relax license.
8109
8110         better AC_REQUIRE expanded-before-required-warning avoidance
8111         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8112         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8113         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8114         which is no longer needed.
8115
8116 2009-11-16  Eric Blake  <ebb9@byu.net>
8117
8118         test-freading: clean up temporary file
8119         * tests/test-freading.c (main): Remove file on success, and use
8120         ASSERT more liberally.
8121         Reported by Jim Meyering.
8122
8123 2009-11-16  Jim Meyering  <meyering@redhat.com>
8124
8125         avoid new AC_REQUIRE expanded-before-required warnings
8126         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8127         merely using it.
8128         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8129         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8130
8131 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8132
8133         * tests/test-xalloc-die.c: New file.
8134         * modules/xalloc-die-tests: New file.
8135         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8136         XFAIL_TESTS so it can be appended by modules.
8137
8138 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8139
8140         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8141         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8142
8143 2009-11-14  Eric Blake  <ebb9@byu.net>
8144
8145         fnmatch: avoid compiler warning
8146         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8147         to silence compiler warning about mismatch signedness in ?:.
8148         Reported by Robert Millan.
8149
8150         intprops: add double-inclusion guard
8151         * lib/intprops.h: Allow idempotent includes.
8152         Suggested by Bruce Korb.
8153
8154         openat: detect Solaris fchownat bug
8155         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8156         penalizing glibc chownat when only lchownat is broken.
8157         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8158         trailing slash bugs.
8159         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8160         * modules/openat-tests (Files): Include more files.
8161         (Depends-on): Add mgetgroups, sleep, stat-time.
8162         (configure.ac): Add additional checks.
8163         (Makefile.am): Build new test.
8164         * tests/test-fchownat.c: New file.
8165
8166         lchown: detect Solaris and FreeBSD bug
8167         * lib/lchown.c (rpl_lchown): Work around bug.
8168         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8170         * modules/unistd (Makefile.am): Populate it.
8171         * lib/unistd.in.h (lchown): Update declaration.
8172         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8173         * modules/lchown-tests: New file.
8174         * tests/test-lchown.h (test_lchown): Likewise.
8175         * tests/test-lchown.c (main): Likewise.
8176
8177         chown: detect Solaris and FreeBSD bug
8178         * lib/chown.c (rpl_chown): Work around bug.
8179         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8180         (gl_PREREQ_CHOWN): Delete.
8181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8182         * modules/unistd (Makefile.am): Populate it.
8183         * lib/unistd.in.h (chown): Update declaration.
8184         * lib/lchown.c (chown): Update client.
8185         * modules/lchown (Depends-on): Add lstat.
8186         * doc/posix-functions/chown.texi (chown): Document the bug.
8187         * doc/posix-functions/getgroups.texi (getgroups): Document
8188         getgroups pitfall.
8189         * modules/chown-tests: New file.
8190         * tests/test-chown.h (test_chown): Likewise.
8191         * tests/test-chown.c (main): Likewise.
8192
8193 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8194
8195         gnulib-tool: correctly detect absence of m4 directories
8196         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8197
8198 2009-11-14  Jim Meyering  <meyering@redhat.com>
8199
8200         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8201         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8202
8203 2009-11-14  John W. Eaton  <jwe@gnu.org>
8204
8205         strftime.h: wrap funtion declaration in extern "C" block
8206         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8207
8208 2009-11-13  Eric Blake  <ebb9@byu.net>
8209
8210         getgroups: avoid compiler warning
8211         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8212
8213         getgroups: work around FreeBSD bug
8214         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8215         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8216         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8217         * tests/test-getgroups.c (main): Fix buffer overrun.
8218
8219         getgroups: avoid compilation failure
8220         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8221         * modules/getgroups (Depends-on): Add stdint.
8222
8223 2009-11-13  Jim Meyering  <meyering@redhat.com>
8224
8225         test-getgroups: avoid compilation failure
8226         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8227
8228 2009-11-13  Eric Blake  <ebb9@byu.net>
8229
8230         mgetgroups: new module, taken from coreutils
8231         * modules/mgetgroups: New file.
8232         * lib/mgetgroups.h: Likewise.
8233         * lib/mgetgroups.c (mgetgroups): Likewise.
8234         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8235         * MODULES.html.sh (Users and groups): Mention it.
8236
8237         getgroups: don't expose GETGROUPS_T to user
8238         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8239         an element at a time if GETGROUPS_T is wrong size.
8240         * lib/getugroups.h (getugroups): Change signature.
8241         * lib/unistd.in.h (getgroups): Likewise.
8242         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8243         signature needs fixing.
8244         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8245         AC_TYPE_GETGROUPS.
8246         * modules/group-member (Depends-on): Add getgroups.
8247         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8248         (group_member): Rely on getgroups replacement.
8249         * lib/getugroups.c (getugroups): Use gid_t.
8250         * tests/test-getgroups.c (main): Likewise.
8251         * NEWS: Mention the signature change.
8252         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8253         problem with signature.
8254         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8255         GETGROUPS_T is still useful for setgroups.
8256
8257         getgroups, getugroups: provide stubs for mingw
8258         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8259         * lib/getugroups.c (getugroups): Likewise.
8260         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8261         function.  Modernize replacement scheme.
8262         (gl_PREREQ_GETGROUPS): Delete.
8263         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8264         * modules/getgroups (configure.ac): Declare witness.
8265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8266         * modules/unistd (Depends-on): Substitute witness.
8267         * lib/unistd.in.h (getgroups): Declare replacement.
8268
8269         getgroups: avoid calling exit
8270         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8271         drop xalloc.
8272         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8273         dependencies.
8274         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8275         exiting, in the rare case of malloc failure.
8276
8277         getgroups: fix logic error
8278         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8279         has more than 20 groups.
8280         * modules/getgroups-tests: New test.
8281         * tests/test-getgroups.c: New file.
8282
8283 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8284
8285         * tests/test-base64.c: Improve.
8286
8287 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8288
8289         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8290         Blake <ebb9@byu.net>.
8291
8292 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8293
8294         * tests/test-xvasprintf.c: Add %s%s related checks.
8295
8296 2009-11-12  Eric Blake  <ebb9@byu.net>
8297
8298         version-etc: match standards.texi style
8299         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8300         and use <> only for URLs.
8301
8302 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8303
8304         fts: do not fail on a submount during traversal
8305         * lib/fts.c (fts_build): Read the stat info again after opening
8306         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8307         Original report at http://bugzilla.redhat.com/501848.
8308
8309 2009-11-12  Jim Meyering  <meyering@redhat.com>
8310
8311         bootstrap: sync from coreutils
8312         * build-aux/bootstrap (bootstrap_epilogue): New function.
8313         Use git_modules_config in one more place.  This make bootstrap's
8314         --gnulib-srcdir option more useful for testing.
8315
8316         bootstrap: generalize autoheader check
8317         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8318         AC_CONFIG_HEADERS.
8319
8320 2009-11-11  Eric Blake  <ebb9@byu.net>
8321
8322         mkfifoat: use new modules for Solaris and BSD bugs
8323         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8324         * lib/mkfifoat.c (mknodat): Split...
8325         * lib/mknodat.c (mknodat): ...into new file.
8326         * modules/mkfifoat (Files): Ship new file.
8327         (Depends-on): Add mkfifo, mknod.
8328         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8329         (Depends-on): Add symlink.
8330         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8331         redundant with test_mkfifo.h.
8332         (do_mkfifoat, do_mknodat): New helpers.
8333
8334         mknod: new module
8335         * modules/mknod: New file.
8336         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8337         * lib/mknod.c (mknod): Likewise.
8338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8339         defaults.
8340         * modules/sys_stat (Makefile.am): Substitute them.
8341         * lib/sys_stat.in.h (mknod): Declare replacement.
8342         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8343         Document it.
8344         * doc/posix-functions/mknod.texi (mknod): Likewise.
8345         * modules/mknod-tests: New test.
8346         * tests/test-mknod.c: Likewise.
8347
8348         mkfifo: new module
8349         * modules/mkfifo: New file.
8350         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8351         * lib/mkfifo.c (mkfifo): Likewise.
8352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8353         defaults.
8354         * modules/sys_stat (Makefile.am): Substitute them.
8355         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8356         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8357         Document it.
8358         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8359         * modules/mkfifo-tests: New test.
8360         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8361         from test-mkfifoat.c.
8362         * tests/test-mkfifo.c: New file.
8363
8364         readlink: detect FreeBSD bug
8365         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8366         slash on symlink.
8367         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8368         * tests/test-readlink.h (test_readlink): Enhance test.
8369
8370         symlink: detect FreeBSD bug
8371         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8372         slash on symlink.
8373         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8374         * tests/test-symlink.h (test_symlink): Enhance test.
8375
8376 2009-11-10  Eric Blake  <ebb9@byu.net>
8377
8378         link: detect FreeBSD bug
8379         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8380         symlink.
8381         * doc/posix-functions/link.texi (link): Document the bug.
8382         * tests/test-link.h (test_link): Enhance test.
8383         * tests/test-linkat.c (main): Update caller.
8384
8385         unlink, remove: detect FreeBSD bug
8386         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8387         slash on symlink.
8388         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8389         * doc/posix-functions/remove.texi (remove): Likewise.
8390         * tests/test-unlink.h (test_unlink): Enhance test.
8391         * tests/test-remove.c (main): Likewise.
8392
8393 2009-11-09  Eric Blake  <ebb9@byu.net>
8394
8395         rename: detect FreeBSD bug
8396         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8397         slash on symlink.
8398         * modules/renameat-tests (Depends-on): Add filenamecat.
8399         * tests/test-rename.h (test_rename): Allow one more errno.
8400         * tests/test-renameat.c (main): Likewise.
8401         * doc/posix-functions/rename.texi (rename): Document the bug.
8402
8403         open: detect FreeBSD bug
8404         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8405         symlink.
8406         * doc/posix-functions/open.texi (open): Document the bug.
8407         * doc/posix-functions/utimes.texi (utimes): Likewise.
8408         * tests/test-open.h (test_open): Add parameters, and test symlink
8409         handling.
8410         * tests/test-open.c (main): Adjust caller.
8411         * tests/test-fcntl-safer.c (main): Likewise.
8412         * modules/open-tests (Depends-on): Add stdbool, symlink.
8413         * modules/fcntl-safer-tests (Depends-on): Likewise.
8414         * tests/test-openat.c (main): Add test-open tests.
8415
8416         stat: detect FreeBSD bug
8417         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8418         symlink.
8419         * doc/posix-functions/stat.texi (stat): Document the bug.
8420         * tests/test-stat.h (test_stat_func): Add argument.
8421         * tests/test-stat.c (main): Adjust caller.
8422         * tests/test-fstatat.c (main): Likewise.
8423         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8424         Reported by Jim Meyering.
8425
8426 2009-11-09  James Youngman  <jay@gnu.org>
8427
8428         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8429         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8430
8431 2009-11-08  Jim Meyering  <meyering@redhat.com>
8432
8433         utimens: remove invalid futimesat call
8434         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8435         It used the file descriptor of the target file as the DIR_FD
8436         parameter and NULL as the file name.  That caused failure with
8437         errno == EFAULT on FreeBSD-8.0-rc2
8438
8439 2009-11-07  Eric Blake  <ebb9@byu.net>
8440
8441         fflush, freadseek: use fseeko, not fseek
8442         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8443         (clear_ungetc_buffer): Avoid potential problems on large files.
8444         * lib/freadseek.c (freadseek): Likewise.
8445         * modules/freadseek (Depends-on): Add fseeko.
8446         * modules/fseek (configure.ac): Set a witness.
8447         * tests/test-fflush.c (main): Use fseeko.
8448         * tests/test-fpurge.c (fseek): Disable link warning.
8449         * tests/test-freadable.c (fseek): Likewise.
8450         * tests/test-freading.c (fseek): Likewise.
8451         * tests/test-fseeko.c (fseek): Likewise.
8452         * tests/test-ftell.c (fseek): Likewise.
8453         * tests/test-ftello.c (fseek): Likewise.
8454         * tests/test-fwritable.c (fseek): Likewise.
8455         * tests/test-fwriting.c (fseek): Likewise.
8456
8457 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8458
8459         * modules/memchr (Depends-on): Drop getpagesize dependency.
8460
8461 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8462
8463         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8464         Reported by Ludovic Courtès.
8465         * build-aux/pmccabe2html: Improve example usage.
8466         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8467
8468 2009-11-06  Jim Meyering  <meyering@redhat.com>
8469
8470         do-release-commit-and-tag: New module.
8471         Automate the release-commit and tag process.
8472         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8473         * modules/do-release-commit-and-tag: New file.
8474         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8475
8476 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8477
8478         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8479         because test-select.c uses inet_pton.
8480
8481 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8482
8483         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8484         GETADDRINFO_LIB.  Bump serial number.
8485         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8486         Suggested by Eric Blake <ebb9@byu.net>.
8487
8488 2009-11-05  Eric Blake  <ebb9@byu.net>
8489
8490         strtod: detect darwin bug
8491         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8492         Reported by Leo Davis.
8493
8494         freopen-safer: new module
8495         * modules/freopen-safer: New module.
8496         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8497         * lib/freopen-safer.c (freopen_safer): New file.
8498         * lib/stdio-safer.h (freopen_safer): New declaration.
8499         * lib/stdio--.h (freopen): New override.
8500         * MODULES.html.sh (File stream based Input/Output): Mention it.
8501         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8502         freopen-safer module.
8503         * doc/posix-functions/stderr.texi (stderr): Likewise.
8504         * doc/posix-functions/stdin.texi (stdin): Likewise.
8505         * doc/posix-functions/stdout.texi (stdout): Likewise.
8506         * modules/freopen-safer-tests: New test.
8507         * tests/test-reopen-safer.c: New file.
8508
8509 2009-11-05  Jim Meyering  <meyering@redhat.com>
8510
8511         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8512         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8513
8514 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8515
8516         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8517
8518 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8519
8520         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8521
8522 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8523
8524         Fix link error.
8525         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8526         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8527
8528 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8529
8530         * tests/test-func.c: Also test value of __func__.
8531
8532 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8533
8534         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8535         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8536
8537 2009-11-05  Bruno Haible  <bruno@clisp.org>
8538
8539         Fix link error.
8540         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8542         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8543
8544 2009-11-05  Bruno Haible  <bruno@clisp.org>
8545
8546         Tests for module 'inet_pton'.
8547         * modules/inet_pton-tests: New file.
8548         * tests/test-inet_pton.c: New file.
8549
8550 2009-11-05  Bruno Haible  <bruno@clisp.org>
8551
8552         Tests for module 'inet_ntop'.
8553         * modules/inet_ntop-tests: New file.
8554         * tests/test-inet_ntop.c: New file.
8555
8556 2009-11-04  Eric Blake  <ebb9@byu.net>
8557
8558         stdlib-safer: wrap all mkstemp variants
8559         * modules/mkostemp (configure.ac): Set witness.
8560         * modules/mkostemps (configure.ac): Likewise.
8561         * modules/mkstemps (configure.ac): Likewise.
8562         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8563         (mkstemps_safer): Wrap more functions.
8564         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8565         wrapping.
8566         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8567         (mkstemps_safer): Implement the wrappers.
8568
8569         mkstemps, mkostemps: new modules
8570         * modules/mkostemps: New module.
8571         * modules/mkstemps: Likewise.
8572         * lib/mkostemps.c (mkostemps): New file.
8573         * lib/mkstemps.c (mkstemps): Likewise.
8574         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8575         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8577         * modules/stdlib (Makefile.am): Substitute them.
8578         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8579         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8580         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8581         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8582         * MODULES.html.sh (File system functions): Mention them.
8583
8584         tempname: resync from glibc
8585         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8586         same values for __GT_FILE as glibc.  Abort even when assertions
8587         are disabled.
8588         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8589         match its value otherwise.  Allow idempotent inclusion.
8590         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8591         * lib/mkostemp.c (mkostemp): Likewise.
8592         * lib/mkstemp.c (mkstemp): Likewise.
8593         * lib/tmpfile.c (tmpfile): Likewise.
8594         * NEWS: Document this.
8595
8596         utimens: fix use of futimens on older Linux
8597         * lib/utimens.c (fdutimens): Use updated, rather than original,
8598         timespec to avoid bug in older Linux kernel.
8599         Reported by Simon Josefsson.
8600
8601 2009-11-04  Bruno Haible  <bruno@clisp.org>
8602
8603         Make num_processors more flexible and consistent.
8604         * lib/nproc.h (enum nproc_query): New type.
8605         (num_processors): Add a 'query' argument.
8606         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8607         (num_processors): Add a 'query' argument. Test the value of the
8608         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8609         mingw, count the number of CPUs available for the current process.
8610         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8611         Check for sched_getaffinity and sched_getaffinity_np.
8612         * modules/nproc (Depends-on): Add c-ctype, extensions.
8613         * NEWS: Mention the change.
8614
8615 2009-11-03  Bruno Haible  <bruno@clisp.org>
8616
8617         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
8618
8619 2009-11-03  Jim Meyering  <meyering@redhat.com>
8620
8621         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
8622         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
8623         if it is defined.
8624
8625 2009-11-02  Eric Blake  <ebb9@byu.net>
8626
8627         mktime, timegm: share common declaration
8628         * lib/mktime-internal.h: New file.
8629         * lib/mktime.c: Use it rather than open-coding a declaration.
8630         * lib/timegm.c: Likewise.
8631         * modules/mktime (Files): Ship it.
8632         * modules/timegm (Files): Likewise.
8633         Suggested by Bruno Haible.
8634
8635         test-update-copyright: update test to match script changes
8636         * tests/test-update-copyright.sh: Avoid hard-coding perl
8637         location.  Don't update *.bak created by earlier runs.
8638
8639 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
8640             Simon Josefsson  <simon@josefsson.org>
8641             Bruno Haible  <bruno@clisp.org>
8642
8643         Fix link error on Solaris 8.
8644         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
8645         also in libnsl. Define also INET_PTON_LIB.
8646         * modules/inet_pton (Link): New section.
8647
8648 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8649             Bruno Haible  <bruno@clisp.org>
8650
8651         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
8652         * modules/inet_ntop (Link): New section.
8653         Reported by Boyan Kasarov <bkasarov@gmail.com>.
8654
8655 2009-11-02  Eric Blake  <ebb9@byu.net>
8656
8657         maint: avoid compiler warnings in m4 macros
8658         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
8659         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
8660
8661 2009-11-02  Simon Josefsson  <simon@josefsson.org>
8662
8663         * m4/pmccabe2html.m4: Remove file.
8664         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
8665         function.  Change maintainer.
8666         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
8667         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
8668         Courtès).
8669
8670 2009-10-31  Eric Blake  <ebb9@byu.net>
8671
8672         fseeko: fix m4 regression
8673         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
8674         regression from 2009-10-27.
8675         Reported by Ralf Wildenhues.
8676
8677 2009-10-31  Jim Meyering  <meyering@redhat.com>
8678
8679         inttostr: aesthetics and improved (compile-time) safety
8680         Define inttype_is_signed rather than inttype_is_unsigned,
8681         since the sole use is via "#if inttype_is_signed".
8682         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
8683         inttype_is_unsigned.
8684         * lib/offtostr.c (inttype_is_signed): Likewise.
8685         * lib/uinttostr.c (inttype_is_signed): Likewise.
8686         * lib/umaxtostr.c (inttype_is_signed): Likewise.
8687         * lib/inttostr.c (inttostr): Use verify to cross-check the
8688         inttype_is_signed value and the signedness of the actual type.
8689         * modules/inttostr (Depends-on): Add verify.
8690
8691 2009-10-30  Eric Blake  <ebb9@byu.net>
8692
8693         build: avoid compiler warnings
8694         * lib/fchmodat.c (lchmod): Mark unused variables.
8695         * lib/getopt.c (_getopt_initialize): Likewise.
8696         * lib/mktime.c (__mktime_internal): Provide prototype.
8697         * lib/inttostr.c (inttostr): Avoid compiler warning even with
8698         older gcc that do not understand #pragma GCC diagnostic.
8699         * lib/uinttostr.c (inttype_is_unsigned): Define.
8700         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
8701
8702 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
8703
8704         stat: fix compilation on AIX
8705         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
8706         only see struct stat64.
8707
8708 2009-10-30  Eric Blake  <ebb9@byu.net>
8709
8710         exclude: make more robust
8711         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
8712         rather than masking a coding bug.
8713         Suggested by Bruno Haible.
8714
8715 2009-10-30  Jim Meyering  <meyering@redhat.com>
8716
8717         perl scripts: remove #!/usr/bin/perl in favor of more portable...
8718         Rather than putting #!/usr/bin/perl on the first line,
8719         start with a variant of what's recommended by "man perlrun" that
8720         invokes the first "perl" program from your shell's search path.
8721         * build-aux/gitlog-to-changelog: Replace #!... as above.
8722         Add a "Local Variables" perl mode setting.
8723         Prompted by a patch from Ludovic Courtès.
8724         Improved by Eric Blake.
8725         * build-aux/useless-if-before-free: Likewise.
8726         * build-aux/announce-gen: Likewise.
8727         * build-aux/update-copyright: Likewise.
8728
8729 2009-10-29  Eric Blake  <ebb9@byu.net>
8730
8731         filenamecat-lgpl: adjust clients
8732         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
8733         filenamecat.
8734         * modules/renameat (Depends-on): Likewise.
8735
8736         filenamecat: split into filenamecat-lgpl
8737         * modules/filenamecat-lgpl: New module.
8738         * modules/filenamecat (Files): Move library-safe files into
8739         filenamecat-lgpl.
8740         (Depends-on): Add filenamecat-lgpl.
8741         (configure.ac): Declare witness.
8742         * lib/filenamecat.h (file_name_concat): Only declare when using
8743         GPL module.
8744         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
8745         Move...
8746         * lib/filenamecat-lgpl.c: ...into new file.
8747         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
8748         (gl_FILE_NAME_CONCAT): Use it.
8749         * MODULES.html.sh (File system functions): Mention new module.
8750
8751         argp: avoid memory leak
8752         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
8753         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
8754         base_name, since the latter malloc()s and can call exit().
8755         Leak introduced 2006-07-03.
8756
8757         dirname-lgpl: adjust clients that don't need full dirname
8758         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
8759         * modules/filenamecat (Depends-on): Likewise.
8760         * modules/linkat (Depends-on): Likewise.
8761         * modules/mkancesdirs (Depends-on): Likewise.
8762         * modules/mkdir (Depends-on): Likewise.
8763         * modules/openat (Depends-on): Likewise.
8764         * modules/savewd (Depends-on): Likewise.
8765         * modules/rename (Depends-on): Likewise.
8766         (License): Relax license.
8767         * modules/mkdir-tests (Depends-on): Drop progname.
8768         (Makefile.am): Delete unneeded LDADD.
8769         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
8770
8771         dirname: split into dirname-lgpl
8772         * modules/dirname-lgpl: New module.
8773         * modules/dirname (Files): Move library-safe files into
8774         dirname-lgpl.
8775         (Depends-on): Add dirname-lgpl.
8776         (configure.ac): Declare witness.
8777         * modules/double-slash-root (License): Relax license.
8778         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
8779         module.
8780         * lib/dirname.c (dir_len, mdir_name): Move...
8781         * lib/dirname-lgpl.c: ...into new file.
8782         * lib/basename.c (last_component, base_len): Move...
8783         * lib/basename-lgpl.c: ...into new file.
8784         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
8785         (gl_DIRNAME): Use it.
8786         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
8787         Mention new module.
8788         * modules/dirname-tests (Depends-on): Add progname.
8789         * tests/test-dirname.c (program_name): Delete.
8790
8791         mkdir: make safe for libraries
8792         * modules/mkdir (Depends-on): Drop xalloc.
8793         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
8794         exit.
8795
8796         tests: avoid some compiler warnings
8797         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
8798         literals.
8799         * tests/test-memchr.c (main): Avoid type mismatch.
8800         * tests/test-arpa_inet.c (main): Avoid unused parameters.
8801         * tests/test-base64.c (main): Likewise.
8802         * tests/test-getdelim.c (main): Likewise.
8803         * tests/test-gethostname.c (main): Likewise.
8804         * tests/test-getline.c (main): Likewise.
8805         * tests/test-netinet_in.c (main): Likewise.
8806         * tests/test-select.c (open_server_socket, main): Likewise.
8807         * tests/test-select-stdin.c (main): Likewise.
8808         * tests/test-sockets.c (main): Likewise.
8809         * tests/test-strsignal.c (main): Likewise.
8810         * tests/test-sys_select.c (main): Likewise.
8811         * tests/test-sys_socket.c (main): Likewise.
8812         * tests/test-u64.c (main): Likewise.
8813         * tests/test-xfprintf-posix.c (main): Likewise.
8814         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
8815
8816         sockets: avoid compiler warning
8817         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
8818
8819         maint: detect usage(1) and other suspicious exits
8820         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
8821
8822 2009-10-29  Jim Meyering  <meyering@redhat.com>
8823
8824         timespec: long-to-int truncation could make timespec_cmp malfunction
8825         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
8826         a multiple of 2^32 nanoseconds as no difference.
8827
8828 2009-10-28  Jim Meyering  <meyering@redhat.com>
8829
8830         fprintftime: wrap macro code argument in "do {...} while(0)"
8831         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
8832         cpy macro must be a statement that can be followed by a semicolon.
8833         Now that the else clause contains a comment and is hence longer
8834         than one line, I require curly braces.  That in turn requires
8835         that we wrap this code block in the standard do...while(0).
8836
8837         fprintftime: remove stray semicolon from previous change
8838         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
8839
8840         fprintftime: avoid a warning about ignored fwrite return value
8841         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8842         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
8843         that is unsafe.
8844         * modules/fprintftime (Depends-on): Add ignore-value.
8845
8846         exclude: avoid an unwarranted warning
8847         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
8848
8849 2009-10-27  Eric Blake  <ebb9@byu.net>
8850
8851         fseek: avoid compilation failure when fflush is replaced
8852         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
8853         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
8854         module is in use.
8855         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
8856         module is not in use; since REPLACE_FSEEK worked otherwise.
8857         (GNULIB_FTELLO): Likewise for ftell.
8858         Reported by Ian Beckwith and others.
8859
8860 2009-10-27  Bruno Haible  <bruno@clisp.org>
8861
8862         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
8863         Reported by Jim Meyering.
8864
8865 2009-10-27  Jim Meyering  <jim@meyering.net>
8866             Bruno Haible  <bruno@clisp.org>
8867
8868         Avoid warning despite dropping the return value of fwrite.
8869         * lib/unicodeio.c: Include ignore-value.h.
8870         (fwrite_success_callback): Explicitly ignore fwrite's return value.
8871         * modules/unicodeio (Depends-on): Add ignore-value.
8872
8873 2009-10-26  Eric Blake  <ebb9@byu.net>
8874
8875         areadlinkat: fix fallback path
8876         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
8877         pointer and zero.
8878
8879 2009-10-22  Pádraig Brady  <P@draigBrady.com>
8880
8881         Use a better IO block size for modern systems
8882         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
8883         * lib/md2.c: Likewise.
8884         * lib/md4.c: Likewise.
8885         * lib/md5.c: Likewise.
8886         * lib/sha1.c: Likewise.
8887         * lib/sha256.c: Likewise.
8888         * lib/sha512.c: Likewise.
8889
8890 2009-10-22  Eric Blake  <ebb9@byu.net>
8891
8892         tests: avoid several compiler warnings
8893         * tests/test-getcwd.c (main): Avoid buffer underflow.
8894         * tests/test-getdate.c (main): String literals are not safe with
8895         putenv, so use setenv.  Declare unused argument.
8896         * modules/getdate-tests (Depends-on): Add setenv.
8897         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
8898         problems with string literals in char *.
8899         * tests/test-hash.c (main): Avoid shadowing declaration.
8900         (insert_new): Treat string literals as char const *.
8901         * tests/test-getopt.h (test_getopt): Likewise.
8902         (getopt_loop): Alter types to minimize casting elsewhere.
8903         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
8904         (test_getopt_long_posix): Likewise.
8905         (do_getopt_long): Add wrapper to minimize casting.
8906         * tests/test-atexit.c (clear_temp_file): Use void.
8907         * tests/test-areadlink-with-size.c (main): Declare unused
8908         arguments.
8909         * tests/test-areadlink.c (main): Likewise.
8910         * tests/test-areadlinkat-with-size.c (main): Likewise.
8911         * tests/test-areadlinkat.c (main): Likewise.
8912         * tests/test-canonicalize-lgpl.c (main): Likewise.
8913         * tests/test-canonicalize.c (main): Likewise.
8914         * tests/test-dirent-safer.c (main): Likewise.
8915         * tests/test-dirname.c (main): Likewise.
8916         * tests/test-dup2.c (main): Likewise.
8917         * tests/test-fchdir.c (main): Likewise.
8918         * tests/test-fcntl-h.c (main): Likewise.
8919         * tests/test-fcntl-safer.c (main): Likewise.
8920         * tests/test-fdopendir.c (main): Likewise.
8921         * tests/test-fdutimensat.c (main): Likewise.
8922         * tests/test-fflush.c (main): Likewise.
8923         * tests/test-filenamecat.c (main): Likewise.
8924         * tests/test-filevercmp.c (main): Likewise.
8925         * tests/test-fopen-safer.c (main): Likewise.
8926         * tests/test-fopen.c (main): Likewise.
8927         * tests/test-fpending.c (main): Likewise.
8928         * tests/test-fpurge.c (main): Likewise.
8929         * tests/test-freading.c (main): Likewise.
8930         * tests/test-fstatat.c (main): Likewise.
8931         * tests/test-fsync.c (main): Likewise.
8932         * tests/test-futimens.c (main): Likewise.
8933         * tests/test-getndelim2.c (main): Likewise.
8934         * tests/test-gettimeofday.c (main): Likewise.
8935         * tests/test-getopt.c (main): Likewise.
8936         * tests/test-i-ring.c (main): Likewise.
8937         * tests/test-inttypes.c (main): Likewise.
8938         * tests/test-link.c (main): Likewise.
8939         * tests/test-lstat.c (main): Likewise.
8940         * tests/test-math.c (main): Likewise.
8941         * tests/test-md5.c (main): Likewise.
8942         * tests/test-memchr2.c (main): Likewise.
8943         * tests/test-memrchr.c (main): Likewise.
8944         * tests/test-mkdir.c (main): Likewise.
8945         * tests/test-mkdirat.c (main): Likewise.
8946         * tests/test-mkfifoat.c (main): Likewise.
8947         * tests/test-open.c (main): Likewise.
8948         * tests/test-openat-safer.c (main): Likewise.
8949         * tests/test-openat.c (main): Likewise.
8950         * tests/test-quotearg.c (main): Likewise.
8951         * tests/test-rawmemchr.c (main): Likewise.
8952         * tests/test-readlink.c (main): Likewise.
8953         * tests/test-remove.c (main): Likewise.
8954         * tests/test-rename.c (main): Likewise.
8955         * tests/test-renameat.c (main): Likewise.
8956         * tests/test-rmdir.c (main): Likewise.
8957         * tests/test-sha1.c (main): Likewise.
8958         * tests/test-signal.c (main): Likewise.
8959         * tests/test-sigaction.c (main): Likewise.
8960         * tests/test-stat.c (main): Likewise.
8961         * tests/test-stat-time.c (main): Likewise.
8962         * tests/test-stddef.c (main): Likewise.
8963         * tests/test-stdint.c (main): Likewise.
8964         * tests/test-stdio.c (main): Likewise.
8965         * tests/test-stdlib.c (main): Likewise.
8966         * tests/test-strchrnul.c (main): Likewise.
8967         * tests/test-strerror.c (main): Likewise.
8968         * tests/test-string.c (main): Likewise.
8969         * tests/test-strtod.c (main): Likewise.
8970         * tests/test-strverscmp.c (main): Likewise.
8971         * tests/test-symlink.c (main): Likewise.
8972         * tests/test-symlinkat.c (main): Likewise.
8973         * tests/test-sys_stat.c (main): Likewise.
8974         * tests/test-sys_time.c (main): Likewise.
8975         * tests/test-time.c (main): Likewise.
8976         * tests/test-unistd.c (main): Likewise.
8977         * tests/test-unlink.c (main): Likewise.
8978         * tests/test-unlinkat.c (main): Likewise.
8979         * tests/test-utimens.c (main): Likewise.
8980         * tests/test-utimensat.c (main): Likewise.
8981         * tests/test-version-etc.c (main): Likewise.
8982         * tests/test-wchar.c (main): Likewise.
8983         * tests/test-wctype.c (main): Likewise.
8984         * tests/test-xprintf-posix.c (main): Likewise.
8985         * tests/test-posixtm.c (main): Likewise.
8986         (STREQ): Delete unused macro.
8987         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
8988         shadowed variables.
8989         * tests/test-memchr.c (main): Likewise.
8990
8991 2009-10-21  Eric Blake  <ebb9@byu.net>
8992
8993         areadlinkat: avoid failure on older glibc
8994         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
8995         rather than mis-comparing 0 against FUNC_RESULT of char*.
8996
8997 2009-10-21  Bruno Haible  <bruno@clisp.org>
8998
8999         * modules/stpncpy (License): Relicense under LGPLv2+.
9000         Reported by David Lutterkort <lutter@redhat.com>.
9001
9002 2009-10-20  Eric Blake  <ebb9@byu.net>
9003
9004         utimensat: work around Solaris 9 bug
9005         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9006         has trailing slash bugs.
9007         * tests/test-lutimens.h (test_lutimens): Enhance test.
9008         * tests/test-utimens.h (test_utimens): Likewise.
9009         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9010         * doc/posix-functions/utimes.texi (utimes): Likewise.
9011         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9012         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9013         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9014         * doc/posix-functions/futimens.texi (futimens): Likewise.
9015
9016         fdutimensat: new module
9017         * modules/fdutimensat: New file.
9018         * lib/fdutimensat.c (fdutimensat): Likewise.
9019         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9020         * MODULES.html.sh (File system functions): Mention module.
9021         * modules/fdutimensat-tests: New test.
9022         * tests/test-fdutimensat.c: Likewise.
9023
9024         doc: regenerate INSTALL
9025         * doc/INSTALL: Reflect recent autoconf update.
9026         * doc/INSTALL.ISO: Likewise.
9027         * doc/INSTALL.UTF-8: Likewise.
9028
9029 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9030
9031         acl: warn if ACL support is not detected
9032         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9033
9034 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9035
9036         * lib/nproc.h: Add extern "C" block for C++.
9037
9038 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9039             Bruno Haible  <bruno@clisp.org>
9040
9041         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9042         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9043         * doc/posix-functions/isalpha.texi: Likewise.
9044         * doc/posix-functions/isblank.texi: Likewise.
9045         * doc/posix-functions/iscntrl.texi: Likewise.
9046         * doc/posix-functions/isdigit.texi: Likewise.
9047         * doc/posix-functions/isgraph.texi: Likewise.
9048         * doc/posix-functions/islower.texi: Likewise.
9049         * doc/posix-functions/isprint.texi: Likewise.
9050         * doc/posix-functions/ispunct.texi: Likewise.
9051         * doc/posix-functions/isspace.texi: Likewise.
9052         * doc/posix-functions/isupper.texi: Likewise.
9053         * doc/posix-functions/isxdigit.texi: Likewise.
9054
9055 2009-10-18  Bruno Haible  <bruno@clisp.org>
9056
9057         Tests for module 'isblank'.
9058         * modules/isblank-tests: New file.
9059         * tests/test-isblank.c: New file.
9060
9061         New module 'isblank'.
9062         * lib/isblank.c: New file.
9063         * m4/isblank.m4: New file.
9064         * modules/isblank: New file.
9065         * doc/posix-functions/isblank.texi: Mention the new module.
9066
9067 2009-10-18  Bruno Haible  <bruno@clisp.org>
9068
9069         New module 'ctype'.
9070         * lib/ctype.in.h: New file.
9071         * m4/ctype.m4: New file.
9072         * modules/ctype: New file.
9073         * doc/posix-headers/ctype.texi: Mention the new module.
9074
9075 2009-10-18  Jim Meyering  <meyering@redhat.com>
9076
9077         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9078         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9079         right after its initialization, rather than farther down.
9080         Keeping these in close proximity makes it easier to ensure
9081         that each such variable is initialized.  E.g.,
9082
9083             LIB_CLOCK_GETTIME=
9084             AC_SUBST([LIB_CLOCK_GETTIME])
9085
9086         This change also increments these serial numbers.
9087         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9088         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9090
9091 2009-10-18  Bruno Haible  <bruno@clisp.org>
9092
9093         Don't let environment variables perturb build.
9094         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9095         (gl_PREREQ_GETHRXTIME): ... not here.
9096
9097 2009-10-18  Bruno Haible  <bruno@clisp.org>
9098
9099         Avoid symlink attack in localcharset module.
9100         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9101         (O_NOFOLLOW): Define fallback.
9102         (get_charset_aliases): Don't open the file if it is a symbolic link.
9103         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9104         gl_FCNTL_H.
9105         (gl_FCNTL_H): Require it.
9106         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9107         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9108         Reported by Fergal Glynn <fglynn@veracode.com>.
9109
9110 2009-10-18  Bruno Haible  <bruno@clisp.org>
9111
9112         Implement nproc for mingw.
9113         * lib/nproc.c: Include <windows.h>
9114         (num_processors): On native Windows platforms, try GetSystemInfo.
9115
9116 2009-10-18  Bruno Haible  <bruno@clisp.org>
9117
9118         Implement nproc for IRIX.
9119         * lib/nproc.c: Include <sys/sysmp.h>.
9120         (num_processors): On IRIX systems, try sysmp.
9121         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9122
9123 2009-10-18  Bruno Haible  <bruno@clisp.org>
9124
9125         Implement nproc for HP-UX.
9126         * lib/nproc.c: Include <sys/pstat.h>
9127         (num_processors): On HP-UX systems, try pstat_getdynamic.
9128         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9129         pstat_getdynamic.
9130
9131 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9132             Bruno Haible  <bruno@clisp.org>
9133
9134         Implement nproc for NetBSD, OpenBSD.
9135         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9136         (ARRAY_SIZE): New macro.
9137         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9138         * m4/nproc.m4: New file.
9139         * modules/nproc (Files): Add m4/nproc.m4.
9140         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9141         (Makefile.am): Instead, augment lib_SOURCES.
9142
9143 2009-10-18  Bruno Haible  <bruno@clisp.org>
9144
9145         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9146         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9147         sys/param.h.
9148
9149 2009-10-16  Eric Blake  <ebb9@byu.net>
9150
9151         utimensat: new module
9152         * modules/utimensat: New file.
9153         * lib/utimensat.c (utimensat): Likewise.
9154         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9155         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9156         so we can work around Linux bugs.
9157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9158         * modules/sys_stat (Makefile.am): Substitute them.
9159         * lib/sys_stat.in.h (utimensat): Declare it.
9160         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9161         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9162         * modules/utimensat-tests: New test.
9163         * tests/test-utimensat.c: Likewise.
9164
9165         utimens: let lutimens work on non-symlinks
9166         * lib/utimens.c (lutimens): Fall back to utimens rather than
9167         failing with ENOSYS, when file is not a symlink.
9168         (utimens): Reduce redirection.
9169         * tests/test-lutimens.h (test_lutimens): Update test to cover
9170         non-symlinks.
9171         * tests/test-utimens.h (test_utimens): Update test to cover
9172         symlinks.
9173         * tests/test-utimens.c (main): Update caller.
9174
9175         utimens: cache whether utimensat syscall works
9176         * lib/utimens.c (utimensat_works_really): New cache variable.
9177         (fdutimens, lutimens): Use it to avoid failing syscall.
9178
9179         test-stat-time, test-utimens: improve portability
9180         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9181         ext4 on alpha, and for cygwin.
9182         * tests/test-utimens-common.h: New file.
9183         (nap): Factor delays into single function.
9184         * tests/test-lutimens.h (test_lutimens): Use new header.
9185         * tests/test-futimens.h (test_futimens): Likewise.
9186         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9187         timestamps to occur from same machine, as was done previously for
9188         test_utimens.
9189         * modules/utimens-tests (Files): Ship new file.
9190         * modules/futimens-tests (Files): Likewise.
9191         Reported in part by Jim Meyering.
9192
9193         sys_stat: sort replacement declarations
9194         * lib/sys_stat.in.h: Sort declarations.
9195         * lib/futimens.c (futimens): Fix typo.
9196
9197 2009-10-15  Jim Meyering  <meyering@redhat.com>
9198
9199         don't let environment settings perturb build
9200         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9201         could cause a configure-time and/or build-time malfunction.
9202         Typically, a configure-time function-in-library test is performed
9203         via code like this:
9204
9205           LIB_VAR=
9206           AC_SUBST([LIB_VAR])
9207           prefix_saved_LIBS=$LIBS
9208             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9209                        [test "$ac_cv_search_FUNC" = "none required" ||
9210                         LIB_VAR=$ac_cv_search_FUNC])
9211           LIBS=$prefix_saved_LIBS
9212
9213         However, in each of the files affected by this change, the LIB_VAR=
9214         initialization was omitted.  Thus, when set in the environment, its
9215         value would propagate into generated Makefiles when FUNC is not found
9216         in LIB_NAME.
9217         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9218         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9219         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9220
9221 2009-10-14  Eric Blake  <ebb9@byu.net>
9222
9223         fchdir: avoid infinite recursion in mingw
9224         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9225         recursing.
9226
9227         test-stat-time: port to mingw
9228         * tests/test-stat-time.c (force_unlink): Return a value.
9229         (test_ctime) [W32]: Fix compilation error.
9230         (nap): Don't call usleep with too large an argument.  Use
9231         force_unlink.
9232         * doc/pastposix-functions/usleep.texi (usleep): Document the
9233         portability issue.
9234
9235 2009-10-13  Jim Meyering  <meyering@redhat.com>
9236
9237         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9238         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9239         * modules/pipe-filter-ii: Likewise.
9240         * modules/sys_socket-tests: Likewise.
9241         * modules/tsearch-tests: Likewise.
9242         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9243         (check): Depend on it.
9244
9245 2009-10-12  Eric Blake  <ebb9@byu.net>
9246
9247         utimens-tests: port to NFS file systems
9248         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9249         comparisons to avoid spurious failures from timestamp drift
9250         between NFS machines.
9251
9252 2009-10-12  Eric Blake  <ebb9@byu.net>
9253
9254         stat-time-tests: minor cleanups
9255         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9256         * tests/test-stat-time.c (nap): Separate assignment from call.
9257         Suggested by Paolo Bonzini and Bruno Haible.
9258
9259         sys_stat: guarantee struct timespec
9260         * lib/sys_stat.in.h (includes): Always include <time.h>
9261         * modules/sys_stat (Depends-on): Add time.
9262         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9263         mode_t permission values.
9264         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9265         get at subsecond timestamps.
9266
9267 2009-10-10  Eric Blake  <ebb9@byu.net>
9268
9269         futimens: new module
9270         * modules/futimens: New file.
9271         * lib/futimens.c (futimens): Likewise.
9272         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9273         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9274         we can work around Linux bugs.
9275         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9276         * modules/sys_stat (Makefile.am): Substitute them.
9277         * lib/sys_stat.in.h (futimens): Declare it.
9278         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9279         * doc/posix-functions/futimens.texi (futimens): Likewise.
9280         * modules/futimens-tests: New test.
9281         * tests/test-futimens.c: Likewise.
9282
9283         utimens: introduce fdutimens
9284         * lib/utimens.h (fdutimens): New prototype.
9285         * lib/utimens.c (gl_futimens): Move guts...
9286         (fdutimens): ...to new interface.
9287         * tests/test-utimens.c (do_fdutimens): Use it.
9288
9289         utimens: add UTIME_NOW and UTIME_OMIT support
9290         * lib/utimens.c (validate_timespec, update_timespec): New helper
9291         functions.
9292         (gl_futimens, lutimens): Use them.
9293         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9294         stdbool, sys_stat.
9295         (Link): Mention resulting library dependency.
9296         * modules/utimecmp (Link): Likewise.
9297         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9298         (Makefile.am): Pick up library dependency.
9299         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9300         definition.
9301         * tests/test-sys_stat.c: Test the definitions.
9302         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9303         * NEWS: Document library dependency.
9304
9305         utimecmp: support symlink timestamps
9306         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9307         hashing when possible.  Use pathconf when available.
9308         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9309         * modules/utimecmp (Depends-on): Add lstat.
9310
9311         utimens: add lutimens interface
9312         * lib/utimens.c (lutimens): New function.
9313         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9314         * lib/utimens.h (lutimens): Declare new interface.
9315         * tests/test-utimens.c (main): Enhance test.
9316         * tests/test-lutimens.h (test_lutimens): New file.
9317         * modules/utimens-tests (Files): Distribute it.
9318         (Depends-on): Add symlink.
9319         (configure.ac): Check for usleep.
9320
9321         utimens: validate futimens usage
9322         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9323         fewer syscalls on failure later on.  Avoid compiler warning on
9324         mingw.
9325         * modules/utimens (Depends-on): Add dup2.
9326
9327         utimens: add test
9328         * modules/utimens-tests: New test.
9329         * tests/test-utimens.h: New file.
9330         * tests/test-futimens.h: Likewise.
9331         * tests/test-utimens.c: Likewise.
9332
9333         doc: mention timestamp portability issues
9334         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9335         instead.
9336         * doc/posix-functions/utime.texi (utime): Likewise.
9337         * doc/posix-functions/utimes.texi (utimes): Likewise.
9338         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9339         instead.
9340         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9341         module.
9342         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9343         Mention weakness with symlink timestamps.
9344         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9345         to utimensat/futimens instead.
9346         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9347
9348         test-dup2: enhance test
9349         * tests/test-dup2.c (main): Also check AT_FDCWD.
9350
9351         test-stat-time: avoid more spurious failures
9352         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9353         xfs; and avoid race if the two timestamps cross quantization edge.
9354
9355         relocatable: prefer 'file system' over 'filesystem'
9356         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9357         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9358         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9359         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9360         * lib/relocatable.c (compute_curr_prefix): Likewise.
9361
9362 2009-10-10  Jim Meyering  <meyering@redhat.com>
9363
9364         stat-time-tests: check for the usleep function
9365         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9366
9367 2009-10-10  Bruno Haible  <bruno@clisp.org>
9368
9369         * modules/xnanosleep: Put the Link section after the Include section.
9370
9371 2009-10-09  Eric Blake  <ebb9@byu.net>
9372
9373         dup2: work around FreeBSD 6.1 bug
9374         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9375         * doc/posix-functions/dup2.texi (dup2): Document it.
9376         Reported by Nelson H. F. Beebe and Jim Meyering.
9377
9378         test-stat-time: port to buggy NFS clients
9379         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9380         (test_ctime): Also skip test if mtime and ctime are skewed.
9381
9382         maint: prefer 'file system' over 'filesystem'
9383         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9384         * doc/posix-functions/lstat.texi (lstat): Likewise.
9385         * lib/file-has-acl.c (file_has_acl): Likewise.
9386         * lib/fwriteerror.c [TEST]: Likewise.
9387         * tests/test-areadlink.h (test_areadlink): Likewise.
9388         * tests/test-areadlinkat-with-size.c (main): Likewise.
9389         * tests/test-areadlinkat.c (main): Likewise.
9390         * tests/test-canonicalize-lgpl.c (main): Likewise.
9391         * tests/test-canonicalize.c (main): Likewise.
9392         * tests/test-fstatat.c (main): Likewise.
9393         * tests/test-linkat.c (main): Likewise.
9394         * tests/test-lstat.h (test_lstat_func): Likewise.
9395         * tests/test-mkdir.h (test_mkdir): Likewise.
9396         * tests/test-readlink.h (test_readlink): Likewise.
9397         * tests/test-remove.c (main): Likewise.
9398         * tests/test-rename.h (test_rename): Likewise.
9399         * tests/test-renameat.c (main): Likewise.
9400         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9401         * tests/test-symlink.h (test_symlink): Likewise.
9402         * tests/test-symlinkat.c (main): Likewise.
9403         * tests/test-unlink.h (test_unlink_func): Likewise.
9404         * tests/test-unlinkat.c (main): Likewise.
9405
9406         maint: make realtime library usage explicit
9407         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9408         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9409         * modules/settime (Link): Likewise.
9410         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9411
9412         test-stat-time: speed up execution
9413         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9414         warning on mingw.
9415         (nap): New helper function.
9416         (prepare_test): Use it to reduce sleep time.
9417         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9418         execution.
9419         * modules/stat-time-tests (configure.ac): Check for usleep.
9420
9421 2009-10-09  Jim Meyering  <meyering@redhat.com>
9422
9423         selinux-h: always use getfilecon wrappers
9424         * lib/getfilecon.c: New file.
9425         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9426         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9427         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9428         (fgetfilecon): Provide a stub.
9429         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9430         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9431         file unconditionally.
9432         When <selinux/selinux.h> is found, arrange to use wrappers.
9433         * modules/selinux-h (Files): Add getfilecon.c.
9434         (Makefile.am): Substitute include-next-related bits
9435         into the now-always-generated selinux/selinux.h file.
9436         * doc/glibc-functions/lgetfilecon.texi: New file.
9437         * doc/glibc-functions/fgetfilecon.texi: New file.
9438         * doc/glibc-functions/getfilecon.texi: New file.
9439         * doc/glibc-functions/getfilecon-desc.texi: New file.
9440         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9441         which to pull in the new files.
9442         * MODULES.html.sh (Misc): Add selinux-h.
9443
9444 2009-10-08  Jim Meyering  <meyering@redhat.com>
9445
9446         unistd: fix comment typo
9447         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9448
9449 2009-10-08  Eric Blake  <ebb9@byu.net>
9450
9451         areadlink: use SIZE_MAX consistently
9452         * modules/areadlink (Depends-on): Add stdint.
9453         * modules/areadlink-with-size (Depends-on): Likewise.
9454         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9455         gives NULL; drop sys/types, since unistd gives size_t; and add
9456         stdint for SIZE_MAX.
9457         (SIZE_MAX): Rely on headers.
9458         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9459         and add stdint.
9460         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9461         (SIZE_MAX): Likewise.
9462         (INITIAL_BUF_SIZE): Turn into enum.
9463         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9464
9465 2009-10-08  Jim Meyering  <meyering@redhat.com>
9466
9467         areadlinkat: avoid compilation failure
9468         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9469         Fix typo in comment.
9470
9471 2009-10-07  Eric Blake  <ebb9@byu.net>
9472
9473         areadlinkat-with-size: new module
9474         * modules/areadlinkat-with-size: New module.
9475         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9476         * lib/areadlink.h (areadlinkat): Declare it.
9477         * MODULES.html.sh (File system functions): Mention it.
9478         * modules/areadlinkat-with-size-tests: New test.
9479         * tests/test-areadlinkat-with-size.c: New file.
9480
9481         xreadlinkat: new module
9482         * modules/xreadlinkat: New module.
9483         * lib/xreadlinkat.c (xreadlinkat): New file.
9484         * lib/xreadlink.h (xreadlinkat): Declare it.
9485         * MODULES.html.sh (File system functions): Mention it.
9486
9487         areadlinkat: new module
9488         * lib/at-func.c (FUNC_FAIL): New define.
9489         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9490         * modules/areadlinkat: New module.
9491         * lib/linkat.c (areadlinkat): Move...
9492         * lib/areadlinkat.c (areadlinkat): ...to new file.
9493         * lib/areadlink.h (areadlinkat): Declare it.
9494         * modules/linkat (Depends-on): Add areadlinkat.
9495         * MODULES.html.sh (File system functions): Mention it.
9496         * modules/areadlinkat-tests: New test.
9497         * tests/test-areadlinkat.c: New file.
9498
9499         areadlink, areadlink-with-size: add tests
9500         * modules/areadlink-tests: New test.
9501         * modules/areadlink-with-size-tests: Likewise.
9502         * tests/test-areadlink.h: New file.
9503         * tests/test-areadlink.c: Likewise.
9504         * tests/test-areadlink-with-size.c: Likewise.
9505
9506         maint: minor cleanups
9507         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9508         _UNUSED_PARAMETER_ instead.
9509         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9510         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9511         * modules/linkat-tests (Files): Distribute test-link.h.
9512
9513         openat, utimens: whitespace cleanup
9514         * lib/openat.c: Prefer space throughout, rather than mix of 8
9515         spaces vs. tabs.
9516         * lib/at-func.c: Likewise.
9517         * lib/utimens.c: Likewise.
9518
9519         openat: avoid using wrong fd
9520         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9521         working directory chooses same fd.
9522         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9523
9524         mkdir, mkdirat: fix cygwin 1.5.x bug
9525         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9526         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9527         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9528         bug.
9529         (gl_PREREQ_MKDIR): Delete unused macro.
9530         * modules/mkdir (Files): Track file rename.
9531         (configure.ac): Update macro name.
9532         * modules/openat (Depends-on): Add mkdir.
9533         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9534
9535         mkdir, mkdirat: add tests
9536         * modules/mkdir-tests: New test.
9537         * tests/test-mkdir.h: New file.
9538         * tests/test-mkdir.c: Likewise.
9539         * tests/test-mkdirat.c: Likewise.
9540         * modules/openat-tests (Files): Add new files.
9541         (Makefile.am): Run new test.
9542
9543 2009-10-06  Eric Blake  <ebb9@byu.net>
9544
9545         doc: tweak *at function documentation
9546         * doc/posix-functions/faccessat.texi (faccessat): Mention
9547         known issue with replacement.
9548         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9549         * doc/posix-functions/linkat.texi (linkat): Likewise.
9550         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9551         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9552         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9553         * doc/posix-functions/renameat.texi (renameat): Likewise.
9554         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9555
9556         openat: fix GNU/Hurd bug in unlinkat
9557         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9558         broken.
9559         * doc/posix-functions/unlink.texi (unlink): Document this.
9560         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9561
9562         fdopendir: fix GNU/Hurd bug
9563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9564         allowing non-directory fds.
9565         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9567         * modules/dirent (Makefile.am): Substitute it.
9568         * lib/dirent.in.h (fdopendir): Declare replacement.
9569         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9570         * tests/test-fdopendir.c (main): Test something other than
9571         /dev/null, since on Hurd that behaves like a directory.
9572
9573         test-symlink: port to GNU/Hurd
9574         * tests/test-symlink.h (test_symlink): Relax expected errno.
9575
9576         doc: tweak more cygwin information
9577         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9578         now compatible with glibc.
9579         * doc/posix-functions/getopt.texi (getopt): Likewise.
9580
9581         getopt-gnu: add another test
9582         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9583         guarantee behavior relied on by m4.
9584         * tests/test-getopt.c (main): Use it.
9585         * modules/getopt-posix-tests (Depends-on): Add setenv.
9586         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9587
9588         getopt: fix compilation on darwin
9589         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9590         include.
9591         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9592         Reported by Ludovic Courtès.
9593
9594 2009-10-06  Bruno Haible  <bruno@clisp.org>
9595
9596         * modules/size_max (Description): Discourage its use.
9597         Reported by Simon Josefsson.
9598
9599 2009-10-06  Jim Meyering  <meyering@redhat.com>
9600
9601         linkat: avoid compilation failure
9602         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9603
9604 2009-10-05  Eric Blake  <ebb9@byu.net>
9605
9606         linkat: support Linux 2.6.17
9607         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9608         linkat on Linux, but allow cache variable override.
9609         * lib/linkat.c (rpl_linkat): Define override.
9610         * modules/linkat (Depends-on): Add symlinkat.
9611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9612         * modules/unistd (Makefile.am): Substitute it.
9613         * lib/unistd.in.h (linkat): Declare replacement.
9614         Reported by Pádraig Brady.
9615
9616         quotearg: port test to systems with C.UTF-8 locale
9617         * tests/test-quotearg.c (struct result_strings): Add another
9618         member, differentiating between C.ASCII and C.UTF-8 handling.
9619         (compare_strings): Add parameter.
9620         (main): Adjust all callers.
9621
9622         getopt: avoid clash with FreeBSD _getopt_internal
9623         * lib/getopt.in.h (_getopt_internal): Override the name.
9624         * lib/getopt_int.h (includes): Pick up any overrides.
9625         Reported by Reuben Thomas.
9626
9627         hash: allow C89 compilation
9628         * lib/hash.c (check_tuning): Move declaration before statement.
9629         Reported by Reuben Thomas.
9630
9631 2009-10-05  Karl Berry  <karl@gnu.org>
9632
9633         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
9634
9635 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
9636             Bruno Haible  <bruno@clisp.org>
9637
9638         * lib/uname.c (uname): Use a table-driven algorithm to compute
9639         Windows NT versions.
9640
9641 2009-10-04  Bruno Haible  <bruno@clisp.org>
9642
9643         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
9644         program_invocation_short_name.
9645         * modules/progname (configure.ac): Test for presence of
9646         program_invocation_short_name.
9647         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
9648
9649 2009-10-04  Bruno Haible  <bruno@clisp.org>
9650
9651         * lib/progname.c (set_program_name): Fix comment.
9652         Reported by Jim Meyering.
9653
9654 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9655             Bruno Haible  <bruno@clisp.org>
9656
9657         * lib/uname.c: Include <string.h>.
9658         (uname): Do only one call to GetVersionEx in the common case.
9659
9660 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
9661             Bruno Haible  <bruno@clisp.org>
9662
9663         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
9664         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
9665         (uname): Add support for Windows CE and various non-x86 CPU types.
9666
9667 2009-10-03  Bruno Haible  <bruno@clisp.org>
9668
9669         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
9670         invocation to tests/configure.ac.
9671         Reported by Ian Beckwith <ianb@erislabs.net>.
9672
9673 2009-10-02  Eric Blake  <ebb9@byu.net>
9674
9675         fchdir: avoid compiler warning
9676         * lib/fchdir.c (canonicalize_file_name)
9677         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
9678
9679         test-open: support mingw errno values
9680         * tests/test-open.h (test_open): Relax test.
9681         * tests/test-fopen.h (test_fopen): Likewise.
9682         * tests/test-openat-safer.c (main): Likewise.
9683
9684         open: fix opening directory on mingw
9685         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
9686
9687         test-open: on GNU/Hurd, /dev/null is a directory
9688         * tests/test-fopen.h (main): Rename...
9689         (test_fopen): ...to this.  Use a guaranteed non-directory when
9690         confirming open behavior on trailing slash.
9691         * tests/test-openat-safer.c (main): Likewise.
9692         * tests/test-open.h (main): Likewise....
9693         (test_open): ...to this.
9694         * tests/test-fopen.c (main): Adjust caller.
9695         * tests/test-fopen-safer.c (main): Likewise.
9696         * tests/test-open.c (main): Likewise.
9697         * tests/test-fcntl-safer.c (main): Likewise.
9698         Reported by Samuel Thibault.
9699
9700         rename, fchdir: don't ignore chdir failure
9701         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
9702         * lib/rename.c (rpl_rename) [W32]: Likewise.
9703         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
9704         an empty destination directory if source cannot be renamed,
9705         although there is still possibility for failure.
9706         * doc/posix-functions/rename.texi (rename): Document the race.
9707         Reported by Jim Meyering.
9708
9709         maint: cleanup whitespace in recent commits
9710         * lib/rename.c (rpl_rename): Remove tabs.
9711         * tests/test-link.h (test_link): Likewise.
9712         * lib/fchdir.c (get_name): Likewise.
9713         Reported by Jim Meyering.
9714
9715 2009-10-02  Ben Pfaff  <blp@gnu.org>
9716
9717         relocatable-prog-wrapper: Add missing dependency on
9718         double-slash-root.
9719         * modules/relocatable-prog-wrapper: Add dependency.
9720         Reported by Ian Beckwith <ianb@erislabs.net>.
9721
9722 2009-10-02  Eric Blake  <ebb9@byu.net>
9723
9724         renameat: fix Solaris bugs
9725         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
9726         needed fixing.
9727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
9728         * modules/stdio (Makefile.am): Substitute it.
9729         * lib/stdio.in.h (renameat): Declare replacement.
9730         * lib/renameat.c (rpl_renameat): Implement fix.
9731
9732         renameat: new module
9733         * modules/renameat: New file.
9734         * lib/renameat.c (renameat): Likewise.
9735         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
9736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
9737         * modules/stdio (Makefile.am): Substitute them.
9738         * lib/stdio.in.h (renameat): Declare it.
9739         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9740         * doc/posix-functions/renameat.texi (renameat): Likewise.
9741         * modules/renameat-tests: New test.
9742         * tests/test-renameat.c: Likewise.
9743
9744         rename: fix mingw bugs
9745         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
9746         directory overwrite bugs.
9747
9748         rename: fix another cygwin 1.5 bug
9749         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
9750         checks.
9751         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
9752         unnecessary cygwin workarounds.  Also work around bug with moving
9753         full directory onto an empty one.
9754         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
9755
9756         rename-dest-slash: merge into rename module
9757         * modules/rename-dest-slash (Status): Mark obsolete.
9758         (Depends-on): Add rename.
9759         (Files): Let rename do it all.
9760         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
9761         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
9762         * m4/rename-dest-slash.m4: ...so this file can be deleted.
9763         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
9764         * lib/rename.c (rpl_rename): Update comments.
9765
9766         rename: fix cygwin 1.5.x bugs
9767         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
9768         * lib/rename.c (rpl_rename): Work around them.
9769         * modules/rename (Depends-on): Add same-inode.
9770
9771         rename: fix Solaris 10 bug
9772         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9773         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
9774         was the only bug.
9775
9776         rename: fix Solaris 9 bug
9777         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
9778         on non-directory.  Avoid calling exit.
9779         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
9780         strdup.
9781         * modules/rename-tests (Depends-on): Drop lstat.
9782         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
9783         (gl_PREREQ_RENAME): Delete unused macro.
9784
9785         rename-dest-slash: fix NetBSD bug
9786         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
9787         links.
9788         * modules/rename-dest-slash (Depends-on): Add same-inode.
9789
9790         rename-tests: new test, exposes several platform bugs
9791         * modules/rename-tests: New file.
9792         * tests/test-rename.h: Likewise.
9793         * tests/test-rename.c: Likewise.
9794         * doc/posix-functions/rename.texi (rename): Improve documentation,
9795         including bugs that will eventually be fixed in gnulib.
9796
9797 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
9798
9799         * lib/uname.c: Include <stdlib.h>
9800         (uname): Assume version info is available.
9801
9802 2009-10-02  Jim Meyering  <meyering@redhat.com>
9803
9804         gnu-web-doc-update: correct --help output
9805         * build-aux/gnu-web-doc-update: Make --help output relevant.
9806
9807         gnu-web-doc-update: add standard options
9808         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
9809
9810         gnu-web-doc-update: New module.
9811         Use this script to automatically update the on-line web documentation
9812         for your GNU project at http://www.gnu.org/software/$pkg/manual/
9813         * modules/gnu-web-doc-update: New file, from coreutils.
9814         * build-aux/gnu-web-doc-update: New script.
9815
9816 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
9817
9818         link: LoadLibrary is not needed.
9819         * lib/link.c: Use GetModuleHandle.
9820
9821 2009-10-01  Eric Blake  <ebb9@byu.net>
9822
9823         getopt: bump serial number
9824         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
9825         change.
9826
9827         tests: tighten link, rmdir, and remove tests
9828         * tests/test-link.h (includes): No need to use <config.h> here.
9829         Clean up if directory hard link was created, otherwise test for
9830         trailing '.'.
9831         * tests/test-linkat.c (main): Simplify.
9832         * tests/test-remove.c (main): Enhance test for trailing '.'.
9833         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9834
9835 2009-10-01  Jim Meyering  <meyering@redhat.com>
9836
9837         maint.mk: requiring "make major" was annoying, for a "minor" release.
9838         What is intended is "stable", to contrast with alpha and beta,
9839         so require "make stable", not "make major".
9840         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
9841         (get_tool_versions): Likewise.
9842         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
9843
9844 2009-09-30  Ben Pfaff  <blp@gnu.org>
9845
9846         Fix broken build of replacement for Windows tmpfile().
9847         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
9848         flags argument added along with the 'mkostemp' module.
9849
9850 2009-09-28  Bruno Haible  <bruno@clisp.org>
9851
9852         Avoid identifier clash with POSIX function 'remove' defined as a macro.
9853         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
9854         to 'remove_elt'.
9855         (gl_list_remove): Update.
9856         * lib/gl_list.c (gl_list_remove): Update.
9857         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
9858         to 'remove_elt'.
9859         (gl_oset_remove): Update.
9860         * lib/gl_list.c (gl_oset_remove): Update.
9861         Reported by Eric Blake.
9862
9863 2009-09-28  Eric Blake  <ebb9@byu.net>
9864
9865         doc: mention yet more cygwin 1.7 status
9866         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
9867         cygwin.
9868         * doc/glibc-functions/execvpe.texi (execvpe): New file.
9869         * doc/gnulib.texi (Glibc unistd.h): Mention it.
9870
9871         argp: fix test failure
9872         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
9873         that are not upper-case.  Pass correct range to tolower.
9874
9875 2009-09-27  Jim Meyering  <meyering@redhat.com>
9876
9877         test-yesno: work around sparc-dash here-document infelicity
9878         Without this change, the literal \177 byte in a here document
9879         would make dash 0.5.5.1-3 access uninitialized memory.
9880         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
9881         Instead, use a marker, "@", and filter through tr to create the desired
9882         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
9883
9884 2009-09-27  Bruno Haible  <bruno@clisp.org>
9885
9886         Disable untested support for new flavours of ACLs on AIX.
9887         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
9888         progress.
9889         * lib/set-mode-acl.c (qset_acl): Likewise.
9890
9891 2008-12-07  Bruno Haible  <bruno@clisp.org>
9892
9893         Add support for new flavours of ACLs on AIX. (Untested.)
9894         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
9895         (file_has_acl): Add support for newer AIX.
9896         * lib/set-mode-acl.c (qset_acl): Likewise.
9897         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
9898         Rainer Tammer <tammer@tammer.net>.
9899
9900 2009-09-26  Eric Blake  <ebb9@byu.net>
9901
9902         argp: fix compilation of getopt
9903         * lib/getopt.in.h (includes): Use different guard than glibc.
9904         Reported by Sergey Poznyakoff.
9905
9906         doc: mention more cygwin 1.7 status
9907         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
9908         bug.
9909         * doc/posix-functions/execl.texi (execl): Likewise.
9910         * doc/posix-functions/execle.texi (execle): Likewise.
9911         * doc/posix-functions/execlp.texi (execlp): Likewise.
9912         * doc/posix-functions/execv.texi (execv): Likewise.
9913         * doc/posix-functions/execve.texi (execve): Likewise.
9914         * doc/posix-functions/execvp.texi (execvp): Likewise.
9915         * doc/glibc-functions/canonicalize_file_name.texi
9916         (canonicalize_file_name): Cygwin 1.7 now provides this.
9917         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
9918         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
9919         on AT_SYMLINK_NOFOLLOW.
9920
9921 2009-09-24  Eric Blake  <ebb9@byu.net>
9922
9923         test-linkat: make test more robust
9924         * tests/test-linkat.c (main): Avoid collision with EEXIST.
9925
9926         getopt: fix inclusion guards for cygwin
9927         * modules/getopt-posix (Depends-on): Add include-next.
9928         (Makefile.am): Substitute more items in replacement header.
9929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
9930         <getopt.h>.
9931         * lib/getopt.in.h (includes): Use split inclusion guard, and
9932         prefer <getopt.h> over include <unistd.h> when one is present.
9933         (option): Also override name of 'struct option'.
9934
9935         same-inode: revert prior change; it is not yet ready
9936         * NEWS: Undo mention of this change.
9937         * lib/same-inode.h (same-inode.h): Undo tri-state change.
9938         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9939         * lib/cycle-check.c (cycle_check): Likewise.
9940         * lib/same.c (same_name): Likewise.
9941         * lib/at-func2.c (at_func2): Likewise.
9942
9943 2009-09-23  Eric Blake  <ebb9@byu.net>
9944
9945         linkat: new module
9946         * modules/linkat: New file.
9947         * lib/at-func2.c (at_func2): Likewise.
9948         * lib/linkat.c (linkat): Likewise.
9949         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9950         * lib/openat-priv.h (at_func2): Add declaration.
9951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9952         * modules/unistd (Makefile.am): Substitute them.
9953         * lib/unistd.in.h (linkat): Declare it.
9954         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9955         * doc/posix-functions/linkat.texi (linkat): Likewise.
9956         * doc/posix-functions/link.texi (link): Tweak wording.
9957         * tests/test-link.c (main): Move guts...
9958         * tests/test-link.h (test_link): ...into new file.
9959         * modules/linkat-tests: New test.
9960         * tests/test-linkat.c: Likewise.
9961         * modules/link-tests (Files): Ship new file.
9962         (Depends-on): Add stdbool.
9963
9964         dirname: add library-safe mdir_name
9965         * lib/dirname.h (mdir_name): New prototype.
9966         * lib/dirname.c (dir_name): Move guts...
9967         (mdir_name): ...to new function that avoids xalloc_die.
9968
9969         fchdir: another mingw fix
9970         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
9971         * lib/fchdir.c (get_name): New helper method; skips canonicalize
9972         on mingw (where it has not yet been ported), and make it optional
9973         elsewhere.
9974         (_gl_register_fd): Use it.
9975
9976         same-inode: make SAME_INODE tri-state, to port to mingw
9977         * NEWS: Mention this change.
9978         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
9979         st_ino always being 0.
9980         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
9981         * lib/cycle-check.c (cycle_check): Likewise.
9982         * lib/same.c (same_name): Likewise.
9983
9984         lstat: avoid mingw compilation error
9985         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
9986         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
9987         lstat ourselves.
9988         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
9989         was adequate.
9990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
9991         the checks for lstat.
9992         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
9993
9994         link: fix test failure on Solaris 9
9995         * lib/link.c (rpl_link): Don't assume link will catch bogus
9996         trailing slash on source.
9997
9998         test-symlinkat: enhance test
9999         * tests/test-readlink.c (main): Move guts...
10000         * tests/test-readlink.h (test_readlink): ...into new file.
10001         * tests/test-symlink.c (main): Move guts...
10002         * tests/test-symlink.h (test_symlink): ...into new file.
10003         * tests/test-symlinkat.c (main): Use new files for further
10004         coverage.
10005         (do_symlink, do_readlink): New helper functions.
10006         * modules/symlink-tests (Files): Ship new file.
10007         (Depends-on): Add stdbool.
10008         * modules/readlink-tests (Files): Ship new file.
10009         (Depends-on): Add stdbool.
10010         * modules/symlinkat-tests (Files): Use new files.
10011
10012 2009-09-23  Eric Blake  <ebb9@byu.net>
10013
10014         readlink: document portability issue with symlink length
10015         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10016         systems have bogus st_size on symlinks, and mention the
10017         areadlink-with-size module.
10018         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10019         * doc/posix-functions/readlink.texi (readlink): Mention the
10020         areadlink module, and ERANGE failure.
10021         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10022         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10023
10024         readlink: fix Solaris 9 bug with trailing slash
10025         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10026         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10027         * doc/posix-functions/readlink.texi (readlink): Document this.
10028         * modules/readlink-tests: New test.
10029         * tests/test-readlink.c: Likewise.
10030
10031         readlink: fix cygwin 1.5.x bug with return type
10032         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10033         * lib/unistd.in.h (readlink): Use ssize_t.
10034         * lib/readlink.c (readlink): Likewise.
10035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10036         * modules/unistd (Makefile.am): Substitute it.
10037         * lib/unistd.in.h (readlink): Declare replacement.
10038         * doc/posix-functions/readlink.texi (readlink): Document this.
10039
10040         symlink: use throughout gnulib
10041         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10042         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10043         symlink is not used.
10044         * modules/symlinkat (Depends-on): Add symlink.
10045         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10046         * modules/canonicalize-tests (Depends-on): Likewise.
10047         * modules/lstat-tests (Depends-on): Likewise.
10048         * modules/openat-tests (Depends-on): Likewise.
10049         * modules/remove-tests (Depends-on): Likewise.
10050         * modules/rmdir-tests (Depends-on): Likewise.
10051         * modules/unlink-tests (Depends-on): Likewise.
10052         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10053         * tests/test-canonicalize.c (symlink): Likewise.
10054         * tests/test-fstatat.c (symlink): Likewise.
10055         * tests/test-lstat.c (symlink): Likewise.
10056         * tests/test-remove.c (symlink): Likewise.
10057         * tests/test-rmdir.c (symlink): Likewise.
10058         * tests/test-unlink.c (symlink): Likewise.
10059         * tests/test-unlinkat.c (symlink): Likewise.
10060
10061         symlink: new module, for Solaris 9 bug
10062         * modules/symlink: New file.
10063         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10064         * lib/symlink.c: Likewise.
10065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10066         * modules/unistd (Makefile.am): Substitute them.
10067         * lib/unistd.in.h (symlink): Declare replacement.
10068         * MODULES.html.sh (File system functions): Mention it.
10069         * doc/posix-functions/symlink.texi (symlink): Likewise.
10070         * modules/symlink-tests: New test.
10071         * tests/test-symlink.c: Likewise.
10072
10073 2009-09-23  Bruno Haible  <bruno@clisp.org>
10074
10075         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10076         when needed.
10077         Test case: gnulib-tool --import --with-tests atexit inttypes.
10078         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10079
10080 2009-09-23  Bruno Haible  <bruno@clisp.org>
10081
10082         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10083         subcommand, not in a subshell.
10084
10085 2009-09-22  Eric Blake  <ebb9@byu.net>
10086
10087         unistd: sort replacement declarations
10088         * lib/unistd.in.h: Sort declarations.
10089
10090         open, openat: minor optimization
10091         * lib/open.c (open): If open succeeded, len is non-zero.
10092         * lib/openat.c (rpl_openat): Likewise.
10093
10094         link-follow: ensure correct result
10095         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10096         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10097         distinguish between possible failures.
10098
10099 2009-09-21  Eric Blake  <ebb9@byu.net>
10100
10101         fts: avoid compiler warning
10102         * lib/fts.c (dirent_inode_sort_may_be_useful)
10103         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10104
10105 2009-09-19  Bruno Haible  <bruno@clisp.org>
10106
10107         * lib/progreloc.c (canonicalize_file_name): New declaration.
10108
10109 2009-09-19  Eric Blake  <ebb9@byu.net>
10110
10111         link: fix quoting
10112         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10113
10114         openat: fix openat bugs on Solaris 9
10115         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10116         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10117         * modules/openat (Depends-on): Add open.
10118         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10119         * modules/fcntl-h (Makefile.am): Substitute it.
10120         * lib/fcntl.in.h (openat): Declare replacement.
10121         * doc/posix-functions/openat.texi (openat): Document this.
10122
10123         openat: move fstatat and unlinkat into correct files
10124         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10125         compiled.
10126         * lib/openat.c (fstatat, unlinkat): Move...
10127         * lib/fstatat.c (fstatat): ...into correct files.
10128         * lib/unlinkat.c (unlinkat): Likewise.
10129
10130         openat: fix unlinkat bugs on Solaris 9
10131         * lib/unlinkat.c (unlinkat): New file.
10132         * modules/openat (Depends-on): Add unlink.
10133         (Files): Distribute it.
10134         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10135         trailing slash behavior is broken.
10136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10137         * modules/unistd (Makefile.am): Substitute it.
10138         * lib/unistd.in.h (unlinkat): Declare replacement.
10139         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10140
10141         openat: fix fstatat bugs on Solaris 9
10142         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10143         stat.
10144         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10145
10146         test-unlinkat: enhance test, to expose Solaris 9 bug
10147         * tests/test-unlink.c (main): Factor guts...
10148         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10149         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10150         * tests/test-rmdir.c (main): Adjust caller.
10151         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10152         (unlinker): New helper function.
10153         (rmdirat): Enhance check.
10154         * modules/rmdir-tests (Depends-on): Add stdbool.
10155         * modules/unlink-tests (Depends-on): Likewise.
10156         (Files): Add test-unlink.h.
10157         * modules/openat-tests (Files): Likewise.
10158         (Depends-on): Add unlinkdir.
10159
10160         test-fstatat: new test, to expose Solaris 9 bugs
10161         * tests/test-stat.c (main): Factor guts...
10162         * tests/test-stat.h (test_stat_func): ...into new file.
10163         * tests/test-lstat.c (main): Factor guts...
10164         * tests/test-lstat.h (test_lstat_func): ...into new file.
10165         * tests/test-fstatat.c: New file.
10166         * modules/stat-tests (Files): Add test-stat.h.
10167         * modules/lstat-tests (Files): Add test-lstat.h.
10168         (Depends-on): Add stdbool.
10169         * modules/openat-tests (Depends-on): Add pathmax.
10170         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10171         (Makefile.am): Run new test.
10172
10173         remove: new module, for mingw and Solaris 9 bugs
10174         * modules/remove: New file.
10175         * lib/remove.c: Likewise.
10176         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10178         * modules/stdio (Makefile.am): Use them.
10179         * lib/stdio.in.h (remove): Declare replacement.
10180         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10181         * doc/posix-functions/remove.texi (remove): Likewise.
10182         * modules/remove-tests: New test.
10183         * tests/test-remove.c: Likewise.
10184
10185         unlink: new module, for Solaris 9 bug
10186         * modules/unlink: New file.
10187         * lib/unlink.c: Likewise.
10188         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10190         * modules/unistd (Makefile.am): Use them.
10191         * lib/unistd.in.h (stat): Declare replacement.
10192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10193         * doc/posix-functions/unlink.texi (unlink): Likewise.
10194         * modules/unlink-tests: New test.
10195         * tests/test-unlink.c: Likewise.
10196
10197         lstat: fix Solaris 9 bug
10198         * lib/lstat.c (lstat): Also check for trailing slash on
10199         non-symlink, non-directories.  Use stat module to simplify logic.
10200         * doc/posix-functions/lstat.texi (lstat): Document it.
10201         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10202         (configure.ac): Check for symlink.
10203         * tests/test-lstat.c (main): Add more tests.
10204
10205         stat: add as dependency to other modules
10206         * modules/chown (Depends-on): Add stat.
10207         * modules/euidaccess (Depends-on): Likewise.
10208         * modules/fchdir (Depends-on): Likewise.
10209         * modules/isdir (Depends-on): Likewise.
10210         * modules/link (Depends-on): Likewise.
10211         * modules/lstat (Depends-on): Likewise.
10212         * modules/mkdir-p (Depends-on): Likewise.
10213         * modules/modechange (Depends-on): Likewise.
10214         * modules/open (Depends-on): Likewise.
10215         * modules/readlink (Depends-on): Likewise.
10216         * modules/same (Depends-on): Likewise.
10217
10218         stat: fix Solaris 9 bug
10219         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10220         slash.
10221         * lib/stat.c (rpl_stat): Work around it.
10222         * doc/posix-functions/stat.texi (stat): Update documentation.
10223
10224         stat: new module, for mingw bug
10225         * modules/stat: New file.
10226         * lib/stat.c: Likewise.
10227         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10229         * modules/sys_stat (Makefile.am): Use them.
10230         * lib/sys_stat.in.h (stat): Declare replacement.
10231         * lib/openat.c (fstatat): Deal with lstat and stat being function
10232         macros.
10233         * modules/openat (Depends-on): Add inline.
10234         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10235         * doc/posix-functions/stat.texi (stat): Likewise.
10236         * modules/stat-tests: New test.
10237         * tests/test-stat.c: Likewise.
10238
10239 2009-09-19  Jim Meyering  <meyering@redhat.com>
10240
10241         syntax-check: detect unnecessary inclusion of canonicalize.h
10242         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10243
10244 2009-09-19  Eric Blake  <ebb9@byu.net>
10245
10246         canonicalize-lgpl: adjust clients to use correct header
10247         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10248         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10249         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10250         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10251         * lib/progreloc.c (includes): Likewise.
10252
10253 2009-09-19  Jim Meyering  <meyering@redhat.com>
10254
10255         test-posixtm.c: correct a comment
10256         * tests/test-posixtm.c: Correct first-line comment.
10257         Spotted by Eric Blake.
10258
10259 2009-09-16  Jim Meyering  <meyering@redhat.com>
10260
10261         posixtm-tests: make T const-correct; add a test case
10262         * tests/test-posixtm.c (T): Declare const.
10263         Add a test for -(2^31+1).
10264         Remove useless can-succeed-only-in-2002 test.
10265
10266         posixtm-tests: adjust the sole failing test
10267         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10268         expected output matches what mktime now produces.  Cross-checked via
10269         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10270
10271         posixtm: move #ifdef'd tests into a new module
10272         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10273         * tests/test-posixtm.c: ... this new file.
10274         * modules/posixtm-tests: New module.
10275
10276 2009-09-19  Eric Blake  <ebb9@byu.net>
10277
10278         openat: simplify use of at-func.c
10279         * lib/at-func.c (includes): Include prerequisites here, to
10280         simplify requirements on client files.
10281         * lib/openat-priv.h: Add double-inclusion guard.
10282         * lib/faccessat.c (includes): Simplify.
10283         * lib/fchmodat.c (includes): Likewise.
10284         * lib/fchownat.c (includes): Likewise.
10285         * lib/mkdirat.c (includes): Likewise.
10286         * lib/mkfifoat.c (includes): Likewise.
10287         * lib/symlinkat.c (includes): Likewise.
10288
10289         openat: allow return of fd 0
10290         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10291         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10292         unistd-safer.
10293         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10294         <fcntl.h>; this module does not leak fds.
10295         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10296         must be allowed to return 0, leaving openat_safer to add the
10297         safety.
10298         (openat_permissive): Avoid writing to just-opened fd 2 if
10299         restoring the current directory fails.
10300         * lib/openat-die.c (openat_restore_fail): Add comment.
10301         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10302         (save_cwd): Guarantee safe fd, but without use of open_safer.
10303         * tests/test-openat.c: New test.
10304         * modules/openat-tests (Files, Makefile.am): Distribute and build
10305         new file.
10306
10307         relocatable-prog-wrapper: fix build
10308         * modules/relocatable-prog-wrapper (Files): Update name of
10309         canonicalize m4 file, broken on 2009-09-17.
10310         Reported by emad hajjar <aleppos@hotmail.com>.
10311
10312 2009-09-19  Bruno Haible  <bruno@clisp.org>
10313
10314         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10315         * lib/safe-alloc.c: Likewise.
10316         Reported by Ian Beckwith <ianb@erislabs.net>.
10317
10318 2009-09-18  Bruno Haible  <bruno@clisp.org>
10319
10320         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10321         Reported by <erobles@sensacd.com.mx>.
10322
10323 2009-09-17  Eric Blake  <ebb9@byu.net>
10324
10325         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10326         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10327         slashes when checking if last component is missing.
10328         * tests/test-canonicalize.c (main): Test this.
10329
10330         canonicalize, canonicalize-lgpl: honor // if distinct from /
10331         * modules/canonicalize (Files): Add double-slash-root.m4.
10332         * modules/canonicalize-lgpl (Files): Likewise.
10333         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10334         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10335         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10336         fallback definition.
10337         (canonicalize_filename_mode): Use it to protect //.
10338         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10339         (__realpath): Likewise.
10340         * tests/test-canonicalize.c (main): Test this.
10341         * tests/test-canonicalize-lgpl.c (main): Likewise.
10342         * modules/canonicalize-tests (Depends-on): Add same-inode.
10343         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10344
10345         canonicalize-lgpl: fix glibc bug with trailing slash
10346         * m4/canonicalize-lgpl.m4: Move contents...
10347         * m4/canonicalize.m4: ...here.
10348         (gl_CANONICALIZE_LGPL): Factor realpath check...
10349         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10350         glibc 2.3.5 bug, fixed 2005-04-27.
10351         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10352         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10353         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10354         * modules/canonicalize-lgpl (Files): Manage file rename.
10355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10356         * modules/stdlib (Makefile.am): Substitute witness.
10357         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10358         is needed.
10359         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10360         replacement is required.
10361         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10362         * doc/glibc-functions/canonicalize_file_name.texi
10363         (canonicalize_file_name): Document this.
10364         * doc/posix-functions/realpath.texi (realpath): Likewise.
10365
10366         canonicalize-lgpl: reject non-directory with trailing slash
10367         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10368         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10369         catches failures in glibc 2.3.5.
10370         * tests/test-canonicalize.c (main): Likewise.
10371
10372         canonicalize-lgpl: use native realpath if it works
10373         * lib/canonicalize-lgpl.c (realpath): Guard with
10374         FUNC_REALPATH_WORKS.
10375         * lib/stdlib.in.h (realpath): Make declaration optional based on
10376         HAVE_REALPATH.
10377         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10378         native realpath works.
10379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10380         * modules/stdlib (Makefile.am): Substitute witness.
10381
10382         canonicalize, canonicalize-lgpl: use <stdlib.h>
10383         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10384         (Include): Mention <stdlib.h>.
10385         (configure.ac): Mention functions we provide.
10386         * modules/canonicalize (configure.ac): Likewise.
10387         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10388         realpath if canonicalize_file_name is missing.
10389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10390         * modules/stdlib (Makefile.am): Substitute witnesses.
10391         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10392         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10393         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10394         * NEWS: Document this.
10395         * doc/glibc-functions/canonicalize_file_name.texi
10396         (canonicalize_file_name): Likewise.
10397         * doc/posix-functions/realpath.texi (realpath): Likewise.
10398         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10399
10400         test-canonicalize: consolidate into single C program
10401         * tests/test-canonicalize.sh: Delete; move setup into...
10402         * tests/test-canonicalize.c (main): ...the program, making it
10403         easier to run in debugger.  Add some tests.
10404         * modules/canonicalize-tests (Files): Remove unused file.
10405         (Depends-on): Add progname.
10406         (configure.ac, Makefile.am): Simplify.
10407
10408         test-canonicalize-lgpl: consolidate into single C program
10409         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10410         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10411         easier to run in debugger.  Add some tests.
10412         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10413         (configure.ac, Makefile.am): Simplify.
10414
10415         canonicalize: avoid resolvepath
10416         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10417         unnecessary checks.
10418         * lib/canonicalize.c (includes): Simplify.
10419         (canonicalize_file_name): Drop resolvepath implementation.
10420         * modules/canonicalize (Depends-on): Drop filenamecat.
10421
10422         canonicalize: don't lose errno
10423         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10424         over calls to free.
10425
10426         canonicalize: simplify errno handling
10427         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10428         assignment.
10429
10430         canonicalize, canonicalize-lgpl: update module dependencies
10431         * modules/canonicalize (Depends-on): Add extensions, lstat,
10432         pathmax, stdlib.
10433         (Files): Drop pathmax.h.
10434         (configure.ac): Adjust macro name.
10435         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10436         lstat, stdlib, sys_stat.
10437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10438         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10439         extensions.
10440         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10441         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10442         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10443         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10444         declaration, if available.
10445         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10446         we can rely on the readlink module.
10447         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10448         (includes): Use <unistd.h> unconditionally.
10449
10450 2009-09-17  Eric Blake  <ebb9@byu.net>
10451
10452         maint: make Include sections of modules consistent
10453         * modules/alloca: Use only header name; no need to list #include.
10454         * modules/alloca-opt: Likewise.
10455         * modules/arpa_inet: Likewise.
10456         * modules/canon-host: Likewise.
10457         * modules/configmake: Likewise.
10458         * modules/dirent: Likewise.
10459         * modules/eealloc: Likewise.
10460         * modules/environ: Likewise.
10461         * modules/fchdir: Likewise.
10462         * modules/fcntl: Likewise.
10463         * modules/fcntl-h: Likewise.
10464         * modules/gethrxtime: Likewise.
10465         * modules/gettime: Likewise.
10466         * modules/ignore-value: Likewise.
10467         * modules/inet_ntop: Likewise.
10468         * modules/inet_pton: Likewise.
10469         * modules/inttypes: Likewise.
10470         * modules/isnand-nolibm: Likewise.
10471         * modules/isnanf-nolibm: Likewise.
10472         * modules/mbchar: Likewise.
10473         * modules/mbfile: Likewise.
10474         * modules/mbiter: Likewise.
10475         * modules/mbuiter: Likewise.
10476         * modules/netdb: Likewise.
10477         * modules/netinet_in: Likewise.
10478         * modules/nproc: Likewise.
10479         * modules/pagealign_alloc: Likewise.
10480         * modules/poll: Likewise.
10481         * modules/printf-frexp: Likewise.
10482         * modules/pthread: Likewise.
10483         * modules/putenv: Likewise.
10484         * modules/random_r: Likewise.
10485         * modules/relocatable-prog: Likewise.
10486         * modules/search: Likewise.
10487         * modules/select: Likewise.
10488         * modules/selinux-h: Likewise.
10489         * modules/settime: Likewise.
10490         * modules/signal: Likewise.
10491         * modules/size_max: Likewise.
10492         * modules/socklen: Likewise.
10493         * modules/ssize_t: Likewise.
10494         * modules/stdarg: Likewise.
10495         * modules/stdbool: Likewise.
10496         * modules/stddef: Likewise.
10497         * modules/stdint: Likewise.
10498         * modules/stdio: Likewise.
10499         * modules/stdlib: Likewise.
10500         * modules/string: Likewise.
10501         * modules/strings: Likewise.
10502         * modules/sys_file: Likewise.
10503         * modules/sys_ioctl: Likewise.
10504         * modules/sys_select: Likewise.
10505         * modules/sys_socket: Likewise.
10506         * modules/sys_stat: Likewise.
10507         * modules/sys_time: Likewise.
10508         * modules/sys_times: Likewise.
10509         * modules/sys_utsname: Likewise.
10510         * modules/sys_wait: Likewise.
10511         * modules/sysexits: Likewise.
10512         * modules/time: Likewise.
10513         * modules/times: Likewise.
10514         * modules/tmpfile: Likewise.
10515         * modules/trim: Likewise.
10516         * modules/unistd: Likewise.
10517         * modules/wchar: Likewise.
10518         * modules/wctype: Likewise.
10519
10520 2009-09-17  Bruno Haible  <bruno@clisp.org>
10521
10522         Make getdate.y compile on QNX and NetBSD 5 / i386.
10523         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10524         TIME_T_FITS_IN_LONG_INT.
10525         * lib/getdate.y (long_time_t): New type.
10526         (relative_time): Change type of 'seconds' field to long_time_t.
10527         (get_date): Update types of local variables. Check against overflow
10528         during conversion from long_time_t to time_t.
10529         Reported by Matt Kraai <kraai@ftbfs.org>
10530         and Hasso Tepper <hasso@netbsd.org>.
10531
10532 2009-09-17  Bruno Haible  <bruno@clisp.org>
10533
10534         * modules/COPYING: Update copyright years.
10535         * modules/README: Likeiwse.
10536         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10537         Reported by Ian Beckwith <ianb@erislabs.net>.
10538
10539 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10540
10541         * users.txt: Update references for gnuit package.
10542
10543 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10544
10545         * m4/getdelim.m4: Fix typo in copyright line.
10546
10547 2009-09-17  Bruno Haible  <bruno@clisp.org>
10548
10549         * lib/atoll.c: Use the standard header with GPL copyright.
10550         * lib/argz.in.h: Likewise.
10551         * lib/glob.c: Likewise.
10552         * lib/glob-libc.h: Likewise.
10553         * lib/random_r.c: Likewise.
10554         * lib/siglist.h: Likewise.
10555         * lib/strsignal.c: Likewise.
10556         Reported by Ian Beckwith <ianb@erislabs.net>.
10557
10558 2009-09-17  Eric Blake  <ebb9@byu.net>
10559
10560         rmdir: ensure correct dependency order
10561         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10562
10563 2009-09-17  Bruno Haible  <bruno@clisp.org>
10564
10565         Disable assertion that fails on NetBSD 5 / i386.
10566         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10567         Reported by Sam Steingold <sds@gnu.org>
10568         and Hasso Tepper <hasso@netbsd.org>.
10569
10570 2009-09-16  Eric Blake  <ebb9@byu.net>
10571
10572         unlinkdir: port to mingw
10573         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10574         on which no one can unlink a directory.
10575
10576         stdlib: sort witness names
10577         * modules/stdlib (Makefile.am): Sort replacements.
10578         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10579         * lib/stdlib.in.h: Likewise.
10580
10581         parse-duration-tests: avoid link failure
10582         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10583         LIBINTL.
10584         Reported by Tom G. Christensen.
10585
10586         openat-tests: ensure unlinkat behaves like rmdir
10587         * tests/test-rmdir.c (main): Factor guts...
10588         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10589         * modules/rmdir-tests (Files): Ship new file.
10590         * modules/openat-tests: New test.
10591         * tests/test-unlinkat.c: Likewise.
10592
10593         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10594         * modules/rmdir-errno (Status, Notice): Now obsolete.
10595
10596         rmdir: work around cygwin 1.5.x and mingw bugs
10597         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10598         * lib/rmdir.c (rmdir): Work around it.
10599         * modules/rmdir (Status, Notice): No longer obsolete.
10600         (Files): Add dos.m4.
10601         (Depends-on): Add unistd.
10602         (configure.ac): Set witnesses.
10603         (License): Relax to LGPLv2+.
10604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10605         * modules/unistd (Makefile.am): Substitute witnesses.
10606         * lib/unistd.in.h (rmdir): Declare replacement.
10607         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10608         * modules/rmdir-tests: New tests.
10609         * tests/test-rmdir.c: Likewise.
10610
10611 2009-09-15  Eric Blake  <ebb9@byu.net>
10612
10613         fchdir: improve use of replacement functions
10614         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10616         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10617         REPLACE_CLOSEDIR.
10618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
10619         * modules/sys_stat (Makefile.am): Substitute correct witness.
10620         * modules/dirent (Makefile.am): Likewise.
10621         * modules/unistd (Makefile.am): Likewise.
10622         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
10623         * lib/unistd.in.h (dup): Likewise.
10624         * lib/sys_stat.in.h (fstat): Likewise.
10625
10626         maint: ignore gnulib-tool temp files
10627         * .gitignore: Ignore files created during gnulib-tool --test.
10628
10629 2009-09-13  Jim Meyering  <meyering@redhat.com>
10630
10631         posixtm: don't reject a time that specify "60" as the number of seconds
10632         * lib/posixtm.c (posixtime): The code to reject invalid dates
10633         would also reject a time specified with the .60 suffix.
10634         But POSIX allows that, in order to accommodate leap seconds.
10635         So don't reject it.
10636         (main): Adjust tests accordingly.
10637         * modules/posixtm (Depends-on): Add stpcpy.
10638
10639 2009-09-11  Jim Meyering  <meyering@redhat.com>
10640
10641         announce-gen: include [$release_type] in emitted Subject:
10642         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
10643         e.g., [stable] in the emitted Subject: line.
10644
10645 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10646
10647         Remove obsolete macros from several modules.
10648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
10649         obsolete Autoconf macros with their modern counterparts.
10650         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
10651         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
10652         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10653         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10654         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
10655         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10657         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10658         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10659         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
10660         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10661         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10662         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
10663         * m4/sockets.m4 (gl_SOCKETS): Likewise.
10664         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
10665         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
10666         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
10667         * m4/time_r.m4 (gl_TIME_R): Likewise.
10668         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10669         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
10670         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
10671
10672         Fix copyright header in build-aux scripts.
10673         * build-aux/git-version-gen: Fix copyright header to match GPLv3
10674         recommendation.
10675         * build-aux/ncftpput-ftp: Likewise.
10676         * build-aux/update-copyright: Likewise.
10677
10678 2009-09-09  Eric Blake  <ebb9@byu.net>
10679
10680         test-link: allow Linux choice of errno
10681         * tests/test-link.c (main): Relax test for alternate error.
10682
10683         strndup: fix improper m4 caching
10684         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
10685         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
10686         (gl_PREREQ_STRNDUP): Delete.
10687         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
10688         * modules/string (Makefile.am): Substitute it.
10689         * lib/string.in.h (strndup): Modernize prototype.
10690
10691         getcwd: port to mingw
10692         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
10693         different from the POSIX assumptions made throughout the getcwd
10694         module; fortunately, the mingw getcwd does not need replacement.
10695         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
10696         * modules/getcwd-tests: New test.
10697         * tests/test-getcwd.c: Likewise.
10698
10699         link: fix platform bugs
10700         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
10701         * lib/link.c (link): Work around them.  Fix related mingw bug.
10702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
10703         * modules/unistd (Makefile.am): Substitute it.
10704         * lib/unistd.in.h (link): Declare replacement.
10705         * doc/posix-functions/link.texi (link): Document this.
10706         * modules/link (Depends-on): Add strdup-posix, sys_stat.
10707
10708         test-link: consolidate into single C program, test more cases
10709         * tests/test-link.sh: Delete.
10710         * tests/test-link.c: Test more error conditions.  Exposes bugs on
10711         at least Cygwin and Solaris.
10712         * modules/link-tests (Files): Remove unused file.
10713         (Depends-on): Add errno, sys_stat.
10714         (Makefile.am): Simplify.
10715
10716 2009-09-08  Bruno Haible  <bruno@clisp.org>
10717
10718         Work around towlower, towupper bug on mingw.
10719         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
10720         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
10721         * doc/posix-functions/towlower.texi: Mention the mingw bug.
10722         * doc/posix-functions/towupper.texi: Likewise.
10723         Reported by Eric Blake.
10724
10725 2009-09-08  Jim Meyering  <meyering@redhat.com>
10726
10727         build: don't try to run autoheader if we don't use it
10728         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
10729         is not used in configure.ac.
10730
10731 2009-09-08  Eric Blake  <ebb9@byu.net>
10732
10733         euidaccess: fix compilation error
10734         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
10735
10736         rawmemchr: relax license
10737         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
10738         okay.
10739         Reported by Jim Meyering.
10740
10741         mkfifoat: new module
10742         * modules/mkfifoat: New file.
10743         * lib/mkfifoat.c: Likewise.
10744         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
10745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10746         * modules/sys_stat (Makefile.am): Use them.
10747         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
10748         * MODULES.html.sh (File system functions): Mention module.
10749         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10750         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10751         * modules/mkfifoat-tests: New test.
10752         * tests/test-mkfifoat.c: Likewise.
10753
10754         strchrnul: relax license
10755         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
10756         okay.
10757         Reported by Jim Meyering.
10758
10759 2009-09-08  Eric Blake  <ebb9@byu.net>
10760
10761         fstatat: fix compilation on Solaris
10762         * lib/fstatat.c (includes): Add fcntl.h.
10763         Reported by Pádraig Brady.
10764
10765 2009-09-07  Eric Blake  <ebb9@byu.net>
10766
10767         rename: modernize replacement
10768         * modules/rename (Depends-on): Add stdio.
10769         (configure.ac): Declare witness.
10770         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
10771         stdio take care of replacement.
10772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
10773         * modules/stdio (Makefile.am): Substitute them.
10774         * lib/stdio.in.h (rename): Declare replacement.
10775         * lib/rename.c (includes): Allow cross-compilation to non-windows
10776         machines.
10777         * doc/posix-functions/rename.texi (rename): Improve
10778         documentation.
10779
10780         stdio: sort witness names
10781         * modules/stdio (Makefile.am): Sort replacements.
10782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10783         * lib/stdio.in.h: Likewise.
10784
10785         getcwd: minor cleanups
10786         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
10787         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
10788
10789         openat: provide more convenience names
10790         * modules/faccessat (configure.ac): Add C witness.
10791         * lib/unistd.in.h (readlinkat): Fix typo.
10792         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
10793         convenience wrappers.
10794         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
10795         wrappers in syntax checks.
10796
10797 2009-09-06  Eric Blake  <ebb9@byu.net>
10798
10799         doc: fix comments in recent patches
10800         * lib/faccessat.c: Mention correct function.
10801         * lib/fchmodat.c: Likewise.
10802         * lib/fchownat.c: Likewise.
10803         * lib/symlinkat.c: Likewise.
10804         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
10805         constants.
10806
10807         faccessat, symlinkat: continue cleanup of previous patch
10808         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
10809         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10810         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
10811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
10812         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
10813         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
10814         set.
10815
10816 2009-09-06  Bruno Haible  <bruno@clisp.org>
10817
10818         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
10819         (fstatat): Declare if GNULIB_FSTATAT is set.
10820         (mkdirat): Declare if GNULIB_MKDIRAT is set.
10821         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
10822         (unlinkat): Declare if GNULIB_UNLINKAT is set.
10823         * modules/fcntl-h (Files): Remove m4/openat.m4.
10824         * modules/sys_stat (Files): Remove m4/openat.m4.
10825         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
10826         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
10827         * modules/unistd (Files): Remove m4/openat.m4.
10828         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
10829         GNULIB_OPENAT.
10830         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
10831         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
10832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
10833         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
10834         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
10835         gl_OPENAT_DEFAULTS.
10836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
10837         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
10838         Don't require gl_OPENAT_DEFAULTS.
10839         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
10840         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
10841         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
10842         (gl_OPENAT_DEFAULTS): Remove macro.
10843
10844 2009-09-06  Bruno Haible  <bruno@clisp.org>
10845
10846         * modules/openat (configure.ac): Remove unneeded witness.
10847
10848 2009-09-06  Bruno Haible  <bruno@clisp.org>
10849
10850         Set errno to ENOSYS when a function is entirely unsupported.
10851         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
10852         EOPNOTSUPP.
10853         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
10854         * modules/chown (Depends-on): Remove errno.
10855
10856 2009-09-06  Bruno Haible  <bruno@clisp.org>
10857
10858         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
10859
10860 2009-09-06  Bruno Haible  <bruno@clisp.org>
10861
10862         * lib/sys_stat.in.h: Fix preprocessor command indentation.
10863
10864 2009-09-06  Ben Pfaff  <blp@gnu.org>
10865             Bruno Haible  <bruno@clisp.org>
10866
10867         Work around a glibc bug in strtok_r.
10868         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
10869         Undefine if UNDEFINE_STRTOK_R is set.
10870         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
10871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10872         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
10873         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
10874         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
10875         UNDEFINE_STRTOK_R.
10876         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
10877
10878 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
10879
10880         exclude: minor fix
10881         * lib/exclude.c: Include wctype.h
10882
10883 2009-09-06  Akim Demaille  <demaille@gostai.com>
10884
10885         bootstrap: improve error message
10886         * build-aux/bootstrap (find_tool): Upon failure, report the list
10887         of candidates.
10888         Honor the initial value of the envvar.
10889
10890 2009-09-05  Eric Blake  <ebb9@byu.net>
10891
10892         symlinkat: new module
10893         * modules/symlinkat: New file.
10894         * lib/symlinkat.c: Likewise.
10895         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
10896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10897         * modules/unistd (Makefile.am): Use them.
10898         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
10899         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
10900         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
10901         * MODULES.html.sh (File system functions): Mention module.
10902         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10903         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10904         * modules/symlinkat-tests: New test.
10905         * tests/test-symlinkat.c: Likewise.
10906
10907         test-openat-safer: add more checks
10908         * tests/test-openat-safer.c (main): Check more code paths.
10909
10910 2009-09-05  Jim Meyering  <meyering@redhat.com>
10911
10912         syntax-check: detect unnecessary inclusion of openat.h
10913         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
10914
10915 2009-09-05  Bruno Haible  <bruno@clisp.org>
10916
10917         Support towlower, towupper.
10918         * doc/posix-functions/towlower.texi: Mention module wctype.
10919         * doc/posix-functions/towupper.texi: Likewise.
10920         * lib/wctype.in.h (towlower, towupper): New functions.
10921         * tests/test-wctype.c: Include stdio.h, stdlib.h.
10922         (ASSERT): New macro.
10923         (e): New variable.
10924         (main): Test also towlower, towupper. Test WEOF argument.
10925         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10926
10927 2009-09-05  Bruno Haible  <bruno@clisp.org>
10928
10929         Fix conversion behaviour when the input is invalid.
10930         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
10931         mark occurring in first pass of indirect conversion.
10932         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
10933         input.
10934         Found by clang's static analyzer.
10935
10936 2009-09-05  Bruno Haible  <bruno@clisp.org>
10937
10938         * tests/test-striconveh.c (main): Test indirect conversion on platforms
10939         where direct conversion is possible.
10940
10941 2009-09-04  Eric Blake  <ebb9@byu.net>
10942
10943         openat: fail with ENOENT on empty name
10944         * lib/openat-proc.c (openat_proc_name): Special-case the empty
10945         buffer.
10946
10947         link-follow: fix logic bug in prior patch
10948         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
10949         reversed sense of yes and no in prior patch.  Avoid confusing
10950         compilation failure with desired semantics.
10951
10952         link-follow: accomodate mingw and cross-compilation
10953         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
10954         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
10955         cross-compilation results to -1, to make linkat easier to
10956         implement when cross-compiling.  Trivially support mingw.
10957         * modules/link-follow (configure.ac): Call new name.
10958         * NEWS: Mention this.
10959
10960 2009-09-03  Eric Blake  <ebb9@byu.net>
10961
10962         faccessat: compile replacement
10963         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
10964         needed.
10965
10966         fts: fix compilation error
10967         * lib/fts.c (includes): Re-add "openat.h", for
10968         openat_needs_fchdir.
10969
10970         faccessat: new module
10971         * modules/faccessat: New file.
10972         * lib/faccessat.c: Likewise.
10973         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
10974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10975         * modules/unistd (Makefile.am): Use it.
10976         * lib/unistd.in.h (faccessat): Declare it.
10977         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
10978         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
10979         * MODULES.html.sh (File system functions): Mention it.
10980         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
10981         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10982
10983         euidaccess: prefer POSIX over non-standard implementation
10984         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
10985         * lib/euidaccess.c (euidaccess): Use it if available.
10986
10987         openat: make template easier to use
10988         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
10989         AT_FUNC_F2 to be undefined.
10990         (VALIDATE_FLAG): New macro; use it to reject bad flags.
10991         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
10992         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
10993         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
10994         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
10995         Likewise.
10996         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
10997         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
10998         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
10999         Likewise.
11000
11001         openat: declare in POSIX headers
11002         * NEWS: Mention this.
11003         * modules/openat (configure.ac): Declare witnesses.
11004         (Depends-on): Add fcntl-h, sys_stat, unistd.
11005         (Include): Mention correct headers.
11006         * modules/fcntl-h (Depends-on): Add link-warning.
11007         (Files): Add openat.m4.
11008         (Makefile.am): Substitute witnesses.
11009         * modules/sys_stat (Files, Makefile.am): Likewise.
11010         * modules/unistd (Files, Makefile.am): Likewise.
11011         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11012         (gl_OPENAT_DEFAULTS): New macro.
11013         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11015         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11016         (SYS_STAT_H): Remove unused variable.
11017         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11018         * lib/fcntl--.h (includes): Remove unneeded header.
11019         * lib/openat-safer.c (includes): Likewise.
11020         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11021         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11022         appropriate headers.
11023         (__OPENAT_PREFIX): Delete.
11024         * lib/fcntl.in.h (openat): Provide declaration.
11025         (AT_FDCWD): Fix Solaris bug.
11026         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11027         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11028         * lib/fchmodat.c (includes):  Adjust to find declaration.
11029         * lib/fchownat.c (includes): Likewise.
11030         * lib/mkdirat.c (includes): Likewise.
11031         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11032         still visible.
11033
11034 2009-09-02  Eric Blake  <ebb9@byu.net>
11035
11036         errno: use consistently
11037         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11038         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11039         * lib/canonicalize.c (ELOOP): Likewise.
11040         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11041         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11042         * lib/lchown.c (EOPNOTSUPP): Likewise.
11043         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11044         * lib/savewd.c (ESTALE): Likewise.
11045         * lib/settime.c (ENOSYS): Likewise.
11046         * lib/utimens.c (ENOSYS): Likewise.
11047         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11048         * lib/chdir-safer.c (ELOOP): Likewise.
11049         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11050         * modules/c-stack (Depends-on): Add errno.
11051         * modules/canonicalize (Depends-on): Likewise.
11052         * modules/chdir-safer (Depends-on): Likewise.
11053         * modules/fdopendir (Depends-on): Likewise.
11054         * modules/inet_ntop (Depends-on): Likewise.
11055         * modules/inet_pton (Depends-on): Likewise.
11056         * modules/lchown (Depends-on): Likewise.
11057         * modules/openat (Depends-on): Likewise.
11058         * modules/savewd (Depends-on): Likewise.
11059         * modules/settime (Depends-on): Likewise.
11060         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11061
11062         fts: avoid leaking fds
11063         * modules/fts (Depends-on): Add cloexec.
11064         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11065         flag.
11066
11067         fts: make directory fds more robust
11068         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11069         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11070
11071         backupfile, chdir-long, fts, savedir: make safer
11072         * lib/backupfile.c (includes): Use "dirent--.h", since
11073         numbered_backup can write to stderr during readdir.
11074         * lib/savedir.c (includes): Likewise.
11075         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11076         emulation can write to stderr on failure.
11077         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11078         * lib/getcwd.c: Document why opendir_safer is unused.
11079         * lib/glob.c: Likewise.
11080         * lib/scandir.c: Likewise.
11081         * lib/openat-proc.c: Likewise, for open_safer.
11082         * modules/backupfile (Depends-on): Add dirent-safer.
11083         * modules/savedir (Depends-on): Likewise.
11084         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11085         * modules/chdir-long (Depends-on): Add openat-safer.
11086
11087         openat-safer: new module
11088         * modules/openat-safer: New file.
11089         * lib/openat-safer.c: Likewise.
11090         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11091         * lib/fcntl-safer.h (openat_safer): Declare.
11092         * lib/fcntl--.h (openat): Override.
11093         * MODULES.html.sh (File descriptor based I/O): Mention it.
11094         * lib/openat.h: Add double-inclusion guards.
11095         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11096         "fcntl--.h", so we can implement openat.
11097         * modules/openat-safer-tests: New test.
11098         * tests/test-openat-safer.c: New file.
11099
11100         dirent-safer: new module
11101         * modules/dirent-safer: New file.
11102         * lib/dirent--.h: Likewise.
11103         * lib/dirent-safer.h: Likewise.
11104         * lib/opendir-safer.c: Likewise.
11105         * m4/dirent-safer.m4: Likewise.
11106         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11107         * modules/dirent-safer-tests: New test.
11108         * tests/test-dirent-safer.c: New file.
11109         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11110
11111         fdopendir: optimize on mingw
11112         * lib/unistd.in.h (_gl_directory_name): New prototype.
11113         * lib/fchdir.c (_gl_directory_name): Implement it.
11114         (fchdir): Use it to simplify implementation.
11115         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11116         fchdir, when available, to avoid calling [f]chdir().
11117
11118         fdopendir: split into its own module
11119         * lib/openat.c (fdopendir): Move...
11120         * lib/fdopendir.c: ...into new file.
11121         * modules/fdopendir: New module.
11122         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11123         * modules/openat (Depends-on): Add fdopendir.
11124         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11125         fdopendir here.
11126         * modules/savedir (Depends-on): Only need fdopendir, not full
11127         openat.
11128         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11129         * lib/openat.h (fdopendir): Drop prototype.
11130         * lib/dirent.in.h (fdopendir): Provide prototype.
11131         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11132         * modules/dirent (Makefile.am): Substitute them.
11133         * MODULES.html.sh (File system functions): Mention it.
11134         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11135         * modules/fdopendir-tests: New file.
11136         * tests/test-fdopendir.c: Likewise.
11137
11138         fchdir: use more consistent macro convention
11139         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11140         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11141         REPLACE_FCHDIR, rather than relying on config.h macros.
11142         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11143         inside a single make-time REPLACE_FCHDIR block, rather than using
11144         the config.h FCHDIR_REPLACEMENT.
11145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11146         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11147         Manage fstat replacement.
11148         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11149         REPLACE_FCHDIR.
11150         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11151         (Makefile.am): Substitute REPLACE_FCHDIR.
11152         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11153         FCHDIR_REPLACEMENT.
11154         * lib/dup-safer.c (dup_safer): Likewise.
11155         * lib/dup2.c (rpl_dup2): Likewise.
11156         * lib/dup3.c (rpl_dup3): Likewise.
11157         * lib/open.c (rpl_open): Likewise.
11158
11159         fchdir: simplify error handling, and support dup3
11160         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11161         stdbool, malloc-posix, realloc-posix.
11162         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11163         (ensure_dirs_slot): Return false on allocation failure.
11164         (rpl_dup2): Delete.
11165         (_gl_register_dup): New function.
11166         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11167         (_gl_register_fd): Close fd on allocation failure.
11168         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11169         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11170         prototype.
11171         (rpl_dup2_fchdir): Delete prototype.
11172         * lib/open.c (open): Update caller.
11173         * lib/dup2.c (dup2): Track fchdir metadata.
11174         * lib/dup3.c (dup3): Likewise.
11175         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11177
11178 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11179
11180         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11181         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11182         don't pass arguments to AC_OUTPUT.
11183
11184 2009-09-02  Bruno Haible  <bruno@clisp.org>
11185
11186         * modules/mkdtemp (License): Relicense under LGPLv2+.
11187         Reported by Paolo Bonzini.
11188
11189 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11190
11191         Replace uses of obsolete autoconf macros in Jim's modules.
11192         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11193         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11194         can evoke a warning from autoconf when run with -Wobsolete
11195         enabled.  They were declared obsolete for good reasons (see
11196         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11197         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11198         should not continue using the deprecated macros.
11199         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11200         obsolete Autoconf macros with modern counterparts.
11201         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11202         * m4/dos.m4 (gl_AC_DOS): Likewise.
11203         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11204         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11205         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11206         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11207         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11209         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11210         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11211         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11212         Likewise.
11213         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11214         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11216         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11217         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11218         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11219
11220 2009-09-01  Eric Blake  <ebb9@byu.net>
11221
11222         fchdir: fix off-by-one bug in previous patch
11223         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11224         (_gl_unregister_fd): Delete useless if.
11225
11226 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11227
11228         maint.mk: sort the list of syntax-check rules
11229         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11230         easier to get a sense of progress when the rules are run sequentially
11231         and take a long time.
11232
11233 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11234
11235         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11236         * modules/netinet_in: Likewise.
11237         * modules/sys_file: Likewise.
11238         * modules/sys_ioctl: Likewise.
11239         * modules/sys_select: Likewise.
11240         * modules/sys_socket: Likewise.
11241         * modules/sys_stat: Likewise.
11242         * modules/sys_time: Likewise.
11243         * modules/sys_times: Likewise.
11244         * modules/sys_utsname: Likewise.
11245         * modules/sys_wait: Likewise.
11246
11247 2009-09-01  Jim Meyering  <meyering@redhat.com>
11248
11249         fts: help ensure that return values are not ignored
11250         * lib/fts_.h (__GNUC_PREREQ): Define.
11251         (__attribute_warn_unused_result__): Define.
11252         (fts_children, fts_close, fts_open, fts_read): Declare with
11253         __attribute_warn_unused_result__.
11254
11255         fts: fts_close now fails also when closing a dir file descriptor fails
11256         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11257         and propagate to caller, along with errno.
11258
11259         announce-gen: correct formatting in --help output
11260         * build-aux/announce-gen (usage): Move the one-line description in
11261         --help output "up", to where it belongs, just after Usage:.
11262
11263 2009-08-31  Eric Blake  <ebb9@byu.net>
11264
11265         fchdir: port to mingw
11266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11267         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11268         opened, then use a substitute.
11269         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11270         replacement.
11271         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11272         (_gl_register_fd): No need to check stat if open already filters
11273         all directories.
11274         (fchdir): Fix error condition to match POSIX.
11275         * modules/fchdir (Depends-on): Add sys_stat.
11276         * doc/posix-functions/open.texi (open): Document the limitation.
11277         * modules/fchdir-tests: New file.
11278         * tests/test-fchdir.c: Likewise.
11279
11280         canonicalize: allow cross-testing from cygwin to mingw
11281         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11282         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11283         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11284         Likewise.
11285         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11286         target does not support symlinks.
11287         * tests/test-canonicalize-lgpl.sh: Likewise.
11288
11289         chown: avoid compilation warning on mingw
11290         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11291         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11292         mingw.
11293         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11294         * modules/chown (Depends-on): Add errno.
11295
11296 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11297
11298         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11299         command.
11300
11301 2009-08-31  Jim Meyering  <meyering@redhat.com>
11302
11303         canonicalize: remove useless initialization
11304         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11305         initialization of local, "end".
11306
11307 2009-08-30  Bruno Haible  <bruno@clisp.org>
11308
11309         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11310         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11311         ENOSYS.
11312
11313 2009-08-30  Bruno Haible  <bruno@clisp.org>
11314
11315         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11316         /usr/xpg4/bin/tr when it exists.
11317         * tests/test-pipe-filter-gi1.sh: Likewise.
11318
11319 2009-08-30  Bruno Haible  <bruno@clisp.org>
11320
11321         Work around deficient /usr/bin/id program on Solaris.
11322         * tests/test-file-has-acl.sh (ID): New variable.
11323         * tests/test-set-mode-acl.sh (ID): Likewise.
11324         * tests/test-copy-acl.sh (ID): Likewise.
11325         * tests/test-copy-file.sh (ID): Likewise.
11326
11327 2009-08-30  Bruno Haible  <bruno@clisp.org>
11328
11329         New module 'xstriconveh'.
11330         * lib/xstriconveh.h: New file.
11331         * lib/xstriconveh.c: New file.
11332         * modules/xstriconveh: New file.
11333
11334 2009-08-30  Bruno Haible  <bruno@clisp.org>
11335
11336         Make it easier to use mem_cd_iconveh.
11337         * lib/striconveh.h (iconveh_t): New type.
11338         (iconveh_open, iconveh_close): New declarations.
11339         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11340         with a single 'const iconveh_t *' argument.
11341         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11342         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11343         with a single 'const iconveh_t *' argument.
11344         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11345         * tests/test-striconveh.c (main): Update.
11346         * NEWS: Mention the change.
11347
11348 2009-08-30  Bruno Haible  <bruno@clisp.org>
11349
11350         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11351         problem.
11352
11353 2009-08-30  Bruno Haible  <bruno@clisp.org>
11354
11355         Work around iconv_open problem on Solaris.
11356         * lib/iconv_open-solaris.gperf: New file.
11357         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11358         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11359         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11360         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11361         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11362         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11363
11364 2009-08-29  Jim Meyering  <meyering@redhat.com>
11365
11366         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11367         * top/maint.mk (cvs-check): Remove target; it was just an alias
11368         to the better-named vc-diff-check.
11369         (maintainer-distcheck): Remove rule.  It was used only from
11370         the (alpha/beta/major) target, and all of its commands but one
11371         were coreutils-specific.
11372         (vc-dist): Remove rule.
11373         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11374         Run vc-diff-check, not vc-dist.
11375         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11376
11377 2009-08-27  Bruno Haible  <bruno@clisp.org>
11378
11379         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11380         of 0.
11381
11382 2009-08-27  Bruno Haible  <bruno@clisp.org>
11383
11384         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11385         compilers.
11386         * doc/func.texi: Document the SunPRO C bug.
11387
11388 2009-08-27  Bruno Haible  <bruno@clisp.org>
11389
11390         Fix link error on Solaris.
11391         * tests/test-parse-duration.c (xstrdup): Remove function.
11392
11393 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11394
11395         ignore-value: handle pointer types, too
11396         * lib/ignore-value.h (__attribute__): Remove definition.
11397         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11398         of a more concise and more-often effective "(void) i" statement.
11399         (ignore_ptr): New function to suppress warnings from functions that
11400         return pointers, and to make it explicit that one function doesn't
11401         handle all cases.
11402
11403 2009-08-25  Bruno Haible  <bruno@clisp.org>
11404
11405         dup2: work around a Linux bug.
11406         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11407         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11408         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11409         Reported by Simon Josefsson.
11410
11411 2009-08-25  Jim Meyering  <meyering@redhat.com>
11412
11413         libguestfs uses gnulib
11414         * users.txt: Add libguestfs.
11415
11416 2009-08-24  Eric Blake  <ebb9@byu.net>
11417
11418         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11419         * lib/pipe2.c (includes): Add binary-io.h.
11420         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11421
11422 2009-08-24  Bruno Haible  <bruno@clisp.org>
11423
11424         Tolerate declared but missing accept4 syscall.
11425         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11426         available.
11427         * lib/sys_socket.in.h (accept4): If the function is already present,
11428         override it.
11429         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11430         * modules/accept4 (Makefile.am): Compile accept4.c always.
11431         Reported by Paolo Bonzini and Eric Blake.
11432
11433 2009-08-23  Bruno Haible  <bruno@clisp.org>
11434
11435         New module 'accept4'.
11436         * lib/sys_socket.in.h (accept4): New declaration.
11437         * lib/accept4.c: New file.
11438         * m4/accept4.m4: New file.
11439         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11440         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11441         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11442         HAVE_ACCEPT4.
11443         * modules/accept4: New file.
11444         * doc/glibc-functions/accept4.texi: Mention the new module.
11445
11446 2009-08-24  Jim Meyering  <meyering@redhat.com>
11447
11448         progname: also set global program_invocation_name, when possible
11449         Before this change, a libtool-enabled program that calls glibc's
11450         error function would report the program name as
11451         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11452         * modules/progname (configure.ac): Check for a declaration of
11453         program_invocation_name.
11454         * lib/progname.c:  Include <errno.h>.
11455         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11456         Set program_invocation_name.
11457
11458 2009-08-23  Bruno Haible  <bruno@clisp.org>
11459
11460         * lib/dup3.c: Include <string.h>.
11461
11462 2009-08-23  Bruno Haible  <bruno@clisp.org>
11463
11464         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11465         * lib/pipe2.c (pipe2): Likewise.
11466         Suggested by Eric Blake.
11467
11468 2009-08-23  Bruno Haible  <bruno@clisp.org>
11469
11470         Tolerate declared but missing dup3 syscall.
11471         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11472         * lib/unistd.in.h (dup3): If the function is already present,
11473         override it.
11474         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11475         * modules/dup3 (Makefile.am): Compile dup3.c always.
11476         Reported by Paolo Bonzini.
11477
11478 2009-08-23  Bruno Haible  <bruno@clisp.org>
11479
11480         Tolerate declared but missing pipe2 syscall.
11481         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11482         available.
11483         * lib/unistd.in.h (pipe2): If the function is already present,
11484         override it.
11485         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11486         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11487         Reported by Paolo Bonzini.
11488
11489 2009-08-23  Bruno Haible  <bruno@clisp.org>
11490
11491         * lib/pipe2.c (pipe2): Move #ifs inside function.
11492
11493 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11494
11495         quotearg: document limitations of quote_these_too
11496         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11497         those limitations are created.
11498         * lib/quotearg.h (set_char_quoting): Document that digits and
11499         letters that are special after backslash are not permitted.
11500         (quotearg_char): Cross-reference set_char_quoting documentation.
11501
11502 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11503
11504         quotearg: implement custom_quoting_style
11505         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11506         right_quote fields.
11507         (set_custom_quoting): New public function.
11508         (quotearg_buffer_restyled): Add left_quote and right_quote
11509         arguments, handle them very much like locale quoting, and update
11510         all uses.
11511         (quotearg_n_custom): New public function.
11512         (quotearg_n_custom_mem): New public function.
11513         (quotearg_custom): New public function.
11514         (quotearg_custom_mem): New public function.
11515         * lib/quotearg.h: Prototype and document new public functions.
11516         (enum quoting_style): For escape_quoting_style and
11517         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11518         ignored even though they're otherwise like c_quoting_style.
11519         Add custom_quoting_style member and document with comparison to
11520         clocale_quoting_style.
11521         * tests/test-quotearg.c (custom_quotes): New array.
11522         (custom_results): New array.
11523         (main): Extend to test custom quoting.
11524
11525 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11526
11527         quotearg: fix right quote escaping when it's in quote_these_too
11528         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11529         quote, be sure to prepend only one backslash.
11530         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11531         (main): Test it.
11532
11533 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11534
11535         quotearg-tests: test escaping of embedded locale quotes
11536         * tests/test-quotearg.c (struct result_strings): Add member for
11537         new input.
11538         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11539         (inputs): Add new input.
11540         (results_g): Add expected results.
11541         (flag_results): Likewise.
11542         (locale_results): Likewise.
11543         (compare_strings): Check those.
11544
11545 2009-08-23  Bruno Haible  <bruno@clisp.org>
11546
11547         Tests for module 'dup3'.
11548         * modules/dup3-tests: New file.
11549         * tests/test-dup3.c: New file.
11550
11551         New module 'dup3'.
11552         * lib/unistd.in.h (dup3): New declaration.
11553         * lib/dup3.c: New file.
11554         * m4/dup3.m4: New file.
11555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11556         HAVE_DUP3.
11557         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11558         * modules/dup3: New file.
11559         * doc/glibc-functions/dup3.texi: Mention the new module.
11560
11561 2009-08-23  Bruno Haible  <bruno@clisp.org>
11562
11563         Tweak the dup2 test.
11564         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11565         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11566         the test file is still empty. Fix argument order of lseek.
11567
11568 2009-08-23  Bruno Haible  <bruno@clisp.org>
11569
11570         Avoid test link errors when the modules getopt-gnu, gettext are used.
11571         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11573
11574 2009-08-23  Bruno Haible  <bruno@clisp.org>
11575
11576         Fix getdtablesize() on mingw.
11577         * lib/getdtablesize.c (getdtablesize): Implement differently.
11578         * lib/unistd.in.h (getdtablesize): Improve comment.
11579
11580 2009-08-23  Bruno Haible  <bruno@clisp.org>
11581
11582         New module 'mkostemp'.
11583         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11584         * lib/stdlib.in.h (mksotemp): New declaration.
11585         * lib/mkostemp.c: New file, from glibc with modifications.
11586         * lib/tempname.h (GT_FILE): Remove outdated comment.
11587         (gen_tempname): Add flags argument.
11588         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11589         (__GT_FILE): Map to 1.
11590         (small_open, large_open): Remove macros.
11591         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11592         * lib/mkstemp.c (mkstemp): Update.
11593         * lib/mkdtemp.c (mkdtemp): Likewise.
11594         * m4/mkostemp.m4: New file.
11595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11596         HAVE_MKOSTEMP.
11597         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11598         HAVE_MKOSTEMP.
11599         * modules/mkostemp: New file, based on modules/mkstemp.
11600         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11601         * NEWS: Mention the change.
11602
11603 2009-08-23  Bruno Haible  <bruno@clisp.org>
11604
11605         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11606         Reported by Eric Blake.
11607
11608 2009-08-23  Bruno Haible  <bruno@clisp.org>
11609
11610         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11611         Reported by Eric Blake.
11612
11613 2009-08-23  Bruno Haible  <bruno@clisp.org>
11614
11615         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11616         * modules/pipe2 (Depends-on): Likewise.
11617
11618 2009-08-23  Eric Blake  <ebb9@byu.net>
11619
11620         fcntl-h: add O_TTY_INIT support
11621         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
11622         * tests/test-fcntl-h.c (o): Test it.
11623         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11624
11625         fcntl-h: rename from fcntl, in preparation for fcntl(2)
11626         * modules/fcntl: Move <fcntl.h> header replacement...
11627         * modules/fcntl-h: ...to new name, so as not to collide with
11628         like-named function.
11629         * tests/test-fcntl.c: Rename...
11630         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
11631         * modules/fcntl-tests: Rename...
11632         * modules/fcntl-h-tests: ...to this.  Update test file name.
11633         * modules/chdir-long (Depends-on): Update clients.
11634         * modules/chdir-safer (Depends-on): Likewise.
11635         * modules/fcntl-safer (Depends-on): Likewise.
11636         * modules/fts (Depends-on): Likewise.
11637         * modules/mkancesdirs (Depends-on): Likewise.
11638         * modules/mkdir-p (Depends-on): Likewise.
11639         * modules/open (Depends-on): Likewise.
11640         * modules/savewd (Depends-on): Likewise.
11641         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
11642         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11643
11644 2009-08-22  Bruno Haible  <bruno@clisp.org>
11645
11646         * modules/binary-io (License): Relicense under LGPL.
11647         * modules/pipe2 (License): Likewise.
11648
11649 2009-08-22  Bruno Haible  <bruno@clisp.org>
11650
11651         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
11652         return value.
11653         * lib/pipe-filter-gi.c (filter_init): Likewise.
11654         Reported by Eric Blake.
11655
11656 2009-08-22  Bruno Haible  <bruno@clisp.org>
11657
11658         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
11659         * modules/pipe (Depends-on): Add pipe2.
11660
11661 2009-08-22  Bruno Haible  <bruno@clisp.org>
11662
11663         Tests for module 'pipe2'.
11664         * modules/pipe2-tests: New file.
11665         * tests/test-pipe2.c: New file.
11666
11667         New module 'pipe2'.
11668         * lib/unistd.in.h (pipe2): New declaration.
11669         * lib/pipe2.c: New file.
11670         * m4/pipe2.m4: New file.
11671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
11672         HAVE_PIPE2.
11673         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
11674         * modules/pipe2: New file.
11675         * doc/glibc-functions/pipe2.texi: Mention the new module.
11676
11677 2009-08-22  Bruno Haible  <bruno@clisp.org>
11678
11679         Reference some new glibc functions.
11680         * doc/glibc-functions/accept4.texi: New file.
11681         * doc/glibc-functions/dup3.texi: New file.
11682         * doc/glibc-functions/mkostemp.texi: New file.
11683         * doc/glibc-functions/pipe2.texi: New file.
11684         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
11685         (Glibc sys/socket.h): Refer to accept4.
11686         (Glibc unistd.h): Refer to dup3, pipe2.
11687         Reported by Eric Blake.
11688
11689 2009-08-22  Jim Meyering  <meyering@redhat.com>
11690             Bruno Haible  <bruno@clisp.org>
11691
11692         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
11693         This makes it so packages using automake-1.11's silent-rules option
11694         can print e.g., a single "GEN    configmake.h" line, rather than
11695         the 30+ statements that perform the job.  If you want to see the
11696         actual commands, you can still run "make V=1".
11697         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
11698         so that make output is abbreviated when those variables are defined
11699         appropriately.
11700         * modules/argz: Likewise.
11701         * modules/arpa_inet: Likewise.
11702         * modules/byteswap: Likewise.
11703         * modules/configmake: Likewise.
11704         * modules/dirent: Likewise.
11705         * modules/errno: Likewise.
11706         * modules/fcntl: Likewise.
11707         * modules/float: Likewise.
11708         * modules/fnmatch: Likewise.
11709         * modules/getopt-posix: Likewise.
11710         * modules/glob: Likewise.
11711         * modules/iconv_open: Likewise.
11712         * modules/inttypes: Likewise.
11713         * modules/localcharset: Likewise.
11714         * modules/locale: Likewise.
11715         * modules/math: Likewise.
11716         * modules/netdb: Likewise.
11717         * modules/netinet_in: Likewise.
11718         * modules/poll: Likewise.
11719         * modules/posix_spawnp-tests: Likewise.
11720         * modules/sched: Likewise.
11721         * modules/search: Likewise.
11722         * modules/selinux-h: Likewise.
11723         * modules/signal: Likewise.
11724         * modules/spawn: Likewise.
11725         * modules/stdarg: Likewise.
11726         * modules/stdbool: Likewise.
11727         * modules/stddef: Likewise.
11728         * modules/stdint: Likewise.
11729         * modules/stdio: Likewise.
11730         * modules/stdlib: Likewise.
11731         * modules/string: Likewise.
11732         * modules/strings: Likewise.
11733         * modules/sys_file: Likewise.
11734         * modules/sys_ioctl: Likewise.
11735         * modules/sys_select: Likewise.
11736         * modules/sys_socket: Likewise.
11737         * modules/sys_stat: Likewise.
11738         * modules/sys_time: Likewise.
11739         * modules/sys_times: Likewise.
11740         * modules/sys_utsname: Likewise.
11741         * modules/sys_wait: Likewise.
11742         * modules/sysexits: Likewise.
11743         * modules/time: Likewise.
11744         * modules/unistd: Likewise.
11745         * modules/wchar: Likewise.
11746         * modules/wctype: Likewise.
11747
11748 2009-08-22  Jim Meyering  <meyering@redhat.com>
11749
11750         announce-gen: detect write failure
11751         * build-aux/announce-gen: Add Coda at end.
11752         Remove equivalent-but-more-verbose block at top.
11753
11754 2009-08-19  Akim Demaille  <demaille@gostai.com>
11755
11756         bootstrap: --help to stdout.
11757         * bootstrap (usage): Don't send --help to stderr.
11758         Use a here doc instead of a long string.
11759
11760 2009-08-21  Eric Blake  <ebb9@byu.net>
11761
11762         test-popen-safer: split from test-popen
11763         * tests/test-popen.c (main): Move...
11764         * tests/test-popen.h: ...into new file.
11765         * tests/test-popen-safer2.c: New file.
11766         * modules/popen-tests (Files): Add test-popen.h.
11767         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
11768         Suggested by Bruno Haible.
11769
11770         test-fcntl-safer: split from test-open
11771         * tests/test-open.c (main): Move...
11772         * tests/test-open.h: ...into new file.
11773         * tests/test-fcntl-safer.c: New file.
11774         * modules/open-tests (Files): Add test-open.h.
11775         * modules/fcntl-safer-tests: New file.
11776         Suggested by Bruno Haible.
11777
11778         test-fopen-safer: split from test-fopen
11779         * tests/test-fopen.c (main): Move...
11780         * tests/test-fopen.h: ...into new file.
11781         * tests/test-fopen-safer.c: New file.
11782         * modules/fopen-tests (Files): Add test-fopen.h.
11783         * modules/fopen-safer-tests: New file.
11784         Suggested by Bruno Haible.
11785
11786 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11787
11788         popen-safer: test O_CLOEXEC at run-time.
11789         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
11790
11791 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
11792
11793         fcntl: move more flags to the header
11794         * lib/cloexec.c: Do not define FD_CLOEXEC here.
11795         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
11796         * lib/fcntl.in.h: Do both things here.
11797
11798 2009-08-21  Jim Meyering  <meyering@redhat.com>
11799
11800         consistently remove $@-t before redirecting to it
11801         * modules/argz: Remove $@-t and $@ before redirecting to the former.
11802         * modules/alloca-opt: Likewise.
11803         * modules/byteswap: Likewise.
11804         * modules/fnmatch: Likewise.
11805         * modules/getopt-posix: Likewise.
11806         * modules/glob: Likewise.
11807         * modules/poll: Likewise.
11808         * modules/posix_spawnp-tests: Likewise.
11809         * modules/sys_socket: Likewise.
11810         * modules/sysexits: Likewise.
11811
11812 2009-08-21  Eric Blake  <ebb9@byu.net>
11813
11814         popen: simplify access to original popen
11815         * lib/popen.c (rpl_popen): No need to worry about popen being a
11816         macro.
11817         Reported by Bruno Haible.
11818
11819 2009-08-20  Eric Blake  <ebb9@byu.net>
11820
11821         build: avoid some compiler warnings
11822         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
11823         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
11824         type.
11825         (new_exclude_segment, excluded_file_pattern_p)
11826         (excluded_file_name_p): Reduce scope.
11827         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
11828         old-style declaration.
11829
11830 2009-08-20  Simon Josefsson  <simon@josefsson.org>
11831
11832         * tests/test-exclude1.sh: Handle Windows EOL.
11833         * tests/test-exclude2.sh: Likewise.
11834         * tests/test-exclude3.sh: Likewise.
11835         * tests/test-exclude4.sh: Likewise.
11836         * tests/test-exclude5.sh: Likewise.
11837         * tests/test-exclude6.sh: Likewise.
11838         * tests/test-exclude7.sh: Likewise.
11839
11840 2009-08-19  Akim Demaille  <demaille@gostai.com>
11841
11842         bootstrap: find sha1sum when named gsha1sum.
11843         * bootstrap (find_tool): New.
11844         ($SHA1SUM): New.
11845         Use it.
11846
11847 2009-08-20  Jim Meyering  <meyering@redhat.com>
11848
11849         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
11850         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
11851         expression that converts "." in a file name to "\." in the resulting
11852         regexp.  Start with a dummy statement, so that prior shell variable
11853         definitions are expanded portably.  Reported by Simon Josefsson.
11854
11855 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
11856
11857         Fix polling for writeability of a screen buffer.
11858         * lib/poll.c: Distinguish input and screen buffers for the
11859         Win32 implementation.
11860         * lib/select.c: Likewise.
11861
11862 2009-08-19  Eric Blake  <ebb9@byu.net>
11863
11864         popen-safer: prevent popen from clobbering std descriptors
11865         * modules/popen-safer: New file.
11866         * lib/popen-safer.c: Likewise.
11867         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
11868         * lib/stdio--.h (popen): Provide override.
11869         * lib/stdio-safer.h (popen_safer): Provide declaration.
11870         * tests/test-popen.c (includes): Partially test this.
11871         * modules/popen-safer-tests: New file, for more tests.
11872         * tests/test-popen-safer.c: Likewise.
11873         * MODULES.html.sh (file stream based Input/Output): Mention it.
11874
11875         tests: test some of the *-safer modules
11876         * modules/fopen-safer (Depends-on): Add fopen.
11877         * modules/fcntl-safer (Depends-on): Add fcntl.
11878         * modules/stdlib-safer (Depends-on): Add stdlib.
11879         (configure.ac): Set indicator.
11880         * modules/unistd-safer (configure.ac): Likewise.
11881         * modules/tmpfile-safer (configure.ac): Likewise.
11882         (Depends-on): Add tmpfile.
11883         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
11884         active.
11885         * tests/test-fopen.c (includes): Test safer versions when they are
11886         in use.
11887         * tests/test-open.c (includes): Likewise.
11888
11889         popen: fix cygwin 1.5 bug when stdin closed
11890         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
11891         * modules/popen: New file.
11892         * modules/popen-tests: Likewise.
11893         * tests/test-popen.c: Likewise.
11894         * m4/popen.m4: Likewise.
11895         * lib/popen.c: Likewise.
11896         * lib/stdio.in.h (popen): New declaration.
11897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
11898         * modules/stdio (Makefile.am): Likewise.
11899         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
11900
11901 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
11902
11903         maint.mk: give full control over update-copyright exclusions
11904         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
11905         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
11906         (update-copyright): Don't force inclusion of top-level
11907         ChangeLog.  Don't force exclusion of all COPYING files, but make
11908         them the default exclusion instead.
11909
11910 2009-08-16  Bruno Haible  <bruno@clisp.org>
11911
11912         Fix test failures on Solaris 10.
11913         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
11914         tests when Solaris iconv() is used.
11915         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11916         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11917         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11918         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11919         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11920
11921 2009-08-16  Bruno Haible  <bruno@clisp.org>
11922
11923         Fix test failures on Solaris 10.
11924         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
11925         'tr' program and pass it as first argument.
11926         * tests/test-pipe-filter-gi1.sh: Likewise.
11927         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
11928         program as first argument.
11929         * tests/test-pipe-filter-gi1.c (main): Likewise.
11930
11931 2009-08-16  Eric Blake  <ebb9@byu.net>
11932
11933         fpurge: fix previous commits
11934         * modules/fpurge (Makefile.am): Make replacement conditional,
11935         partially reverting 2007-04-29 change; missed in previous
11936         attempt.
11937         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
11938         is missing.
11939
11940 2009-08-16  Bruno Haible  <bruno@clisp.org>
11941
11942         Clarify fpurge's effect on the file position.
11943         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
11944         * tests/test-fpurge.c (main): Make a second pass for checking the file
11945         position.
11946
11947 2009-08-16  Bruno Haible  <bruno@clisp.org>
11948
11949         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
11950         declaration of fpurge is missing.
11951         * tests/test-fpurge.c (main): Check that the file has not more contents
11952         than expected. Close the file before removing it.
11953
11954 2009-08-15  Eric Blake  <ebb9@byu.net>
11955
11956         fpurge: don't wrap working cygwin implementation
11957         * lib/fpurge.c (fpurge): Fix comment typo.
11958         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
11959         1.7 to avoid replacement.
11960         * tests/test-fpurge.c (main): Enhance test.
11961
11962 2009-08-15  Eric Blake  <ebb9@byu.net>
11963         and Jim Meyering  <meyering@redhat.com>
11964
11965         test-update-copyright: skip if perl is insufficient
11966         * tests/test-update-copyright.sh: Failure to run maintainer tool
11967         should not cause testsuite failure on cygwin 1.5.
11968
11969 2009-08-14  Eric Blake  <ebb9@byu.net>
11970
11971         doc: mention more functions added in cygwin 1.7.0
11972         * doc/posix-headers/limits.texi (limits.h): Update for recent
11973         cygwin additions.
11974         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
11975         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11976         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
11977         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
11978         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
11979
11980 2009-08-14  Eric Blake  <ebb9@byu.net>
11981
11982         maint.mk: simplify update-copyright rule
11983         * top/maint.mk (update-copyright-local): Delete, and document how
11984         to do it in cfg.mk instead.
11985         (update-copyright-exclude-regexp): Delete, and document how to do
11986         it in .x-update-copyright instead.
11987         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
11988         exclude ChangeLog.
11989
11990 2009-08-14  Bruno Haible  <bruno@clisp.org>
11991
11992         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
11993
11994 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
11995
11996         maint.mk: support update-copyright-env
11997         * top/maint.mk (update-copyright-env): Define place-holder.
11998         (update-copyright): Expand $(update-copyright-env) before
11999         invoking update-copyright.
12000
12001 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12002
12003         update-copyright: implement forced reformatting
12004         * build-aux/update-copyright: Implement and document
12005         UPDATE_COPYRIGHT_FORCE.
12006         * tests/test-update-copyright.sh: Test it.
12007
12008 2009-08-14  Eric Blake  <ebb9@byu.net>
12009         and Bruno Haible  <bruno@clisp.org>
12010
12011         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12012         * tests/test-locale.c: Revert previous patch related to NULL.
12013         * tests/test-stdio.c: Likewise.
12014         * tests/test-stdlib.c: Likewise.
12015         * tests/test-string.c: Likewise.
12016         * tests/test-unistd.c: Likewise.
12017         * modules/time-tests (Depends-on): Add verify.
12018         * modules/wchar-tests (Depends-on): Likewise.
12019         * tests/test-time.c: Test for NULL compliance.
12020         * tests/test-wchar.c: Likewise.
12021         * modules/locale (Depends-on): Add stddef.
12022         * modules/stdio (Depends-on): Likewise.
12023         * modules/stdlib (Depends-on): Likewise.
12024         * modules/string (Depends-on): Likewise.
12025         * modules/time (Depends-on): Likewise.
12026         * modules/unistd (Depends-on): Likewise.
12027         * modules/wchar (Depends-on): Likewise.
12028         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12029         * lib/stdlib.in.h (includes): Likewise.
12030         * lib/string.in.h (includes): Likewise.
12031         * lib/time.in.h (includes): Likewise.
12032         * lib/unistd.in.h (includes): Likewise.
12033         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12034         replaced.
12035         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12036         * m4/stddef_h.m4: New file.
12037         * modules/stddef: Likewise.
12038         * lib/stddef.in.h: Likewise.
12039         * modules/stddef-tests: Likewise.
12040         * tests/test-stddef.c: Likewise.
12041         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12042         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12043         * doc/posix-headers/locale.texi (locale.h): Likewise.
12044         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12045         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12046         * doc/posix-headers/string.texi (string.h): Likewise.
12047         * doc/posix-headers/time.texi (time.h): Likewise.
12048         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12049         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12050
12051 2009-08-14  Eric Blake  <ebb9@byu.net>
12052
12053         doc: improve git diff of texinfo files
12054         * .gitattributes: Add rule for *.texi files, with hint on how to
12055         use it.
12056         Copied from m4, and based on a report by Bruno Haible.
12057
12058 2009-08-14  Bruno Haible  <bruno@clisp.org>
12059
12060         Disable multithread support by default on Cygwin 1.5.x for real.
12061         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12062
12063 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12064
12065         update-copyright: much ado about intervals
12066         * build-aux/update-copyright: Implement and document
12067         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12068         of copyright year intervals.
12069         Also, document UPDATE_COPYRIGHT_YEAR.
12070         * tests/test-update-copyright.sh: Test it.
12071
12072         update-copyright: convert 2-digit to 4-digit years
12073         * build-aux/update-copyright: Implement and document.
12074         * tests/test-update-copyright.sh: Update.
12075
12076 2009-08-14  Jim Meyering  <meyering@redhat.com>
12077
12078         test-exclude: avoid coreutils "make check" failure
12079         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12080         just as in test-argmatch.c.
12081
12082 2009-08-13  Eric Blake  <ebb9@byu.net>
12083
12084         test-dup2: fix bad assumption
12085         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12086         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12087
12088         test-version-etc: fix CRLF portability issue
12089         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12090         recognize \r.
12091         * tests/test-argp-version-etc-1.sh: Likewise.
12092
12093         getopt: update client modules
12094         * modules/argp (Depends-on): Use getopt-gnu.
12095         * modules/git-merge-changelog (Depends-on): Likewise.
12096         * modules/long-options (Depends-on): Likewise.
12097         * modules/xstrtol (Depends-on): Likewise.
12098
12099 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12100
12101         * tests/test-version-etc.sh: Don't fail on different
12102         project/version.  Don't fail on CRLF differences.  Rewrite to use
12103         multiple -e instead of multiple sed forks, suggested by Eric Blake
12104         <ebb9@byu.net>.
12105         * tests/test-argp-version-etc-1.sh: Likewise.
12106
12107 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12108
12109         * tests/test-version-etc.sh: Don't fail on different
12110         project/version.
12111
12112 2009-08-12  Bruno Haible  <bruno@clisp.org>
12113
12114         Tests for modules 'getopt-posix', 'getopt-gnu'.
12115         * modules/getopt-posix-tests: New file.
12116         * tests/test-getopt.c: New file.
12117         * tests/test-getopt.h: New file.
12118         * tests/test-getopt_long.h: New file.
12119
12120         New modules 'getopt-posix', 'getopt-gnu'.
12121         * modules/getopt-gnu: New file, renamed from modules/getopt.
12122         * modules/getopt-posix: New file.
12123         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12124         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12125         (gl_GETOPT): Remove macro.
12126         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12127         Disable the test against BSD systems that declare optreset. Test
12128         against mingw bug. Test against lack of support of optional arguments
12129         on many platforms.
12130         * doc/glibc-headers/getopt.texi: Update module name and list of
12131         relevant platforms.
12132         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12133         'getopt-gnu' and more portability problems.
12134         * NEWS: Mention the changes.
12135
12136 2009-08-12  Bruno Haible  <bruno@clisp.org>
12137
12138         Ensure that optarg etc. get declared by <unistd.h>.
12139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12140         AC_USE_SYSTEM_EXTENSIONS.
12141         * modules/getopt (Depends-on): Add 'extensions'.
12142
12143 2009-08-12  Bruno Haible  <bruno@clisp.org>
12144
12145         Avoid test link errors.
12146         * modules/pipe-filter-ii-tests (Makefile.am): Define
12147         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12148         * modules/pipe-filter-gi-tests (Makefile.am): Define
12149         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12151
12152 2009-08-12  Bruno Haible  <bruno@clisp.org>
12153
12154         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12155         gl_GETOPT_SUBSTITUTE before.
12156         (gl_GETOPT): Use it.
12157         * m4/argp.m4 (gl_ARGP): Update.
12158         Reported by Sergey Poznyakoff.
12159
12160         * m4/getopt.m4: Reorder macros.
12161         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12162         (gl_GETOPT_SUBSTITUTE): Remove macro.
12163
12164 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12165
12166         Minor improvement in gitlog-to-changelog
12167
12168         * build-aux/gitlog-to-changelog: New option `--format' makes
12169         output format string configurable.
12170
12171 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12172
12173         Optimize exclude: use hash tables for non-wildcard patterns.
12174
12175         * lib/exclude.c: Include hash.h and mbuiter.h
12176         (struct exclude_pattern, exclude_segment): New data types.
12177         (struct exclude): Rewrite.
12178         (fnmatch_pattern_has_wildcards): New function.
12179         (new_exclude_segment, free_exclude_segment): New functions.
12180         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12181         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12182         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12183         * modules/exclude: Depend on hash and mbuiter.
12184
12185         * modules/exclude-tests: New file.
12186         * tests/test-exclude.c: New file.
12187         * tests/test-exclude1.sh: New file.
12188         * tests/test-exclude2.sh: New file.
12189         * tests/test-exclude3.sh: New file.
12190         * tests/test-exclude4.sh: New file.
12191         * tests/test-exclude5.sh: New file.
12192         * tests/test-exclude6.sh: New file.
12193         * tests/test-exclude7.sh: New file.
12194
12195 2009-08-12  Bruno Haible  <bruno@clisp.org>
12196
12197         Ensure that getopt() gets declared by <unistd.h>.
12198         * lib/unistd.in.h: Conditionally include getopt.h.
12199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12200         Set GNULIB_UNISTD_H_GETOPT.
12201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12202         GNULIB_UNISTD_H_GETOPT.
12203         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12204
12205 2009-08-12  Bruno Haible  <bruno@clisp.org>
12206
12207         Clarify logic.
12208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12209         gl_replace_getopt instead of GETOPT_H.
12210
12211 2009-08-12  Bruno Haible  <bruno@clisp.org>
12212
12213         * m4/getopt.m4: Add comments.
12214
12215 2009-08-12  Bruno Haible  <bruno@clisp.org>
12216
12217         Disable multithread support by default on Cygwin 1.5.x.
12218         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12219         set gl_use_threads=no if not specified otherwise.
12220
12221 2009-08-11  Bruno Haible  <bruno@clisp.org>
12222
12223         Avoid compilation error on NetBSD 5.0.
12224         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12225         * tests/test-stdio.c: Likewise.
12226         * tests/test-stdlib.c: Likewise.
12227         * tests/test-string.c: Likewise.
12228         * tests/test-unistd.c: Likewise.
12229         Reported by Greg Troxel <gdt@ir.bbn.com>
12230         at <https://savannah.gnu.org/support/?106973>.
12231
12232 2009-08-11  Bruno Haible  <bruno@clisp.org>
12233
12234         * modules/dup2-tests (Depends-on): Remove close.
12235
12236         Undo 2009-07-19 commit.
12237         * modules/acl-tests (Depends-on): Remove close.
12238         * modules/binary-io-tests (Depends-on): Likewise.
12239         * modules/closein-tests (Depends-on): Likewise.
12240         * modules/flock-tests (Depends-on): Likewise.
12241         * modules/fsync-tests (Depends-on): Likewise.
12242         * modules/lseek-tests (Depends-on): Likewise.
12243         * modules/pipe-tests (Depends-on): Likewise.
12244         * modules/posix_spawn-tests (Depends-on): Likewise.
12245         * modules/posix_spawnp-tests (Depends-on): Likewise.
12246         * modules/stat-time-tests (Depends-on): Likewise.
12247         * modules/yesno-tests (Depends-on): Likewise.
12248
12249 2009-08-10  Bruno Haible  <bruno@clisp.org>
12250
12251         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12252
12253 2009-08-10  Bruno Haible  <bruno@clisp.org>
12254
12255         Fix a gcc warning.
12256         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12257
12258 2009-08-10  Bruno Haible  <bruno@clisp.org>
12259
12260         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12261         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12262         not only the first time.
12263         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12264         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12265         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12266         is 1, not only the the first time.
12267
12268 2009-08-10  Bruno Haible  <bruno@clisp.org>
12269
12270         Make it possible to use module 'gethostname' without module 'close'.
12271         * lib/unistd.in.h (close): Evoke a link error only if
12272         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12274         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12275         * modules/unistd (Makefile.am): Substitute
12276         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12277         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12278         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12280         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12281         * modules/sys_ioctl (Makefile.am): Substitute
12282         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12283         * modules/socket (configure.ac): On native Windows, set
12284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12285         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12286         Reported by Sam Steingold <sds@gnu.org>.
12287
12288 2009-08-10  Bruno Haible  <bruno@clisp.org>
12289
12290         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12291         * modules/ioctl (configure.ac): Likewise.
12292
12293 2009-08-10  Bruno Haible  <bruno@clisp.org>
12294
12295         Avoid collision between gnulib wrapper and libintl wrapper.
12296         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12297         already defined in intl/printf.c.
12298         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12299         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12300
12301 2009-08-09  Bruno Haible  <bruno@clisp.org>
12302
12303         Make <sys/select.h> really self-contained, also on Solaris 10.
12304         * lib/sys_select.in.h: Include <string.h>.
12305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12306         Solaris 10 problem.
12307         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12308         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12309         Reported by Jim Meyering.
12310
12311 2009-08-09  Bruno Haible  <bruno@clisp.org>
12312
12313         Avoid warnings from 'aclocal' that are due to a use of macro name
12314         AM_XGETTEXT_OPTION that is not defined in automake.
12315         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12316         automake.
12317         * modules/error (configure.ac): Likewise.
12318         * modules/propername (configure.ac): Likewise.
12319         * modules/vasprintf (configure.ac): Likewise.
12320         * modules/verror (configure.ac): Likewise.
12321         * modules/xprintf (configure.ac): Likewise.
12322         * modules/xvasprintf (configure.ac): Likewise.
12323
12324 2009-08-08  Bruno Haible  <bruno@clisp.org>
12325
12326         Avoid compilation error in C++ mode.
12327         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12328         Reported by Sam Steingold <sds@gnu.org>.
12329
12330 2009-08-08  Bruno Haible  <bruno@clisp.org>
12331
12332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12333         for the various Unix platforms.
12334         * doc/posix-headers/limits.texi: Update platforms list regarding
12335         HOST_NAME_MAX.
12336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12337
12338 2009-08-07  Jim Meyering  <meyering@redhat.com>
12339
12340         selinux-at: fix typo in a comment
12341         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12342         Spotted by Paolo Bonzini.
12343
12344         selinux-at: remove redundant m4 code, add documentation
12345         * modules/selinux-at (configure.ac): Remove redundant code.
12346         LIB_SELINUX is already set via the dependent module, selinux-h.
12347         (Include): Add quotes around selinux-at.h.
12348         * lib/selinux-at.h: Add documentation.
12349         Reported by Bruno Haible in
12350         http://marc.info/?l=gnulib-bug&m=124958988300749
12351
12352 2009-08-07  Bruno Haible  <bruno@clisp.org>
12353
12354         Avoid link error on MacOS X 10.3 and 10.4.
12355         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12356         on non-ELF systems.
12357         * lib/argp-pv.c (argp_program_version): Likewise.
12358         Reported by Simon Josefsson.
12359
12360 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12361
12362         * tests/test-version-etc.sh: Use $EXEEXT.
12363
12364 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12365
12366         update-copyright: update documentation to point to maint.mk
12367         * build-aux/update-copyright: Here.
12368
12369 2009-08-06  Jim Meyering  <meyering@redhat.com>
12370
12371         maint.mk: support update-copyright-local
12372         * top/maint.mk (update-copyright-local): Define place-holder.
12373         (update-copyright): Depend on $(update-copyright-local).
12374
12375 2009-08-06  Jim Meyering  <meyering@redhat.com>
12376
12377         selinux-at: new module
12378         Initially written for coreutils, this module will soon be
12379         used by findutils, too.
12380         * MODULES.html.sh [Misc]: Add selinux-at.
12381         * lib/selinux-at.h: New file, from coreutils.
12382         * lib/selinux-at.c: Likewise.
12383         * modules/selinux-at: Likewise.
12384         (License): Change from LGPL to GPL, since it depends
12385         on the GPL'd openat module.
12386
12387         doc: update README
12388         * README: Remove references to cogito.
12389         Remove cvs-repo-updating instructions from 2007.
12390         Don't imply that CVS is better if you have limited disk space.
12391
12392 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12393
12394         update-copyright: support C-style comments
12395         * build-aux/update-copyright: Implement and document.
12396         * tests/test-update-copyright.sh: Test.
12397
12398 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12399
12400         update-copyright: support omitted "(C)"
12401         * build-aux/update-copyright: Implement and document.  Also,
12402         allow variable whitespace before "(C)".
12403         * tests/test-update-copyright.sh: Test.
12404
12405 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12406
12407         update-copyright: don't trip on non-FSF copyright statements
12408         * build-aux/update-copyright: Fix so that the first correctly
12409         formatted FSF copyright statement is recognized no matter what
12410         appears before it.  Update documentation.
12411         * tests/test-update-copyright.sh: Test that.
12412
12413 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12414
12415         update-copyright: clean up code a little
12416         * build-aux/update-copyright: Append "_re" to the name of any
12417         variable holding a regular expression.
12418         Replace "old" and "new" with "stmt" in variable names.
12419         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12420         handled correctly.
12421         Format code more consistently.
12422
12423 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12424
12425         update-copyright-tests: improve portability
12426         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12427         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12428
12429 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12430
12431         update-copyright: support @copyright{} and &copy;
12432         * build-aux/update-copyright: Implement and document.
12433         * tests/test-update-copyright.sh: Test.
12434
12435 2009-08-04  Jim Meyering  <meyering@redhat.com>
12436
12437         update-copyright-tests: correctly test EOL=\r\n handling
12438         * tests/test-update-copyright.sh: Put \r at the end of some lines
12439         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12440
12441         maint.mk: make update-copyright exclusion list more configurable
12442         * top/maint.mk (update-copyright): Default to excluding COPYING,
12443         but allow an override, in case someone does want to update that file.
12444
12445         maint.mk: don't update copyright date in COPYING
12446         * top/maint.mk (update-copyright): Exclude COPYING.
12447
12448         maint.mk: add a copyright-updating rule
12449         * top/maint.mk (update-copyright): New rule.
12450         Derived from coreutils/Makefile.am.
12451
12452         update-copyright: rename some variables
12453         * build-aux/update-copyright: Rename a few variables for clarity.
12454         Tweak syntax.  List Joel E. Denny as coauthor.
12455
12456 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12457
12458         update-copyright: fix bug for 2-digit last year and add tests
12459         * build-aux/update-copyright: Fix bug.
12460         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12461         specified.
12462         * modules/update-copyright-tests: New
12463         * tests/test-update-copyright.sh: New.
12464
12465 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12466
12467         update-copyright: handle leading tabs in line prefix
12468         * build-aux/update-copyright: Count leading tabs as 8 spaces
12469         when computing margin.  This helps with the formatting of
12470         ChangeLogs, for example.
12471         Fix documentation a little.
12472
12473 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12474
12475         update-copyright: support EOL=\r\n
12476         * build-aux/update-copyright: Implement that.
12477
12478 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12479
12480         update-copyright: automatically format copyright statements
12481         * build-aux/update-copyright: Implement that.
12482         Also, be a little more predictable and safer by always failing
12483         when the full copyright format is not perfectly recognized as an
12484         unbroken whole.  Discussed at
12485         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12486         Rewrite documentation.
12487
12488 2009-08-03  Bruno Haible  <bruno@clisp.org>
12489
12490         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12491
12492 2009-08-02  Bruno Haible  <bruno@clisp.org>
12493
12494         Tests for module 'uname'.
12495         * modules/uname-tests: New file.
12496         * tests/test-uname.c: New file.
12497
12498         New module 'uname'.
12499         * lib/uname.c: New file.
12500         * m4/uname.m4: New file.
12501         * modules/uname: New file.
12502         * doc/posix-functions/uname.texi: Mention the new module.
12503
12504 2009-08-02  Bruno Haible  <bruno@clisp.org>
12505
12506         Tests for module 'sys_utsname'.
12507         * modules/sys_utsname-tests: New file.
12508         * tests/test-sys_utsname.c: New file.
12509
12510         New module 'sys_utsname'.
12511         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12512         * m4/sys_utsname_h.m4: New file.
12513         * modules/sys_utsname: New file.
12514         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12515
12516 2009-08-02  Bruno Haible  <bruno@clisp.org>
12517
12518         Implicitly initialize the sockets library.
12519         * lib/gethostname.c: Include sockets.h.
12520         (rpl_gethostname): Invoke gl_sockets_startup.
12521         * lib/socket.c: Include sockets.h.
12522         (rpl_socket): Invoke gl_sockets_startup.
12523         * modules/gethostname (Depends-on): Add sockets.
12524         * modules/socket (Depends-on): Likewise.
12525         * tests/test-poll.c: Don't include sockets.h.
12526         (main): Don't invoke gl_sockets_startup.
12527         * tests/test-select.c: Don't include sockets.h.
12528         (main): Don't invoke gl_sockets_startup.
12529
12530 2009-08-02  Bruno Haible  <bruno@clisp.org>
12531
12532         Allow multiple calls to gl_sockets_startup.
12533         * lib/sockets.c (initialized_sockets_version): New variable.
12534         (gl_sockets_startup): Do nothing if already called for this or a higher
12535         version.
12536         (gl_sockets_cleanup): Reset initialized_sockets_version.
12537
12538 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12539
12540         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12541         different project/version.
12542
12543 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12544             Bruno Haible  <bruno@clisp.org>
12545
12546         Tests for module 'pipe-filter-gi'.
12547         * modules/pipe-filter-gi-tests: New file.
12548         * tests/test-pipe-filter-gi1.sh: New file.
12549         * tests/test-pipe-filter-gi1.c: New file.
12550         * tests/test-pipe-filter-gi2.sh: New file.
12551         * tests/test-pipe-filter-gi2-main.c: New file.
12552         * tests/test-pipe-filter-gi2-child.c: New file.
12553
12554         New module 'pipe-filter-gi'.
12555         * lib/pipe-filter-gi.c: New file.
12556         * modules/pipe-filter-gi: New file.
12557
12558 2009-08-02  Bruno Haible  <bruno@clisp.org>
12559             Paolo Bonzini  <bonzini@gnu.org>
12560
12561         Tests for module 'pipe-filter-ii'.
12562         * modules/pipe-filter-ii-tests: New file.
12563         * tests/test-pipe-filter-ii1.sh: New file.
12564         * tests/test-pipe-filter-ii1.c: New file.
12565         * tests/test-pipe-filter-ii2.sh: New file.
12566         * tests/test-pipe-filter-ii2-main.c: New file.
12567         * tests/test-pipe-filter-ii2-child.c: New file.
12568
12569         New module 'pipe-filter-ii'.
12570         * lib/pipe-filter.h: New file.
12571         * lib/pipe-filter-ii.c: New file.
12572         * lib/pipe-filter-aux.h: New file.
12573         * modules/pipe-filter-ii: New file.
12574
12575 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12576
12577         * lib/gc-libgcrypt.c: Change copyright to FSF.
12578         * lib/gc-gnulib.c: Likewise.
12579
12580 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12581
12582         * lib/gethostname.c: Include limits.h.
12583
12584 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12585             Bruno Haible  <bruno@clisp.org>
12586
12587         Ensure HOST_NAME_MAX as part of the gethostname module.
12588         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12589         define also HOST_NAME_MAX.
12590         * tests/test-gethostname.c: Include <limits.h>.
12591         (main): Check also HOST_NAME_MAX.
12592         * doc/posix-headers/limits.texi: Document the mingw problem.
12593
12594 2009-08-02  Bruno Haible  <bruno@clisp.org>
12595
12596         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12597         Add comments.
12598
12599 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12600
12601         * lib/gethostname.c: Add Windows wrapper.
12602         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12603         * modules/gethostname: Depend on sys_socket & errno, for also
12604         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12605         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12606
12607 2009-07-31  Jim Meyering  <meyering@redhat.com>
12608
12609         getloadavg: fix symbol name in comment
12610         * lib/getloadavg.c: Correct a typo I introduced when adding
12611         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12612         Matt Kraai spotted the problem.
12613
12614 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12615
12616         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12617         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
12618         code also if ! defined N_NAME_POINTER.
12619         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
12620         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
12621         but the n_name member is a 12-byte array.
12622
12623 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
12624
12625         update-copyright: generalize comment handling
12626         * build-aux/update-copyright: Handle copyright statements
12627         within more comment styles.
12628         Document usage.
12629         Report any file with an external copyright holder or parse failure.
12630
12631 2009-07-29  Jim Meyering  <meyering@redhat.com>
12632
12633         mktime: correct setting of REPLACE_MKTIME
12634         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
12635
12636         update-copyright: new module
12637         * modules/update-copyright: New file.
12638         * build-aux/update-copyright: New file.
12639         * MODULES.html.sh (maint+release support): Add update-copyright.
12640
12641 2009-07-27  Bruno Haible  <bruno@clisp.org>
12642
12643         Fix compilation error when <ctime> is used and mktime is replaced.
12644         * lib/time.in.h (mktime): New declaration.
12645         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
12646         REPLACE_MKTIME instead of defining mktime in config.h.
12647         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
12648         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
12649         Reported by Ross McFarland <rwmcfa1@neces.com>.
12650
12651 2009-07-27  Bruno Haible  <bruno@clisp.org>
12652
12653         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
12654         Reported by Matt Kraai <mkraai@beckman.com>.
12655
12656 2009-07-25  Jim Meyering  <meyering@redhat.com>
12657
12658         maint.mk: avoid warnings about missing files
12659         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
12660         diagnostic when .prev-version does not exist.
12661         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
12662         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
12663         nonexistent cfg.mk.
12664         Suggestions from Simon Josefsson.
12665
12666 2009-07-25  Bruno Haible  <bruno@clisp.org>
12667
12668         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
12669         defined as macros. Needed on QNX 6.4.1.
12670         Reported by Matt Kraai <mkraai@beckman.com>.
12671
12672 2009-07-23  Jim Meyering  <meyering@redhat.com>
12673
12674         maint.mk: invoke "make dist" with a working value of XZ_OPT
12675         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
12676
12677 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
12678
12679         Make fseeko.c compile on QNX.
12680         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
12681
12682 2009-07-22  Peter Simons  <simons@cryp.to>
12683
12684         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
12685         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
12686         * lib/md4.h: Likewise.
12687         * lib/md5.h: Likewise.
12688         * lib/sha1.h: Likewise.
12689         * lib/sha256.h: Likewise.
12690         * lib/sha512.h: Likewise.
12691
12692         tests-sha1: don't assign literal string to 'char *' variable
12693         * tests/test-sha1.c (main): Declare locals with "const" to match
12694         attributes of the right hand side.
12695
12696 2009-07-21  Eric Blake  <ebb9@byu.net>
12697
12698         dup2: fix more mingw problems
12699         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
12700         fd to itself.
12701         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12702         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
12703         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
12704         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
12705         care of mingw bugs.
12706
12707 2009-07-21  Jim Meyering  <meyering@redhat.com>
12708
12709         vc-list-files: avoid failure when /bin/sh is dash
12710         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
12711         On some Debian based systems, /bin/sh is a symlink to dash, and running
12712         this command would omit the "/" following each 'tests' prefix:
12713           dash -x build-aux/vc-list-files -C . tests
12714         That is because bash and dash work differently:
12715           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
12716           bash ok
12717           dash odd
12718
12719 2009-07-21  Eric Blake  <ebb9@byu.net>
12720
12721         dup2-tests: test previous patch
12722         * modules/dup2-tests: New file.
12723         * tests/test-dup2.c: Likewise.
12724         * tests/test-open.c (main): Avoid unspecified behavior.
12725         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
12726         test.
12727
12728         dup2: work around mingw and cygwin 1.5 bug
12729         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
12730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
12731         * modules/unistd (Makefile.am): Substitute it.
12732         * lib/unistd.in.h (dup2): Declare the replacement.
12733         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
12734         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
12735         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
12736         * modules/execute (Depends-on): Add dup2.
12737         * modules/fseterr (Depends-on): Likewise.
12738         * modules/pipe (Depends-on): Likewise.
12739         * modules/posix_spawn-internal (Depends-on): Likewise.
12740
12741 2009-07-21  Bruno Haible  <bruno@clisp.org>
12742
12743         * modules/.gitattributes: New file.
12744
12745 2009-07-20  Bruno Haible  <bruno@clisp.org>
12746
12747         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
12748         (main): Use it.
12749
12750 2009-07-20  Eric Blake  <ebb9@byu.net>
12751
12752         test-pipe: make a bit more robust.
12753         * tests/test-pipe.c (myerr): Allow error messages regardless of
12754         what we do to stderr.
12755         (test_pipe): Rearrange to avoid deadlock.
12756         (child_main): Try a larger read, to ensure we avoided deadlock.
12757         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
12758         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
12759         if misused.
12760
12761 2009-07-19  Jim Meyering  <meyering@redhat.com>
12762
12763         fts: avoid false-positive cycle-detection
12764         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
12765         for each new command line argument.
12766
12767 2009-07-19  Bruno Haible  <bruno@clisp.org>
12768
12769         Fix build error on mingw with the modules sys_select and unistd.
12770         * modules/acl-tests (Depends-on): Add close.
12771         * modules/binary-io-tests (Depends-on): Likewise.
12772         * modules/closein-tests (Depends-on): Likewise.
12773         * modules/flock-tests (Depends-on): Likewise.
12774         * modules/fsync-tests (Depends-on): Likewise.
12775         * modules/lseek-tests (Depends-on): Likewise.
12776         * modules/pipe-tests (Depends-on): Likewise.
12777         * modules/posix_spawn-tests (Depends-on): Likewise.
12778         * modules/posix_spawnp-tests (Depends-on): Likewise.
12779         * modules/stat-time-tests (Depends-on): Likewise.
12780         * modules/yesno-tests (Depends-on): Likewise.
12781
12782 2009-07-19  Bruno Haible  <bruno@clisp.org>
12783
12784         Unify conditionals.
12785         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
12786         macros, not at the compiler macros.
12787         * lib/pipe.c: Likewise.
12788         * lib/execute.c: Likewise.
12789         * lib/spawni.c: Likewise.
12790
12791 2009-07-19  Bruno Haible  <bruno@clisp.org>
12792
12793         Fix handling of closed stdin/stdout/stderr on mingw.
12794         * lib/w32spawn.h: Include unistd.h.
12795         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
12796         file descriptor with O_NOINHERIT flag.
12797         (fd_safer_noinherit): New function, based on fd-safer.c.
12798         (dup_safer_noinherit): New function, based on dup-safer.c.
12799         (undup_safer_noinherit): New function.
12800         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
12801         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
12802         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
12803         instead of fd_safer.
12804         * tests/test-pipe.c: Include <windows.h>.
12805         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
12806
12807         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
12808         from main.
12809         (test_pipe): Pass an extra argument for disambiguation.
12810         (main): Invoke parent_main or child_main.
12811
12812         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
12813         consistently.
12814
12815 2009-07-18  Eric Blake  <ebb9@byu.net>
12816
12817         test-pipe: fix mingw build
12818         * tests/test-pipe.c (main): Avoid fcntl on mingw.
12819
12820 2009-07-18  Bruno Haible  <bruno@clisp.org>
12821
12822         * modules/pipe-tests (Makefile.am): Fix typo.
12823
12824 2009-07-18  Eric Blake  <ebb9@byu.net>
12825
12826         error: fix mingw build
12827         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
12828         Reported by Bruno Haible.
12829
12830         error: avoid undefined use of stdout
12831         * lib/error.c (error, error_at_line): Check that fd 1 is open
12832         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
12833         is handling faults and the close_stdout module wants to report the
12834         detection of closed stdout as an error.
12835
12836 2009-07-17  Eric Blake  <ebb9@byu.net>
12837
12838         pipe: be robust in face of closed fds
12839         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
12840         should cause child to misbehave.
12841         * modules/pipe-tests: New module.
12842         * tests/test-pipe.c: New file.
12843         * tests/test-pipe.sh: New file.
12844         Reported by Akim Demaille.
12845
12846 2009-07-14  Bruno Haible  <bruno@clisp.org>
12847
12848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
12849         Reported by anonymous kc.
12850
12851 2009-07-07  Jim Meyering  <meyering@redhat.com>
12852
12853         maint.mk: don't look for translatable strings in *.m4 or *.mk
12854         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
12855         when searching for translatable strings.
12856
12857 2009-07-05  Jim Meyering  <meyering@redhat.com>
12858
12859         remove superfluous parentheses in STREQ definition
12860         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
12861         * lib/getugroups.c (STREQ): Likewise.
12862         * lib/fnmatch.c (STREQ): Likewise.
12863         Spotted by Bruno Haible.
12864
12865 2009-07-04  Jim Meyering  <meyering@redhat.com>
12866
12867         argv-iter: new module
12868         * MODULES.html.sh: Add argv-iter.
12869         * lib/argv-iter.c, lib/argv-iter.h: New files.
12870         * modules/argv-iter: New file.
12871         * modules/argv-iter-tests: New file.
12872         * tests/test-argv-iter.c: Test it.
12873
12874 2009-07-04  Bruno Haible  <bruno@clisp.org>
12875
12876         Fix assertion.
12877         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
12878         contains more exact copies of a given entry than file2, leave the extra
12879         copies unpaired rather than aborting.
12880         Reported by Eric Blake.
12881
12882 2009-07-02  Bruno Haible  <bruno@clisp.org>
12883
12884         Speedup git-merge-changelog for git cherry-pick.
12885         * lib/git-merge-changelog.c (struct entries_mapping): New type.
12886         (entries_mapping_get): New function, extracted from compute_mapping.
12887         (entries_mapping_reverse_get): New function.
12888         (compute_mapping): Add a 'full' argument. Return the result in a
12889         'struct entries_mapping'.
12890         (main): Update. Access the mappings through entries_mapping_get.
12891         Reported by Eric Blake.
12892
12893 2009-07-02  Bruno Haible  <bruno@clisp.org>
12894
12895         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
12896         best_i.
12897
12898 2009-07-02  Bruno Haible  <bruno@clisp.org>
12899
12900         Speed up approximate search for matching ChangeLog entries.
12901         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
12902         argument. Call fstrcmp_bounded instead of fstrcmp.
12903         (compute_mapping, try_split_merged_entry, main): Update callers.
12904
12905 2009-07-02  Bruno Haible  <bruno@clisp.org>
12906
12907         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
12908
12909 2009-06-30  Bruno Haible  <bruno@clisp.org>
12910
12911         Reduce the number of uc_is_cased calls.
12912         * lib/unicase.h (casing_suffix_context_t): Add
12913         'first_char_except_ignorable' field.
12914         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
12915         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
12916         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
12917         Update initializer.
12918         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
12919         case-ignorable characters.
12920         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
12921         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
12922         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
12923         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
12924         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
12925
12926 2009-06-30  Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'unicase/ignorable'.
12929         * modules/unicase/ignorable-tests: New file.
12930         * tests/unicase/test-ignorable.c: New file, generated by
12931         gen-uni-tables.
12932
12933         Tests for module 'unicase/cased'.
12934         * modules/unicase/cased-tests: New file.
12935         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
12936         * tests/unicase/test-predicate-part1.h: New file, derived from
12937         tests/unictype/test-predicate-part1.h.
12938         * tests/unicase/test-predicate-part2.h: New file, same as
12939         tests/unictype/test-predicate-part2.h.
12940
12941         Fix evaluation of "Before C" condition of FINAL_SIGMA.
12942         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
12943         (output_casing_properties): New function.
12944         (main): Call it.
12945         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
12946         * lib/unicase/cased.c: Include unictype/bitmap.h.
12947         (uc_is_cased): Define through a bitmap lookup.
12948         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
12949         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
12950         (uc_is_case_ignorable): Define through a bitmap lookup.
12951         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
12952         lib/unictype/bitmap.h.
12953         (Depends-on): Add inline. Clean up.
12954         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
12955         lib/unictype/bitmap.h.
12956         (Depends-on): Add inline. Clean up.
12957         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
12958         recognition.
12959         * tests/unicase/test-u16-tolower.c (main): Likewise.
12960         * tests/unicase/test-u32-tolower.c (main): Likewise.
12961
12962 2009-06-30  Bruno Haible  <bruno@clisp.org>
12963
12964         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
12965         * lib/unicase/u16-casemap.c: Likewise.
12966         * lib/unicase/u32-casemap.c: Likewise.
12967
12968 2009-06-29  Bruno Haible  <bruno@clisp.org>
12969
12970         Define u32_casefold as a wrapper around u32_ct_casefold.
12971         * lib/unicase/u32-casefold.c: Update.
12972         * modules/unicase/u32-casefold (Depends-on): Add
12973         unicase/u32-ct-casefold, unicase/empty-prefix-context,
12974         unicase/empty-suffix-context. Clean up.
12975
12976         Define u16_casefold as a wrapper around u16_ct_casefold.
12977         * lib/unicase/u16-casefold.c: Update.
12978         * modules/unicase/u16-casefold (Depends-on): Add
12979         unicase/u16-ct-casefold, unicase/empty-prefix-context,
12980         unicase/empty-suffix-context. Clean up.
12981
12982         Define u8_casefold as a wrapper around u8_ct_casefold.
12983         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
12984         * lib/unicase/u8-casefold.c: Update.
12985         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
12986         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12987
12988         Define u32_totitle as a wrapper around u32_ct_totitle.
12989         * lib/unicase/u32-totitle.c: Update.
12990         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
12991         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12992
12993         Define u16_totitle as a wrapper around u16_ct_totitle.
12994         * lib/unicase/u16-totitle.c: Update.
12995         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
12996         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
12997
12998         Define u8_totitle as a wrapper around u8_ct_totitle.
12999         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13000         functions.
13001         (FUNC): Delegate to U_CT_TOTITLE.
13002         * lib/unicase/u8-totitle.c: Update.
13003         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13004         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13005
13006         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13007         invocation.
13008         * modules/unicase/u32-tolower (Depends-on): Add
13009         unicase/empty-prefix-context, unicase/empty-suffix-context.
13010
13011         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13012         invocation.
13013         * modules/unicase/u16-tolower (Depends-on): Add
13014         unicase/empty-prefix-context, unicase/empty-suffix-context.
13015
13016         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13017         * modules/unicase/u8-tolower (Depends-on): Add
13018         unicase/empty-prefix-context, unicase/empty-suffix-context.
13019
13020         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13021         invocation.
13022         * modules/unicase/u32-toupper (Depends-on): Add
13023         unicase/empty-prefix-context, unicase/empty-suffix-context.
13024
13025         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13026         invocation.
13027         * modules/unicase/u16-toupper (Depends-on): Add
13028         unicase/empty-prefix-context, unicase/empty-suffix-context.
13029
13030         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13031         * modules/unicase/u8-toupper (Depends-on): Add
13032         unicase/empty-prefix-context, unicase/empty-suffix-context.
13033
13034         New module 'unicase/u32-ct-casefold'.
13035         * lib/unicase/u32-ct-casefold.c: New file.
13036         * modules/unicase/u32-ct-casefold: New file.
13037
13038         New module 'unicase/u16-ct-casefold'.
13039         * lib/unicase/u16-ct-casefold.c: New file.
13040         * modules/unicase/u16-ct-casefold: New file.
13041
13042         New module 'unicase/u8-ct-casefold'.
13043         * lib/unicase/u8-ct-casefold.c: New file.
13044         * lib/unicase/u-ct-casefold.h: New file, derived from
13045         lib/unicase/u-casefold.h.
13046         * modules/unicase/u8-ct-casefold: New file.
13047
13048         New module 'unicase/u32-ct-totitle'.
13049         * lib/unicase/u32-ct-totitle.c: New file.
13050         * modules/unicase/u32-ct-totitle: New file.
13051
13052         New module 'unicase/u16-ct-totitle'.
13053         * lib/unicase/u16-ct-totitle.c: New file.
13054         * modules/unicase/u16-ct-totitle: New file.
13055
13056         New module 'unicase/u8-ct-totitle'.
13057         * lib/unicase/u8-ct-totitle.c: New file.
13058         * lib/unicase/u-ct-totitle.h: New file, derived from
13059         lib/unicase/u-totitle.h.
13060         * modules/unicase/u8-ct-totitle: New file.
13061
13062         New module 'unicase/u32-ct-tolower'.
13063         * lib/unicase/u32-ct-tolower.c: New file.
13064         * modules/unicase/u32-ct-tolower: New file.
13065
13066         New module 'unicase/u16-ct-tolower'.
13067         * lib/unicase/u16-ct-tolower.c: New file.
13068         * modules/unicase/u16-ct-tolower: New file.
13069
13070         New module 'unicase/u8-ct-tolower'.
13071         * lib/unicase/u8-ct-tolower.c: New file.
13072         * modules/unicase/u8-ct-tolower: New file.
13073
13074         New module 'unicase/u32-ct-toupper'.
13075         * lib/unicase/u32-ct-toupper.c: New file.
13076         * modules/unicase/u32-ct-toupper: New file.
13077
13078         New module 'unicase/u16-ct-toupper'.
13079         * lib/unicase/u16-ct-toupper.c: New file.
13080         * modules/unicase/u16-ct-toupper: New file.
13081
13082         New module 'unicase/u8-ct-toupper'.
13083         * lib/unicase/u8-ct-toupper.c: New file.
13084         * modules/unicase/u8-ct-toupper: New file.
13085
13086         Add context arguments to u*_casemap functions.
13087         * lib/unicase/unicasemap.h: Include unicase.h.
13088         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13089         suffix_context arguments.
13090         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13091         functions.
13092         (FUNC): Add prefix_context and suffix_context arguments. Use
13093         uc_is_cased and uc_is_case_ignorable.
13094         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13095         * lib/unicase/u16-casemap.c: Likewise.
13096         * lib/unicase/u32-casemap.c: Likewise.
13097         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13098         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13099         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13100         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13101         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13102         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13103
13104         New module 'unicase/u32-suffix-context'.
13105         * lib/unicase/u32-suffix-context.c: New file.
13106         * modules/unicase/u32-suffix-context: New file.
13107
13108         New module 'unicase/u16-suffix-context'.
13109         * lib/unicase/u16-suffix-context.c: New file.
13110         * modules/unicase/u16-suffix-context: New file.
13111
13112         New module 'unicase/u8-suffix-context'.
13113         * lib/unicase/u8-suffix-context.c: New file.
13114         * lib/unicase/u-suffix-context.h: New file.
13115         * modules/unicase/u8-suffix-context: New file.
13116
13117         New module 'unicase/empty-suffix-context'.
13118         * lib/unicase/empty-suffix-context.c: New file.
13119         * modules/unicase/empty-suffix-context: New file.
13120
13121         New module 'unicase/u32-prefix-context'.
13122         * lib/unicase/u32-prefix-context.c: New file.
13123         * modules/unicase/u32-prefix-context: New file.
13124
13125         New module 'unicase/u16-prefix-context'.
13126         * lib/unicase/u16-prefix-context.c: New file.
13127         * modules/unicase/u16-prefix-context: New file.
13128
13129         New module 'unicase/u8-prefix-context'.
13130         * lib/unicase/u8-prefix-context.c: New file.
13131         * lib/unicase/u-prefix-context.h: New file.
13132         * lib/unicase/context.h: New file.
13133         * modules/unicase/u8-prefix-context: New file.
13134
13135         New module 'unicase/empty-prefix-context'.
13136         * lib/unicase/empty-prefix-context.c: New file.
13137         * modules/unicase/empty-prefix-context: New file.
13138
13139         New module 'unicase/ignorable'.
13140         * lib/unicase/ignorable.c: New file.
13141         * modules/unicase/ignorable: New file.
13142
13143         New module 'unicase/cased'.
13144         * lib/unicase/caseprop.h: New file.
13145         * lib/unicase/cased.c: New file.
13146         * modules/unicase/cased: New file.
13147
13148         New functions for case mapping of substrings.
13149         * lib/unicase.h (casing_prefix_context_t): New type.
13150         (unicase_empty_prefix_context): New variable.
13151         (u8_casing_prefix_context, u16_casing_prefix_context,
13152         u32_casing_prefix_context, u8_casing_prefixes_context,
13153         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13154         declarations.
13155         (casing_suffix_context_t): New type.
13156         (unicase_empty_suffix_context): New variable.
13157         (u8_casing_suffix_context, u16_casing_suffix_context,
13158         u32_casing_suffix_context, u8_casing_suffixes_context,
13159         u16_casing_suffixes_context, u32_casing_suffixes_context,
13160         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13161         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13162         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13163         declarations.
13164
13165 2009-06-28  Jim Meyering  <meyering@redhat.com>
13166
13167         boostrap: indent only with spaces
13168         * build-aux/bootstrap: Indent only with spaces, never TABs.
13169
13170         bootstrap: split long lines
13171         * build-aux/bootstrap: Keep line length < 80.
13172
13173         bootstrap: sync from coreutils
13174         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13175         just as autoreconf does.  Verify a list of prerequisite
13176         package-name,version-number pairs if defined in bootstrap.conf.
13177         Refer to README-prereq, if prerequisites are not satisfied.
13178
13179 2009-06-27  Eric Blake  <ebb9@byu.net>
13180
13181         tests: add test for bogus NULL definition
13182         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13183         * tests/test-stdlib.c: Likewise.
13184         * tests/test-string.c: Likewise.
13185         * tests/test-locale.c: Likewise.
13186         * tests/test-unistd.c: Likewise.
13187         * modules/stdio-tests (Depends-on): Add verify.
13188         * modules/stdlib-tests (Depends-on): Likewise.
13189         * modules/string-tests (Depends-on): Likewise.
13190         * modules/locale-tests (Depends-on): Likewise.
13191         * modules/unistd-tests (Depends-on): Likewise.
13192
13193 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13194
13195         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13196         self-explaining comment.
13197         * m4/selinux-selinux-h: Update serial.
13198         (gl_LIBSELINUX): New macro, adding a warning for missing development
13199         packages to code extracted from...
13200         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13201         Add warning for missing development packages here, too.
13202
13203 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13204
13205         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13206
13207 2009-06-25  Eric Blake  <ebb9@byu.net>
13208
13209         version-etc: fix regression
13210         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13211         gcc.
13212         (version_etc): Use it, to catch bugs with trailing NULL.
13213         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13214         (version_etc_va): Fix logic bug.
13215         * modules/version-etc-tests: Add test.
13216         * tests/test-version-etc.c: New file.
13217         * tests/test-version-etc.sh: Likewise.
13218
13219 2009-06-25  Sam Steingold  <sds@gnu.org>
13220
13221         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13222         mbtowc declaration.
13223
13224 2009-06-25  Eric Blake  <ebb9@byu.net>
13225
13226         fpurge: migrate into <stdio.h>
13227         * lib/fpurge.h: Delete...
13228         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13229         * lib/fpurge.c (fpurge): Change declaring header.
13230         * modules/fpurge (Files): Drop deleted file.
13231         (Depends-on): Add stdio.
13232         (configure.ac): Set witness.
13233         * modules/stdio (Makefile.am): Support fpurge macros.
13234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13235         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13236         * lib/fflush.c: Update client.
13237         * tests/test-fpurge.c: Likewise.
13238         * NEWS: Mention the change.
13239
13240 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13241
13242         * lib/argp-version-etc.c (program_authors): Add const
13243         qualifier.
13244         * lib/version-etc.c: Fix typos in the comments.
13245         * modules/argp-version-etc: Depends on version-etc.
13246
13247 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13248
13249         argp-version-etc: new module.
13250
13251         * lib/argp-version-etc.c: New file.
13252         * lib/argp-version-etc.h: New file.
13253         * modules/argp-version-etc: New file.
13254         * modules/argp-version-etc-tests: New file.
13255         * tests/test-argp-version-etc.c: New test.
13256         * tests/test-argp-version-etc-1.sh: New test.
13257
13258 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13259
13260         Provide additional interfaces and documentation for version-etc
13261         module.
13262
13263         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13264         interfaces.
13265         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13266         prototypes.
13267
13268 2009-06-24  Bruno Haible  <bruno@clisp.org>
13269
13270         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13271         HAVE_LIB${NAME} macro.
13272         Reported by Sam Steingold <sds@gnu.org>.
13273
13274 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13275
13276         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13277         needed.
13278
13279 2009-06-21  Bruno Haible  <bruno@clisp.org>
13280
13281         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13282         work.
13283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13284         together with LIB${NAME}, LTLIB${NAME}.
13285         Reported by Sam Steingold <sds@gnu.org>.
13286
13287 2009-06-20  Jim Meyering  <meyering@redhat.com>
13288
13289         tests: make sc_require_test_exit_idiom more generic
13290         * top/maint.mk (Exit_witness_file): New overridable variable.
13291         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13292         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13293
13294 2009-06-19  Jim Meyering  <meyering@redhat.com>
13295
13296         hash: reverse order of src/dst parameters in an internal interface
13297         * lib/hash.c (transfer_entries): Reverse order of parameters to
13298         put DST before SRC.  Adjust callers.
13299
13300         tests: test-hash: avoid wholesale duplication
13301         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13302         Instead, use a loop and add a single conditional.
13303
13304         tests: test-hash: allow seed selection via a command line argument
13305         * tests/test-hash.c (get_seed): New function.
13306         (main): Use it.
13307
13308 2009-06-19  Eric Blake  <ebb9@byu.net>
13309
13310         hash: avoid memory leak on allocation failure
13311         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13312         failure.  Factor repeated algorithm...
13313         (transfer_entries): ...into new helper routine.
13314         (hash_delete): React to hash_rehash return value.
13315
13316         hash: reduce memory pressure in hash_rehash no-op case
13317         * lib/hash.c (next_prime): Avoid overflow.
13318         (hash_initialize): Factor bucket size computation...
13319         (compute_bucket_size): ...into new helper function.
13320         (hash_rehash): Use new function and open coding to reduce memory
13321         pressure, and avoid a memory leak in USE_OBSTACK code.
13322         Reported by Jim Meyering.
13323
13324 2009-06-18  Eric Blake  <ebb9@byu.net>
13325
13326         hash: make rotation more obvious
13327         * modules/hash (Depends-on): Add bitrotate and stdint.
13328         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13329         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13330         (SIZE_MAX): Rely on headers for definition.
13331         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13332         (raw_hasher): Use rotr_sz.
13333         Suggested by Jim Meyering.
13334
13335         hash: fix memory leak in last patch
13336         * lib/hash.c (hash_rehash): Avoid memory leak.
13337
13338         hash: avoid no-op rehashing
13339         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13340
13341         hash: provide default callback functions
13342         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13343         (hash_initialize): Use them as defaults.
13344         * tests/test-hash.c (main): Test this.
13345
13346         hash: minor optimization
13347         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13348         when possible.
13349         (hash_initialize): Document this promise.
13350         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13351         * tests/test-hash.c (hash_compare_strings): Test this.
13352
13353 2009-06-18  Bruno Haible  <bruno@clisp.org>
13354
13355         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13356         going to be replaced anyway.
13357
13358 2009-06-18  Bruno Haible  <bruno@clisp.org>
13359
13360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13361         in one place.
13362         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13363         be replaced anyway.
13364
13365 2009-06-18  Eric Blake  <ebb9@byu.net>
13366
13367         hash: check for resize before insertion
13368         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13369         threshold before insertion, so that a pathological hash_rehash
13370         that fills every bucket can still trigger another rehash.
13371
13372 2009-06-18  Jim Meyering  <meyering@redhat.com>
13373
13374         hash-tests: add a loop around the small tests
13375         * tests/test-hash.c (main): Repeat small tests with selected
13376         small initial table sizes.
13377
13378 2009-06-17  Eric Blake  <ebb9@byu.net>
13379
13380         hash: minor cleanups
13381         * lib/hash.h (hash_entry): Make opaque, by moving...
13382         * lib/hash.c (hash_entry): ...here.
13383         (hash_insert): Clarify restrictions on what can be inserted.
13384         (hash_get_next): Clarify when it is safe to remove an element
13385         during traversal.
13386         (check_tuning): Skip verification when tuning is known safe.
13387         (hash_initialize): Clarify restrictions on tuning.
13388
13389 2009-06-17  Jim Meyering  <jim@meyering.net>
13390         and Eric Blake  <ebb9@byu.net>
13391
13392         hash-tests: new module
13393         * modules/hash-tests: New file.
13394         * tests/test-hash.c: New file.
13395
13396 2009-06-17  Eric Blake  <ebb9@byu.net>
13397
13398         strstr-simple: document new module
13399         * MODULES.html.sh: Document new module.
13400
13401         strstr, strcasestr: replace on platforms with broken memchr
13402         * modules/strstr: Split into...
13403         * modules/strstr-simple: ...new module that does not care about
13404         performance, but does care about glibc bug.
13405         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13406         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13407         if platform memchr is broken, per Debian bug 521737.
13408         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13409         memchr.
13410         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13411         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13412         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13413         * modules/mountlist (Depends-on): Add strstr-simple.
13414         * modules/gen-uni-tables (Depends-on): Likewise.
13415         * modules/argz (Depends-on): Add strstr.
13416
13417 2009-06-17  Bruno Haible  <bruno@clisp.org>
13418
13419         * modules/posix_spawn-internal (Depends-on): Add errno.
13420
13421 2009-06-17  Bruno Haible  <bruno@clisp.org>
13422
13423         Define missing ESTALE on Interix 3.5.
13424         * lib/errno.in.h (ESTALE): Assign a value if missing.
13425         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13427         missing.
13428         * doc/posix-headers/errno.texi: Mention the Interix bug.
13429         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13430
13431 2009-06-15  Eric Blake  <ebb9@byu.net>
13432
13433         memchr, memchr2: add valgrind exception
13434         * lib/memchr.valgrind: New file.
13435         * lib/memchr2.valgrind: New file.
13436         * modules/memchr (Files): Distribute valgrind file.
13437         * modules/memchr2 (Files): Likewise.
13438
13439         docs: memchr is no longer obsolete
13440         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13441         * lib/string.in.h (memchr): Simplify logic.
13442
13443 2009-06-14  Jim Meyering  <meyering@redhat.com>
13444
13445         link-follow: fix the "checking..." message to not mention trailing slash
13446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13447         never considered trailing slashes.
13448
13449 2009-06-14  Bruno Haible  <bruno@clisp.org>
13450
13451         * m4/memchr.m4: Mention also the bug on IA-64.
13452         * doc/posix-functions/memchr.texi: Likewise.
13453
13454 2009-06-12  Eric Blake  <ebb9@byu.net>
13455
13456         memchr: detect broken x86_64 and alpha implementations
13457         * modules/memchr-tests (Depends-on): Move mmap detection...
13458         * modules/memchr (Depends-on): ...here.
13459         (configure.ac): Set indicator.
13460         * lib/string.in.h (memchr): Declare replacement.
13461         * modules/string (Makefile.am): Trigger replacement.
13462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13463         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13464         bugs.
13465         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13466         * modules/getpagesize (License): Relax license.
13467
13468 2009-06-11  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/idpriv.h: Add more references.
13471
13472 2009-06-08  Bruno Haible  <bruno@clisp.org>
13473
13474         Tests for module 'idpriv-droptemp'.
13475         * modules/idpriv-droptemp-tests: New file.
13476         * tests/test-idpriv-droptemp.sh: New file.
13477         * tests/test-idpriv-droptemp.su.sh: New file.
13478         * tests/test-idpriv-droptemp.c: New file.
13479
13480         New module 'idpriv-droptemp'.
13481         * lib/idpriv-droptemp.c: New file.
13482         * modules/idpriv-droptemp: New file.
13483
13484 2009-06-08  Bruno Haible  <bruno@clisp.org>
13485
13486         Tests for module 'idpriv-drop'.
13487         * modules/idpriv-drop-tests: New file.
13488         * tests/test-idpriv-drop.sh: New file.
13489         * tests/test-idpriv-drop.su.sh: New file.
13490         * tests/test-idpriv-drop.c: New file.
13491
13492         New module 'idpriv-drop'.
13493         * lib/idpriv.h: New file.
13494         * lib-idpriv-drop.c: New file.
13495         * m4/idpriv.m4: New file.
13496         * modules/idpriv-drop: New file.
13497
13498 2009-06-08  Bruno Haible  <bruno@clisp.org>
13499
13500         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13501         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13503         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13504         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13506         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13507
13508 2009-06-08  Eric Blake  <ebb9@byu.net>
13509
13510         test-strstr: use memory fence, when possible
13511         * tests/test-strstr.c (main): Use memory fence, in order to be
13512         more likely to trigger Debian bug 521737.
13513         * modules/strstr-tests (Files): Pull in additional files.
13514
13515         memchr: no longer obsolete, for wider field testing
13516         * modules/memchr (Status, Notice): Delete, this module is no
13517         longer obsolete.
13518         * modules/vasnprintf (Depends-on): Add memchr.
13519
13520 2009-06-07  Jim Meyering  <meyering@redhat.com>
13521
13522         hash: declare some functions with the warn_unused_result attribute
13523         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13524
13525 2009-06-07  Bruno Haible  <bruno@clisp.org>
13526
13527         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13528         Reported by Eric Blake.
13529
13530 2009-06-06  Eric Blake  <ebb9@byu.net>
13531
13532         test-alignof: fix typo with long double
13533         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13534         compiler error.
13535
13536 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13537
13538         Escape non-texinfo { and }s.
13539         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13540         markup error.
13541
13542 2009-06-04  Jim Meyering  <meyering@redhat.com>
13543
13544         gitlog-to-changelog: don't infloop on an empty commit log
13545         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13546         Reported by Boris Petersen <transacid@centerim.org>.
13547
13548 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13549
13550         version-etc: extend for packagers
13551         Add three new configure options, intended for packagers:
13552           --with-packager="packager name"
13553           --with-packager-version="packager-specific version"
13554           --with-packager-bug-reports="packager bug reporting"
13555         An example with coreutils:
13556           $ ./configure \
13557             --with-packager=Gentoo \
13558             --with-packager-bug-report=http://bugs.gentoo.org/ \
13559             --with-packager-version="patchset 1.6"
13560           $ ./src/ls --version | head -n2
13561           ls (GNU coreutils) 7.1-dirty
13562           Packaged by Gentoo (patchset 1.6)
13563         Note that the bug reporting info via --help doesn't show up because
13564         coreutils uses its own custom emit_bug_reporting_address() implementation
13565         in src/system.h.  If it didn't, it'd look like:
13566           $ ./src/ls --help | tail -n4
13567           Report bugs to <bug-coreutils@gnu.org>.
13568           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13569           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13570           General help using GNU software: <http://www.gnu.org/gethelp/>.
13571         * lib/version-etc.c: Print new information, if provided.
13572         * m4/version-etc.m4: New file.
13573         * modules/version-etc (Files): Add m4/version-etc.m4.
13574         (configure.ac): Add gl_VERSION_ETC.
13575
13576 2009-05-31  Bruno Haible  <bruno@clisp.org>
13577
13578         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13579         and 'int64_t'.
13580         * modules/alignof-tests (Dependencies): Add stdint.
13581         Reported by Eric Blake.
13582
13583 2009-05-31  Bruno Haible  <bruno@clisp.org>
13584
13585         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13586         restriction due to compiler bugs.
13587         Reported by Eric Blake.
13588
13589 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13590             Bruno Haible  <bruno@clisp.org>
13591
13592         Fix test-alignof failure.
13593         * lib/alignof.h (alignof_slot): New macro.
13594         (alignof_type): New macro, with the same semantics as the previous
13595         'alignof'.
13596         (alignof): Alias to alignof_slot.
13597         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13598         check that the results are usable as constant expressions.
13599
13600 2009-05-31  Bruno Haible  <bruno@clisp.org>
13601
13602         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13603         * tests/test-memchr.c (main): Check that memchr does not read past the
13604         first occurrence of the byte.
13605         * tests/test-strstr.c (main): Update comment.
13606         Suggested by Eric Blake.
13607
13608 2009-05-30  Bruno Haible  <bruno@clisp.org>
13609
13610         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13611         detail how to use dumpbin.
13612         Reported by David Byron <dbyron@dbyron.com>.
13613
13614 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13615
13616         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13617
13618 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13619
13620         * m4/manywarnings.m4: Add GCC 4.4 warnings.
13621
13622 2009-05-28  Bruno Haible  <bruno@clisp.org>
13623
13624         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
13625         build-aux/ files.
13626
13627 2009-05-28  Simon Josefsson  <simon@josefsson.org>
13628
13629         * gnulib-tool (func_import): Transform license on build-aux/ files too.
13630
13631 2009-05-27  Simon Josefsson  <simon@josefsson.org>
13632
13633         * gnulib-tool (sed_transform_main_lib_file)
13634         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
13635         regexps.
13636
13637 2009-05-26  Simon Josefsson  <simon@josefsson.org>
13638
13639         * tests/test-strstr.c: Add another self-test.
13640         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
13641         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
13642
13643 2009-05-23  Bruno Haible  <bruno@clisp.org>
13644
13645         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
13646         change.
13647
13648 2009-05-21  Bruno Haible  <bruno@clisp.org>
13649
13650         Simplify use of mode_t varargs.
13651         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
13652         uses 'mode_t' or 'int'.
13653         * lib/openat.c (openat): Likewise.
13654         * lib/open-safer.c (open_safer): Likewise.
13655         * m4/mode_t.m4: New file.
13656         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
13657         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
13658         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
13659         * modules/open (Files): Add m4/mode_t.m4.
13660         * modules/openat (Files): Likewise.
13661         * modules/fcntl-safer (Files): Likewise.
13662         Suggested by Eric Blake.
13663
13664 2009-05-21  Pádraig Brady  <P@draigbrady.com>
13665
13666         * doc/glibc-functions/fallocate.texi: New file.
13667         * doc/gnulib.texi: Include it.
13668
13669 2009-05-21  Eric Blake  <ebb9@byu.net>
13670             Bruno Haible  <bruno@clisp.org>
13671
13672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
13673         invocations.
13674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13675
13676 2009-05-21  Eric Blake  <ebb9@byu.net>
13677             Bruno Haible  <bruno@clisp.org>
13678
13679         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
13680         include_next. Fix of 2008-11-20 commit.
13681         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
13682         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
13683         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
13684         NEXT_MATH_H.
13685         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
13686         instead of NEXT_MATH_H.
13687
13688 2009-05-21  Bruno Haible  <bruno@clisp.org>
13689
13690         Avoid redefinition warnings for SIZE_MAX.
13691         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
13692         Reported by Simon Josefsson.
13693
13694 2009-05-21  Bruno Haible  <bruno@clisp.org>
13695
13696         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
13697         AC_CACHE_VAL.
13698
13699 2009-05-20  Bruno Haible  <bruno@clisp.org>
13700
13701         Make zeroptr.h work on mingw.
13702         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
13703         mprotect.
13704         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
13705         * modules/memchr2-tests (configure.ac): Likewise.
13706         * modules/memcmp-tests (configure.ac): Likewise.
13707         * modules/memmem-tests (configure.ac): Likewise.
13708         * modules/memrchr-tests (configure.ac): Likewise.
13709         Reported by Simon Josefsson.
13710
13711 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13712
13713         * tests/test-glob.c: Include string.h for strcmp prototype.
13714
13715 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13716
13717         * modules/getdelim (Depends-on): Add explicit stdint, although it
13718         was implicitly already pulled in via realloc-posix.
13719         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
13720
13721 2009-05-20  Simon Josefsson  <simon@josefsson.org>
13722
13723         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
13724         G. Christensen" <tgc@jupiterrise.com>.
13725         * m4/sys_socket_h.m4: Check for sa_family_t.
13726         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
13727         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
13728         * tests/test-sys_socket.c: Check that sa_family_t works.
13729
13730 2009-05-18  Eric Blake  <ebb9@byu.net>
13731
13732         maint.mk: allow gnulib_dir in VPATH build
13733         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
13734
13735 2009-05-15  Jim Meyering  <meyering@redhat.com>
13736
13737         maint.mk: Give gnulib_dir a default definition.
13738         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
13739         Thus, most packages no longer need to specify this variable in cfg.mk
13740
13741 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
13742
13743         rename.m4: fix typos that would make non-mingw cross-configure fail
13744         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
13745
13746 2009-05-13  Eric Blake  <ebb9@byu.net>
13747
13748         mmap-anon: avoid out-of-order autoconf expansion
13749         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
13750         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
13751         * modules/memchr-tests (Depends-on): Add extensions.
13752         * modules/memchr2-tests (Depends-on): Add extensions.
13753         * modules/memcmp-tests (Depends-on): Add extensions.
13754         * modules/memmem-tests (Depends-on): Add extensions.
13755         * modules/memrchr-tests (Depends-on): Add extensions.
13756
13757 2009-05-13  Bruno Haible  <bruno@clisp.org>
13758
13759         Make some tests ISO C 99 compliant.
13760         * tests/zerosize-ptr.h: New file.
13761         * tests/test-memchr.c: Include zerosize-ptr.h.
13762         (main): Use a zero-size object pointer instead of NULL.
13763         * tests/test-memchr2.c: Include zerosize-ptr.h.
13764         (main): Use a zero-size object pointer instead of NULL.
13765         * tests/test-memcmp.c: Include zerosize-ptr.h.
13766         (main): Use a zero-size object pointer instead of NULL.
13767         * tests/test-memmem.c: Include zerosize-ptr.h.
13768         (main): Use a zero-size object pointer instead of NULL.
13769         * tests/test-memrchr.c: Include zerosize-ptr.h.
13770         (main): Use a zero-size object pointer instead of NULL.
13771         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
13772         m4/mmap-anon.m4.
13773         (Depends-on): Add getpagesize.
13774         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13775         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
13776         m4/mmap-anon.m4.
13777         (Depends-on): Add getpagesize.
13778         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13779         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
13780         m4/mmap-anon.m4.
13781         (Depends-on): Add getpagesize.
13782         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13783         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
13784         m4/mmap-anon.m4.
13785         (Depends-on): Add getpagesize.
13786         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13787         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
13788         m4/mmap-anon.m4.
13789         (Depends-on): Add getpagesize.
13790         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
13791
13792 2009-05-12  Bruno Haible  <bruno@clisp.org>
13793
13794         Tests for module 'alignof'.
13795         * modules/alignof-tests: New file.
13796         * tests/test-alignof.c: New file.
13797
13798 2009-05-12  Bruno Haible  <bruno@clisp.org>
13799
13800         Fix alignof macro.
13801         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
13802         vendor compilers that are always correct.
13803
13804 2009-05-12  Bruno Haible  <bruno@clisp.org>
13805
13806         Make the MAP_ANONYMOUS detection work on HP-UX 11.
13807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
13808         not whether its fully works.
13809
13810 2009-05-12  Bruno Haible  <bruno@clisp.org>
13811
13812         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
13813
13814 2009-05-12  Jim Meyering  <meyering@redhat.com>
13815
13816         * top/maint.mk: Adjust backslash alignment.
13817
13818 2009-05-11  Simon Josefsson  <simon@josefsson.org>
13819
13820         * top/maint.mk: Make $(srcdir)/build-aux configurable.
13821
13822 2009-05-11  Eric Blake  <ebb9@byu.net>
13823
13824         argp: avoid undefined behavior
13825         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
13826         macros.
13827
13828 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13829
13830         * tests/test-vc-list-files-git.sh: Do git config of user.email and
13831         user.name to prevent git commit from complaining.
13832
13833 2009-05-10  Bruno Haible  <bruno@clisp.org>
13834
13835         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
13836         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
13837         it rewrites every file name only once.
13838         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
13839
13840 2009-05-08  Bruno Haible  <bruno@clisp.org>
13841
13842         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
13843         instead of 'max'.
13844
13845 2009-05-08  Simon Josefsson  <simon@josefsson.org>
13846
13847         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
13848         sockaddr_storage test.
13849
13850 2009-05-07  Simon Josefsson  <simon@josefsson.org>
13851
13852         * modules/sys_socket (Makefile.am): Substitute
13853         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
13854         * m4/sys_socket_h.m4: Check for sockaddr_storage.
13855         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
13856         * tests/test-sys_socket.c: Check sockaddr_storage.
13857
13858 2009-05-08  Bruno Haible  <bruno@clisp.org>
13859
13860         New module 'alignof'.
13861         * lib/alignof.h: New file.
13862         * modules/alignof: New file.
13863
13864 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13865             Bruno Haible  <bruno@clisp.org>
13866
13867         Fix test-file-has-acl on FreeBSD.
13868         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
13869         mask is implicitly added.
13870         * tests/test-file-has-acl.c: Include <signal.h>.
13871         (main): Terminate the test after 5 seconds.
13872         * modules/acl-tests (configure.ac): Check for alarm function.
13873
13874 2009-05-04  Bruno Haible  <bruno@clisp.org>
13875
13876         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
13877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
13878         * modules/errno (configure.ac): Drop AC_REQUIRE.
13879         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
13880         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
13881
13882 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13883
13884         * modules/glob-tests: New module.
13885         * tests/test-glob.c: Add.
13886
13887 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13888
13889         * modules/fnmatch-tests: New module.
13890         * tests/test-fnmatch.c: Add.
13891
13892 2009-05-04  Eric Blake  <ebb9@byu.net>
13893
13894         maint: make the new no-submodule-changes rule VPATH-safe
13895         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
13896
13897 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13898             Bruno Haible  <bruno@clisp.org>
13899
13900         acl: Fix infinite loop on FreeBSD.
13901         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
13902         of return value from acl_get_entry.
13903         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
13904         Likewise.
13905
13906 2009-05-03  Bruno Haible  <bruno@clisp.org>
13907
13908         * lib/acl-internal.h (acl_entries): Clarify return value.
13909         * lib/acl_entries.c (acl_entries): Likewise.
13910
13911 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13912
13913         Bug fix in acl module.
13914         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
13915
13916 2009-05-03  Bruno Haible  <bruno@clisp.org>
13917
13918         Create gperf-generated file in the source dir, not in the build dir.
13919         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
13920         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
13921         * modules/unicase/locale-language (unicase/locale-languages.h):
13922         Likewise.
13923         * modules/unicase/special-casing (unicase/special-casing-table.h):
13924         Likewise.
13925         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
13926         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
13927         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
13928         Reported by Ralf Wildenhues.
13929
13930 2009-05-03  Bruno Haible  <bruno@clisp.org>
13931
13932         * modules/fnmatch (Description, configure.ac): Taken from
13933         fnmatch-posix.
13934         * modules/fnmatch-posix: Turn into a symbolic reference to the
13935         'fnmatch' module, and deprecate.
13936         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
13937
13938 2009-05-03  Bruno Haible  <bruno@clisp.org>
13939
13940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
13941         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
13942         Reported by Ralf Wildenhues.
13943
13944 2009-05-04  Simon Josefsson  <simon@josefsson.org>
13945
13946         * m4/fnmatch.m4: Fix fnmatch re-define.
13947
13948 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
13949
13950         priv-set: new module and tests; adapt write-any-file
13951         * lib/priv-set.c: New file.
13952         * lib/priv-set.h: New file.
13953         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
13954         * lib/write-any-file.c: Simplify by using priv-set module.
13955         * m4/priv-set.m4: New file.
13956         * modules/priv-set: New file.
13957         * modules/unlinkdir: Add dependency on priv-set module.
13958         * modules/write-any-file: Likewise.
13959
13960         Tests for module 'priv-set'.
13961         * modules/priv-set-tests: New file.
13962         * tests/test-priv-set.c: New file.
13963
13964 2009-05-03  Jim Meyering  <meyering@redhat.com>
13965             Bruno Haible  <bruno@clisp.org>
13966
13967         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
13968         use the converted UTF-8 variant of the name instead.
13969
13970 2009-05-03  Jim Meyering  <meyering@redhat.com>
13971
13972         tests: tighten some getdate tests
13973         * tests/test-getdate.c (main): Tighten tests: require equality,
13974         not just greater than.  Set TZ envvar to UTC0.
13975
13976 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13977
13978         getdate: correctly interpret "next monday" when run on a Monday
13979         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
13980         that e.g., "next tues" (when run on a tuesday) results in a date
13981         that is one week in the future, and not today's date.
13982         I.e., add a week when the wday is the same as the current one.
13983         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
13984         and earlier by Martin Bernreuther and Jan Minář.
13985         * tests/test-getdate.c (main): Check that "next DAY" is always in
13986         the future and that "last DAY" is always in the past.
13987
13988 2009-05-02  Jim Meyering  <meyering@redhat.com>
13989
13990         build: ensure that a release build fails when a submodule is unclean
13991         * top/maint.mk (no-submodule-changes): New rule.
13992         (alpha beta major): Depend on it.
13993
13994 2009-05-02  Bruno Haible  <bruno@clisp.org>
13995
13996         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
13997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
13998         shell variable gl_fnmatch_required to detect which variant is
13999         requested.
14000         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14001         gl_FUNC_FNMATCH_POSIX.
14002         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14003         exclude fnmatch-posix.
14004
14005 2009-05-02  Bruno Haible  <bruno@clisp.org>
14006
14007         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14008         * modules/mbsrtowcs (License): Change to LGPLv2+.
14009         * modules/strnlen1 (License): Likewise.
14010         Reported by Simon Josefsson.
14011
14012 2009-05-02  Bruno Haible  <bruno@clisp.org>
14013
14014         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14015         "cross".
14016         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14017         gnulib-tool was called with option --source-base=lib.
14018
14019 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14020
14021         Use automake *-local hooks without commands, for extensibility.
14022         * modules/localcharset (Makefile.am): Rename install-exec-local
14023         rule to install-exec-localcharset, and make it a prerequisite of
14024         install-exec-local.  Likewise, rename the uninstall-local rule to
14025         uninstall-localcharset, and make it a prerequisite of the former.
14026
14027 2009-05-01  Bruno Haible  <bruno@clisp.org>
14028
14029         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14030         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14031         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14033         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14034         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14035         m4/locale-zh.m4, m4/codeset.m4.
14036
14037         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14038         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14039         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14040         m4/locale-zh.m4.
14041
14042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14043         REPLACE_WCRTOMB if mbstate_t must be replaced.
14044         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14045         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14046
14047 2009-05-01  Bruno Haible  <bruno@clisp.org>
14048
14049         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14050         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14051         dngettext, dcngettext, textdomain, bindtextdomain,
14052         bind_textdomain_codeset): Undefine before redefining.
14053
14054 2009-04-30  Bruno Haible  <bruno@clisp.org>
14055
14056         Fix bug introduced on 2009-04-25.
14057         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14058         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14059         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14060         is defined.
14061         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14062         is defined.
14063         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14064         is defined.
14065         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14066
14067 2009-04-28  Bruno Haible  <bruno@clisp.org>
14068
14069         Comment tweaks.
14070         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14071         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14072         * lib/unicase.h (u*_casexfrm): Likewise.
14073         Reported by Paolo Bonzini.
14074
14075 2009-04-28  Bruno Haible  <bruno@clisp.org>
14076
14077         Fix a compilation error.
14078         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14079         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14080         Reported by Jim Meyering.
14081
14082 2009-04-27  Bruno Haible  <bruno@clisp.org>
14083
14084         New module 'libunistring'.
14085         * modules/libunistring: New file.
14086         * m4/libunistring.m4: New file.
14087         * MODULES.html.sh (Unicode string functions): Add it.
14088
14089 2009-04-27  Eric Blake  <ebb9@byu.net>
14090
14091         maint.mk: allow package-specific header to provide <config.h>
14092         * top/maint.mk (sc_require_config_h): New variable.
14093         (sc_require_config_h, sc_require_config_h_first): Use it.
14094
14095 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14096
14097         * top/maint.mk (sc_avoid_if_before_free): Except
14098         useless-if-before-free script.
14099
14100 2009-04-27  Eric Blake  <ebb9@byu.net>
14101
14102         maintainer-makefile: depend on all required helper scripts
14103         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14104         useless-if-before-free.
14105         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14106         version, rather than assuming gnulib checkout is available.
14107         Reported by Simen Josefsson.
14108
14109 2009-04-26  Bruno Haible  <bruno@clisp.org>
14110
14111         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14112         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14113         "../" or "..".
14114
14115 2009-04-26  Bruno Haible  <bruno@clisp.org>
14116
14117         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14118         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14119         AC_LIB_HAVE_LINKFLAGS.
14120
14121 2009-04-26  Bruno Haible  <bruno@clisp.org>
14122
14123         Simplify calling convention of u*_conv_from_encoding.
14124         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14125         u32_conv_from_encoding): Expect a resultbuf argument and return the
14126         result directly as a pointer.
14127         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14128         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14129         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14130         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14131         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14132         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14133         Update.
14134         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14135         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14136         * lib/vasnprintf.c (VASNPRINTF): Update.
14137         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14138         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14139         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14140         * NEWS: Mention the change.
14141
14142 2009-04-26  Bruno Haible  <bruno@clisp.org>
14143
14144         Simplify calling convention of u*_conv_to_encoding.
14145         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14146         u32_conv_to_encoding): Expect a resultbuf argument and return the
14147         result directly as a pointer.
14148         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14149         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14150         freeing scaled_offsets if mem_iconveha failed.
14151         * lib/unicase/u-casexfrm.h (FUNC): Update.
14152         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14153         * lib/vasnprintf.c (VASNPRINTF): Update.
14154         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14155         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14156         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14157         * NEWS: Mention the change.
14158
14159 2009-04-26  Bruno Haible  <bruno@clisp.org>
14160
14161         Avoid test failures on AIX and OSF/1.
14162         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14163         malloc(0).
14164         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14165         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14166         Likewise.
14167         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14168         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14169         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14170         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14171         * doc/posix-functions/malloc.texi: Document the portability problem
14172         related to malloc(0).
14173
14174 2009-04-26  Bruno Haible  <bruno@clisp.org>
14175
14176         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14177         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14178         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14179
14180 2009-04-25  Bruno Haible  <bruno@clisp.org>
14181
14182         Avoid link error when creating a namespace clean library.
14183         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14184         as macro with arguments if already defined as an alias.
14185         * lib/signbitf.c (gl_signbitf): Don't undefine.
14186         * lib/signbitd.c (gl_signbitd): Don't undefine.
14187         * lib/signbitl.c (gl_signbitl): Don't undefine.
14188
14189 2009-04-25  Jim Meyering  <meyering@redhat.com>
14190
14191         vc-list-files: fix another quoting bug
14192         * build-aux/vc-list-files: Avoid sed backslash expansion
14193         of pathological directory names.
14194
14195 2009-04-25  Eric Blake  <ebb9@byu.net>
14196
14197         vc-list-files: fix shell quoting error
14198         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14199         timestamp.
14200
14201 2009-04-25  Jim Meyering  <meyering@redhat.com>
14202
14203         vc-list-files: restore lost functionality with subdir argument
14204         * build-aux/vc-list-files: When given a non-"." sub-directory
14205         argument, substitute the $dir/ prefix back onto each resulting name.
14206         Otherwise, coreutils' root_tests check would fail.
14207
14208 2009-04-24  Eric Blake  <ebb9@byu.net>
14209
14210         vc-list-files: ignore git symlinks
14211         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14212         than ls-files, to ignore git symlinks.
14213
14214         maint.mk: import improvements from m4
14215         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14216         (move_if_change): Delete unused macro.
14217         (news-date-check, vc-diff-check): Support VPATH builds.
14218         (announcement): Likewise.  Split --bootstrap-tools list...
14219         (boostrap-tools): ...into separate list, which can be overridden
14220         in cfg.mk.
14221         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14222         requiring dependency on useless-if-before-free module.
14223         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14224         Support VPATH builds.
14225
14226 2009-04-24  Jim Meyering  <meyering@redhat.com>
14227
14228         maint.mk: remove coreutils-specific rules and variables
14229         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14230         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14231         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14232
14233         maint.mk: remove obsolete rule
14234         * top/maint.mk (rel-check): Remove rule.
14235         (WGET, WGETFLAGS): Remove now-unused variables.
14236
14237 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14238
14239         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14240         consistency.
14241
14242         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14243         '$(PATH_SEPARATOR)' instead of ':'.
14244
14245 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14246
14247         * lib/getopt1.c (main): Use 'const' for static array.
14248
14249 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14250
14251         * top/maint.mk: Sync with coreutils.
14252         * NEWS: Explain incompatibilities.
14253
14254 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14255             Bruno Haible  <bruno@clisp.org>
14256
14257         Fix cross-compilation results.
14258         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14259         statement, as third argument of AC_TRY_RUN.
14260         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14261         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14262         Likewise.
14263         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14264         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14265         Likewise.
14266         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14267         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14268         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14269
14270 2009-04-20  Bruno Haible  <bruno@clisp.org>
14271
14272         Avoid test failure on mingw.
14273         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14274
14275 2009-04-20  Bruno Haible  <bruno@clisp.org>
14276
14277         Avoid compilation error on mingw.
14278         * modules/localename-tests (Depends-on): Add locale.
14279
14280 2009-04-19  Bruno Haible  <bruno@clisp.org>
14281
14282         Support for building a shared library on Windows platforms.
14283         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14284         (main): Test the presence of UNINORM_NFC here.
14285         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14286         (main): Test the presence of UNINORM_NFD here.
14287         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14288         (main): Test the presence of UNINORM_NFKC here.
14289         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14290         (main): Test the presence of UNINORM_NFKD here.
14291
14292 2009-04-19  Bruno Haible  <bruno@clisp.org>
14293
14294         Avoid a compiler warning.
14295         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14296         Change type of variable 'sequence'.
14297
14298 2009-04-19  Bruno Haible  <bruno@clisp.org>
14299
14300         * modules/configmake (Makefile.am): When the contents of configmake.h
14301         does not change, arrange to preserve its modification time.
14302
14303 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14304
14305         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14306         gettext domain.
14307
14308 2009-04-16  Jim Meyering  <meyering@redhat.com>
14309
14310         useless-if-before-free: improve conversion code
14311         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14312         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14313
14314 2009-04-14  Bruno Haible  <bruno@clisp.org>
14315
14316         * modules/fcntl (Depends-on): Add extensions.
14317         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14318
14319 2009-04-12  Ben Pfaff  <blp@gnu.org>
14320
14321         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14322         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14323
14324 2009-03-20  Ben Pfaff  <blp@gnu.org>
14325
14326         Make rename replace existing destinations on Windows.
14327         * m4/rename.m4: Add test for Mingw.
14328         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14329         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14330         * doc/posix-functions/rename.texi: Document.
14331
14332 2009-04-10  Bruno Haible  <bruno@clisp.org>
14333
14334         New include file "iconveh.h".
14335         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14336         * lib/striconveh.h: Include it.
14337         (enum iconv_ilseq_handler): Remove definition.
14338         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14339         striconveh.h.
14340         * lib/striconveha.c: Include striconveh.h.
14341         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14342         * modules/striconveh (Files): Add lib/iconveh.h.
14343         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14344         lib/striconveh.h.
14345
14346 2009-04-10  Bruno Haible  <bruno@clisp.org>
14347
14348         * lib/uniconv.h: Update comment.
14349
14350 2009-04-10  Bruno Haible  <bruno@clisp.org>
14351
14352         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14353         always.
14354         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14355         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14356         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14357         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14358         "unistring-notinline.h", so that the function gets defined always.
14359         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14360         * lib/unistr/u8-uctomb.c: Likewise.
14361         * lib/unistr/u16-mbtouc.c: Likewise.
14362         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14363         * lib/unistr/u16-uctomb.c: Likewise.
14364         * lib/unistr/u32-mbtouc.c: Likewise.
14365         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14366         * lib/unistr/u32-uctomb.c: Likewise.
14367
14368 2009-04-10  Bruno Haible  <bruno@clisp.org>
14369
14370         Mark 'utime' obsolete.
14371         * modules/utime (Status, Notice): New sections.
14372         Suggested by Jim Meyering.
14373
14374         Fix cross-compile guess for utime test.
14375         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14376         autoconf.
14377         * doc/posix-functions/utime.texi: Give more precisions.
14378         Reported by Jan <ipif@ymail.com>.
14379
14380 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14381
14382         filevercmp: correct today's change
14383         * lib/filevercmp.c: Also handle coreutils' test inputs.
14384         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14385
14386         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14387         for reporting it.
14388         * lib/filevercmp.c: Special handle for "", "." and "..".
14389         * tests/test-filevercmp.c: Enlarge the set suite.
14390
14391 2009-04-07  Jim Meyering  <meyering@redhat.com>
14392
14393         useless-if-before-free: show how to remove braced useless free, too
14394         * build-aux/useless-if-before-free: still only in a comment, though.
14395
14396 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14397
14398         maint.mk: import changes to syntax-check macros from coreutils
14399         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14400         Use them in the relevant macros.
14401
14402 2009-04-06  Bruno Haible  <bruno@clisp.org>
14403
14404         Fix unportable use of bit-fields.
14405         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14406         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14407         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14408
14409 2009-04-06  Bruno Haible  <bruno@clisp.org>
14410
14411         Avoid test failures on AIX and OSF/1.
14412         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14413         that malloc(0) = NULL.
14414         * tests/unicase/test-u8-tolower.c (check): Likewise.
14415         * tests/unicase/test-u8-totitle.c (check): Likewise.
14416         * tests/unicase/test-u8-toupper.c (check): Likewise.
14417         * tests/unicase/test-u16-casefold.c (check): Likewise.
14418         * tests/unicase/test-u16-tolower.c (check): Likewise.
14419         * tests/unicase/test-u16-totitle.c (check): Likewise.
14420         * tests/unicase/test-u16-toupper.c (check): Likewise.
14421         * tests/unicase/test-u32-casefold.c (check): Likewise.
14422         * tests/unicase/test-u32-tolower.c (check): Likewise.
14423         * tests/unicase/test-u32-totitle.c (check): Likewise.
14424         * tests/unicase/test-u32-toupper.c (check): Likewise.
14425         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14426         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14427         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14428         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14429         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14430         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14431         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14432         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14433         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14434         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14435         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14436         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14437
14438 2009-04-05  Bruno Haible  <bruno@clisp.org>
14439
14440         Work around an autoconf limitation.
14441         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14442         comment line if it would be longer than 3 KB.
14443
14444 2009-04-05  Bruno Haible  <bruno@clisp.org>
14445
14446         Avoid test failure with libiconv-1.13.
14447         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14448         of the expected test results.
14449
14450 2009-04-05  Bruno Haible  <bruno@clisp.org>
14451
14452         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14453         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14454         that it should be installed.
14455
14456 2009-04-05  Bruno Haible  <bruno@clisp.org>
14457
14458         * gnulib-tool: New option --copy-file.
14459         (func_usage): Document it.
14460         (func_dest_tmpfilename): Moved out of func_import.
14461         (func_add_file, func_update_file): New functions, extracted from
14462         func_import.
14463         (func_import): Update.
14464
14465 2009-04-05  Karl Berry  <karl@gnu.org>
14466
14467         * README: prominently mention gnulib-tool.
14468         Rearrange sections so getting the code is near the top.
14469
14470 2009-04-05  Bruno Haible  <bruno@clisp.org>
14471
14472         * lib/unicase.h: Mention u*_cmp2.
14473         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14474         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14475         * lib/unicase/ulc-casecmp.c: Likewise.
14476         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14477         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14478         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14479         unistr/u8-cmp.
14480         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14481         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14482         unistr/u16-cmp.
14483         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14484         unistr/u32-cmp.
14485
14486         * lib/uninorm.h: Mention u*_cmp2.
14487         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14488         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14489         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14490         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14491         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14492         unistr/u8-cmp.
14493         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14494         unistr/u16-cmp.
14495         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14496         unistr/u32-cmp.
14497
14498         New module 'unistr/u32-cmp2'.
14499         * lib/unistr/u32-cmp2.c: New file.
14500         * modules/unistr/u32-cmp2: New file.
14501
14502         New module 'unistr/u16-cmp2'.
14503         * lib/unistr/u16-cmp2.c: New file.
14504         * modules/unistr/u16-cmp2: New file.
14505
14506         New module 'unistr/u8-cmp2'.
14507         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14508         * lib/unistr/u8-cmp2.c: New file.
14509         * lib/unistr/u-cmp2.h: New file.
14510         * modules/unistr/u8-cmp2: New file.
14511
14512 2009-04-05  Bruno Haible  <bruno@clisp.org>
14513
14514         * lib/unictype.h (uc_property_is_valid): New macro.
14515         * tests/unictype/test-pr_byname.c (main): Use it.
14516
14517         * lib/unistr.h: Doc fixes.
14518         * lib/uniconv.h: Doc fixes.
14519         * lib/unictype.h: Doc fixes.
14520
14521 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14522
14523         Port coreutils 7.2 to Solaris 8.
14524
14525         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14526         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14527         for Solaris 8.  This is a bit of a hack, as it means it's the
14528         caller's responsibility to add -lnsl if needed, but most likely it
14529         won't be needed since only getaddrinfo uses this and getaddrinfo
14530         isn't needed on Solaris 8.
14531
14532         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14533         problem to Solaris 8 encountered with coreutils 7.2, which
14534         resulted in a message "fnmatch.c:292: warning: passing argument 4
14535         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14536         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14537
14538 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14539
14540         * m4/ld-version-script.m4: Add FIXME comment.
14541
14542 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14543
14544         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14545         SOVERSION variable.
14546
14547 2009-04-02  Bruno Haible  <bruno@clisp.org>
14548
14549         * Makefile (info, html, dvi, pdf): Combine the rules.
14550         Suggested by Jim Meyering.
14551
14552 2009-04-01  Bruno Haible  <bruno@clisp.org>
14553
14554         * Makefile (info, html, dvi, pdf): New targets.
14555         Reported by Reuben Thomas <rrt@sc3d.org>.
14556
14557 2009-04-01  Bruno Haible  <bruno@clisp.org>
14558
14559         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14560         can be put into PATH.
14561         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14562
14563 2009-04-01  Bruno Haible  <bruno@clisp.org>
14564
14565         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14566
14567 2009-04-01  Bruno Haible  <bruno@clisp.org>
14568
14569         Rename module 'visibility'.
14570         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14571         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14572         * doc/gnulib.texi: Update.
14573         * MODULES.html.sh (Misc): Update.
14574         * NEWS: Mention the change.
14575
14576 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14577
14578         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14579         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14580         Eric Blake <ebb9@byu.net> for review.
14581         * MODULES.html.sh: Add lib-msvc-compat.
14582         * doc/gnulib.texi: Link to new section.
14583         * m4/ld-output-def.m4: New file.
14584         * doc/ld-output-def.texi: New file.
14585
14586 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14587
14588         Rename ld-version-script to lib-symbol-versions.  Suggested by
14589         Bruno Haible <bruno@clisp.org>.
14590         * modules/ld-version-script: Renamed to lib-symbol-versions.
14591         * doc/ld-version-script.texi: Fix module name.
14592         * MODULES.html.sh: Add lib-symbol-versions.
14593
14594 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14595
14596         * modules/u64-tests: New file.
14597         * tests/test-u64.c: New file.
14598
14599 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14600
14601         * MODULES.html.sh: Mention u64.
14602         * modules/u64: New module.
14603         * modules/crypto/sha512: Depend on u64 module instead of providing
14604         u64.h.
14605
14606 2009-03-27  Eric Blake  <ebb9@byu.net>
14607
14608         test-strerror: make debugging EAI_SYSTEM easier
14609         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14610         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14611         failure was EAI_SYSTEM.
14612
14613 2009-03-25  Bruno Haible  <bruno@clisp.org>
14614
14615         Fix a problem with --enable-relocatable on Solaris 7.
14616         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14617         since 2008-02-24.
14618
14619 2009-03-25  Eric Blake  <ebb9@byu.net>
14620
14621         test-sockets: avoid gcc warning
14622         * tests/test-sockets.c (main): Silence compiler warning.
14623
14624 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
14625
14626         New modules nproc, pthread, contributed by Glen Lenker.
14627
14628         * MODULES.html.sh: Add pthread, nproc.
14629         * lib/nproc.c: New file.
14630         * lib/nproc.h: New file.
14631         * lib/pthread.in.h: New file.
14632         * m4/pthread.m4: New file.
14633         * modules/nproc: New file.
14634         * modules/pthread: New file.
14635
14636 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14637
14638         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
14639         New variable.
14640
14641 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
14642
14643         filevercmp: handle simple~ and numbered.~3~ backup suffixes
14644         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
14645         * tests/test-filevercmp.c: Add tests for backup suffixes.
14646
14647 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14648
14649         * modules/stdlib (Depends-on): Add stdint, needed when defining
14650         struct random_data on, for example, HP-UX 10.20.  Reported by
14651         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14652
14653 2009-03-24  Simon Josefsson  <simon@josefsson.org>
14654
14655         * lib/readline.c (readline): Call fflush on stdout after printing
14656         prompt.
14657
14658 2009-03-20  Bruno Haible  <bruno@clisp.org>
14659
14660         Remove dependency from 'close' module to -lws2_32 on native Windows.
14661         * lib/close-hook.h: New file.
14662         * lib/close-hook.c: New file.
14663         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
14664         w32sock.h.
14665         (_gl_close_fd_maybe_socket): Remove function.
14666         (rpl_close): Invoke execute_all_close_hooks instead of
14667         _gl_close_fd_maybe_socket.
14668         * lib/sockets.c: Include close-hook.h, w32sock.h.
14669         (close_fd_maybe_socket): New function, essentially from lib/close.c.
14670         (close_sockets_hook): New variable.
14671         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
14672         (gl_sockets_cleanup): Unregister it.
14673         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
14674         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
14675         * modules/close-hook: New file.
14676         * modules/close (Files): Remove lib/w32sock.h.
14677         (Depends-on): Add close-hook.
14678         (Link): Remove section.
14679         * modules/sockets (Files): Add lib/w32sock.h.
14680         (Depends-on): Add close-hook.
14681         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
14682         invocation.
14683         * NEWS: Mention that LIB_CLOSE is gone.
14684
14685 2009-03-23  Eric Blake  <ebb9@byu.net>
14686
14687         signal-tests: test previous patch
14688         * tests/test-signal.c: New file.
14689         * modules/signal-tests: Likewise.
14690
14691         signal.h: always support 'volatile sig_atomic_t'
14692         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
14693         (gl_SIGNAL_H_DEFAULTS): Add a default.
14694         * modules/signal (Makefile.am): Substitute if needed.
14695         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
14696         users can blindly add volatile.
14697         * doc/posix-headers/signal.texi (signal.h): Document it.
14698         Reported by Matthew Woehlke.
14699
14700 2009-03-23  Jim Meyering  <meyering@redhat.com>
14701
14702         pathmax: PATH_MAX: use pathconf only when available
14703         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
14704         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
14705         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
14706         This avoids a link failure in a PSP cross-compilation environment
14707         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
14708
14709         * lib/vasnprintf.c (divide): Fix typo in comment.
14710
14711 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14712
14713         * gnulib-tool (func_filter_filelist): Fix comment.
14714
14715 2009-03-20  Bruno Haible  <bruno@clisp.org>
14716
14717         Make sockets.h self-contained.
14718         * lib/sockets.c: Include sockets.h first.
14719         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
14720
14721 2009-03-19  Eric Blake  <ebb9@byu.net>
14722
14723         doc: mention more functions added in cygwin 1.7.0
14724         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
14725         addition.
14726         * doc/posix-functions/log2f.texi: Likewise.
14727
14728 2009-03-19  Jim Meyering  <meyering@redhat.com>
14729
14730         fsusage: avoid syntax error due to statement-before-declaration
14731         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
14732         after all declarations.  Reported by Matthew Woehlke in
14733         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
14734
14735 2009-03-18  Eric Blake  <ebb9@byu.net>
14736
14737         build-aux/compile: sync from automake
14738         * build-aux/compile: New file, from automake.
14739         * config/srclist.txt: Mention build-aux/compile.
14740
14741 2009-03-17  Bruno Haible  <bruno@clisp.org>
14742
14743         * lib/git-merge-changelog.c: Fix typo in comment.
14744         Reported by Reuben Thomas <rrt@sc3d.org>.
14745
14746 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
14747
14748         * m4/regex.m4: update and improve help for
14749         --without-included-regex.
14750
14751 2009-03-17  Simon Josefsson  <simon@josefsson.org>
14752
14753         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
14754         failure on missing include files.
14755
14756 2009-03-17  Eric Blake  <ebb9@byu.net>
14757
14758         doc: mention more functions added in cygwin 1.7.0
14759         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
14760         addition.
14761         * doc/posix-functions/fwscanf.texi: Likewise.
14762         * doc/posix-functions/swprintf.texi: Likewise.
14763         * doc/posix-functions/swscanf.texi: Likewise.
14764         * doc/posix-functions/vfwprintf.texi: Likewise.
14765         * doc/posix-functions/vfwscanf.texi: Likewise.
14766         * doc/posix-functions/vswprintf.texi: Likewise.
14767         * doc/posix-functions/vswscanf.texi: Likewise.
14768         * doc/posix-functions/vwprintf.texi: Likewise.
14769         * doc/posix-functions/vwscanf.texi: Likewise.
14770         * doc/posix-functions/wcscasecmp.texi: Likewise.
14771         * doc/posix-functions/wcsdup.texi: Likewise.
14772         * doc/posix-functions/wcsftime.texi: Likewise.
14773         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14774         * doc/posix-functions/wprintf.texi: Likewise.
14775         * doc/posix-functions/wscanf.texi: Likewise.
14776         * doc/glibc-functions/gethostbyname2.texi: Likewise.
14777
14778 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14779
14780         maint.mk: really add $(AM_MAKEFLAGS)
14781         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
14782         was inadvertently omitted in the last commit.
14783         Spotted by Bruno Haible.
14784
14785         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
14786         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
14787         $(AM_MAKEFLAGS)' rather than plain `make'.
14788
14789         gnulib-tool: execute $MAKE not make
14790         * gnulib-tool: Default $MAKE to 'make'.
14791         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
14792         than make.  Initialize $MAKE in the do-autobuild script.
14793
14794         gnulib-tool: use $MAKE not make in generated files
14795         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
14796         make, in generated files.  Initialize $MAKE in the do-autobuild
14797         script.
14798
14799         * top/GNUmakefile (_have-git-version-gen): Fix typo.
14800
14801         GNUmakefile: disable parallelism only for multiple, recursive targets
14802         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
14803         additions in the Makefile.
14804         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
14805         by Automake.
14806         (.NOTPARALLEL): Only disable parallel builds if multiple targets
14807         are listed on the command line and at least one of them is
14808         listed in $(ALL_RECURSIVE_TARGETS).
14809
14810 2009-03-14  Bruno Haible  <bruno@clisp.org>
14811
14812         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
14813         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
14814         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
14815         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
14816         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
14817         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
14818         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
14819         unistr/u8-uctomb.
14820         * modules/unistr/u8-strchr (Depends-on): Likewise.
14821         * modules/unistr/u8-strrchr (Depends-on): Likewise.
14822         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
14823         unistr/u16-uctomb.
14824         * modules/unistr/u16-strchr (Depends-on): Likewise.
14825         * modules/unistr/u16-strrchr (Depends-on): Likewise.
14826
14827 2009-03-12  Bruno Haible  <bruno@clisp.org>
14828
14829         Work around select() bug on Interix 3.5.
14830         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
14831         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
14832         * m4/select.m4: New file.
14833         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
14834         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
14835         * modules/select (Files): Add m4/select.m4.
14836         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
14837         * modules/nanosleep (Depends-on): Add select.
14838         * modules/poll (Depends-on): Likewise.
14839         * doc/posix-functions/select.texi: Mention the Interix bug.
14840         Reported by Markus Duft <mduft@gentoo.org>.
14841
14842         * lib/select.c: Renamed from lib/winsock-select.c.
14843         * modules/select (Files): Add lib/select.c, remove
14844         lib/winsock-select.c.
14845         (configure.ac): Update.
14846
14847 2009-03-12  Jim Meyering  <meyering@redhat.com>
14848
14849         avoid gcc warnings about unused macro definitions
14850         * lib/readtokens.c (STREQ): Remove unused definition.
14851         * lib/xmalloc.c (SIZE_MAX): Likewise.
14852         * lib/openat-die.c (N_): Likewise.
14853         * lib/mountlist.c (SIZE_MAX): Remove definition.
14854         Instead, include <stdint.h>.
14855         * lib/readutmp.c: Likewise.
14856         * modules/readutmp (Depends-on): Add stdint.
14857         * modules/mountlist (Depends-on): Add stdint.
14858         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
14859
14860 2009-03-10  Bruno Haible  <bruno@clisp.org>
14861
14862         Tests for module 'mbmemcasecoll'.
14863         * modules/mbmemcasecoll-tests: New file.
14864         * tests/test-mbmemcasecoll1.sh: New file.
14865         * tests/test-mbmemcasecoll2.sh: New file.
14866         * tests/test-mbmemcasecoll3.sh: New file.
14867         * tests/test-mbmemcasecoll.c: New file.
14868
14869         New module 'mbmemcasecoll'.
14870         * lib/mbmemcasecoll.h: New file.
14871         * lib/mbmemcasecoll.c: New file.
14872         * modules/mbmemcasecoll: New file.
14873
14874         * tests/test-mbmemcasecmp.h: New file, extracted from
14875         tests/test-mbmemcasecmp.c.
14876         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
14877         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
14878         (main): Update.
14879         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
14880
14881 2009-03-09  Bruno Haible  <bruno@clisp.org>
14882
14883         Tests for module 'mbmemcasecmp'.
14884         * modules/mbmemcasecmp-tests: New file.
14885         * tests/test-mbmemcasecmp1.sh: New file.
14886         * tests/test-mbmemcasecmp2.sh: New file.
14887         * tests/test-mbmemcasecmp3.sh: New file.
14888         * tests/test-mbmemcasecmp.c: New file.
14889
14890         New module 'mbmemcasecmp'.
14891         * lib/mbmemcasecmp.h: New file.
14892         * lib/mbmemcasecmp.c: New file.
14893         * modules/mbmemcasecmp: New file.
14894
14895 2009-03-09  Bruno Haible  <bruno@clisp.org>
14896
14897         Tests for module 'unicase/ulc-casecoll'.
14898         * modules/unicase/ulc-casecoll-tests: New file.
14899         * tests/unicase/test-ulc-casecoll1.sh: New file.
14900         * tests/unicase/test-ulc-casecoll2.sh: New file.
14901         * tests/unicase/test-ulc-casecoll.c: New file.
14902
14903         New module 'unicase/ulc-casecoll'.
14904         * lib/unicase.h (ulc_casecoll): New declaration.
14905         * lib/unicase/ulc-casecoll.c: New file.
14906         * modules/unicase/ulc-casecoll: New file.
14907
14908         New module 'unicase/ulc-casexfrm'.
14909         * lib/unicase.h (ulc_casexfrm): New declaration.
14910         * lib/unicase/ulc-casexfrm.c: New file.
14911         * modules/unicase/ulc-casexfrm: New file.
14912
14913 2009-03-09  Bruno Haible  <bruno@clisp.org>
14914
14915         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
14916         invocations.
14917
14918         * m4/mbscasecmp.m4: Remove file.
14919         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
14920         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
14921
14922         * m4/mbscasestr.m4: Remove file.
14923         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
14924         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
14925
14926         * m4/mbschr.m4: Remove file.
14927         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
14928         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
14929
14930         * m4/mbscspn.m4: Remove file.
14931         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
14932         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
14933
14934         * m4/mbslen.m4: Remove file.
14935         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
14936         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
14937
14938         * m4/mbsncasecmp.m4: Remove file.
14939         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
14940         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
14941
14942         * m4/mbsnlen.m4: Remove file.
14943         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
14944         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
14945
14946         * m4/mbspbrk.m4: Remove file.
14947         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
14948         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
14949
14950         * m4/mbspcasecmp.m4: Remove file.
14951         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
14952         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
14953
14954         * m4/mbsrchr.m4: Remove file.
14955         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
14956         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
14957
14958         * m4/mbssep.m4: Remove file.
14959         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
14960         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
14961
14962         * m4/mbsspn.m4: Remove file.
14963         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
14964         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
14965
14966         * m4/mbsstr.m4: Remove file.
14967         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
14968         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
14969
14970         * m4/mbstok_r.m4: Remove file.
14971         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
14972         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
14973
14974         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
14975
14976         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
14977         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
14978
14979         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
14980
14981 2009-03-08  Bruno Haible  <bruno@clisp.org>
14982
14983         Tests for module 'unicase/ulc-casecmp'.
14984         * modules/unicase/ulc-casecmp-tests: New file.
14985         * tests/unicase/test-ulc-casecmp1.sh: New file.
14986         * tests/unicase/test-ulc-casecmp2.sh: New file.
14987         * tests/unicase/test-ulc-casecmp.c: New file.
14988
14989         New module 'unicase/ulc-casecmp'.
14990         * lib/unicase.h (ulc_casecmp): New declaration.
14991         * lib/unicase/ulc-casecmp.c: New file.
14992         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
14993         'const SRC_UNIT *'.
14994         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
14995         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
14996         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
14997         * modules/unicase/ulc-casecmp: New file.
14998
14999         Tests for module 'unicase/u32-is-cased'.
15000         * modules/unicase/u32-is-cased-tests: New file.
15001         * tests/unicase/test-u32-is-cased.c: New file.
15002
15003         Tests for module 'unicase/u16-is-cased'.
15004         * modules/unicase/u16-is-cased-tests: New file.
15005         * tests/unicase/test-u16-is-cased.c: New file.
15006
15007         Tests for module 'unicase/u8-is-cased'.
15008         * modules/unicase/u8-is-cased-tests: New file.
15009         * tests/unicase/test-u8-is-cased.c: New file.
15010         * tests/unicase/test-is-cased.h: New file.
15011
15012         New module 'unicase/u32-is-cased'.
15013         * lib/unicase/u32-is-cased.c: New file.
15014         * modules/unicase/u32-is-cased: New file.
15015
15016         New module 'unicase/u16-is-cased'.
15017         * lib/unicase/u16-is-cased.c: New file.
15018         * modules/unicase/u16-is-cased: New file.
15019
15020         New module 'unicase/u8-is-cased'.
15021         * lib/unicase/u8-is-cased.c: New file.
15022         * lib/unicase/u-is-cased.h: New file.
15023         * modules/unicase/u8-is-cased: New file.
15024
15025         Tests for module 'unicase/u32-is-casefolded'.
15026         * modules/unicase/u32-is-casefolded-tests: New file.
15027         * tests/unicase/test-u32-is-casefolded.c: New file.
15028
15029         Tests for module 'unicase/u16-is-casefolded'.
15030         * modules/unicase/u16-is-casefolded-tests: New file.
15031         * tests/unicase/test-u16-is-casefolded.c: New file.
15032
15033         Tests for module 'unicase/u8-is-casefolded'.
15034         * modules/unicase/u8-is-casefolded-tests: New file.
15035         * tests/unicase/test-u8-is-casefolded.c: New file.
15036         * tests/unicase/test-is-casefolded.h: New file.
15037
15038         New module 'unicase/u32-is-casefolded'.
15039         * lib/unicase/u32-is-casefolded.c: New file.
15040         * modules/unicase/u32-is-casefolded: New file.
15041
15042         New module 'unicase/u16-is-casefolded'.
15043         * lib/unicase/u16-is-casefolded.c: New file.
15044         * modules/unicase/u16-is-casefolded: New file.
15045
15046         New module 'unicase/u8-is-casefolded'.
15047         * lib/unicase/u8-is-casefolded.c: New file.
15048         * modules/unicase/u8-is-casefolded: New file.
15049
15050         Tests for module 'unicase/u32-is-titlecase'.
15051         * modules/unicase/u32-is-titlecase-tests: New file.
15052         * tests/unicase/test-u32-is-titlecase.c: New file.
15053
15054         Tests for module 'unicase/u16-is-titlecase'.
15055         * modules/unicase/u16-is-titlecase-tests: New file.
15056         * tests/unicase/test-u16-is-titlecase.c: New file.
15057
15058         Tests for module 'unicase/u8-is-titlecase'.
15059         * modules/unicase/u8-is-titlecase-tests: New file.
15060         * tests/unicase/test-u8-is-titlecase.c: New file.
15061         * tests/unicase/test-is-titlecase.h: New file.
15062
15063         New module 'unicase/u32-is-titlecase'.
15064         * lib/unicase/u32-is-titlecase.c: New file.
15065         * modules/unicase/u32-is-titlecase: New file.
15066
15067         New module 'unicase/u16-is-titlecase'.
15068         * lib/unicase/u16-is-titlecase.c: New file.
15069         * modules/unicase/u16-is-titlecase: New file.
15070
15071         New module 'unicase/u8-is-titlecase'.
15072         * lib/unicase/u8-is-titlecase.c: New file.
15073         * modules/unicase/u8-is-titlecase: New file.
15074
15075         Tests for module 'unicase/u32-is-lowercase'.
15076         * modules/unicase/u32-is-lowercase-tests: New file.
15077         * tests/unicase/test-u32-is-lowercase.c: New file.
15078
15079         Tests for module 'unicase/u16-is-lowercase'.
15080         * modules/unicase/u16-is-lowercase-tests: New file.
15081         * tests/unicase/test-u16-is-lowercase.c: New file.
15082
15083         Tests for module 'unicase/u8-is-lowercase'.
15084         * modules/unicase/u8-is-lowercase-tests: New file.
15085         * tests/unicase/test-u8-is-lowercase.c: New file.
15086         * tests/unicase/test-is-lowercase.h: New file.
15087
15088         New module 'unicase/u32-is-lowercase'.
15089         * lib/unicase/u32-is-lowercase.c: New file.
15090         * modules/unicase/u32-is-lowercase: New file.
15091
15092         New module 'unicase/u16-is-lowercase'.
15093         * lib/unicase/u16-is-lowercase.c: New file.
15094         * modules/unicase/u16-is-lowercase: New file.
15095
15096         New module 'unicase/u8-is-lowercase'.
15097         * lib/unicase/u8-is-lowercase.c: New file.
15098         * modules/unicase/u8-is-lowercase: New file.
15099
15100         Tests for module 'unicase/u32-is-uppercase'.
15101         * modules/unicase/u32-is-uppercase-tests: New file.
15102         * tests/unicase/test-u32-is-uppercase.c: New file.
15103
15104         Tests for module 'unicase/u16-is-uppercase'.
15105         * modules/unicase/u16-is-uppercase-tests: New file.
15106         * tests/unicase/test-u16-is-uppercase.c: New file.
15107
15108         Tests for module 'unicase/u8-is-uppercase'.
15109         * modules/unicase/u8-is-uppercase-tests: New file.
15110         * tests/unicase/test-u8-is-uppercase.c: New file.
15111         * tests/unicase/test-is-uppercase.h: New file.
15112
15113         New module 'unicase/u32-is-uppercase'.
15114         * lib/unicase/u32-is-uppercase.c: New file.
15115         * modules/unicase/u32-is-uppercase: New file.
15116
15117         New module 'unicase/u16-is-uppercase'.
15118         * lib/unicase/u16-is-uppercase.c: New file.
15119         * modules/unicase/u16-is-uppercase: New file.
15120
15121         New module 'unicase/u8-is-uppercase'.
15122         * lib/unicase/u8-is-uppercase.c: New file.
15123         * modules/unicase/u8-is-uppercase: New file.
15124
15125         New module 'unicase/u32-is-invariant'.
15126         * lib/unicase/u32-is-invariant.c: New file.
15127         * modules/unicase/u32-is-invariant: New file.
15128
15129         New module 'unicase/u16-is-invariant'.
15130         * lib/unicase/u16-is-invariant.c: New file.
15131         * modules/unicase/u16-is-invariant: New file.
15132
15133         New module 'unicase/u8-is-invariant'.
15134         * lib/unicase/u8-is-invariant.c: New file.
15135         * lib/unicase/invariant.h: New file.
15136         * lib/unicase/u-is-invariant.h: New file.
15137         * modules/unicase/u8-is-invariant: New file.
15138
15139         Tests for module 'unicase/u32-casecoll'.
15140         * modules/unicase/u32-casecoll-tests: New file.
15141         * tests/unicase/test-u32-casecoll.c: New file.
15142
15143         Tests for module 'unicase/u16-casecoll'.
15144         * modules/unicase/u16-casecoll-tests: New file.
15145         * tests/unicase/test-u16-casecoll.c: New file.
15146
15147         Tests for module 'unicase/u8-casecoll'.
15148         * modules/unicase/u8-casecoll-tests: New file.
15149         * tests/unicase/test-u8-casecoll.c: New file.
15150
15151         New module 'unicase/u32-casecoll'.
15152         * lib/unicase/u32-casecoll.c: New file.
15153         * modules/unicase/u32-casecoll: New file.
15154
15155         New module 'unicase/u16-casecoll'.
15156         * lib/unicase/u16-casecoll.c: New file.
15157         * modules/unicase/u16-casecoll: New file.
15158
15159         New module 'unicase/u8-casecoll'.
15160         * lib/unicase/u8-casecoll.c: New file.
15161         * lib/unicase/u-casecoll.h: New file.
15162         * modules/unicase/u8-casecoll: New file.
15163
15164         New module 'unicase/u32-casexfrm'.
15165         * lib/unicase/u32-casexfrm.c: New file.
15166         * modules/unicase/u32-casexfrm: New file.
15167
15168         New module 'unicase/u16-casexfrm'.
15169         * lib/unicase/u16-casexfrm.c: New file.
15170         * modules/unicase/u16-casexfrm: New file.
15171
15172         New module 'unicase/u8-casexfrm'.
15173         * lib/unicase/u8-casexfrm.c: New file.
15174         * lib/unicase/u-casexfrm.h: New file.
15175         * modules/unicase/u8-casexfrm: New file.
15176
15177         Tests for module 'unicase/u32-casecmp'.
15178         * modules/unicase/u32-casecmp-tests: New file.
15179         * tests/unicase/test-u32-casecmp.c: New file.
15180
15181         Tests for module 'unicase/u16-casecmp'.
15182         * modules/unicase/u16-casecmp-tests: New file.
15183         * tests/unicase/test-u16-casecmp.c: New file.
15184
15185         Tests for module 'unicase/u8-casecmp'.
15186         * modules/unicase/u8-casecmp-tests: New file.
15187         * tests/unicase/test-u8-casecmp.c: New file.
15188         * tests/unicase/test-casecmp.h: New file.
15189
15190         New module 'unicase/u32-casecmp'.
15191         * lib/unicase/u32-casecmp.c: New file.
15192         * modules/unicase/u32-casecmp: New file.
15193
15194         New module 'unicase/u16-casecmp'.
15195         * lib/unicase/u16-casecmp.c: New file.
15196         * modules/unicase/u16-casecmp: New file.
15197
15198         New module 'unicase/u8-casecmp'.
15199         * lib/unicase/u8-casecmp.c: New file.
15200         * lib/unicase/u-casecmp.h: New file.
15201         * modules/unicase/u8-casecmp: New file.
15202
15203         Tests for module 'unicase/u32-casefold'.
15204         * modules/unicase/u32-casefold-tests: New file.
15205         * tests/unicase/test-u32-casefold.c: New file.
15206
15207         Tests for module 'unicase/u16-casefold'.
15208         * modules/unicase/u16-casefold-tests: New file.
15209         * tests/unicase/test-u16-casefold.c: New file.
15210
15211         Tests for module 'unicase/u8-casefold'.
15212         * modules/unicase/u8-casefold-tests: New file.
15213         * tests/unicase/test-u8-casefold.c: New file.
15214
15215         New module 'unicase/u32-casefold'.
15216         * lib/unicase/u32-casefold.c: New file.
15217         * modules/unicase/u32-casefold: New file.
15218
15219         New module 'unicase/u16-casefold'.
15220         * lib/unicase/u16-casefold.c: New file.
15221         * modules/unicase/u16-casefold: New file.
15222
15223         New module 'unicase/u8-casefold'.
15224         * lib/unicase/u8-casefold.c: New file.
15225         * lib/unicase/u-casefold.h: New file.
15226         * modules/unicase/u8-casefold: New file.
15227
15228         New module 'unicase/tocasefold'.
15229         * lib/unicase/casefold.h: New file.
15230         * lib/unicase/tocasefold.c: New file.
15231         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15232         * modules/unicase/tocasefold: New file.
15233
15234         Tests for module 'unicase/u32-totitle'.
15235         * modules/unicase/u32-totitle-tests: New file.
15236         * tests/unicase/test-u32-totitle.c: New file.
15237
15238         Tests for module 'unicase/u16-totitle'.
15239         * modules/unicase/u16-totitle-tests: New file.
15240         * tests/unicase/test-u16-totitle.c: New file.
15241
15242         Tests for module 'unicase/u8-totitle'.
15243         * modules/unicase/u8-totitle-tests: New file.
15244         * tests/unicase/test-u8-totitle.c: New file.
15245
15246         New module 'unicase/u32-totitle'.
15247         * lib/unicase/u32-totitle.c: New file.
15248         * modules/unicase/u32-totitle: New file.
15249
15250         New module 'unicase/u16-totitle'.
15251         * lib/unicase/u16-totitle.c: New file.
15252         * modules/unicase/u16-totitle: New file.
15253
15254         New module 'unicase/u8-totitle'.
15255         * lib/unicase/u8-totitle.c: New file.
15256         * lib/unicase/u-totitle.h: New file.
15257         * modules/unicase/u8-totitle: New file.
15258
15259         Tests for module 'unicase/u32-tolower'.
15260         * modules/unicase/u32-tolower-tests: New file.
15261         * tests/unicase/test-u32-tolower.c: New file.
15262
15263         Tests for module 'unicase/u16-tolower'.
15264         * modules/unicase/u16-tolower-tests: New file.
15265         * tests/unicase/test-u16-tolower.c: New file.
15266
15267         Tests for module 'unicase/u8-tolower'.
15268         * modules/unicase/u8-tolower-tests: New file.
15269         * tests/unicase/test-u8-tolower.c: New file.
15270
15271         New module 'unicase/u32-tolower'.
15272         * lib/unicase/u32-tolower.c: New file.
15273         * modules/unicase/u32-tolower: New file.
15274
15275         New module 'unicase/u16-tolower'.
15276         * lib/unicase/u16-tolower.c: New file.
15277         * modules/unicase/u16-tolower: New file.
15278
15279         New module 'unicase/u8-tolower'.
15280         * lib/unicase/u8-tolower.c: New file.
15281         * modules/unicase/u8-tolower: New file.
15282
15283         Tests for module 'unicase/u32-toupper'.
15284         * modules/unicase/u32-toupper-tests: New file.
15285         * tests/unicase/test-u32-toupper.c: New file.
15286
15287         Tests for module 'unicase/u16-toupper'.
15288         * modules/unicase/u16-toupper-tests: New file.
15289         * tests/unicase/test-u16-toupper.c: New file.
15290
15291         Tests for module 'unicase/u8-toupper'.
15292         * modules/unicase/u8-toupper-tests: New file.
15293         * tests/unicase/test-u8-toupper.c: New file.
15294
15295         New module 'unicase/u32-toupper'.
15296         * lib/unicase/u32-toupper.c: New file.
15297         * modules/unicase/u32-toupper: New file.
15298
15299         New module 'unicase/u16-toupper'.
15300         * lib/unicase/u16-toupper.c: New file.
15301         * modules/unicase/u16-toupper: New file.
15302
15303         New module 'unicase/u8-toupper'.
15304         * lib/unicase/u8-toupper.c: New file.
15305         * modules/unicase/u8-toupper: New file.
15306
15307         New module 'unicase/u32-casemap'.
15308         * lib/unicase/u32-casemap.c: New file.
15309         * modules/unicase/u32-casemap: New file.
15310
15311         New module 'unicase/u16-casemap'.
15312         * lib/unicase/u16-casemap.c: New file.
15313         * modules/unicase/u16-casemap: New file.
15314
15315         New module 'unicase/u8-casemap'.
15316         * lib/unicase/unicasemap.h: New file.
15317         * lib/unicase/u8-casemap.c: New file.
15318         * lib/unicase/u-casemap.h: New file.
15319         * modules/unicase/u8-casemap: New file.
15320
15321         New module 'unicase/special-casing'.
15322         * lib/unicase/special-casing.h: New file.
15323         * lib/unicase/special-casing.c: New file.
15324         * lib/unicase/special-casing-table.gperf: New file, generated by
15325         gen-uni-tables.c.
15326         * modules/unicase/special-casing: New file.
15327
15328         Tests for module 'unicase/locale-language'.
15329         * modules/unicase/locale-language-tests: New file.
15330         * tests/unicase/test-locale-language.sh: New file.
15331         * tests/unicase/test-locale-language.c: New file.
15332
15333         New module 'unicase/locale-language'.
15334         * lib/unicase/locale-language.c: New file.
15335         * lib/unicase/locale-languages.gperf: New file.
15336         * modules/unicase/locale-language: New file.
15337
15338         Generate more tables for case conversion and case folding.
15339         * lib/gen-uni-tables.c (SCC_*): New enum items.
15340         (struct special_casing_rule): New type.
15341         (casing_rules, num_casing_rules, allocated_casing_rules): New
15342         variables.
15343         (add_casing_rule, fill_casing_rules): New functions.
15344         (struct casefold_rule): New type.
15345         (casefolding_rules, num_casefolding_rules,
15346         allocated_casefolding_rules): New variables.
15347         (fill_casefolding_rules): New function.
15348         (unicode_casefold): New variable.
15349         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15350         sort_casing_rules, output_casing_rules): New functions.
15351         (main): Accept to more arguments: SpecialCasing.txt and
15352         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15353         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15354         Output mapping for casefolding.
15355
15356         * lib/unicase.h: Include stdbool.h, uninorm.h.
15357         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15358         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15359         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15360         arguments.
15361         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15362         resultp arguments.
15363         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15364         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15365         resultp arguments.
15366         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15367         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15368         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15369         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15370         declarations.
15371         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15372
15373 2009-03-08  Bruno Haible  <bruno@clisp.org>
15374
15375         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15376         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15377         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15378         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15379
15380 2009-03-07  Bruno Haible  <bruno@clisp.org>
15381
15382         Adjust u*_normcmp, u*_normcoll API.
15383         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15384         u16_normcoll, u32_normcoll): Change failure conventions.
15385         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15386         errno and return -1.
15387         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15388
15389 2009-03-07  Bruno Haible  <bruno@clisp.org>
15390
15391         Tests for module 'uninorm/u32-normcoll'.
15392         * modules/uninorm/u32-normcoll-tests: New file.
15393         * tests/uninorm/test-u32-normcoll.c: New file.
15394
15395         Tests for module 'uninorm/u16-normcoll'.
15396         * modules/uninorm/u16-normcoll-tests: New file.
15397         * tests/uninorm/test-u16-normcoll.c: New file.
15398
15399         Tests for module 'uninorm/u8-normcoll'.
15400         * modules/uninorm/u8-normcoll-tests: New file.
15401         * tests/uninorm/test-u8-normcoll.c: New file.
15402
15403 2009-03-07  Bruno Haible  <bruno@clisp.org>
15404
15405         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15406         tests/uninorm/test-u32-normcmp.c.
15407         * tests/uninorm/test-u32-normcmp.c: Include it.
15408         (test_nonascii): New function, extracted from main. Add some more
15409         tests.
15410         (main): Invoke test_ascii and test_nonascii.
15411         * modules/uninorm/u32-normcmp-tests (Files): Add
15412         tests/uninorm/test-u32-normcmp.h.
15413         (Depends-on): Remove uninorm/u32-normcmp.
15414
15415         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15416         tests/uninorm/test-u16-normcmp.c.
15417         * tests/uninorm/test-u16-normcmp.c: Include it.
15418         (test_nonascii): New function, extracted from main. Add some more
15419         tests.
15420         (main): Invoke test_ascii and test_nonascii.
15421         * modules/uninorm/u16-normcmp-tests (Files): Add
15422         tests/uninorm/test-u16-normcmp.h.
15423         (Depends-on): Remove uninorm/u16-normcmp.
15424
15425         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15426         tests/uninorm/test-u8-normcmp.c.
15427         * tests/uninorm/test-u8-normcmp.c: Include it.
15428         (test_nonascii): New function, extracted from main. Add some more
15429         tests.
15430         (main): Invoke test_ascii and test_nonascii.
15431         * modules/uninorm/u8-normcmp-tests (Files): Add
15432         tests/uninorm/test-u8-normcmp.h.
15433         (Depends-on): Remove uninorm/u8-normcmp.
15434
15435 2009-03-07  Bruno Haible  <bruno@clisp.org>
15436
15437         New module 'uninorm/u32-normcoll'.
15438         * lib/uninorm/u32-normcoll.c: New file.
15439         * modules/uninorm/u32-normcoll: New file.
15440
15441         New module 'uninorm/u16-normcoll'.
15442         * lib/uninorm/u16-normcoll.c: New file.
15443         * modules/uninorm/u16-normcoll: New file.
15444
15445         New module 'uninorm/u8-normcoll'.
15446         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15447         declarations.
15448         * lib/uninorm/u8-normcoll.c: New file.
15449         * lib/uninorm/u-normcoll.h: New file.
15450         * modules/uninorm/u8-normcoll: New file.
15451
15452         New module 'uninorm/u32-normxfrm'.
15453         * lib/uninorm/u32-normxfrm.c: New file.
15454         * modules/uninorm/u32-normxfrm: New file.
15455
15456         New module 'uninorm/u16-normxfrm'.
15457         * lib/uninorm/u16-normxfrm.c: New file.
15458         * modules/uninorm/u16-normxfrm: New file.
15459
15460         New module 'uninorm/u8-normxfrm'.
15461         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15462         declarations.
15463         * lib/uninorm/u8-normxfrm.c: New file.
15464         * lib/uninorm/u-normxfrm.h: New file.
15465         * modules/uninorm/u8-normxfrm: New file.
15466
15467 2009-03-07  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15470         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15471         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15472
15473 2009-03-07  Bruno Haible  <bruno@clisp.org>
15474
15475         New module 'memxfrm'.
15476         * lib/memxfrm.h: New file.
15477         * lib/memxfrm.c: New file.
15478         * modules/memxfrm: New file.
15479
15480 2009-03-07  Bruno Haible  <bruno@clisp.org>
15481
15482         New module 'memcmp2'.
15483         * lib/memcmp2.h: New file.
15484         * lib/memcmp2.c: New file.
15485         * modules/memcmp2: New file.
15486
15487 2009-03-07  Bruno Haible  <bruno@clisp.org>
15488
15489         Tests for module 'uninorm/decomposing-form'.
15490         * modules/uninorm/decomposing-form-tests: New file.
15491         * tests/uninorm/test-decomposing-form.c: New file.
15492
15493         New module 'uninorm/decomposing-form'.
15494         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15495         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15496         Add 'decomposing_variant' field.
15497         * lib/uninorm/decomposing-form.c: New file.
15498         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15499         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15500         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15501         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15502         * modules/uninorm/decomposing-form: New file.
15503         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15504         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15505
15506 2009-03-07  Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15509         strings.
15510
15511 2009-03-06  Bruno Haible  <bruno@clisp.org>
15512
15513         Tests for module 'uninorm/u32-normcmp'.
15514         * tests/uninorm/test-u32-normcmp.c: New file.
15515         * modules/uninorm/u32-normcmp-tests: New file.
15516
15517         Tests for module 'uninorm/u16-normcmp'.
15518         * tests/uninorm/test-u16-normcmp.c: New file.
15519         * modules/uninorm/u16-normcmp-tests: New file.
15520
15521         Tests for module 'uninorm/u8-normcmp'.
15522         * tests/uninorm/test-u8-normcmp.c: New file.
15523         * modules/uninorm/u8-normcmp-tests: New file.
15524
15525         New module 'uninorm/u32-normcmp'.
15526         * lib/uninorm/u32-normcmp.c: New file.
15527         * modules/uninorm/u32-normcmp: New file.
15528
15529         New module 'uninorm/u16-normcmp'.
15530         * lib/uninorm/u16-normcmp.c: New file.
15531         * modules/uninorm/u16-normcmp: New file.
15532
15533         New module 'uninorm/u8-normcmp'.
15534         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15535         declarations.
15536         * lib/uninorm/u8-normcmp.c: New file.
15537         * lib/uninorm/u-normcmp.h: New file.
15538         * modules/uninorm/u8-normcmp: New file.
15539
15540 2009-03-06  Bruno Haible  <bruno@clisp.org>
15541
15542         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15543         Reported by Eric Blake.
15544
15545 2009-03-06  Eric Blake  <ebb9@byu.net>
15546             Bruno Haible  <bruno@clisp.org>
15547
15548         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15549         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15550         condition.
15551         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15552         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15553         condition.
15554         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15555
15556 2009-03-06  Eric Blake  <ebb9@byu.net>
15557
15558         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15559         to avoid compiler warnings.
15560         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15561
15562 2009-03-05  Bruno Haible  <bruno@clisp.org>
15563
15564         * tests/test-ftell.c (main): Disable test beyond end of file on
15565         FreeMiNT.
15566         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15567
15568 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15569
15570         * lib/filevercmp.c: Move hidden files up in ordering.
15571         * tests/test-filevercmp.c: Add tests for hidden files.
15572
15573 2009-03-04  Bruno Haible  <bruno@clisp.org>
15574
15575         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15576         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15577         AM_CFLAGS.
15578         Reported by Simon Josefsson.
15579
15580 2009-03-03  Bruno Haible  <bruno@clisp.org>
15581
15582         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15583         Reported by Simon Josefsson.
15584
15585         * doc/ld-version-script.texi: Update node reference.
15586
15587 2009-03-03  Bruno Haible  <bruno@clisp.org>
15588
15589         * modules/visibility (License): Change to 'unlimited'.
15590         Suggested by Simon Josefsson.
15591
15592 2009-03-03  Jim Meyering  <meyering@redhat.com>
15593
15594         unlinkdir: cannot_unlink_dir may modify process state
15595         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15596         it's neither thread-safe nor appropriate for use in a library.
15597
15598 2009-03-03  Eric Blake  <ebb9@byu.net>
15599
15600         test-closein: silence test under Darwin
15601         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15602         care if it dies from EPIPE or EBADF.
15603
15604 2009-03-03  Bruno Haible  <bruno@clisp.org>
15605
15606         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15607         earlier.
15608         * doc/visibility.texi: Fix @node and @section.
15609
15610 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15611
15612         * doc/gnulib.texi: Link to sections for ld version script and
15613         visibility.
15614         * doc/visibility.texi: Add @node and @section.
15615         * modules/ld-version-script: New module.
15616         * m4/ld-version-script.m4: New file.
15617         * doc/ld-version-script.texi: New file.
15618
15619 2009-03-02  David Lutterkort  <lutter@redhat.com>
15620
15621         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
15622         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15623
15624 2009-03-02  Bruno Haible  <bruno@clisp.org>
15625
15626         * doc/visibility.texi: Mention libtool's -export-symbols option.
15627
15628 2009-03-02  Jim Meyering  <meyering@redhat.com>
15629
15630         announce-gen: new option: --no-print-checksums
15631         * build-aux/announce-gen (usage): Describe it.
15632         (print_checksums): Print a newline here, not in the [*] footnote.
15633         (main): Honor it.
15634
15635 2009-03-01  Bruno Haible  <bruno@clisp.org>
15636
15637         Use socklen_t in the native Windows replacements prototypes.
15638         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
15639         instead of 'int'.
15640         * lib/getsockopt.c (rpl_getsockopt): Likewise.
15641         * lib/setsockopt.c (rpl_setsockopt): Likewise.
15642         * modules/getsockopt (Depends-on): Add socklen.
15643         * modules/setsockopt (Depends-on): Add socklen.
15644
15645 2009-03-01  Bruno Haible  <bruno@clisp.org>
15646
15647         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
15648         least 4.2.
15649
15650 2009-03-01  Eric Blake  <ebb9@byu.net>
15651             Bruno Haible  <bruno@clisp.org>
15652
15653         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
15654         error messages.
15655         * lib/wait-process.c (wait_subprocess): Omit error message about
15656         deadly signal sent to the child of termsigp != NULL.
15657
15658 2009-03-01  Eric Blake  <ebb9@byu.net>
15659
15660         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
15661
15662 2009-03-01  Bruno Haible  <bruno@clisp.org>
15663
15664         Avoid a gcc warning.
15665         * tests/test-sched.c (b): Make global.
15666         Reported by Eric Blake.
15667
15668 2009-01-19  Martin Lambers  <marlam@marlam.de>
15669
15670         Provide POSIX semantics for socket timeout options on W32.
15671         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
15672         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
15673         * modules/setsockopt: Depend on sys_time module for struct timeval.
15674         * modules/getsockopt: Depend on sys_time module for struct timeval.
15675
15676 2009-03-01  Simon Josefsson  <simon@josefsson.org>
15677
15678         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
15679         __USE_GNU, for consistency with netdb.in.h.
15680         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15681
15682 2009-03-01  Bruno Haible  <bruno@clisp.org>
15683
15684         More support for FreeMiNT.
15685         * lib/fseeko.c (rpl_fseeko): Complete last commit.
15686         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15687
15688 2009-03-01  Bruno Haible  <bruno@clisp.org>
15689
15690         More support for FreeMiNT.
15691         * lib/fpurge.c (fpurge): Correct last commit.
15692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15693
15694 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15695
15696         Fix unportable awk script in vc-list-files.
15697         * build-aux/vc-list-files: In the replacement awk script, use
15698         substr with a second argument of 1, not zero.
15699         Report by Simon Josefsson.
15700
15701 2009-02-28  Bruno Haible  <bruno@clisp.org>
15702
15703         More support for FreeMiNT.
15704         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
15705         to FreeMiNT today.
15706         * lib/fwriting.c (fwriting): Likewise.
15707         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
15708
15709 2009-02-28  Bruno Haible  <bruno@clisp.org>
15710
15711         * tests/test-freadseek.c (main): Disable test beyond end of file on
15712         FreeMiNT.
15713         * tests/test-ftello.c (main): Likewise.
15714         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15715
15716 2009-02-28  Bruno Haible  <bruno@clisp.org>
15717
15718         Add tentative support for FreeMiNT.
15719         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
15720         * lib/fpurge.c (fpurge): Likewise.
15721         * lib/freadable.c (freadable): Likewise.
15722         * lib/freading.c (freading): Likewise.
15723         * lib/freadptr.c (freadptr): Likewise.
15724         * lib/freadseek.c (freadptrinc): Likewise.
15725         * lib/fseeko.c (rpl_fseeko): Likewise.
15726         * lib/fseterr.c (fseterr): Likewise.
15727         * lib/fwritable.c (fwritable): Likewise.
15728         * lib/fwriting.c (fwriting): Likewise.
15729         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
15730         Hourihane.
15731         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
15732
15733 2009-02-28  Bruno Haible  <bruno@clisp.org>
15734
15735         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
15736         SIGCHLD.
15737         Reported by Jim Meyering.
15738
15739 2009-02-28  Bruno Haible  <bruno@clisp.org>
15740
15741         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
15742         Mention the results of these tests on various platforms.
15743         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
15744         order.
15745         * doc/posix-functions/printf.texi: Likewise.
15746         * doc/posix-functions/snprintf.texi: Likewise.
15747         * doc/posix-functions/sprintf.texi: Likewise.
15748         * doc/posix-functions/vfprintf.texi: Likewise.
15749         * doc/posix-functions/vprintf.texi: Likewise.
15750         * doc/posix-functions/vsnprintf.texi: Likewise.
15751         * doc/posix-functions/vsprintf.texi: Likewise.
15752         * doc/glibc-functions/obstack_printf.texi: Likewise.
15753         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15754
15755 2009-02-28  Bruno Haible  <bruno@clisp.org>
15756
15757         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
15758         Reported by Loïc Minier <lool@dooz.org>.
15759
15760 2009-02-27  Bruno Haible  <bruno@clisp.org>
15761
15762         * gnulib-tool (func_import): Make the sed expression used to create the
15763         sed script for updating the .gitignore file POSIX compliant.
15764         Reported by Eric Blake.
15765
15766 2009-02-27  Bruno Haible  <bruno@clisp.org>
15767
15768         * gnulib-tool (sed): Don't alias as "sed --posix".
15769         Reported by Eric Blake.
15770
15771 2009-02-27  Bruno Haible  <bruno@clisp.org>
15772
15773         Avoid test link errors.
15774         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
15775         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
15776         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
15777         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
15778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15779
15780 2009-02-27  Bruno Haible  <bruno@clisp.org>
15781
15782         Avoid spurious "(cached)" in configure output.
15783         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
15784         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
15785         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15786         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15787         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15788         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
15789         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15790         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
15791         Reported by Eric Blake.
15792
15793 2009-02-27  Eric Blake  <ebb9@byu.net>
15794
15795         printf: fix regression in previous patch
15796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
15797
15798 2009-02-27  Bruno Haible  <bruno@clisp.org>
15799
15800         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
15801         value.
15802         * lib/stdint.in.h: Likewise.
15803         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
15804
15805 2009-02-27  Eric Blake  <ebb9@byu.net>
15806
15807         doc: mention more functions added in cygwin 1.7.0
15808         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
15809         addition.
15810         * doc/posix-functions/open_wmemstream.texi: Likewise.
15811         * doc/posix-functions/wcsnlen.texi: Likewise.
15812         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15813         * doc/posix-functions/wcstod.texi: Likewise.
15814         * doc/posix-functions/wcstof.texi: Likewise.
15815         * doc/posix-functions/wcstoimax.texi: Likewise.
15816         * doc/posix-functions/wcstok.texi: Likewise.
15817         * doc/posix-functions/wcstoumax.texi: Likewise.
15818
15819         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
15820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
15821         * doc/posix-functions/fprintf.texi: Update.
15822         * doc/posix-functions/printf.texi: Update.
15823         * doc/posix-functions/snprintf.texi: Update.
15824         * doc/posix-functions/sprintf.texi: Update.
15825         * doc/posix-functions/vfprintf.texi: Update.
15826         * doc/posix-functions/vprintf.texi: Update.
15827         * doc/posix-functions/vsnprintf.texi: Update.
15828         * doc/posix-functions/vsprintf.texi: Update.
15829         * doc/glibc-functions/obstack_printf.texi: Update.
15830         * doc/glibc-functions/obstack_vprintf.texi: Update.
15831
15832 2009-02-26  Eric Blake  <ebb9@byu.net>
15833
15834         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
15835         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
15836         compilation bug by using runtime conversion.
15837         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15838         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
15839         * modules/ceill-tests (Files): Use nan.h.
15840         * modules/floorl-tests (Files): Likewise.
15841         * modules/frexpl-tests (Files): Likewise.
15842         * modules/isnanl-tests (Files): Likewise.
15843         * modules/ldexpl-tests (Files): Likewise.
15844         * modules/roundl-tests (Files): Likewise.
15845         * modules/truncl-tests (Files): Likewise.
15846         * tests/test-ceill.c (main): Use a working NaN.
15847         * tests/test-floorl.c (main): Likewise.
15848         * tests/test-frexpl.c (main): Likewise.
15849         * tests/test-isnan.c (test_long_double): Likewise.
15850         * tests/test-isnanl.h (main): Likewise.
15851         * tests/test-ldexpl.h (main): Likewise.
15852         * tests/test-roundl.h (main): Likewise.
15853         * tests/test-truncl.h (main): Likewise.
15854         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
15855
15856 2009-02-26  Eric Blake  <ebb9@byu.net>
15857             Bruno Haible  <bruno@clisp.org>
15858
15859         Work around a *printf bug with %ls on Solaris.
15860         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
15861         precision is specified, sprintf stops converting the wide string
15862         argument when the number of bytes that have been produced by this
15863         conversion equals or exceeds the precision.
15864         * doc/posix-functions/fprintf.texi: Update.
15865         * doc/posix-functions/printf.texi: Update.
15866         * doc/posix-functions/snprintf.texi: Update.
15867         * doc/posix-functions/sprintf.texi: Update.
15868         * doc/posix-functions/vfprintf.texi: Update.
15869         * doc/posix-functions/vprintf.texi: Update.
15870         * doc/posix-functions/vsnprintf.texi: Update.
15871         * doc/posix-functions/vsprintf.texi: Update.
15872         * doc/glibc-functions/obstack_printf.texi: Update.
15873         * doc/glibc-functions/obstack_vprintf.texi: Update.
15874
15875 2009-02-26  Eric Blake  <ebb9@byu.net>
15876
15877         stdlib: favor compiler check of random.h
15878         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
15879         to avoid an ObjC random.h installed by Swarm.
15880
15881 2009-02-26  Bruno Haible  <bruno@clisp.org>
15882
15883         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
15884         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
15885         Reported by Gary V. Vaughan <gary@gnu.org>.
15886
15887 2009-02-26  Bruno Haible  <bruno@clisp.org>
15888
15889         Fix *printf behaviour regarding the %ls directive.
15890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
15891         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
15892         NEED_PRINTF_DIRECTIVE_LS.
15893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
15894         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15896         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
15897         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
15898         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
15899         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
15900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15904         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
15905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15908         * doc/posix-functions/fprintf.texi: Update.
15909         * doc/posix-functions/printf.texi: Update.
15910         * doc/posix-functions/snprintf.texi: Update.
15911         * doc/posix-functions/sprintf.texi: Update.
15912         * doc/posix-functions/vfprintf.texi: Update.
15913         * doc/posix-functions/vprintf.texi: Update.
15914         * doc/posix-functions/vsnprintf.texi: Update.
15915         * doc/posix-functions/vsprintf.texi: Update.
15916         * doc/glibc-functions/obstack_printf.texi: Update.
15917         * doc/glibc-functions/obstack_vprintf.texi: Update.
15918         Reported by Eric Blake.
15919
15920 2009-02-25  Bruno Haible  <bruno@clisp.org>
15921
15922         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
15923         with known value.
15924         Reported by Gary V. Vaughan <gary@gnu.org>.
15925
15926 2009-02-25  Bruno Haible  <bruno@clisp.org>
15927
15928         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
15929         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
15930         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
15931         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
15932         Reported by Gary V. Vaughan <gary@gnu.org>.
15933
15934 2009-02-25  Bruno Haible  <bruno@clisp.org>
15935
15936         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
15937         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
15938         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
15939         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
15940         Reported by Gary V. Vaughan <gary@gnu.org>.
15941
15942 2009-02-25  Eric Blake  <ebb9@byu.net>
15943
15944         tests: skip fseek/ftell tests if ungetc is broken
15945         * m4/ungetc.m4: New file.
15946         * modules/fseek-tests: Split test, so ungetc dependency is
15947         separate from rest of test.
15948         * modules/fseeko-tests: Likewise.
15949         * modules/ftell-tests: Likewise.
15950         * modules/ftello-tests: Likewise.
15951         * tests/test-fseek.c (main): Isolate ungetc dependency.
15952         * tests/test-fseeko.c (main): Likewise.
15953         * tests/test-ftell.c (main): Likewise.
15954         * tests/test-ftello.c (main): Likewise.
15955         * tests/test-fseek2.sh: New file.
15956         * tests/test-fseeko2.sh: Likewise.
15957         * tests/test-ftell2.sh: Likewise.
15958         * tests/test-ftello2.sh: Likewise.
15959
15960 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
15961
15962         test-getaddrinfo: fix usage of skip return code 77
15963         * tests/test-gettaddrinfo.c: Return skip code 77 only
15964         for first occurance of skip (4x77 is not 77)
15965
15966 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
15967
15968         strtod: avoid C99 decl-after-statement
15969         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
15970
15971 2009-02-24  Eric Blake  <ebb9@byu.net>
15972
15973         strtod: detect HP-UX 11.31 bug
15974         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
15975         Reported by Gary V. Vaughan.
15976
15977 2009-02-23  Bruno Haible  <bruno@clisp.org>
15978
15979         Fix invalid read past end of memory block.
15980         * lib/vasnprintf.c (DCHAR_SET): Define.
15981         (local_wcslen): Define only when needed.
15982         (local_strnlen, local_wcsnlen): New functions.
15983         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
15984         directives that involve a conversion ourselves.
15985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
15986         wcsnlen, mbrtowc, wcrtomb.
15987         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
15988         * tests/test-vasprintf-posix.c (test_function): Likewise.
15989         * tests/test-snprintf-posix.h (test_function): Likewise.
15990         * tests/test-sprintf-posix.h (test_function): Likewise.
15991         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15992
15993 2009-02-22  Bruno Haible  <bruno@clisp.org>
15994
15995         Implement new clarified decomposition of Hangul syllables.
15996         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
15997         of type LTV, return only a pairwise decomposition.
15998         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
15999         Likewise.
16000         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16001         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16002         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16003
16004 2009-02-22  Bruno Haible  <bruno@clisp.org>
16005
16006         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16007         zero-length results and shrink excess allocated memory.
16008         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16009         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16010         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16011         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16012         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16013         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16014         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16015         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16016         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16017         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16018         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16019         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16020
16021 2009-02-21  Bruno Haible  <bruno@clisp.org>
16022
16023         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16024         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16025         spaces after a period. Put a space between a macro name and its
16026         argument list. Trivial rewordings.
16027         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16028         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16029         (main): Return 0 explicitly.
16030
16031 2009-02-21  Bruno Haible  <bruno@clisp.org>
16032
16033         Tests for module 'uninorm/filter'.
16034         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16035         * modules/uninorm/filter-tests: New file.
16036
16037         New module 'uninorm/filter'.
16038         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16039         uninorm_filter_flush, uninorm_filter_free): New declarations.
16040         * lib/uninorm/uninorm-filter.c: New file.
16041         * modules/uninorm/filter: New file.
16042
16043 2009-02-21  Bruno Haible  <bruno@clisp.org>
16044
16045         Tests for module 'uninorm/nfkc'.
16046         * tests/uninorm/test-nfkc.c: New file.
16047         * tests/uninorm/test-u8-nfkc.c: New file.
16048         * tests/uninorm/test-u16-nfkc.c: New file.
16049         * tests/uninorm/test-u32-nfkc.c: New file.
16050         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16051         * tests/uninorm/test-u32-nfkc-big.c: New file.
16052         * modules/uninorm/nfkc-tests: New file.
16053
16054         New module 'uninorm/nfkc'.
16055         * lib/uninorm/nfkc.c: New file.
16056         * modules/uninorm/nfkc: New file.
16057
16058         Tests for module 'uninorm/nfkd'.
16059         * tests/uninorm/test-nfkd.c: New file.
16060         * tests/uninorm/test-u8-nfkd.c: New file.
16061         * tests/uninorm/test-u16-nfkd.c: New file.
16062         * tests/uninorm/test-u32-nfkd.c: New file.
16063         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16064         * tests/uninorm/test-u32-nfkd-big.c: New file.
16065         * modules/uninorm/nfkd-tests: New file.
16066
16067         New module 'uninorm/nfkd'.
16068         * lib/uninorm/nfkd.c: New file.
16069         * modules/uninorm/nfkd: New file.
16070
16071         Tests for module 'uninorm/nfc'.
16072         * tests/uninorm/test-nfc.c: New file.
16073         * tests/uninorm/test-u8-nfc.c: New file.
16074         * tests/uninorm/test-u16-nfc.c: New file.
16075         * tests/uninorm/test-u32-nfc.c: New file.
16076         * tests/uninorm/test-u32-nfc-big.sh: New file.
16077         * tests/uninorm/test-u32-nfc-big.c: New file.
16078         * modules/uninorm/nfc-tests: New file.
16079
16080         New module 'uninorm/nfc'.
16081         * lib/uninorm/nfc.c: New file.
16082         * modules/uninorm/nfc: New file.
16083
16084         Tests for module 'uninorm/nfd'.
16085         * tests/uninorm/test-nfd.c: New file.
16086         * tests/uninorm/test-u8-nfd.c: New file.
16087         * tests/uninorm/test-u16-nfd.c: New file.
16088         * tests/uninorm/test-u32-nfd.c: New file.
16089         * tests/uninorm/test-u32-nfd-big.sh: New file.
16090         * tests/uninorm/test-u32-nfd-big.c: New file.
16091         * tests/uninorm/test-u32-normalize-big.h: New file.
16092         * tests/uninorm/test-u32-normalize-big.c: New file.
16093         * tests/uninorm/NormalizationTest.txt: New file, created from
16094         Unicode 5.1.0 NormalizationTest.txt.
16095         * modules/uninorm/nfd-tests: New file.
16096
16097         New module 'uninorm/nfd'.
16098         * lib/uninorm/nfd.c: New file.
16099         * modules/uninorm/nfd: New file.
16100
16101         New module 'uninorm/u32-normalize'.
16102         * lib/uninorm/u32-normalize.c: New file.
16103         * modules/uninorm/u32-normalize: New file.
16104
16105         New module 'uninorm/u16-normalize'.
16106         * lib/uninorm/u16-normalize.c: New file.
16107         * modules/uninorm/u16-normalize: New file.
16108
16109         New module 'uninorm/u8-normalize'.
16110         * lib/uninorm/u8-normalize.c: New file.
16111         * lib/uninorm/normalize-internal.h: New file.
16112         * lib/uninorm/u-normalize-internal.h: New file.
16113         * modules/uninorm/u8-normalize: New file.
16114
16115         New module 'uninorm/decompose-internal'.
16116         * lib/uninorm/decompose-internal.c: New file.
16117         * modules/uninorm/decompose-internal: New file.
16118
16119         Tests for module 'uninorm/composition'.
16120         * tests/uninorm/test-composition.c: New file.
16121         * modules/uninorm/composition-tests: New file.
16122
16123         New module 'uninorm/composition'.
16124         * lib/uninorm/composition.c: New file.
16125         * lib/uninorm/composition-table.gperf: New file, generated by
16126         gen-uni-tables.
16127         * modules/uninorm/composition: New file.
16128
16129         Tests for module 'uninorm/compat-decomposition'.
16130         * tests/uninorm/test-compat-decomposition.c: New file.
16131         * modules/uninorm/compat-decomposition-tests: New file.
16132
16133         New module 'uninorm/compat-decomposition'.
16134         * lib/uninorm/decompose-internal.h: New file.
16135         * lib/uninorm/compat-decomposition.c: New file.
16136         * modules/uninorm/compat-decomposition: New file.
16137
16138         Tests for module 'uninorm/canonical-decomposition'.
16139         * tests/uninorm/test-canonical-decomposition.c: New file.
16140         * modules/uninorm/canonical-decomposition-tests: New file.
16141
16142         New module 'uninorm/canonical-decomposition'.
16143         * lib/uninorm/canonical-decomposition.c: New file.
16144         * modules/uninorm/canonical-decomposition: New file.
16145
16146         Tests for module 'uninorm/decomposition'.
16147         * tests/uninorm/test-decomposition.c: New file.
16148         * modules/uninorm/decomposition-tests: New file.
16149
16150         New module 'uninorm/decomposition'.
16151         * lib/uninorm/decomposition.c: New file.
16152         * modules/uninorm/decomposition: New file.
16153
16154         New module 'uninorm/decomposition-table'.
16155         * lib/uninorm/decomposition-table.h: New file.
16156         * lib/uninorm/decomposition-table.c: New file.
16157         * lib/uninorm/decomposition-table1.h: New file, generated by
16158         gen-uni-tables.
16159         * lib/uninorm/decomposition-table2.h: New file, generated by
16160         gen-uni-tables.
16161         * modules/uninorm/decomposition-table: New file.
16162
16163         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16164         (UC_DECOMP_*): New enumeration items.
16165         (get_decomposition): New function.
16166         (struct decomp_table): New type.
16167         (output_decomposition, output_decomposition_tables): New functions.
16168         (unicode_composition_exclusions): New variable.
16169         (fill_composition_exclusions, debug_output_composition_tables): New
16170         functions.
16171         (main): Accept one more argument. Invoke fill_composition_exclusions.
16172         Output decomposition and composition tables.
16173
16174         New module 'uninorm/base'.
16175         * lib/uninorm.h: New file.
16176         * lib/unictype.h: Update comment.
16177         * modules/uninorm/base: New file.
16178
16179 2009-02-21  David Lutterkort  <lutter@redhat.com>
16180
16181         Tests for module 'safe-alloc'.
16182         * tests/test-safe-alloc.c: New file.
16183         * modules/safe-alloc-tests: New file.
16184
16185         New module 'safe-alloc'.
16186         * lib/safe-alloc.h: New file.
16187         * lib/safe-alloc.c: New file.
16188         * m4/safe-alloc.m4: New file.
16189         * modules/safe-alloc: New file.
16190         * doc/safe-alloc.texi: New file.
16191         * doc/gnulib.texi: Include it.
16192         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16193         safe-alloc.
16194
16195 2009-02-18  Bruno Haible  <bruno@clisp.org>
16196
16197         Fix link error on non-glibc systems.
16198         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16199         variable.
16200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16201
16202 2009-02-18  Jim Meyering  <meyering@redhat.com>
16203
16204         fts: avoid used-uninitialized error due to recent change
16205         * lib/fts.c (fts_read): Guard uses of the new member,
16206         parent->fts_n_dirs_remaining, since it's not relevant for
16207         the parent of a directory specified on the command-line.
16208
16209 2009-02-17  James Youngman  <jay@gnu.org>
16210             Bruno Haible  <bruno@clisp.org>
16211
16212         * m4/include_next.m4: Reformulate comment.
16213
16214 2009-02-16  Jim Meyering  <meyering@redhat.com>
16215
16216         fts: add #if guards so that the fts_lgpl module still builds
16217         * lib/fts.c: Guard just-added hash-table-using parts with
16218         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16219         Reported by Simon Josefsson.
16220
16221 2009-02-15  Bruno Haible  <bruno@clisp.org>
16222
16223         * modules/array-mergesort-tests: New file.
16224         * tests/test-array-mergesort.c: New file.
16225
16226         New module 'array-mergesort'.
16227         * modules/array-mergesort: New file.
16228         * lib/array-mergesort.h: New file.
16229
16230 2009-02-15  Bruno Haible  <bruno@clisp.org>
16231
16232         Fix 2009-02-07 commit.
16233         * lib/gen-uni-tables.c (output_predicate, output_category,
16234         output_combclass, output_bidi_category, output_decimal_digit,
16235         output_digit, output_numeric, output_mirror, output_scripts,
16236         output_ident_category, output_simple_mapping): Fix format directives.
16237         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16238
16239 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16240
16241         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16242         fixes are available from IBM.
16243
16244 2009-02-13  Jim Meyering  <meyering@redhat.com>
16245
16246         fts: arrange not to stat non-directories in more cases
16247         This makes GNU find (when it doesn't need to stat each file)
16248         *much* more efficient at traversing reiserfs file systems.
16249         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16250         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16251         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16252         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16253         (leaf_optimization_applies): New function.
16254         (LCO_hash, LCO_compare): New helper functions.
16255         (link_count_optimize_ok): New function.
16256         (fts_stat): Initialize new member (if dir).
16257         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16258         we've just stat'ed a directory.  Skip the stat call when possible.
16259         ---
16260         Note this AFS-related exchange:
16261         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16262         and note find's pioctl call in find/fstype.c.
16263         But that is necessary only if you want to enable the
16264         optimization for AFS, and for now, I don't.
16265
16266         fts: move a function definition "up" (no semantic change)
16267         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16268         "up" to precede upcoming use of a related function.
16269
16270 2009-02-11  Jim Meyering  <meyering@redhat.com>
16271
16272         fts: correct internal computation of nlinks (optimization-related)
16273         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16274         whether the current entry is a directory, so don't test it.
16275
16276 2009-02-10  Bruno Haible  <bruno@clisp.org>
16277
16278         Tests for module 'uniwbrk/ulc-wordbreaks'.
16279         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16280         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16281         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16282
16283         Tests for module 'uniwbrk/u32-wordbreaks'.
16284         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16285         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16286
16287         Tests for module 'uniwbrk/u16-wordbreaks'.
16288         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16289         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16290
16291         Tests for module 'uniwbrk/u8-wordbreaks'.
16292         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16293         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16294
16295 2009-02-10  Bruno Haible  <bruno@clisp.org>
16296
16297         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16298         property.
16299         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16300         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16301         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16302
16303 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16304
16305         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16306         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16307
16308 2009-02-10  Bruno Haible  <bruno@clisp.org>
16309
16310         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16311         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16312         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16313         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16314         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16315         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16316
16317 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16318
16319         * lib/sockets.h (gl_fd_to_handle): New function.
16320
16321         * tests/test-sockets.c: Call gl_fd_to_handle.
16322
16323 2009-02-09  Bruno Haible  <bruno@clisp.org>
16324
16325         * doc/havelib.texi: Document the conventions on bi-arch systems.
16326
16327 2009-02-08  Bruno Haible  <bruno@clisp.org>
16328
16329         Document the AC_LIB_LINKFLAGS macro.
16330         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16331         * doc/gnulib.texi: Include it.
16332
16333 2009-02-08  Bruno Haible  <bruno@clisp.org>
16334
16335         Fix wrong order of sections, compared to TOC.
16336         * doc/gnulib.texi: Include relocatable-maint.texi after the
16337         "Regular expressions" node, not before.
16338
16339 2009-02-08  Bruno Haible  <bruno@clisp.org>
16340
16341         Tests for module 'unicase/totitle'.
16342         * modules/unicase/totitle-tests: New file.
16343
16344         Tests for module 'unicase/tolower'.
16345         * modules/unicase/tolower-tests: New file.
16346
16347         Tests for module 'unicase/toupper'.
16348         * modules/unicase/toupper-tests: New file.
16349         * tests/unicase/test-mapping-part1.h: New file.
16350         * tests/unicase/test-mapping-part2.h: New file.
16351
16352         New module 'unicase/totitle'.
16353         * modules/unicase/totitle: New file.
16354         * lib/unicase/totitle.c: New file.
16355
16356         New module 'unicase/tolower'.
16357         * modules/unicase/tolower: New file.
16358         * lib/unicase/tolower.c: New file.
16359
16360         New module 'unicase/toupper'.
16361         * modules/unicase/toupper: New file.
16362         * lib/unicase/toupper.c: New file.
16363         * lib/unicase/simple-mapping.h: New file.
16364
16365         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16366         (mapping_table): New structure.
16367         (output_simple_mapping): New function.
16368         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16369         * modules/gen-uni-tables (Description): Update.
16370         * lib/unicase/toupper.h: New file, automatically generated by
16371         gen-uni-tables.
16372         * lib/unicase/tolower.h: New file, automatically generated by
16373         gen-uni-tables.
16374         * lib/unicase/totitle.h: New file, automatically generated by
16375         gen-uni-tables.
16376         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16377         gen-uni-tables.
16378         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16379         gen-uni-tables.
16380         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16381         gen-uni-tables.
16382
16383         New module 'unicase/base'.
16384         * modules/unicase/base: New file.
16385         * lib/unicase.h: New file.
16386
16387 2009-02-08  Bruno Haible  <bruno@clisp.org>
16388
16389         New module 'uniwbrk/ulc-wordbreaks'.
16390         * modules/uniwbrk/ulc-wordbreaks: New file.
16391         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16392
16393         New module 'uniwbrk/u32-wordbreaks'.
16394         * modules/uniwbrk/u32-wordbreaks: New file.
16395         * lib/uniwbrk/u32-wordbreaks.c: New file.
16396
16397         New module 'uniwbrk/u16-wordbreaks'.
16398         * modules/uniwbrk/u16-wordbreaks: New file.
16399         * lib/uniwbrk/u16-wordbreaks.c: New file.
16400
16401         New module 'uniwbrk/u8-wordbreaks'.
16402         * modules/uniwbrk/u8-wordbreaks: New file.
16403         * lib/uniwbrk/u8-wordbreaks.c: New file.
16404         * lib/uniwbrk/u-wordbreaks.h: New file.
16405
16406         New module 'uniwbrk/table'.
16407         * modules/uniwbrk/table: New file.
16408         * lib/uniwbrk/wbrktable.h: New file.
16409         * lib/uniwbrk/wbrktable.c: New file.
16410
16411         New module 'uniwbrk/wordbreak-property'.
16412         * modules/uniwbrk/wordbreak-property: New file.
16413         * lib/uniwbrk/wordbreak-property.c: New file.
16414
16415         * lib/gen-uni-tables.c (WBP_*): New enum items.
16416         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16417         (unicode_org_wbp): New variable.
16418         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16419         New functions.
16420         (wbp_table): New structure.
16421         (output_wbp, output_wbrk_tables): New functions.
16422         (main): Accept additional argument. Invoke fill_org_wbp,
16423         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16424         output_wbrk_tables.
16425         * modules/gen-uni-tables (Description): Update.
16426         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16427         gen-uni-tables.
16428
16429         New module 'uniwbrk/base'.
16430         * modules/uniwbrk/base: New file.
16431         * lib/uniwbrk.h: New file.
16432
16433 2009-02-08  Bruno Haible  <bruno@clisp.org>
16434
16435         Update to Unicode 5.1.0.
16436         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16437         U+2185..U+2188.
16438         (is_property_default_ignorable_code_point): Don't include characters
16439         of category Cc or Cs and not-a-characters.
16440         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16441         U+0D79, U+109E, U+109F, U+A60C.
16442         * lib/unictype/bidi_of.h: Regenerated.
16443         * lib/unictype/blocks.h: Regenerated.
16444         * lib/unictype/categ_C.h: Regenerated.
16445         * lib/unictype/categ_Cf.h: Regenerated.
16446         * lib/unictype/categ_Cn.h: Regenerated.
16447         * lib/unictype/categ_L.h: Regenerated.
16448         * lib/unictype/categ_Ll.h: Regenerated.
16449         * lib/unictype/categ_Lm.h: Regenerated.
16450         * lib/unictype/categ_Lo.h: Regenerated.
16451         * lib/unictype/categ_Lu.h: Regenerated.
16452         * lib/unictype/categ_M.h: Regenerated.
16453         * lib/unictype/categ_Mc.h: Regenerated.
16454         * lib/unictype/categ_Me.h: Regenerated.
16455         * lib/unictype/categ_Mn.h: Regenerated.
16456         * lib/unictype/categ_N.h: Regenerated.
16457         * lib/unictype/categ_Nd.h: Regenerated.
16458         * lib/unictype/categ_Nl.h: Regenerated.
16459         * lib/unictype/categ_No.h: Regenerated.
16460         * lib/unictype/categ_P.h: Regenerated.
16461         * lib/unictype/categ_Pd.h: Regenerated.
16462         * lib/unictype/categ_Pe.h: Regenerated.
16463         * lib/unictype/categ_Pf.h: Regenerated.
16464         * lib/unictype/categ_Pi.h: Regenerated.
16465         * lib/unictype/categ_Po.h: Regenerated.
16466         * lib/unictype/categ_Ps.h: Regenerated.
16467         * lib/unictype/categ_S.h: Regenerated.
16468         * lib/unictype/categ_Sk.h: Regenerated.
16469         * lib/unictype/categ_Sm.h: Regenerated.
16470         * lib/unictype/categ_So.h: Regenerated.
16471         * lib/unictype/categ_of.h: Regenerated.
16472         * lib/unictype/combining.h: Regenerated.
16473         * lib/unictype/ctype_alnum.h: Regenerated.
16474         * lib/unictype/ctype_alpha.h: Regenerated.
16475         * lib/unictype/ctype_graph.h: Regenerated.
16476         * lib/unictype/ctype_lower.h: Regenerated.
16477         * lib/unictype/ctype_print.h: Regenerated.
16478         * lib/unictype/ctype_punct.h: Regenerated.
16479         * lib/unictype/ctype_upper.h: Regenerated.
16480         * lib/unictype/decdigit.h: Regenerated.
16481         * lib/unictype/digit.h: Regenerated.
16482         * lib/unictype/mirror.h: Regenerated.
16483         * lib/unictype/numeric.h: Regenerated.
16484         * lib/unictype/pr_alphabetic.h: Regenerated.
16485         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16486         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16487         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16488         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16489         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16490         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16491         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16492         * lib/unictype/pr_combining.h: Regenerated.
16493         * lib/unictype/pr_dash.h: Regenerated.
16494         * lib/unictype/pr_decimal_digit.h: Regenerated.
16495         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16496         * lib/unictype/pr_deprecated.h: Regenerated.
16497         * lib/unictype/pr_diacritic.h: Regenerated.
16498         * lib/unictype/pr_extender.h: Regenerated.
16499         * lib/unictype/pr_format_control.h: Regenerated.
16500         * lib/unictype/pr_grapheme_base.h: Regenerated.
16501         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16502         * lib/unictype/pr_grapheme_link.h: Regenerated.
16503         * lib/unictype/pr_id_continue.h: Regenerated.
16504         * lib/unictype/pr_id_start.h: Regenerated.
16505         * lib/unictype/pr_ideographic.h: Regenerated.
16506         * lib/unictype/pr_ignorable_control.h: Regenerated.
16507         * lib/unictype/pr_lowercase.h: Regenerated.
16508         * lib/unictype/pr_math.h: Regenerated.
16509         * lib/unictype/pr_numeric.h: Regenerated.
16510         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16511         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16512         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16513         * lib/unictype/pr_other_id_continue.h: Regenerated.
16514         * lib/unictype/pr_other_lowercase.h: Regenerated.
16515         * lib/unictype/pr_other_math.h: Regenerated.
16516         * lib/unictype/pr_punctuation.h: Regenerated.
16517         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16518         * lib/unictype/pr_soft_dotted.h: Regenerated.
16519         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16520         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16521         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16522         * lib/unictype/pr_uppercase.h: Regenerated.
16523         * lib/unictype/pr_xid_continue.h: Regenerated.
16524         * lib/unictype/pr_xid_start.h: Regenerated.
16525         * lib/unictype/pr_zero_width.h: Regenerated.
16526         * lib/unictype/scripts.h: Regenerated.
16527         * lib/unictype/scripts_byname.gperf: Regenerated.
16528         * lib/unictype/sy_java_ident.h: Regenerated.
16529         * lib/unilbrk/lbrkprop1.h: Regenerated.
16530         * lib/unilbrk/lbrkprop2.h: Regenerated.
16531         * tests/unictype/test-categ_C.c: Regenerated.
16532         * tests/unictype/test-categ_Cf.c: Regenerated.
16533         * tests/unictype/test-categ_Cn.c: Regenerated.
16534         * tests/unictype/test-categ_L.c: Regenerated.
16535         * tests/unictype/test-categ_Ll.c: Regenerated.
16536         * tests/unictype/test-categ_Lm.c: Regenerated.
16537         * tests/unictype/test-categ_Lo.c: Regenerated.
16538         * tests/unictype/test-categ_Lu.c: Regenerated.
16539         * tests/unictype/test-categ_M.c: Regenerated.
16540         * tests/unictype/test-categ_Mc.c: Regenerated.
16541         * tests/unictype/test-categ_Me.c: Regenerated.
16542         * tests/unictype/test-categ_Mn.c: Regenerated.
16543         * tests/unictype/test-categ_N.c: Regenerated.
16544         * tests/unictype/test-categ_Nd.c: Regenerated.
16545         * tests/unictype/test-categ_Nl.c: Regenerated.
16546         * tests/unictype/test-categ_No.c: Regenerated.
16547         * tests/unictype/test-categ_P.c: Regenerated.
16548         * tests/unictype/test-categ_Pd.c: Regenerated.
16549         * tests/unictype/test-categ_Pe.c: Regenerated.
16550         * tests/unictype/test-categ_Pf.c: Regenerated.
16551         * tests/unictype/test-categ_Pi.c: Regenerated.
16552         * tests/unictype/test-categ_Po.c: Regenerated.
16553         * tests/unictype/test-categ_Ps.c: Regenerated.
16554         * tests/unictype/test-categ_S.c: Regenerated.
16555         * tests/unictype/test-categ_Sk.c: Regenerated.
16556         * tests/unictype/test-categ_Sm.c: Regenerated.
16557         * tests/unictype/test-categ_So.c: Regenerated.
16558         * tests/unictype/test-ctype_alnum.c: Regenerated.
16559         * tests/unictype/test-ctype_alpha.c: Regenerated.
16560         * tests/unictype/test-ctype_graph.c: Regenerated.
16561         * tests/unictype/test-ctype_lower.c: Regenerated.
16562         * tests/unictype/test-ctype_print.c: Regenerated.
16563         * tests/unictype/test-ctype_punct.c: Regenerated.
16564         * tests/unictype/test-ctype_upper.c: Regenerated.
16565         * tests/unictype/test-decdigit.h: Regenerated.
16566         * tests/unictype/test-digit.h: Regenerated.
16567         * tests/unictype/test-numeric.h: Regenerated.
16568         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16569         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16571         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16572         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16573         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16574         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16575         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16576         * tests/unictype/test-pr_combining.c: Regenerated.
16577         * tests/unictype/test-pr_dash.c: Regenerated.
16578         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16579         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16580         * tests/unictype/test-pr_deprecated.c: Regenerated.
16581         * tests/unictype/test-pr_diacritic.c: Regenerated.
16582         * tests/unictype/test-pr_extender.c: Regenerated.
16583         * tests/unictype/test-pr_format_control.c: Regenerated.
16584         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16585         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16586         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16587         * tests/unictype/test-pr_id_continue.c: Regenerated.
16588         * tests/unictype/test-pr_id_start.c: Regenerated.
16589         * tests/unictype/test-pr_ideographic.c: Regenerated.
16590         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16591         * tests/unictype/test-pr_lowercase.c: Regenerated.
16592         * tests/unictype/test-pr_math.c: Regenerated.
16593         * tests/unictype/test-pr_numeric.c: Regenerated.
16594         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16595         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16596         Regenerated.
16597         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16598         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16599         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16600         * tests/unictype/test-pr_other_math.c: Regenerated.
16601         * tests/unictype/test-pr_punctuation.c: Regenerated.
16602         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16603         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16604         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16605         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16606         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16607         * tests/unictype/test-pr_uppercase.c: Regenerated.
16608         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16609         * tests/unictype/test-pr_xid_start.c: Regenerated.
16610         * tests/unictype/test-pr_zero_width.c: Regenerated.
16611
16612         Update to Unicode 5.1.0.
16613         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16614         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16615         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16616         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16617         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
16618         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
16619         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
16620         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
16621         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
16622         (nonspacing_table_ind): Update.
16623         * tests/uniwidth/test-uc_width2.sh: Update expected result.
16624
16625         Update to Unicode 5.1.0.
16626         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
16627         code transform.
16628         * lib/uniname/uniname.c (unicode_character_name,
16629         unicode_name_character): Add the range 0x1Fxxx to the code transform.
16630         * lib/uniname/uninames.h: Regenerated.
16631         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
16632
16633 2009-02-07  Bruno Haible  <bruno@clisp.org>
16634
16635         Merge gen-ctype and gen-lbrk into a single program.
16636         * lib/gen-uni-tables.c: New file, incorporating
16637         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
16638         Add directory prefixes to the names of the generated files.
16639         * lib/unictype/gen-ctype.c: Remove file.
16640         * lib/unilbrk/gen-lbrk.c: Remove file.
16641         * modules/gen-uni-tables: New file.
16642         * modules/unictype/gen-ctype: Remove file.
16643         * modules/unilbrk/gen-lbrk: Remove file.
16644
16645 2009-02-07  Bruno Haible  <bruno@clisp.org>
16646
16647         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
16648
16649         New module 'unistr/u32-strcoll'.
16650         * modules/unistr/u32-strcoll: New file.
16651         * lib/unistr/u32-strcoll.c: New file.
16652
16653         New module 'unistr/u16-strcoll'.
16654         * modules/unistr/u16-strcoll: New file.
16655         * lib/unistr/u16-strcoll.c: New file.
16656
16657         New module 'unistr/u8-strcoll'.
16658         * modules/unistr/u8-strcoll: New file.
16659         * lib/unistr/u8-strcoll.c: New file.
16660         * lib/unistr/u-strcoll.h: New file.
16661
16662 2009-02-07  Bruno Haible  <bruno@clisp.org>
16663
16664         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
16665         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16666         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
16667         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
16668         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
16669         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
16670
16671 2009-02-07  Bruno Haible  <bruno@clisp.org>
16672
16673         Make 64-bit clean.
16674         * lib/unictype/gen-ctype.c (output_predicate, output_category,
16675         output_combclass, output_bidi_category, output_decimal_digit,
16676         output_digit, output_numeric, output_mirror, output_scripts,
16677         output_ident_category): Use proper width specifier in format strings.
16678
16679 2009-02-07  Bruno Haible  <bruno@clisp.org>
16680
16681         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
16682         failure behaviour.
16683
16684 2009-02-07  Jim Meyering  <meyering@redhat.com>
16685
16686         regex: avoid compilation failure with upcoming gcc-4.4
16687         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
16688         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
16689         "... error: integer overflow in preprocessor expression".
16690
16691 2009-02-05  Ben Pfaff  <blp@gnu.org>
16692
16693         Fix link errors on Windows when close module is used.
16694         * modules/close: Add $(LIB_CLOSE) to Link section.
16695         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
16696         $(LIB_CLOSE) on Windows.
16697
16698 2009-02-05  Jim Meyering  <meyering@redhat.com>
16699
16700         still avoid unused-parameter warnings, but do it cleanly
16701         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
16702         (get_fs_usage): Cast to void instead.
16703         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
16704         (dev_from_mount_options, read_file_system_list): Cast to void.
16705         Prompted by Bruno Haible.
16706
16707 2009-02-04  Jim Meyering  <meyering@redhat.com>
16708
16709         fsusage.c: correct copyright year
16710         * lib/fsusage.c: Reflect year in which the change is pushed into
16711
16712         avoid misc. warnings
16713         * lib/fsusage.c (UNUSED_PARAM): Define.
16714         (get_fs_usage): Mark parameter "disk" as unused.
16715         * lib/getugroups.c (getgrent): Use "void" in prototype.
16716         * lib/mountlist.c: Mark unused parameters.
16717         (read_file_system_list): Declare a local with "const".
16718         * lib/nanosleep.c (getnow): Declare static.
16719         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
16720
16721         dirfd: set errno upon failure
16722         * lib/dirfd.c: Include <errno.h>.
16723         Set errno to ENOTSUP when returning -1.
16724         * modules/dirfd (Depends-on): Add errno.
16725         Suggested by John Kodis <kodis@comcast.net>.
16726
16727 2009-02-01  Bruno Haible  <bruno@clisp.org>
16728
16729         Don't assume sizeof (long) >= sizeof (void *).
16730         * lib/memcmp.c: Include stdint.h.
16731         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
16732         srcp2 to 'const byte *'.
16733         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
16734         types to uintptr_t.
16735         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
16736         * modules/memcmp (Depends-on): Add stdint.
16737         Reported by Ozkan Sezer <sezeroz@gmail.com>.
16738
16739 2009-01-30  Eric Blake  <ebb9@byu.net>
16740
16741         fix more require-before-expand issues
16742         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
16743         expand, AC_PROG_AWK.
16744         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
16745
16746 2009-01-28  Eric Blake  <ebb9@byu.net>
16747
16748         version-etc: use consistent URL formatting
16749         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
16750         Improve formatting.  Use fputs for string without %.
16751
16752 2009-01-28  Jim Meyering  <meyering@redhat.com>
16753
16754         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
16755         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
16756         "underquoted definition of NAME" from autoconf-2.59.
16757
16758 2009-01-28  Bruno Haible  <bruno@clisp.org>
16759
16760         * doc/gnulib.texi: Add "Obsolete modules" to index.
16761
16762 2009-01-28  Jim Meyering  <meyering@redhat.com>
16763
16764         useless-if-before-free: recognize more variants
16765         * build-aux/useless-if-before-free: Also recognize e.g.,
16766         if (NULL != p) free (p);
16767
16768 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
16769
16770         test-getaddrinfo: skip (don't fail) this test when there's no network
16771         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
16772         on the presumption that it means you lack network access.
16773
16774 2009-01-26  Jim Meyering  <meyering@redhat.com>
16775
16776         fflush: avoid warnings on modern systems
16777         * lib/fflush.c (rpl_fflush): Move declarations of locals,
16778         pos and result, into scopes where they're used.
16779
16780 2009-01-26  Eric Blake  <ebb9@byu.net>
16781
16782         Silence warning reintroduced by recent extensions patch.
16783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
16784         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
16785         autoconf.
16786
16787         Backport improved autoconf semantics of AC_DEFUN_ONCE.
16788         * m4/00gnulib.m4: New file.
16789         * gnulib-tool (func_get_filelist): Always use it.
16790         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
16791         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
16792
16793 2009-01-25  Bruno Haible  <bruno@clisp.org>
16794
16795         Make test-quotearg work on MacOS X and AIX.
16796         * tests/test-quotearg.sh: New file.
16797         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
16798         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
16799         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
16800         include <libintl.h>.
16801         (fake_locale): Remove variable.
16802         (gettext, dgettext, dcgettext): Remove functions.
16803         (main): Instead of setting a fake locale, set a real locale. Call
16804         textdomain and bindtextdomain.
16805         * modules/quotearg-tests (Files): Add the new files.
16806         (Depends-on): Add gettext, setenv, unsetenv.
16807         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
16808         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
16809         Augment TESTS_ENVIRONMENT.
16810
16811 2009-01-25  Bruno Haible  <bruno@clisp.org>
16812
16813         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
16814         fr_FR.ISO8859-1 locale on MacOS X.
16815         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
16816         ja_JP.eucJP locale on MacOS X.
16817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
16818         zh_CN.GB18030 locale on MacOS X.
16819
16820 2009-01-25  Bruno Haible  <bruno@clisp.org>
16821
16822         Avoid link errors on MacOS X 10.3.
16823         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
16824         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
16825
16826 2009-01-25  Bruno Haible  <bruno@clisp.org>
16827
16828         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16829         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
16830         * modules/pipe (Files): Remove m4/posix_spawn.m4.
16831         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16832         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
16833         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16834         posix_spawnattr_init, posix_spawnattr_setsigmask,
16835         posix_spawnattr_setflags, posix_spawnattr_destroy.
16836
16837         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
16838         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
16839         * modules/execute (Files): Remove m4/posix_spawn.m4.
16840         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
16841         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
16842         posix_spawnattr_init, posix_spawnattr_setsigmask,
16843         posix_spawnattr_setflags, posix_spawnattr_destroy.
16844
16845 2009-01-25  Bruno Haible  <bruno@clisp.org>
16846
16847         * lib/glthread/threadlib.c: Include <stdlib.h>.
16848
16849 2009-01-25  Bruno Haible  <bruno@clisp.org>
16850
16851         * lib/glthread/threadlib.c (dummy): New declaration.
16852
16853 2009-01-25  Bruno Haible  <bruno@clisp.org>
16854
16855         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
16856         multibyte characters also for the GB18030 encoding. Don't crash when
16857         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
16858
16859 2009-01-25  Bruno Haible  <bruno@clisp.org>
16860
16861         Avoid redefining 'struct random_data' on OSF/1 5.1.
16862         * lib/stdlib.in.h: Include <random.h> if it exists.
16863         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
16864         HAVE_RANDOM_H. Include <random.h> when testing whether
16865         'struct random_data' exists.
16866         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
16867
16868 2009-01-25  Bruno Haible  <bruno@clisp.org>
16869
16870         Don't install charset.alias on MacOS X >= 10.3.
16871         * lib/localcharset.c (DARWIN7): New macro.
16872         (get_charset_aliases): Hardcode the result for Darwin7.
16873         * modules/localcharset (install-exec-local): Don't install
16874         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
16875
16876 2009-01-25  Bruno Haible  <bruno@clisp.org>
16877
16878         Don't install charset.alias on mingw and Cygwin.
16879         * modules/localcharset (install-exec-local): Don't install
16880         charset.alias on mingw and Cygwin, if the file does not yet exist.
16881         The result for these platforms is hardcoded in localcharset.c.
16882
16883 2009-01-25  Bruno Haible  <bruno@clisp.org>
16884
16885         Make it possible again to use AC_GNU_SOURCE together with gnulib.
16886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
16887         before requiring AC_USE_SYSTEM_EXTENSIONS.
16888
16889 2009-01-25  Jim Meyering  <meyering@redhat.com>
16890
16891         c-strtod: avoid warnings
16892         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
16893         "assignment discards qualifiers from pointer target type" warnings.
16894
16895 2009-01-24  Bruno Haible  <bruno@clisp.org>
16896
16897         Add support for non-UTF-8 locales on MacOS X.
16898         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
16899         canonical encodings. For Darwin 7 and newer, don't map traditional
16900         encodings to UTF-8.
16901         Reported by Vincent Lefevre <vincent@vinc17.org>
16902         at <http://savannah.gnu.org/bugs/?25235>.
16903
16904 2009-01-24  Bruno Haible  <bruno@clisp.org>
16905
16906         * doc/gnulib.texi (Obsolete modules): New section.
16907         Reported by Mike Frysinger <vapier@gentoo.org>.
16908
16909 2009-01-24  Bruno Haible  <bruno@clisp.org>
16910
16911         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
16912         (%.dvi): New rule.
16913
16914 2009-01-24  Bruno Haible  <bruno@clisp.org>
16915
16916         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
16917         Reported by Eric Blake.
16918
16919 2009-01-24  Bruno Haible  <bruno@clisp.org>
16920
16921         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
16922         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
16923         Reported by Gary V. Vaughan <gary@gnu.org>.
16924
16925 2009-01-24  Bruno Haible  <bruno@clisp.org>
16926
16927         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
16928
16929 2009-01-23  Bruno Haible  <bruno@clisp.org>
16930
16931         Make c-strtod, c-strtold usable in libraries.
16932         * lib/c-strtod.c: Include string.h instead of xalloc.h.
16933         (C_STRTOD): Call strdup instead of xstrdup.
16934         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
16935         * modules/c-strtold (Depends-on): Likewise.
16936         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
16937         * NEWS: Mention the change.
16938         Reported by Michael Gold <mgold@ncf.ca>.
16939
16940 2009-01-23  Jim Meyering  <meyering@redhat.com>
16941
16942         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
16943         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
16944         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
16945
16946 2009-01-23  Simon Josefsson  <simon@josefsson.org>
16947
16948         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
16949         GNU CoreUtils.
16950         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
16951         * modules/version-etc (Description): Update.
16952
16953 2009-01-22  Bruno Haible  <bruno@clisp.org>
16954
16955         Cache the C locale object.
16956         * lib/c-strtod.c (c_locale_cache): New variable.
16957         (c_locale): New function.
16958         (C_STRTOD): Use it, and don't call freelocale.
16959         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
16960         Suggested by Paolo Bonzini.
16961
16962 2009-01-21  Bruno Haible  <bruno@clisp.org>
16963
16964         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
16965         conditions other than overflow.
16966
16967 2009-01-21  Bruno Haible  <bruno@clisp.org>
16968
16969         * lib/c-strtod.c: Include errno.h.
16970         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
16971         value from STRTOD_L and STRTOD.
16972
16973 2009-01-21  Bruno Haible  <bruno@clisp.org>
16974         and Jim Meyering  <meyering@redhat.com>
16975
16976         nanosleep: skip configure test (fail it) for apple universal builds
16977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
16978         universal builds, assume that nanosleep does not work.
16979         * modules/nanosleep (Depends-on): Add multiarch.
16980
16981         mktime: skip configure test (fail it) for apple universal builds
16982         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
16983         universal builds, assume that mktime does not work.
16984         * modules/mktime (Depends-on): Add multiarch.
16985
16986 2009-01-21  Eric Blake  <ebb9@byu.net>
16987
16988         multiarch: avoid expand-before-require warning
16989         * modules/multiarch (configure.ac): Require, rather than expand,
16990         gl_MULTIARCH.
16991         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
16992         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
16993         enforce that all clients require it.  Partial reversion of
16994         2008-12-29 patch.
16995
16996         error: avoid expand-before-require warning
16997         * modules/errno (configure.ac): Require, rather than expand,
16998         gl_HEADER_ERRNO_H.
16999         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17000         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17001         enforce that all clients require it.
17002
17003         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17004         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17005         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17006         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17007
17008 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17009
17010         Revert:
17011         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17012
17013         regex: do not depend on obsolete modules.
17014         * modules/regex: Remove memcmp and memmove.
17015
17016 2009-01-20  Bruno Haible  <bruno@clisp.org>
17017
17018         Make the 'link' module link on Windows NT 4.
17019         * lib/link.c (_WIN32_WINNT): Don't define.
17020         (CreateHardLinkFuncType): New type.
17021         (CreateHardLinkFunc, initialized): New variables.
17022         (initialize): New function.
17023         (link): Invoke CreateHardLink indirectly through the function pointer.
17024
17025 2009-01-20  Bruno Haible  <bruno@clisp.org>
17026
17027         Fix compilation failure on mingw.
17028         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17029
17030 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17031
17032         * doc/c-strtod.texi: Mention a couple of restrictions.
17033
17034 2009-01-20  Jim Meyering  <meyering@redhat.com>
17035
17036         gettimeofday: move more declarations out of functions
17037         * lib/gettimeofday.c: Move extern declarations of tzset and
17038         gmtime out of containing functions.  Prompted by Bruno Haible.
17039
17040 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17041
17042         regex: do not depend on obsolete modules.
17043         * modules/regex: Remove memcmp and memmove.
17044
17045 2009-01-19  Bruno Haible  <bruno@clisp.org>
17046
17047         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17048         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17049         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17050         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17051         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17052
17053 2009-01-19  Bruno Haible  <bruno@clisp.org>
17054
17055         * tests/test-link.c: Include <errno.h>.
17056         (main): Exit with code 77 when a hard link cannot be created due to
17057         the file system.
17058         * tests/test-link.sh: Skip test when a hard link cannot be created due
17059         to the file system.
17060         Suggested by Eric Blake.
17061
17062 2009-01-19  Martin Lambers  <marlam@marlam.de>
17063
17064         * modules/link-tests: New file.
17065         * tests/test-link.sh: New file.
17066         * tests/test-link.c: New file.
17067
17068 2009-01-19  Eric Blake  <ebb9@byu.net>
17069
17070         doc: mention another function added in cygwin 1.7.0
17071         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17072         Another new function in cygwin 1.7.
17073
17074 2009-01-19  Bruno Haible  <bruno@clisp.org>
17075
17076         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17077         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17078         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17079         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17080         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17081         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17082         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17083         * m4/md4.m4 (gl_MD4): Likewise.
17084         * m4/md5.m4 (gl_MD5): Likewise.
17085         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17086         * m4/sha1.m4 (gl_SHA1): Likewise.
17087         * m4/sha256.m4 (gl_SHA256): Likewise.
17088         * m4/sha512.m4 (gl_SHA512): Likewise.
17089
17090 2009-01-19  Bruno Haible  <bruno@clisp.org>
17091
17092         * modules/uniname/uniname-tests (Depends-on): Add progname.
17093         * tests/uniname/test-uninames.c: Include progname.h.
17094         (main): Call set_program_name.
17095
17096         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17097         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17098         (main): Call set_program_name.
17099
17100         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17101         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17102         (main): Call set_program_name.
17103
17104         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17105         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17106         (main): Call set_program_name.
17107
17108         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17109         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17110         (main): Call set_program_name.
17111
17112         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17113         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17114         (main): Call set_program_name.
17115
17116         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17117         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17118         (main): Call set_program_name.
17119
17120         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17121         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17122         (main): Call set_program_name.
17123
17124         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17125         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17126         (main): Call set_program_name.
17127
17128 2009-01-19  Eric Blake  <ebb9@byu.net>
17129
17130         test-unistd: test previous patch
17131         * tests/test-unistd.c: Test *_FILENO macros.
17132
17133         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17134         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17135         Guarantee a definition.
17136         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17137         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17138         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17139         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17140         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17141         Likewise.
17142         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17143         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17144         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17145         Likewise.
17146         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17147         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17148         (STDERR_FILENO): Likewise.
17149         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17150         (STDERR_FILENO): Likewise.
17151         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17152         (STDERR_FILENO): Likewise.
17153         Reported by Elbert Pol.
17154
17155 2009-01-19  Eric Blake  <ebb9@byu.net>
17156
17157         doc: mention more functions added in cygwin 1.7.0
17158         * doc/posix-functions/abort.texi (abort): Update wording related
17159         to cygwin.
17160         * doc/posix-functions/daylight.texi (daylight): Likewise.
17161         * doc/posix-functions/optarg.texi (optarg): Likewise.
17162         * doc/posix-functions/optarg.texi (opterr): Likewise.
17163         * doc/posix-functions/optarg.texi (optind): Likewise.
17164         * doc/posix-functions/optarg.texi (optopt): Likewise.
17165         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17166         worked in 1.5.x, and was withdrawn in 1.7.
17167         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17168         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17169         cygwin versions.
17170         * doc/posix-functions/perror.texi (perror): Likewise.
17171         * doc/posix-functions/printf.texi (printf): Likewise.
17172         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17173         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17174         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17175         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17176         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17177         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17178         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17179         Likewise.
17180         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17181         Likewise.
17182         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17183         this function.
17184         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17185         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17186         Likewise.
17187         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17188         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17189         * doc/posix-functions/confstr.texi (confstr): Likewise.
17190         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17191         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17192         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17193         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17194         * doc/posix-functions/fputws.texi (fputws): Likewise.
17195         * doc/posix-functions/fwide.texi (fwide): Likewise.
17196         * doc/posix-functions/getwc.texi (getwc): Likewise.
17197         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17198         * doc/posix-functions/putwc.texi (putwc): Likewise.
17199         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17200         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17201         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17202         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17203         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17204         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17205         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17206         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17207         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17208         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17209         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17210
17211 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17212
17213         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17214         * lib/ioctl.c: Include <sys/ioctl.h>.
17215
17216 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17217
17218         * modules/getdate-tests (Depends-on): Add progname.
17219         * tests/test-getdate.c: Use progname module, to avoid link errors
17220         on non-glibc systems.
17221
17222 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17223
17224         * modules/filenamecat-tests (Depends-on): Add progname.
17225         * modules/fstrcmp-tests (Depends-on): Likewise.
17226
17227         * tests/test-filenamecat.c: Use progname module, to avoid link
17228         errors on non-glibc systems.
17229         * tests/test-fstrcmp.c: Likewise.
17230
17231 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17232
17233         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17234         * lib/gettimeofday.c: Move extern declaration out of function.
17235
17236 2009-01-18  Bruno Haible  <bruno@clisp.org>
17237
17238         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17239         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17240         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17241
17242 2009-01-18  Bruno Haible  <bruno@clisp.org>
17243
17244         * lib/strftime.c (MEMPCPY): Remove unused macro.
17245         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17246
17247 2009-01-18  Martin Lambers  <marlam@marlam.de>
17248
17249         New module 'link'.
17250         * lib/unistd.in.h (link): New declaration.
17251         * lib/link.c: New file.
17252         * m4/link.m4: New file.
17253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17254         HAVE_LINK.
17255         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17256         * modules/link: New file.
17257         * doc/posix-functions/link.texi: Mention the new module.
17258
17259 2009-01-18  Bruno Haible  <bruno@clisp.org>
17260
17261         * tests/test-avltree_list.c (main): Call set_program_name.
17262         * tests/test-avltree_oset.c (main): Likewise.
17263         * tests/test-obstack-printf.c: Include progname.h.
17264         (main): Call set_program_name.
17265         * tests/test-quotearg.c: Include progname.h.
17266         (main): Call set_program_name.
17267         * tests/test-xmemdup0.c: Include progname.h.
17268         (main): Call set_program_name.
17269
17270 2009-01-18  Bruno Haible  <bruno@clisp.org>
17271
17272         New module 'alphasort'.
17273         * lib/dirent.in.h (alphasort): New declaration.
17274         * lib/alphasort.c: New file, from glibc with modifications.
17275         * m4/alphasort.m4: New file.
17276         * modules/alphasort: New file.
17277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17278         HAVE_ALPHASORT.
17279         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17280         HAVE_ALPHASORT.
17281         * doc/posix-functions/alphasort.texi: Mention the new module and the
17282         portability problems.
17283
17284 2009-01-18  Bruno Haible  <bruno@clisp.org>
17285
17286         New module 'scandir'.
17287         * lib/dirent.in.h (scandir): New declaration.
17288         * lib/scandir.c: New file, from glibc with modifications.
17289         * m4/scandir.m4: New file.
17290         * modules/scandir: New file.
17291         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17292         HAVE_SCANDIR.
17293         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17294         HAVE_SCANDIR.
17295         * doc/posix-functions/scandir.texi: Mention the new module and the
17296         portability problems.
17297
17298 2009-01-17  Bruno Haible  <bruno@clisp.org>
17299
17300         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17301         Update documentation.
17302         (func_remove_suffix): Escape all dots in the suffix. Update
17303         documentation.
17304         (func_filter_filelist): Update documentation.
17305         Reported by Ralf Wildenhues.
17306
17307 2009-01-17  Bruno Haible  <bruno@clisp.org>
17308
17309         * modules/dprintf-posix-tests: New file.
17310         * tests/test-dprintf-posix.sh: New file.
17311         * tests/test-dprintf-posix.c: New file.
17312
17313         New modules 'dprintf', 'dprintf-posix'.
17314         * lib/stdio.in.h (dprintf): New declaration.
17315         * lib/dprintf.c: New file.
17316         * m4/dprintf.m4: New file.
17317         * m4/dprintf-posix.m4: New file.
17318         * modules/dprintf: New file.
17319         * modules/dprintf-posix: New file.
17320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17321         HAVE_DPRINTF, REPLACE_DPRINTF.
17322         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17323         HAVE_DPRINTF, REPLACE_DPRINTF.
17324         * doc/posix-functions/dprintf.texi: Mention the new modules.
17325
17326 2009-01-17  Bruno Haible  <bruno@clisp.org>
17327
17328         * modules/vdprintf-posix-tests: New file.
17329         * tests/test-vdprintf-posix.sh: New file.
17330         * tests/test-vdprintf-posix.c: New file.
17331
17332         New modules 'vdprintf', 'vdprintf-posix'.
17333         * lib/stdio.in.h (vdprintf): New declaration.
17334         * lib/vdprintf.c: New file.
17335         * m4/vdprintf.m4: New file.
17336         * m4/vdprintf-posix.m4: New file.
17337         * modules/vdprintf: New file.
17338         * modules/vdprintf-posix: New file.
17339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17340         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17341         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17342         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17343         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17344
17345 2009-01-17  Bruno Haible  <bruno@clisp.org>
17346
17347         Fix replacement of fopen on mingw.
17348         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17349         mingw.
17350
17351 2009-01-17  Bruno Haible  <bruno@clisp.org>
17352
17353         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17354         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17355
17356 2009-01-17  Bruno Haible  <bruno@clisp.org>
17357
17358         Avoid test-fflush2.sh failure on mingw.
17359         * tests/test-fflush2.c: Include binary-io.h.
17360         (main): Put standard input into binary mode.
17361         * modules/fflush-tests (Depends-on): Add binary-io.
17362
17363 2009-01-17  Bruno Haible  <bruno@clisp.org>
17364
17365         * lib/wchar.in.h: In another particular situation, include only the
17366         system's <wchar.h> file.
17367         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17368         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17369         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17370
17371 2009-01-17  Bruno Haible  <bruno@clisp.org>
17372
17373         Support for stripping executables in --enable-relocatable.
17374         * build-aux/install-reloc: Expect one more argument, or an environment
17375         variable RELOC_STRIP_PROG. If set, strip the destination program and
17376         its wrapper.
17377         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17378         RELOC_STRIP_PROG.
17379         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17380         to set RELOCATABLE_STRIP.
17381         * NEWS: Mention the new Makefile requirement.
17382
17383 2009-01-17  Bruno Haible  <bruno@clisp.org>
17384
17385         * build-aux/install-reloc: Remove debugging information left over by
17386         C compiler on MacOS X.
17387
17388 2009-01-17  Bruno Haible  <bruno@clisp.org>
17389
17390         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17391         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17392         _NSGetExecutablePath.
17393
17394 2009-01-16  Jim Meyering  <meyering@redhat.com>
17395
17396         strerror: avoid warnings about discarding "const"
17397         * lib/strerror.c (rpl_strerror): Instead of returning a const
17398         string from each and every "case", use a variable, and add a single
17399         cast after the switch.
17400
17401 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17402
17403         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17404
17405 2009-01-16  Bruno Haible  <bruno@clisp.org>
17406
17407         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17408         array initializer syntax that also works in C++ mode.
17409         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17410
17411 2009-01-16  Jim Meyering  <meyering@redhat.com>
17412
17413         poll: suppress a warning
17414         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17415         to ignore "...unsigned expression < 0 is always false" warnings.
17416
17417 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17418
17419         poll: remove declarations of unused variables
17420         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17421         sockbuf and optlen.
17422
17423 2009-01-15  Bruno Haible  <bruno@clisp.org>
17424
17425         Make fflush-after-ungetc POSIX compliant on BSD systems.
17426         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17427         (clear_ungetc_buffer): Implement also for other systems.
17428         (rpl_fflush): On glibc systems, invoke
17429         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17430         clear_ungetc_buffer after fetching the stream's position, not before.
17431
17432 2009-01-15  Bruno Haible  <bruno@clisp.org>
17433
17434         Make fflush-after-ungetc POSIX compliant on glibc systems.
17435         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17436         after ungetc.
17437         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17438         (rpl_fflush): On glibc systems, simply call the system's fflush
17439         function after clearing the ungetc buffer.
17440         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17441         Instead, lseek only to the end of file, then use the system's fseeko
17442         for the rest. On glibc systems, reset the EOF indicator bit.
17443
17444 2009-01-15  Jim Meyering  <meyering@redhat.com>
17445
17446         openmp.m4: revert quote-adding change, for portability to older autoconf
17447         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17448         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17449         Simon Josefsson noticed the problem when using autoconf-2.61.
17450
17451 2009-01-15  Bruno Haible  <bruno@clisp.org>
17452
17453         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17454         * tests/test-fflush2.c (ASSERT): Always fail.
17455         (main): Add two tests for fflush() after ungetc(), taking into account
17456         the Austin Group's clarification.
17457         Suggested by Eric Blake.
17458
17459 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17460
17461         mktime.m4: remove K&R-style function prototypes
17462         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17463         for the Sun C++ compiler.
17464
17465 2009-01-14  Bruno Haible  <bruno@clisp.org>
17466
17467         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17468         while including <wchar.h>.
17469         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17470         the system's <wchar.h> file.
17471         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17472
17473 2009-01-14  Bruno Haible  <bruno@clisp.org>
17474
17475         * m4/csharp.m4: Don't mention gettext on the serial number line.
17476         * m4/csharpexec.m4: Likewise.
17477         * m4/eaccess.m4: Likewise.
17478         * m4/javaexec.m4: Likewise.
17479         * m4/sig_atomic_t.m4: Likewise.
17480         * m4/tmpdir.m4: Likewise.
17481         * m4/intldir.m4: Bump gettext version.
17482         * m4/lib-ld.m4: Likewise.
17483
17484 2009-01-14  Bruno Haible  <bruno@clisp.org>
17485
17486         * lib/progname.c (set_program_name): Add more comments.
17487         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17488
17489 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17490
17491         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17492         were sys/stat.h does not define it.
17493
17494 2009-01-14  Jim Meyering  <meyering@redhat.com>
17495
17496         many *.m4 files: improve m4 quoting
17497         99% of this change was performed by running the following commands:
17498         git ls-files | grep '\.m4$' | xargs perl -pi \
17499           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17500           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17501           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17502           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17503         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17504         The remainder were to add Copyright dates, increment serial numbers,
17505         undo some changes in comments, exclude m4/intl.m4, and add quotes
17506         around the "1" in ",1" where the unusual spacing prohibited the
17507         above regexps from doing the job.  For more details, see
17508         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17509         * m4/acl.m4: Modified.
17510         * m4/afs.m4: Likewise.
17511         * m4/alloca.m4: Likewise.
17512         * m4/argp.m4: Likewise.
17513         * m4/argz.m4: Likewise.
17514         * m4/atexit.m4: Likewise.
17515         * m4/bison-i18n.m4: Likewise.
17516         * m4/bison.m4: Likewise.
17517         * m4/byteswap.m4: Likewise.
17518         * m4/c-stack.m4: Likewise.
17519         * m4/c-strtod.m4: Likewise.
17520         * m4/calloc.m4: Likewise.
17521         * m4/canonicalize-lgpl.m4: Likewise.
17522         * m4/chown.m4: Likewise.
17523         * m4/clock_time.m4: Likewise.
17524         * m4/codeset.m4: Likewise.
17525         * m4/copy-file.m4: Likewise.
17526         * m4/csharp.m4: Likewise.
17527         * m4/csharpcomp.m4: Likewise.
17528         * m4/csharpexec.m4: Likewise.
17529         * m4/d-ino.m4: Likewise.
17530         * m4/d-type.m4: Likewise.
17531         * m4/dirfd.m4: Likewise.
17532         * m4/double-slash-root.m4: Likewise.
17533         * m4/eaccess.m4: Likewise.
17534         * m4/eealloc.m4: Likewise.
17535         * m4/environ.m4: Likewise.
17536         * m4/errno_h.m4: Likewise.
17537         * m4/euidaccess.m4: Likewise.
17538         * m4/execute.m4: Likewise.
17539         * m4/fatal-signal.m4: Likewise.
17540         * m4/fchdir.m4: Likewise.
17541         * m4/fcntl_h.m4: Likewise.
17542         * m4/fileblocks.m4: Likewise.
17543         * m4/filenamecat.m4: Likewise.
17544         * m4/findprog.m4: Likewise.
17545         * m4/flexmember.m4: Likewise.
17546         * m4/fnmatch.m4: Likewise.
17547         * m4/fopen.m4: Likewise.
17548         * m4/fpending.m4: Likewise.
17549         * m4/fprintf-posix.m4: Likewise.
17550         * m4/free.m4: Likewise.
17551         * m4/frexp.m4: Likewise.
17552         * m4/frexpl.m4: Likewise.
17553         * m4/fsusage.m4: Likewise.
17554         * m4/ftruncate.m4: Likewise.
17555         * m4/gc-camellia.m4: Likewise.
17556         * m4/gc-random.m4: Likewise.
17557         * m4/gc.m4: Likewise.
17558         * m4/getaddrinfo.m4: Likewise.
17559         * m4/getcwd-abort-bug.m4: Likewise.
17560         * m4/getcwd-path-max.m4: Likewise.
17561         * m4/getdate.m4: Likewise.
17562         * m4/getdomainname.m4: Likewise.
17563         * m4/getgroups.m4: Likewise.
17564         * m4/gethostname.m4: Likewise.
17565         * m4/gethrxtime.m4: Likewise.
17566         * m4/getline.m4: Likewise.
17567         * m4/getloadavg.m4: Likewise.
17568         * m4/getndelim2.m4: Likewise.
17569         * m4/getpass.m4: Likewise.
17570         * m4/gettext.m4: Likewise.
17571         * m4/gettime.m4: Likewise.
17572         * m4/gettimeofday.m4: Likewise.
17573         * m4/gnulib-common.m4: Likewise.
17574         * m4/group-member.m4: Likewise.
17575         * m4/host-os.m4: Likewise.
17576         * m4/iconv.m4: Likewise.
17577         * m4/iconv_open.m4: Likewise.
17578         * m4/inet_ntop.m4: Likewise.
17579         * m4/inet_pton.m4: Likewise.
17580         * m4/inline.m4: Likewise.
17581         * m4/intldir.m4: Likewise.
17582         * m4/intlmacosx.m4: Likewise.
17583         * m4/intmax.m4: Likewise.
17584         * m4/intmax_t.m4: Likewise.
17585         * m4/inttypes.m4: Likewise.
17586         * m4/inttypes_h.m4: Likewise.
17587         * m4/inttypes-pri.m4: Likewise.
17588         * m4/isapipe.m4: Likewise.
17589         * m4/isnand.m4: Likewise.
17590         * m4/isnanf.m4: Likewise.
17591         * m4/isnanl.m4: Likewise.
17592         * m4/javacomp.m4: Likewise.
17593         * m4/javaexec.m4: Likewise.
17594         * m4/jm-winsz1.m4: Likewise.
17595         * m4/jm-winsz2.m4: Likewise.
17596         * m4/lchown.m4: Likewise.
17597         * m4/lcmessage.m4: Likewise.
17598         * m4/ldexpl.m4: Likewise.
17599         * m4/lib-ld.m4: Likewise.
17600         * m4/lib-link.m4: Likewise.
17601         * m4/libsigsegv.m4: Likewise.
17602         * m4/link-follow.m4: Likewise.
17603         * m4/localcharset.m4: Likewise.
17604         * m4/locale-fr.m4: Likewise.
17605         * m4/locale-ja.m4: Likewise.
17606         * m4/locale-tr.m4: Likewise.
17607         * m4/locale-zh.m4: Likewise.
17608         * m4/lock.m4: Likewise.
17609         * m4/longlong.m4: Likewise.
17610         * m4/ls-mntd-fs.m4: Likewise.
17611         * m4/lstat.m4: Likewise.
17612         * m4/malloc.m4: Likewise.
17613         * m4/mathl.m4: Likewise.
17614         * m4/mbrtowc.m4: Likewise.
17615         * m4/mbstate_t.m4: Likewise.
17616         * m4/mbswidth.m4: Likewise.
17617         * m4/memchr.m4: Likewise.
17618         * m4/memcmp.m4: Likewise.
17619         * m4/memcpy.m4: Likewise.
17620         * m4/memmem.m4: Likewise.
17621         * m4/memmove.m4: Likewise.
17622         * m4/mempcpy.m4: Likewise.
17623         * m4/memrchr.m4: Likewise.
17624         * m4/memset.m4: Likewise.
17625         * m4/minmax.m4: Likewise.
17626         * m4/mkdir-slash.m4: Likewise.
17627         * m4/mkdtemp.m4: Likewise.
17628         * m4/mktime.m4: Likewise.
17629         * m4/mmap-anon.m4: Likewise.
17630         * m4/mountlist.m4: Likewise.
17631         * m4/nanosleep.m4: Likewise.
17632         * m4/nls.m4: Likewise.
17633         * m4/nocrash.m4: Likewise.
17634         * m4/open.m4: Likewise.
17635         * m4/openat.m4: Likewise.
17636         * m4/openmp.m4: Likewise.
17637         * m4/pathmax.m4: Likewise.
17638         * m4/perl.m4: Likewise.
17639         * m4/physmem.m4: Likewise.
17640         * m4/pipe.m4: Likewise.
17641         * m4/po.m4: Likewise.
17642         * m4/poll.m4: Likewise.
17643         * m4/posixtm.m4: Likewise.
17644         * m4/posixver.m4: Likewise.
17645         * m4/printf-frexp.m4: Likewise.
17646         * m4/printf-frexpl.m4: Likewise.
17647         * m4/printf-posix.m4: Likewise.
17648         * m4/printf-posix-rpl.m4: Likewise.
17649         * m4/printf.m4: Likewise.
17650         * m4/progtest.m4: Likewise.
17651         * m4/putenv.m4: Likewise.
17652         * m4/readline.m4: Likewise.
17653         * m4/readlink.m4: Likewise.
17654         * m4/readutmp.m4: Likewise.
17655         * m4/realloc.m4: Likewise.
17656         * m4/regex.m4: Likewise.
17657         * m4/relocatable.m4: Likewise.
17658         * m4/relocatable-lib.m4: Likewise.
17659         * m4/rename-dest-slash.m4: Likewise.
17660         * m4/rename.m4: Likewise.
17661         * m4/rmdir-errno.m4: Likewise.
17662         * m4/rmdir.m4: Likewise.
17663         * m4/roundf.m4: Likewise.
17664         * m4/roundl.m4: Likewise.
17665         * m4/rpmatch.m4: Likewise.
17666         * m4/save-cwd.m4: Likewise.
17667         * m4/selinux-selinux-h.m4: Likewise.
17668         * m4/setenv.m4: Likewise.
17669         * m4/settime.m4: Likewise.
17670         * m4/sig2str.m4: Likewise.
17671         * m4/sig_atomic_t.m4: Likewise.
17672         * m4/signalblocking.m4: Likewise.
17673         * m4/signbit.m4: Likewise.
17674         * m4/sigpipe.m4: Likewise.
17675         * m4/sockets.m4: Likewise.
17676         * m4/sockpfaf.m4: Likewise.
17677         * m4/st_dm_mode.m4: Likewise.
17678         * m4/stat-time.m4: Likewise.
17679         * m4/stdbool.m4: Likewise.
17680         * m4/stdint.m4: Likewise.
17681         * m4/stdint_h.m4: Likewise.
17682         * m4/stpcpy.m4: Likewise.
17683         * m4/stpncpy.m4: Likewise.
17684         * m4/strcase.m4: Likewise.
17685         * m4/strchrnul.m4: Likewise.
17686         * m4/strcspn.m4: Likewise.
17687         * m4/strdup.m4: Likewise.
17688         * m4/strftime.m4: Likewise.
17689         * m4/strndup.m4: Likewise.
17690         * m4/strnlen.m4: Likewise.
17691         * m4/strpbrk.m4: Likewise.
17692         * m4/strptime.m4: Likewise.
17693         * m4/strsep.m4: Likewise.
17694         * m4/strtod.m4: Likewise.
17695         * m4/strtoimax.m4: Likewise.
17696         * m4/strtok_r.m4: Likewise.
17697         * m4/strtol.m4: Likewise.
17698         * m4/strtoll.m4: Likewise.
17699         * m4/strtoul.m4: Likewise.
17700         * m4/strtoull.m4: Likewise.
17701         * m4/strtoumax.m4: Likewise.
17702         * m4/strverscmp.m4: Likewise.
17703         * m4/threadlib.m4: Likewise.
17704         * m4/timegm.m4: Likewise.
17705         * m4/tm_gmtoff.m4: Likewise.
17706         * m4/tmpdir.m4: Likewise.
17707         * m4/tmpfile.m4: Likewise.
17708         * m4/tzset.m4: Likewise.
17709         * m4/uintmax_t.m4: Likewise.
17710         * m4/unlinkdir.m4: Likewise.
17711         * m4/unlocked-io.m4: Likewise.
17712         * m4/uptime.m4: Likewise.
17713         * m4/userspec.m4: Likewise.
17714         * m4/utimbuf.m4: Likewise.
17715         * m4/utime.m4: Likewise.
17716         * m4/utimes-null.m4: Likewise.
17717         * m4/utimes.m4: Likewise.
17718         * m4/vararrays.m4: Likewise.
17719         * m4/vasnprintf.m4: Likewise.
17720         * m4/vfprintf-posix.m4: Likewise.
17721         * m4/vprintf-posix.m4: Likewise.
17722         * m4/wait-process.m4: Likewise.
17723         * m4/wchar_t.m4: Likewise.
17724         * m4/wint_t.m4: Likewise.
17725         * m4/write-any-file.m4: Likewise.
17726         * m4/yield.m4: Likewise.
17727
17728 2009-01-13  Bruno Haible  <bruno@clisp.org>
17729
17730         Avoid test-copy-file.sh failures when ACL support insufficient.
17731         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
17732         TESTS_ENVIRONMENT.
17733         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
17734         Reported by Jim Meyering.
17735
17736 2009-01-13  Bruno Haible  <bruno@clisp.org>
17737
17738         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
17739         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
17740         * modules/unistdio/u8-printf-parse (Files): Likewise.
17741         * modules/unistdio/u32-printf-parse (Files): Likewise.
17742         * modules/unistdio/ulc-printf-parse (Files): Likewise.
17743
17744 2009-01-13  Simon Josefsson  <simon@josefsson.org>
17745
17746         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
17747         and m4/inttypes_h.m4 too.
17748
17749 2009-01-12  Eric Blake  <ebb9@byu.net>
17750
17751         tests: IRIX 6.2 cc can't compile -0.0 into .data
17752         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
17753         rather than at compile-time.
17754         * tests/test-floorl.c (minus_zero): Likewise.
17755         * tests/test-frexpl.c (minus_zero): Likewise.
17756         * tests/test-isnan.c (minus_zerol): Likewise.
17757         * tests/test-isnanl.h (minus_zero): Likewise.
17758         * tests/test-ldexpl.c (minus_zero): Likewise.
17759         * tests/test-roundl.c (minus_zero): Likewise.
17760         * tests/test-signbit.c (minus_zerol): Likewise.
17761         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
17762         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
17763         * tests/test-truncl.c (minus_zero): Likewise.
17764         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
17765         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
17766         Reported by Tom G. Christensen and Nelson H. F. Beebe.
17767
17768 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17769
17770         regex: fix glibc bug 9697
17771         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
17772         handling.
17773
17774 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17775
17776         regex: fix glibc bug 697
17777         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
17778         being NULL also if there are no backreferences.
17779
17780 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
17781
17782         regex: merge glibc changes
17783         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
17784         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
17785         re_string_skip_chars, re_string_reconstruct): Likewise.
17786         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
17787
17788 2009-01-07  Jim Meyering  <meyering@redhat.com>
17789
17790         poll: filter through cppi
17791         * lib/poll.c: Indent cpp directives to reflect nesting.
17792
17793 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
17794
17795         poll: don't return uninitialized
17796         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
17797
17798 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
17799
17800         avoid compile failure on AIX 6.1
17801         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
17802         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
17803
17804 2009-01-04  Jim Meyering  <meyering@redhat.com>
17805
17806         remove duplicate inclusion of <stdio.h>
17807         * tests/test-fprintf-posix.c: Likewise.
17808         * tests/test-printf-posix.c: Likewise.
17809         * tests/test-snprintf-posix.c: Likewise.
17810         * tests/test-sprintf-posix.c: Likewise.
17811         * tests/test-vasprintf-posix.c: Likewise.
17812         * tests/test-vfprintf-posix.c: Likewise.
17813         * tests/test-vprintf-posix.c: Likewise.
17814         * tests/test-vsnprintf-posix.c: Likewise.
17815         * tests/test-vsprintf-posix.c: Likewise.
17816
17817 2009-01-03  Jim Meyering  <meyering@redhat.com>
17818
17819         gnulib-tool: fix sed-based filtering
17820         * gnulib-tool (func_filter_filelist): Remove extra backslash
17821         in sed_fff_filter definition.
17822
17823 2009-01-02  Jim Meyering  <meyering@redhat.com>
17824
17825         strftime: avoid compilation failure on Solaris 2.6
17826         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
17827         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
17828         Don't #define mbrlen or mbsinit, since now they're guaranteed to
17829         be available.  Reported by Tom G. Christensen.  Details in
17830         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
17831
17832 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17833             Bruno Haible  <bruno@clisp.org>
17834
17835         Speed up gnulib-tool by doing more string processing through shell
17836         built-ins.
17837         * gnulib-tool (fast_func_append): New variable.
17838         (func_remove_prefix, func_remove_suffix): New functions.
17839         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
17840         (func_filter_filelist): New function.
17841         (func_get_dependencies): Use func_remove_suffix instead of sed.
17842         (func_get_automake_snippet): Use func_filter_filelist instead of a
17843         subshell and sed invocation.
17844
17845 2009-01-01  Bruno Haible  <bruno@clisp.org>
17846
17847         Fix a security bug.
17848         * gnulib-tool (func_import, import, update): Don't allow the characters
17849         '"', '$', '`', '\' in macro arguments that become part of commands that
17850         are evaluated.
17851
17852 2009-01-01  Bruno Haible  <bruno@clisp.org>
17853
17854         * gnulib-tool (func_reset_sigpipe): Add more comments.
17855
17856 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17857
17858         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
17859         func_emit_tests_Makefile_am, func_import): Abort loops early if we
17860         already know the answer.
17861
17862 2009-01-01  Jim Meyering  <meyering@redhat.com>
17863
17864         * lib/version-etc.c (version_etc_va): Update copyright year.
17865
17866 2008-12-30  Bruno Haible  <bruno@clisp.org>
17867
17868         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
17869         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
17870         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
17871
17872 2008-12-29  Eric Blake  <ebb9@byu.net>
17873
17874         multiarch: avoid autoconf AC_REQUIRE bug
17875         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
17876         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
17877         2.63 and older.
17878         Reported by Bruno Haible, and analyzed in
17879         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
17880
17881 2008-12-29  Bruno Haible  <bruno@clisp.org>
17882
17883         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
17884         files in subdirectories correctly.
17885         Reported by Ralf Wildenhues.
17886
17887 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17888
17889         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
17890         rather than 'join FILE -', for Solaris join.
17891
17892 2008-12-29  Bruno Haible  <bruno@clisp.org>
17893
17894         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
17895         quoting.
17896         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17897         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
17898         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
17899         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
17900         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17901         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17902         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17903         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17904         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17905         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17906         * m4/nls.m4 (AM_NLS): Likewise.
17907         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
17908         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17909         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17910         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17911         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17912         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17913         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
17914         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17915         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17916         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17917         * m4/xsize.m4 (gl_XSIZE): Likewise.
17918         Suggested by Jim Meyering.
17919
17920 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17921
17922         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
17923         * lib/parse-duration.c: use a switch instead of cascading if's.
17924
17925 2008-12-29  Eric Blake  <ebb9@byu.net>
17926
17927         wchar.h: supply WEOF on Irix 5.3
17928         * lib/wchar.in.h (wint_t): Also supply WEOF.
17929         * lib/wctype.in.h (wint_t): Likewise.
17930         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
17931         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
17932         Reported by Tom G. Christensen.
17933
17934 2008-12-26  Bruno Haible  <bruno@clisp.org>
17935
17936         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
17937         i486, i586, i686.
17938
17939 2008-12-26  Bruno Haible  <bruno@clisp.org>
17940
17941         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
17942
17943 2008-12-26  Bruno Haible  <bruno@clisp.org>
17944
17945         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
17946         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
17947         not __STDC_CONSTANT_MACROS.
17948         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
17949
17950 2008-12-25  Bruno Haible  <bruno@clisp.org>
17951
17952         Add support for universal builds to vasnprintf.
17953         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
17954         universal builds, guess no.
17955         * modules/vasnprintf-posix (Depends-on): Add multiarch.
17956         * modules/vasprintf-posix (Depends-on): Likewise.
17957         * modules/fprintf-posix (Depends-on): Likewise.
17958         * modules/vfprintf-posix (Depends-on): Likewise.
17959         * modules/snprintf-posix (Depends-on): Likewise.
17960         * modules/vsnprintf-posix (Depends-on): Likewise.
17961         * modules/sprintf-posix (Depends-on): Likewise.
17962         * modules/vsprintf-posix (Depends-on): Likewise.
17963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17968         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17970
17971         Add support for universal builds to <inttypes.h>.
17972         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
17973         _SCNu64_PREFIX): In Apple
17974         universal builds, define directly, using _LP64.
17975         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
17976         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
17977         * modules/inttypes (Depends-on): Add multiarch.
17978         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17979
17980         Add support for universal builds to <stdint.h>.
17981         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
17982         universal builds, define directly, using _LP64.
17983         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
17984         Apple universal builds, don't test for the size and suffix of ptrdiff_t
17985         and size_t.
17986         * modules/stdint (Depends-on): Add multiarch.
17987         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
17988
17989         New module 'multiarch'.
17990         * modules/multiarch: New file.
17991         * m4/multiarch.m4: New file.
17992
17993 2008-12-25  Bruno Haible  <bruno@clisp.org>
17994
17995         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
17996
17997 2008-12-25  Bruno Haible  <bruno@clisp.org>
17998
17999         * modules/btowc (License): Relicense under LGPLv2+.
18000         * modules/mbsinit (License): Likewise.
18001         * modules/mbrtowc (License): Likewise.
18002         * modules/wcrtomb (License): Likewise.
18003         * modules/streq (License): Likewise.
18004         Reported by David Lutterkort <lutter@redhat.com>.
18005
18006 2008-12-23  Bruno Haible  <bruno@clisp.org>
18007
18008         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18009
18010 2008-12-23  Bruno Haible  <bruno@clisp.org>
18011
18012         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18014         GETADDRINFO_LIB, not in LIBS.
18015         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18016         * modules/canon-host (Link): Likewise.
18017         * NEWS: Mention the change.
18018         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18019         GETADDRINFO_LIB.
18020
18021 2008-12-22  Bruno Haible  <bruno@clisp.org>
18022
18023         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18024         * doc/posix-functions/iswalpha_l.texi: Likewise.
18025         * doc/posix-functions/iswblank_l.texi: Likewise.
18026         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18027         * doc/posix-functions/iswctype_l.texi: Likewise.
18028         * doc/posix-functions/iswdigit_l.texi: Likewise.
18029         * doc/posix-functions/iswgraph_l.texi: Likewise.
18030         * doc/posix-functions/iswlower_l.texi: Likewise.
18031         * doc/posix-functions/iswprint_l.texi: Likewise.
18032         * doc/posix-functions/iswpunct_l.texi: Likewise.
18033         * doc/posix-functions/iswspace_l.texi: Likewise.
18034         * doc/posix-functions/iswupper_l.texi: Likewise.
18035         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18036         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18037         * doc/posix-functions/open_wmemstream.texi: Likewise.
18038         * doc/posix-functions/swscanf.texi: Likewise.
18039         * doc/posix-functions/towctrans_l.texi: Likewise.
18040         * doc/posix-functions/towlower.texi: Likewise.
18041         * doc/posix-functions/towlower_l.texi: Likewise.
18042         * doc/posix-functions/towupper.texi: Likewise.
18043         * doc/posix-functions/towupper_l.texi: Likewise.
18044         * doc/posix-functions/vfwprintf.texi: Likewise.
18045         * doc/posix-functions/vfwscanf.texi: Likewise.
18046         * doc/posix-functions/vswscanf.texi: Likewise.
18047         * doc/posix-functions/vwprintf.texi: Likewise.
18048         * doc/posix-functions/vwscanf.texi: Likewise.
18049         * doc/posix-functions/wcpcpy.texi: Likewise.
18050         * doc/posix-functions/wcpncpy.texi: Likewise.
18051         * doc/posix-functions/wcscasecmp.texi: Likewise.
18052         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18053         * doc/posix-functions/wcscoll_l.texi: Likewise.
18054         * doc/posix-functions/wcsdup.texi: Likewise.
18055         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18056         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18057         * doc/posix-functions/wcsnlen.texi: Likewise.
18058         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18059         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18060         * doc/posix-functions/wctrans_l.texi: Likewise.
18061         * doc/posix-functions/wctype_l.texi: Likewise.
18062         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18063         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18064         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18065         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18066         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18067         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18068         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18069         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18070         * doc/glibc-functions/wcschrnul.texi: Likewise.
18071         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18072         * doc/glibc-functions/wcstod_l.texi: Likewise.
18073         * doc/glibc-functions/wcstof_l.texi: Likewise.
18074         * doc/glibc-functions/wcstol_l.texi: Likewise.
18075         * doc/glibc-functions/wcstold_l.texi: Likewise.
18076         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18077         * doc/glibc-functions/wcstoq.texi: Likewise.
18078         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18079         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18080         * doc/glibc-functions/wcstouq.texi: Likewise.
18081         * doc/glibc-functions/wmempcpy.texi: Likewise.
18082
18083 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18084             Eric Blake  <ebb9@byu.net>
18085             Paolo Bonzini  <bonzini@gnu.org>
18086             Bruno Haible  <bruno@clisp.org>
18087
18088         Make c-stack work on Haiku.
18089         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18090         (c_stack_action): Use SA_ONSTACK flag.
18091
18092 2008-12-22  Bruno Haible  <bruno@clisp.org>
18093
18094         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18095
18096 2008-12-22  Bruno Haible  <bruno@clisp.org>
18097
18098         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18099         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18100         being overridden.
18101         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18102         New macros.
18103         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18105         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18106         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18107
18108 2008-12-22  Bruno Haible  <bruno@clisp.org>
18109
18110         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18111         from test code.
18112
18113 2008-12-22  Eric Blake  <ebb9@byu.net>
18114
18115         Avoid gcc warnings on cygwin.
18116         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18117         Avoid unused variable.
18118         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18119         Likewise.
18120
18121 2008-12-22  Bruno Haible  <bruno@clisp.org>
18122
18123         Remove HAVE_MBRTOWC conditionals.
18124         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18125         (mbscasecmp): Assume mbrtowc function.
18126         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18127         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18128         * lib/mbschr.c: Include mbuiter.h unconditionally.
18129         (mbschr): Assume mbrtowc function.
18130         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18131         (mbscspn): Assume mbrtowc function.
18132         * lib/mbslen.c: Include mbuiter.h unconditionally.
18133         (mbslen): Assume mbrtowc function.
18134         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18135         (mbsncasecmp): Assume mbrtowc function.
18136         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18137         (mbsnlen): Assume mbrtowc function.
18138         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18139         (mbspbrk): Assume mbrtowc function.
18140         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18141         (mbspcasecmp): Assume mbrtowc function.
18142         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18143         (mbsrchr): Assume mbrtowc function.
18144         * lib/mbssep.c: Include mbuiter.h unconditionally.
18145         (mbssep): Assume mbrtowc function.
18146         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18147         (mbsspn): Assume mbrtowc function.
18148         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18149         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18150         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18151         (mbstok_r): Assume mbrtowc function.
18152         * lib/propername.c: Include mbuiter.h unconditionally.
18153         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18154         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18155         (trim2): Assume mbrtowc function.
18156         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18157         (mbsnwidth): Assume mbrtowc function.
18158         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18159         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18160         fallback definitions.
18161         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18162
18163 2008-12-22  Bruno Haible  <bruno@clisp.org>
18164
18165         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18166
18167 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18168
18169         * modules/regex: Request emulations for the mb*/wc* functions we need.
18170         * m4/regex.m4: Don't look for those functions here.
18171         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18172
18173 2008-12-22  Bruno Haible  <bruno@clisp.org>
18174
18175         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18176
18177 2008-12-21  Bruno Haible  <bruno@clisp.org>
18178
18179         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18180         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18181         (Include): Remove conditionalization.
18182         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18183         (Include): Remove conditionalization.
18184         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18185         (Include): Remove conditionalization.
18186         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18187         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18188         * NEWS: Mention the change.
18189         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18190         via Sergey Poznyakoff <gray@gnu.org.ua>.
18191
18192 2008-12-21  Bruno Haible  <bruno@clisp.org>
18193
18194         * MODULES.html.sh (Extended multibyte and wide character utilities
18195         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18196         wcrtomb, wcsrtombs.
18197         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18198         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18199         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18200         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18201
18202 2008-12-21  Bruno Haible  <bruno@clisp.org>
18203
18204         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18205
18206 2008-12-21  Bruno Haible  <bruno@clisp.org>
18207
18208         * modules/wcsnrtombs-tests: New file.
18209         * tests/test-wcsnrtombs1.sh: New file.
18210         * tests/test-wcsnrtombs2.sh: New file.
18211         * tests/test-wcsnrtombs3.sh: New file.
18212         * tests/test-wcsnrtombs4.sh: New file.
18213         * tests/test-wcsnrtombs.c: New file.
18214
18215         New module 'wcsnrtombs'.
18216         * lib/wchar.in.h (wcsnrtombs): New declaration.
18217         * lib/wcsnrtombs.c: New file.
18218         * lib/wcsrtombs-state.c: New file.
18219         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18220         (internal_state): Remove variable.
18221         * m4/wcsnrtombs.m4: New file.
18222         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18223         compilation units.
18224         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18225         HAVE_WCSNRTOMBS.
18226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18227         HAVE_WCSNRTOMBS.
18228         * modules/wcsnrtombs: New file.
18229         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18230         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18231
18232 2008-12-21  Bruno Haible  <bruno@clisp.org>
18233
18234         * modules/wcsrtombs-tests: New file.
18235         * tests/test-wcsrtombs1.sh: New file.
18236         * tests/test-wcsrtombs2.sh: New file.
18237         * tests/test-wcsrtombs3.sh: New file.
18238         * tests/test-wcsrtombs4.sh: New file.
18239         * tests/test-wcsrtombs.c: New file.
18240
18241         New module 'wcsrtombs'.
18242         * lib/wchar.in.h (wcsrtombs): New declaration.
18243         * lib/wcsrtombs.c: New file.
18244         * m4/wcsrtombs.m4: New file.
18245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18246         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18248         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18249         * modules/wcsrtombs: New file.
18250         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18251         bugs.
18252
18253 2008-12-21  Bruno Haible  <bruno@clisp.org>
18254
18255         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18256         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18257         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18258         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18259         if not correct.
18260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18261         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18262         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18263         m4/locale-zh.m4, m4/codeset.m4.
18264         * doc/posix-functions/wcrtomb.texi: Document the bug.
18265
18266 2008-12-21  Bruno Haible  <bruno@clisp.org>
18267
18268         Work around a btowc() bug on IRIX 6.5.
18269         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18270         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18271         REPLACE_WTOBC if not.
18272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18273         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18274         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18275
18276 2008-12-21  Bruno Haible  <bruno@clisp.org>
18277
18278         * modules/wcrtomb-tests: New file.
18279         * tests/test-wcrtomb.sh: New file.
18280         * tests/test-wcrtomb.c: New file.
18281
18282         New module 'wcrtomb'.
18283         * lib/wchar.in.h (wcrtomb): New declaration.
18284         * lib/wcrtomb.c: New file.
18285         * m4/wcrtomb.m4: New file.
18286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18287         HAVE_WCRTOMB.
18288         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18289         HAVE_WCRTOMB.
18290         * modules/wcrtomb: New file.
18291         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18292
18293 2008-12-21  Bruno Haible  <bruno@clisp.org>
18294
18295         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18296         * modules/mbsrtowcs (Files): Likewise.
18297         * modules/wctob (Files): Likewise.
18298         * modules/c-strcase-tests (Files): Likewise.
18299         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18300         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18301         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18302         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18303         * modules/vasnprintf-posix-tests (Files): Likewise.
18304
18305 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18306
18307         gitlog-to-changelog: pass all command-line arguments to git-log
18308         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18309         it is sometimes convenient to filter the commits in various ways.
18310         gitlog-to-changelog only allows --since to specify a start date,
18311         but git-log itself supports many other filtering mechanisms.
18312         At the moment, I want to filter by branch name.  Rather than
18313         adding a --branch option to gitlog-to-changelog, it seems more
18314         flexible to simply pass all options directly to git-log and let
18315         git do the work.  Notice that this effectively makes --since a
18316         redundant option for gitlog-to-changelog, but removing it would
18317         require current usage to change since calls would then require
18318         an additional '--'.
18319
18320 2008-12-21  Bruno Haible  <bruno@clisp.org>
18321
18322         * modules/mbsnrtowcs-tests: New file.
18323         * tests/test-mbsnrtowcs1.sh: New file.
18324         * tests/test-mbsnrtowcs2.sh: New file.
18325         * tests/test-mbsnrtowcs3.sh: New file.
18326         * tests/test-mbsnrtowcs4.sh: New file.
18327         * tests/test-mbsnrtowcs.c: New file.
18328
18329         New module 'mbsnrtowcs'.
18330         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18331         * lib/mbsnrtowcs.c: New file.
18332         * lib/mbsrtowcs-state.c: New file.
18333         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18334         (internal_state): Remove variable.
18335         * m4/mbsnrtowcs.m4: New file.
18336         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18337         compilation units.
18338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18339         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18340         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18341         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18342         * modules/mbsnrtowcs: New file.
18343         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18344         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18345         portability problem.
18346
18347 2008-12-21  Bruno Haible  <bruno@clisp.org>
18348
18349         Work around mbsrtowcs bug.
18350         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18351         (gl_FUNC_MBSRTOWCS): Invoke it.
18352         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18353         m4/locale-zh.m4.
18354         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18355
18356 2008-12-21  Bruno Haible  <bruno@clisp.org>
18357
18358         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18359
18360 2008-12-21  Bruno Haible  <bruno@clisp.org>
18361
18362         Update doc for AIX.
18363         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18364         16-bit wchar_t type.
18365         * doc/posix-functions/btowc.texi: Likewise.
18366         * doc/posix-functions/fgetwc.texi: Likewise.
18367         * doc/posix-functions/fgetws.texi: Likewise.
18368         * doc/posix-functions/fputwc.texi: Likewise.
18369         * doc/posix-functions/fputws.texi: Likewise.
18370         * doc/posix-functions/fwide.texi: Likewise.
18371         * doc/posix-functions/fwprintf.texi: Likewise.
18372         * doc/posix-functions/fwscanf.texi: Likewise.
18373         * doc/posix-functions/getwchar.texi: Likewise.
18374         * doc/posix-functions/getwc.texi: Likewise.
18375         * doc/posix-functions/iswalnum.texi: Likewise.
18376         * doc/posix-functions/iswalpha.texi: Likewise.
18377         * doc/posix-functions/iswblank.texi: Likewise.
18378         * doc/posix-functions/iswcntrl.texi: Likewise.
18379         * doc/posix-functions/iswctype.texi: Likewise.
18380         * doc/posix-functions/iswdigit.texi: Likewise.
18381         * doc/posix-functions/iswgraph.texi: Likewise.
18382         * doc/posix-functions/iswlower.texi: Likewise.
18383         * doc/posix-functions/iswprint.texi: Likewise.
18384         * doc/posix-functions/iswpunct.texi: Likewise.
18385         * doc/posix-functions/iswspace.texi: Likewise.
18386         * doc/posix-functions/iswupper.texi: Likewise.
18387         * doc/posix-functions/iswxdigit.texi: Likewise.
18388         * doc/posix-functions/mbrtowc.texi: Likewise.
18389         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18390         * doc/posix-functions/mbstowcs.texi: Likewise.
18391         * doc/posix-functions/mbtowc.texi: Likewise.
18392         * doc/posix-functions/putwchar.texi: Likewise.
18393         * doc/posix-functions/putwc.texi: Likewise.
18394         * doc/posix-functions/swprintf.texi: Likewise.
18395         * doc/posix-functions/tolower.texi: Likewise.
18396         * doc/posix-functions/toupper.texi: Likewise.
18397         * doc/posix-functions/towctrans.texi: Likewise.
18398         * doc/posix-functions/ungetwc.texi: Likewise.
18399         * doc/posix-functions/vswprintf.texi: Likewise.
18400         * doc/posix-functions/wcrtomb.texi: Likewise.
18401         * doc/posix-functions/wcscat.texi: Likewise.
18402         * doc/posix-functions/wcschr.texi: Likewise.
18403         * doc/posix-functions/wcscmp.texi: Likewise.
18404         * doc/posix-functions/wcscoll.texi: Likewise.
18405         * doc/posix-functions/wcscpy.texi: Likewise.
18406         * doc/posix-functions/wcscspn.texi: Likewise.
18407         * doc/posix-functions/wcsftime.texi: Likewise.
18408         * doc/posix-functions/wcslen.texi: Likewise.
18409         * doc/posix-functions/wcsncat.texi: Likewise.
18410         * doc/posix-functions/wcsncmp.texi: Likewise.
18411         * doc/posix-functions/wcsncpy.texi: Likewise.
18412         * doc/posix-functions/wcspbrk.texi: Likewise.
18413         * doc/posix-functions/wcsrchr.texi: Likewise.
18414         * doc/posix-functions/wcsrtombs.texi: Likewise.
18415         * doc/posix-functions/wcsspn.texi: Likewise.
18416         * doc/posix-functions/wcsstr.texi: Likewise.
18417         * doc/posix-functions/wcstod.texi: Likewise.
18418         * doc/posix-functions/wcstof.texi: Likewise.
18419         * doc/posix-functions/wcstoimax.texi: Likewise.
18420         * doc/posix-functions/wcstok.texi: Likewise.
18421         * doc/posix-functions/wcstold.texi: Likewise.
18422         * doc/posix-functions/wcstoll.texi: Likewise.
18423         * doc/posix-functions/wcstol.texi: Likewise.
18424         * doc/posix-functions/wcstombs.texi: Likewise.
18425         * doc/posix-functions/wcstoull.texi: Likewise.
18426         * doc/posix-functions/wcstoul.texi: Likewise.
18427         * doc/posix-functions/wcstoumax.texi: Likewise.
18428         * doc/posix-functions/wcswidth.texi: Likewise.
18429         * doc/posix-functions/wcsxfrm.texi: Likewise.
18430         * doc/posix-functions/wctob.texi: Likewise.
18431         * doc/posix-functions/wctomb.texi: Likewise.
18432         * doc/posix-functions/wctrans.texi: Likewise.
18433         * doc/posix-functions/wctype.texi: Likewise.
18434         * doc/posix-functions/wcwidth.texi: Likewise.
18435         * doc/posix-functions/wmemchr.texi: Likewise.
18436         * doc/posix-functions/wmemcmp.texi: Likewise.
18437         * doc/posix-functions/wmemcpy.texi: Likewise.
18438         * doc/posix-functions/wmemmove.texi: Likewise.
18439         * doc/posix-functions/wmemset.texi: Likewise.
18440         * doc/posix-functions/wprintf.texi: Likewise.
18441         * doc/posix-functions/wscanf.texi: Likewise.
18442
18443 2008-12-21  Bruno Haible  <bruno@clisp.org>
18444
18445         Update doc for HP-UX 11.11.
18446         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18447         in HP-UX version 11.00, not in all versions of HP-UX 11.
18448         * doc/posix-functions/fwide.texi: Likewise.
18449         * doc/posix-functions/fwprintf.texi: Likewise.
18450         * doc/posix-functions/fwscanf.texi: Likewise.
18451         * doc/posix-functions/inet_ntop.texi: Likewise.
18452         * doc/posix-functions/inet_pton.texi: Likewise.
18453         * doc/posix-functions/mbrlen.texi: Likewise.
18454         * doc/posix-functions/mbrtowc.texi: Likewise.
18455         * doc/posix-functions/mbsinit.texi: Likewise.
18456         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18457         * doc/posix-functions/swprintf.texi: Likewise.
18458         * doc/posix-functions/swscanf.texi: Likewise.
18459         * doc/posix-functions/towctrans.texi: Likewise.
18460         * doc/posix-functions/vfwprintf.texi: Likewise.
18461         * doc/posix-functions/vswprintf.texi: Likewise.
18462         * doc/posix-functions/vwprintf.texi: Likewise.
18463         * doc/posix-functions/wcrtomb.texi: Likewise.
18464         * doc/posix-functions/wcsrtombs.texi: Likewise.
18465         * doc/posix-functions/wcsstr.texi: Likewise.
18466         * doc/posix-functions/wctob.texi: Likewise.
18467         * doc/posix-functions/wctrans.texi: Likewise.
18468         * doc/posix-functions/wmemchr.texi: Likewise.
18469         * doc/posix-functions/wmemcmp.texi: Likewise.
18470         * doc/posix-functions/wmemcpy.texi: Likewise.
18471         * doc/posix-functions/wmemmove.texi: Likewise.
18472         * doc/posix-functions/wmemset.texi: Likewise.
18473         * doc/posix-functions/wprintf.texi: Likewise.
18474         * doc/posix-functions/wscanf.texi: Likewise.
18475
18476 2008-12-21  Bruno Haible  <bruno@clisp.org>
18477
18478         Work around a portability problem.
18479         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18480         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18481
18482 2008-12-20  Bruno Haible  <bruno@clisp.org>
18483
18484         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18486         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18488         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18489
18490         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18491         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18492         set.
18493         (GNULIB_defined_mbstate_t): New macro.
18494         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18495         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18496         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18497         reuses the system's mbrtowc function but works around the bugs.
18498         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18499         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18500         macros.
18501         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18502         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18503         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18504         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18505         REPLACE_MBSINIT if mbsinit needs to be overridden.
18506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18507         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18508         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18509         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18510         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18511         m4/locale-zh.m4.
18512         (Depends): Add mbsinit.
18513         * modules/mbsinit (Depends): Add mbrtowc.
18514         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18515
18516 2008-12-20  Bruno Haible  <bruno@clisp.org>
18517
18518         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18519         so that there are no conversion errors on AIX.
18520         * tests/test-mbsrtowcs.c (main): LIkewise.
18521
18522 2008-12-20  Bruno Haible  <bruno@clisp.org>
18523
18524         Work around wctob bug on Solaris <= 9.
18525         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18526         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18528         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18529         * modules/wctob (Files): Add m4/locale-fr.m4.
18530         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18531
18532 2008-12-20  Bruno Haible  <bruno@clisp.org>
18533
18534         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18535         /dev/null.
18536         * tests/test-select-in.sh: Likewise.
18537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18538
18539 2008-12-20  Bruno Haible  <bruno@clisp.org>
18540
18541         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18542         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18543         Cygwin 1.5.x.
18544
18545 2008-12-20  Bruno Haible  <bruno@clisp.org>
18546
18547         Ensure mbstate_t is defined on HP-UX 11.11.
18548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18549         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18550         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18551         AC_USE_SYSTEM_EXTENSIONS.
18552         * modules/fnmatch (Depends-on): Add extensions.
18553         * modules/mbrlen (Depends-on): Likewise.
18554         * modules/mbrtowc (Depends-on): Likewise.
18555         * modules/mbsinit (Depends-on): Likewise.
18556         * modules/mbsrtowcs (Depends-on): Likewise.
18557         * modules/mbswidth (Depends-on): Likewise.
18558         * modules/quotearg (Depends-on): Likewise.
18559         * modules/strftime (Depends-on): Likewise.
18560
18561 2008-12-20  Bruno Haible  <bruno@clisp.org>
18562
18563         Ensure wctob is declared on IRIX 6.5.
18564         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18565         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18566         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18568         of HAVE_WCTOB.
18569         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18570         HAVE_WCTOB.
18571         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18572
18573 2008-12-19  Bruno Haible  <bruno@clisp.org>
18574
18575         * modules/mbsrtowcs-tests: New file.
18576         * tests/test-mbsrtowcs1.sh: New file.
18577         * tests/test-mbsrtowcs2.sh: New file.
18578         * tests/test-mbsrtowcs3.sh: New file.
18579         * tests/test-mbsrtowcs4.sh: New file.
18580         * tests/test-mbsrtowcs.c: New file.
18581
18582         New module 'mbsrtowcs'.
18583         * lib/wchar.in.h (mbsrtowcs): New declaration.
18584         * lib/mbsrtowcs.c: New file.
18585         * m4/mbsrtowcs.m4: New file.
18586         * modules/mbsrtowcs: New file.
18587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18588         HAVE_MBSRTOWCS.
18589         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18590         HAVE_MBSRTOWCS.
18591         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18592
18593 2008-12-19  Bruno Haible  <bruno@clisp.org>
18594
18595         New module 'mbrlen'.
18596         * lib/wchar.in.h (mbrlen): New declaration.
18597         * lib/mbrlen.c: New file.
18598         * m4/mbrlen.m4: New file.
18599         * modules/mbrlen: New file.
18600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18601         HAVE_MBRLEN.
18602         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18603         HAVE_MBRLEN.
18604         * doc/posix-functions/mbrlen.texi: Document the new module.
18605
18606 2008-12-19  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18609         * modules/mbrtowc (Depends-on): Add verify.
18610         Suggested by Paul Eggert.
18611
18612 2008-12-18  Bruno Haible  <bruno@clisp.org>
18613
18614         * modules/mbsinit-tests: New file.
18615         * tests/test-mbsinit.sh: New file.
18616         * tests/test-mbsinit.c: New file.
18617
18618 2008-12-18  Bruno Haible  <bruno@clisp.org>
18619
18620         * modules/mbrtowc-tests: New file.
18621         * tests/test-mbrtowc1.sh: New file.
18622         * tests/test-mbrtowc2.sh: New file.
18623         * tests/test-mbrtowc3.sh: New file.
18624         * tests/test-mbrtowc4.sh: New file.
18625         * tests/test-mbrtowc.c: New file.
18626
18627         New module 'mbrtowc'.
18628         * lib/wchar.in.h (mbstate_t): Override when the system does not have
18629         mbsinit and mbrtowc.
18630         (mbrtowc): New declaration.
18631         * lib/mbrtowc.c: New file.
18632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
18633         * modules/mbrtowc: New file.
18634         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
18635         HAVE_MBRTOWC.
18636         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
18637         HAVE_MBRTOWC.
18638         * doc/posix-functions/mbrtowc.texi: Document the new module.
18639
18640 2008-12-18  Bruno Haible  <bruno@clisp.org>
18641
18642         New module 'wctob'.
18643         * lib/wchar.in.h (wctob): New declaration.
18644         * lib/wctob.c: New file.
18645         * m4/wctob.m4: New file.
18646         * modules/wctob: New file.
18647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
18648         HAVE_WCTOB.
18649         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
18650         * doc/posix-functions/wctob.texi: Document the new module.
18651
18652 2008-12-18  Bruno Haible  <bruno@clisp.org>
18653
18654         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
18655         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
18656
18657 2008-12-18  Simon Josefsson  <simon@josefsson.org>
18658
18659         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
18660         G. Christensen" <tgc@jupiterrise.com>.
18661
18662         * lib/flock.c: Need to include errno.h.  Reported by "Tom
18663         G. Christensen" <tgc@jupiterrise.com>.
18664
18665         * lib/flock.c: Need to include string.h.  Reported by "Tom
18666         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
18667         <ebb9@byu.net>.
18668
18669 2008-12-18  Bruno Haible  <bruno@clisp.org>
18670
18671         * m4/locale-ja.m4: New file, from GNU gettext.
18672
18673 2008-12-17  Bruno Haible  <bruno@clisp.org>
18674
18675         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
18676         Suggested by Eric Blake.
18677
18678 2008-12-17  Bruno Haible  <bruno@clisp.org>
18679
18680         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
18681
18682 2008-12-17  Bruno Haible  <bruno@clisp.org>
18683
18684         * lib/mbsinit.c: Include verify.h. Verify an assumption.
18685         * modules/mbsinit (Depends-on): Add verify.
18686         Suggested by Paul Eggert.
18687
18688 2008-12-17  Bruno Haible  <bruno@clisp.org>
18689
18690         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
18691         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
18692         gl_FUNC_MBRTOWC.
18693         * m4/mbiter.m4 (gl_MBITER): LIkewise.
18694         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
18695         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
18696         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
18697         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
18698         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
18699         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
18700         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
18701         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
18702         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
18703         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
18704         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
18705         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
18706         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
18707         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
18708         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18709         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
18710         * modules/trim (configure.ac): Likewise.
18711
18712 2008-12-17  Bruno Haible  <bruno@clisp.org>
18713
18714         * modules/btowc-tests: New file.
18715         * tests/test-btowc1.sh: New file.
18716         * tests/test-btowc2.sh: New file.
18717         * tests/test-btowc.c: New file.
18718
18719         New module 'btowc'.
18720         * lib/wchar.in.h (btowc): New declaration.
18721         * lib/btowc.c: New file.
18722         * m4/btowc.m4: New file.
18723         * modules/btowc: New file.
18724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
18725         HAVE_BTOWC.
18726         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
18727         * doc/posix-functions/btowc.texi: Document the new module.
18728
18729 2008-12-17  Bruno Haible  <bruno@clisp.org>
18730
18731         New module 'mbsinit'.
18732         * lib/wchar.in.h (mbsinit): New declaration.
18733         * lib/mbsinit.c: New file.
18734         * m4/mbsinit.m4: New file.
18735         * modules/mbsinit: New file.
18736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
18737         HAVE_MBSINIT.
18738         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
18739         HAVE_MBSINIT.
18740         * doc/posix-functions/mbsinit.texi: Document the new module.
18741
18742 2008-12-16  Bruno Haible  <bruno@clisp.org>
18743
18744         * lib/unistd.in.h: Add comment.
18745         * tests/test-environ.c: Don't include <stdlib.h>.
18746
18747 2008-12-16  Bruno Haible  <bruno@clisp.org>
18748
18749         * lib/parse-duration.h (parse_duration): Document return value
18750         convention.
18751         * lib/parse-duration.c: Include specification header first. Add
18752         comments.
18753         (_): Remove macro.
18754         (parse_year_month_day, parse_hour_minute_second): Move side effects
18755         outside of strchr call.
18756         (parse_non_iso8601): Move side effects outside of isspace call.
18757         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
18758         call.
18759
18760 2008-12-16  Bruno Haible  <bruno@clisp.org>
18761
18762         * tests/test-parse-duration.sh: Produce no output when the test
18763         succeeds.
18764
18765 2008-12-16  Bruno Haible  <bruno@clisp.org>
18766
18767         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
18768         expressions.
18769
18770 2008-12-15  Bruno Haible  <bruno@clisp.org>
18771
18772         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
18773         * doc/glibc-functions/flistxattr.texi: Likewise.
18774         * doc/glibc-functions/fopencookie.texi: Likewise.
18775         * doc/glibc-functions/fremovexattr.texi: Likewise.
18776         * doc/glibc-functions/fsetxattr.texi: Likewise.
18777         * doc/glibc-functions/getxattr.texi: Likewise.
18778         * doc/glibc-functions/lgetxattr.texi: Likewise.
18779         * doc/glibc-functions/listxattr.texi: Likewise.
18780         * doc/glibc-functions/llistxattr.texi: Likewise.
18781         * doc/glibc-functions/lremovexattr.texi: Likewise.
18782         * doc/glibc-functions/lsetxattr.texi: Likewise.
18783         * doc/glibc-functions/removexattr.texi: Likewise.
18784         * doc/glibc-functions/setxattr.texi: Likewise.
18785         * doc/posix-functions/open_memstream.texi: Likewise.
18786
18787 2008-12-15  Eric Blake  <ebb9@byu.net>
18788
18789         Update doc for cygwin 1.7.
18790         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
18791         functions.
18792         * doc/posix-functions/fchmodat.texi: Likewise.
18793         * doc/posix-functions/fchownat.texi: Likewise.
18794         * doc/posix-functions/fdopendir.texi: Likewise.
18795         * doc/posix-functions/fmemopen.texi: Likewise.
18796         * doc/posix-functions/freeaddrinfo.texi: Likewise.
18797         * doc/posix-functions/fstatat.texi: Likewise.
18798         * doc/posix-functions/futimens.texi: Likewise.
18799         * doc/posix-functions/gai_strerror.texi: Likewise.
18800         * doc/posix-functions/getaddrinfo.texi: Likewise.
18801         * doc/posix-functions/getnameinfo.texi: Likewise.
18802         * doc/posix-functions/if_freenameindex.texi: Likewise.
18803         * doc/posix-functions/if_indextoname.texi: Likewise.
18804         * doc/posix-functions/if_nameindex.texi: Likewise.
18805         * doc/posix-functions/if_nametoindex.texi: Likewise.
18806         * doc/posix-functions/insque.texi: Likewise.
18807         * doc/posix-functions/linkat.texi: Likewise.
18808         * doc/posix-functions/llrint.texi: Likewise.
18809         * doc/posix-functions/llrintf.texi: Likewise.
18810         * doc/posix-functions/llrintl.texi: Likewise.
18811         * doc/posix-functions/lockf.texi: Likewise.
18812         * doc/posix-functions/lrintl.texi: Likewise.
18813         * doc/posix-functions/mkdirat.texi: Likewise.
18814         * doc/posix-functions/mkfifoat.texi: Likewise.
18815         * doc/posix-functions/mknodat.texi: Likewise.
18816         * doc/posix-functions/mq_close.texi: Likewise.
18817         * doc/posix-functions/mq_getattr.texi: Likewise.
18818         * doc/posix-functions/mq_notify.texi: Likewise.
18819         * doc/posix-functions/mq_open.texi: Likewise.
18820         * doc/posix-functions/mq_receive.texi: Likewise.
18821         * doc/posix-functions/mq_send.texi: Likewise.
18822         * doc/posix-functions/mq_setattr.texi: Likewise.
18823         * doc/posix-functions/mq_timedreceive.texi: Likewise.
18824         * doc/posix-functions/mq_timedsend.texi: Likewise.
18825         * doc/posix-functions/mq_unlink.texi: Likewise.
18826         * doc/posix-functions/open_memstream.texi: Likewise.
18827         * doc/posix-functions/openat.texi: Likewise.
18828         * doc/posix-functions/posix_fadvise.texi: Likewise.
18829         * doc/posix-functions/posix_fallocate.texi: Likewise.
18830         * doc/posix-functions/posix_madvise.texi: Likewise.
18831         * doc/posix-functions/posix_memalign.texi: Likewise.
18832         * doc/posix-functions/posix_openpt.texi: Likewise.
18833         * doc/posix-functions/readlinkat.texi: Likewise.
18834         * doc/posix-functions/remque.texi: Likewise.
18835         * doc/posix-functions/renameat.texi: Likewise.
18836         * doc/posix-functions/rintl.texi: Likewise.
18837         * doc/posix-functions/sem_unlink.texi: Likewise.
18838         * doc/posix-functions/shm_open.texi: Likewise.
18839         * doc/posix-functions/shm_unlink.texi: Likewise.
18840         * doc/posix-functions/signgam.texi: Likewise.
18841         * doc/posix-functions/sigset.texi: Likewise.
18842         * doc/posix-functions/stpcpy.texi: Likewise.
18843         * doc/posix-functions/stpncpy.texi: Likewise.
18844         * doc/posix-functions/strerror.texi: Likewise.
18845         * doc/posix-functions/strtod.texi: Likewise.
18846         * doc/posix-functions/symlinkat.texi: Likewise.
18847         * doc/posix-functions/unlinkat.texi: Likewise.
18848         * doc/posix-functions/utimensat.texi: Likewise.
18849         * doc/glibc-functions/bindresvport.texi: Likewise.
18850         * doc/glibc-functions/dn_expand.texi: Likewise.
18851         * doc/glibc-functions/exp10.texi: Likewise.
18852         * doc/glibc-functions/exp10f.texi: Likewise.
18853         * doc/glibc-functions/fgetxattr.texi: Likewise.
18854         * doc/glibc-functions/flistxattr.texi: Likewise.
18855         * doc/glibc-functions/fopencookie.texi: Likewise.
18856         * doc/glibc-functions/freeifaddrs.texi: Likewise.
18857         * doc/glibc-functions/fremovexattr.texi: Likewise.
18858         * doc/glibc-functions/fsetxattr.texi: Likewise.
18859         * doc/glibc-functions/getifaddrs.texi: Likewise.
18860         * doc/glibc-functions/getxattr.texi: Likewise.
18861         * doc/glibc-functions/lgetxattr.texi: Likewise.
18862         * doc/glibc-functions/listxattr.texi: Likewise.
18863         * doc/glibc-functions/llistxattr.texi: Likewise.
18864         * doc/glibc-functions/lremovexattr.texi: Likewise.
18865         * doc/glibc-functions/lsetxattr.texi: Likewise.
18866         * doc/glibc-functions/pow10.texi: Likewise.
18867         * doc/glibc-functions/pow10f.texi: Likewise.
18868         * doc/glibc-functions/rcmd_af.texi: Likewise.
18869         * doc/glibc-functions/removexattr.texi: Likewise.
18870         * doc/glibc-functions/res_init.texi: Likewise.
18871         * doc/glibc-functions/res_mkquery.texi: Likewise.
18872         * doc/glibc-functions/res_query.texi: Likewise.
18873         * doc/glibc-functions/res_querydomain.texi: Likewise.
18874         * doc/glibc-functions/res_send.texi: Likewise.
18875         * doc/glibc-functions/rresvport_af.texi: Likewise.
18876         * doc/glibc-functions/setxattr.texi: Likewise.
18877         * doc/glibc-functions/strcasestr.texi: Likewise.
18878
18879 2008-12-15  Bruno Haible  <bruno@clisp.org>
18880
18881         Fix compilation error on OSF/1 4.0.
18882         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
18883         <sys/time.h>, simply delegate to the system header.
18884         Reported by Daniel Richard G. <oss@teragram.com>.
18885
18886 2008-12-15  Bruno Haible  <bruno@clisp.org>
18887
18888         * doc/posix-functions/openat.texi: Mention the 'openat' module.
18889         * doc/posix-functions/fchmodat.texi: Likewise.
18890         * doc/posix-functions/fchownat.texi: Likewise.
18891         * doc/posix-functions/fdopendir.texi: Likewise.
18892         * doc/posix-functions/fstatat.texi: Likewise.
18893         * doc/posix-functions/mkdirat.texi: Likewise.
18894         * doc/posix-functions/unlinkat.texi: Likewise.
18895
18896 2008-12-14  Bruno Haible  <bruno@clisp.org>
18897
18898         Update doc for POSIX:2008.
18899         * doc/posix-functions/faccessat.texi: New file.
18900         * doc/posix-functions/fchmodat.texi: New file.
18901         * doc/posix-functions/fchownat.texi: New file.
18902         * doc/posix-functions/fdopendir.texi: New file.
18903         * doc/posix-functions/fstatat.texi: New file.
18904         * doc/posix-functions/futimens.texi: New file.
18905         * doc/posix-functions/linkat.texi: New file.
18906         * doc/posix-functions/mkdirat.texi: New file.
18907         * doc/posix-functions/mkfifoat.texi: New file.
18908         * doc/posix-functions/mknodat.texi: New file.
18909         * doc/posix-functions/open_wmemstream.texi: New file.
18910         * doc/posix-functions/openat.texi: New file.
18911         * doc/posix-functions/psiginfo.texi: New file.
18912         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
18913         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
18914         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
18915         * doc/posix-functions/readlinkat.texi: New file.
18916         * doc/posix-functions/renameat.texi: New file.
18917         * doc/posix-functions/strerror_l.texi: New file.
18918         * doc/posix-functions/symlinkat.texi: New file.
18919         * doc/posix-functions/unlinkat.texi: New file.
18920         * doc/posix-functions/utimensat.texi: New file.
18921         * doc/gnulib.texi (Function Substitutes): Add these subsections.
18922
18923 2008-12-14  Bruno Haible  <bruno@clisp.org>
18924
18925         Update doc for POSIX:2008.
18926         * doc/posix-functions/alphasort.texi: Renamed from
18927         doc/glibc-functions/alphasort.texi.
18928         * doc/posix-functions/dirfd.texi: Renamed from
18929         doc/glibc-functions/dirfd.texi.
18930         * doc/posix-functions/dprintf.texi: Renamed from
18931         doc/glibc-functions/dprintf.texi.
18932         * doc/posix-functions/duplocale.texi: Renamed from
18933         doc/glibc-functions/duplocale.texi.
18934         * doc/posix-functions/fexecve.texi: Renamed from
18935         doc/glibc-functions/fexecve.texi.
18936         * doc/posix-functions/fmemopen.texi: Renamed from
18937         doc/glibc-functions/fmemopen.texi.
18938         * doc/posix-functions/freelocale.texi: Renamed from
18939         doc/glibc-functions/freelocale.texi.
18940         * doc/posix-functions/getdate_err.texi: Renamed from
18941         doc/glibc-functions/getdate_err.texi.
18942         * doc/posix-functions/isalnum_l.texi: Renamed from
18943         doc/glibc-functions/isalnum_l.texi.
18944         * doc/posix-functions/isalpha_l.texi: Renamed from
18945         doc/glibc-functions/isalpha_l.texi.
18946         * doc/posix-functions/isblank_l.texi: Renamed from
18947         doc/glibc-functions/isblank_l.texi.
18948         * doc/posix-functions/iscntrl_l.texi: Renamed from
18949         doc/glibc-functions/iscntrl_l.texi.
18950         * doc/posix-functions/isdigit_l.texi: Renamed from
18951         doc/glibc-functions/isdigit_l.texi.
18952         * doc/posix-functions/isgraph_l.texi: Renamed from
18953         doc/glibc-functions/isgraph_l.texi.
18954         * doc/posix-functions/islower_l.texi: Renamed from
18955         doc/glibc-functions/islower_l.texi.
18956         * doc/posix-functions/isprint_l.texi: Renamed from
18957         doc/glibc-functions/isprint_l.texi.
18958         * doc/posix-functions/ispunct_l.texi: Renamed from
18959         doc/glibc-functions/ispunct_l.texi.
18960         * doc/posix-functions/isspace_l.texi: Renamed from
18961         doc/glibc-functions/isspace_l.texi.
18962         * doc/posix-functions/isupper_l.texi: Renamed from
18963         doc/glibc-functions/isupper_l.texi.
18964         * doc/posix-functions/iswalnum_l.texi: Renamed from
18965         doc/glibc-functions/iswalnum_l.texi.
18966         * doc/posix-functions/iswalpha_l.texi: Renamed from
18967         doc/glibc-functions/iswalpha_l.texi.
18968         * doc/posix-functions/iswblank_l.texi: Renamed from
18969         doc/glibc-functions/iswblank_l.texi.
18970         * doc/posix-functions/iswcntrl_l.texi: Renamed from
18971         doc/glibc-functions/iswcntrl_l.texi.
18972         * doc/posix-functions/iswctype_l.texi: Renamed from
18973         doc/glibc-functions/iswctype_l.texi.
18974         * doc/posix-functions/iswdigit_l.texi: Renamed from
18975         doc/glibc-functions/iswdigit_l.texi.
18976         * doc/posix-functions/iswgraph_l.texi: Renamed from
18977         doc/glibc-functions/iswgraph_l.texi.
18978         * doc/posix-functions/iswlower_l.texi: Renamed from
18979         doc/glibc-functions/iswlower_l.texi.
18980         * doc/posix-functions/iswprint_l.texi: Renamed from
18981         doc/glibc-functions/iswprint_l.texi.
18982         * doc/posix-functions/iswpunct_l.texi: Renamed from
18983         doc/glibc-functions/iswpunct_l.texi.
18984         * doc/posix-functions/iswspace_l.texi: Renamed from
18985         doc/glibc-functions/iswspace_l.texi.
18986         * doc/posix-functions/iswupper_l.texi: Renamed from
18987         doc/glibc-functions/iswupper_l.texi.
18988         * doc/posix-functions/iswxdigit_l.texi: Renamed from
18989         doc/glibc-functions/iswxdigit_l.texi.
18990         * doc/posix-functions/isxdigit_l.texi: Renamed from
18991         doc/glibc-functions/isxdigit_l.texi.
18992         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
18993         doc/glibc-functions/mbsnrtowcs.texi.
18994         * doc/posix-functions/mkdtemp.texi: Renamed from
18995         doc/glibc-functions/mkdtemp.texi.
18996         * doc/posix-functions/newlocale.texi: Renamed from
18997         doc/glibc-functions/newlocale.texi.
18998         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
18999         doc/glibc-functions/nl_langinfo_l.texi.
19000         * doc/posix-functions/open_memstream.texi: Renamed from
19001         doc/glibc-functions/open_memstream.texi.
19002         * doc/posix-functions/opterr.texi: Renamed from
19003         doc/glibc-functions/opterr.texi.
19004         * doc/posix-functions/optind.texi: Renamed from
19005         doc/glibc-functions/optind.texi.
19006         * doc/posix-functions/optopt.texi: Renamed from
19007         doc/glibc-functions/optopt.texi.
19008         * doc/posix-functions/psignal.texi: Renamed from
19009         doc/glibc-functions/psignal.texi.
19010         * doc/posix-functions/scandir.texi: Renamed from
19011         doc/glibc-functions/scandir.texi.
19012         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19013         doc/glibc-functions/sched_get_priority_min.texi.
19014         * doc/posix-functions/signgam.texi: Renamed from
19015         doc/glibc-functions/signgam.texi.
19016         * doc/posix-functions/stpcpy.texi: Renamed from
19017         doc/glibc-functions/stpcpy.texi.
19018         * doc/posix-functions/stpncpy.texi: Renamed from
19019         doc/glibc-functions/stpncpy.texi.
19020         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19021         doc/glibc-functions/strcasecmp_l.texi.
19022         * doc/posix-functions/strcoll_l.texi: Renamed from
19023         doc/glibc-functions/strcoll_l.texi.
19024         * doc/posix-functions/strfmon_l.texi: Renamed from
19025         doc/glibc-functions/strfmon_l.texi.
19026         * doc/posix-functions/strftime_l.texi: Renamed from
19027         doc/glibc-functions/strftime_l.texi.
19028         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19029         doc/glibc-functions/strncasecmp_l.texi.
19030         * doc/posix-functions/strndup.texi: Renamed from
19031         doc/glibc-functions/strndup.texi.
19032         * doc/posix-functions/strnlen.texi: Renamed from
19033         doc/glibc-functions/strnlen.texi.
19034         * doc/posix-functions/strsignal.texi: Renamed from
19035         doc/glibc-functions/strsignal.texi.
19036         * doc/posix-functions/strxfrm_l.texi: Renamed from
19037         doc/glibc-functions/strxfrm_l.texi.
19038         * doc/posix-functions/timer_gettime.texi: Renamed from
19039         doc/glibc-functions/timer_gettime.texi.
19040         * doc/posix-functions/tolower_l.texi: Renamed from
19041         doc/glibc-functions/tolower_l.texi.
19042         * doc/posix-functions/toupper_l.texi: Renamed from
19043         doc/glibc-functions/toupper_l.texi.
19044         * doc/posix-functions/towctrans_l.texi: Renamed from
19045         doc/glibc-functions/towctrans_l.texi.
19046         * doc/posix-functions/towlower_l.texi: Renamed from
19047         doc/glibc-functions/towlower_l.texi.
19048         * doc/posix-functions/towupper_l.texi: Renamed from
19049         doc/glibc-functions/towupper_l.texi.
19050         * doc/posix-functions/uselocale.texi: Renamed from
19051         doc/glibc-functions/uselocale.texi.
19052         * doc/posix-functions/vdprintf.texi: Renamed from
19053         doc/glibc-functions/vdprintf.texi.
19054         * doc/posix-functions/wcpcpy.texi:
19055         Renamed from doc/glibc-functions/wcpcpy.texi.
19056         * doc/posix-functions/wcpncpy.texi: Renamed from
19057         doc/glibc-functions/wcpncpy.texi.
19058         * doc/posix-functions/wcscasecmp.texi: Renamed from
19059         doc/glibc-functions/wcscasecmp.texi.
19060         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19061         doc/glibc-functions/wcscasecmp_l.texi.
19062         * doc/posix-functions/wcscoll_l.texi: Renamed from
19063         doc/glibc-functions/wcscoll_l.texi.
19064         * doc/posix-functions/wcsdup.texi: Renamed from
19065         doc/glibc-functions/wcsdup.texi.
19066         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19067         doc/glibc-functions/wcsncasecmp.texi.
19068         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19069         doc/glibc-functions/wcsncasecmp_l.texi.
19070         * doc/posix-functions/wcsnlen.texi: Renamed from
19071         doc/glibc-functions/wcsnlen.texi.
19072         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19073         doc/glibc-functions/wcsnrtombs.texi.
19074         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19075         doc/glibc-functions/wcsxfrm_l.texi.
19076         * doc/posix-functions/wctrans_l.texi: Renamed from
19077         doc/glibc-functions/wctrans_l.texi.
19078         * doc/posix-functions/wctype_l.texi: Renamed from
19079         doc/glibc-functions/wctype_l.texi.
19080         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19081         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19082         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19083         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19084         these subsections.
19085         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19086         Remove sections.
19087
19088 2008-12-14  Bruno Haible  <bruno@clisp.org>
19089
19090         Update doc for POSIX:2008.
19091         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19092
19093 2008-12-14  Bruno Haible  <bruno@clisp.org>
19094
19095         Update doc for POSIX:2008.
19096         * doc/pastposix-functions/bcmp.texi: Renamed from
19097         doc/posix-functions/bcmp.texi.
19098         * doc/pastposix-functions/bcopy.texi: Renamed from
19099         doc/posix-functions/bcopy.texi.
19100         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19101         doc/posix-functions/bsd_signal.texi.
19102         * doc/pastposix-functions/bzero.texi: Renamed from
19103         doc/posix-functions/bzero.texi.
19104         * doc/pastposix-functions/ecvt.texi: Renamed from
19105         doc/posix-functions/ecvt.texi.
19106         * doc/pastposix-functions/fcvt.texi: Renamed from
19107         doc/posix-functions/fcvt.texi.
19108         * doc/pastposix-functions/ftime.texi: Renamed from
19109         doc/posix-functions/ftime.texi.
19110         * doc/pastposix-functions/gcvt.texi: Renamed from
19111         doc/posix-functions/gcvt.texi.
19112         * doc/pastposix-functions/getcontext.texi: Renamed from
19113         doc/posix-functions/getcontext.texi.
19114         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19115         doc/posix-functions/gethostbyaddr.texi.
19116         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19117         doc/posix-functions/gethostbyname.texi.
19118         * doc/pastposix-functions/getwd.texi: Renamed from
19119         doc/posix-functions/getwd.texi.
19120         * doc/pastposix-functions/h_errno.texi: Renamed from
19121         doc/posix-functions/h_errno.texi.
19122         * doc/pastposix-functions/index.texi: Renamed from
19123         doc/posix-functions/index.texi.
19124         * doc/pastposix-functions/makecontext.texi: Renamed from
19125         doc/posix-functions/makecontext.texi.
19126         * doc/pastposix-functions/mktemp.texi: Renamed from
19127         doc/posix-functions/mktemp.texi.
19128         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19129         doc/posix-functions/pthread_attr_getstackaddr.texi.
19130         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19131         doc/posix-functions/pthread_attr_setstackaddr.texi.
19132         * doc/pastposix-functions/rindex.texi: Renamed from
19133         doc/posix-functions/rindex.texi.
19134         * doc/pastposix-functions/scalb.texi: Renamed from
19135         doc/posix-functions/scalb.texi.
19136         * doc/pastposix-functions/setcontext.texi: Renamed from
19137         doc/posix-functions/setcontext.texi.
19138         * doc/pastposix-functions/swapcontext.texi: Renamed from
19139         doc/posix-functions/swapcontext.texi.
19140         * doc/pastposix-functions/ualarm.texi: Renamed from
19141         doc/posix-functions/ualarm.texi.
19142         * doc/pastposix-functions/usleep.texi: Renamed from
19143         doc/posix-functions/usleep.texi.
19144         * doc/pastposix-functions/vfork.texi: Renamed from
19145         doc/posix-functions/vfork.texi.
19146         * doc/pastposix-functions/wcswcs.texi: Renamed from
19147         doc/posix-functions/wcswcs.texi.
19148         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19149         (Function Substitutes): Update.
19150
19151 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19152
19153         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19154         m4/strerror.m4.
19155
19156 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19157             Bruno Haible  <bruno@clisp.org>
19158
19159         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19160
19161 2008-12-13  Bruno Haible  <bruno@clisp.org>
19162
19163         * modules/strtoull (Depends-on): Remove unistd.
19164
19165 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19166
19167         * modules/strtoull (Depends-on): Add stdlib.
19168
19169 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19170
19171         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19172
19173 2008-12-10  Jim Meyering  <meyering@redhat.com>
19174
19175         gl_ASSERT: don't say assertions are disabled when they're not
19176         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19177         "checking whether to enable assertions... no", when they are in
19178         fact enabled.  This is solely a bug in the output of configure.
19179         In spite of saying "no", NDEBUG was not defined in that case.
19180         Also, as noted by Eric Blake, leave assertions enabled upon
19181         --enable-assert=INVALID.
19182
19183 2008-12-10  Bruno Haible  <bruno@clisp.org>
19184
19185         Change MODULES.html to refer to POSIX:2008 where possible.
19186         * MODULES.html.sh (POSIX2008_URL): New variable.
19187         (posix_headers): Remove sys/timeb, ucontext.
19188         (posix2001_headers): New variable.
19189         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19190         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19191         index, makecontext, mktemp, pthread_attr_getstackaddr,
19192         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19193         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19194         (posix2001_functions): New variable.
19195         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19196         otherwise.
19197
19198 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19199
19200         add missing include to parse-duration.c
19201         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19202         * modules/parse-duration (Depends-on): Add xalloc.
19203
19204         fix sed script reading maint.mk
19205         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19206         (syntax-check-rules): Use it.
19207
19208 2008-12-09  Bruno Haible  <bruno@clisp.org>
19209
19210         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19211         MacOS X 10.4/PowerPC.
19212         Reported by Simon Josefsson.
19213
19214 2008-12-08  Jim Meyering  <meyering@redhat.com>
19215
19216         work around mingw's lack of some S_IF definitions
19217         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19218         Reported by Simon Josefsson.
19219
19220 2008-12-08  Bruno Haible  <bruno@clisp.org>
19221
19222         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19223         applied to variables. Needed on MacOS X 10.4/PowerPC.
19224         Reported by Simon Josefsson.
19225
19226 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19227         and Eric Blake  <ebb9@byu.net>
19228
19229         assert: honor --enable-assert
19230         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19231         order to honor --enable-assert, rather than treating it as a
19232         synonym for --disable-assert.
19233
19234 2008-12-08  Jim Meyering  <meyering@redhat.com>
19235
19236         * lib/posixtm.c: Remove now-useless declaration of mktime.
19237
19238         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19239
19240 2008-12-07  Bruno Haible  <bruno@clisp.org>
19241
19242         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19243         test_once): Mark functions as static.
19244         * tests/test-tls.c (test_tls): Likewise.
19245
19246 2008-12-07  Bruno Haible  <bruno@clisp.org>
19247
19248         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19249         iconv_register_autodetect.
19250
19251 2008-12-07  Jim Meyering  <meyering@redhat.com>
19252
19253         posixtm.c: avoid a warning
19254         * lib/posixtm.c (posixtime): Don't initialize tm0.
19255         It's no longer needed to placate gcc4's -Wuninitialized,
19256         and the attempt to placate would elicit a new warning.
19257
19258         unicodeio.c: mark unused parameters
19259         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19260         (fallback_failure_callback): Likewise.
19261
19262 2008-12-07  Bruno Haible  <bruno@clisp.org>
19263
19264         * gnulib-tool (func_create_testdir): When building the tests
19265         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19266         Reported by Simon Josefsson.
19267
19268 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19269
19270         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19271
19272 2008-12-06  Bruno Haible  <bruno@clisp.org>
19273
19274         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19275         Suggested by Eric Blake.
19276
19277 2008-12-06  Bruno Haible  <bruno@clisp.org>
19278
19279         Fix a c-stack test failure on MacOS X.
19280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19281         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19282         handler for SIGBUS as well.
19283         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19284         install a signal handler for SIGBUS as well.
19285         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19286
19287 2008-12-06  Bruno Haible  <bruno@clisp.org>
19288
19289         Advocacy documentation.
19290         * doc/gnulib-intro.texi (Benefits): New section.
19291         * doc/gnulib.texi: Update.
19292
19293 2008-12-06  Bruno Haible  <bruno@clisp.org>
19294
19295         Document the 'manywarnings' module.
19296         * doc/manywarnings.texi: New file.
19297         * doc/gnulib.texi: Include it.
19298
19299 2008-12-05  Eric Blake  <ebb9@byu.net>
19300
19301         tests: silence some gcc warnings
19302         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19303         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19304         type mismatches.
19305
19306 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19307             Bruno Haible  <bruno@clisp.org>
19308
19309         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19310
19311 2008-11-29  Jim Meyering  <meyering@redhat.com>
19312
19313         unicodeio.c: mark unused parameters
19314         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19315         (fallback_failure_callback): Likewise.
19316
19317         fts: fix a thinko
19318         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19319         (set_stat_type): Return S_IF*-valued "type" directly.
19320         Prompted by James Youngman's spotting a related bug.
19321         Confirmed by further testing through find.
19322
19323         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19324         * lib/fts.c (D_TYPE): Define.
19325         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19326         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19327         (s_ifmt_shift_bits): New function.
19328         (set_stat_type): New function.
19329         (fts_build): When not calling fts_stat, call set_stat_type
19330         to propagate dirent.d_type info to fts_read caller.
19331         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19332         fts_statp->st_mode type information may be valid.
19333
19334 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19335
19336         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19337         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19338         <sds@gnu.org>.
19339
19340 2008-11-20  Bruno Haible  <bruno@clisp.org>
19341
19342         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19343         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19344         INCLUDE_NEXT.
19345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19346         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19347         * modules/math (Makefile.am): Substitute
19348         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19350
19351 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19352             Bruno Haible  <bruno@clisp.org>
19353
19354         * lib/stdint.in.h: Define all type macros so that their expansion is
19355         a single typedef'ed token. Fixes a compilation failure in Boost which
19356         does "using ::int8_t;".
19357
19358 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19359
19360         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19361         gl_MANYWARN_ALL_GCC.
19362         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19363         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19364         * modules/manywarnings: New file.
19365         * MODULES.html.sh: Mention manywarnings module.
19366
19367 2008-11-18  Bruno Haible  <bruno@clisp.org>
19368
19369         * doc/gnulib-tool.texi (Unit tests): New section.
19370
19371 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19372
19373         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19374         paths like 'lib/po/foo.po'.
19375
19376 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19377
19378         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19379         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19380
19381 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19382
19383         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19384         parameter works.
19385
19386 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19387
19388         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19389
19390 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19391
19392         * modules/parse-duration-tests: New file.
19393         * tests/test-parse-duration.sh: New file.
19394         * tests/test-parse-duration.c: New file.
19395
19396         New module 'parse-duration'.
19397         * lib/parse-duration.h: New file.
19398         * lib/parse-duration.c: New file.
19399         * modules/parse-duration: New file.
19400
19401 2008-11-17  Bruno Haible  <bruno@clisp.org>
19402
19403         * tests/test-select-out.sh: Comment out the first pipe test.
19404         Reported by Simon Josefsson.
19405
19406 2008-11-17  Bruno Haible  <bruno@clisp.org>
19407
19408         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19409         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19410         gl_HOSTENT.
19411
19412 2008-11-17  Bruno Haible  <bruno@clisp.org>
19413
19414         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19415         -lnetwork and -lnet. Needed for Haiku and BeOS.
19416
19417 2008-11-16  Bruno Haible  <bruno@clisp.org>
19418
19419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19420
19421 2008-11-16  Bruno Haible  <bruno@clisp.org>
19422
19423         Avoid test failure on Haiku.
19424         * tests/test-fsync.c: Include <errno.h>.
19425         (main): Don't require that fsync (0) fails.
19426
19427 2008-11-15  Bruno Haible  <bruno@clisp.org>
19428
19429         New module 'hostent'.
19430         * modules/hostent: New file.
19431         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19432
19433 2008-11-15  Bruno Haible  <bruno@clisp.org>
19434
19435         New module 'servent'.
19436         * modules/servent: New file.
19437         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19438
19439 2008-11-15  Bruno Haible  <bruno@clisp.org>
19440
19441         Avoid generating same test program with two different rules.
19442         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19443         test-frexp to test-frexp-nolibm.
19444         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19445         test-frexpl to test-frexpl-nolibm.
19446
19447 2008-11-15  Bruno Haible  <bruno@clisp.org>
19448
19449         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19450         $(FREXPL_LIBM).
19451
19452 2008-11-15  Bruno Haible  <bruno@clisp.org>
19453
19454         * lib/netdb.in.h: Activate the definitions also when the system's
19455         <netdb.h> has 'struct addrinfo'.
19456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19457         EAI_OVERFLOW or AI_NUMERICSERV.
19458         * doc/posix-headers/netdb.texi: Document the problem.
19459
19460 2008-11-15  Bruno Haible  <bruno@clisp.org>
19461
19462         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19463
19464         Make the 'sched' module work on platforms where <sched.h> exists but
19465         is incomplete (such as Haiku).
19466         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19467         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19468         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19469         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19470         HAVE_STRUCT_SCHED_PARAM.
19471         * modules/sched (Depends-on): Add include_next.
19472         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19473         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19474         * doc/posix-headers/sched.texi: Document the issue.
19475
19476 2008-11-13  Jim Meyering  <meyering@redhat.com>
19477
19478         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19479         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19480         test would fail due to the difference in the Report bugs to ...
19481         line.  The expected address is empty, "<>", while the actual
19482         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19483
19484 2008-11-12  Bruno Haible  <bruno@clisp.org>
19485
19486         lstat: don't compile lstat.c on systems lacking lstat
19487         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19488         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19489         Reported by Daniel P. Berrange via Jim Meyering.
19490
19491 2008-11-12  Jim Meyering  <meyering@redhat.com>
19492
19493         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19494
19495 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19496
19497         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19498         instead.
19499
19500 2008-11-12  Bruno Haible  <bruno@clisp.org>
19501
19502         * lib/unicodeio.c: Include unistr.h.
19503         (utf8_wctomb): Remove function.
19504         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19505
19506 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19507
19508         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19509         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19510         <bruno@clisp.org>.
19511         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19512
19513 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19514
19515         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19516         * doc/gnulib.texi: Add section for warnings.
19517
19518 2008-11-11  Bruno Haible  <bruno@clisp.org>
19519
19520         * lib/sockets.h: Add a comment.
19521
19522 2008-11-11  Karl Berry  <karl@gnu.org>
19523
19524         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19525
19526 2008-11-11  Eric Blake  <ebb9@byu.net>
19527
19528         fdl.texi: avoid git symlinks
19529         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19530
19531 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19532
19533         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19534
19535 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19536
19537         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19538         (gl_WARN_ADD): Substitute $2 if literal.
19539
19540 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19541
19542         * m4/warning.m4: Remove.
19543
19544 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19545
19546         * m4/warnings.m4: Almost complete rewrite. :-)
19547
19548 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19549
19550         * modules/warnings: New module.
19551         * m4/warnings.m4: New file.
19552         * MODULES.html.sh: Mention warnings module.
19553         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19554         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19555
19556 2008-11-10  Eric Blake  <ebb9@byu.net>
19557
19558         fdl.texi: make a symlink to the latest version
19559         * doc/standards.texi: Revert today's earlier change.
19560         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19561         * doc/fdl.texi: ...and replace this with a symlink to the newer
19562         fdl-1.3.texi.
19563
19564 2008-11-10  Bruno Haible  <bruno@clisp.org>
19565
19566         * tests/test-select-fd.c (main): Accept the result file name as fourth
19567         argument.
19568         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19569         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19570
19571 2008-11-10  Bruno Haible  <bruno@clisp.org>
19572
19573         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19574         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19575         as autoconf-substituted macros.
19576         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19577         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19578         gl_NETDB_H_DEFAULTS. Set these variables.
19579         * modules/netdb (Makefile.am): Substitute these variables.
19580
19581 2008-11-10  Eric Blake  <ebb9@byu.net>
19582
19583         standards.texi: include correct file for FDL 1.3
19584         * doc/standards.texi (GNU Free Documentation License): Change
19585         include file to pull in FDL 1.3, not 1.2.
19586
19587         fdl.texi: revert accidental change to license
19588         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19589
19590 2008-11-10  Bruno Haible  <bruno@clisp.org>
19591
19592         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19593         cross-compiling guesses also when the native compile gives no result.
19594
19595 2008-11-10  Bruno Haible  <bruno@clisp.org>
19596
19597         * lib/spawni.c (__spawni): Force variable into the stack.
19598
19599 2008-11-10  Bruno Haible  <bruno@clisp.org>
19600
19601         Add support for Haiku.
19602         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19603         glibc and BeOS, but also on Haiku.
19604         * lib/fpurge.c (fpurge): Likewise.
19605         * lib/freadable.c (freadable): Likewise.
19606         * lib/freadahead.c (freadahead): Likewise.
19607         * lib/freading.c (freading): Likewise.
19608         * lib/freadptr.c (freadptr): Likewise.
19609         * lib/freadseek.c (freadptrinc): Likewise.
19610         * lib/fseeko.c (rpl_fseeko): Likewise.
19611         * lib/fseterr.c (fseterr): Likewise.
19612         * lib/fwritable.c (fwritable): Likewise.
19613         * lib/fwriting.c (fwriting): Likewise.
19614         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19615
19616 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19617
19618         * lib/config.charset: Treat Haiku like BeOS.
19619
19620 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19621
19622         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
19623         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
19624
19625 2008-11-08  Bruno Haible  <bruno@clisp.org>
19626
19627         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
19628         AC_CACHE_CHECK.
19629
19630 2008-11-08  Bruno Haible  <bruno@clisp.org>
19631
19632         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
19633
19634 2008-11-08  Bruno Haible  <bruno@clisp.org>
19635
19636         * tests/test-select-fd.c: New file.
19637         * tests/test-select-in.sh: New file.
19638         * tests/test-select-out.sh: New file.
19639         * tests/test-select-stdin.c: New file.
19640         * modules/select-tests (Files): Add the new files.
19641         (Depends-on): Add gettimeofday.
19642         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
19643         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
19644         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
19645
19646 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
19647             Bruno Haible  <bruno@clisp.org>
19648
19649         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
19650
19651 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
19652
19653         * build-aux/pmccabe2html: Added support for C++ source files.
19654
19655 2008-11-05  Ben Pfaff  <blp@gnu.org>
19656
19657         Fix lib/close.c build on Windows.
19658         * modules/close (Files): Add lib/w32sock.h.
19659
19660 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
19661
19662         Accept Bison's NEWS format.
19663         * build-aux/announce-gen (print_news_deltas): Tweak
19664         $re_prefix.
19665
19666 2008-11-04  Bruno Haible  <bruno@clisp.org>
19667
19668         * modules/random_r (Maintainer): Add glibc.
19669
19670 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19671
19672         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
19673         by karl@freefriends.org (Karl Berry).
19674         * doc/alloca.texi: Likewise.
19675         * doc/c-ctype.texi: Likewise.
19676         * doc/c-strcase.texi: Likewise.
19677         * doc/c-strcaseeq.texi: Likewise.
19678         * doc/c-strcasestr.texi: Likewise.
19679         * doc/c-strstr.texi: Likewise.
19680         * doc/c-strtod.texi: Likewise.
19681         * doc/c-strtold.texi: Likewise.
19682         * doc/ctime.texi: Likewise.
19683         * doc/error.texi: Likewise.
19684         * doc/fdl.texi: Likewise.
19685         * doc/gcd.texi: Likewise.
19686         * doc/getdate.texi: Likewise.
19687         * doc/gnulib-intro.texi: Likewise.
19688         * doc/gnulib-tool.texi: Likewise.
19689         * doc/gnulib.texi: Likewise.
19690         * doc/inet_ntoa.texi: Likewise.
19691         * doc/maintain.texi: Likewise.
19692         * doc/make-stds.texi: Likewise.
19693         * doc/quote.texi: Likewise.
19694         * doc/regexprops-generic.texi: Likewise.
19695         * doc/standards.texi: Likewise.
19696         * doc/verify.texi: Likewise.
19697         * doc/visibility.texi: Likewise.
19698         * doc/gnulib.texi (GNU Free Documentation License): Include
19699         fdl-1.3.texi instead of fdl.texi.
19700
19701 2008-11-04  Simon Josefsson  <simon@josefsson.org>
19702
19703         * doc/fdl-1.3.texi: New file, from
19704         <http://www.gnu.org/licenses/fdl-1.3.texi>.
19705         * modules/fdl-1.3: Add.
19706         * MODULES.html.sh: Add fdl-1.3.
19707
19708 2008-11-03  Bruno Haible  <bruno@clisp.org>
19709
19710         Make determination of absolute name of header file work with AIX xlc.
19711         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
19712         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
19713         preprocessing.
19714         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19715         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
19716
19717 2008-11-03  Simon Josefsson  <simon@josefsson.org>
19718
19719         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
19720         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
19721         <ludo@gnu.org>.
19722
19723 2008-11-02  Bruno Haible  <bruno@clisp.org>
19724
19725         Mark 'strpbrk' obsolete.
19726         * modules/strpbrk (Status, Notice): New sections.
19727         * modules/strtok_r (Depends-on): Add strpbrk.
19728
19729 2008-11-02  Bruno Haible  <bruno@clisp.org>
19730
19731         Mark 'strdup' obsolete.
19732         * modules/strdup (Status, Notice): New sections.
19733         * modules/findprog (Depends-on): Add strdup.
19734         * modules/getaddrinfo (Depends-on): Likewise.
19735         * modules/localename (Depends-on): Likewise.
19736         * modules/relocatable-lib (Depends-on): Likewise.
19737         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
19738         * modules/relocatable-prog (Depends-on): Likewise.
19739         * modules/trim (Depends-on): Likewise.
19740         * modules/unictype/gen-ctype (Depends-on): Likewise.
19741         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19742
19743 2008-11-02  Bruno Haible  <bruno@clisp.org>
19744
19745         Mark 'strcspn' obsolete.
19746         * modules/strcspn (Status, Notice): New sections.
19747
19748 2008-11-02  Bruno Haible  <bruno@clisp.org>
19749
19750         Mark 'rmdir' obsolete.
19751         * modules/rmdir (Status, Notice): New sections.
19752         * modules/clean-temp (Depends-on): Add rmdir.
19753         * modules/openat (Depends-on): Likewise.
19754
19755 2008-11-02  Bruno Haible  <bruno@clisp.org>
19756
19757         Mark 'raise' obsolete.
19758         * modules/raise (Status, Notice): New sections.
19759         (Include): Specify <signal.h>.
19760         * modules/stdio (Depends-on): Add raise.
19761         * modules/write (Depends-on): Likewise.
19762
19763 2008-11-02  Bruno Haible  <bruno@clisp.org>
19764
19765         Mark 'memset' obsolete.
19766         * modules/memset (Status, Notice): New sections.
19767
19768 2008-11-02  Bruno Haible  <bruno@clisp.org>
19769
19770         Mark 'memmove' obsolete.
19771         * modules/memmove (Status, Notice): New sections.
19772         * modules/argp (Depends-on): Add memmove.
19773         * modules/argz (Depends-on): Likewise.
19774         * modules/canonicalize (Depends-on): Likewise.
19775         * modules/canonicalize-lgpl (Depends-on): Likewise.
19776         * modules/fts (Depends-on): Likewise.
19777         * modules/getcwd (Depends-on): Likewise.
19778         * modules/human (Depends-on): Likewise.
19779         * modules/regex (Depends-on): Likewise.
19780         * modules/striconveh (Depends-on): Likewise.
19781         * modules/trim (Depends-on): Likewise.
19782         * modules/unistr/u8-move (Depends-on): Likewise.
19783         * modules/unistr/u16-move (Depends-on): Likewise.
19784         * modules/unistr/u32-move (Depends-on): Likewise.
19785
19786 2008-11-02  Bruno Haible  <bruno@clisp.org>
19787
19788         Mark 'memcpy' obsolete.
19789         * modules/memcpy (Status, Notice): New sections.
19790
19791 2008-11-02  Bruno Haible  <bruno@clisp.org>
19792
19793         Mark 'memcmp' obsolete.
19794         * modules/memcmp (Status, Notice): New sections.
19795         * modules/argmatch (Depends-on): Add memchr.
19796         * modules/backupfile (Depends-on): Likewise.
19797         * modules/c-strcasestr (Depends-on): Likewise.
19798         * modules/crypto/des (Depends-on): Likewise.
19799         * modules/csharpcomp (Depends-on): Likewise.
19800         * modules/fnmatch (Depends-on): Likewise.
19801         * modules/git-merge-changelog (Depends-on): Likewise.
19802         * modules/isnand (Depends-on): Likewise.
19803         * modules/isnand-nolibm (Depends-on): Likewise.
19804         * modules/isnanf (Depends-on): Likewise.
19805         * modules/isnanf-nolibm (Depends-on): Likewise.
19806         * modules/isnanl (Depends-on): Likewise.
19807         * modules/isnanl-nolibm (Depends-on): Likewise.
19808         * modules/mbchar (Depends-on): Likewise.
19809         * modules/memcoll (Depends-on): Likewise.
19810         * modules/quotearg (Depends-on): Likewise.
19811         * modules/regex (Depends-on): Likewise.
19812         * modules/relocatable-prog (Depends-on): Likewise.
19813         * modules/same (Depends-on): Likewise.
19814         * modules/signbit (Depends-on): Likewise.
19815         * modules/strcasestr-simple (Depends-on): Likewise.
19816         * modules/unictype/gen-ctype (Depends-on): Likewise.
19817         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
19818         * modules/uniname/uniname (Depends-on): Likewise.
19819         * modules/unistr/u8-cmp (Depends-on): Likewise.
19820
19821 2008-11-02  Bruno Haible  <bruno@clisp.org>
19822
19823         Mark 'memchr' obsolete.
19824         * modules/memchr (Status, Notice): New sections.
19825         * modules/argp (Depends-on): Add memchr.
19826         * modules/base64 (Depends-on): Likewise.
19827         * modules/c-strcasestr (Depends-on): Likewise.
19828         * modules/chdir-long (Depends-on): Likewise.
19829         * modules/fnmatch (Depends-on): Likewise.
19830         * modules/getsubopt (Depends-on): Likewise.
19831         * modules/git-merge-changelog (Depends-on): Likewise.
19832         * modules/glob (Depends-on): Likewise.
19833         * modules/strcasestr-simple (Depends-on): Likewise.
19834         * modules/strnlen (Depends-on): Likewise.
19835
19836 2008-11-02  Bruno Haible  <bruno@clisp.org>
19837
19838         Mark 'atexit' obsolete.
19839         * modules/atexit (Status, Notice): New sections.
19840         * modules/chdir-long (Depends-on): Add atexit.
19841         * modules/wait-process (Depends-on): Likewise.
19842
19843 2008-11-02  Bruno Haible  <bruno@clisp.org>
19844
19845         * gnulib-tool: New option --with-obsolete.
19846         (func_usage): Document it.
19847         (func_modules_transitive_closure): Drop obsolete dependencies if
19848         incobsolete is not true.
19849         (func_import): Read and save the incobsolete variable to the cache.
19850
19851 2008-11-02  Bruno Haible  <bruno@clisp.org>
19852
19853         * modules/TEMPLATE-EXTENDED: New field 'Status'.
19854         * gnulib-tool: New option --extract-status.
19855         (func_usage): Document it.
19856         (sed_extract_prog): Recognize it.
19857         (func_get_status): New function.
19858
19859 2008-10-30  Simon Josefsson  <simon@josefsson.org>
19860
19861         * modules/sockets (License): Change from LGPL to LGPLv2+.
19862
19863 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19864
19865         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
19866
19867 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19868
19869         * MODULES.html.sh (Support for systems lacking POSIX:2001):
19870         Mention times and sys_times.
19871         * modules/sys_times, modules/sys_times-tests: New modules.
19872         * modules/times, modules/times-tests: Likewise
19873         * m4/sys_times_h.m4: New file.
19874         * lib/sys_times.in.h: Likewise
19875         * lib/times.c: Likewise.
19876         * tests/test-sys_times.c: Likewise.
19877         * tests/test-times.c: Likewise.
19878         * doc/posix-headers/sys_times.texi: Update.
19879         * doc/posix-functions/times.texi: Update.
19880
19881 2008-10-28  Jim Meyering  <meyering@redhat.com>
19882
19883         * modules/tempname (Depends-on): Add lstat.
19884
19885         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
19886
19887 2008-10-28  Simon Josefsson  <simon@josefsson.org>
19888
19889         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
19890         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
19891         using idiom used elsewhere in gnulib.
19892
19893 2008-10-27  Jim Meyering  <meyering@redhat.com>
19894
19895         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
19896
19897 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19898
19899         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
19900         TESTS_ENVIRONMENT, for shell scripts that needs to call built
19901         programs.
19902         * tests/test-argp-2.sh: Use $EXEEXT when needed.
19903
19904 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19905
19906         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
19907
19908 2008-10-27  Bruno Haible  <bruno@clisp.org>
19909
19910         * tests/test-lstat.c: Include <stdio.h>.
19911
19912 2008-10-27  Simon Josefsson  <simon@josefsson.org>
19913
19914         * modules/lstat-tests: New module.
19915         * tests/test-lstat.c: New file.
19916
19917 2008-10-26  Jim Meyering  <meyering@redhat.com>
19918
19919         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
19920
19921 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19922             Bruno Haible  <bruno@clisp.org>
19923
19924         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
19925         * modules/configmake (Include): Add a note that the include must come
19926         after all system headers.
19927         * lib/javaversion.c: Include configmake.h after all other includes.
19928
19929 2008-10-26  Bruno Haible  <bruno@clisp.org>
19930
19931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
19932         HAVE_STRUCT_RANDOM_DATA to 1.
19933         (gl_STDLIB_H): Simplify.
19934
19935 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19936
19937         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
19938         substitute HAVE_STRUCT_RANDOM_DATA.
19939         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
19940         random_data.
19941         * modules/stdlib (Makefile.am): Substitute
19942         HAVE_STRUCT_RANDOM_DATA.
19943
19944 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19945
19946         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
19947         * doc/gnulib-intro.texi (Copyright): Likewise.
19948
19949 2008-10-26  Simon Josefsson  <simon@josefsson.org>
19950
19951         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
19952         findings.
19953
19954 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
19955             Bruno Haible  <bruno@clisp.org>
19956
19957         * lib/unistd.in.h: Include <winsock2.h>.
19958         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
19959         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
19960         Provide dummy declarations.
19961         (gethostname): Override.
19962         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
19963         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
19964         gl_PREREQ_SYS_H_WINSOCK2.
19965         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
19966         * doc/posix-functions/gethostname.texi: More details.
19967
19968 2008-10-25  Bruno Haible  <bruno@clisp.org>
19969
19970         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19971         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
19972         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
19973
19974         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
19975         here ...
19976         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
19977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
19978         gl_UNISTD_H_DEFAULTS.
19979
19980 2008-10-25  Eric Blake  <ebb9@byu.net>
19981
19982         signbit: avoid spurious compiler failure
19983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
19984         declarations inside function.
19985
19986 2008-10-24  Simon Josefsson  <simon@josefsson.org>
19987             Bruno Haible  <bruno@clisp.org>
19988
19989         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
19990         * modules/random_r (Depends-on): Add stdint.
19991
19992 2008-10-24  Bruno Haible  <bruno@clisp.org>
19993
19994         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
19995         Eggert.
19996         * modules/strerror (License): Likewise.
19997
19998 2008-10-24  Jim Meyering  <meyering@redhat.com>
19999
20000         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20001         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20002
20003 2008-10-24  Eric Blake  <ebb9@byu.net>
20004
20005         getgroups: fix compilation when getgroups is available
20006         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20007         but with <config.h> override of getgroups disabled.
20008
20009 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20010
20011         * doc/gnulib.texi (Header files): Add note about C++ problems.
20012         Explained by Bruno Haible <bruno@clisp.org>.
20013
20014 2008-10-23  Bruno Haible  <bruno@clisp.org>
20015
20016         Define a dummy SA_NODEFER macro on Interix.
20017         * lib/signal.in.h (SA_NODEFER): Define fallback.
20018         Reported by Aleksey Cheusov <cheusov@tut.by> via
20019         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20020
20021 2008-10-23  Bruno Haible  <bruno@clisp.org>
20022
20023         * modules/freadahead (License): Change to LGPLv2+.
20024         Suggested by Simon Josefsson.
20025
20026 2008-10-23  Jim Meyering  <meyering@redhat.com>
20027
20028         random_r: new module
20029         * modules/random_r: New file.
20030         * m4/random_r.m4: New file.
20031         * lib/random_r.c: New file, from glibc.
20032         * modules/random_r-tests: New file.
20033         * tests/test-random_r.c: New file.
20034         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20035          Declare.
20036         (RAND_MAX): Define.
20037         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20038         * modules/stdlib: Substitute them, too.
20039         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20040         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20041         * doc/glibc-functions/random_r.texi: Likewise.
20042         * doc/glibc-functions/setstate_r.texi: Likewise.
20043         * doc/glibc-functions/srandom_r.texi: Likewise.
20044         * config/srclist.txt: Mention it.
20045
20046 2008-10-23  David Lutterkort  <lutter@redhat.com>
20047
20048         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20049         link requirement
20050
20051 2008-10-23  Jim Meyering  <meyering@redhat.com>
20052
20053         selinux-h: mark parameters of stub functions as intentionally unused
20054         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20055         * lib/se-context.in.h: Likewise.
20056
20057 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20058
20059         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20060
20061 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20062
20063         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20064
20065 2008-10-22  Eric Blake  <ebb9@byu.net>
20066
20067         glthread/thread: avoid compiler warning
20068         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20069         Add unreachable abort to silence compiler.
20070
20071 2008-10-22  Eric Blake  <ebb9@byu.net>
20072
20073         netdb: also supply struct addrinfo for cygwin 1.5.x
20074         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20075         older cygwin.
20076         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20077         cygwin.
20078         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20079
20080 2008-10-22  Bruno Haible  <bruno@clisp.org>
20081
20082         * users.txt: Update entry about pspp.
20083
20084 2008-10-21  Bruno Haible  <bruno@clisp.org>
20085
20086         Simplification.
20087         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20088         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20089
20090         Simplification.
20091         * lib/ioctl.c (ioctl): Don't undefine.
20092         * lib/socket.c (socket): Don't undefine.
20093
20094         Remove unused module indicator macros.
20095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20096         GNULIB_$1 as a C macro.
20097
20098         * doc/posix-functions/close.texi: Undo last change.
20099         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20100         Windows platforms.
20101
20102 2008-10-21  Bruno Haible  <bruno@clisp.org>
20103
20104         Add gethostname() declaration to <unistd.h>.
20105         * lib/unistd.in.h (gethostname): New declaration.
20106         * lib/gethostname.c: Include <unistd.h>.
20107         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20108         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20110         and HAVE_GETHOSTNAME.
20111         * modules/gethostname (Depends-on): Add unistd.
20112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20113         (Include): Specify <unistd.h>.
20114         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20115         HAVE_GETHOSTNAME.
20116         * tests/test-gethostname.c: Include <unistd.h> first.
20117
20118 2008-10-21  Bruno Haible  <bruno@clisp.org>
20119
20120         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20121         * modules/select-tests (Depends-on): Likewise.
20122         Reported by Simon Josefsson.
20123
20124 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20125
20126         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20127         * lib/accept.c: New file, based on winsock.c.
20128         * lib/bind.c: New file, based on winsock.c.
20129         * lib/connect.c: New file, based on winsock.c.
20130         * lib/getpeername.c: New file, based on winsock.c.
20131         * lib/getsockname.c: New file, based on winsock.c.
20132         * lib/getsockopt.c: New file, based on winsock.c.
20133         * lib/ioctl.c: New file, based on winsock.c.
20134         * lib/listen.c: New file, based on winsock.c.
20135         * lib/recv.c: New file, based on winsock.c.
20136         * lib/recvfrom.c: New file, based on winsock.c.
20137         * lib/send.c: New file, based on winsock.c.
20138         * lib/sendto.c: New file, based on winsock.c.
20139         * lib/setsockopt.c: New file, based on winsock.c.
20140         * lib/shutdown.c: New file, based on winsock.c.
20141         * lib/socket.c: New file, based on winsock.c.
20142         * lib/w32sock.h: New file, based on winsock.c.
20143         * lib/winsock.c: Remove file.
20144         * modules/accept: Likewise.
20145         * modules/bind: Likewise.
20146         * modules/connect: Likewise.
20147         * modules/getpeername: Likewise.
20148         * modules/getsockname: Likewise.
20149         * modules/getsockopt: Likewise.
20150         * modules/ioctl: Likewise.
20151         * modules/listen: Likewise.
20152         * modules/recv: Likewise.
20153         * modules/recvfrom: Likewise.
20154         * modules/send: Likewise.
20155         * modules/sendto: Likewise.
20156         * modules/setsockopt: Likewise.
20157         * modules/shutdown: Likewise.
20158         * modules/socket: Use socket.c instead of winsock.c.
20159         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20160         * doc/posix-functions/accept.texi: Doc fix.
20161         * doc/posix-functions/bind.texi: Doc fix.
20162         * doc/posix-functions/close.texi: Doc fix.
20163         * doc/posix-functions/connect.texi: Doc fix.
20164         * doc/posix-functions/getpeername.texi: Doc fix.
20165         * doc/posix-functions/getsockname.texi: Doc fix.
20166         * doc/posix-functions/getsockopt.texi: Doc fix.
20167         * doc/posix-functions/ioctl.texi: Doc fix.
20168         * doc/posix-functions/listen.texi: Doc fix.
20169         * doc/posix-functions/recv.texi: Doc fix.
20170         * doc/posix-functions/recvfrom.texi: Doc fix.
20171         * doc/posix-functions/send.texi: Doc fix.
20172         * doc/posix-functions/sendto.texi: Doc fix.
20173         * doc/posix-functions/setsockopt.texi: Doc fix.
20174         * doc/posix-functions/shutdown.texi: Doc fix.
20175         * doc/posix-functions/socket.texi: Doc fix.
20176
20177 2008-10-20  Bruno Haible  <bruno@clisp.org>
20178
20179         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20180         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20181         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20182         as an alias for SIGABRT.
20183         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20184         (sigaction): Map it to SIGABRT.
20185         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20186
20187 2008-10-20  Bruno Haible  <bruno@clisp.org>
20188
20189         * lib/fts.c: Don't include lstat.h.
20190         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20191
20192         Move the lstat() declaration to <sys/stat.h>.
20193         * lib/lstat.h: Remove file.
20194         * lib/sys_stat.in.h: Add special invocation convention.
20195         (lstat): New declaration.
20196         * lib/lstat.c (orig_lstat): New function.
20197         (rpl_lstat): Use orig_lstat instead of lstat.
20198         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20199         AC_C_INLINE. Set REPLACE_LSTAT.
20200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20201         and REPLACE_LSTAT.
20202         * modules/lstat (Files): Remove lib/lstat.h.
20203         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20204         (Include): Specify <sys/stat.h> instead of lstat.h.
20205         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20206         REPLACE_LSTAT.
20207         * NEWS: Mention the change.
20208
20209 2008-10-20  Bruno Haible  <bruno@clisp.org>
20210
20211         * modules/posix_spawn-tests: New file.
20212         * tests/test-posix_spawn3.c: New file.
20213
20214 2008-10-20  Bruno Haible  <bruno@clisp.org>
20215
20216         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20217         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20218         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20219         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20220         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20221
20222 2008-10-20  Bruno Haible  <bruno@clisp.org>
20223
20224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20225         of posix_spawn on AIX 5.3.
20226
20227 2008-10-20  Bruno Haible  <bruno@clisp.org>
20228
20229         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20230
20231 2008-10-20  Bruno Haible  <bruno@clisp.org>
20232
20233         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20234         of AC_LANG_PROGRAM.
20235
20236 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20237
20238         * lib/netdb.in.h: Don't define GNU specific constants until they
20239         are supported or needed.  Reported by Bruno Haible
20240         <bruno@clisp.org>.
20241
20242 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20243
20244         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20245
20246 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20247
20248         * lib/getaddrinfo.h: Remove file.
20249         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20250         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20251         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20252         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20253         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20254         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20255         * tests/test-getaddrinfo.c: Likewise.
20256         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20257         * NEWS: Mention change.
20258
20259 2008-10-19  Bruno Haible  <bruno@clisp.org>
20260
20261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20262
20263 2008-10-19  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/wait-process.c: Include simply <sys/wait.h>.
20266         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20267         WIFSTOPPED): Remove fallback definitions.
20268         * modules/wait-process (Depends-on): Add sys_wait.
20269
20270         New module 'sys_wait'.
20271         * modules/sys_wait: New file.
20272         * lib/sys_wait.in.h: New file, partially copied from
20273         lib/wait-process.c.
20274         * m4/sys_wait_h.m4: New file.
20275         * doc/posix-headers/sys_wait.texi: Mention the new module.
20276
20277 2008-10-19  Bruno Haible  <bruno@clisp.org>
20278
20279         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20280
20281 2008-10-19  Bruno Haible  <bruno@clisp.org>
20282
20283         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20284         * lib/wait-process.c (WAIT_T): Remove type.
20285         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20286         (wait_subprocess): Update.
20287
20288 2008-10-19  Bruno Haible  <bruno@clisp.org>
20289
20290         New module 'atoll'.
20291         * modules/atoll: New file.
20292         * lib/stdlib.in.h (atoll): New declaration.
20293         * lib/atoll.c: New file, from glibc with modifications.
20294         * m4/atoll.m4: New file.
20295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20296         HAVE_ATOLL.
20297         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20298         * doc/posix-functions/atoll.texi: Mention the new module.
20299
20300 2008-10-19  Bruno Haible  <bruno@clisp.org>
20301
20302         Add strtoull() declaration to <stdlib.h>.
20303         * lib/stdlib.in.h (strtoull): New declaration.
20304         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20305         Set HAVE_STRTOULL.
20306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20307         HAVE_STRTOULL.
20308         * modules/strtoull (Depends-on): Add stdlib.
20309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20310         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20311         HAVE_STRTOULL.
20312
20313 2008-10-19  Bruno Haible  <bruno@clisp.org>
20314
20315         Add strtoll() declaration to <stdlib.h>.
20316         * lib/stdlib.in.h (strtoll): New declaration.
20317         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20318         Set HAVE_STRTOLL.
20319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20320         HAVE_STRTOLL.
20321         * modules/strtoll (Depends-on): Add stdlib.
20322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20323         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20324
20325 2008-10-19  Bruno Haible  <bruno@clisp.org>
20326
20327         * modules/bcopy (Depends-on): Add strings.
20328         (Include): Specify <strings.h>.
20329
20330 2008-10-19  Bruno Haible  <bruno@clisp.org>
20331
20332         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20333
20334 2008-10-19  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20337         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20338         mingw.
20339
20340 2008-10-19  Bruno Haible  <bruno@clisp.org>
20341
20342         * lib/atanl.c: Don't include isnanl.h.
20343         * lib/cosl.c: Likewise.
20344         * lib/ldexpl.c: Likewise.
20345         * lib/logl.c: Likewise.
20346         * lib/sinl.c: Likewise.
20347         * lib/sqrtl.c: Likewise.
20348         * lib/tanl.c: Likewise.
20349
20350         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20351         * lib/isnanf.h: Remove file.
20352         * lib/isnand.h: Remove file.
20353         * lib/isnanl.h: Remove file.
20354         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20355         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20356         macros.
20357         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20358         HAVE_ISNANF, don't define it as a C macro.
20359         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20360         HAVE_ISNAND, don't define it as a C macro.
20361         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20362         HAVE_ISNANL, don't define it as a C macro.
20363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20364         HAVE_ISNAN[FDL].
20365         * modules/isnanf (Files): Remove lib/isnanf.h.
20366         (Depends-on): Add math.
20367         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20368         (Include): Specify <math.h> instead of isnanf.h.
20369         * modules/isnand (Files): Remove lib/isnand.h.
20370         (Depends-on): Add math.
20371         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20372         (Include): Specify <math.h> instead of isnand.h.
20373         * modules/isnanl (Files): Remove lib/isnanl.h.
20374         (Depends-on): Add math.
20375         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20376         (Include): Specify <math.h> instead of isnanl.h.
20377         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20378         HAVE_ISNAN[FDL].
20379         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20380         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20381         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20382         * NEWS: Mention the change.
20383
20384 2008-10-18  Bruno Haible  <bruno@clisp.org>
20385
20386         Add getusershell(), setusershell(), endusershell() declarations to
20387         <unistd.h>.
20388         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20389         declarations.
20390         * lib/getusershell.c: Include unistd.h.
20391         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20392         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20393         HAVE_GETUSERSHELL.
20394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20395         and HAVE_GETUSERSHELL.
20396         * modules/getusershell (Depends-on): Add unistd, extensions.
20397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20398         (Include): Specify <unistd.h>.
20399         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20400         HAVE_GETUSERSHELL.
20401
20402 2008-10-18  Bruno Haible  <bruno@clisp.org>
20403
20404         Add a getloadavg() declaration to <stdlib.h>.
20405         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20406         getloadavg declaration.
20407         (getloadavg): New declaration.
20408         * lib/getloadavg.c: Include <stdlib.h> first.
20409         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20410         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20411         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20413         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20414         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20415         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20416         (Include): Specify <stdlib.h>.
20417         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20418         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20419
20420 2008-10-18  Bruno Haible  <bruno@clisp.org>
20421
20422         * lib/dirchownmod.c: Don't include lchmod.h.
20423
20424         Move the lchmod() declaration to <sys/stat.h>.
20425         * lib/lchmod.h: Remove file.
20426         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20427         (lchmod): New declaration, moved here from lib/lchown.h.
20428         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20429         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20431         and HAVE_LCHMOD.
20432         * modules/lchmod (Files): Remove lib/lchmod.h.
20433         (Depends-on): Add sys_stat, extensions.
20434         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20435         (Include): Specify <sys/stat.h> instead of lchmod.h.
20436         * modules/sys_stat (Depends-on): Add link-warning.
20437         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20438         definition of GL_LINK_WARNING.
20439         * NEWS: Mention the change.
20440
20441 2008-10-18  Bruno Haible  <bruno@clisp.org>
20442
20443         * lib/fchdir.c: Don't include dirfd.h.
20444         * lib/fts.c: Likewise.
20445         * lib/getcwd.c: Likewise.
20446         * lib/glob.c: Likewise.
20447
20448         Move the dirfd() declaration to <dirent.h>.
20449         * lib/dirfd.h: Remove file.
20450         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20451         (dirfd): New declaration.
20452         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20454         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20455         HAVE_DECL_DIRFD.
20456         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20457         HAVE_DECL_DIRFD.
20458         * modules/dirfd (Files): Remove lib/dirfd.h.
20459         (Depends-on): Add dirent, extensions.
20460         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20461         (Include): Specify <dirent.h> instead of dirfd.h.
20462         * modules/dirent (Depends-on): Add link-warning.
20463         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20464         definition of GL_LINK_WARNING.
20465         * NEWS: Mention the change.
20466
20467 2008-10-18  Bruno Haible  <bruno@clisp.org>
20468
20469         Move the euidaccess() declaration to <unistd.h>.
20470         * lib/euidaccess.h: Remove file.
20471         * lib/unistd.in.h (euidaccess): New declaration.
20472         * lib/euidaccess.c: Don't include euidaccess.h.
20473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20474         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20476         and HAVE_EUIDACCESS.
20477         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20478         (Depends-on): Add unistd.
20479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20480         (Include): Specify <unistd.h> instead of euidaccess.h.
20481         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20482         HAVE_EUIDACCESS.
20483         * NEWS: Mention the change.
20484
20485 2008-10-18  Bruno Haible  <bruno@clisp.org>
20486
20487         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20488
20489         Move the getdomainname() declaration to <unistd.h>.
20490         * lib/getdomainname.h: Remove file.
20491         * lib/unistd.in.h (getdomainname): New declaration.
20492         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20493         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20494         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20495         HAVE_GETDOMAINNAME.
20496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20497         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20498         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20499         (Depends-on): Add unistd, extensions.
20500         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20501         (Includes): Specify <unistd.h> instead of getdomainname.h.
20502         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20503         HAVE_GETDOMAINNAME.
20504         * NEWS: Mention the change.
20505
20506 2008-10-18  Bruno Haible  <bruno@clisp.org>
20507
20508         * modules/dirent: New file.
20509         * m4/dirent_h.m4: New file.
20510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20511         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20512         * modules/fchdir (Files): Remove lib/dirent.in.h.
20513         (Depends-on): Add dirent.
20514         (Makefile.am): Move rules to modules/dirent.
20515         * doc/posix-headers/dirent.texi: Mention the new module.
20516
20517 2008-10-18  Bruno Haible  <bruno@clisp.org>
20518
20519         Avoid -Wunused-parameter warnings in public gnulib header files.
20520         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20521         macro.
20522         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20523
20524 2008-10-18  Bruno Haible  <bruno@clisp.org>
20525
20526         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20527         * doc/glibc-functions/error.texi: Mention the module 'error'.
20528         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20529         * doc/glibc-functions/getdomainname.texi: Mention the module
20530         'getdomainname'.
20531         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20532         * doc/glibc-functions/getpagesize.texi: Mention the module
20533         'getpagesize'.
20534         * doc/glibc-functions/getusershell.texi: Mention the module
20535         'getusershell'.
20536         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20537         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20538         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20539         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20540         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20541         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20542         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20543         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20544         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20545         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20546         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20547         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20548         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20549         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20550
20551 2008-10-17  Bruno Haible  <bruno@clisp.org>
20552
20553         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20554         HP-UX and IRIX, use -0.0L.
20555         * tests/test-ceill.c (minus_zero): Likewise.
20556         * tests/test-floorl.c (minus_zero): Likewise.
20557         * tests/test-frexpl.c (minus_zero): Likewise.
20558         * tests/test-isnan.c (minus_zerol): Likewise.
20559         * tests/test-isnanl.h (minus_zero): Likewise.
20560         * tests/test-ldexpl.c (minus_zero): Likewise.
20561         * tests/test-roundl.c (minus_zero): Likewise.
20562         * tests/test-signbit.c (minus_zerol): Likewise.
20563         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20564         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20565         * tests/test-truncl.c (minus_zero): Likewise.
20566         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20567         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20568         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20569         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20570
20571 2008-10-17  Bruno Haible  <bruno@clisp.org>
20572
20573         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20574         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20575         that it gets activated only for gcc >= 3.0.
20576         * lib/dirent.in.h: Likewise.
20577         * lib/errno.in.h: Likewise.
20578         * lib/fcntl.in.h: Likewise.
20579         * lib/float.in.h: Likewise.
20580         * lib/iconv.in.h: Likewise.
20581         * lib/inttypes.in.h: Likewise.
20582         * lib/locale.in.h: Likewise.
20583         * lib/math.in.h: Likewise.
20584         * lib/netdb.in.h: Likewise.
20585         * lib/netinet_in.in.h: Likewise.
20586         * lib/search.in.h: Likewise.
20587         * lib/signal.in.h: Likewise.
20588         * lib/spawn.in.h: Likewise.
20589         * lib/stdarg.in.h: Likewise.
20590         * lib/stdint.in.h: Likewise.
20591         * lib/stdio.in.h: Likewise.
20592         * lib/stdlib.in.h: Likewise.
20593         * lib/string.in.h: Likewise.
20594         * lib/strings.in.h: Likewise.
20595         * lib/sys_file.in.h: Likewise.
20596         * lib/sys_ioctl.in.h: Likewise.
20597         * lib/sys_select.in.h: Likewise.
20598         * lib/sys_socket.in.h: Likewise.
20599         * lib/sys_stat.in.h: Likewise.
20600         * lib/sys_time.in.h: Likewise.
20601         * lib/sysexits.in.h: Likewise.
20602         * lib/time.in.h: Likewise.
20603         * lib/unistd.in.h: Likewise.
20604         * lib/wchar.in.h: Likewise.
20605         * lib/wctype.in.h: Likewise.
20606         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20607
20608 2008-10-17  Jim Meyering  <meyering@redhat.com>
20609
20610         ignore-value: don't depend on inline module
20611         * modules/ignore-value (Depends-on): Remove 'inline'.
20612         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20613         Suggestion from Bruno Haible.
20614
20615 2008-10-17  Bruno Haible  <bruno@clisp.org>
20616
20617         New implementation of condition variables for Win32.
20618         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
20619         (gl_linked_waitqueue_t): New type.
20620         (gl_cond_t): Use it.
20621         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
20622         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
20623         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
20624         (glthread_cond_init_func, glthread_cond_wait_func,
20625         glthread_cond_timedwait_func, glthread_cond_signal_func,
20626         glthread_cond_broadcast_func, glthread_cond_destroy_func):
20627         Reimplemented on the basis of gl_linked_waitqueue_t.
20628         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
20629         gl_waitqueue_t.
20630         (gl_rwlock_t): Update.
20631         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
20632
20633 2008-10-17  Simon Josefsson  <simon@josefsson.org>
20634
20635         * modules/recvfrom (Depends-on): Add dependency on getpeername.
20636         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20637
20638 2008-10-17  Jim Meyering  <meyering@redhat.com>
20639
20640         ignore-value: new module
20641         * modules/ignore-value: New file.
20642         * lib/ignore-value.h: New file.
20643         * MODULES.html.sh (Compiler warning management): New section,
20644         just for this module.  More to come.
20645
20646 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20647
20648         open-safer.c: avoid 'signed and unsigned in conditional...' warning
20649         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
20650         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
20651
20652 2008-10-16  Jim Meyering  <meyering@redhat.com>
20653
20654         openat-die.c: avoid 'no previous prototype' warning
20655         * lib/openat-die.c: Include "openat.h".
20656         Reported by Reuben Thomas <rrt@sc3d.org>.
20657
20658 2008-10-16  Simon Josefsson  <simon@josefsson.org>
20659
20660         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
20661         * lib/netdb.in.h: Fix typo.
20662         Reported by Bruno Haible  <bruno@clisp.org>
20663
20664         * lib/netdb.in.h: Include sys/socket.h for platforms without
20665         netdb.h, to get structures like hostent on MinGW.
20666         * modules/netdb (Depends-on): Add sys_socket.
20667
20668 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20669
20670         * modules/netdb, modules/netdb-tests: New file.
20671         * m4/netdb_h.m4: New file.
20672         * lib/netdb.in.h: Add, currently just an empty file pending
20673         definitions.
20674         * tests/test-netdb.c: New file.
20675         * doc/posix-headers/netdb.texi: Mention that we replace it if
20676         needed.
20677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20678         netdb.
20679
20680 2008-10-15  Simon Josefsson  <simon@josefsson.org>
20681
20682         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
20683         with code.
20684
20685 2008-10-13  Bruno Haible  <bruno@clisp.org>
20686
20687         * lib/glthread/cond.c (glthread_cond_wait_func,
20688         glthread_cond_timedwait_func): Add a comment.
20689
20690 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20691
20692         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
20693         * tests/test-select.c: Likewise,
20694
20695 2008-10-13  Bruno Haible  <bruno@clisp.org>
20696
20697         * lib/glthread/cond.c (glthread_cond_wait_func,
20698         glthread_cond_timedwait_func): Fix variable name.
20699         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20700
20701 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
20702
20703         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
20704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
20705         struct sockaddr.sa_len.
20706         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
20707
20708 2008-10-13  Simon Josefsson  <simon@josefsson.org>
20709
20710         * build-aux/pmccabe2html: Add css and css_url parameters.
20711
20712 2008-10-12  Bruno Haible  <bruno@clisp.org>
20713
20714         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
20715         calling aclx_get.
20716         Reported by Rainer Tammer <tammer@tammer.net>.
20717
20718 2008-10-12  Bruno Haible  <bruno@clisp.org>
20719
20720         Use msvcrt aware primitives for creation/termination of Win32 threads.
20721         * lib/glthread/thread.c: Include <process.h>.
20722         (glthread_create_func): Use _beginthreadex instead of CreateThread.
20723         (wrapper_func): Update signature.
20724         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
20725
20726 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
20727             Bruno Haible  <bruno@clisp.org>
20728
20729         Provide a Win32 implementation of the 'cond' module.
20730         * lib/glthread/cond.h [USE_WIN32]: New implementation.
20731         * lib/glthread/cond.c (glthread_cond_init_func,
20732         glthread_cond_wait_func, glthread_cond_timedwait_func,
20733         glthread_cond_signal_func, glthread_cond_broadcast_func,
20734         glthread_cond_destroy_func) [USE_WIN32]: New functions.
20735         * modules/cond (Dependencies): Add gettimeofday.
20736
20737 2008-10-11  Bruno Haible  <bruno@clisp.org>
20738
20739         Make sleep work on older versions of mingw.
20740         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
20741         only whether it exists.
20742         * doc/posix-functions/sleep.texi: Mention the problem with older
20743         versions of mingw.
20744
20745 2008-10-11  Bruno Haible  <bruno@clisp.org>
20746
20747         New module 'shutdown'.
20748         * modules/shutdown: New file.
20749         * lib/sys_socket.in.h (shutdown): New declaration.
20750         * lib/winsock.c (shutdown): New function.
20751         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20752         GNULIB_SHUTDOWN.
20753         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
20754         * doc/posix-functions/shutdown.texi: Document the new module.
20755
20756 2008-10-11  Jim Meyering  <meyering@redhat.com>
20757
20758         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
20759
20760 2008-10-11  Bruno Haible  <bruno@clisp.org>
20761
20762         New module 'fclose'.
20763         * modules/fclose: New file.
20764         * lib/stdio.in.h (fclose): New declaration.
20765         * lib/fclose.c: New file.
20766         * m4/fclose.m4: New file.
20767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
20768         REPLACE_FCLOSE.
20769         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
20770         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
20771         REPLACE_FCLOSE.
20772         * modules/close (Depends-on): fclose.
20773         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
20774
20775 2008-10-11  Bruno Haible  <bruno@clisp.org>
20776
20777         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
20778         set errno and don't call _close.
20779
20780 2008-10-10  Bruno Haible  <bruno@clisp.org>
20781
20782         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
20783         ACL, not afterwards. Fixes test failure on Cygwin.
20784
20785 2008-10-09  Ben Pfaff  <blp@gnu.org>
20786
20787         * build-aux/announce-gen: Fix gnulib version related part of usage
20788         message.  Die with a useful error message if no tarballs are
20789         found.
20790
20791 2008-10-10  Jim Meyering  <meyering@redhat.com>
20792
20793         bootstrap: use git's --depth=N option only if it's supported
20794         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
20795         recognize the --depth option.  Reported by Pádraig Brady.
20796
20797 2008-10-09  Bruno Haible  <bruno@clisp.org>
20798
20799         New module 'ioctl'.
20800         * modules/ioctl: New file.
20801         * lib/sys_socket.in.h (ioctl): Remove declaration.
20802         * lib/winsock.c: Include <sys/ioctl.h>.
20803         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
20804         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20805         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
20806         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
20807         * doc/posix-functions/ioctl.texi: Mention the new module.
20808
20809 2008-10-09  Bruno Haible  <bruno@clisp.org>
20810
20811         New module 'sys_ioctl'.
20812         * lib/sys_ioctl.in.h: New file.
20813         * m4/sys_ioctl_h.m4: New file.
20814         * modules/sys_ioctl: New file.
20815         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
20816
20817 2008-10-09  Bruno Haible  <bruno@clisp.org>
20818
20819         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
20820         * lib/winsock.c: Include <stdarg.h>.
20821         (rpl_ioctl): Change to second argument 'int' and then varargs.
20822
20823 2008-10-09  Bruno Haible  <bruno@clisp.org>
20824
20825         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
20826         when the sys_socket module is present and the system has <winsock2.h>.
20827
20828 2008-10-09  Bruno Haible  <bruno@clisp.org>
20829
20830         * doc/posix-functions/close.texi: Mention module 'close' instead of
20831         module 'sys_socket'.
20832
20833 2008-10-09  Bruno Haible  <bruno@clisp.org>
20834
20835         * doc/glibc-headers/sys_ioctl.texi: New file.
20836         * doc/gnulib.texi: Include it.
20837
20838 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20839             Bruno Haible  <bruno@clisp.org>
20840
20841         Combine the two replacements of 'close'.
20842         * lib/sys_socket.in.h (close): Define to a reminder to include
20843         <unistd.h>.
20844         (_gl_close_fd_maybe_socket): New declaration.
20845         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
20846         * lib/winsock.c (close): Remove undefinition.
20847         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
20848         needed for the gnulib module 'close'.
20849         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
20850         define to an error symbol or to a warning, if suitable.
20851         * lib/close.c: Include <sys/socket.h>.
20852         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
20853         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
20854         UNISTD_H_HAVE_WINSOCK2_H.
20855         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
20856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20857         UNISTD_H_HAVE_WINSOCK2_H.
20858         * modules/sys_socket (Files): Add m4/unistd_h.m4.
20859         (configure.ac): Set a module indicator.
20860         (Makefile.am): Substitute GNULIB_CLOSE.
20861         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
20862         * modules/poll-tests (Depends-on): Add close.
20863         * modules/select-tests (Depends-on): Likewise.
20864
20865 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20866             Bruno Haible  <bruno@clisp.org>
20867
20868         New module 'close'.
20869         * modules/close: New file.
20870         * lib/unistd.in.h (close): Move declaration out of the
20871         FCHDIR_REPLACEMENT scope.
20872         (_gl_unregister_fd): New declaration.
20873         * lib/close.c: New file.
20874         * lib/fchdir.c (rpl_close): Remove function.
20875         * m4/close.m4: New file.
20876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20877         close.
20878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
20879         REPLACE_CLOSE.
20880         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
20881         REPLACE_CLOSE.
20882         * modules/fchdir (Depends-on): Add close.
20883
20884 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20885             Bruno Haible  <bruno@clisp.org>
20886
20887         * lib/fcntl.in.h (open): Simplify conditionals.
20888         (_gl_register_fd): New declaration.
20889         * lib/fchdir.c (rpl_open): Remove function.
20890         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
20891         also.
20892         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
20893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
20894         open.
20895
20896 2008-10-09  Jim Meyering  <meyering@redhat.com>
20897
20898         GNUmakefile: use the more name-space-friendly "_version"
20899         * top/GNUmakefile (_dummy): Update.
20900         (_version): Rename from "version".
20901
20902 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20903             Bruno Haible  <bruno@clisp.org>
20904
20905         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
20906         rpl_close.
20907         (_gl_register_fd): New function, extracted from rpl_open.
20908         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
20909         (rpl_open, rpl_opendir): Use _gl_register_fd.
20910
20911 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
20912
20913         Fix organization of 'open' replacement.
20914         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
20915         (gl_FUNC_OPEN): Use it.
20916         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
20917
20918 2008-10-08  Bruno Haible  <bruno@clisp.org>
20919
20920         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
20921
20922 2008-10-08  Simon Josefsson  <simon@josefsson.org>
20923
20924         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
20925         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
20926         listen).
20927
20928 2008-10-08  Eric Blake  <ebb9@byu.net>
20929
20930         GNUmakefile: add 'make version' target
20931         * top/GNUmakefile (_curr-ver): Split version update rules...
20932         (version): ...into a target.
20933
20934 2008-10-07  Bruno Haible  <bruno@clisp.org>
20935
20936         Use a more portable replacement expression for -0.0L.
20937         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
20938         instead of -0.0L. Fix m4 quotation.
20939
20940         * tests/test-signbit.c: Include <float.h>.
20941         (minus_zero): New variable.
20942         (test_signbitl): Use minus_zero instead of -zero.
20943         * modules/signbit-tests (Depends-on): Add float.
20944
20945         * tests/test-ceill.c: Include <float.h>.
20946         (zero): Remove variable.
20947         (minus_zero): New variable.
20948         (main): Use minus_zero instead of -zero.
20949         * modules/ceill-tests (Depends-on): Add float.
20950
20951         * tests/test-floorl.c: Include <float.h>.
20952         (zero): Remove variable.
20953         (minus_zero): New variable.
20954         (main): Use minus_zero instead of -zero.
20955         * modules/floorl-tests (Depends-on): Add float.
20956
20957         * tests/test-roundl.c: Include <float.h>.
20958         (zero): Remove variable.
20959         (minus_zero): New variable.
20960         (main): Use minus_zero instead of -zero.
20961         * modules/roundl-tests (Depends-on): Add float.
20962
20963         * tests/test-truncl.c: Include <float.h>.
20964         (zero): Remove variable.
20965         (minus_zero): New variable.
20966         (main): Use minus_zero instead of -zero.
20967         * modules/truncl-tests (Depends-on): Add float.
20968
20969         * tests/test-frexpl.c (zero): Remove variable.
20970         (minus_zero): New variable.
20971         (main): Use minus_zero instead of -zero.
20972         * modules/frexpl-tests (Depends-on): Add float.
20973
20974         * tests/test-isnan.c (zerol): Remove variable.
20975         (minus_zerol): New variable.
20976         (test_long_double): Use minus_zerol instead of -zerol.
20977         * modules/isnan-tests (Depends-on): Add float.
20978
20979         * tests/test-isnanl.h (zero): Remove variable.
20980         (minus_zero): New variable.
20981         (main): Use minus_zero instead of -zero.
20982         * modules/isnanl-nolibm-tests (Depends-on): Add float.
20983         * modules/isnanl-tests (Depends-on): Add float.
20984
20985         * tests/test-ldexpl.c (zero): Remove variable.
20986         (minus_zero): New variable.
20987         (main): Use minus_zero instead of -zero.
20988         * modules/ldexpl-tests (Depends-on): Add float.
20989
20990         * tests/test-snprintf-posix.h (zerol): Remove variable.
20991         (minus_zerol): New variable.
20992         (test_function): Use minus_zerol instead of -zerol.
20993         * modules/snprintf-posix-tests (Depends-on): Add float.
20994         * modules/vsnprintf-posix-tests (Depends-on): Add float.
20995
20996         * tests/test-sprintf-posix.h (zerol): Remove variable.
20997         (minus_zerol): New variable.
20998         (test_function): Use minus_zerol instead of -zerol.
20999         * modules/sprintf-posix-tests (Depends-on): Add float.
21000         * modules/vsprintf-posix-tests (Depends-on): Add float.
21001
21002         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21003         (minus_zerol): New variable.
21004         (test_function): Use minus_zerol instead of -zerol.
21005         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21006
21007         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21008         (minus_zerol): New variable.
21009         (test_function): Use minus_zerol instead of -zerol.
21010         * modules/vasprintf-posix-tests (Depends-on): Add float.
21011
21012 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21013
21014         * MODULES.html.sh (Support for building documentation): Mention
21015         pmccabe2html.  Sort entries.
21016
21017         Add pmccabe2html module, from gnupdf.
21018         * build-aux/pmccabe.css: New file.
21019         * build-aux/pmccabe2html: New file.
21020         * m4/pmccabe2html.m4: New file.
21021         * modules/pmccabe2html: New file.
21022
21023 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21024
21025         flock: new module
21026         * MODULES.html.sh: Add to list of modules.
21027         * lib/flock.c: flock implementation for Windows and Unix systems
21028         which have fcntl.
21029         * doc/glibc-functions/flock.texi: Update documentation.
21030         * lib/sys_file.in.h: <sys/file.h> header file.
21031         * m4/flock.m4: M4 macros.
21032         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21033         * modules/flock: flock module.
21034         * modules/flock-tests: flock tests module.
21035         * modules/sys_file: sys/file.h module.
21036         * tests/test-flock.c: test suite for flock.
21037
21038 2008-10-06  Jim Meyering  <meyering@redhat.com>
21039
21040         bootstrap: check for LT_INIT more portably still ;-)
21041         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21042         Spotted by Bruno Haible.
21043
21044 2008-10-06  Eric Blake  <ebb9@byu.net>
21045
21046         test-signbit: avoid tripping Irix cc bug on -0.0L
21047         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21048         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21049         entire testsuite consistent and avoids an Irix 6.2 bug.
21050
21051 2008-10-05  Bruno Haible  <bruno@clisp.org>
21052             Jim Meyering  <jim@meyering.net>
21053
21054         Add an option for ignoring EPIPE during close_stdout.
21055         * lib/closeout.h: Include <stdbool.h>.
21056         (close_stdout_set_ignore_EPIPE): New declaration.
21057         * lib/closeout.c: Include <stdbool.h>.
21058         (ignore_EPIPE): New variable.
21059         (close_stdout_set_ignore_EPIPE): New function.
21060         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21061         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21062         failure.
21063         * modules/closeout (Depends-on): Add stdbool.
21064
21065 2008-10-05  Bruno Haible  <bruno@clisp.org>
21066
21067         * modules/accept: New file.
21068         * modules/bind: New file.
21069         * modules/connect: New file.
21070         * modules/getpeername: New file.
21071         * modules/getsockname: New file.
21072         * modules/getsockopt: New file.
21073         * modules/listen: New file.
21074         * modules/recv: New file.
21075         * modules/recvfrom: New file.
21076         * modules/send: New file.
21077         * modules/sendto: New file.
21078         * modules/setsockopt: New file.
21079         * modules/socket: New file.
21080         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21081         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21082         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21083         the particular module is requested. Add a link warning when the
21084         particular module is not requested.
21085         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21086         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21087         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21088         the particular module is requested.
21089         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21090         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21091         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21092         * modules/sys_socket (Depends-on): Add link-warning.
21093         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21094         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21095         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21096         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21097         GL_LINK_WARNING.
21098         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21099         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21100         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21101         * doc/posix-functions/getpeername.texi: Mention the new module
21102         'getpeername'.
21103         * doc/posix-functions/getsockname.texi: Mention the new module
21104         'getsockname'.
21105         * doc/posix-functions/getsockopt.texi: Mention the new module
21106         'getsockopt'.
21107         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21108         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21109         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21110         * doc/posix-functions/send.texi: Mention the new module 'send'.
21111         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21112         * doc/posix-functions/setsockopt.texi: Mention the new module
21113         'setsockopt'.
21114         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21115         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21116         listen, connect, accept.
21117         * modules/select-tests (Depends-on): Likewise.
21118
21119 2008-10-05  Bruno Haible  <bruno@clisp.org>
21120
21121         * lib/winsock.c (strerror): Remove unused #undef.
21122         (rpl_close): Remove unused local variable.
21123
21124         * modules/sys_socket (Depends-on); Add errno.
21125
21126 2008-10-05  Bruno Haible  <bruno@clisp.org>
21127
21128         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21129         (select): Add a link warning when the 'select' module is not used.
21130         * modules/sys_select (Depends-on): Add link-warning.
21131         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21132         Suggested by Paolo Bonzini.
21133
21134 2008-10-05  Jim Meyering  <meyering@redhat.com>
21135
21136         bootstrap: check for LT_INIT more portably
21137         * build-aux/bootstrap: Avoid using grep -E, since it's not
21138         portable enough.  Suggestion from Bruno Haible.
21139
21140 2008-10-05  Bruno Haible  <bruno@clisp.org>
21141
21142         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21143         as being fixed by gnulib.
21144
21145 2008-10-05  Bruno Haible  <bruno@clisp.org>
21146
21147         * modules/select-tests: New file, mostly copied from
21148         modules/sys_select-tests.
21149         * tests/test-select.c: New file, mostly copied from
21150         tests/test-sys_select.c.
21151         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21152         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21153         (Makefile.am): Remove test_sys_select_LDADD.
21154
21155         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21156         to an undefined symbol, for an error message.
21157         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21158         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21159         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21160         winsock-select.c here.
21161         * modules/sys_select (Files): Remove lib/winsock-select.c.
21162         (Depends-on): Remove alloca.
21163         (Makefile.am): Substitute GNULIB_SELECT.
21164         * modules/select: New file.
21165         * doc/posix-functions/select.texi: Update.
21166
21167 2008-10-05  Bruno Haible  <bruno@clisp.org>
21168
21169         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21170         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21171         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21172         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21173         getdtablesize.
21174         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21175         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21176
21177 2008-10-05  Bruno Haible  <bruno@clisp.org>
21178
21179         * modules/getdtablesize-tests: New file.
21180         * tests/test-getdtablesize.c: New file.
21181
21182         New module 'getdtablesize'.
21183         * lib/unistd.in.h (getdtablesize): New declaration.
21184         * lib/getdtablesize.c: New file.
21185         * m4/getdtablesize.m4: New file.
21186         * modules/getdtablesize: New file.
21187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21188         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21189         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21190         HAVE_GETDTABLESIZE.
21191         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21192
21193 2008-10-05  Bruno Haible  <bruno@clisp.org>
21194
21195         * modules/sched (Makefile.am): Fix typo.
21196         Reported by Simon Josefsson.
21197
21198 2008-10-05  Jim Meyering  <meyering@redhat.com>
21199
21200         bootstrap: check for LT_INIT, too
21201         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21202         are deprecated.  Suggestion from Ralf Wildenhues.
21203
21204 2008-10-05  Bruno Haible  <bruno@clisp.org>
21205
21206         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21207         overriding them by ours.
21208         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21209
21210 2008-10-05  Jim Meyering  <meyering@redhat.com>
21211
21212         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21213         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21214         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21215
21216 2008-10-04  Bruno Haible  <bruno@clisp.org>
21217
21218         * modules/dup2 (License): Change to LGPLv2+.
21219         * modules/sleep (License): Likewise.
21220         * modules/perror (License): Likewise.
21221         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21222         Blake.
21223         * modules/signal (License): Likewise.
21224         * modules/sigprocmask (License): Likewise.
21225         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21226         Meyering.
21227
21228 2008-10-04  Bruno Haible  <bruno@clisp.org>
21229
21230         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21231         Reported by Rainer Tammer <tammer@tammer.net>.
21232
21233 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21234             Bruno Haible  <bruno@clisp.org>
21235
21236         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21237         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21238         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21239
21240 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21241
21242         filevercmp: new module
21243         * lib/filevercmp.h: New function filevercmp comparing version strings.
21244         * lib/filevercmp.c: Implementation of filevercmp function.
21245         * modules/filevercmp: Module metadata.
21246         * tests/test-filevercmp.c: Unit test for new module.
21247         * modules/filevercmp-tests: Unit test metadata.
21248         * MODULES.html.sh: Add filevercmp module.
21249
21250 2008-10-03  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/c-ctype.h: Add comment.
21253         Reported by Jim Meyering.
21254
21255 2008-10-02  Bruno Haible  <bruno@clisp.org>
21256
21257         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21258
21259 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21260
21261         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21262         name of bootstrap.conf accordingly.
21263
21264 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21265
21266         * build-aux/bootstrap: Install git-merge-changelog configuration
21267         items into .gitconfig if needed.
21268
21269 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21270
21271         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21272         git repository, and initialize/update it accordingly.
21273
21274 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21275
21276         * modules/fsync-tests: New file.
21277         * tests/test-fsync.c: New file.
21278
21279         New module 'fsync'.
21280         * lib/fsync.c: New file.
21281         * m4/fsync.m4: New file.
21282         * modules/fsync: New file.
21283         * lib/unistd.in.h (fsync): New declaration.
21284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21285         GNULIB_FSYNC and HAVE_FSYNC.
21286         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21287         * MODULES.html.sh (posix_functions): Add fsync.
21288         * doc/posix-functions/fsync.texi: Mention the new module.
21289
21290 2008-10-02  Jim Meyering  <meyering@redhat.com>
21291
21292         fts.c: sync with similar code from coreutils' remove.c
21293         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21294         Guard also with "#if defined __linux__", since for now at least,
21295         this code is Linux-kernel-specific.
21296
21297 2008-10-02  Jim Meyering  <meyering@redhat.com>
21298
21299         fts: bug fixes
21300         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21301         Include <sys/vfs.h>, not <sys/statfs.h>.
21302
21303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21304         Include <sys/vfs.h>, not <sys/statfs.h>.
21305
21306 2008-10-01  Bruno Haible  <bruno@clisp.org>
21307
21308         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21310         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21311         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21312         * doc/posix-functions/posix_spawnp.texi: Likewise.
21313         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21314         whether posix_spawn actually works.
21315         * m4/pipe.m4 (gl_PIPE): Likewise.
21316         * modules/execute (Files): Add m4/posix_spawn.m4.
21317         * modules/pipe (Files): Add m4/posix_spawn.m4.
21318         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21319
21320 2008-10-01  Jim Meyering  <meyering@redhat.com>
21321
21322         remove trailing spaces
21323         * NEWS: Likewise.
21324         * lib/poll.c (poll): Likewise.
21325         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21326         * lib/winsock.c (rpl_close): Likewise.
21327         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21328         * modules/yield: Likewise.
21329         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21330         * tests/test-sys_select.c (connect_to_socket): Likewise.
21331
21332         fts.c: adjust a new interface to be more generally useful
21333         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21334         (fts_build): Adjust caller.
21335
21336 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21337
21338         * modules/cond-tests: New file.
21339         * tests/test-cond.c: New file.
21340
21341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21342             Bruno Haible  <bruno@clisp.org>
21343
21344         * modules/cond (Dependencies): Add errno, time.
21345         * lib/glthread/cond.h: Include <time.h>.
21346         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21347         across platforms.
21348
21349 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21350             Bruno Haible  <bruno@clisp.org>
21351
21352         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21353
21354 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21355             Bruno Haible  <bruno@clisp.org>
21356
21357         * modules/tls-tests (Depends-on): Add thread, yield.
21358         (configure.ac): Remove all checks.
21359         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21360         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21361         gl_thread_self): Remove definitions. Include glthread/thread.h and
21362         glthread/yield.h instead.
21363         (test_tls): Pass an additional NULL argument to gl_thread_join.
21364
21365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21366             Bruno Haible  <bruno@clisp.org>
21367
21368         * modules/lock-tests (Depends-on): Add thread, yield.
21369         (configure.ac): Remove all checks.
21370         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21371         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21372         gl_thread_self): Remove definitions. Include glthread/thread.h and
21373         glthread/yield.h instead.
21374         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21375         additional NULL argument to gl_thread_join.
21376
21377 2008-09-30  Bruno Haible  <bruno@clisp.org>
21378
21379         Fix the Win32 implementation of the 'thread' module.
21380         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21381         pointer type.
21382         (gl_thread_self): Invoke gl_thread_self_func.
21383         (gl_thread_self_func): New declaration.
21384         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21385         (do_init_self_key, init_self_key): New functions.
21386         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21387         Remove some fields.
21388         (running_threads, running_lock): Remove variables.
21389         (get_current_thread_handle): New function.
21390         (gl_thread_self_func, wrapper_func, glthread_create_func,
21391         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21392         simplified.
21393
21394 2008-09-30  Bruno Haible  <bruno@clisp.org>
21395
21396         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21397         files.
21398
21399 2008-09-30  Jim Meyering  <meyering@redhat.com>
21400
21401         fts.m4: correct the test for statfs.f_type
21402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21403         when checking for statfs.f_type.
21404
21405 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21406
21407         tests: avoid some compiler warnings
21408         * tests/test-memchr.c (main): Pass NULL indirectly.
21409         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21410
21411 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
21412
21413         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21414         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21415         exactly specified dayshifts.
21416         (dayshift): New rule.
21417         (rel): Add dayshift.
21418         (relative_time_table) [tomorrow, yesterday, today, now]:
21419         Use tDAY_SHIFT in place of tDAY_UNIT.
21420         * tests/test-getdate.c: Add tests for now-disallowed countable
21421         dayshifts, e.g., "4 yesterday ago".
21422
21423 2008-09-29  Bruno Haible  <bruno@clisp.org>
21424
21425         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21426         * tests/test-posix_spawn1.in.sh: Renamed from
21427         tests/test-posix_spawn.in.sh.
21428         * tests/test-posix_spawn2.c: New file.
21429         * tests/test-posix_spawn2.in.sh: New file.
21430         * modules/posix_spawnp-tests (Files): Update.
21431         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21432
21433 2008-09-29  Bruno Haible  <bruno@clisp.org>
21434
21435         Propagate effects of putenv/setenv/unsetenv to child processes.
21436         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21437         * lib/pipe.c (create_pipe): Likewise.
21438
21439 2008-09-29  Bruno Haible  <bruno@clisp.org>
21440
21441         Enable use of shell scripts as executables in mingw.
21442         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21443         run the program as a shell script.
21444         * lib/pipe.c (create_pipe): Likewise.
21445         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21446         resulting array.
21447
21448 2008-09-29  Eric Blake  <ebb9@byu.net>
21449
21450         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21451
21452 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21453
21454         * doc/posix-functions/accept.texi: Update mingw problems.
21455         * doc/posix-functions/bind.texi: Update mingw problems.
21456         * doc/posix-functions/close.texi: Update mingw problems.
21457         * doc/posix-functions/connect.texi: Update mingw problems.
21458         * doc/posix-functions/getpeername.texi: Update mingw problems.
21459         * doc/posix-functions/getsockname.texi: Update mingw problems.
21460         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21461         * doc/posix-functions/ioctl.texi: Update mingw problems.
21462         * doc/posix-functions/listen.texi: Update mingw problems.
21463         * doc/posix-functions/recv.texi: Update mingw problems.
21464         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21465         * doc/posix-functions/select.texi: Update mingw problems.
21466         * doc/posix-functions/send.texi: Update mingw problems.
21467         * doc/posix-functions/sendto.texi: Update mingw problems.
21468         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21469         * doc/posix-functions/socket.texi: Update mingw problems.
21470
21471 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21472             Bruno Haible  <bruno@clisp.org>
21473
21474         * lib/sys_select.in.h: Include sys/time.h.
21475         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21476         * modules/sys_select: Depend on sys_time.
21477         * tests/test-sys_select.c: Test that sys/select.h defines struct
21478         timeval fully.
21479
21480 2008-09-29  Bruno Haible  <bruno@clisp.org>
21481
21482         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21483         * lib/sys_select.in.h: Likewise.
21484
21485 2008-09-29  Bruno Haible  <bruno@clisp.org>
21486
21487         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21488
21489 2008-09-29  Bruno Haible  <bruno@clisp.org>
21490
21491         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21492         Set LIBSOCKET instead of augmenting LIBS.
21493         * modules/sockets (Link): New section.
21494         * modules/sockets-tests (test_sockets_LDADD): New variable.
21495         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21496         * modules/poll-tests (test_poll_LDADD): New variable.
21497         * NEWS: Document the change.
21498
21499 2008-09-29  Bruno Haible  <bruno@clisp.org>
21500
21501         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21502         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21503         ARPA_INET_H directly.
21504         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21505
21506 2008-09-28  Bruno Haible  <bruno@clisp.org>
21507
21508         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21509         from gl_HEADER_SYS_SOCKET.
21510         (gl_HEADER_SYS_SOCKET): Invoke it.
21511         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21512
21513 2008-09-28  Bruno Haible  <bruno@clisp.org>
21514
21515         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21516         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21517         Needed on OSF/1 4.0.
21518
21519 2008-09-28  Bruno Haible  <bruno@clisp.org>
21520
21521         Override open more carefully.
21522         * lib/open.c (orig_open): New function.
21523         (rpl_open): Use orig_open instead of open.
21524         * lib/fcntl.in.h: Add special invocation convention.
21525         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21526         (gl_FUNC_OPEN): Invoke it.
21527
21528         Override freopen more carefully.
21529         * lib/freopen.c (orig_freopen): New function.
21530         (rpl_freopen): Use orig_freopen instead of freopen.
21531         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21532         (gl_FUNC_FREOPEN): Invoke it.
21533
21534         Override fopen more carefully.
21535         * lib/fopen.c (orig_fopen): New function.
21536         (rpl_fopen): Use orig_fopen instead of fopen.
21537         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21538         (gl_FUNC_FOPEN): Invoke it.
21539         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21540
21541 2008-09-28  Bruno Haible  <bruno@clisp.org>
21542
21543         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21544         SIGPIPE.
21545
21546 2008-09-28  Bruno Haible  <bruno@clisp.org>
21547
21548         * tests/test-sigaction.c (handler, main): Disable the check whether
21549         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21550         glibc systems with LinuxThreads.
21551
21552 2008-09-28  Bruno Haible  <bruno@clisp.org>
21553
21554         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21555
21556         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21557         with AIX xlc.
21558         * lib/fcntl.in.h (open): Likewise.
21559         Reported by Rainer Tammer <tammer@tammer.net>.
21560
21561 2008-09-28  Bruno Haible  <bruno@clisp.org>
21562
21563         * modules/posix_spawnp-tests: New file.
21564         * tests/test-posix_spawn.c: New file.
21565         * tests/test-posix_spawn.in.sh: New file.
21566
21567         New module 'posix_spawnp'.
21568         * modules/posix_spawnp: New file.
21569         * lib/spawnp.c: New file, from GNU libc with modifications.
21570         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21571
21572         New module 'posix_spawn'.
21573         * modules/posix_spawn: New file.
21574         * lib/spawn.c: New file, from GNU libc with modifications.
21575         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21576
21577         New module 'posix_spawnattr_destroy'.
21578         * modules/posix_spawnattr_destroy: New file.
21579         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21580         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21581         module.
21582
21583         New module 'posix_spawnattr_setsigmask'.
21584         * modules/posix_spawnattr_setsigmask: New file.
21585         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21586         modifications.
21587         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21588         new module.
21589
21590         New module 'posix_spawnattr_getsigmask'.
21591         * modules/posix_spawnattr_getsigmask: New file.
21592         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21593         modifications.
21594         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21595         new module.
21596
21597         New module 'posix_spawnattr_setsigdefault'.
21598         * modules/posix_spawnattr_setsigdefault: New file.
21599         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21600         modifications.
21601         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21602         new module.
21603
21604         New module 'posix_spawnattr_getsigdefault'.
21605         * modules/posix_spawnattr_getsigdefault: New file.
21606         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21607         modifications.
21608         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21609         new module.
21610
21611         New module 'posix_spawnattr_setschedpolicy'.
21612         * modules/posix_spawnattr_setschedpolicy: New file.
21613         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21614         modifications.
21615         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21616         new module.
21617
21618         New module 'posix_spawnattr_getschedpolicy'.
21619         * modules/posix_spawnattr_getschedpolicy: New file.
21620         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
21621         modifications.
21622         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
21623         new module.
21624
21625         New module 'posix_spawnattr_setschedparam'.
21626         * modules/posix_spawnattr_setschedparam: New file.
21627         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
21628         modifications.
21629         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
21630         new module.
21631
21632         New module 'posix_spawnattr_getschedparam'.
21633         * modules/posix_spawnattr_getschedparam: New file.
21634         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
21635         modifications.
21636         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
21637         new module.
21638
21639         New module 'posix_spawnattr_setpgroup'.
21640         * modules/posix_spawnattr_setpgroup: New file.
21641         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
21642         modifications.
21643         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
21644         module.
21645
21646         New module 'posix_spawnattr_getpgroup'.
21647         * modules/posix_spawnattr_getpgroup: New file.
21648         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
21649         modifications.
21650         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
21651         module.
21652
21653         New module 'posix_spawnattr_setflags'.
21654         * modules/posix_spawnattr_setflags: New file.
21655         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
21656         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
21657         module.
21658
21659         New module 'posix_spawnattr_getflags'.
21660         * modules/posix_spawnattr_getflags: New file.
21661         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
21662         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
21663         module.
21664
21665         New module 'posix_spawnattr_init'.
21666         * modules/posix_spawnattr_init: New file.
21667         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
21668         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
21669         module.
21670
21671         New module 'posix_spawn_file_actions_destroy'.
21672         * modules/posix_spawn_file_actions_destroy: New file.
21673         * lib/spawn_faction_destroy.c: New file, from GNU libc with
21674         modifications.
21675         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
21676         the new module.
21677
21678         New module 'posix_spawn_file_actions_addopen'.
21679         * modules/posix_spawn_file_actions_addopen: New file.
21680         * lib/spawn_faction_addopen.c: New file, from GNU libc with
21681         modifications.
21682         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
21683         the new module.
21684
21685         New module 'posix_spawn_file_actions_adddup2'.
21686         * modules/posix_spawn_file_actions_adddup2: New file.
21687         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
21688         modifications.
21689         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
21690         the new module.
21691
21692         New module 'posix_spawn_file_actions_addclose'.
21693         * modules/posix_spawn_file_actions_addclose: New file.
21694         * lib/spawn_faction_addclose.c: New file, from GNU libc with
21695         modifications.
21696         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
21697         the new module.
21698
21699         New module 'posix_spawn_file_actions_init'.
21700         * modules/posix_spawn_file_actions_init: New file.
21701         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
21702         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
21703         new module.
21704
21705         New module 'posix_spawn-internal'.
21706         * modules/posix_spawn-internal: New file.
21707         * lib/spawn_int.h: New file, from GNU libc with modifications.
21708         * lib/spawni.c: New file, from GNU libc with modifications.
21709         * m4/posix_spawn.m4: New file.
21710
21711         New module 'spawn'.
21712         * modules/spawn: New file.
21713         * lib/spawn.in.h: New file, from GNU libc with modifications.
21714         * m4/spawn_h.m4: New file.
21715         * doc/posix-headers/spawn.texi: Mention the new module.
21716
21717 2008-09-28  Bruno Haible  <bruno@clisp.org>
21718
21719         * modules/sched-tests: New file.
21720         * tests/test-sched.c: New file.
21721
21722         New module 'sched'.
21723         * modules/sched: New file.
21724         * lib/sched.in.h: New file.
21725         * m4/sched_h.m4: New file.
21726         * doc/posix-headers/sched.texi: Mention the new module.
21727
21728 2008-09-27  Eric Blake  <ebb9@byu.net>
21729
21730         Fix previous patch, and tweak references to $0.
21731         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
21732         (func_version, func_gnulib_dir): Don't call this program
21733         gnulib-tool.
21734         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
21735         with using $0 in function.
21736         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
21737         (func_fatal_error): Reuse the name the user invoked us with.
21738
21739 2008-09-27  Bruno Haible  <bruno@clisp.org>
21740
21741         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
21742         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
21743         (gl_ICONV_H): Not here.
21744         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
21745         instead of assigning ICONV_H directly.
21746
21747         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
21748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
21749         WCHAR_H directly.
21750
21751 2008-09-27  Bruno Haible  <bruno@clisp.org>
21752
21753         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
21754         * modules/arpa_inet (Depends-on): Add link-warning.
21755         (Makefile.am): Insert the definition of GL_LINK-WARNING.
21756         * modules/unistd (Makefile.am): Likewise.
21757
21758 2008-09-26  Bruno Haible  <bruno@clisp.org>
21759
21760         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
21761         variables.
21762         (func_version): Essentially copied from gnulib-tool.
21763         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
21764         func_readlink): Copied from gnulib-tool.
21765
21766 2008-09-26  Bruno Haible  <bruno@clisp.org>
21767
21768         * gnulib-tool (func_version): Change directory to $gnulib_dir before
21769         invoking git-version-gen.
21770
21771 2008-09-26  Bruno Haible  <bruno@clisp.org>
21772
21773         * posix-modules: Update to directory names changed on 2008-01-19.
21774         Remove commas in output before splitting into words. No more need to
21775         avoid 'ftruncate' since 2007-02-19.
21776
21777 2008-09-26  Bruno Haible  <bruno@clisp.org>
21778
21779         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
21780
21781 2008-09-26  Bruno Haible  <bruno@clisp.org>
21782
21783         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
21784         * modules/fwriteerror (Depends-on): Add errno.
21785
21786 2008-09-26  Bruno Haible  <bruno@clisp.org>
21787
21788         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
21789         * tests/test-vc-list-files-cvs.sh: Likewise.
21790
21791 2008-09-26  Bruno Haible  <bruno@clisp.org>
21792
21793         * doc/posix-headers/sys_resource.texi: Reorder items.
21794
21795 2008-09-26  Jim Meyering  <meyering@redhat.com>
21796
21797         fts: tweak inode comparison function
21798         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
21799         inode numbers, as documented.
21800
21801         fts: sort dirent entries on inode number before traversing
21802         This avoids a quadratic, seek-related performance penalty when
21803         operating on a directory containing many entries (measurable at 10k;
21804         3.5 hours at 2 million entries with a cold cache) on certain types
21805         of file systems, including ext3 and ext4, but not tmpfs.
21806         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
21807         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
21808         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
21809         (fs_handles_readdir_ordered_dirents_efficiently): New function.
21810         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
21811         (fts_build): Set the stat.st_ino member from D_INO.
21812         If it is likely to be useful, sort dirent entries on inode number.
21813
21814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
21815         and the struct statfs.f_type member.
21816         * modules/fts (Depends-on): Add d-ino.
21817
21818 2008-09-26  Bruno Haible  <bruno@clisp.org>
21819
21820         * modules/sigpipe-die (Depends-on): Add sigpipe.
21821
21822         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
21823         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
21824         and GNULIB_STDIO_H_SIGPIPE are set.
21825         * lib/stdio-write.c: New file.
21826         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
21827         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21828         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21829         REPLACE_STDIO_WRITE_FUNCS.
21830         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
21831         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21832         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21833         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21834         * modules/stdio (Files): Add lib/stdio-write.c.
21835         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
21836         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
21837         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
21838         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
21839         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
21840         REPLACE_FPRINTF_POSIX.
21841         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
21842         REPLACE_PRINTF_POSIX.
21843         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
21844         REPLACE_VFPRINTF_POSIX.
21845         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
21846         REPLACE_VPRINTF_POSIX.
21847         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
21848         SIGPIPE issue.
21849         * doc/posix-functions/fputc.texi: Likewise.
21850         * doc/posix-functions/fputs.texi: Likewise.
21851         * doc/posix-functions/fwrite.texi: Likewise.
21852         * doc/posix-functions/printf.texi: Likewise.
21853         * doc/posix-functions/putc.texi: Likewise.
21854         * doc/posix-functions/putchar.texi: Likewise.
21855         * doc/posix-functions/puts.texi: Likewise.
21856         * doc/posix-functions/vfprintf.texi: Likewise.
21857         * doc/posix-functions/vprintf.texi: Likewise.
21858
21859         * modules/safe-write (Depends-on): Add write.
21860
21861         * modules/sigpipe-tests: New file.
21862         * tests/test-sigpipe.c: New file.
21863         * tests/test-sigpipe.sh: New file.
21864
21865         * modules/write: New file.
21866         * lib/unistd.in.h: Include <sys/types.h>.
21867         (write): New declaration.
21868         * lib/write.c: New file.
21869         * m4/write.m4: New file.
21870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21871         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
21872         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
21873         GNULIB_WRITE, REPLACE_WRITE.
21874         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
21875         and the SIGPIPE issue.
21876
21877         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
21878         (raise): New declaration.
21879         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
21880         (ext_signal): New function.
21881         (rpl_raise): New function.
21882         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
21883         GNULIB_SIGNAL_H_SIGPIPE.
21884         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
21885         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
21886
21887         * modules/sigpipe: New file.
21888         * m4/sigpipe.m4: New file.
21889
21890 2008-09-25  Derek Price  <derek@ximbiot.com>
21891             Bruno Haible  <bruno@clisp.org>
21892
21893         * gnulib-tool (func_import): Report all license incompatibilities, not
21894         just the first one.
21895
21896 2008-09-25  Bruno Haible  <bruno@clisp.org>
21897
21898         * gnulib-tool (func_import): When computing the edits, consider not
21899         only the Makefile.ams that exist but also those that will be generated.
21900
21901 2008-09-25  Simon Josefsson  <simon@josefsson.org>
21902
21903         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
21904         fixes gnulib-tool --test warning about duplicate dependency.
21905
21906 2008-09-25  Bruno Haible  <bruno@clisp.org>
21907
21908         * gnulib-tool: Don't ask the user to perform edits in the generated
21909         Makefile.ams.
21910         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
21911         apply to the Makefile.am being generated.
21912         (func_emit_tests_Makefile_am): Execute edits that apply to the
21913         Makefile.am being generated.
21914         (func_import): Setup list of Makefile.am edits before emitting the
21915         Makefile.ams, not at the end.
21916         (func_create_testdir): Update.
21917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21918
21919 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21920
21921         * gnulib-tool (func_import): Store the --tests-base option in the
21922         comment in gnulib-cache.m4.
21923
21924 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
21925
21926         * NEWS: Document increased portability that sys_select now provides.
21927
21928         * lib/sys_select.in.h: Install select wrapper.
21929         * lib/sys_socket.in.h: Use more descriptive name when there is no
21930         select wrapper.
21931         * lib/winsock-select.c: New.
21932         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
21933         Require gl_HEADER_SYS_SOCKET.
21934         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
21935         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
21936         * tests/test-sys_select.c: Add functional tests.
21937
21938 2008-09-24  Eric Blake  <ebb9@byu.net>
21939
21940         open, fopen: close fd leak in last patch
21941         * lib/open.c (rpl_open): Close fd before returning error.
21942         * lib/fopen.c (rpl_fopen): Close fd before returning error.
21943         * doc/posix-functions/open.texi (open): Document that Irix also
21944         has the bug.
21945         * doc/posix-functions/fopen.texi (fopen): Likewise.
21946         Reported by Paolo Bonzini.
21947
21948 2008-09-24  Bruno Haible  <bruno@clisp.org>
21949
21950         Ensure that a filename ending in a slash cannot be used to access a
21951         non-directory.
21952         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
21953         to check whether it's really a directory.
21954         * lib/fopen.c: Include fcntl.h, unistd.h.
21955         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
21956         and fdopen().
21957         * modules/fopen (Depends-on): Add unistd.
21958         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
21959         * tests/test-fopen.c (main): Likewise.
21960         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
21961         * doc/posix-functions/fopen.texi: Likewise.
21962         Reported by Eric Blake.
21963
21964 2008-09-23  Eric Blake  <ebb9@byu.net>
21965
21966         c-stack: avoid compiler optimizations when provoking overflow
21967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
21968         recursion harder to optimize, to ensure a stack overflow occurs.
21969         * tests/test-c-stack.c (recurse): Likewise.
21970         Borrowed from libsigsegv.
21971
21972         c-stack: work around Irix sigaltstack bug
21973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
21974         whether sigaltstack uses wrong end of stack_t (copied in part from
21975         libsigsegv).
21976         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
21977         Irix bug, without requiring an over-allocation.
21978         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
21979         bug.
21980
21981         fopen: document mingw bug on directories
21982         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
21983         not allowing a stream visiting a directory, even though reading
21984         from such a stream is not portable.
21985
21986 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21987
21988         * lib/poll.c: Rewrite.
21989         * modules/poll: Depend on alloca.
21990
21991 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
21992
21993         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
21994         instead define prototypes for a full set of wrappers.  Ensure
21995         that Cygwin does not use the compatibility code, which is only
21996         for MinGW.
21997         * lib/winsock.c: New.
21998         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
21999         * modules/sys_socket: Add lib/winsock.c.
22000
22001         * modules/poll-tests: Add errno and perror.
22002         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22003
22004 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22005
22006         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22007
22008 2008-09-23  Bruno Haible  <bruno@clisp.org>
22009
22010         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22011         * doc/glibc-functions/*: Likewise.
22012
22013 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22014
22015         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22016         success.
22017
22018 2008-09-22  Eric Blake  <ebb9@byu.net>
22019             Bruno Haible  <bruno@clisp.org>
22020
22021         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22022         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22023         supply %A but mishandle pseudo-NaN.
22024         Reported by Simon Josefsson.
22025
22026 2008-09-21  Bruno Haible  <bruno@clisp.org>
22027
22028         * tests/test-lock.c (main): Tweak skip message.
22029         * tests/test-tls.c (main): Likewise.
22030
22031 2008-09-21  Bruno Haible  <bruno@clisp.org>
22032
22033         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22034         whether 'struct sigaction' has sa_sigaction here...
22035         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22036         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22037
22038 2008-09-21  Bruno Haible  <bruno@clisp.org>
22039
22040         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22041         section.
22042         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22043         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22044         the new section.
22045         (Support for obsolete systems lacking POSIX:2001): New section.
22046         (String handling <string.h>): Move strdup to the new section.
22047         Suggested by Simon Josefsson and Paolo Bonzini.
22048
22049 2008-09-21  Bruno Haible  <bruno@clisp.org>
22050
22051         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22052         exponents in %e and %g results on 'long double'. Needed for mingw's
22053         improved *printf functions.
22054         * tests/test-vasprintf-posix.c (test_function): Likewise.
22055         * tests/test-snprintf-posix.h (test_function): Likewise.
22056         * tests/test-sprintf-posix.h (test_function): Likewise.
22057         Reported by Eric Blake.
22058
22059 2008-09-21  Bruno Haible  <bruno@clisp.org>
22060
22061         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22062         * tests/test-sprintf-posix.h (test_function): Likewise.
22063
22064 2008-09-21  Bruno Haible  <bruno@clisp.org>
22065
22066         * modules/getpass (Depends-on): Add strdup-posix.
22067
22068         New module 'strdup-posix'.
22069         * modules/strdup-posix: New file.
22070         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22071         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22073         REPLACE_STRDUP.
22074         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22075         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22076         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22077         strdup-posix.
22078
22079         * modules/strdup (Depends-on): Remove malloc-posix.
22080
22081 2008-09-20  Bruno Haible  <bruno@clisp.org>
22082
22083         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22084         Wildenhues.
22085
22086 2008-09-20  Bruno Haible  <bruno@clisp.org>
22087
22088         Ensure that wint_t gets defined on IRIX 5.3.
22089         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22090         * lib/wctype.in.h (wint_t): Likewise.
22091         (__wctype_wint_t): Remove type.
22092         (isw*): Use wint_t instead of __wctype_wint_t.
22093         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22094         * modules/wchar (Files): Add m4/wint_t.m4.
22095         (Makefile.am): Substitute HAVE_WINT_T.
22096         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22097         * tests/test-wctype.c: Check that wint_t is defined.
22098         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22099         * doc/posix-headers/wctype.texi: Likewise.
22100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22101
22102 2008-09-18  Bruno Haible  <bruno@clisp.org>
22103
22104         * gnulib-tool (func_exit): Update comment.
22105
22106 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22107
22108         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22109         assumes strdup exists and does not depend on strdup to return
22110         ENOMEM on out of memory conditions.
22111
22112 2008-09-18  Bruno Haible  <bruno@clisp.org>
22113
22114         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22115         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22116         digits for the exponent.
22117
22118 2008-09-18  Jim Meyering  <meyering@redhat.com>
22119             Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/vasnprintf.c (decimal_point_char): Define also if
22122         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22123
22124 2008-09-16  Bruno Haible  <bruno@clisp.org>
22125         and Eric Blake  <ebb9@byu.net>
22126
22127         vasnprintf: support Irix 5.3
22128         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22129         that mishandle long double infinity.
22130         Reported by Tom G. Christensen.
22131
22132 2008-09-16  Bruno Haible  <bruno@clisp.org>
22133
22134         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22135         Solaris 9.
22136         * doc/glibc-functions/alphasort.texi: Likewise.
22137         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22138
22139 2008-09-16  Jim Meyering  <meyering@redhat.com>
22140
22141         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22142         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22143         a umask modification leak out of a subshell.  Otherwise, the
22144         opensolaris /bin/sh would be accepted and thus cause unwarranted
22145         failures in the coreutils test suite.
22146
22147 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22148
22149         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22150         to succeed.
22151
22152 2008-09-16  Jim Meyering  <meyering@redhat.com>
22153
22154         avoid spurious test failure when library is built without ACL support
22155         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22156         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22157         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22158         * tests/test-copy-acl.sh: Likewise.
22159
22160 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22161
22162         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22163         based on character occurrence counts.
22164
22165 2008-09-15  Eric Blake  <ebb9@byu.net>
22166
22167         tests: avoid some compiler warnings
22168         * tests/test-memchr.c (main): Pass NULL indirectly.
22169         * tests/test-closein.c (main): Avoid unused variable.
22170
22171 2008-09-15  Bruno Haible  <bruno@clisp.org>
22172
22173         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22174         are missing on OpenBSD 4.0 individually.
22175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22176
22177 2008-09-15  Bruno Haible  <bruno@clisp.org>
22178
22179         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22180         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22181         * doc/posix-functions/perror.texi: Likewise.
22182         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22183         is missing.
22184         Reported by Eric Blake.
22185
22186         * lib/errno.in.h: Use replacement values >= 2000.
22187         Reported by Eric Blake.
22188
22189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22190
22191         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22192         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22193         limit.
22194         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22195         compareseq was aborted.
22196
22197 2008-09-14  Bruno Haible  <bruno@clisp.org>
22198
22199         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22200         yvec_edit_count.
22201         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22202         (fstrcmp_bounded): Simplify result computation accordingly.
22203
22204 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22205
22206         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22207         (fstrcmp): Define in terms of fstrcmp_bounded.
22208         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22209         lower_bound argument.
22210         Return quickly if the result is certainly < lower_bound.
22211         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22212
22213 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22214
22215         * lib/diffseq.h (EARLY_ABORT): New macro.
22216         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22217         evaluates to true.
22218
22219 2008-09-14  Bruno Haible  <bruno@clisp.org>
22220
22221         * modules/perror-tests: New file.
22222         * tests/test-perror.sh: New file.
22223         * tests/test-perror.c: New file.
22224
22225         New module 'perror'.
22226         * lib/stdio.in.h (perror): New declaration.
22227         * lib/perror.c: New file.
22228         * m4/perror.m4: New file.
22229         * modules/perror: New file.
22230         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22231         * doc/posix-functions/perror.texi: Mention the perror module.
22232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22233         REPLACE_PERROR.
22234         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22235         REPLACE_PERROR.
22236
22237 2008-09-14  Bruno Haible  <bruno@clisp.org>
22238
22239         * modules/stdio (Makefile.am): Reorder to match the order in
22240         lib/stdio.in.h.
22241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22242
22243 2008-09-13  Bruno Haible  <bruno@clisp.org>
22244
22245         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22246
22247 2008-09-13  Bruno Haible  <bruno@clisp.org>
22248
22249         Extend strerror to cover the added errno values.
22250         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22251         (rpl_strerror): Provide error messages for the added errno values and
22252         for the WSA* values.
22253         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22254         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22255         strerror.
22256         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22257         * modules/strerror (Depends-on): Add errno.
22258         * doc/posix-functions/strerror.texi: Document the change.
22259         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22260         and EOVERFLOW.
22261
22262 2008-09-13  Bruno Haible  <bruno@clisp.org>
22263
22264         * modules/EOVERFLOW: Remove file.
22265         * m4/eoverflow.m4: Remove file.
22266         * modules/EOVERFLOW-tests: Remove file.
22267         * tests/test-EOVERFLOW.c: Remove file.
22268         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22269         * modules/ftell (Depends-on): Likewise.
22270         * modules/getdelim (Depends-on): Likewise.
22271         * modules/getugroups (Depends-on): Likewise.
22272         * modules/poll (Depends-on): Likewise.
22273         * modules/snprintf (Depends-on): Likewise.
22274         * modules/sprintf-posix (Depends-on): Likewise.
22275         * modules/vasnprintf (Depends-on): Likewise.
22276         * modules/vasprintf (Depends-on): Likewise.
22277         * modules/vfprintf-posix (Depends-on): Likewise.
22278         * modules/vsnprintf (Depends-on): Likewise.
22279         * modules/vsprintf-posix (Depends-on): Likewise.
22280         * modules/xvasprintf (Depends-on): Likewise.
22281         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22282         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22283         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22284         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22285         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22286         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22287         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22288         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22289         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22290         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22291         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22292         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22293         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22294         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22295         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22296         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22297         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22298         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22299         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22300         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22301         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22302         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22303         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22304         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22305         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22306         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22307         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22308         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22309         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22310         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22311         * MODULES.html.sh: Remove EOVERFLOW.
22312         * NEWS: Mention the change.
22313
22314 2008-09-13  Bruno Haible  <bruno@clisp.org>
22315
22316         * modules/errno-tests: New file.
22317         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22318
22319         * lib/errno.in.h: New file.
22320         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22321         * modules/errno: New file.
22322         * doc/posix-headers/errno.texi: Update documentation.
22323         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22324
22325 2008-09-13  Bruno Haible  <bruno@clisp.org>
22326
22327         * tests/test-poll.c: Use #if for native Windows, rather than testing
22328         __MSVCRT__.
22329
22330 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22331             Bruno Haible  <bruno@clisp.org>
22332
22333         * lib/glob.c: Don't include <pwd.h> on native Windows.
22334         (WINDOWS32): New macro.
22335         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22336
22337 2008-09-13  Bruno Haible  <bruno@clisp.org>
22338
22339         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22340         (ETIMEDOUT): Remove macro.
22341         (glthread_cond_timedwait_multithreaded): New declaration.
22342         (glthread_cond_timedwait): Use it.
22343         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22344         (glthread_cond_timedwait_multithreaded): New function.
22345
22346 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22347
22348         * modules/poll-tests: Do not check for io.h.
22349         * tests/test-poll.c: Check for __MSVCRT__ instead.
22350
22351 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22352
22353         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22354         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22355         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22356
22357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22358
22359         * modules/poll-tests: New.
22360         * tests/test-poll.c: New.
22361
22362 2008-09-12  Eric Blake  <ebb9@byu.net>
22363
22364         frexp: test for NetBSD failure on -0.0
22365         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22366         not all, bugs from NetBSD 3.0 have been fixed.
22367         * doc/posix-functions/frexp.texi (frexp): Document bug.
22368         Reported by Thomas Klausner.
22369
22370         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22371         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22372         literal -0.0.
22373         Reported by Jonathan C. Patschke <jp@centtech.com>.
22374
22375 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22376
22377         * lib/glthread/cond.h: Use dummy implementation also if
22378         USE_WIN32_THREADS.
22379
22380 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22381
22382         * modules/fnmatch-posix (License): Change to LGPLv2+.
22383         * modules/fnmatch-gnu (License): Likewise.
22384
22385 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22386
22387         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22388
22389 2008-09-11  Jim Meyering  <meyering@redhat.com>
22390
22391         * users.txt: Add gtk-vnc.
22392
22393 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22394
22395         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22396         rotate amounts.
22397
22398         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22399         required for 16-bit and 8-bit rotates.
22400         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22401         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22402         UINT8_MAX instead of hard-coded constants.
22403         Suggested by Paul Eggert.
22404
22405 2008-09-07  Bruno Haible  <bruno@clisp.org>
22406
22407         * tests/test-striconveh.c (main): Check behaviour when converting from
22408         UTF-7.
22409
22410         Make striconveh work better with stateful encodings.
22411         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22412         that iconv does not increment the inptr when returning -1/EINVAL.
22413
22414 2008-09-07  Bruno Haible  <bruno@clisp.org>
22415
22416         * build-aux/config.rpath: Update according to libtool-2.2.6.
22417         * build-aux/config.libpath: Likewise.
22418
22419 2008-09-06  Bruno Haible  <bruno@clisp.org>
22420
22421         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22422         * lib/freadptr.c (freadptr): Likewise.
22423         * lib/freadseek.c (freadptrinc): Likewise.
22424         Reported by Simon Josefsson.
22425
22426 2008-09-06  Bruno Haible  <bruno@clisp.org>
22427
22428         * modules/freadptr (License): Change to LGPLv2+.
22429         * modules/freadseek (License): Likewise.
22430         Suggested by Eric Blake.
22431
22432         * modules/memchr2 (License): Change to LGPLv2+.
22433         Approved by Eric Blake.
22434
22435 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22436             Bruno Haible  <bruno@clisp.org>
22437
22438         Make gnulib-tool work with native 'sed' on AIX.
22439         * gnulib-tool (sed_noop): New variable.
22440         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22441         func_add_or_update, func_create_testdir): Use it to initialize sed
22442         script variables.
22443         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22444
22445 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22446             Bruno Haible  <bruno@clisp.org>
22447
22448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22449         also works after #include directives.
22450
22451 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
22452
22453         getdate.y: reject an out-of-range timezone value
22454         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22455         the range [-24...+24].  When specified with only one or two digits,
22456         * tests/test-getdate.c: Tests for the fix.
22457         * doc/getdate.texi: Document this change.
22458
22459 2008-09-03  Bruno Haible  <bruno@clisp.org>
22460
22461         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22462
22463 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22464
22465         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22466         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22467         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22468         Blake <ebb9@byu.net>.
22469
22470         * tests/test-bitrotate.c: Add more test vectors.
22471
22472 2008-09-02  Eric Blake  <ebb9@byu.net>
22473
22474         vasnprintf-posix: handle large precision via %.*d
22475         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22476         when handling it ourselves.
22477         * tests/test-vasnprintf-posix.c (test_function): Add test.
22478         * tests/test-snprintf-posix.h (test_function): Likewise.
22479         * tests/test-sprintf-posix.h (test_function): Likewise.
22480         * tests/test-vasprintf-posix.c (test_function): Likewise.
22481         Reported by Alain Guibert.
22482
22483 2008-09-01  Eric Blake  <ebb9@byu.net>
22484
22485         c-stack: make configure-time check more robust
22486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22487         successful sigaction call.
22488         Reported by Tom G. Christensen.
22489
22490 2008-09-01  Bruno Haible  <bruno@clisp.org>
22491
22492         New module 'findprog-lgpl'.
22493         * modules/findprog-lgpl: New file.
22494         * lib/findprog-lgpl.c: New file.
22495         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22496         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22497         to decide whether to use strdup or xstrdup, concatenated_filename or
22498         xconcatenated_filename.
22499
22500 2008-09-01  Bruno Haible  <bruno@clisp.org>
22501
22502         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22503         'xconcat-filename' (GPL).
22504         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22505         (License): Change to LGPLv2+.
22506         * modules/xconcat-filename: New file.
22507         * lib/concat-filename.h (concatenated_filename): Change specification.
22508         (xconcatenated_filename): New declaration.
22509         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22510         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22511         memory situations.
22512         * lib/xconcat-filename.c: New file.
22513         * NEWS: Mention the change.
22514         * lib/findprog.c: Include concat-filename.h, not filename.h.
22515         (find_in_path): Use xconcatenated_filename instead of
22516         concatenated_filename.
22517         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22518         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22519         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22520         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22521         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22522         instead of concatenated_filename.
22523         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22524         (execute_java_class): Use xconcatenated_filename instead of
22525         concatenated_filename.
22526         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22527         * modules/javacomp (Depends-on): Likewise.
22528         * modules/javaexec (Depends-on): Likewise.
22529
22530 2008-09-01  Bruno Haible  <bruno@clisp.org>
22531
22532         Split module 'filename' into 'filename' and 'concat-filename'.
22533         * modules/filename: Keep only lib/filename.h.
22534         (License): Change to LGPLv2+.
22535         * modules/concat-filename: New file, extracted from modules/filename.
22536         * lib/filename.h (concatenated_filename): Remove declaration.
22537         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22538         * lib/concat-filename.c: Include concat-filename.h.
22539         * NEWS: Mention the change.
22540
22541 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22542
22543         * lib/bitrotate.h (rotl8, rotr8): Add.
22544
22545         * modules/bitrotate (configure.ac): Need
22546         AC_REQUIRE([AC_C_INLINE]).
22547         (Description): Mention stdint.h.  Reported by Bruno Haible
22548         <bruno@clisp.org>.
22549
22550         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22551         Paolo Bonzini <bonzini@gnu.org>.
22552
22553 2008-08-31  Bruno Haible  <bruno@clisp.org>
22554
22555         Assume Solaris specific bi-arch conventions on Solaris systems.
22556         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22557         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22559         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22560         like acl_libdirstem.
22561         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22562         acl_libdirstem.
22563         * NEWS: Mention the change.
22564         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22565
22566 2008-08-31  Jim Meyering  <meyering@redhat.com>
22567
22568         * lib/strftime.h: Add comments describing the two added arguments.
22569
22570         remove duplicate #include directives
22571         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22572         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22573
22574 2008-08-31  Bruno Haible  <bruno@clisp.org>
22575
22576         New module 'sigpipe-die'.
22577         * modules/sigpipe-die: New file.
22578         * lib/sigpipe-die.h: New file.
22579         * lib/sigpipe-die.c: New file.
22580         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22581
22582 2008-08-31  Bruno Haible  <bruno@clisp.org>
22583
22584         Don't override previously installed signal handlers.
22585         * lib/fatal-signal.c (saved_sigactions): New variable.
22586         (uninstall_handlers): Reset the signal to the saved handler, not
22587         to SIG_DFL (except when ignored).
22588         (install_handlers): Save the previous handlers.
22589
22590 2008-08-30  Bruno Haible  <bruno@clisp.org>
22591
22592         * gnulib-tool (func_reset_sigpipe): New function.
22593         (func_get_automake_snippet, func_modules_transitive_closure,
22594         func_import): Invoke it before a join command that reads from stdin,
22595         to avoid "echo: write error: Broken pipe" error messages on stderr.
22596         Reported by Sam Steingold <sds@gnu.org>.
22597
22598 2008-08-30  Bruno Haible  <bruno@clisp.org>
22599
22600         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22601         Code copied from m4/open.m4.
22602         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22603         access and the filename ends in a slash. Code copied from lib/open.c.
22604         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22605         * tests/test-fopen.c (main): Check against bug with trailing slash.
22606
22607 2008-08-29  Bruno Haible  <bruno@clisp.org>
22608
22609         Avoid some "gcc -pedantic" warnings.
22610         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22611         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22612         * lib/dirent.in.h: Likewise.
22613         * lib/fcntl.in.h: Likewise.
22614         * lib/float.in.h: Likewise.
22615         * lib/iconv.in.h: Likewise.
22616         * lib/inttypes.in.h: Likewise.
22617         * lib/locale.in.h: Likewise.
22618         * lib/math.in.h: Likewise.
22619         * lib/netinet_in.in.h: Likewise.
22620         * lib/search.in.h: Likewise.
22621         * lib/signal.in.h: Likewise.
22622         * lib/stdarg.in.h: Likewise.
22623         * lib/stdint.in.h: Likewise.
22624         * lib/stdio.in.h: Likewise.
22625         * lib/stdlib.in.h: Likewise.
22626         * lib/string.in.h: Likewise.
22627         * lib/strings.in.h: Likewise.
22628         * lib/sys_select.in.h: Likewise.
22629         * lib/sys_socket.in.h: Likewise.
22630         * lib/sys_stat.in.h: Likewise.
22631         * lib/sys_time.in.h: Likewise.
22632         * lib/sysexits.in.h: Likewise.
22633         * lib/time.in.h: Likewise.
22634         * lib/unistd.in.h: Likewise.
22635         * lib/wchar.in.h: Likewise.
22636         * lib/wctype.in.h: Likewise.
22637         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
22638         * modules/fchdir (Makefile.am): Likewise.
22639         * modules/fcntl (Makefile.am): Likewise.
22640         * modules/float (Makefile.am): Likewise.
22641         * modules/iconv_open (Makefile.am): Likewise.
22642         * modules/inttypes (Makefile.am): Likewise.
22643         * modules/locale (Makefile.am): Likewise.
22644         * modules/math (Makefile.am): Likewise.
22645         * modules/netinet_in (Makefile.am): Likewise.
22646         * modules/search (Makefile.am): Likewise.
22647         * modules/signal (Makefile.am): Likewise.
22648         * modules/stdarg (Makefile.am): Likewise.
22649         * modules/stdint (Makefile.am): Likewise.
22650         * modules/stdio (Makefile.am): Likewise.
22651         * modules/stdlib (Makefile.am): Likewise.
22652         * modules/string (Makefile.am): Likewise.
22653         * modules/strings (Makefile.am): Likewise.
22654         * modules/sys_select (Makefile.am): Likewise.
22655         * modules/sys_socket (Makefile.am): Likewise.
22656         * modules/sys_stat (Makefile.am): Likewise.
22657         * modules/sys_time (Makefile.am): Likewise.
22658         * modules/sysexits (Makefile.am): Likewise.
22659         * modules/time (Makefile.am): Likewise.
22660         * modules/unistd (Makefile.am): Likewise.
22661         * modules/wchar (Makefile.am): Likewise.
22662         * modules/wctype (Makefile.am): Likewise.
22663         Reported by Reuben Thomas <rrt@sc3d.org>.
22664
22665 2008-08-29  Bruno Haible  <bruno@clisp.org>
22666
22667         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
22668         any more.
22669
22670 2008-08-29  Simon Josefsson  <simon@josefsson.org>
22671
22672         * MODULES.html.sh (Misc): Add bitrotate.
22673
22674         * modules/bitrotate: New file.
22675
22676         * lib/bitrotate.h: New file.
22677
22678         * modules/bitrotate-tests: New file.
22679
22680         * tests/test-bitrotate.c: New file.
22681
22682         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
22683         on the bitrotate module.
22684
22685         * lib/arctwo.c: Use new bitrotate module.
22686
22687 2008-08-29  Jim Meyering  <meyering@redhat.com>
22688
22689         bootstrap: merge changes from coreutils
22690         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
22691         of copied files.  Remove a kludge, now that this is fixed.
22692         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
22693         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
22694         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
22695
22696 2008-08-29  Bruno Haible  <bruno@clisp.org>
22697
22698         * MODULES.html.sh: Remove --cvs-urls option.
22699
22700 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
22701
22702         maint.mk: adjust to file name change
22703         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
22704
22705 2008-08-28  Jim Meyering  <meyering@redhat.com>
22706
22707         * modules/getndelim2 (License): Relicense to LGPLv2+.
22708         Approved by Richard Stallman for the version of 1995, and by
22709         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
22710
22711 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
22712
22713         * lib/getdelim.c (flockfile, funlockfile): Make all of them
22714         dummy if one is not available.  Do not touch them if
22715         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
22716         (getc_maybe_unlocked): New.
22717         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
22718
22719 2008-08-26  Eric Blake  <ebb9@byu.net>
22720
22721         doc/INSTALL: resync from autoconf
22722         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
22723         (INSTALL_PRELUDE): Delete; this is done more efficiently by
22724         moving...
22725         * install.texi [!autoconf]: ...here.  Resync from autoconf.
22726         * INSTALL: Regenerate.
22727         * INSTALL.ISO: New file.
22728         * INSTALL.UTF-8: Likewise.
22729
22730 2008-08-26  Jim Meyering  <meyering@redhat.com>
22731
22732         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
22733         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
22734         these definitions conditional, so that they may be overridden, too.
22735
22736 2008-08-26  Bruno Haible  <bruno@clisp.org>
22737
22738         Generate INSTALL file variants with prettier quotes.
22739         * doc/Makefile (INSTALL_PRELUDE): New macro.
22740         (INSTALL): Use it.
22741         (INSTALL.ISO, INSTALL.UTF-8): New rules.
22742
22743 2008-08-26  Bruno Haible  <bruno@clisp.org>
22744
22745         Run makeinfo in an English locale.
22746         * doc/Makefile (MAKEINFO): New variable.
22747
22748 2008-08-26  Bruno Haible  <bruno@clisp.org>
22749
22750         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
22751         Suggested by Eric Blake.
22752
22753 2008-08-25  Bruno Haible  <bruno@clisp.org>
22754
22755         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
22756
22757 2008-08-25  Eric Blake  <ebb9@byu.net>
22758
22759         c-stack: test that stack overflow can be caught
22760         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
22761         that platform allows handling stack overflow; at least OS/2 EMX
22762         has sigaltstack, but crashes before transferring control to
22763         handler on stack overflow.
22764         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
22765         check for HAVE_STACK_OVERFLOW_HANDLING.
22766         Reported by Elbert Pol.
22767
22768 2008-08-25  Bruno Haible  <bruno@clisp.org>
22769
22770         * doc/posix-functions/strftime.texi: Fix description of strftime
22771         module.
22772
22773 2008-08-24  Bruno Haible  <bruno@clisp.org>
22774
22775         * tests/uniwidth/test-uc_width2.c: New file.
22776         * tests/uniwidth/test-uc_width2.sh: New file.
22777         * modules/uniwidth/width-tests (Files): Add the new files.
22778         (TESTS): Add uniwidth/test-uc_width2.sh.
22779         (TESTS_ENVIRONMENT): New variable.
22780         (check_PROGRAMS): Add test-uc_width2.
22781         (test_uc_width2_SOURCES): New variable.
22782
22783         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
22784         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
22785         not 0x00AB.
22786         Reported by Alexander V. Lukyanov <lav@netis.ru>.
22787
22788 2008-08-22  Eric Blake  <ebb9@byu.net>
22789
22790         test-lock, test-tls: mention why a test is skipped
22791         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
22792         skipped.
22793         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
22794
22795         count-one-bits: relax license
22796         * modules/count-one-bits (License): Relicense to LGPLv2+.
22797         Suggested by Ludovic Courtès, approved by Ben Pfaff.
22798
22799 2008-08-22  Andreas Schwab  <schwab@suse.de>
22800
22801         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22802         Remove spurious space in assignment.
22803
22804 2008-08-21  Simon Josefsson  <simon@josefsson.org>
22805
22806         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
22807         Paul Eggert <eggert@CS.UCLA.EDU>.
22808
22809 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
22810
22811         * modules/gettext: Add m4/threadlib.m4.
22812
22813 2008-08-19  Eric Blake  <ebb9@byu.net>
22814
22815         test-c-stack: fix compilation failure on FreeBSD 5.0
22816         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
22817         headers before <sys/resource.h>.
22818         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
22819         the bug.
22820         Reported by Nelson H. F. Beebe.
22821
22822         strverscmp: migrate from "strverscmp.h" to <string.h>
22823         * modules/string (Makefile.am): Add new hooks.
22824         * modules/strverscmp (Files): Remove strverscmp.h.
22825         (Depends-on): Add string.
22826         (configure.ac): Add indicator.
22827         (Include): Mention new header.
22828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
22829         defaults.
22830         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
22831         results.
22832         * lib/strverscmp.h: Delete.
22833         * lib/string.in.h (strverscmp): Provide declaration, when needed.
22834         * tests/test-strverscmp.c (includes): Adjust client.
22835         * lib/check-version.c (includes): Likewise.
22836         * NEWS: Document the change.
22837
22838         strverscmp: add unit test
22839         * modules/strverscmp-tests: New file.
22840         * tests/test-strverscmp.c: Likewise.
22841
22842 2008-08-19  Simon Josefsson  <simon@josefsson.org>
22843
22844         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
22845         regarding Windows crypto stuff, from Mono.
22846
22847 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
22848
22849         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
22850         if present, for intel RND.  Return error on failures.
22851
22852 2008-08-18  Ben Pfaff  <blp@gnu.org>
22853
22854         gitlog-to-changelog: give better diagnostic for failed pipe-open
22855         * build-aux/gitlog-to-changelog: Improve error message: suggest
22856         that the version of Git may be too old.
22857
22858 2008-08-18  Simon Josefsson  <simon@josefsson.org>
22859
22860         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
22861         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
22862
22863 2008-08-18  Bruno Haible  <bruno@clisp.org>
22864
22865         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
22866         pthread_in_use().
22867
22868 2008-08-18  Bruno Haible  <bruno@clisp.org>
22869
22870         * lib/glthread/threadlib.c: Include <pthread.h>.
22871
22872 2008-08-18  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
22875         glthread_recursive_lock_* macros.
22876         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
22877         Fix syntax error.
22878
22879 2008-08-18  Bruno Haible  <bruno@clisp.org>
22880
22881         * lib/glthread/thread.c: Avoid forcing a context switch right after
22882         thread creation.
22883
22884 2008-08-17  Bruno Haible  <bruno@clisp.org>
22885
22886         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
22887         * lib/glthread/thread.h: Provide Win32 specific implementation.
22888         * modules/thread (Files): Add lib/glthread/thread.c.
22889         (Depends-on): Add lock.
22890         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
22891
22892 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22893
22894         New module 'yield'.
22895         * modules/yield: New file.
22896         * lib/glthread/yield.h: New file.
22897         * m4/yield.m4: New file.
22898         * MODULES.html.sh (Multithreading): Add yield.
22899
22900 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22901
22902         New module 'thread'.
22903         * modules/thread: New file.
22904         * lib/glthread/thread.h: New file.
22905         * m4/thread.m4: New file.
22906         * MODULES.html.sh (Multithreading): Add thread.
22907
22908 2008-08-17  Bruno Haible  <bruno@clisp.org>
22909
22910         * lib/glthread/lock.h: Include <stdlib.h> always.
22911         * lib/glthread/tls.h: Likewise.
22912         * lib/glthread/cond.h: Likewise.
22913
22914 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22915
22916         New module 'cond'.
22917         * modules/cond: New file.
22918         * lib/glthread/cond.h: New file.
22919         * lib/glthread/cond.c: New file.
22920         * m4/cond.m4: New file.
22921         * MODULES.html.sh (Multithreading): Add cond.
22922
22923 2008-08-16  Eric Blake  <ebb9@byu.net>
22924
22925         c-stack: fix regression on Irix 5.3 from 2008-06-21
22926         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
22927         sa_sigaction...
22928         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
22929         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
22930         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
22931         * modules/signal (Makefile.am): Use the value.
22932         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
22933         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
22934         * doc/posix-headers/signal.texi (signal.h): Document this
22935         portability issue.
22936         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
22937         Reported by Tom G. Christensen.
22938
22939 2008-08-17  Bruno Haible  <bruno@clisp.org>
22940
22941         New module 'threadlib'.
22942         * modules/threadlib: New file.
22943         * lib/glthread/threadlib.c: New file, extracted from
22944         lib/glthread/lock.c.
22945         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
22946         functions.
22947         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
22948         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
22949         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
22950         macros.
22951         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
22952         (gl_DISABLE_THREADS): Remove macro.
22953         * modules/lock (Files): Remove build-aux/config.rpath.
22954         (Depends-on): Remove havelib. Add threadlib.
22955         (configure.ac-early): Remove section.
22956         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
22957         * modules/tls (Depends-on): Remove lock. Add threadlib.
22958         (Link): New section, copied from threadlib.
22959         * MODULES.html.sh (Multithreading): Add threadlib.
22960
22961 2008-08-14  Bruno Haible  <bruno@clisp.org>
22962
22963         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
22964         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
22965         glthread_rwlock_unlock, glthread_rwlock_destroy,
22966         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
22967         glthread_recursive_lock_destroy): Define as macros always.
22968         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
22969         glthread_lock_lock.
22970         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
22971         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
22972         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
22973         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
22974         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
22975         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
22976         (glthread_recursive_lock_lock_func): Renamed from
22977         glthread_recursive_lock_lock.
22978         (glthread_recursive_lock_unlock_func): Renamed from
22979         glthread_recursive_lock_unlock.
22980         (glthread_recursive_lock_destroy_func): Renamed from
22981         glthread_recursive_lock_destroy.
22982
22983 2008-08-14  Bruno Haible  <bruno@clisp.org>
22984
22985         * lib/glthread/lock.h: Renamed from lib/lock.h.
22986         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
22987         * lib/glthread/tls.h: Renamed from lib/tls.h.
22988         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
22989         * lib/fstrcmp.c: Update includes.
22990         * lib/strsignal.c: Update includes.
22991         * modules/lock (Files, Makefile.am): Update.
22992         (Include): Change to "glthread/lock.h".
22993         * modules/tls (Files, Makefile.am): Update.
22994         (Include): Change to "glthread/tls.h".
22995         * tests/test-lock.c: Update includes.
22996         * tests/test-tls.c: Update includes.
22997         * NEWS: Mention the renamed header files.
22998
22999 2008-08-11  Jim Meyering  <meyering@redhat.com>
23000
23001         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23002
23003 2008-08-11  Eric Blake  <ebb9@byu.net>
23004
23005         test-c-stack: avoid C99-ism
23006         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23007         before statement.
23008         Reported by Alain Guibert.
23009
23010 2008-08-10  Jim Meyering  <meyering@redhat.com>
23011
23012         ensure that return value of uinttostr et al are not ignored
23013         * lib/inttostr.h (__GNUC_PREREQ): Define.
23014         (__attribute_warn_unused_result__): Define.
23015         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23016
23017 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23018
23019         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23020         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23021
23022 2008-08-07  Jim Meyering  <meyering@redhat.com>
23023
23024         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23025
23026         * modules/mkstemp (License): Relicense under LGPLv2+.
23027         * modules/tempname (License): Likewise.
23028
23029 2008-08-06  Bruno Haible  <bruno@clisp.org>
23030
23031         * lib/poll.c (poll): Further micro-optimization.
23032
23033 2008-08-06  Jim Meyering  <meyering@redhat.com>
23034
23035         inet_pton.c: use locale-independent tolower
23036         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23037         (inet_pton6): Use c_tolower rather than tolower.
23038         * modules/inet_pton (Depends-on): Add c-ctype.
23039
23040 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23041
23042         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23043         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23044
23045 2008-08-06  Jim Meyering  <meyering@redhat.com>
23046
23047         * modules/inet_pton (License): Relicense under LGPLv2+.
23048
23049 2008-08-03  Bruno Haible  <bruno@clisp.org>
23050
23051         Additional non-aborting API for lock and tls.
23052         * lib/lock.h: Include <errno.h>.
23053         (glthread_lock_init): New macro/function.
23054         (gl_lock_init): Define as wrapper around glthread_lock_init.
23055         (glthread_lock_lock): New macro/function.
23056         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23057         (glthread_lock_unlock): New macro/function.
23058         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23059         (glthread_lock_destroy): New macro/function.
23060         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23061         (glthread_rwlock_init): New macro/function.
23062         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23063         (glthread_rwlock_rdlock): New macro/function.
23064         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23065         (glthread_rwlock_wrlock): New macro/function.
23066         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23067         (glthread_rwlock_unlock): New macro/function.
23068         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23069         (glthread_rwlock_destroy): New macro/function.
23070         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23071         (glthread_recursive_lock_init): New macro/function.
23072         (gl_recursive_lock_init): Define as wrapper around
23073         glthread_recursive_lock_init.
23074         (glthread_recursive_lock_lock): New macro/function.
23075         (gl_recursive_lock_lock): Define as wrapper around
23076         glthread_recursive_lock_lock.
23077         (glthread_recursive_lock_unlock): New macro/function.
23078         (gl_recursive_lock_unlock): Define as wrapper around
23079         glthread_recursive_lock_unlock.
23080         (glthread_recursive_lock_destroy): New macro/function.
23081         (gl_recursive_lock_destroy): Define as wrapper around
23082         glthread_recursive_lock_destroy.
23083         (glthread_once): New macro/function.
23084         (gl_once): Define as wrapper around glthread_once.
23085         Update function declarations.
23086         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23087         glthread_rwlock_init. Return error code.
23088         (glthread_rwlock_rdlock_multithreaded): Renamed from
23089         glthread_rwlock_rdlock. Return error code.
23090         (glthread_rwlock_wrlock_multithreaded): Renamed from
23091         glthread_rwlock_wrlock. Return error code.
23092         (glthread_rwlock_unlock_multithreaded): Renamed from
23093         glthread_rwlock_unlock. Return error code.
23094         (glthread_rwlock_destroy_multithreaded): Renamed from
23095         glthread_rwlock_destroy. Return error code.
23096         (glthread_recursive_lock_init_multithreaded): Renamed from
23097         glthread_recursive_lock_init. Return error code.
23098         (glthread_recursive_lock_lock_multithreaded): Renamed from
23099         glthread_recursive_lock_lock. Return error code.
23100         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23101         glthread_recursive_lock_unlock. Return error code.
23102         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23103         glthread_recursive_lock_destroy. Return error code.
23104         (glthread_once_call): Make static.
23105         (glthread_once_multithreaded): Renamed from glthread_once.
23106         * lib/tls.h: Include <errno.h>.
23107         (glthread_tls_key_init): New macro/function.
23108         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23109         (glthread_tls_set): New macro/function.
23110         (gl_tls_set): Define as wrapper around glthread_tls_set.
23111         (glthread_tls_key_destroy): New macro/function.
23112         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23113         Update function declarations.
23114         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23115         glthread_tls_get.
23116         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23117
23118 2008-08-04  Eric Blake  <ebb9@byu.net>
23119
23120         gnumakefile: use space, not TAB, outside of targets
23121         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23122
23123 2008-08-02  Jim Meyering  <meyering@redhat.com>
23124
23125         getdate.y: avoid locale-dependent date parsing failure
23126         In Turkish locales, getdate would fail to recognize keywords
23127         containing a lowercase "i".  The solution is not to rely on
23128         locale-sensitive case-conversion.
23129         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23130         (lookup_word): Use c_toupper in place of toupper.
23131         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23132         Reported by Vefa Bicakci <bicave@superonline.com> in
23133         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23134         * modules/getdate (Depends-on): Add c-ctype.
23135
23136 2008-08-02  Bruno Haible  <bruno@clisp.org>
23137
23138         * gnulib-tool (func_import): When updating or creating a .gitignore
23139         file, prepend each added line with a slash, and ignore leading slashes
23140         from the existing lines.
23141         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23142
23143 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23144
23145         Portability fix for GNU make 3.79.1.
23146         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23147         versions do not understand.
23148
23149 2008-08-01  Bruno Haible  <bruno@clisp.org>
23150
23151         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23152         * tests/test-isnanf.h (zero): New variable.
23153         (main): Avoid literal -0.0f.
23154         * tests/test-isnand.h (zero): New variable.
23155         (main): Avoid literal -0.0.
23156         * tests/test-isnanl.h (zero): New variable.
23157         (main): Avoid literal -0.0L.
23158         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23159         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23160         -0.0, -0.0L.
23161         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23162         (test_signbitd): Avoid literal -0.0.
23163         (test_signbitl): Avoid literal -0.0L.
23164         * tests/test-ceilf1.c (zero): New variable.
23165         (main): Avoid literal -0.0f.
23166         * tests/test-ceill.c (zero): New variable.
23167         (main): Avoid literal -0.0L.
23168         * tests/test-floorf1.c (zero): New variable.
23169         (main): Avoid literal -0.0f.
23170         * tests/test-floorl.c (zero): New variable.
23171         (main): Avoid literal -0.0L.
23172         * tests/test-roundf1.c (zero): New variable.
23173         (main): Avoid literal -0.0f.
23174         * tests/test-round1.c (zero): New variable.
23175         (main): Avoid literal -0.0.
23176         * tests/test-roundl.c (zero): New variable.
23177         (main): Avoid literal -0.0L.
23178         * tests/test-truncf1.c (zero): New variable.
23179         (main): Avoid literal -0.0f.
23180         * tests/test-trunc1.c (zero): New variable.
23181         (main): Avoid literal -0.0.
23182         * tests/test-truncl.c (zero): New variable.
23183         (main): Avoid literal -0.0L.
23184         * tests/test-frexp.c (zero): New variable.
23185         (main): Avoid literal -0.0.
23186         * tests/test-frexpl.c (zero): New variable.
23187         (main): Avoid literal -0.0L.
23188         * tests/test-ldexpl.c (zero): New variable.
23189         (main): Avoid literal -0.0L.
23190         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23191         (zerod, zerol): New variables.
23192         (test_function): Avoid literals -0.0, -0.0L.
23193         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23194         (zerod, zerol): New variables.
23195         (test_function): Avoid literals -0.0, -0.0L.
23196         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23197         (zerod, zerol): New variables.
23198         (test_function): Avoid literals -0.0, -0.0L.
23199         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23200         (zerod, zerol): New variables.
23201         (test_function): Avoid literals -0.0, -0.0L.
23202         * tests/test-strtod.c (zero): New variable.
23203         (main): Avoid literal -0.0.
23204         Reported by Jonathan C. Patschke <jp@centtech.com>.
23205
23206 2008-07-31  Jim Meyering  <meyering@redhat.com>
23207
23208         sha256.h: correct definition of SHA224_DIGEST_SIZE
23209         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23210         Reported by Paulie Pena IV <paulie4@gmail.com>.
23211         Define as 224 / 8, rather than as a literal.
23212         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23213         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23214         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23215
23216 2008-07-31  Bruno Haible  <bruno@clisp.org>
23217
23218         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23219         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23220         Reported by Jonathan Patschke <jp@centtech.com>.
23221
23222 2008-07-31  Bruno Haible  <bruno@clisp.org>
23223
23224         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23225         Reported by Paolo Bonzini <bonzini@gnu.org>.
23226
23227 2008-07-30  Eric Blake  <ebb9@byu.net>
23228
23229         test-strtod: allow compilation without -lm
23230         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23231         Reported by Dennis Clarke <blastwave@gmail.com>.
23232
23233 2008-07-28  Jim Meyering  <meyering@redhat.com>
23234
23235         bootstrap: work also when there are no .po files in po/
23236         * build-aux/bootstrap (update_po_files): Complete the change
23237         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23238
23239 2008-07-27  Jim Meyering  <meyering@redhat.com>
23240
23241         * users.txt: Add zile.
23242
23243 2008-07-26  Ben Pfaff  <blp@gnu.org>
23244
23245         Add missing dependencies on new m4/exponent[fdl].m4 files.
23246         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23247         * modules/isnand-nolibm: Add m4/exponentd.m4.
23248         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23249         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23250         m4/isnan[fdl].m4, because the macros actually used moved.
23251         Reported by Jim Meyering.
23252
23253 2008-07-14  Ben Pfaff  <blp@gnu.org>
23254
23255         Add isinf module.
23256         * lib/isinf.c: New file.
23257         * lib/math.in.h: Define isinf macro if we have decided to replace
23258         it.
23259         * m4/isinf.m4: New file.
23260         * m4/math_h.m4: Initialize and substitute variables for isinf
23261         module.
23262         * modules/isinf: New file.
23263         * modules/isinf-tests: New file.
23264         * modules/math: Add substitutions for new module.
23265         * tests/test-isinf.c: New file.
23266         * doc/posix-functions/isinf.texi: Mention new module.
23267         * MODULES.html.sh: Mention new module.
23268
23269 2008-07-14  Ben Pfaff  <blp@gnu.org>
23270
23271         Factor out some macros for use by additional modules.
23272         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23273         exponentf.m4.
23274         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23275         exponentd.m4.
23276         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23277         file exponentl.m4.
23278         * m4/exponentf.m4: New file.
23279         * m4/exponentd.m4: New file.
23280         * m4/exponentl.m4: New file.
23281         * modules/isnanf: Use new file m4/exponentf.m4.
23282         * modules/isnand: Use new file m4/exponentd.m4.
23283         * modules/isnanl: Use new file m4/exponentl.m4.
23284
23285 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23286
23287         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23288         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23289         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23290         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23291
23292         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23293         readlink on platforms without PATH_MAX.
23294
23295 2008-07-21  Eric Blake  <ebb9@byu.net>
23296
23297         Warn, not fail, on stale version.
23298         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23299
23300         Don't allow installation with stale devel version number.
23301         * top/GNUmakefile (_is-install-target): New macro.
23302         (_curr-ver): Forbid installation with stale version number.
23303
23304 2008-07-20  Bruno Haible  <bruno@clisp.org>
23305
23306         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23307         TESTS_ENVIRONMENT.
23308         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23309
23310 2008-07-20  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/c-stack.h (c_stack_action): Add documentation.
23313         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23314
23315 2008-07-20  Bruno Haible  <bruno@clisp.org>
23316
23317         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23318         * modules/readlink (License): Likewise.
23319
23320 2008-07-17  Eric Blake  <ebb9@byu.net>
23321
23322         * modules/c-stack (Link): Fix typo.
23323
23324         Make c-stack use libsigsegv, when available.
23325         * modules/c-stack (Depends-on): Add libsigsegv.
23326         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23327         needed.
23328         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23329         (segv_handler, overflow_handler, c_stack_action)
23330         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23331         implementation when libsigsegv is available, but only when using
23332         the library is necessary.
23333         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23334         comment, explaining why XSI check fails on Linux.
23335         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23336         * tests/test-c-stack2.sh: Tweak skip message.
23337         * NEWS: Document new link-time requirements.
23338
23339 2008-07-16  Eric Blake  <ebb9@byu.net>
23340
23341         c-stack: Expose false positives when not using libsigsegv.
23342         * modules/c-stack-tests (Files): Expand test.
23343         * tests/test-c-stack.c (main): Add means to conditionally trigger
23344         non-overflow SIGSEGV.
23345         * tests/test-c-stack2.sh: New file.
23346
23347 2008-07-14  Bruno Haible  <bruno@clisp.org>
23348
23349         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23350         Reported by Eric Blake.
23351
23352 2008-07-14  Sam Steingold  <sds@gnu.org>
23353             Bruno Haible  <bruno@clisp.org>
23354
23355         New module libsigsegv.
23356         * modules/libsigsegv: New file.
23357         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23358         modifications.
23359         * MODULES.html.sh (Signal handling): New section.
23360
23361 2008-07-14  Bruno Haible  <bruno@clisp.org>
23362
23363         * modules/unictype/ctype-* (Description): Add the word "function".
23364         Improves the resulting doc in MODULES.html.
23365
23366 2008-07-12  Ben Pfaff  <blp@gnu.org>
23367
23368         Add longlong module.
23369         * modules/longlong: New file.
23370
23371 2008-07-12  Bruno Haible  <bruno@clisp.org>
23372
23373         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23374         to empty.
23375
23376 2008-07-10  Ben Pfaff  <blp@gnu.org>
23377
23378         Add isnan module.
23379         * doc/posix-functions/isnan.texi: Mention new module.
23380         * lib/math.in.h: Define isnan macro if we have decided to replace
23381         it.
23382         * m4/isnan.m4: New file.
23383         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23384         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23385         also.
23386         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23387         redundancy.
23388         * m4/math_h.m4: Initialize and substitute variables for isnan
23389         module.
23390         * modules/isnan: New file.
23391         * modules/isnan-tests: New file.
23392         * modules/math: Add substitutions for new module.
23393         * tests/test-isnan.c: New file.
23394         * MODULES.html.sh: Mention new module.
23395
23396 2008-07-10  Ben Pfaff  <blp@gnu.org>
23397
23398         Add isnanf module.
23399         * lib/isnanf.m4: New file.
23400         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23401         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23402         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23403         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23404         * modules/isnanf: New file.
23405         * modules/isnanf-tests: New file.
23406         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23407         files.
23408         * tests/test-isnanf-nolibm.c: factored most of its contents into
23409         new file tests/test-isnanf.h.
23410         * tests/test-isnanf.h: New file.
23411         * tests/test-isnanf.c: New file.
23412         * MODULES.html.sh: Mention new module.
23413         * doc/glibc-functions/isnanf.texi: Mention new module.
23414
23415 2008-07-10  Ben Pfaff  <blp@gnu.org>
23416
23417         Add isnand module.
23418         * lib/isnand.h: New file.
23419         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23420         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23421         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23422         functionality also.
23423         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23424         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23425         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23426         * modules/isnand: New file.
23427         * modules/isnand-tests: New file.
23428         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23429         files.
23430         * tests/test-isnand-nolibm.c: factored most of its contents into
23431         new file tests/test-isnand.h.
23432         * tests/test-isnand.h: New file.
23433         * tests/test-isnand.c: New file.
23434         * MODULES.html.sh: Mention new module.
23435
23436 2008-07-10  Ben Pfaff  <blp@gnu.org>
23437
23438         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23439         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23440         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23441         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23442         * modules/isnanf-nolibm: Update references to renamed files.
23443         * modules/isnand-nolibm: Likewise.
23444         * modules/isnanf-nolibm-tests: Likewise.
23445         * modules/isnand-nolibm-tests: Likewise.
23446         * lib/frexp.c: Likewise.
23447         * lib/isfinite.c: Likewise.
23448         * lib/signbitd.c: Likewise.
23449         * lib/signbitf.c: Likewise.
23450         * lib/vasnprintf.c: Likewise.
23451         * tests/test-ceilf1.c: Likewise.
23452         * tests/test-ceilf2.c: Likewise.
23453         * tests/test-floorf1.c: Likewise.
23454         * tests/test-floorf2.c: Likewise.
23455         * tests/test-frexp.c: Likewise.
23456         * tests/test-round1.c: Likewise.
23457         * tests/test-round2.c: Likewise.
23458         * tests/test-roundf1.c: Likewise.
23459         * tests/test-strtod.c: Likewise.
23460         * tests/test-trunc1.c: Likewise.
23461         * tests/test-trunc2.c: Likewise.
23462         * tests/test-truncf1.c: Likewise.
23463         * tests/test-truncf2.c: Likewise.
23464         * NEWS: Mention the renamed header files.
23465
23466 2008-07-11  Jim Meyering  <meyering@redhat.com>
23467
23468         vc-list-files: make the last-resort awk code more portable
23469         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23470         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23471         does not support it.
23472
23473 2008-07-10  Eric Blake  <ebb9@byu.net>
23474
23475         Work with tar's bootstrap.
23476         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23477         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23478         an m4 comment.
23479
23480 2008-07-09  Jim Meyering  <meyering@redhat.com>
23481
23482         posix-shell.m4: fix typo that made this test malfunction
23483         * m4/posix-shell.m4: Remove capitalization in variable name.
23484
23485 2008-07-08  Bruno Haible  <bruno@clisp.org>
23486
23487         * m4/onceonly.m4: Update comments.
23488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23489
23490 2008-07-04  Jim Meyering  <meyering@redhat.com>
23491
23492         * users.txt: Add vc-dwim.
23493         (bison, coreutils): Use the gitweb URL.
23494
23495 2008-07-03  Jim Meyering  <meyering@redhat.com>
23496
23497         * users.txt: Add libffcall.  From Sam Steingold.
23498
23499 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
23500
23501         getdate.y: do not ignore TZ with relative day, month or year offset
23502         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23503         relative-date-handling, since otherwise, the latter would clobber the
23504         sole output (an updated Start value) of the tz-handling block.
23505         * tests/test-getdate.c: Tests for the fix
23506
23507 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23508
23509         Recognize 'foo_LIBRARIES += libgnu.a'.
23510         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23511         makefile snippet has already specified an installation location,
23512         also using '+='.
23513
23514 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
23515
23516         getdate.y: factor out common actions
23517         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23518         Use them in place of open-coded actions.
23519
23520 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23521
23522         Add self-test for getdate module.
23523         * modules/getdate-tests: New file.
23524         * tests/test-getdate.c: New file.
23525
23526 2008-06-29  Bruno Haible  <bruno@clisp.org>
23527
23528         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23529         .gitignore.
23530         Reported by Sylvain Beucler <beuc@beuc.net>.
23531
23532 2008-06-29  Bruno Haible  <bruno@clisp.org>
23533
23534         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23535         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23536
23537 2008-06-29  Bruno Haible  <bruno@clisp.org>
23538
23539         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23540         EXTRA_DIST.
23541         Reported by Sylvain Beucler <beuc@beuc.net>.
23542
23543 2008-06-26  Jim Meyering  <meyering@redhat.com>
23544
23545         make several modules depend on the "open" module
23546         This provides slightly increased consistency when opening-for-write
23547         the name of a non-directory spelled with a trailing slash.
23548         * modules/chdir-safer: Likewise.
23549         * modules/chown: Likewise.
23550         * modules/clean-temp: Likewise.
23551         * modules/copy-file: Likewise.
23552         * modules/fchdir: Likewise.
23553         * modules/fcntl-safer: Likewise.
23554         * modules/pipe: Likewise.
23555         * modules/utime: Likewise.
23556         Prompted by Eric Blake and Bruno Haible.
23557
23558 2008-06-24  Andreas Schwab  <schwab@suse.de>
23559
23560         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23561         literals can be used as initializers for global variables.
23562
23563 2008-06-23  Eric Blake  <ebb9@byu.net>
23564
23565         Make gnulib-cache.m4 easier to diff.
23566         * gnulib-tool (func_import): Allow newlines when reading cached
23567         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23568
23569 2008-06-23  Bruno Haible  <bruno@clisp.org>
23570
23571         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23572         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23573         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23574         m4/signalblocking.m4.
23575         (gl_PREREQ_SIGACTION): Don't invoke it.
23576         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23577         gl_PREREQ_SIG_HANDLER_H.
23578         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23579         Don't check for sigaction here.
23580
23581 2008-06-23  Bruno Haible  <bruno@clisp.org>
23582
23583         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23584         (install_handlers): Don't set the SA_RESETHAND flag.
23585
23586 2008-06-23  Bruno Haible  <bruno@clisp.org>
23587
23588         * m4/sigaction.m4: Comment fixes.
23589         * lib/signal.in.h: Likewise.
23590
23591 2008-06-23  Eric Blake  <ebb9@byu.net>
23592
23593         Fix typo.
23594         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23595
23596         Avoid SA_ namespace.
23597         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23598         Reported by Ralf Wildenhues.
23599
23600         Avoid test failure due to SA_RESTORER.
23601         * tests/test-sigaction.c (SA_MASK): New macro.
23602         (main): Avoid failing due to extension flags being set.
23603         Reported by Jim Meyering.
23604
23605         Revert use of sig-handler.h in sigprocmask.c.
23606         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23607         it requires the existence of struct sigaction.
23608         * lib/sigprocmask.c (handler_t): Restore typedef.
23609         (rpl_signal, old_handlers): Use local type.
23610
23611 2008-06-22  Bruno Haible  <bruno@clisp.org>
23612
23613         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23614         conditionally.
23615         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23616
23617 2008-06-22  Bruno Haible  <bruno@clisp.org>
23618
23619         * doc/posix-functions/siginterrupt.texi: Move note.
23620
23621         * lib/signal.in.h (SA_RESTART): New macro.
23622         * lib/sigaction.c: Update comment.
23623
23624         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
23625
23626         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
23627         (gl_PREREQ_SIGPROCMASK): Invoke it.
23628         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
23629
23630         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
23631
23632         * lib/sigprocmask.c: Update a comment.
23633
23634 2008-06-21  Eric Blake  <ebb9@byu.net>
23635
23636         Use sigaction module rather than signal().
23637         * modules/c-stack (Depends-on): Add sigaction.
23638         * modules/fatal-signal (Depends-on): Likewise.
23639         * modules/nanosleep (Depends-on): Likewise.
23640         * modules/sigprocmask (Files): Add sig-handler.h.
23641         * modules/sigaction (Files): Likewise.
23642         * lib/sig-handler.h (get_handler): New file, suggested by Paul
23643         Eggert.
23644         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
23645         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
23646         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
23647         (init_fatal_signals): Likewise.
23648         * lib/nanosleep.c (rpl_nanosleep): Likewise.
23649         (siginterrupt): Delete fallback.
23650         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
23651         instead.
23652         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
23653         siginterrupt.
23654
23655         New module sigaction, for mingw.
23656         * modules/sigaction: New module...
23657         * modules/sigaction-tests: ...and its test.
23658         * m4/sigaction.m4: New file.
23659         * lib/sigaction.c: Likewise.
23660         * tests/test-sigaction.c: Likewise.
23661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
23662         * modules/signal (Makefile.am): Likewise.
23663         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
23664         needed.
23665         * doc/posix-headers/signal.texi (signal.h): Mention provided
23666         types.
23667         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
23668         that sigaction is preferable.
23669         * doc/posix-functions/sigaction.texi (sigaction): Mention new
23670         module.
23671         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23672         sigaction.
23673
23674         Improve robustness of sigprocmask by overriding signal.
23675         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
23676         is in use.
23677         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
23678         (SIGKILL, SIGSTOP): Provide fallbacks.
23679         (rpl_signal): Implement.
23680         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
23681         signal can be called inside handlers.
23682
23683         Fix nanosleep module on mingw.
23684         * modules/nanosleep (Depends-on): Add sys_select.
23685         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
23686
23687         Fix licensing of sigprocmask.
23688         * modules/raise (License): Relicense as LGPL.
23689
23690 2008-06-21  Bruno Haible  <bruno@clisp.org>
23691
23692         * lib/propername.c (proper_name_utf8): Don't use the transliterated
23693         result if it contains question marks.
23694         Reported by Michael Geng <linux@michaelgeng.de>.
23695
23696 2008-06-19  Bruno Haible  <bruno@clisp.org>
23697
23698         Fix CVS-ism.
23699         * doc/gnulib.texi: Include updated-stamp.texi.
23700         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
23701         (updated-stamp.texi): New rule.
23702         (gnulib.info): Depend on it.
23703         * doc/.gitignore: Add updated-stamp.texi.
23704         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
23705
23706 2008-06-19  Bruno Haible  <bruno@clisp.org>
23707
23708         * doc/Makefile (gnulib.info): Update and simplify dependencies.
23709         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23710
23711 2008-06-19  Eric Blake  <ebb9@byu.net>
23712
23713         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
23714         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
23715         Reported by Stepan Kasal.
23716
23717 2008-06-18  Bruno Haible  <bruno@clisp.org>
23718
23719         * lib/fatal-signal.c (init_fatal_signals): Add comment.
23720         Reported by Eric Blake.
23721
23722 2008-06-18  Eric Blake  <ebb9@byu.net>
23723
23724         Work around cygwin 1.5.25 strsignal bug.
23725         * tests/test-strsignal.c: Allow for const char *.
23726         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
23727
23728 2008-06-18  Simon Josefsson  <simon@josefsson.org>
23729
23730         * users.txt: Update URL to article and add author/date
23731         information.
23732
23733 2008-06-17  Bruno Haible  <bruno@clisp.org>
23734
23735         New macro gl_DISABLE_THREADS.
23736         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
23737         if the user did not pass --enable-threads or --disable-threads option.
23738         (gl_DISABLE_THREADS): New macro.
23739         Reported by Eric Blake <ebb9@byu.net>.
23740
23741 2008-06-17  Bruno Haible  <bruno@clisp.org>
23742
23743         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
23744         when the macro ignores it.
23745         Based on a patch by Eric Blake <ebb9@byu.net>.
23746
23747 2008-06-17  Bruno Haible  <bruno@clisp.org>
23748
23749         * modules/tls (License): Change to LGPLv2+.
23750         Reported by Eric Blake.
23751
23752 2008-06-17  Eric Blake  <ebb9@byu.net>
23753
23754         Simplify c-stack prerequisites.
23755         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
23756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
23757         no longer requires <ucontext.h> to exist.  Optimize setrlimit
23758         check.
23759         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
23760         <sys/resource.h>.
23761
23762         Move c-stack test into testsuite.
23763         * modules/c-stack-tests: New file.
23764         * lib/c-stack.c [DEBUG]: Move test program...
23765         * tests/test-c-stack.c: ...into this new file.  Skip rather than
23766         fail test if sigaltstack is lacking.
23767         * tests/test-c-stack.sh: New driver file.
23768
23769 2008-06-16  Eric Blake  <ebb9@byu.net>
23770
23771         Use raise module consistently.
23772         * modules/fatal-signal (Depends-on): Add raise.
23773         * modules/sigprocmask (Depends-on): Likewise.
23774         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
23775         * lib/sigprocmask.c (sigprocmask): Likewise.
23776         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23777         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
23778
23779         Fix compliance bug in sigpending.
23780         * lib/sigprocmask.c (sigpending): Return pending array via
23781         parameter, not return value.
23782
23783 2008-06-14  Eric Blake  <ebb9@byu.net>
23784
23785         Improve obstack-printf test code.
23786         * tests/test-obstack-printf.c (test_function): Fix comment, and
23787         simplify usage of obstack_* in macros.  Add a test for coverage.
23788         Reported by Bruno Haible.
23789
23790 2008-06-14  Bruno Haible  <bruno@clisp.org>
23791
23792         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
23793         array size as a constant, not as a const variable.
23794         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
23795         AC_USE_SYSTEM_EXTENSIONS.
23796         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23797         Test whether the obstack_printf function actually exists.
23798         * modules/obstack-printf (Depends-on): Add extensions.
23799         (Include): Remove obstack.h.
23800         * modules/obstack-printf-posix (Depends-on): Add extensions.
23801         (Include): Remove obstack.h.
23802
23803 2008-06-13  Eric Blake  <ebb9@byu.net>
23804
23805         Add obstack-printf and obstack-printf-posix modules.
23806         * modules/obstack-printf: New file.
23807         * modules/obstack-printf-posix: Likewise.
23808         * MODULES.html.sh (Misc): Mention them.
23809         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23810         Likewise.
23811         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23812         Likewise.
23813         * modules/stdio (Makefile.am): Accomodate new modules.
23814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23815         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
23816         Declare.
23817         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
23818         functions.
23819         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
23820         (gl_REPLACE_OBSTACK_PRINTF): New macros
23821         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
23822         * tests/test-obstack-printf.c: New file.
23823         * modules/obstack-printf-tests: Likewise.
23824         * modules/obstack-printf-posix-tests: Likewise.
23825
23826 2008-06-11  Bruno Haible  <bruno@clisp.org>
23827
23828         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
23829         * lib/open.c: Include errno.h.
23830         (open): Fail when attempting to write to a file that has a trailing
23831         slash.
23832         * tests/test-open.c (main): Test against trailing slash bug.
23833         * doc/posix-functions/open.texi: Mention the trailing slash bug.
23834
23835 2008-06-10  Bruno Haible  <bruno@clisp.org>
23836
23837         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
23838         for $? to work inside the trap command, with various /bin/sh-s.
23839         * tests/test-vc-list-files-cvs.sh: Likewise.
23840
23841 2008-06-10  Bruno Haible  <bruno@clisp.org>
23842
23843         * lib/acl-internal.h: Don't include gettext.h here.
23844         * lib/set-mode-acl.c: Include gettext.h here.
23845         * lib/copy-acl.c: Likewise.
23846
23847 2008-06-10  Bruno Haible  <bruno@clisp.org>
23848
23849         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
23850         * lib/wait-process.c (wait_subprocess): Likewise.
23851         * lib/execute.h (execute): Add termsigp argument.
23852         * lib/execute.c (execute): Likewise.
23853         * lib/csharpcomp.c (compile_csharp_using_pnet,
23854         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
23855         * lib/csharpexec.c (execute_csharp_using_pnet,
23856         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
23857         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
23858         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
23859         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
23860         is_jikes_present): Update.
23861         * lib/javaexec.c (execute_java_class): Update.
23862         * lib/javaversion.c (execute_and_read_line): Update.
23863         * NEWS: Document the changes.
23864         Reported by Eric Blake.
23865
23866 2008-06-10  Eric Blake  <ebb9@byu.net>
23867
23868         Add missing include.
23869         * tests/test-strstr.c (includes): Add <signal.h>.
23870         * tests/test-strcasestr.c (includes): Likewise.
23871         * tests/test-memmem.c (includes): Likewise.
23872
23873 2008-06-10  Bruno Haible  <bruno@clisp.org>
23874
23875         * lib/wait-process.c (wait_subprocess): Add an assertion.
23876
23877 2008-06-10  Bruno Haible  <bruno@clisp.org>
23878
23879         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
23880
23881 2008-06-10  Bruno Haible  <bruno@clisp.org>
23882
23883         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
23884         using alarm().
23885         * tests/test-strcasestr.c (main): Likewise.
23886         * tests/test-strstr.c (main): Likewise.
23887
23888 2008-06-09  Bruno Haible  <bruno@clisp.org>
23889
23890         Work around the Solaris 10 ACE ACLs ABI change.
23891         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
23892         declare if ACL_NO_TRIVIAL is present.
23893         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
23894         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23895         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
23896         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
23897         define if ACL_NO_TRIVIAL is present.
23898         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
23899         and use the current ABI.
23900         (file_has_acl): Use same #if condition as elsewhere.
23901         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
23902         in use, and use the current ABI.
23903         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
23904         Reported by Jim Meyering.
23905
23906 2008-06-09  Eric Blake  <ebb9@byu.net>
23907
23908         Work around environments that (stupidly) ignore SIGALRM.
23909         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
23910         before using alarm().
23911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23912         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23913         Reported by Ian Beckwith <ianb@erislabs.net>.
23914
23915         Produce autobuild blurb earlier in log.
23916         * modules/autobuild (configure.ac-early): Move AB_INIT here.
23917
23918 2008-06-09  Jim Meyering  <meyering@redhat.com>
23919         and Ondřej Vašík  <ovasik@redhat.com>
23920
23921         utimens.c: correct kernel bug work-around
23922         Ondřej Vašík found that the invalid return value of 280 indicates
23923         failure, not success, and the kernel bug we're trying to work
23924         around affects not just the utimensat call, but also the fallback
23925         futimens call.
23926         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
23927         not success.
23928         [HAVE_FUTIMENS]: Use the same work-around, here.
23929
23930 2008-06-09  Jim Meyering  <meyering@redhat.com>
23931
23932         add more guards around definition of ACE_-related code
23933         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
23934         ALLOW and ACE_OWNER are also defined.
23935
23936 2008-06-08  Bruno Haible  <bruno@clisp.org>
23937
23938         * lib/acl-internal.h: Add me as co-author.
23939         * lib/file-has-acl.c: Likewise.
23940         * lib/set-mode-acl.c: Likewise.
23941         * lib/copy-acl.c: Likewise.
23942
23943 2008-06-08  Bruno Haible  <bruno@clisp.org>
23944
23945         Add support for AIX ACLs.
23946         * lib/acl-internal.h (acl_nontrivial): New declaration.
23947         * lib/file-has-acl.c (acl_nontrivial): New function.
23948         (file_has_acl): Add implementation using AIX 4 ACL API.
23949         * lib/set-mode-acl.c (qset_acl): Likewise.
23950         * lib/copy-acl.c (qcopy_acl): Likewise.
23951
23952 2008-06-08  Bruno Haible  <bruno@clisp.org>
23953
23954         Add support for HP-UX ACLs.
23955         * lib/acl-internal.h (acl_nontrivial): New declaration.
23956         * lib/file-has-acl.c (acl_nontrivial): New function.
23957         (file_has_acl): Add implementation using HP-UX 11 ACL API.
23958         * lib/set-mode-acl.c (qset_acl): Likewise.
23959         * lib/copy-acl.c (qcopy_acl): Likewise.
23960
23961 2008-06-08  Bruno Haible  <bruno@clisp.org>
23962
23963         Add support for Cygwin ACLs.
23964         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
23965         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
23966         the chmod_or_fchmod call.
23967         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
23968
23969 2008-06-08  Bruno Haible  <bruno@clisp.org>
23970
23971         Fix bug with setuid modes in Solaris 10+ code.
23972         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
23973         succeeded, when the mode contains some special bits.
23974
23975 2008-06-08  Bruno Haible  <bruno@clisp.org>
23976
23977         Add support for Solaris 7..10 ACLs.
23978         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
23979         declarations.
23980         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
23981         functions.
23982         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
23983         * lib/set-mode-acl.c (qset_acl): Likewise.
23984         * lib/copy-acl.c (qcopy_acl): Likewise.
23985
23986 2008-06-08  Bruno Haible  <bruno@clisp.org>
23987
23988         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
23989         declaration.
23990         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
23991         (acl_access_nontrivial): Remove MacOS X case.
23992         (file_has_acl): Use acl_extended_nontrivial.
23993         * lib/copy-acl.c (qcopy_acl): Likewise.
23994
23995 2008-06-08  Bruno Haible  <bruno@clisp.org>
23996
23997         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
23998
23999 2008-06-08  Jim Meyering  <meyering@redhat.com>
24000
24001         * modules/acl (Maintainer): Add Bruno Haible.
24002
24003 2008-06-07  Bruno Haible  <bruno@clisp.org>
24004
24005         Improve support for Tru64 ACLs.
24006         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24007         ACL on OSF/1.
24008
24009 2008-06-07  Bruno Haible  <bruno@clisp.org>
24010
24011         Add support for MacOS X ACLs.
24012         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24013         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24014         * lib/set-mode-acl.c (qset_acl): Likewise.
24015         * lib/copy-acl.c (qcopy_acl): Likewise.
24016
24017 2008-06-07  Bruno Haible  <bruno@clisp.org>
24018
24019         Fix memory leak introduced on 2008-05-22.
24020         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24021         use.
24022
24023 2008-06-07  Bruno Haible  <bruno@clisp.org>
24024
24025         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24026         to construct an empty ACL.
24027
24028 2008-06-07  Bruno Haible  <bruno@clisp.org>
24029
24030         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24031         precisely.
24032         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24033
24034 2008-06-07  Bruno Haible  <bruno@clisp.org>
24035
24036         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24037         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24038
24039 2008-06-07  Bruno Haible  <bruno@clisp.org>
24040
24041         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24042         regardless of POSIX.
24043         * doc/posix-functions/_longjmp.texi: Likewise.
24044         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24045         SystemV platform in this case.
24046
24047 2008-06-06  Eric Blake  <ebb9@byu.net>
24048
24049         Document abort() bugs.
24050         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24051
24052         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24053         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24054         sigsetjmp.
24055         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24056         siglongjmp, but only as a macro.
24057         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24058         is obsolete.
24059         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24060
24061         Tweak documentation to cover cygwin argz bugs.
24062         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24063         argz bug fix; no code change needed since no cygwin releases
24064         occurred between the last fix and the bug being tested.
24065         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24066         module and recently fixed cygwin bugs.
24067         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24068         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24069         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24070         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24071         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24072         Likewise.
24073         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24074         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24075         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24076         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24077         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24078         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24079         Likewise.
24080
24081         Avoid gcc warning on cygwin.
24082         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24083         !ACL_NO_TRIVIAL]: Avoid unused variable.
24084
24085 2008-06-05  Eric Blake  <ebb9@byu.net>
24086
24087         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24088         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24089         git-version-gen fails to come up with a version.
24090         Reported by Simon Josefsson.
24091
24092 2008-06-05  Jim Meyering  <meyering@redhat.com>
24093             Paul Eggert  <eggert@cs.ucla.edu>
24094
24095         utimens.c: work around a probable Linux kernel bug
24096         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24097         appears to be a kernel bug that causes utimensat to return 280
24098         instead of 0, indicating success.
24099
24100 2008-06-04  Bruno Haible  <bruno@clisp.org>
24101
24102         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24103         2008-06-01 commit.
24104
24105 2008-06-04  Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24108         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24109         (file_has_acl): Use it. Save errno afterwards.
24110         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24111
24112 2008-06-03  Bruno Haible  <bruno@clisp.org>
24113
24114         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24115         draft code. Simplify #ifs.
24116         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24117         Put Solaris code after POSIX-draft code. Fix comments regarding
24118         Solaris 10, HP-UX. Mention Cygwin.
24119         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24120
24121 2008-06-03  Eric Blake  <ebb9@byu.net>
24122
24123         Provide fallback for older kernels.
24124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24125         Provide runtime fallback if kernel lacks support.
24126         Reported by Mike Frysinger.
24127
24128 2008-06-02  Bruno Haible  <bruno@clisp.org>
24129
24130         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24131         it exists.
24132
24133 2008-06-02  Bruno Haible  <bruno@clisp.org>
24134
24135         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24136         * lib/copy-acl.c (qcopy_acl): Update comment.
24137
24138 2008-06-02  Bruno Haible  <bruno@clisp.org>
24139
24140         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24141         like ACL APIs.
24142
24143 2008-06-02  Bruno Haible  <bruno@clisp.org>
24144
24145         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24146         * tests/test-set-mode-acl.sh: Likewise.
24147         * tests/test-copy-acl.sh: Likewise.
24148         * tests/test-copy-file.sh: Likewise.
24149
24150 2008-06-02  Bruno Haible  <bruno@clisp.org>
24151
24152         * tests/test-file-has-acl.sh: Remove unused code.
24153
24154 2008-06-01  Bruno Haible  <bruno@clisp.org>
24155
24156         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24157         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24158         messages.
24159         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24160
24161 2008-06-01  Bruno Haible  <bruno@clisp.org>
24162
24163         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24164         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24165         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24166         APIs.
24167         * modules/acl-tests (configure.ac): Remove tests now contained in
24168         m4/acl.m4.
24169
24170 2008-06-02  Jim Meyering  <meyering@redhat.com>
24171
24172         announce-gen: use a better key-server host name
24173         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24174         it may be more consistently reliable.  Suggested by Werner Koch
24175         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24176
24177 2008-06-01  Bruno Haible  <bruno@clisp.org>
24178
24179         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24180         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24181
24182 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24183
24184         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24185
24186 2008-06-01  Bruno Haible  <bruno@clisp.org>
24187
24188         New ACL tests.
24189         * tests/test-file-has-acl.sh: New file.
24190         * tests/test-file-has-acl.c: New file.
24191         * tests/test-set-mode-acl.sh: New file.
24192         * tests/test-set-mode-acl.c: New file.
24193         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24194         * tests/test-copy-acl.c: New file.
24195         * modules/acl-tests: New file, based on modules/copy-file-tests.
24196         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24197         (Depends-on): Add acl-tests.
24198         (configure.ac): Remove checks.
24199         (Makefile.am): Don't create test-sameacls program here any more.
24200
24201 2008-06-01  Bruno Haible  <bruno@clisp.org>
24202
24203         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24204         * tests/test-sameacls.c: Include progname.h.
24205         (main): Invoke set_program_name. Portability fixes for MacOS X,
24206         Solaris, HP-UX.
24207
24208 2008-06-01  Bruno Haible  <bruno@clisp.org>
24209
24210         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24211         function.
24212         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24213
24214 2008-06-01  Bruno Haible  <bruno@clisp.org>
24215
24216         * modules/rpmatch (Depends-on): Add strdup.
24217
24218 2008-06-01  Bruno Haible  <bruno@clisp.org>
24219
24220         * lib/pipe.c: Include unistd-safer.h.
24221         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24222         * modules/pipe (Depends-on): Add unistd-safer.
24223
24224 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24225
24226         * modules/autobuild (configure.ac): Call AB_INIT.
24227
24228 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24229
24230         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24231         Suggested by Bruno Haible <bruno@clisp.org>.
24232
24233 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24234
24235         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24236         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24237         <bruno@clisp.org>.
24238
24239 2008-05-29  Eric Blake  <ebb9@byu.net>
24240
24241         Prefer new POSIX 200x interfaces over futimesat.
24242         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24243         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24244         when available.
24245         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24246
24247 2008-05-28  Bruno Haible  <bruno@clisp.org>
24248
24249         * modules/stpcpy (License): Change to LGPLv2+.
24250         Requested by David Lutterkort <dlutter@redhat.com>.
24251
24252 2008-05-27  Bruno Haible  <bruno@clisp.org>
24253
24254         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24255         current mingw.
24256         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24257
24258 2008-05-27  Bruno Haible  <bruno@clisp.org>
24259
24260         * modules/iconv_open (Link): New section, from module 'iconv'.
24261         * modules/striconv (Link): Likewise.
24262         * modules/striconveh (Link): Likewise.
24263         * modules/xstriconv (Link): Likewise.
24264         * modules/unicodeio (Link): Likewise.
24265         * modules/propername (Link): Likewise.
24266         Reported by Jim Meyering.
24267
24268 2008-05-26  Jim Meyering  <meyering@redhat.com>
24269
24270         sha256: do not artificially restrict buffer length to be < 2^32
24271         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24272         uint32_t to size_t.
24273         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24274         to match.
24275
24276         avoid unaligned access errors, e.g., on sparc
24277         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24278         direct access through a possibly-unaligned uint64* pointer.
24279         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24280         direct access through a possibly-unaligned uint32* pointer.
24281         Prompted by this patch from Tom "spot" Callaway:
24282         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24283
24284         sha512.c: fix typo in comment
24285         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24286
24287 2008-05-25  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24290         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24291         (Makefile.am): Update lib_SOURCES.
24292
24293 2008-05-25  Bruno Haible  <bruno@clisp.org>
24294
24295         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24296
24297 2008-05-25  Jim Meyering  <meyering@redhat.com>
24298
24299         useless-if-before-free: freed expr may have white-space differences
24300         * build-aux/useless-if-before-free: Recognize cases in which the
24301         freed expression differs from the tested one in embedded white
24302         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24303         $1 was used, so we can't make any regexp shy.  Improved tests now
24304         detect this.
24305
24306         useless-if-before-free: accept white space in the expression.
24307         * build-aux/useless-if-before-free: For now, any white space
24308         in the expression must be identical in the free argument.
24309
24310         useless-if-before-free: efficiency tweak
24311         * build-aux/useless-if-before-free: Make the expression-matching
24312         regexp "shy".
24313         Make the *outer* regexp shy, not the expr-matching one.
24314
24315         update code-in-comment to accept cast of free arg
24316         * build-aux/useless-if-before-free: Update regexp.
24317
24318 2008-05-25  Bruno Haible  <bruno@clisp.org>
24319
24320         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24321         * modules/copy-file-tests (Files, Makefile.am): Update.
24322         * tests/test-copy-file.c (func_test_copy): Update.
24323
24324 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24325
24326         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24327
24328 2008-05-23  Bruno Haible  <bruno@clisp.org>
24329
24330         Improve support for ACLs on OSF/1.
24331         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24332         Remove fallback for unknown flavors of ACLs.
24333
24334 2008-05-22  Bruno Haible  <bruno@clisp.org>
24335
24336         Add support for ACLs on OSF/1.
24337         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24338         replacements.
24339         (acl_free_text): New macro fallback.
24340         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24341         acl_free.
24342         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24343         acl_free_text function. Require AC_C_INLINE.
24344
24345 2008-05-22  Bruno Haible  <bruno@clisp.org>
24346
24347         Make copy_acl work on MacOS X 10.5.
24348         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24349         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24350         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24351         If MODE_INSIDE_ACL, don't assume that every system has the same text
24352         representation for ACLs as FreeBSD.
24353         * lib/copy-acl.c (copy_acl): Add support for platforms with
24354         !MODE_INSIDE_ACL.
24355         * lib/file-has-acl.c (file_has_acl): Likewise.
24356         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24357         FreeBSD, MacOS X, or IRIX, respectively.
24358
24359 2008-05-22  Bruno Haible  <bruno@clisp.org>
24360
24361         * lib/acl.h: Don't include <sys/acl.h>.
24362         (GETACLCNT): Move fallback to lib/acl-internal.h.
24363         * lib/acl-internal.h: Include <sys/acl.h> here.
24364         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24365
24366 2008-05-22  Bruno Haible  <bruno@clisp.org>
24367
24368         Split off copy_acl function to separate file.
24369         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24370         * lib/acl.c (copy_acl): Moved function to separate file.
24371         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24372         * modules/acl (Files): Add lib/copy-acl.c.
24373         (Makefiles.am): Augment lib_SOURCES.
24374
24375 2008-05-22  Bruno Haible  <bruno@clisp.org>
24376
24377         * modules/copy-file-tests: New file.
24378         * tests/test-copy-file.sh: New file.
24379         * tests/test-copy-file.c: New file.
24380         * tests/test-copy-file-sameacls.c: New file.
24381
24382 2008-05-22  Eric Blake  <ebb9@byu.net>
24383
24384         Avoid gcc warning.
24385         * tests/test-memcmp.c (main): Pass NULL indirectly.
24386
24387 2008-05-21  Bruno Haible  <bruno@clisp.org>
24388
24389         Add reference doc about ACLs.
24390         * doc/acl-resources.txt: New file.
24391         * doc/acl-cygwin.txt: New file.
24392
24393 2008-05-21  Bruno Haible  <bruno@clisp.org>
24394
24395         Avoid one more warning from gcc.
24396         * lib/vasnprintf.c (IF_LINT): Update comments.
24397         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24398
24399 2008-05-21  Jim Meyering  <meyering@redhat.com>
24400
24401         avoid a warning from gcc
24402         * lib/vasnprintf.c (IF_LINT): Define.
24403         (scale10_round_decimal_long_double):
24404         Use it to avoid a "may be used uninitialized" warning.
24405         (scale10_round_decimal_double): Likewise.
24406
24407 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24408
24409         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24410         declared.
24411
24412 2008-05-20  Bruno Haible  <bruno@clisp.org>
24413
24414         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24415         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24416
24417 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24418
24419         * modules/memcmp-tests: New file.
24420         * tests/test-memcmp.c: New file.
24421
24422 2008-05-19  Bruno Haible  <bruno@clisp.org>
24423
24424         * modules/propername (Notice, configure.ac): Put quoted "..." into
24425         --keyword option.
24426         * lib/propername.h: Update comments accordingly.
24427         Reported by Eric Blake.
24428
24429 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24430
24431         * modules/getpass-gnu (Depends-on): Add fseeko.
24432
24433 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24434
24435         * modules/base64-tests: New file.
24436
24437 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24438
24439         * lib/base64.c (base64_decode_ctx): If a decode context structure
24440         was passed in use it to ignore newlines.  If a context structure
24441         was _not_ passed in, continue to treat newlines as garbage (this
24442         is the historical behavior).  Formerly base64_decode.
24443         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24444         takes a decode context structure.
24445         * lib/base64.h (base64_decode): Macro for four-argument calls.
24446         (base64_decode_alloc): Likewise.
24447         * lib/base64.c (base64_decode_ctx): If a decode context structure
24448         was passed in use it to ignore newlines.  If a context structure
24449         was _not_ passed in, continue to treat newlines as garbage (this
24450         is the historical behavior).  Formerly base64_decode.
24451         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24452         takes a decode context structure.
24453         * lib/base64.h (base64_decode): Macro for four-argument calls.
24454         (base64_decode_alloc): Likewise.
24455
24456 2008-05-19  Jim Meyering  <meyering@redhat.com>
24457
24458         avoid a warning from gcc
24459         * lib/trim.c (IF_LINT): Define.
24460         (trim2): Use it to avoid a "may be used uninitialized" warning.
24461
24462         Fix doc typo.
24463         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24464
24465 2008-05-19  Bruno Haible  <bruno@clisp.org>
24466
24467         * doc/glibc-functions/getpass.texi: Document limits of other
24468         implementations.
24469
24470 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24471             Bruno Haible <bruno@clisp.org>
24472
24473         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24474
24475 2008-05-18  Bruno Haible  <bruno@clisp.org>
24476
24477         * modules/propername: New file, from GNU gettext.
24478         * lib/propername.h: New file, from GNU gettext.
24479         * lib/propername.c: New file, from GNU gettext.
24480         * MODULES.html.sh (Internationalization functions): Add propername.
24481
24482 2008-05-16  Jim Meyering  <meyering@redhat.com>
24483             Bruno Haible  <bruno@clisp.org>
24484
24485         Avoid some warnings from "gcc -Wshadow".
24486         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24487
24488 2008-05-15  Eric Blake  <ebb9@byu.net>
24489
24490         Extend previous patch to cygwin 1.7.0.
24491         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24492         fast implementation in cygwin >= 1.7.0.
24493         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24495
24496 2008-05-15  Bruno Haible  <bruno@clisp.org>
24497
24498         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24499         implementation in glibc >= 2.9.
24500         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24502
24503 2008-05-15  Bruno Haible  <bruno@clisp.org>
24504
24505         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24506         (Unicode string functions): Add unilbrk/*.
24507         Reported by Karl Berry.
24508
24509 2008-05-15  Eric Blake  <ebb9@byu.net>
24510
24511         Fix violation of <stdbool.h> replacement in regex.
24512         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24513         * lib/regexec.c (re_search_internal): Likewise.
24514         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24515
24516 2008-05-15  Jim Meyering  <meyering@redhat.com>
24517
24518         avoid distracting test output when git or cvs is not found
24519         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24520         * tests/test-vc-list-files-git.sh: Likewise.
24521
24522 2008-05-15  Eric Blake  <ebb9@byu.net>
24523
24524         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24525         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24526         glibc version.
24527         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24528         * doc/posix-functions/strstr.texi (strstr): Likewise.
24529         * lib/str-two-way.h (MAX): Sychronize with glibc.
24530
24531 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24532
24533         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24534         opr.ctx_type.
24535         (calc_first): Initialize constraint field.
24536         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24537         Fix grammar.
24538         (duplicate_node): Merge constraint field for all node types.
24539         (calc_eclosure_iter): Look at constraint field for all node types.
24540         * lib/regex_internal.c (create_cd_newstate): Don't look at
24541         opr.ctx_type.
24542
24543 2008-05-14  Bruno Haible  <bruno@clisp.org>
24544
24545         Help GCC to do better code generation.
24546         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24547         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24548         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24549         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24550         Declare with attribute 'malloc' if supported.
24551
24552 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24553
24554         use "echo STR|wc -c" rather than unportable "expr length STR"
24555         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24556         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24557
24558 2008-05-14  Jim Meyering  <meyering@redhat.com>
24559
24560         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24561         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24562         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24563         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24564         via Collin Lasse.
24565
24566 2008-05-14  Eric Blake  <ebb9@byu.net>
24567
24568         Avoid quadratic growth in gl_LIBSOURCES.
24569         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24570         Suggested by Bruno Haible.
24571
24572         Test xmemdup0.
24573         * modules/xmemdup0-tests: New file.
24574         * tests/test-xmemdup0.c: Likewise.
24575
24576 2008-05-13  Eric Blake  <ebb9@byu.net>
24577
24578         Split xmemdup0 into its own module.
24579         * modules/xmemdup0: New file.
24580         * lib/xmemdup0.h: Likewise.
24581         * lib/xmemdup0.c: Likewise.
24582         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24583         * lib/xalloc.h (xmemdup0): Remove.
24584         * lib/xmalloc.c (xmemdup0): Likewise.
24585
24586 2008-05-13  Eric Blake  <ebb9@byu.net>
24587             Bruno Haible  <bruno@clisp.org>
24588
24589         Reduce number of forks required during autoconf.
24590         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24591         and gl_LIBSOURCES_DIR.
24592         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24593         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24594         m4_syscmd per file.
24595         <m4_foreach_w>: Move...
24596         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24597
24598 2008-05-13  Eric Blake  <ebb9@byu.net>
24599
24600         * gnulib-tool: Fix various comment typos.
24601
24602 2008-05-12  Bruno Haible  <bruno@clisp.org>
24603
24604         Tailor the linebreaking algorithm.
24605         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24606
24607 2008-05-12  Bruno Haible  <bruno@clisp.org>
24608
24609         Update to Unicode 5.0.0.
24610         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24611         LBP_JV, LBP_JT. Redistribute values.
24612         (unilbrk_table): Change size.
24613         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24614         Unicode TR#14 rev. 22.
24615         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24616         LBP_JV, LBP_JT. Redistribute values.
24617         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
24618         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
24619         Update.
24620         * lib/unilbrk/lbrkprop1.h: Regenerated.
24621         * lib/unilbrk/lbrkprop2.h: Regenerated.
24622         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
24623         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
24624         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
24625         Likewise.
24626         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
24627         Likewise.
24628         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
24629         result.
24630         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24631         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24632         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24633         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
24634         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
24635         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
24636
24637 2008-05-11  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
24640
24641 2008-05-11  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
24644         * modules/unilbrk/gen-lbrk: New file.
24645
24646 2008-05-11  Bruno Haible  <bruno@clisp.org>
24647
24648         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
24649         * m4/sha512.m4 (gl_SHA512): Likewise.
24650
24651 2008-05-11  Jim Meyering  <meyering@redhat.com>
24652
24653         New modules: crypto/sha256, crypto/sha512 (from coreutils)
24654         * modules/crypto/sha256: New file.
24655         * modules/crypto/sha512: Likewise.
24656         * lib/sha256.c: Likewise.
24657         * lib/sha256.h: Likewise.
24658         * lib/sha512.c: Likewise.
24659         * lib/sha512.h: Likewise.
24660         * lib/u64.h: Likewise.
24661         * m4/sha256.m4: Likewise.
24662         * m4/sha512.m4: Likewise.
24663         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
24664
24665 2008-05-10  Bruno Haible  <bruno@clisp.org>
24666
24667         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
24668         (Input/Output <stdio.h>): Add xprintf.
24669         (Signal handling <signal.h>): Add strsignal.
24670         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
24671         (Core language properties): Add func.
24672         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
24673         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
24674         strings.
24675         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
24676         (Input/output): New section.
24677         (File system functions): Add openat-die, stat-macros.
24678         (Networking functions): Add sockets.
24679         (Unicode string functions): Add unictype/*.
24680         (Support for building libraries and executables): Add gperf.
24681         (Support for building documentation): Add agpl-3.0.
24682         (Misc): Add nocrash.
24683
24684 2008-05-10  Bruno Haible  <bruno@clisp.org>
24685
24686         * modules/unictype/gen-ctype: New file.
24687
24688 2008-05-10  Jim Meyering  <meyering@redhat.com>
24689
24690         Make chdir-safer.c more efficient on a system with no symlinks.
24691         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
24692         also if ELOOP is zero.  Suggested by Bruno Haible.
24693
24694         Make chdir-safer.c slightly safer.
24695         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
24696         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
24697
24698         Avoid compile failure on systems without ELOOP (like mingw).
24699         * lib/chdir-safer.c (ELOOP): Define if not already defined.
24700         Reported by Bruno Haible.
24701
24702 2008-05-10  Bruno Haible  <bruno@clisp.org>
24703
24704         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
24705         (is_utf8_encoding): Use a case-insensitive comparison.
24706         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
24707         streq.
24708
24709 2008-05-10  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
24712         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
24713         * lib/unilbrk/ulc-common.h (iconv_string_length,
24714         iconv_string_keeping_offsets): Remove declarations.
24715         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
24716         Don't include <iconv.h>, streq.h, xsize.h.
24717         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
24718         conversion.
24719         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
24720         <iconv.h>, streq.h, xsize.h.
24721         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
24722         conversion.
24723         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
24724         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
24725         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
24726         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
24727
24728 2008-05-10  Bruno Haible  <bruno@clisp.org>
24729
24730         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
24731         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
24732
24733         * modules/unilbrk/u32-width-linebreaks-tests: New file.
24734         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
24735
24736         * modules/unilbrk/u16-width-linebreaks-tests: New file.
24737         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
24738
24739         * modules/unilbrk/u8-width-linebreaks-tests: New file.
24740         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
24741
24742         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
24743         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
24744
24745         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
24746         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
24747
24748         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
24749         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
24750
24751         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
24752         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
24753
24754 2008-05-10  Bruno Haible  <bruno@clisp.org>
24755
24756         Split up 'linebreak' module.
24757         * lib/unilbrk.h: New file, based on lib/linebreak.h.
24758         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
24759         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
24760         modifications.
24761         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
24762         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
24763         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
24764         lib/linebreak.c.
24765         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
24766         lib/linebreak.c.
24767         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
24768         lib/linebreak.c.
24769         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
24770         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
24771         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
24772         lib/linebreak.c.
24773         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
24774         lib/linebreak.c.
24775         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
24776         lib/linebreak.c.
24777         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
24778         lib/linebreak.c.
24779         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
24780         lib/linebreak.c.
24781         * modules/unilbrk/base: New file.
24782         * modules/unilbrk/tables: New file.
24783         * modules/unilbrk/u8-possible-linebreaks: New file.
24784         * modules/unilbrk/u16-possible-linebreaks: New file.
24785         * modules/unilbrk/u32-possible-linebreaks: New file.
24786         * modules/unilbrk/ulc-common: New file.
24787         * modules/unilbrk/ulc-possible-linebreaks: New file.
24788         * modules/unilbrk/u8-width-linebreaks: New file.
24789         * modules/unilbrk/u16-width-linebreaks: New file.
24790         * modules/unilbrk/u32-width-linebreaks: New file.
24791         * modules/unilbrk/ulc-width-linebreaks: New file.
24792         * lib/linebreak.h: Remove file.
24793         * lib/linebreak.c: Remove file.
24794         * m4/linebreak.m4: Remove file.
24795         * modules/linebreak: Remove file.
24796         * NEWS: Mention the changes.
24797
24798 2008-05-09  Eric Blake  <ebb9@byu.net>
24799
24800         Add xmemdup0.
24801         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
24802         implementation.
24803         * lib/xmalloc.c (xmemdup0): New C implementation.
24804
24805 2008-05-08  Bruno Haible  <bruno@clisp.org>
24806
24807         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
24808
24809 2008-05-07  Eric Blake  <ebb9@byu.net>
24810
24811         Support cross-compilation of <wctype.h>.
24812         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
24813         AC_CACHE_CHECK.
24814
24815 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
24816
24817         * build-aux/vc-list-files: Add support for bzr.
24818
24819 2008-05-03  Jim Meyering  <meyering@redhat.com>
24820
24821         avoid failed assertion with tight malloc
24822         * tests/test-getndelim2.c: Correct an off-by-one assertion.
24823
24824 2008-05-03  Simon Josefsson  <simon@josefsson.org>
24825
24826         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
24827         are needed from arpa/inet.h.
24828         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
24829         Reported by Bruno Haible.
24830
24831 2008-05-02  Jim Meyering  <meyering@redhat.com>
24832
24833         avoid compilation error on FreeBSD 6
24834         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
24835
24836 2008-05-01  Jim Meyering  <meyering@redhat.com>
24837
24838         useless-if-before-free: correct --help's exit status description
24839         * build-aux/useless-if-before-free (usage): Like grep, exit 0
24840         for one or more matches, etc.  Reported by Bruno Haible.
24841
24842         vc-list-files: make the stand-alone gnulib test work
24843         * modules/vc-list-files-tests (configure.ac):
24844         Define and AC_SUBST abs_aux_dir.
24845         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
24846         $(abs_top_srcdir) to each script and having each of them
24847         duplicate the work of setting PATH, set PATH here, using
24848         the new variable, abs_aux_dir instead.
24849         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
24850         * tests/test-vc-list-files-git.sh: Likewise.
24851         Reported by Bruno Haible.
24852
24853 2008-05-01  Bruno Haible  <bruno@clisp.org>
24854
24855         * lib/getndelim2.c (getndelim2): Fix newsize computation during
24856         reallocation. Rename 'done' to 'found_delimiter'.
24857
24858 2008-05-01  Jim Meyering  <meyering@redhat.com>
24859
24860         vc-list-files: accommodate /bin/sh like the one from Solaris 10
24861         * build-aux/vc-list-files: Use `...`, not $(...).
24862
24863 2008-04-30  Jim Meyering  <meyering@redhat.com>
24864
24865         add tests for vc-list-files
24866         * modules/vc-list-files-tests: New module.
24867         * tests/test-vc-list-files-cvs.sh: New file.
24868         * tests/test-vc-list-files-git.sh: New file.
24869
24870         avoid a warning from gcc
24871         * lib/getndelim2.c (IF_LINT): Define.
24872         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
24873
24874         vc-list-files: work properly with build-aux/cvsu, too
24875         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
24876         to all cvs-based clauses.
24877
24878         vc-list-files: work properly in the CVS+awk case, too
24879         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
24880
24881         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
24882         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
24883         take more than one file argument, so .  Add quotes, just in case $dir
24884         ever contains a shell meta-character.  Prompted by Soren Hansen in
24885         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
24886
24887 2008-04-29  Eric Blake  <ebb9@byu.net>
24888
24889         Optimize getndelim2 to use block operations when possible.
24890         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
24891         freadseek, and memchr2.
24892         * lib/getndelim2.c (getndelim2): Use them for block reads.
24893
24894 2008-04-29  Bruno Haible  <bruno@clisp.org>
24895
24896         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
24897         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24898         * modules/inet_ntop (Depends-on): Add extensions.
24899         * modules/inet_pton (Depends-on): Likewise.
24900         Reported by Simon Josefsson.
24901
24902 2008-04-29  Jim Meyering  <meyering@redhat.com>
24903
24904         When the is more than one match in a block, match all of them.
24905         * build-aux/useless-if-before-free: Iterate through each block
24906         until there are no more matches.
24907
24908         Fix broken useless-if-before-free script.
24909         * build-aux/useless-if-before-free: Fix typo: missing "?" after
24910         the expression to match cast of argument to free-like function.
24911
24912 2008-04-29  Eric Blake  <ebb9@byu.net>
24913
24914         Use new header.
24915         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
24916
24917 2008-04-29  Jim Meyering  <meyering@redhat.com>
24918
24919         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
24920         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
24921         by gnulib to exist and to declare e.g., inet_ntop.
24922         Don't include "inet_ntop.h", now removed.
24923
24924         * m4/arpa_inet_h.m4: Remove trailing blanks.
24925
24926 2008-04-29  Eric Blake  <ebb9@byu.net>
24927
24928         Silence valgrind on safe reads beyond potential array bounds.
24929         * lib/rawmemchr.valgrind: New file.
24930         * lib/strchrnul.valgrind: Likewise.
24931         * modules/rawmemchr (Files): Distribute new file.
24932         * modules/strchrnul (Files): Likewise.
24933         Suggested by Bruno Haible.
24934
24935 2008-04-29  Bruno Haible  <bruno@clisp.org>
24936
24937         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
24938         (inet_ntop, inet_pton): Change portability warning's wording.
24939         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
24940         Invoke gl_CHECK_NEXT_HEADERS.
24941         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
24942         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
24943         set ARPA_INET_H.
24944         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24945         * modules/arpa_inet (Description): No longer only for systems that
24946         lack it.
24947         (Depends-on): Add include_next.
24948         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
24949         HAVE_ARPA_INET_H.
24950
24951 2008-04-29  Jim Meyering  <meyering@redhat.com>
24952
24953         * modules/mkdir (License): Re-license as LGPLv2+.
24954
24955 2008-04-29  Bruno Haible  <bruno@clisp.org>
24956
24957         * modules/rawmemchr (Maintainer): Set to Eric.
24958         * modules/strchrnul (Maintainer): Likewise.
24959
24960 2008-04-29  Simon Josefsson  <simon@josefsson.org>
24961
24962         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
24963         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
24964
24965         * modules/arpa_inet (arpa/inet.h): Use them.
24966
24967 2008-04-28  Eric Blake  <ebb9@byu.net>
24968
24969         Test getndelim2.
24970         * modules/getndelim2-tests: New file.
24971         * tests/test-getndelim2.c: Likewise.
24972         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
24973         stream.
24974         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
24975
24976         * MODULES.html.sh: Document new module.
24977
24978 2008-04-20  Bruno Haible  <bruno@clisp.org>
24979
24980         * lib/c-stack.c (die): Use raise.
24981         * modules/c-stack (Depends-on): Add raise.
24982
24983 2008-04-28  Bruno Haible  <bruno@clisp.org>
24984
24985         Expect rpmatch to be declared.
24986         * lib/yesno.c (rpmatch): Remove declaration.
24987
24988         Declare rpmatch.
24989         * lib/stdlib.in.h (rpmatch): New declaration.
24990         * lib/rpmatch.c: Include <stdlib.h> first.
24991         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
24992         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
24993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
24994         HAVE_RPMATCH.
24995         * modules/rpmatch (Depends-on): Add stdlib, extensions.
24996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24997         (Include): Set to <stdlib.h>.
24998         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
24999         HAVE_RPMATCH.
25000         * NEWS: Document the change.
25001
25002 2008-04-28  Bruno Haible  <bruno@clisp.org>
25003
25004         Change rpmatch to use nl_langinfo when appropriate.
25005         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25006         (N_): New macro.
25007         (localized_pattern): New function/macro.
25008         (try): Remove match, nomatch arguments. Copy the pattern into safe
25009         memory before caching it.
25010         (rpmatch): Use localized_pattern. Add translator comments.
25011         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25012         Suggested by Eric Blake.
25013         * modules/rpmatch (Depends-on): Add stdbool.
25014
25015 2008-04-28  Eric Blake  <ebb9@byu.net>
25016
25017         Add rawmemchr module, matching glibc.
25018         * modules/string (Makefile.am): New indicator.
25019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25020         * lib/string.in.h (rawmemchr): Declare when appropriate.
25021         * modules/rawmemchr: New file.
25022         * m4/rawmemchr.m4: Likewise.
25023         * lib/rawmemchr.c: Likewise.
25024         * modules/rawmemchr-tests: Likewise.
25025         * tests/test-rawmemchr.c: Likewise.
25026         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25027         module.
25028         * modules/strchrnul (Depends-on): Add rawmemchr.
25029         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25030
25031         Whitespace cleanup.
25032         * tests/test-strchrnul.c: Reindent.
25033         * lib/strchrnul.c: Likewise.
25034
25035         Optimize and test strchrnul.
25036         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25037         * modules/strchrnul-tests: New file.
25038         * tests/test-strchrnul.c: Likewise.
25039
25040         Remove intprops dependency.
25041         * modules/memchr (Depends-on): Remove intprops.
25042         * modules/memrchr (Depends-on): Likewise.
25043         * modules/memchr2 (Depends-on): Likewise.
25044         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25045         * lib/memrchr.c (__memrchr): Likewise.
25046         * lib/memrchr2.c (memchr2): Likewise.
25047         Reported by Simon Josefsson.
25048
25049 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25050
25051         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25052         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25053
25054 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25055
25056         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25057
25058         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25059
25060         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25061
25062         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25063         declarations.
25064         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25065
25066         * m4/inet_pton.m4: Don't check for header files.
25067
25068         * m4/inet_ntop.m4: Don't check for header files.
25069
25070 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25071
25072         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25073         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25074         trigger for cygwin).
25075         Reported by Bruno Haible  <bruno@clisp.org>.
25076
25077 2008-04-28  Bruno Haible  <bruno@clisp.org>
25078
25079         * doc/posix-functions/strdup.texi: Mention mingw problem.
25080
25081 2008-04-27  Bruno Haible  <bruno@clisp.org>
25082
25083         * modules/stat-time-tests (Depends-on): Add sleep.
25084         * tests/test-stat-time.c (force_unlink): New function.
25085         (cleanup): Use it.
25086         (test_mtime): Remove the ctime related tests.
25087         (test_ctime): New function, containing the ctime related tests.
25088         (main): Call test_ctime, except on native Windows platforms.
25089
25090 2008-04-27  Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/rpmatch.c (rpmatch): Add some comments.
25093         Reported by James Youngman <jay@gnu.org>.
25094
25095 2008-04-27  Bruno Haible  <bruno@clisp.org>
25096
25097         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25098         quiet NaNs.
25099
25100 2008-04-27  Bruno Haible  <bruno@clisp.org>
25101
25102         Make test-yesno.sh work on mingw.
25103         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25104         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25105         (main): Set stdin to binary mode.
25106         * modules/yesno-tests (Depends-on): Add binary-io.
25107
25108 2008-04-27  Bruno Haible  <bruno@clisp.org>
25109
25110         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25111         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25112         argument that lie outside the IEEE 854 domain.
25113         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25114         (gl_ISFINITE): Use it.
25115         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25116
25117 2008-04-27  Bruno Haible  <bruno@clisp.org>
25118
25119         Allow local renaming in config.h.
25120         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25121
25122 2008-04-27  Bruno Haible  <bruno@clisp.org>
25123
25124         * lib/memchr.c (__memchr): Change type of 'i'.
25125         * lib/memchr2.c (memchr2): Likewise.
25126
25127 2008-04-26  Eric Blake  <ebb9@byu.net>
25128         and Bruno Haible  <bruno@clisp.org>
25129
25130         Optimize and test memrchr.
25131         * modules/memrchr (Depends-on): Add intprops.
25132         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25133         * modules/memrchr-tests: New file.
25134         * tests/test-memrchr.c: New file.
25135
25136 2008-04-26  Bruno Haible  <bruno@clisp.org>
25137
25138         Add tentative support for DragonFly BSD.
25139         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25140         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25141         fp.
25142         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25143         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25144         * lib/fpurge.c (fpurge): Likewise.
25145         * lib/freadable.c (freaadable): Likewise.
25146         * lib/freadahead.c (freadahead): Likewise.
25147         * lib/freading.c (freading): Likewise.
25148         * lib/freadptr.c (freadptr): Likewise.
25149         * lib/freadseek.c (freadptrinc): Likewise.
25150         * lib/fseeko.c (fseeko): Likewise.
25151         * lib/fseterr.c (fseterr): Likewise.
25152         * lib/fwritable.c (fwritable): Likewise.
25153         * lib/fwriting.c (fwriting): Likewise.
25154
25155 2008-04-26  Bruno Haible  <bruno@clisp.org>
25156
25157         * lib/stdio-impl.h: New file.
25158         * lib/fbufmode.c: Include stdio-impl.h.
25159         (fbufmode): Use fp_, remove redundant #defines.
25160         * lib/fflush.c: Include stdio-impl.h.
25161         (clear_ungetc_buffer): Remove redundant #defines.
25162         * lib/fpurge.c: Include stdio-impl.h.
25163         (fpurge): Remove redundant #defines.
25164         * lib/freadable.c: Include stdio-impl.h.
25165         (freadable): Remove redundant #defines.
25166         * lib/freadahead.c: Include stdio-impl.h.
25167         (freadahead): Remove redundant #defines.
25168         * lib/freading.c: Include stdio-impl.h.
25169         (freading): Remove redundant #defines.
25170         * lib/freadptr.c: Include stdio-impl.h.
25171         (freadptr): Remove redundant #defines.
25172         * lib/freadseek.c: Include stdio-impl.h.
25173         (freadptrinc): Remove redundant #defines.
25174         * lib/fseeko.c: Include stdio-impl.h.
25175         (rpl_fseeko): Remove redundant #defines.
25176         * lib/fseterr.c: Include stdio-impl.h.
25177         (fseterr): Remove redundant #defines.
25178         * lib/fwritable.c: Include stdio-impl.h.
25179         (fwritable: Remove redundant #defines.
25180         * lib/fwriting.c: Include stdio-impl.h.
25181         (fwriting): Remove redundant #defines.
25182         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25183         * modules/fflush (Files): Likewise.
25184         * modules/fpurge (Files): Likewise.
25185         * modules/freadable (Files): Likewise.
25186         * modules/freadahead (Files): Likewise.
25187         * modules/freading (Files): Likewise.
25188         * modules/freadptr (Files): Likewise.
25189         * modules/freadseek (Files): Likewise.
25190         * modules/fseeko (Files): Likewise.
25191         * modules/fseterr (Files): Likewise.
25192         * modules/fwritable (Files): Likewise.
25193         * modules/fwriting (Files): Likewise.
25194
25195 2008-04-26  Bruno Haible  <bruno@clisp.org>
25196
25197         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25198         restore_seek_optimization, update_fpos_cache): New functions, extracted
25199         from rpl_fflush.
25200         (rpl_fflush): Use them.
25201         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25202         (gl_REPLACE_FFLUSH): Use it.
25203
25204 2008-04-26  Bruno Haible  <bruno@clisp.org>
25205
25206         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25207         on Solaris.
25208         * tests/test-xstrtoimax.sh: Likewise.
25209         * tests/test-xstrtoumax.sh: Likewise.
25210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25211
25212 2008-04-26  Bruno Haible  <bruno@clisp.org>
25213
25214         * modules/memchr-tests: New file.
25215         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25216
25217 2008-04-26  Eric Blake  <ebb9@byu.net>
25218             Bruno Haible  <bruno@clisp.org>
25219
25220         * lib/memchr.c: Include intprops.h.
25221         (__memchr): Optimize parallel detection of matching bytes. Rename local
25222         variables. Add explanatory comments.
25223
25224 2008-04-26  Bruno Haible  <bruno@clisp.org>
25225
25226         Fix module 'memchr', broken since 2000-10-28.
25227         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25228
25229 2008-04-26  Bruno Haible  <bruno@clisp.org>
25230
25231         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25232         comments.
25233
25234 2008-04-25  Eric Blake  <ebb9@byu.net>
25235
25236         Use native fstatat on cygwin 1.7.0.
25237         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25238         first.
25239
25240 2008-04-23  Eric Blake  <ebb9@byu.net>
25241
25242         Improve memchr2 performance.
25243         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25244         NUL bytes.
25245         * modules/memchr2 (Depends-on): Use intprops.h.
25246
25247 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25248
25249         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25250         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25251         <blp@cs.stanford.edu>.
25252
25253 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25254
25255         * lib/arpa_inet.in.h: New file.
25256
25257         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25258         (Makefile.am): Sed in substitute header file.
25259
25260         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25261         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25262
25263         * modules/inet_ntop (configure.ac): Use
25264         gl_ARPA_INET_MODULE_INDICATOR.
25265
25266         * modules/inet_pton (configure.ac): Use
25267         gl_ARPA_INET_MODULE_INDICATOR.
25268
25269 2008-04-22  Jim Meyering  <meyering@redhat.com>
25270
25271         * modules/verify (License): Re-license as LGPLv2+.
25272
25273 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25274
25275         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25276         parameter to void* as per POSIX standard (MinGW uses char*).
25277
25278 2008-04-21  Bruno Haible  <bruno@clisp.org>
25279
25280         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25281         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25282         Define to replacements if REPLACE_ISWCNTRL is 1.
25283         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25284         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25285         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25286         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25287         what it fixes.
25288         * doc/posix-functions/iswalpha.texi: Likewise.
25289         * doc/posix-functions/iswblank.texi: Likewise.
25290         * doc/posix-functions/iswcntrl.texi: Likewise.
25291         * doc/posix-functions/iswdigit.texi: Likewise.
25292         * doc/posix-functions/iswgraph.texi: Likewise.
25293         * doc/posix-functions/iswlower.texi: Likewise.
25294         * doc/posix-functions/iswprint.texi: Likewise.
25295         * doc/posix-functions/iswpunct.texi: Likewise.
25296         * doc/posix-functions/iswspace.texi: Likewise.
25297         * doc/posix-functions/iswupper.texi: Likewise.
25298         * doc/posix-functions/iswxdigit.texi: Likewise.
25299         Reported by Alain Guibert.
25300
25301 2008-04-21  Bruno Haible  <bruno@clisp.org>
25302
25303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25304         Patch by Alain Guibert.
25305
25306 2008-04-21  Bruno Haible  <bruno@clisp.org>
25307
25308         Fix test failures on mingw.
25309         * tests/test-xstrtol.c (print_no_progname): New function.
25310         (main): Install it in error_print_progname hook.
25311         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25312         * tests/test-xstrtoimax.sh: Likewise.
25313         * tests/test-xstrtoumax.sh: Likewise.
25314
25315 2008-04-21  Bruno Haible  <bruno@clisp.org>
25316
25317         Fix test failure on mingw.
25318         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25319
25320 2008-04-21  Bruno Haible  <bruno@clisp.org>
25321
25322         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25323         Actually assign a value.
25324
25325 2008-04-20  Bruno Haible  <bruno@clisp.org>
25326
25327         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25328         take 2.
25329         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25330         'canonicalize-lgpl' module is also used.
25331         * lib/canonicalize-lgpl.c: Undo last change.
25332         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25333
25334 2008-04-20  Bruno Haible  <bruno@clisp.org>
25335
25336         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25337         config.h. Provide _mkdir based fallback for mingw.
25338         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25339         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25340         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25341         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25342         rather than defining mkdir in config.h.
25343         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25344         (gl_SYS_STAT_H_DEFAULTS): New macro.
25345         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25346         HAVE_IO_H any more.
25347         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25348         HAVE_DECL_MKDIR and HAVE_IO_H.
25349
25350 2008-04-20  Bruno Haible  <bruno@clisp.org>
25351
25352         * lib/isapipe.c: Port to native Windows platforms.
25353
25354 2008-04-20  Bruno Haible  <bruno@clisp.org>
25355
25356         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25357
25358 2008-04-21  Eric Blake  <ebb9@byu.net>
25359
25360         Work around preprocessors that don't handle UINTMAX_MAX.
25361         * lib/memchr2.c (memchr2): Avoid embedded #if.
25362         Reported by Alain Guibert, fix suggested by Bruno Haible.
25363
25364 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25365
25366         * doc/posix-functions/strftime.texi (strftime): Explain better
25367         Windows incompatibility.  Suggested by Micah Cowan
25368         <micah@cowan.name>.
25369
25370 2008-04-20  Bruno Haible  <bruno@clisp.org>
25371
25372         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25373         unistr/u8-mblen.
25374
25375 2008-04-20  Bruno Haible  <bruno@clisp.org>
25376
25377         Fix test failure on platforms with non-GNU iconv.
25378         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25379         (U_TO_U8): Use it, rather than u16_to_u8.
25380         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25381         units at the end of the input string.
25382         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25383
25384 2008-04-20  Bruno Haible  <bruno@clisp.org>
25385
25386         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25387         when the resulting length is 0.
25388         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25389
25390 2008-04-20  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25393         works.
25394         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25395
25396 2008-04-20  Bruno Haible  <bruno@clisp.org>
25397
25398         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25399         * modules/tsearch-tests (configure.ac): Test for initstate function.
25400
25401 2008-04-20  Bruno Haible  <bruno@clisp.org>
25402
25403         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25404         for nlink_t if missing.
25405         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25406
25407 2008-04-19  Bruno Haible  <bruno@clisp.org>
25408
25409         Work around snprintf bug on Linux libc5.
25410         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25412         gl_SNPRINTF_SIZE1.
25413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25414         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25415         that test failed.
25416         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25417         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25418         * modules/snprintf (Files): Add m4/printf.m4.
25419         * modules/vsnprintf (Files): Likewise.
25420         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25421         * doc/posix-functions/vsnprintf.texi: Likewise.
25422
25423 2008-04-19  Bruno Haible  <bruno@clisp.org>
25424
25425         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25426         from 0.0058 to less than 10^-7.
25427
25428 2008-04-19  Bruno Haible  <bruno@clisp.org>
25429
25430         Fix rounding when a precision is given.
25431         * lib/vasnprintf.c (is_borderline): New function.
25432         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25433         9...9x.
25434         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25435         %e, %g.
25436         * tests/test-vasprintf-posix.c (test_function): Likewise.
25437         * tests/test-snprintf-posix.h (test_function): Likewise.
25438         * tests/test-sprintf-posix.h (test_function): Likewise.
25439         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25440         * tests/test-printf-posix.h (test_function): Likewise.
25441         * tests/test-printf-posix.output: Update.
25442         Reported by John Darrington <john@darrington.wattle.id.au> via
25443         Ben Pfaff <blp@cs.stanford.edu>.
25444
25445 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25446
25447         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25448         Suggested by Bruno Haible <bruno@clisp.org>.
25449
25450 2008-04-17  Bruno Haible  <bruno@clisp.org>
25451
25452         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25453         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25454         implementation.
25455         Patch by Bruce Merry <bmerry@gmail.com>.
25456
25457 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25458
25459         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25460         doesn't work under Windows.
25461
25462 2008-04-16  Bruno Haible  <bruno@clisp.org>
25463
25464         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25465         New macros.
25466         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25467         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25468         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25469         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25470         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25471         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25472         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25473         macros.
25474         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25475         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25476         Northern Sotho, Uighur.
25477
25478 2008-04-16  Bruno Haible  <bruno@clisp.org>
25479
25480         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25481         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25482         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25483         Reported by Daniel Bergström <daniel@octocode.com>.
25484
25485 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25486             Bruno Haible  <bruno@clisp.org>
25487
25488         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25489         function.
25490         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25491         New functions, mostly extracted from gl_locale_name_default.
25492         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25493
25494 2008-04-16  Eric Blake  <ebb9@byu.net>
25495
25496         Adjust strtod detection to catch glibc 2.7 bug.
25497         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25498         Reported by John Gatewood Ham.
25499
25500 2008-04-16  Bruno Haible  <bruno@clisp.org>
25501
25502         Add tentative support for Linux libc5.
25503         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25504         * lib/fpurge.c (fpurge): Likewise.
25505         * lib/freadable.c (freadable): Likewise.
25506         * lib/freadahead.c (freadahead): Likewise.
25507         * lib/freading.c (freading): Likewise.
25508         * lib/freadptr.c (freadptr): Likewise.
25509         * lib/freadseek.c (freadptrinc): Likewise.
25510         * lib/fseeko.c (rpl_fseeko): Likewise.
25511         * lib/fseterr.c (fseterr): Likewise.
25512         * lib/fwritable.c (fwritable): Likewise.
25513         * lib/fwriting.c (fwriting): Likewise.
25514         Reported by Alain Guibert <alguibert+bts@free.fr>.
25515
25516 2008-04-15  Bruno Haible  <bruno@clisp.org>
25517
25518         * modules/mathl (configure.ac): Define module indicator.
25519
25520 2008-04-15  Bruno Haible  <bruno@clisp.org>
25521
25522         * lib/logl.c (logl): Remove unused variables.
25523
25524 2008-04-15  Bruno Haible  <bruno@clisp.org>
25525
25526         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25527         fails.
25528
25529 2008-04-15  Bruno Haible  <bruno@clisp.org>
25530
25531         * lib/trim.c (trim2): Fix argument of isspace() macro.
25532
25533 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25534
25535         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25536         to 0.
25537         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25538
25539 2008-04-14  Bruno Haible  <bruno@clisp.org>
25540
25541         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25542         AC_LANG_PROGRAM argument.
25543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25544         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25547         * m4/math_h.m4 (gl_MATH_H): Likewise.
25548         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25549         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25550         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25551         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25552         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25553         * m4/regex.m4 (gl_REGEX): Likewise.
25554         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25555         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25557         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25558         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25559         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25561         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25562
25563 2008-04-14  Jim Meyering  <meyering@redhat.com>
25564
25565         test-strtod: fix typos: s/abs/fabs/
25566         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25567
25568 2008-04-13  Bruno Haible  <bruno@clisp.org>
25569
25570         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25571         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25572         module is also used and while not building the reloc-wrapper.
25573
25574 2008-04-13  Bruno Haible  <bruno@clisp.org>
25575
25576         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25577
25578 2008-04-13  Bruno Haible  <bruno@clisp.org>
25579
25580         Fix AIX compilation failure introduced on 2008-04-02.
25581         * tests/test-frexp.c (exp): Undefine before redefining.
25582         * tests/test-frexpl.c (exp): Likewise.
25583
25584 2008-04-13  Bruno Haible  <bruno@clisp.org>
25585
25586         Work around a HP-UX stdio bug.
25587         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25588         * tests/test-ftello.c (main): Likewise.
25589         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25590         * doc/posix-functions/ftello.texi: Likewise.
25591
25592 2008-04-13  Bruno Haible  <bruno@clisp.org>
25593
25594         Make test-signbit pass on HP-UX/hppa.
25595         * tests/test-signbit.c (minus_zerol): New variable.
25596         (test_signbitl): Use it.
25597
25598 2008-04-13  Bruno Haible  <bruno@clisp.org>
25599
25600         Make truncl work on OSF/1 4.0.
25601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25602         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25603         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25604         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25605         HAVE_DECL_TRUNCL.
25606         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25607         HAVE_DECL_TRUNCL.
25608         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25609
25610 2008-04-13  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25613
25614 2008-04-13  Bruno Haible  <bruno@clisp.org>
25615
25616         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25617         expression, so as to avoid HP-UX 11 cc compiler bug.
25618
25619 2008-04-13  Bruno Haible  <bruno@clisp.org>
25620
25621         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
25622
25623 2008-04-13  Bruno Haible  <bruno@clisp.org>
25624
25625         * lib/git-merge-changelog.c: Remove empty declaration outside of
25626         functions.
25627
25628 2008-04-13  Bruno Haible  <bruno@clisp.org>
25629
25630         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
25631
25632 2008-04-13  Bruno Haible  <bruno@clisp.org>
25633
25634         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
25635         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
25636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
25637         also if it exists but lacks definitions of the SHUT_* macros.
25638         * modules/sys_socket (Description): Update.
25639         Reported by Elbert Pol <e.pol@chello.nl>.
25640
25641 2008-04-13  Bruno Haible  <bruno@clisp.org>
25642
25643         * lib/localcharset.c (OS2): Don't redefine if already defined.
25644         Reported by Elbert Pol <e.pol@chello.nl>.
25645
25646 2008-04-13  Bruno Haible  <bruno@clisp.org>
25647
25648         * lib/binary-io.h [__EMX__]: Include <io.h>.
25649         Reported by Elbert Pol <e.pol@chello.nl>.
25650
25651 2008-04-12  Bruno Haible  <bruno@clisp.org>
25652
25653         * lib/fpucw.h: Enable the definitions also for x86_64.
25654         Needed for NetBSD/x86_64.
25655         Reported by Thomas Klausner <tk@giga.or.at>.
25656
25657 2008-04-12  Bruno Haible  <bruno@clisp.org>
25658
25659         * tests/test-strtod.c: Include isnand.h.
25660         (main): Use isnand instead of isnan.
25661         Reported by Jim Meyering.
25662
25663 2008-04-12  Bruno Haible  <bruno@clisp.org>
25664
25665         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
25666         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25667
25668 2008-04-12  Jim Meyering  <meyering@redhat.com>
25669
25670         * m4/math_h.m4 (gl_MATH_H): Fix typos.
25671
25672 2008-04-12  Bruno Haible  <bruno@clisp.org>
25673
25674         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
25675         Reported by Elbert Pol <e.pol@chello.nl>.
25676
25677 2008-04-12  Eric Blake  <ebb9@byu.net>
25678
25679         Work around Solaris 10 math.h bug.
25680         * m4/math_h.m4 (gl_MATH_H): Check for bug.
25681         (gl_MATH_H_DEFAULTS): Set up default.
25682         * modules/math (Makefile.am): Replace new indicators.
25683         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
25684         * tests/test-math.c (main): Test this.
25685         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
25686         * doc/posix-headers/math.texi (math.h): Mention bug.
25687         Reported by Nelson H. F. Beebe and Jim Meyering.
25688
25689 2008-04-11  Bruno Haible  <bruno@clisp.org>
25690
25691         Adapt to future versions of Apple GCC.
25692         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
25693         Reported by Peter O'Gorman <peter@pogma.com>.
25694
25695 2008-04-11  Bruno Haible  <bruno@clisp.org>
25696
25697         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
25698
25699 2008-04-11  Bruno Haible  <bruno@clisp.org>
25700
25701         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
25702
25703         * modules/getaddrinfo-tests (Makefile.am): Define
25704         test_getaddrinfo_LDADD.
25705
25706 2008-04-11  Bruno Haible  <bruno@clisp.org>
25707
25708         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
25709         (init): Fix syntax error.
25710         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
25711         is declared.
25712
25713 2008-04-11  Bruno Haible  <bruno@clisp.org>
25714
25715         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
25716         * modules/glob (Depends-on): Add stdbool.
25717
25718 2008-04-11  Bruno Haible  <bruno@clisp.org>
25719
25720         * lib/trim.c: Include <string.h>.
25721
25722 2008-04-11  Eric Blake  <ebb9@byu.net>
25723
25724         Avoid compile failure on OS/2.
25725         * lib/regex_internal.h (internal_function): Disable optimization
25726         on OS/2 (__EMX__), where it caused compiler error.
25727         Reported by Elbert Pol.
25728
25729 2008-04-11  Bruno Haible  <bruno@clisp.org>
25730
25731         Flush the standard error stream before aborting. Needed on mingw.
25732         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
25733         * tests/test-array_list.c (ASSERT): Likewise.
25734         * tests/test-array_oset.c (ASSERT): Likewise.
25735         * tests/test-avltree_list.c (ASSERT): Likewise.
25736         * tests/test-avltree_oset.c (ASSERT): Likewise.
25737         * tests/test-avltreehash_list.c (ASSERT): Likewise.
25738         * tests/test-binary-io.c (ASSERT): Likewise.
25739         * tests/test-byteswap.c (ASSERT): Likewise.
25740         * tests/test-c-ctype.c (ASSERT): Likewise.
25741         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
25742         * tests/test-c-strcasestr.c (ASSERT): Likewise.
25743         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
25744         * tests/test-c-strstr.c (ASSERT): Likewise.
25745         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
25746         * tests/test-canonicalize.c (ASSERT): Likewise.
25747         * tests/test-carray_list.c (ASSERT): Likewise.
25748         * tests/test-ceilf1.c (ASSERT): Likewise.
25749         * tests/test-ceilf2.c (ASSERT): Likewise.
25750         * tests/test-ceill.c (ASSERT): Likewise.
25751         * tests/test-count-one-bits.c (ASSERT): Likewise.
25752         * tests/test-fbufmode.c (ASSERT): Likewise.
25753         * tests/test-fflush2.c (ASSERT): Likewise.
25754         * tests/test-floorf1.c (ASSERT): Likewise.
25755         * tests/test-floorf2.c (ASSERT): Likewise.
25756         * tests/test-floorl.c (ASSERT): Likewise.
25757         * tests/test-fopen.c (ASSERT): Likewise.
25758         * tests/test-fpending.c (ASSERT): Likewise.
25759         * tests/test-fprintf-posix.c (ASSERT): Likewise.
25760         * tests/test-fpurge.c (ASSERT): Likewise.
25761         * tests/test-freadable.c (ASSERT): Likewise.
25762         * tests/test-freadahead.c (ASSERT): Likewise.
25763         * tests/test-freading.c (ASSERT): Likewise.
25764         * tests/test-freadptr.c (ASSERT): Likewise.
25765         * tests/test-freadptr2.c (ASSERT): Likewise.
25766         * tests/test-freadseek.c (ASSERT): Likewise.
25767         * tests/test-freopen.c (ASSERT): Likewise.
25768         * tests/test-frexp.c (ASSERT): Likewise.
25769         * tests/test-frexpl.c (ASSERT): Likewise.
25770         * tests/test-fseek.c (ASSERT): Likewise.
25771         * tests/test-fseeko.c (ASSERT): Likewise.
25772         * tests/test-fstrcmp.c (ASSERT): Likewise.
25773         * tests/test-ftell.c (ASSERT): Likewise.
25774         * tests/test-ftello.c (ASSERT): Likewise.
25775         * tests/test-func.c (ASSERT): Likewise.
25776         * tests/test-fwritable.c (ASSERT): Likewise.
25777         * tests/test-fwriting.c (ASSERT): Likewise.
25778         * tests/test-getdelim.c (ASSERT): Likewise.
25779         * tests/test-getline.c (ASSERT): Likewise.
25780         * tests/test-i-ring.c (ASSERT): Likewise.
25781         * tests/test-iconv-utf.c (ASSERT): Likewise.
25782         * tests/test-iconv.c (ASSERT): Likewise.
25783         * tests/test-isfinite.c (ASSERT): Likewise.
25784         * tests/test-isnand.c (ASSERT): Likewise.
25785         * tests/test-isnanf.c (ASSERT): Likewise.
25786         * tests/test-isnanl.h (ASSERT): Likewise.
25787         * tests/test-ldexpl.c (ASSERT): Likewise.
25788         * tests/test-linked_list.c (ASSERT): Likewise.
25789         * tests/test-linkedhash_list.c (ASSERT): Likewise.
25790         * tests/test-localename.c (ASSERT): Likewise.
25791         * tests/test-lseek.c (ASSERT): Likewise.
25792         * tests/test-mbscasecmp.c (ASSERT): Likewise.
25793         * tests/test-mbscasestr1.c (ASSERT): Likewise.
25794         * tests/test-mbscasestr2.c (ASSERT): Likewise.
25795         * tests/test-mbscasestr3.c (ASSERT): Likewise.
25796         * tests/test-mbscasestr4.c (ASSERT): Likewise.
25797         * tests/test-mbschr.c (ASSERT): Likewise.
25798         * tests/test-mbscspn.c (ASSERT): Likewise.
25799         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
25800         * tests/test-mbspbrk.c (ASSERT): Likewise.
25801         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
25802         * tests/test-mbsrchr.c (ASSERT): Likewise.
25803         * tests/test-mbsspn.c (ASSERT): Likewise.
25804         * tests/test-mbsstr1.c (ASSERT): Likewise.
25805         * tests/test-mbsstr2.c (ASSERT): Likewise.
25806         * tests/test-mbsstr3.c (ASSERT): Likewise.
25807         * tests/test-memchr2.c (ASSERT): Likewise.
25808         * tests/test-memmem.c (ASSERT): Likewise.
25809         * tests/test-open.c (ASSERT): Likewise.
25810         * tests/test-printf-frexp.c (ASSERT): Likewise.
25811         * tests/test-printf-frexpl.c (ASSERT): Likewise.
25812         * tests/test-printf-posix.c (ASSERT): Likewise.
25813         * tests/test-quotearg.c (ASSERT): Likewise.
25814         * tests/test-rbtree_list.c (ASSERT): Likewise.
25815         * tests/test-rbtree_oset.c (ASSERT): Likewise.
25816         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
25817         * tests/test-round1.c (ASSERT): Likewise.
25818         * tests/test-roundf1.c (ASSERT): Likewise.
25819         * tests/test-roundl.c (ASSERT): Likewise.
25820         * tests/test-signbit.c (ASSERT): Likewise.
25821         * tests/test-sleep.c (ASSERT): Likewise.
25822         * tests/test-snprintf-posix.c (ASSERT): Likewise.
25823         * tests/test-snprintf.c (ASSERT): Likewise.
25824         * tests/test-sprintf-posix.c (ASSERT): Likewise.
25825         * tests/test-stat-time.c (ASSERT): Likewise.
25826         * tests/test-strcasestr.c (ASSERT): Likewise.
25827         * tests/test-strerror.c (ASSERT): Likewise.
25828         * tests/test-striconv.c (ASSERT): Likewise.
25829         * tests/test-striconveh.c (ASSERT): Likewise.
25830         * tests/test-striconveha.c (ASSERT): Likewise.
25831         * tests/test-strsignal.c (ASSERT): Likewise.
25832         * tests/test-strstr.c (ASSERT): Likewise.
25833         * tests/test-strtod.c (ASSERT): Likewise.
25834         * tests/test-trunc1.c (ASSERT): Likewise.
25835         * tests/test-trunc2.c (ASSERT): Likewise.
25836         * tests/test-truncf1.c (ASSERT): Likewise.
25837         * tests/test-truncf2.c (ASSERT): Likewise.
25838         * tests/test-truncl.c (ASSERT): Likewise.
25839         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
25840         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
25841         * tests/test-vasnprintf.c (ASSERT): Likewise.
25842         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
25843         * tests/test-vasprintf.c (ASSERT): Likewise.
25844         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
25845         * tests/test-vprintf-posix.c (ASSERT): Likewise.
25846         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
25847         * tests/test-vsnprintf.c (ASSERT): Likewise.
25848         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
25849         * tests/test-wcwidth.c (ASSERT): Likewise.
25850         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
25851         * tests/test-xprintf-posix.c (ASSERT): Likewise.
25852         * tests/test-xvasprintf.c (ASSERT): Likewise.
25853         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
25854         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
25855         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
25856         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
25857         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
25858         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
25859         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
25860         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
25861         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
25862         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
25863         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
25864         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
25865         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
25866         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
25867         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
25868         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
25869         * tests/unictype/test-block_list.c (ASSERT): Likewise.
25870         * tests/unictype/test-block_of.c (ASSERT): Likewise.
25871         * tests/unictype/test-block_test.c (ASSERT): Likewise.
25872         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
25873         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
25874         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
25875         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
25876         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
25877         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
25878         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
25879         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
25880         * tests/unictype/test-combining.c (ASSERT): Likewise.
25881         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
25882         * tests/unictype/test-digit.c (ASSERT): Likewise.
25883         * tests/unictype/test-mirror.c (ASSERT): Likewise.
25884         * tests/unictype/test-numeric.c (ASSERT): Likewise.
25885         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
25886         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
25887         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
25888         * tests/unictype/test-scripts.c (ASSERT): Likewise.
25889         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
25890         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
25891         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
25892         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
25893         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
25894         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
25895         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
25896         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
25897         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
25898         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
25899         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
25900         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
25901         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
25902         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
25903         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
25904         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
25905         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
25906         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
25907         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
25908         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
25909         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
25910         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
25911         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
25912         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
25913         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
25914         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
25915         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
25916         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
25917         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
25918         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
25919         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
25920         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
25921         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
25922         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
25923         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
25924         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
25925         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
25926         Reported by Eric Blake.
25927
25928 2008-04-11  Bruno Haible  <bruno@clisp.org>
25929
25930         * lib/wchar.in.h: Tweak comment.
25931
25932 2008-04-11  Bruno Haible  <bruno@clisp.org>
25933
25934         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
25935         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
25936         gl_COMMON.
25937         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
25938
25939 2008-04-11  Bruno Haible  <bruno@clisp.org>
25940
25941         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
25942
25943 2008-04-11  Simon Josefsson  <simon@josefsson.org>
25944
25945         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
25946         of attempting to use non-existing /dev/*random.  Based on patch
25947         from Adam Strzelecki <ono@java.pl> in
25948         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
25949
25950 2008-04-08  Bruno Haible  <bruno@clisp.org>
25951
25952         Add tentative support for emx+gcc.
25953         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
25954         * lib/fpurge.c (fpurge): Likewise.
25955         * lib/freadable.c (freadable): Likewise.
25956         * lib/freadahead.c (freadahead): Likewise.
25957         * lib/freading.c (freading): Likewise.
25958         * lib/freadptr.c (freadptr): Likewise.
25959         * lib/freadseek.c (freadptrinc): Likewise.
25960         * lib/fseeko.c (rpl_fseeko): Likewise.
25961         * lib/fseterr.c (fseterr): Likewise.
25962         * lib/fwritable.c (fwritable): Likewise.
25963         * lib/fwriting.c (fwriting): Likewise.
25964         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
25965
25966 2008-04-09  Eric Blake  <ebb9@byu.net>
25967
25968         Avoid some autoconf warnings.
25969         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
25970         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
25971         * m4/afs.m4 (gl_AFS): Likewise.
25972         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
25973         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
25974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25975         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
25976         (gl_INTEGER_TYPE_SUFFIX): Likewise.
25977         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
25978         (AC_CHECK_DECLS_ONCE): Likewise.
25979         Rename file...
25980         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
25981         gnulib-tool requires autoconf 2.59 or better.
25982         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
25983
25984 2008-04-08  Eric Blake  <ebb9@byu.net>
25985
25986         Use 'git describe --match' if present (added in git 1.5.5).
25987         * build-aux/git-version-gen: Limit result to tags that match 'v*'
25988         if possible.
25989
25990 2008-04-08  Bruno Haible  <bruno@clisp.org>
25991
25992         Add tentative support for OpenServer.
25993         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
25994         _ptr, _cnt.
25995         * lib/fpurge.c (fpurge): Likewise.
25996         * lib/freadable.c (freadable): Likewise.
25997         * lib/freadahead.c (freadahead): Likewise.
25998         * lib/freading.c (freading): Likewise.
25999         * lib/freadptr.c (freadptr): Likewise.
26000         * lib/freadseek.c (freadptrinc): Likewise.
26001         * lib/fseeko.c (rpl_fseeko): Likewise.
26002         * lib/fseterr.c (fseterr): Likewise.
26003         * lib/fwritable.c (fwritable): Likewise.
26004         * lib/fwriting.c (fwriting): Likewise.
26005         Reported by Roger Cornelius <rac@tenzing.org> and
26006         Brian K. White <brian@aljex.com>.
26007
26008 2008-04-06  Jim Meyering  <meyering@redhat.com>
26009
26010         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26011
26012 2008-04-06  Bruno Haible  <bruno@clisp.org>
26013
26014         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26015         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26016         * tests/test-printf-posix.sh: Likewise.
26017         * tests/test-vfprintf-posix.sh: Likewise.
26018         * tests/test-vprintf-posix.sh: Likewise.
26019         * tests/test-xprintf-posix.sh: Likewise.
26020
26021 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26022
26023         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26024         hide error from 'ls', needed on OS/2.
26025         Report by Elbert Pol <elbert.pol@gmail.com>.
26026
26027 2008-04-04  Eric Blake  <ebb9@byu.net>
26028
26029         Make test-fseeko.c failures meaningful.
26030         * tests/test-fseeko.c: Print line number on failure.
26031         * tests/test-fseek.c: Likewise.
26032         Reported by Nelson H. F. Beebe.
26033
26034         Improve strtod bug detection check.
26035         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26036         required for Solaris 10.
26037         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26038
26039 2008-04-04  Bruno Haible  <bruno@clisp.org>
26040
26041         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26042         by m4/setenv.m4.
26043
26044 2008-04-03  Eric Blake  <ebb9@byu.net>
26045
26046         Ensure sane .version contents.
26047         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26048         version string.
26049         * build-aux/git-version-gen: Improve documentation.
26050
26051         Make GNU make output nicer.
26052         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26053         MAKECMDGOALS to enforce message for all command line targets.  Set
26054         srcdir for use in maint.mk.
26055
26056         Another maintainer tweak.
26057         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26058         a target that regenerates version.
26059
26060 2008-04-03  Jim Meyering  <meyering@redhat.com>
26061
26062         vc-list-files: don't cause coreutils "make po-check" failure
26063         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26064
26065 2008-04-03  Eric Blake  <ebb9@byu.net>
26066
26067         Allow VPATH usage of vc-list-files.
26068         * build-aux/vc-list-files (scriptversion): Add timestamp.
26069         (options): Add --help, --version, -C.
26070         (CVS): Support installed cvsu.
26071
26072 2008-04-02  Bruno Haible  <bruno@clisp.org>
26073
26074         Avoid some "statement with no effect" warnings from gcc.
26075         * tests/test-wctype.c (main): Explicitly ignore unused values.
26076         Reported by Jim Meyering.
26077
26078 2008-04-02  Jim Meyering  <meyering@redhat.com>
26079
26080         Avoid some warnings from "gcc -Wshadow".
26081         * tests/test-frexp.c (exp): Define to a different identifier.
26082         * tests/test-frexpl.c (exp): Likewise.
26083
26084 2008-04-03  Jim Meyering  <meyering@redhat.com>
26085
26086         bootstrap: remove dangling *.[ch] symlinks from lib
26087         * build-aux/bootstrap [dangling symlink removal]: Move find's
26088         -depth option to precede all others, to avoid a warning.
26089         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26090
26091 2008-04-02  Bruno Haible  <bruno@clisp.org>
26092
26093         Avoid some warnings from "gcc -Wshadow".
26094         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26095         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26096         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26097         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26098         Reported by Jim Meyering.
26099
26100 2008-04-01  Bruno Haible  <bruno@clisp.org>
26101
26102         Fix test to work on IRIX 6.5 with cc.
26103         * tests/test-math.c (numeric_equal): New function.
26104         (main): Use it.
26105
26106 2008-04-01  Bruno Haible  <bruno@clisp.org>
26107
26108         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26109
26110 2008-04-01  Bruno Haible  <bruno@clisp.org>
26111
26112         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26113         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26114         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26115         (Depends-on): Remove math.
26116
26117         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26118         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26119         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26120         (Depends-on): Remove math.
26121
26122         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26123         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26124         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26125         (Depends-on): Remove math.
26126         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26127         (Depends-on): Remove math.
26128
26129         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26130         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26131         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26132         (Depends-on): Remove math.
26133         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26134         (Depends-on): Remove math.
26135
26136         * tests/test-round1.c: Include nan.h.
26137         (main): Use NaNd instead of NAN.
26138         * modules/round-tests (Files): Add tests/nan.h.
26139
26140         * tests/test-trunc1.c: Include nan.h.
26141         (main): Use NaNd instead of NAN.
26142         * modules/trunc-tests (Files): Add tests/nan.h.
26143
26144         * tests/test-roundf1.c: Include nan.h.
26145         (main): Use NaNf instead of NAN.
26146         * modules/roundf-tests (Files): Add tests/nan.h.
26147
26148         * tests/test-truncf1.c: Include nan.h.
26149         (main): Use NaNf instead of NAN.
26150         * modules/truncf-tests (Files): Add tests/nan.h.
26151
26152         * tests/test-ceilf1.c: Include nan.h.
26153         (main): Use NaNf instead of NAN.
26154         * modules/ceilf-tests (Files): Add tests/nan.h.
26155
26156         * tests/test-floorf1.c: Include nan.h.
26157         (main): Use NaNf instead of NAN.
26158         * modules/floorf-tests (Files): Add tests/nan.h.
26159
26160         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26161         (main): Use NaNf instead of NAN.
26162         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26163
26164         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26165         (main): Use NaNd instead of NAN.
26166         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26167
26168         * tests/test-frexp.c: Include nan.h.
26169         (main): Use NaNd instead of NAN.
26170         * modules/frexp-tests (Files): Add tests/nan.h.
26171
26172         * lib/isnan.c: Don't include <math.h>.
26173         (FUNC): Don't use NAN macro.
26174         * modules/isnand-nolibm (Depends-on): Remove math.
26175         * modules/isnanf-nolibm (Depends-on): Remove math.
26176         * modules/isnanl (Depends-on): Remove math.
26177         * modules/isnanl-nolibm (Depends-on): Remove math.
26178
26179         * tests/nan.h: New file.
26180
26181 2008-04-01  Eric Blake  <ebb9@byu.net>
26182
26183         Fix typos.
26184         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26185         values to be the right type.
26186
26187         For now, cater to gnulib strtod inaccuracies.
26188         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26189         fractional results.  While not as nice from a QoI perspective, it
26190         is a quicker patch than correctly implementing decimal to binary
26191         rounding.
26192
26193 2008-03-31  Eric Blake  <ebb9@byu.net>
26194
26195         Guarantee a definition of NAN.
26196         * lib/math.in.h (NAN): Define if missing.
26197         * tests/test-math.c (main): Test it.
26198         * doc/posix-headers/math.texi (math.h): Document this.
26199         * lib/isnan.c (rpl_isnand): Use it.
26200         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26201         * tests/test-floorf1.c (NaN): Likewise.
26202         * tests/test-frexp.c (NaN): Likewise.
26203         * tests/test-isnand.c (NaN): Likewise.
26204         * tests/test-isnanf.c (NaN): Likewise.
26205         * tests/test-round1.c (NaN): Likewise.
26206         * tests/test-roundf1.c (NaN): Likewise.
26207         * tests/test-snprintf-posix.h (NaN): Likewise.
26208         * tests/test-sprintf-posix.h (NaN): Likewise.
26209         * tests/test-trunc1.c (NaN): Likewise.
26210         * tests/test-truncf1.c (NaN): Likewise.
26211         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26212         * tests/test-vasprintf-posix.c (NaN): Likewise.
26213         * modules/isnand-nolibm (Depends-on): Add math.
26214         * modules/isnanf-nolibm (Depends-on): Likewise.
26215         * modules/isnanl (Depends-on): Likewise.
26216         * modules/isnanl-nolibm (Depends-on): Likewise.
26217         * modules/snprintf-posix-tests (Depends-on): Likewise.
26218         * modules/sprintf-posix-tests (Depends-on): Likewise.
26219         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26220         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26221         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26222         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26223
26224 2008-03-31  Bruno Haible  <bruno@clisp.org>
26225
26226         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26227         * doc/posix-functions/strtod.texi: Likewise.
26228
26229 2008-03-31  Bruno Haible  <bruno@clisp.org>
26230
26231         * tests/test-strtod.c (main): Don't use C99 syntax.
26232
26233 2008-03-31  Bruno Haible  <bruno@clisp.org>
26234
26235         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26236         Reported by Eric Blake.
26237
26238 2008-03-31  Jim Meyering  <meyering@redhat.com>
26239
26240         Don't compare actual signbit return values.
26241         * tests/test-strtod.c (main): Rather, compare only their
26242         zero/non-zero nature.
26243
26244 2008-03-31  Eric Blake  <ebb9@byu.net>
26245
26246         More strtod documentation.
26247         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26248         failures as distinct bugs.
26249
26250 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26251
26252         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26253         Problem reported by Erik Benada in
26254         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26255
26256 2008-03-30  Bruno Haible  <bruno@clisp.org>
26257
26258         * tests/test-strtod.c: Add comments about which assertion fails on which
26259         platform.
26260         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26261
26262 2008-03-30  Eric Blake  <ebb9@byu.net>
26263
26264         Test signbit behavior on zeros.
26265         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26266         (test_signbitd, test_signbitl): Likewise.
26267
26268         More strtod touchups.
26269         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26270         sign of negative underflow, for now.  Use .5, not .1.
26271         * doc/posix-functions/strtod.texi (strtod): Mention these
26272         limitations.
26273         Reported by Jim Meyering.
26274
26275 2008-03-30  Bruno Haible  <bruno@clisp.org>
26276
26277         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26278         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26279
26280 2008-03-30  Bruno Haible  <bruno@clisp.org>
26281
26282         Avoid failure when attempting to return empty iconv results on some
26283         platforms.
26284         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26285         allocation, don't report ENOMEM when the resulting string is empty.
26286
26287 2008-03-30  Bruno Haible  <bruno@clisp.org>
26288
26289         Fix buffer overrun.
26290         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26291         Don't consider the width for tmp_length. Check count against tmp_length
26292         before doing the padding. Ensure enough allocation during padding.
26293
26294 2008-03-30  Eric Blake  <ebb9@byu.net>
26295
26296         strtod touchups.
26297         * lib/strtod.c (strtod): Avoid compiler warnings.
26298         Reported by Jim Meyering.
26299
26300 2008-03-30  Bruno Haible  <bruno@clisp.org>
26301
26302         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26303         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26304         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26305         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26306         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26307         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26308         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26309         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26310
26311         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26312         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26313         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26314         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26315         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26316         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26317         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26318         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26319
26320         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26321         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26322         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26323         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26324         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26325         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26326         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26327         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26328
26329         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26330         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26331
26332         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26333         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26334
26335         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26336         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26337
26338         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26340         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26341
26342         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26343         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26344         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26345
26346         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26348         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26349
26350         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26352         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26353
26354         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26355         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26357         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26358         (Depends-on): Add EOVERFLOW.
26359         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26360         (Depends-on): Add EOVERFLOW.
26361         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26362         (Depends-on): Add EOVERFLOW.
26363         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26364         (Depends-on): Add EOVERFLOW.
26365         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26366         (Depends-on): Add EOVERFLOW.
26367         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26368         (Depends-on): Add EOVERFLOW.
26369         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26370         (Depends-on): Add EOVERFLOW.
26371         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26372         (Depends-on): Add EOVERFLOW.
26373
26374         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26376         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26377
26378         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26380         * modules/snprintf (Depends-on): Add EOVERFLOW.
26381
26382         * lib/poll.c (EOVERFLOW): Remove fallback.
26383         * modules/poll (Depends-on): Add EOVERFLOW.
26384
26385         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26386         * modules/getugroups (Depends-on): Add EOVERFLOW.
26387
26388         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26389         * modules/getdelim (Depends-on): Add EOVERFLOW.
26390
26391         * lib/ftell.c (EOVERFLOW): Remove fallback.
26392         * modules/ftell (Depends-on): Add EOVERFLOW.
26393
26394         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26395         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26396         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26397
26398         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26399
26400         * modules/EOVERFLOW-tests: New file.
26401         * tests/test-EOVERFLOW.c: New file.
26402
26403         * modules/EOVERFLOW: New file.
26404         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26405
26406 2008-03-30  Bruno Haible  <bruno@clisp.org>
26407
26408         Fix bug introduced on 2007-06-10.
26409         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26410         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26411
26412 2008-03-30  Bruno Haible  <bruno@clisp.org>
26413
26414         Improve freadseek's efficiency after ungetc.
26415         * lib/freadseek.c: Include freadahead.h.
26416         (freadptrinc): New function, extracted from freadseek.
26417         (freadseek): Use it in a loop. Use freadahead to determine the number
26418         of loop iterations.
26419         * modules/freadseek (Depends-on): Add freadahead.
26420         (configure.ac): Require AC_C_INLINE.
26421
26422 2008-03-30  Bruno Haible  <bruno@clisp.org>
26423
26424         * lib/freadseek.c (freadseek): Don't ignore the return value of
26425         freadptr.
26426
26427 2008-03-29  Eric Blake  <ebb9@byu.net>
26428
26429         Add hex float support.
26430         * modules/strtod (Depends-on): Add c-ctype.
26431         (Link): Mention POW_LIB.
26432         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26433         whitespace between 'e' and exponent.
26434         * tests/test-strtod.c (main): Enable hex float tests.
26435         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26436         now provides.
26437
26438         Document various strtod bugs, with some fixes.
26439         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26440         "-0x", "inf", "nan", and hex constants.
26441         * doc/posix-functions/atof.texi (atof): Likewise.
26442         * modules/stdlib (Makefile.am): Support strtod.
26443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26444         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26445         detect additional strtod bugs.
26446         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26447         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26448         bool where appropriate.  Parse 'inf' and 'nan'.
26449         * tests/test-strtod.c: New file.
26450         * modules/strtod (Depends-on): Add stdbool, stdlib.
26451         (configure.ac): Turn on module indicator.
26452         * modules/strtod-tests: New module.
26453
26454 2008-03-29  Eric Blake  <ebb9@byu.net>
26455
26456         Fix ftell on mingw.
26457         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26458         * modules/ftell-tests (Depends-on): Add binary-io.
26459         * modules/ftello-tests (Depends-on): Likewise.
26460         * tests/test-ftell.c (main): Enhance test to cover behavior after
26461         ungetc.  Enforce binary mode.
26462         * tests/test-ftello.c (main): Likewise.
26463
26464         Pass test-freadseek on cygwin.
26465         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26466         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26467         ungetc buffer.
26468
26469         * tests/test-fflush2.c (main): Fix typo.
26470
26471 2008-03-29  Bruno Haible  <bruno@clisp.org>
26472
26473         * tests/test-fflush2.c (main): Temporarily disable the contents of
26474         this test.
26475         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26476         Reported by Eric Blake.
26477
26478 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26479
26480         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26481         (GC_SHA224_DIGEST_SIZE): Add.
26482
26483         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26484         (gc_hash_digest_length): Likewise.
26485         (gc_hash_buffer): Likewise.
26486
26487 2008-03-25  Bruno Haible  <bruno@clisp.org>
26488
26489         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26490         detail which gettext release to use.
26491         Reported by Simon Josefsson.
26492
26493 2008-03-26  Jim Meyering  <meyering@redhat.com>
26494
26495         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26496         * modules/gnumakefile (clean-GNUmakefile): Also, use
26497         test ... && ... || : syntax rather than if-then ... fi.
26498
26499         gnumakefile: Don't double-quote-expand $(VPATH) value.
26500         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26501
26502 2008-03-24  Eric Blake  <ebb9@byu.net>
26503
26504         Alter GNUmakefile to install into top directory.
26505         * modules/maintainer-makefile: Split, and add dependency...
26506         * modules/gnumakefile: to this new module.
26507         * build-aux/GNUmakefile: Move...
26508         * top/GNUmakefile: ...here.
26509         * build-aux/maint.mk: Move...
26510         * top/maint.mk: ...here.
26511         * MODULES.html.sh (Support for maintaining...): Document new
26512         module.
26513
26514 2008-03-23  Bruno Haible  <bruno@clisp.org>
26515
26516         * gnulib-tool: New options --vc-files, --no-vc-files.
26517         (func_usage): Document them.
26518         (vc_files): New variable.
26519         (func_import): Consider vc_files.
26520         (func_create_testdir): Set vc_files to empty.
26521         Suggested by Jim Meyering and Karl Berry.
26522
26523 2008-03-23  Bruno Haible  <bruno@clisp.org>
26524
26525         Fix regex compilation error on HP-UX 11.
26526         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26527         * modules/regex (Files): Add m4/mbstate_t.m4.
26528         Reported by Ton Voon <ton.voon@altinity.com>.
26529
26530 2008-03-23  Bruno Haible  <bruno@clisp.org>
26531
26532         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26533
26534 2008-03-23  Eric Blake  <ebb9@byu.net>
26535             Bruno Haible  <bruno@clisp.org>
26536
26537         Install files from top/ in the destination directory.
26538         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26539         augmentation also for the files from top/.
26540         (func_import, func_create_testdir): Rewrite file names:
26541         top/filename -> filename.
26542
26543 2008-03-23  Bruno Haible  <bruno@clisp.org>
26544
26545         Tweak "gnulib --version" output.
26546         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26547
26548 2008-03-23  Bruno Haible  <bruno@clisp.org>
26549
26550         Tweak "gnulib --version" output.
26551         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26552         rather than contents of ChangeLog, when possible.
26553
26554 2008-03-21  Eric Blake  <ebb9@byu.net>
26555
26556         More --version tweaks.
26557         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26558         date of last ChangeLog entry.
26559
26560 2008-03-21  Jim Meyering  <meyering@redhat.com>
26561
26562         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26563
26564 2008-03-20  Eric Blake  <ebb9@byu.net>
26565
26566         VPATH fix.
26567         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26568
26569 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26570
26571         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26572         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26573
26574 2008-03-20  Eric Blake  <ebb9@byu.net>
26575
26576         Sync GNUmakefile with coreutils.
26577         * build-aux/GNUmakefile (have-Makefile): Rename...
26578         (_have-Makefile): ...to this, for namespace consideration.
26579         (GNUmakefile.cfg): Include, if present.
26580         (_autoreconf): Define a default.
26581         (_is-dist-target): New rule for rebuilds to pick up intra-release
26582         version.
26583         (maint-cfg.mk): Rename...
26584         (cfg.mk): ...to this.
26585
26586 2008-03-18  Jim Meyering  <meyering@redhat.com>
26587
26588         New script and module: mktempd
26589         * MODULES.html.sh (maint+release support): Add mktempd.
26590         * build-aux/mktempd: New file.
26591         * modules/mktempd: New file.
26592
26593 2008-03-15  Jim Meyering  <meyering@redhat.com>
26594
26595         Undo last change.
26596         * lib/sha1.c, lib/md5.c: 63 != ~63.
26597         Reported by Andreas Schwab.
26598
26599         sha1.c, md5.c: Hoist a redundant expression.
26600         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26601         "ctx->buflen" only once, before calling *_process_block.
26602         * lib/md5.c (md5_process_bytes): Likewise.
26603
26604 2008-03-14  Eric Blake  <ebb9@byu.net>
26605
26606         Bump copyright year in files generated by gnulib-tool.
26607         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26608         gnulib-tool, rather than hard-coding it.
26609
26610         Fix 'gnulib-tool --version' output to work with git.
26611         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26612         (startup): ...here.
26613         (func_version): Use it to invoke git-version-gen, rather than
26614         relying on CVS keyword expansion.  Modernize wording.
26615         (cvsdatestamp, last_checkin_date, version): Kill unused
26616         variables.
26617
26618 2008-03-12  Jim Meyering  <meyering@redhat.com>
26619
26620         Recognize optional cast of the argument to free.
26621         * build-aux/useless-if-before-free: Update regexps.
26622
26623         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
26624
26625 2008-03-11  Bruno Haible  <bruno@clisp.org>
26626
26627         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
26628         by a single package.
26629         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
26630         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
26631         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
26632         Reported by Sam Steingold <sds@gnu.org>.
26633
26634 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26635
26636         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
26637         repositories.
26638
26639 2008-03-11  Bruno Haible  <bruno@clisp.org>
26640
26641         Avoid conflicts between local macro definitions.
26642         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26643         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
26644
26645 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
26646             Bruno Haible  <bruno@clisp.org>
26647
26648         Make va_copy work with some version of xlc on AIX 5.1.
26649         * lib/stdarg.in.h: New file.
26650         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
26651         On AIX, use a <stdarg.h> file substitute.
26652         * modules/stdarg (Files): Add lib/stdarg.in.h.
26653         (Depends-on): Add include_next.
26654         (Makefile.am): Build a stdarg.h substitute if requested.
26655         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
26656
26657 2008-03-10  Bruno Haible  <bruno@clisp.org>
26658
26659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
26660         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26661         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26662
26663 2008-03-10  Bruno Haible  <bruno@clisp.org>
26664
26665         * modules/stdlib (Depends-on): Add include_next, remove
26666         absolute-header.
26667
26668 2008-03-09  Bruno Haible  <bruno@clisp.org>
26669
26670         * lib/freadahead.h (freadahead): Document more precisely.
26671         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
26672         the sum of both buffer sizes.
26673         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
26674         * NEWS: Document the change.
26675
26676 2008-03-09  Bruno Haible  <bruno@clisp.org>
26677
26678         Extend freadptr to return also the buffer size.
26679         * lib/freadptr.h (freadptr): Add sizep argument.
26680         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
26681         (freadptr): Add sizep argument. Determine buffer size like freadahead
26682         does.
26683         * tests/test-freadptr.c: Don't include freadahead.h.
26684         (main): Adapt for new calling convention of freadptr.
26685         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
26686         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
26687         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
26688         tests/test-freadptr2.sh.
26689         (Depends): Remove freadahead.
26690         (TESTS): Add test-freadptr2.sh.
26691         (check_PROGRAMS): Add test-freadptr2.
26692
26693 2008-03-09  Bruno Haible  <bruno@clisp.org>
26694
26695         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
26696         Report and solution by Simon Josefsson.
26697
26698 2008-03-06  Bruno Haible  <bruno@clisp.org>
26699
26700         Make fflush after ungetc work on BSD platforms.
26701         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
26702         * tests/test-fflush2.c: New file.
26703         * tests/test-fflush2.sh: New file.
26704         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
26705         tests/test-fflush2.c.
26706         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
26707         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
26708
26709 2008-03-06  Eric Blake  <ebb9@byu.net>
26710
26711         Likewise for ftello.
26712         * modules/ftello (Dependencies): Add extensions.
26713         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
26714
26715 2008-03-06  Bruno Haible  <bruno@clisp.org>
26716
26717         * modules/fseeko (Dependencies): Add extensions.
26718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
26719         Needed on glibc systems.
26720
26721 2008-03-06  Bruno Haible  <bruno@clisp.org>
26722
26723         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
26724         email address.
26725         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26726
26727 2008-03-06  Bruno Haible  <bruno@clisp.org>
26728
26729         * users.txt: Add libgnupdf.
26730
26731 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26732
26733         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
26734         (Header File Substitutes, Function Substitutes,
26735         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
26736         (Build robot for gnulib): Fix typo.
26737
26738 2008-03-06  Bruno Haible  <bruno@clisp.org>
26739
26740         * doc/gnulib-tool.texi (VCS Issues): Small updates.
26741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26742
26743 2008-03-06  Bruno Haible  <bruno@clisp.org>
26744
26745         * doc/func.texi: New file, extracted from doc/gnulib.texi.
26746         * doc/gnulib.texi: Include it.
26747
26748 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26749
26750         * modules/func (License): Change license to unlimited; there was
26751         no LGPL parts in the module anyway.
26752
26753 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26754
26755         * modules/__func__: Renamed to modules/func.
26756         * modules/__func__-tests: Renamed to modules/func-tests.
26757         * tests/test-__func__.c: Renamed to tests/test-func.c.
26758         * m4/__func__.m4: Renamed to m4/func.m4.
26759         * doc/gnulib.texi (__func__): Section renamed to func.
26760         Suggested by Eric Blake <ebb9@byu.net>.
26761
26762 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26763
26764         * doc/gnulib.texi (__func__): Use C99 terminology when talking
26765         about __func__.  Make example self-contained.  Suggested by Eric
26766         Blake <ebb9@byu.net>.
26767
26768         * tests/test-__func__.c (main): Avoid extraneous () around __func.
26769         Suggested by Eric Blake <ebb9@byu.net>.
26770
26771 2008-03-06  Simon Josefsson  <simon@josefsson.org>
26772
26773         * modules/__func__: New file.
26774         * modules/__func__-tests: New file.
26775         * tests/test-__func__.c: New file.
26776         * m4/__func__.m4: New file.
26777         * doc/gnulib.texi (__func__): Document __func__ module.
26778
26779 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26780
26781         * modules/byteswap (License): Re-license as LGPLv2+.
26782
26783 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26784
26785         * doc/Makefile: Add pdf target.
26786
26787 2008-03-05  Simon Josefsson  <simon@josefsson.org>
26788
26789         * modules/inline (License): Use 'unlimited', since there are only
26790         *.m4 files in this module.
26791
26792 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26793             Bruno Haible  <bruno@clisp.org>
26794
26795         Add support for HP C 7.1 on OpenVMS 8.3.
26796         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
26797
26798 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
26799
26800         Update VMS specifics.
26801         * lib/getopt.c [VMS]: Remove include of unixlib.h.
26802
26803 2008-03-02  Jim Meyering  <meyering@redhat.com>
26804
26805         Remove the last dependency on the "free" module.
26806         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
26807         Reported by Bob Proulx.
26808
26809         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
26810
26811         Remove useless "if" tests before free.  Deprecate "free" module.
26812         * doc/posix-functions/free.texi: Mention that this
26813         module is no longer useful.
26814         * modules/free (Notice): Say this module is obsolete.
26815         * modules/readutmp (Depends-on): Remove free.
26816         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
26817         * lib/putenv.c (putenv): Likewise.
26818         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
26819         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
26820         * tests/test-c-strcasestr.c (main): Likewise.
26821         * tests/test-c-strstr.c (main): Likewise.
26822         * tests/test-mbscasestr1.c (main): Likewise.
26823         * tests/test-mbscasestr2.c (main): Likewise.
26824         * tests/test-mbsstr1.c (main): Likewise.
26825         * tests/test-mbsstr2.c (main): Likewise.
26826         * tests/test-memmem.c (main): Likewise.
26827         * tests/test-strcasestr.c (main): Likewise.
26828         * tests/test-striconv.c (main): Likewise.
26829         * tests/test-striconveh.c (main): Likewise.
26830         * tests/test-striconveha.c (main): Likewise.
26831         * tests/test-strstr.c (main): Likewise.
26832
26833         * build-aux/git-version-gen: Adjust a comment and the Usage string.
26834
26835         bootstrap: sync from coreutils again
26836         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
26837
26838 2008-03-01  Jim Meyering  <meyering@redhat.com>
26839
26840         bootstrap: sync from coreutils
26841         * build-aux/bootstrap (update_po_files): Copy a .po file into place
26842         also when the target doesn't exist.
26843
26844 2008-03-01  Eric Blake  <ebb9@byu.net>
26845
26846         Fix bugs in last patch.
26847         * lib/memchr2.c (memchr2): Fix typo.
26848         * tests/test-memchr2.c: Test previous bug, and don't use GNU
26849         extension.
26850         Reported by Bruce Korb.
26851
26852         New module 'memchr2'.
26853         * modules/memchr2: New file.
26854         * modules/memchr2-tests: Likewise.
26855         * lib/memchr2.h: Likewise.
26856         * lib/memchr2.c: Likewise, based on memchr.c.
26857         * tests/test-memchr2.c: New test.
26858         * MODULES.html.sh (String handling): Add memchr2.
26859
26860 2008-02-29  Bruno Haible  <bruno@clisp.org>
26861
26862         * modules/freadseek-tests: New file.
26863         * tests/test-freadseek.sh: New file.
26864         * tests/test-freadseek.c: New file.
26865
26866         New module 'freadseek'.
26867         * modules/freadseek: New file.
26868         * lib/freadseek.h: New file.
26869         * lib/freadseek.c: New file.
26870         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
26871
26872 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26873
26874         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
26875         wydawca.
26876
26877         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
26878         program_invocation_name and program_invocation_short_name are
26879         present.
26880
26881 2008-02-28  Bruno Haible  <bruno@clisp.org>
26882
26883         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
26884         * tests/test-freadptr.sh: Also test non-seekable stdin.
26885
26886 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
26887
26888         * build-aux/bootstrap (source_base, m4_base)
26889         (doc_base, tests_base): New variables.
26890         (gnulib_tool_options): Do not hardcode base directories, use
26891         the above variables instead.
26892
26893 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
26894
26895         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
26896
26897 2008-02-28  Bruno Haible  <bruno@clisp.org>
26898
26899         * modules/freadptr-tests: New file.
26900         * tests/test-freadptr.sh: New file.
26901         * tests/test-freadptr.c: New file.
26902
26903         New module 'freadptr'.
26904         * modules/freadptr: New file.
26905         * lib/freadptr.h: New file.
26906         * lib/freadptr.c: New file.
26907         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
26908
26909 2008-02-26  Karl Berry  <karl@freefriends.org>
26910
26911         Sync from Libtool:
26912         * libltdl/argz.c (argz_add, argz_count): New functions.
26913         * libltdl/argz.in.h: Declare them.
26914         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
26915
26916 2008-02-22  Bruno Haible  <bruno@clisp.org>
26917
26918         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
26919         is a pointer type.  Needed for HP-UX 10.
26920         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
26921         * doc/posix-functions/gmtime_r.texi: Likewise.
26922         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
26923
26924 2008-02-24  Bruno Haible  <bruno@clisp.org>
26925
26926         * modules/environ-tests: New file.
26927         * tests/test-environ.c: New file.
26928
26929         New module 'environ'.
26930         * modules/environ: New file.
26931         * lib/unistd.in.h (environ): New declaration.
26932         * m4/environ.m4: New file.
26933         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
26934         after use.
26935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
26936         HAVE_DECL_ENVIRON.
26937         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
26938         HAVE_DECL_ENVIRON.
26939         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
26940         wrong claim that 'environ' is missing on some systems.
26941         * modules/execute (Depends-on): Add environ.
26942         * lib/execute.c (environ): Remove fallback declaration.
26943         * modules/pipe (Depends-on): Add environ.
26944         * lib/pipe.c (environ): Remove fallback declaration.
26945         * modules/setenv (Depends-on): Add environ.
26946         * lib/setenv.c (environ): Remove fallback declaration.
26947         * modules/unsetenv (Depends-on): Add environ.
26948         * lib/unsetenv.c (environ): Remove fallback declaration.
26949         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
26950         m4/environ.m4.
26951         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
26952         (gl_PREREQ_UNSETENV): Likewise.
26953
26954 2008-02-24  Bruno Haible  <bruno@clisp.org>
26955
26956         * doc/posix-functions/environ.texi: Document the MacOS X problem.
26957
26958 2008-02-20  Bob Proulx  <bob@proulx.com>
26959
26960         Enable use of older two part flavor 'git describe'.
26961         * build-aux/git-version-gen: If using the older two part flavor of
26962         git version then recreate the third part now present in the
26963         newer three part flavor of git describe.
26964
26965 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
26966
26967         * lib/fts.c (fts_build): Typo correction to comment.
26968
26969 2008-02-17  Bruno Haible  <bruno@clisp.org>
26970
26971         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
26972         generating no-op conflicts.
26973
26974 2008-02-17  Bruno Haible  <bruno@clisp.org>
26975
26976         Speed up by 10%.
26977         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
26978         result_entries, rather than an index-based loop.
26979
26980 2008-02-17  Bruno Haible  <bruno@clisp.org>
26981
26982         Speed up by 25%.
26983         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
26984         'hashcode_cached'.
26985         (entry_create): New function.
26986         (entry_hashcode): Use the cached hashcode if possible.
26987         (read_changelog_file, try_split_merged_entry): Use entry_create.
26988
26989 2008-02-17  Bruno Haible  <bruno@clisp.org>
26990
26991         Speed up from O(n^2) to O(n) for long ChangeLog files.
26992         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
26993         (read_changelog_file): Change implementation of entries_reversed list
26994         to rbtreehash.
26995         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
26996
26997 2008-02-17  Bruno Haible  <bruno@clisp.org>
26998
26999         New option --split-merged-entry.
27000         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27001         (find_paragraph_end, try_split_merged_entry): New functions.
27002         (long_options): Add option --split-merged-entry.
27003         (usage): Document option --split-merged-entry.
27004         (main): Implement option --split-merged-entry.
27005         Reported by Eric Blake.
27006
27007 2008-02-17  Bruno Haible  <bruno@clisp.org>
27008
27009         * lib/git-merge-changelog.c: Include c-strstr.h.
27010         (main): Support the "git pull --rebase" situation.
27011         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27012         Reported by Eric Blake.
27013
27014 2008-02-16  Eric Blake  <ebb9@byu.net>
27015
27016         Avoid doubling \ in common case of "c-maybe" quoting style.
27017         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27018         eliding outer quotes.
27019         * lib/quotearg.h: Document this.
27020         * tests/test-quotearg.c (result_strings, inputs, results_g)
27021         (flag_results, locale_results): Test it by adding a new string to
27022         each test group.
27023         (compare_strings): Test new string.
27024
27025 2008-02-13  Eric Blake  <ebb9@byu.net>
27026
27027         Avoid trigraph quoting in default output.
27028         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27029         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27030         unless explicitly requested.
27031         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27032
27033 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27034
27035         Don't rely on signed integer overflowing to negative value.
27036         * lib/getugroups.c (getugroups): Include <limits.h>.
27037         Instead, compare against INT_MAX, and increment only if the test passes.
27038
27039 2008-02-13  Jim Meyering  <meyering@redhat.com>
27040         and Eric Blake  <ebb9@byu.net>
27041
27042         Avoid shadowing warning and compile errors on Linux.
27043         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27044         forwarding macros on Linux.
27045         (dcgettext): Define a stub, for Linux.
27046         (results_g, main): Avoid warnings.
27047
27048 2008-02-12  Eric Blake  <ebb9@byu.net>
27049
27050         Silence warning in last patch.
27051         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27052
27053         Quotearg part 4: add tests, fix c-maybe colon quoting.
27054         * lib/quotearg.h: Improve documentation.
27055         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27056         escapes when adding outer quotes.  When quoting trigraphs, use
27057         valid C notation.  When quoting NUL, omit extra characters if next
27058         character is not digit.  Alter prototype.
27059         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27060         callers.
27061         * modules/quotearg-tests: New module.
27062         * tests/test-quotearg.c: New test.
27063
27064 2008-02-07  Eric Blake  <ebb9@byu.net>
27065
27066         Quotearg part 3: add flag to control outer quote elision.
27067         * lib/quotearg.h (c_maybe_quoting_style): New style.
27068         (enum quoting_flags): Better documentation of flags.
27069         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27070         c-maybe style.
27071         (quotearg_buffer_restyled): Handle new flag to elide outer
27072         quotes.
27073
27074         Quotearg part 2: add flag that can control NUL elision.
27075         * lib/quotearg.h (set_quoting_flags): New prototype.
27076         * lib/quotearg.c (struct quoting_options): Add flag field.
27077         (set_quoting_flags): New function.
27078         (quotearg_buffer_restyled): Add flags parameter.
27079         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27080         (quotearg_n_options): Set the flag, since length cannot be
27081         returned.
27082         (quoting_options_from_style): Default flags correctly.
27083
27084         Quotearg part 1: more wrappers, restore quotearg_char state.
27085         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27086         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27087         (quotearg_colon_mem): New wrappers.
27088         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27089         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27090         functions.
27091         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27092         (quotearg_colon_mem): New functions.
27093
27094 2008-02-11  Bruno Haible  <bruno@clisp.org>
27095
27096         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27097         library in the current directory: it does not work with parallel make.
27098         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27099
27100 2008-02-11  Bruno Haible  <bruno@clisp.org>
27101
27102         * .gitattributes: New file.
27103
27104 2008-02-11  Jim Meyering  <meyering@redhat.com>
27105
27106         useless-if-before-free: Fix reversed exit values.
27107         * build-aux/useless-if-before-free: Use correct values
27108         for EXIT_MATCH and EXIT_NO_MATCH.
27109
27110         * build-aux/useless-if-before-free: Close stdout carefully.
27111
27112 2008-02-10  Bruno Haible  <bruno@clisp.org>
27113
27114         New module 'git-merge-changelog'.
27115         * modules/git-merge-changelog: New file.
27116         * lib/git-merge-changelog.c: New file.
27117
27118 2008-02-10  Jim Meyering  <meyering@redhat.com>
27119
27120         useless-if-before-free: New option: --list (-l).
27121
27122         useless-if-before-free: Don't exit immediately upon open failure.
27123         * build-aux/useless-if-before-free: Exit 2 for errors.
27124         Upon failure to open a file, don't exit immediately.
27125         Rather, just warn and continue with any remaining files.
27126
27127 2008-02-10  Bruno Haible  <bruno@clisp.org>
27128
27129         New abstract list operation 'node_set_value'.
27130         * lib/gl_list.h (gl_list_node_set_value): New function.
27131         (struct gl_list_implementation): New field node_set_value.
27132         * lib/gl_list.c (gl_list_node_set_value): New function.
27133         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27134         (gl_array_list_implementation): Update.
27135         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27136         (gl_carray_list_implementation): Update.
27137         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27138         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27139         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27140         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27141         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27142         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27143         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27144         Update.
27145         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27146         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27147         (gl_sublist_list_implementation): Update.
27148
27149 2008-02-10  Bruno Haible  <bruno@clisp.org>
27150
27151         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27152         Needed when ELEMENT is #defined to 'some_type *'.
27153
27154 2008-02-10  Jim Meyering  <meyering@redhat.com>
27155
27156         New script and module: useless-if-before-free
27157         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27158         * build-aux/useless-if-before-free: New file.
27159         * modules/useless-if-before-free: New file.
27160
27161         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27162
27163         xstrtol_error: Fix typo.
27164         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27165         s/exit_failure/exit_status/.
27166
27167 2008-02-09  Jim Meyering  <meyering@redhat.com>
27168
27169         New script and module: gitlog-to-changelog
27170         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27171         * modules/gitlog-to-changelog: New file.
27172         * build-aux/gitlog-to-changelog: New file.
27173
27174 2008-02-08  Jim Meyering  <meyering@redhat.com>
27175
27176         Avoid two "parameter unused" warnings.
27177         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27178         Mark "st" as used.
27179
27180         Use "git COMMAND", not "git-COMMAND".
27181         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27182         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27183         * build-aux/git-version-gen: Use "git status", not "git-status".
27184
27185 2008-02-07  Bruno Haible  <bruno@clisp.org>
27186
27187         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27188         Avoids a crash on Windows Vista.
27189         Reported by Adam Strzelecki <ono@java.pl> via
27190         Simon Josefsson <simon@josefsson.org>.
27191
27192 2008-02-06  Bruno Haible  <bruno@clisp.org>
27193
27194         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27195         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27196         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27198         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27199         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27200         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27201         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27202         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27209         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27210         left-adjust flag.
27211         * tests/test-snprintf-posix.h (test_function): Likewise.
27212         * tests/test-sprintf-posix.h (test_function): Likewise.
27213         * tests/test-vasprintf-posix.c (test_function): Likewise.
27214         * doc/posix-functions/fprintf.texi: Update.
27215         * doc/posix-functions/printf.texi: Update.
27216         * doc/posix-functions/snprintf.texi: Update.
27217         * doc/posix-functions/sprintf.texi: Update.
27218         * doc/posix-functions/vfprintf.texi: Update.
27219         * doc/posix-functions/vprintf.texi: Update.
27220         * doc/posix-functions/vsnprintf.texi: Update.
27221         * doc/posix-functions/vsprintf.texi: Update.
27222         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27223
27224 2008-02-06  Bruno Haible  <bruno@clisp.org>
27225
27226         Fix bug introduced on 2008-01-26.
27227         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27228
27229 2008-02-06  Bruno Haible  <bruno@clisp.org>
27230
27231         Fix bug introduced on 2007-06-10.
27232         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27233         !NEED_PRINTF_FLAG_ZERO.
27234
27235 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27236
27237         getloadavg: use libperfstat on AIX5
27238         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27239
27240 2008-02-03  Bruno Haible  <bruno@clisp.org>
27241
27242         * lib/diffseq.h: Add comments about required #includes.
27243         Reported by Michael Biggs <gnulib@doubleplum.net>.
27244
27245 2008-02-01  Bruno Haible  <bruno@clisp.org>
27246
27247         * users.txt: Add gnuit.
27248
27249 2008-01-31  Bruno Haible  <bruno@clisp.org>
27250
27251         * lib/md4.c (set_uint32): Mark as inline.
27252         * lib/md5.c (set_uint32): Likewise.
27253         * lib/sha1.c (set_uint32): Likewise.
27254         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27255         * m4/md5.m4 (gl_MD5): Likewise.
27256         * m4/sha1.m4 (gl_SHA1): Likewise.
27257
27258 2008-01-31  Jim Meyering  <meyering@redhat.com>
27259
27260         Use "sizeof VAR", rather than a literal "4".
27261         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27262         * lib/md4.c (md4_read_ctx): Likewise.
27263         * lib/sha1.c (sha1_read_ctx): Likewise.
27264
27265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27266
27267         * tests/test-sha1.c: New file, based on test-md5.c.
27268
27269         * modules/crypto/sha1-tests: New file.
27270
27271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27272
27273         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27274
27275 2008-01-31  Jim Meyering  <meyering@redhat.com>
27276
27277         Prefer "sizeof v" over the equivalent "4".
27278         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27279         * lib/md5.c (set_uint32): Likewise.
27280         * lib/sha1.c (set_uint32): Likewise.
27281
27282 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27283
27284         * lib/sha1.c (set_uint32): Mark function as static.
27285
27286 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27287
27288         md2: clarify comments to say that alignment is not required.
27289         * lib/md2.h: Remove warning about alignment in comment.
27290         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27291         never been required.
27292
27293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27294
27295         md4: adapt alignment constraint fix from sha1.
27296         * lib/md4.c (set_uint32): New function, from sha1.c
27297         (md4_read_ctx): Use it.
27298         (md4_finish_ctx): Doc fix.
27299         * lib/md4.h: Doc fix.
27300
27301 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27302
27303         md5: adapt alignment constraint fix from sha1.
27304         * lib/md5.c (set_uint32): New function, from sha1.c
27305         (md5_read_ctx): Use it.
27306         (md5_finish_ctx): Doc fix.
27307         * lib/md5.h: Doc fix.
27308
27309 2008-01-30  Peter Palfrader  <weasel@debian.org>
27310
27311         sha1: remove the result buffer alignment constraint
27312         * lib/sha1.c (set_uint32): New function.
27313         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27314         constraint.
27315         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27316         * lib/sha1.h: Likewise.
27317
27318 2008-01-30  Andreas Schwab  <schwab@suse.de>
27319             Bruno Haible  <bruno@clisp.org>
27320
27321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27322         correct definition of LDBL_MIN_EXP.
27323
27324 2008-01-30  Karl Berry  <karl@gnu.org>
27325
27326         * config/srclist-update: try to preserve x bit on updates.
27327         * config/srclistvars.sh: update for karl.
27328
27329 2008-01-29  Jim Meyering  <meyering@redhat.com>
27330
27331         vasnprintf.c: Avoid warning about unused label
27332         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27333         "overflow" label definition and associated code with the
27334         same cpp condition that guards the sole use of that label.
27335
27336 2008-01-26  Bruno Haible  <bruno@clisp.org>
27337
27338         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27339         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27340         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27341         * lib/isnanl-nolibm.h (isnanl): Likewise.
27342         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27343
27344 2008-01-26  Bruno Haible  <bruno@clisp.org>
27345
27346         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27347         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27348
27349 2008-01-26  Bruno Haible  <bruno@clisp.org>
27350
27351         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27352         GCC >= 4.0 built-in.
27353         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27354
27355 2008-01-26  Bruno Haible  <bruno@clisp.org>
27356
27357         Rename isnan, applicable to 'double' only, to isnand.
27358         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27359         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27360         (configure.ac): Update.
27361         (Include): Replace "isnan.h" with "isnand.h".
27362         * m4/isnand.m4: Renamed from m4/isnan.m4.
27363         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27364         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27365         instead of isnan.c.
27366         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27367         instead of HAVE_ISNAN_IN_LIBC.
27368         (isnand): Renamed from isnan.
27369         * lib/isnand.c: New file.
27370         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27371         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27372         (Makefile.am): Update.
27373         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27374         Include isnand.h instead of isnan.h.
27375         (main): Test isnand instead of isnan.
27376         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27377         isnan-nolibm.
27378         * modules/frexp (Depends-on): Likewise.
27379         * modules/frexp-tests (Depends-on): Likewise.
27380         * modules/frexp-nolibm (Depends-on): Likewise.
27381         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27382         * modules/isfinite (Depends-on): Likewise.
27383         * modules/round-tests (Depends-on): Likewise.
27384         * modules/signbit (Depends-on): Likewise.
27385         * modules/signbit-tests (Depends-on): Likewise.
27386         * modules/snprintf-posix (Depends-on): Likewise.
27387         * modules/sprintf-posix (Depends-on): Likewise.
27388         * modules/trunc-tests (Depends-on): Likewise.
27389         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27390         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27392         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27394         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27395         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27396         * modules/vasnprintf-posix (Depends-on): Likewise.
27397         * modules/vasprintf-posix (Depends-on): Likewise.
27398         * modules/vfprintf-posix (Depends-on): Likewise.
27399         * modules/vsnprintf-posix (Depends-on): Likewise.
27400         * modules/vsprintf-posix (Depends-on): Likewise.
27401         * lib/frexp.c: Include isnand.h instead of isnan.h.
27402         (ISNAN): Set to isnand instead of isnan.
27403         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27404         (gl_isfinited): Use isnand instead of isnan.
27405         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27406         (gl_signbitd): Use isnand instead of isnan.
27407         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27408         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27409         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27410         (main): Use isnand instead of isnan.
27411         * tests/test-round1.c: Include isnand.h.
27412         (main): Use isnand instead of isnan.
27413         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27414         (ISNAN): Set to isnand instead of isnan.
27415         * tests/test-trunc1.c: Include isnand.h.
27416         (main): Use isnand instead of isnan.
27417         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27418         (equal): Use isnand instead of isnan.
27419         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27420         isnand-nolibm.
27421         * NEWS: Mention the change.
27422
27423 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27424             Bruno Haible  <bruno@clisp.org>
27425
27426         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27427         the GCC builtins for signbits are present and set
27428         REPLACE_SIGNBIT_USING_GCC if so.
27429         * lib/math.in.h (signbit): Define using GCC builtins if
27430         REPLACE_SIGNBIT_USING_GCC is set.
27431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27432         REPLACE_SIGNBIT_USING_GCC.
27433         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27434
27435 2008-01-25  Jim Meyering  <meyering@redhat.com>
27436
27437         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27438         * lib/poll.c: Include <config.h>, not "config.h".
27439         * tests/test-getaddrinfo.c: Likewise.
27440
27441 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27442
27443         * modules/sockets-tests: New file.
27444
27445 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27446
27447         * modules/sockets: New module, can be used to call WSA_Startup and
27448         WSA_Cleanup when needed.
27449
27450         * lib/sockets.h, lib/sockets.c: New files.
27451
27452         * m4/sockets.m4: New file.
27453
27454         * tests/test-sockets.c: New file.
27455
27456 2008-01-19  Bruno Haible  <bruno@clisp.org>
27457
27458         * doc/posix-headers: Renamed from doc/headers.
27459         * doc/posix-functions: Renamed from doc/functions.
27460         * doc/gnulib.texi: Update.
27461
27462 2008-01-19  Bruno Haible  <bruno@clisp.org>
27463
27464         * doc/glibc-functions/strcasestr.texi: Include contents of
27465         doc/functions/strcasestr.texi, fixing the list of platforms.
27466         * doc/functions/strcasestr.texi: Remove file.
27467
27468 2008-01-19  Bruno Haible  <bruno@clisp.org>
27469
27470         * doc/glibc-functions/memmem.texi: Include contents of
27471         doc/functions/memmem.texi.
27472         * doc/functions/memmem.texi: Remove file.
27473
27474 2008-01-18  Bruno Haible  <bruno@clisp.org>
27475
27476         * doc/glibc-functions/*.texi: New files.
27477         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27478         to use the new files.
27479
27480 2008-01-17  Bruno Haible  <bruno@clisp.org>
27481
27482         * tests/test-gethostname.c (main): Fix printf statement.
27483
27484 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27485
27486         * modules/gethostname-tests: New file.
27487
27488         * tests/test-gethostname.c: New file.
27489
27490 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27491
27492         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27493         used by the UNAME case.  Reported by Bruno Haible
27494         <bruno@clisp.org>.
27495
27496 2008-01-17  Eric Blake  <ebb9@byu.net>
27497
27498         Convert c-strcasestr to be more efficient.
27499         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27500         (Depends-on): Add c-strcase, remove malloca, strnlen.
27501         * tests/test-c-strcasestr.c (main): Enhance test.
27502         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27503
27504 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27505
27506         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27507         Use it in creating po/Makevars.
27508
27509 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27510
27511         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27512         Applications that requires it should initialize libgcrypt
27513         manually.
27514
27515 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27516
27517         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27518
27519 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27520
27521         Fix problem with getdate on mingw32 reported by Simon Josefsson
27522         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27523         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27524         tzname", when deciding whether to declare tzname.
27525         * lib/strftime.c (tzname): Likewise.
27526
27527 2008-01-15  Bruno Haible  <bruno@clisp.org>
27528
27529         Work around a MacOS X 10.5 bug in frexpl().
27530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27531         * doc/functions/frexpl.texi: Document the bug.
27532         Reported by Elias Pipping <pipping@gentoo.org>.
27533
27534 2008-01-14  Eric Blake  <ebb9@byu.net>
27535
27536         Touch up previous patch.
27537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27538         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27539
27540         Convert strcasestr module to use Two-Way algorithm.
27541         * modules/strcasestr-simple: New module, based on the old
27542         strcasestr, but with Two-Way rather than KMP.
27543         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27544         * lib/string.in.h (rpl_strcasestr): Declare.
27545         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27546         performance.
27547         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27548         * modules/string (Makefile.am): Support strcasestr.
27549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27550         * modules/strcasestr-tests (Depends-on): Check for alarm.
27551         * tests/test-strcasestr.c: Augment test.
27552         * lib/str-two-way.h: Clean up stray macro.
27553         * NEWS: Document new module.
27554         * MODULES.html.sh (string handling): Likewise.
27555         * doc/functions/strcasestr.texi: New file.
27556         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27557         here, since it is not a POSIX function.
27558
27559 2008-01-14  Colin Watson  <cjwatson@debian.org>
27560             Bruno Haible  <bruno@clisp.org>
27561
27562         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27563         works fine; if not, set REPLACE_STRSIGNAL.
27564         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27566         REPLACE_STRSIGNAL.
27567         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27568         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27569         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27570
27571 2008-01-14  Bruno Haible  <bruno@clisp.org>
27572
27573         * modules/strsignal (Include): Change to <string.h>.
27574
27575 2008-01-14  Colin Watson  <cjwatson@debian.org>
27576
27577         * modules/argp (Notice): Add a notice recommending to change
27578         XGETTEXT_OPTIONS.
27579         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27580
27581 2008-01-13  Colin Watson  <cjwatson@debian.org>
27582
27583         * modules/strsignal-tests: New file.
27584         * tests/test-strsignal.c: New file.
27585
27586         * lib/strsignal.c: New file, from glibc with modifications.
27587         * lib/siglist.h: New file, from glibc with modifications.
27588         * lib/string.in.h (strsignal): New declaration.
27589         * m4/strsignal.m4: New file.
27590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27591         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27592         * modules/strsignal: New file.
27593         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27594         HAVE_DECL_STRSIGNAL.
27595
27596 2008-01-13  Bruno Haible  <bruno@clisp.org>
27597
27598         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27599         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27600         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27601         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27602
27603 2008-01-13  Bruno Haible  <bruno@clisp.org>
27604
27605         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27606         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27607         * lib/argp.h (__attribute__): Likewise.
27608         * lib/c-stack.c (__attribute__): Likewise.
27609         * lib/error.h (__attribute__): Likewise.
27610         * lib/fts.c (__attribute__): Likewise.
27611         * lib/openat.h (__attribute__): Likewise.
27612         * lib/stdio.in.h (__attribute__): Likewise.
27613         * lib/string.in.h (__attribute__): Likewise.
27614         * lib/utimens.c (__attribute__): Likewise.
27615         * lib/vasnprintf.h (__attribute__): Likewise.
27616         * lib/xalloc.h (__attribute__): Likewise.
27617         * lib/xprintf.h (__attribute__): Likewise.
27618         * lib/xstrtol.h (__attribute__): Likewise.
27619         * lib/xvasprintf.h (__attribute__): Likewise.
27620
27621 2008-01-12  Bruno Haible  <bruno@clisp.org>
27622
27623         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
27624         * doc/glibc-headers/a.out.texi: New file.
27625         * doc/glibc-headers/aliases.texi: New file.
27626         * doc/glibc-headers/alloca.texi: New file.
27627         * doc/glibc-headers/ar.texi: New file.
27628         * doc/glibc-headers/argp.texi: New file.
27629         * doc/glibc-headers/argz.texi: New file.
27630         * doc/glibc-headers/byteswap.texi: New file.
27631         * doc/glibc-headers/crypt.texi: New file.
27632         * doc/glibc-headers/endian.texi: New file.
27633         * doc/glibc-headers/envz.texi: New file.
27634         * doc/glibc-headers/err.texi: New file.
27635         * doc/glibc-headers/error.texi: New file.
27636         * doc/glibc-headers/execinfo.texi: New file.
27637         * doc/glibc-headers/fpu_control.texi: New file.
27638         * doc/glibc-headers/fstab.texi: New file.
27639         * doc/glibc-headers/fts.texi: New file.
27640         * doc/glibc-headers/getopt.texi: New file.
27641         * doc/glibc-headers/ieee754.texi: New file.
27642         * doc/glibc-headers/ifaddrs.texi: New file.
27643         * doc/glibc-headers/libintl.texi: New file.
27644         * doc/glibc-headers/mcheck.texi: New file.
27645         * doc/glibc-headers/mntent.texi: New file.
27646         * doc/glibc-headers/obstack.texi: New file.
27647         * doc/glibc-headers/paths.texi: New file.
27648         * doc/glibc-headers/printf.texi: New file.
27649         * doc/glibc-headers/pty.texi: New file.
27650         * doc/glibc-headers/resolv.texi: New file.
27651         * doc/glibc-headers/shadow.texi: New file.
27652         * doc/glibc-headers/sysexits.texi: New file.
27653         * doc/glibc-headers/ttyent.texi: New file.
27654
27655 2008-01-12  Jim Meyering  <meyering@redhat.com>
27656
27657         announce-gen: emit Gnulib's git-based version string.
27658         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
27659         New option --gnulib-version=V, where V is expected to be
27660         the output of running git describe in the gnulib directory.
27661         (get_tool_versions): Request feedback on xdelta.  I suspect it's
27662         not useful, and plan to stop publishing an xdelta file with each
27663         coreutils release.
27664
27665         * build-aux/announce-gen: Also check for lzma-compressed files.
27666
27667 2008-01-11  Bruno Haible  <bruno@clisp.org>
27668
27669         * tests/test-memmem.c (main): Increase maximum allowed time.
27670         * tests/test-strstr.c (main): Likewise.
27671
27672 2008-01-11  Bruno Haible  <bruno@clisp.org>
27673
27674         * doc/functions/memmem.texi: Add more precisions about platforms.
27675         * doc/functions/strstr.texi: Likewise.
27676
27677 2008-01-10  Eric Blake  <ebb9@byu.net>
27678
27679         * m4/strstr.m4: Delete cruft from copy-n-paste.
27680         Reported by Bruno Haible.
27681
27682 2008-01-10  Bruno Haible  <bruno@clisp.org>
27683
27684         Make c-strstr rely on strstr.
27685         * lib/c-strstr.c: Don't include str-kmp.h.
27686         (c_strstr): Define in terms of strstr.
27687         * modules/c-strstr (Files): Remove lib/str-kmp.h.
27688         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
27689
27690 2008-01-10  Bruno Haible  <bruno@clisp.org>
27691
27692         * doc/gnulib.texi (String Functions in C Locale): New section.
27693         * doc/c-ctype.texi: New file.
27694         * doc/c-strcase.texi: New file.
27695         * doc/c-strcaseeq.texi: New file.
27696         * doc/c-strcasestr.texi: New file.
27697         * doc/c-strstr.texi: New file.
27698         * doc/c-strtod.texi: New file.
27699         * doc/c-strtold.texi: New file.
27700
27701 2008-01-10  Eric Blake  <ebb9@byu.net>
27702
27703         * lib/relocatable.h: Fix a comment.
27704
27705 2008-01-10  Eric Blake  <ebb9@byu.net>
27706
27707         Share two-way algorithm.
27708         * lib/str-two-way.h: New file, merged from...
27709         * lib/memmem.c: ...here...
27710         * lib/strstr.c: ...and here.
27711         * modules/memmem (Files): Use it.
27712         * modules/strstr (Files): Likewise.
27713
27714         Avoid quadratic strstr implementations.
27715         * lib/strstr.c: New file.
27716         * m4/strstr.m4: Likewise.
27717         * modules/strstr: Likewise.
27718         * modules/strstr-tests: Likewise.
27719         * tests/test-strstr.c: Likewise.
27720         * lib/string.in.h (rpl_strstr): Declare.
27721         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
27722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
27723         * modules/string (Makefile.am): Likewise.
27724         * MODULES.html.sh (string handling): Mention new module.
27725         * doc/functions/strstr.texi (strstr): Document the bug.
27726
27727 2008-01-10  Bruno Haible  <bruno@clisp.org>
27728
27729         * lib/relocatable.h (relocate): State whether result is freshly
27730         allocated or not.
27731         * lib/relocatable.c (relocate): Return a freshly allocated string
27732         instead of a pointer to a privately held string.
27733         Reported by Sylvain Beucler <beuc@gnu.org>.
27734
27735 2008-01-10  Colin Watson  <cjwatson@debian.org>
27736
27737         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
27738         s/S_ISNLK/S_ISLNK/.
27739
27740 2008-01-09  Bruno Haible  <bruno@clisp.org>
27741
27742         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
27743         and other files.
27744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
27745         if it's only a guess.
27746         * modules/memmem: Simplify by depending on memmem-simple.
27747
27748 2008-01-09  Bruno Haible  <bruno@clisp.org>
27749
27750         Work around OpenBSD 4.0 tdelete() bug.
27751         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
27752         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
27753         macros and don't redefine the enum values.
27754         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
27755         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
27756         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
27757
27758 2008-01-09  Bruno Haible  <bruno@clisp.org>
27759
27760         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
27761         (main): Don't perform the tests if setlocale did not install a UTF-8
27762         locale. Needed on OpenBSD 4.0.
27763         * modules/wcwidth-tests (Depends-on): Add localcharset.
27764
27765 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
27766
27767         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
27768         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
27769         * NEWS: announce this.
27770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
27771
27772 2008-01-09  Simon Josefsson  <simon@josefsson.org>
27773         and Eric Blake  <ebb9@byu.net>
27774
27775         Add memmem-simple module.
27776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
27777         (gl_FUNC_MEMMEM): Separate performance from presence checks.
27778         * modules/memmem-simple: New file.
27779         * modules/memmem (Description): Tweak.
27780         * MODULES.html.sh (string handling): Mention new module.
27781         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
27782         addressed by memmem-simple.
27783         * NEWS: Document the difference.
27784
27785 2008-01-09  Eric Blake  <ebb9@byu.net>
27786
27787         Give gcc some memmem optimization hints.
27788         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
27789         (strcasestr): Declare as pure.
27790         * modules/memmem (Maintainer): Claim my implementation.
27791
27792 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27793
27794         Support AIX 6.1 and higher.
27795         * build-aux/config.libpath: Likewise.
27796         * build-aux/config.rpath: Likewise.
27797
27798 2008-01-08  Jim Meyering  <meyering@redhat.com>
27799             Bruno Haible  <bruno@clisp.org>
27800
27801         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
27802         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
27803         Reported by Peter Fales in
27804         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
27805
27806 2008-01-08  Bruno Haible  <bruno@clisp.org>
27807
27808         * modules/unictype/category-of (Depends-on): Add
27809         unictype/category-none.
27810         * modules/unictype/category-and-tests (Depends-on): Add
27811         unictype/category-{L,N,Lu,Nd}.
27812         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
27813         * modules/unictype/category-or-tests (Depends-on): Add
27814         unictype/category-{L,N}.
27815         * modules/unictype/category-name-tests (Depends-on): Add
27816         unictype/category-{Z,Nl}.
27817         Reported by Simon Josefsson.
27818
27819 2008-01-08  Bruno Haible  <bruno@clisp.org>
27820
27821         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
27822         convention better.
27823         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
27824         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
27825         Reported by Peter Miller <millerp@canb.auug.org.au>.
27826
27827 2008-01-08  Eric Blake  <ebb9@byu.net>
27828
27829         Rewrite memmem to guarantee linear complexity without malloc.
27830         * lib/memmem.c (memmem): Use Two-Way rather than
27831         Knuth-Morris-Pratt, to allow O(1) space usage.
27832         (critical_factorization, two_way_short_needle)
27833         (two_way_long_needle): New functions.
27834         (knuth_morris_pratt): Delete.
27835         * modules/memmem (Depends-on): No longer need malloca or stdbool.
27836         Add stdint.
27837         * tests/test-memmem.c (main): Add tests for periodic needle and
27838         sublinear performance.
27839         * doc/functions/memmem.texi (memmem): Document other deficiencies
27840         in cygwin and older glibc.
27841
27842 2008-01-08  Bruno Haible  <bruno@clisp.org>
27843
27844         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
27845         augmentation.
27846
27847 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
27848
27849         Add a configure time option: --disable-acl.
27850         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
27851         AC_ARG_ENABLE(acl).
27852
27853 2008-01-06  Simon Josefsson  <simon@josefsson.org>
27854
27855         * tests/test-localename.c: Don't include obsolete "setenv.h".
27856
27857         * modules/localename-tests (Depends-on): Need unsetenv.
27858
27859 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27860
27861         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
27862
27863 2008-01-06  Colin Watson  <cjwatson@debian.org>
27864
27865         * users.txt: Add man-db.
27866
27867 2008-01-07  Bruno Haible  <bruno@clisp.org>
27868
27869         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
27870         previous section name.
27871
27872 2008-01-07  Bruno Haible  <bruno@clisp.org>
27873
27874         * lib/progname.c (set_program_name): Don't strip off a leading
27875         "lt-" prefix outside a .libs directory.
27876         Suggested by Paul Eggert.
27877
27878 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
27879             Bruno Haible  <bruno@clisp.org>
27880
27881         Improve memory cleanup in 'relocatable' module.
27882         * lib/relocatable.h (compute_curr_prefix): Change return type to
27883         'char *'.
27884         * lib/relocatable.c (compute_curr_prefix): Change return type to
27885         'char *'. Free curr_installdir after use.
27886         (relocate): Free curr_prefix_better after use.
27887         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
27888
27889 2008-01-01  Bruno Haible  <bruno@clisp.org>
27890
27891         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
27892         failure on older glibc systems.
27893         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27894
27895 2008-01-05  Eric Blake  <ebb9@byu.net>
27896
27897         Avoid quadratic system memmem.
27898         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
27899         Reported by Ralf Wildenhues.
27900
27901         Fix memmem test for mingw.
27902         * modules/memmem-tests (configure.ac): Check for alarm.
27903         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
27904         it.
27905         * doc/functions/memmem.texi: New file.
27906         * doc/gnulib.texi (Function Substitutes): Add memmem.
27907         Reported by Bruno Haible.
27908
27909 2008-01-04  Bruno Haible  <bruno@clisp.org>
27910
27911         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
27912         Require gl_HEADER_STRINGS_H_DEFAULTS, not
27913         gl_HEADER_STRING_H_DEFAULTS.
27914
27915 2008-01-04  Eric Blake  <ebb9@byu.net>
27916
27917         Shorten duration of memmem test.
27918         * tests/test-memmem.c (main): Use alarm to declare failure if test
27919         is taking too long.
27920         Reported by Ralf Wildenhues.
27921
27922 2007-12-21  Simon Josefsson  <simon@josefsson.org>
27923
27924         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
27925         string, needed by strerror.
27926
27927 2008-01-03  Colin Watson  <cjwatson@debian.org>
27928             Bruno Haible  <bruno@clisp.org>
27929
27930         * doc/gnulib-tool.texi (Localization): New section.
27931
27932 2008-01-02  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
27935         variables to 'unsigned char *' type.
27936         Reported by Paul Eggert.
27937
27938 2008-01-02  Jim Meyering  <jim@meyering.net>
27939
27940         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
27941
27942 2007-12-31  Jim Meyering  <jim@meyering.net>
27943
27944         Avoid use of private FTS type name.
27945         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
27946
27947 2007-12-30  Karl Berry  <karl@gnu.org>
27948
27949         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
27950         work around defect in Texinfo and/or the standalone Info browser.
27951
27952 2007-12-30  Bruno Haible  <bruno@clisp.org>
27953
27954         Unify 5 copies of the KMP code.
27955         * lib/str-kmp.h: New file.
27956         * lib/c-strcasestr.c: Include str-kmp.h.
27957         (knuth_morris_pratt): Remove function.
27958         (c_strcasestr): Update.
27959         * lib/c-strstr.c: Include str-kmp.h.
27960         (knuth_morris_pratt): Remove function.
27961         (c_strcasestr): Update.
27962         * lib/mbscasestr.c: Include str-kmp.h.
27963         (knuth_morris_pratt_unibyte): Remove function.
27964         * lib/mbsstr.c: Include str-kmp.h.
27965         (knuth_morris_pratt_unibyte): Remove function.
27966         * lib/strcasestr.c: Include str-kmp.h.
27967         (knuth_morris_pratt): Remove function.
27968         (strcasestr): Update.
27969         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
27970         * modules/c-strstr (Files): Likewise.
27971         * modules/mbscasestr (Files): Likewise.
27972         * modules/mbsstr (Files): Likewise.
27973         * modules/strcasestr (Files): Likewise.
27974         Suggested by Paul Eggert.
27975
27976 2007-12-30  Bruno Haible  <bruno@clisp.org>
27977
27978         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
27979         defined.
27980
27981 2007-12-30  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/xmalloca.h: Include xalloc.h.
27984         (xnmalloca): New macro.
27985
27986 2007-12-30  Bruno Haible  <bruno@clisp.org>
27987
27988         * lib/malloca.h (nmalloca): New macro.
27989         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
27990         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
27991         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
27992         knuth_morris_pratt_multibyte): Likewise.
27993         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
27994         knuth_morris_pratt_multibyte): Likewise.
27995         * lib/memmem.c (knuth_morris_pratt): Likewise.
27996         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
27997
27998 2007-12-25  Bruno Haible  <bruno@clisp.org>
27999
28000         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28001         * lib/glob.c: Don't include openat.h.
28002         (link_exists2_p): Add back the code that deals with the
28003         !GLOB_ALTDIRFUNC case.
28004         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28005         let it do the filename concatenation.
28006         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28007         * modules/glob (Depends-on): Remove openat.
28008
28009 2007-12-31  Bruno Haible  <bruno@clisp.org>
28010
28011         * modules/dirfd (License): Change to LGPLv2+.
28012         Approved by Jim Meyering.
28013
28014 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28015
28016         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28017         when multiplying M by sizeof (size_t).
28018
28019 2007-12-10  Martin Lambers  <marlam@marlam.de>
28020
28021         Override getpagesize on mingw.
28022         * lib/getpagesize.c: New file.
28023         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28024         * modules/getpagesize (Files): Add lib/getpagesize.c.
28025         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28027         REPLACE_GETPAGESIZE.
28028         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28029
28030 2007-12-25  Bruno Haible  <bruno@clisp.org>
28031
28032         * modules/localcharset (Notice): New field.
28033         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28034         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28035
28036 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28037             Bruno Haible  <bruno@clisp.org>
28038
28039         Avoid using the syntax symbol() in formatted documentation.
28040         * MODULES.html.sh (func_module): When replacing symbol() with a
28041         hyperlink, remove the parentheses. Show an error if some remain.
28042         Recognize and render the '...' syntax.
28043         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28044         Rework. Add paragraph about GCC's inlining.
28045         * doc/alloca.texi: Likewise.
28046         * doc/error.texi: Remove parentheses from symbol reference.
28047         * doc/gnulib-intro.texi: Likewise.
28048         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28049         * modules/fnmatch (Description): Reword to say "the ... function".
28050         * modules/full-read (Description): Likewise.
28051         * modules/full-write (Description): Likewise.
28052         * modules/safe-read (Description): Likewise.
28053         * modules/safe-write (Description): Likewise.
28054         * modules/strchrnul (Description): Likewise.
28055         * modules/trim (Description): Likewise.
28056         * modules/error (Description): Remove parentheses from symbol
28057         references.
28058         * modules/verror (Description): Likewise.
28059         Reported by Karl Berry.
28060
28061 2007-12-25  Bruno Haible  <bruno@clisp.org>
28062
28063         Fixup after 2007-10-16 commit.
28064         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28065
28066 2007-12-24  Bruno Haible  <bruno@clisp.org>
28067
28068         Make --enable-relocatable work with DESTDIR.
28069         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28070         to compute installdir from destprog.
28071         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28072         also set the RELOC_DESTDIR variable.
28073         Reported by Левашев Иван <octagram@bluebottle.com>.
28074
28075 2007-12-24  Bruno Haible  <bruno@clisp.org>
28076
28077         Fix link error due to xalloc_die().
28078         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28079         of xreadlink.
28080         * lib/relocwrapper.c: Update comments.
28081         * build-aux/install-reloc: Remove xreadlink.c from file list.
28082         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28083         xreadlink.c.
28084         Reported by Левашев Иван <octagram@bluebottle.com>.
28085
28086 2007-12-24  Bruno Haible  <bruno@clisp.org>
28087
28088         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28089         * lib/setenv.h: Remove file.
28090         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28091         lib/setenv.h.
28092         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28093         (Depends-on): Add stdlib.
28094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28095         gl_FUNC_UNSETENV.
28096         (Include): Replace setenv.h with <stdlib.h>.
28097         * modules/unsetenv: New file.
28098         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28099         * lib/unsetenv.c: Include <stdlib.h> first.
28100         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28101         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28102         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28103         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28104         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28105         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28107         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28108         * doc/functions/unsetenv.texi: Update.
28109         * modules/xsetenv (Depends-on): Add unsetenv.
28110         * modules/getdate (Depends-on): Likewise.
28111         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28112         * lib/xsetenv.c: Don't include setenv.h.
28113         * lib/getdate.y: Likewise.
28114         * lib/relocwrapper.c: Likewise.
28115         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28116         (Depends-on): Add stdlib.
28117         * NEWS: Mention the changes.
28118         Reported by Левашев Иван <octagram@bluebottle.com>.
28119
28120 2007-12-23  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28123         indentation.
28124
28125 2007-12-23  Bruno Haible  <bruno@clisp.org>
28126
28127         * lib/c-strcasestr.c: Add more comments.
28128         * lib/c-strstr.c: Likewise.
28129         * lib/mbscasestr.c: Likewise.
28130         * lib/mbsstr.c: Likewise.
28131         * lib/strcasestr.c: Likewise.
28132         * lib/memmem.c: Likewise.
28133
28134 2007-12-23  Bruno Haible  <bruno@clisp.org>
28135
28136         * tests/test-memmem.c: Include <string.h> first.
28137
28138 2007-12-22  Bruno Haible  <bruno@clisp.org>
28139
28140         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28141         the contents of $testsbase.
28142         Reported by Ralf Wildenhues.
28143
28144 2007-12-22  Bruno Haible  <bruno@clisp.org>
28145
28146         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28147         two variables local_ldadd_before, local_ldadd_last.
28148
28149 2007-12-20  Eric Blake  <ebb9@byu.net>
28150
28151         Work around circular library issue when cross-compiling.
28152         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28153         that progname.o does not need to pull in rpl_memcmp.
28154
28155 2007-12-19  Eric Blake  <ebb9@byu.net>
28156
28157         Fix memmem to avoid O(n^2) worst-case complexity.
28158         * lib/memmem.c (knuth_morris_pratt): New function.
28159         (memmem): Use it if first few naive iterations fail.
28160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28161         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28162         * modules/memchr (License): Likewise.
28163         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28164         malloca.
28165         * tests/test-memmem.c: Rewrite, borrowing ideas from
28166         test-mbsstr1.c; the old version wouldn't even compile!
28167         * modules/memmem-tests: New file.
28168         * lib/string.in.h (rpl_memmem): Add declaration.
28169         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28171         REPLACE_MEMMEM.
28172
28173 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28174
28175         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28176         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28177         before any system include files, and undef after them all.  This
28178         should fix a problem on VMS reported by John E. Malmberg in
28179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28180
28181 2007-12-17  Eric Blake  <ebb9@byu.net>
28182
28183         Revert addition of verify, for BSD/OS.
28184         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28185         can't handle large files, for the sake of obsolete platforms.
28186         * modules/fseeko (Depends-on): Remove verify.
28187         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28188         * doc/functions/ftello.texi (ftello): Likewise.
28189         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28190         Reported by Larry Jones.
28191
28192 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28193
28194         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28195         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28196
28197 2007-12-17  Jim Meyering  <meyering@redhat.com>
28198
28199         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28200         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28201         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28202         * modules/getcwd (Depends-on): Add openat.
28203         Reported by Petr Salinger.
28204
28205 2007-12-17  Bruno Haible  <bruno@clisp.org>
28206
28207         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28208         avoid a segmentation fault of the configure test on x86_64 systems.
28209
28210 2007-12-15  Jim Meyering  <meyering@redhat.com>
28211
28212         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28213
28214 2007-12-13  Eric Blake  <ebb9@byu.net>
28215
28216         Another fseek test.
28217         * tests/test-fseek.c (main): Also test ungetc handling.
28218         * tests/test-fseeko.c (main): Likewise.
28219         * modules/fseeko (Depends-on): Add verify.
28220         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28221         large.
28222         Reported by Larry Jones.
28223
28224         Fix fseeko on mingw.
28225         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28226         seek.
28227
28228         Beef up fseek tests.
28229         * tests/test-fseek.c (main): Also test eof handling.
28230         * tests/test-fseeko.c (main): Likewise.
28231         Reported by Larry Jones.
28232
28233 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28234
28235         Fix fseeko on BSD-based platforms.
28236         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28237         successful seek.
28238
28239 2007-12-12  Eric Blake  <ebb9@byu.net>
28240
28241         Allow circular dependency of separate libtests.a
28242         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28243         when use_libtests.
28244
28245 2007-12-11  Eric Blake  <ebb9@byu.net>
28246
28247         Fix bug with -0.0L in previous patch.
28248         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28249         * tests/test-isnan.c (main): Also test on zeroes.
28250         * tests/test-isnanf.c (main): Likewise.
28251         * tests/test-isnanl.h (main): Likewise.
28252
28253         Detect pseudo-denormals on x86 even when cross-compiling.
28254         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28255         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28256         invalid bit patterns that happen to satisfy ==.
28257
28258         Avoid link failures with separate libtests.a.
28259         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28260         last, to satisfy circular dependencies.
28261
28262 2007-12-11  Eric Blake  <ebb9@byu.net>
28263         and Bruno Haible  <bruno@clisp.org>
28264
28265         Fix OpenBSD 4.0 <float.h> handling of long double.
28266         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28267         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28268         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28269
28270 2007-12-11  Jim Meyering  <meyering@redhat.com>
28271
28272         * users.txt: Add libvirt.
28273
28274         Support versions of autoconf prior to 2.59c.
28275         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28276         if it is not already defined.
28277
28278 2007-12-09  Bruno Haible  <bruno@clisp.org>
28279
28280         Let 'gnulib-tool --import' collect sources needed for the tests in
28281         tests/ rather than in lib/.
28282         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28283         argument. If true, add rules to generate libtests.a, and put libtests.a
28284         into $(LDADD). Consider source files in subdirectories and set
28285         uses_subdirs.
28286         (func_emit_initmacro_start, func_emit_initmacro_end,
28287         func_emit_initmacro_done): Pass all arguments explicitly.
28288         (func_import): Determine two module lists main_modules,
28289         testsrelated_modules. Determine use_libtests. Determine two variables
28290         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28291         instead of just sed_transform_lib_file. Determine two variables
28292         main_files and testsrelated_files. Compute 'files' as the union of
28293         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28294         func_add_or_update. In the generated gnulib-comp.m4, collect the
28295         object files for tests/ in different variables than those for lib/.
28296         Substitute LIBTESTS_LIBDEPS.
28297         (func_create_testdir): Combine the uses_subdirs results from
28298         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28299
28300 2007-12-09  Bruno Haible  <bruno@clisp.org>
28301
28302         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28303         the build-aux directory.
28304
28305 2007-12-09  Bruno Haible  <bruno@clisp.org>
28306
28307         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28308         introduced on 2006-09-09.
28309
28310 2007-12-07  Jim Meyering  <meyering@redhat.com>
28311
28312         Let these macros work also with autoconf-2.59.
28313         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28314         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28316
28317 2007-12-06  Jim Meyering  <meyering@redhat.com>
28318
28319         Avoid a configure-time syntax error in gl_FUNC_ACL.
28320         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28321         function in each branch, before testing the cache variable.
28322
28323 2007-12-04  Eric Blake  <ebb9@byu.net>
28324
28325         Make scripts executable.
28326         * build-aux/config.guess: Add execute permissions.
28327         * build-aux/config.sub: Likewise.
28328         * build-aux/gendocs.sh: Likewise.
28329
28330         Fix frexp on mingw.
28331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28332         cross-compiling.
28333         * doc/functions/frexp.texi (frexp): Document the bug.
28334
28335         Make cygwin fseeko check more reliable.
28336         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28337         version numbers, rather than unrelated feature check.
28338         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28339         * doc/functions/ftello.texi (ftello): Likewise.
28340         Reported by Bruno Haible.
28341
28342         * m4/strerror.m4: Bump version number.
28343
28344 2007-12-03  Bruno Haible  <bruno@clisp.org>
28345
28346         * doc/functions/mprotect.texi: Mention the mingw problem.
28347
28348 2007-12-03  Eric Blake  <ebb9@byu.net>
28349
28350         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28351         REPLACE_STRERROR is initialized before this macro.
28352
28353 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28354
28355         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28356         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28357         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28358         put -lsec in even for programs other than 'ls'.  This fixes a problem
28359         for gettext reported by Bruno Haible in
28360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28361         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28362         Add support for Solaris 10.  This isn't efficient, but should get the
28363         job done for now.
28364
28365 2007-12-03  James Youngman  <jay@gnu.org>
28366
28367         * doc/regexprops-generic.texi: change "an close-group" to "a
28368         close-group" and "illegal" to "not allowed".
28369
28370 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28371
28372         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28373         pr_byname.h. Needed for the rare case when the maintainer has done
28374         "make maintainer-clean" in the source directory and then attempts a
28375         build outside the source directory.
28376         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28377         scripts_byname.h.
28378
28379 2007-12-02  Martin Lambers <marlam@marlam.de>
28380             Bruno Haible  <bruno@clisp.org>
28381
28382         * lib/getpagesize.h: Remove file.
28383         * lib/unistd.in.h: Include declaration of getpagesize here.
28384         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28385         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28386         HAVE_SYS_PARAM_H.
28387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28388         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28389         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28390         (Depends-on): Add unistd.
28391         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28392         (Include): Use <unistd.h> instead of getpagesize.h.
28393         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28394         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28395         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28396         gl_GETPAGESIZE invocation, already handled by module dependency.
28397         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28398
28399 2007-12-02  Bruno Haible  <bruno@clisp.org>
28400
28401         * modules/strings-tests: New file.
28402         * tests/test-strings.c: New file.
28403
28404         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28405         * lib/strings.in.h: New file.
28406         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28407         * m4/strings_h.m4: New file.
28408         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28409         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28410         * modules/strings: New file.
28411         * modules/string (Makefile.am): Update.
28412         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28413         Reported by Karl Berry.
28414
28415 2007-12-01  Eric Blake  <ebb9@byu.net>
28416
28417         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28418         accomodate fix in cygwin 1.5.25.
28419
28420 2007-12-01  Jim Meyering  <meyering@redhat.com>
28421
28422         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28423         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28424         that would inhibit utf8-optimization of a regexp containing line-
28425         or buffer-anchors, e.g., `^', `$'.
28426
28427 2007-11-30  Bruno Haible  <bruno@clisp.org>
28428
28429         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28430         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28431         glthread_recursive_lock_init.
28432         * lib/lock.c (glthread_recursive_lock_init)
28433         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28434         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28435
28436 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28437
28438         New function qset_acl, like set_acl but with syscall semantics.
28439         * lib/acl.h (qset_acl): New decl.
28440         * lib/acl.c (qset_acl): New function.
28441         (set_acl): Use new function.  Use more-consistent diagnostics.
28442
28443 2007-11-28  Jim Meyering  <meyering@redhat.com>
28444
28445         * modules/physmem (License): Change from GPL to LGPLv2+.
28446
28447 2007-11-26  Bruno Haible  <bruno@clisp.org>
28448
28449         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28450         'long double' type has excess precision.
28451         Reported by Jim Meyering in
28452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28453
28454 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28455
28456         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28457         Sync from <http://gnu.org/licenses>.
28458         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28459         with license text from same location.
28460         * doc/maintain.texi, doc/standards.texi:  Sync from
28461         <http://savannah.gnu.org/projects/gnustandards>.
28462
28463 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
28464         and Jim Meyering  <meyering@redhat.com>
28465
28466         Adjust getdate' grammar to accept a slightly more regular language.
28467         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28468         Before, the former was rejected.
28469         * lib/getdate.y (digits_to_date_time): New function, factored
28470         out of ...
28471         (number): ...here.  Just call digits_to_date_time.
28472         (hybrid): New non-terminal to handle an <unsigned number,
28473         signed relative offset> sequence consistently.
28474
28475 2007-11-18  Jim Meyering  <meyering@redhat.com>
28476
28477         Pull my changes from coreutils:
28478         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28479         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28480         use of $gnulib_tool_option_extras, so that it's separated from the
28481         preceding argument.
28482
28483         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28484         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28485         parent destination directories before copying a file into place.
28486
28487 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28488
28489         bootstrap: work also with 4-argument variant of AC_INIT
28490         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28491
28492 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28493
28494         Port test-getaddrinfo to Solaris.
28495         Problem reported by Bruno Haible in
28496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28497         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28498         explanation of setting 'hints'.
28499         Don't reject an implementation merely because it returns EAI_SERVICE.
28500         (EAI_SERVICE): Define to 0 if not defined.
28501
28502 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28503
28504         The license of gnu-make and posix-shell is now "GPLed build tool".
28505         * modules/gnu-make (License): Likewise.
28506         * modules/posix-shell (License): Likewise.
28507
28508         New module posix-shell, for determining a POSIX shell
28509         or perhaps something that is close enough to a POSIX shell.
28510         * m4/posix-shell.m4: New file.
28511         * modules/posix-shell: New file.
28512
28513         * MODULES.html.sh: Mention new module.
28514
28515         New module gnu-make, for determining whether we're using GNU Make.
28516         * m4/gnu-make.m4: New file.
28517         * modules/gnu-make: New file.
28518         * MODULES.html.sh: Mention new module.
28519
28520 2007-11-14  Jim Meyering  <meyering@redhat.com>
28521
28522         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28523         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28524         use this macro to create a function _definition_.
28525         Remove useless "#undef ARGMATCH_DIE".
28526
28527 2007-11-14  Bruno Haible  <bruno@clisp.org>
28528
28529         * lib/config.charset: Update for OpenBSD 4.1.
28530         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28531
28532 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28533
28534         Document 64-bit #if problems in stdint.texi.
28535         * doc/headers/stdint.texi (stdint.h): Mention problems with
28536         64-bit-#if, and how to work around them.
28537
28538         Don't insist on 'long long int' support in the preprocessor.  It
28539         breaks too many things.  For example, PRIdMAX still uses a 'long
28540         long int' format with the latest Sun compiler, even though
28541         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28542         preprocessor problem.  This causes the latest coreutils to dump
28543         core on Solaris 10 sparc with the Sun C compiler.
28544         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28545         the troublesome expressions at configure-time, not at #if-time.
28546         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28547         preprocessor.
28548         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28549         compile-time C checks, done at 'configure'-time.
28550         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28551         * modules/inttypes (Makefile): Substitute the new symbols that
28552         gl_INTTYPES_H now generates.
28553         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28554
28555 2007-11-12  Bruno Haible  <bruno@clisp.org>
28556
28557         Tests for Unicode character classification functions.
28558
28559         * modules/unictype/bidicategory-byname-tests: New file.
28560         * modules/unictype/bidicategory-name-tests: New file.
28561         * modules/unictype/bidicategory-of-tests: New file.
28562         * modules/unictype/bidicategory-test-tests: New file.
28563         * modules/unictype/block-list-tests: New file.
28564         * modules/unictype/block-of-tests: New file.
28565         * modules/unictype/block-test-tests: New file.
28566         * modules/unictype/category-C-tests: New file.
28567         * modules/unictype/category-Cc-tests: New file.
28568         * modules/unictype/category-Cf-tests: New file.
28569         * modules/unictype/category-Cn-tests: New file.
28570         * modules/unictype/category-Co-tests: New file.
28571         * modules/unictype/category-Cs-tests: New file.
28572         * modules/unictype/category-L-tests: New file.
28573         * modules/unictype/category-Ll-tests: New file.
28574         * modules/unictype/category-Lm-tests: New file.
28575         * modules/unictype/category-Lo-tests: New file.
28576         * modules/unictype/category-Lt-tests: New file.
28577         * modules/unictype/category-Lu-tests: New file.
28578         * modules/unictype/category-M-tests: New file.
28579         * modules/unictype/category-Mc-tests: New file.
28580         * modules/unictype/category-Me-tests: New file.
28581         * modules/unictype/category-Mn-tests: New file.
28582         * modules/unictype/category-N-tests: New file.
28583         * modules/unictype/category-Nd-tests: New file.
28584         * modules/unictype/category-Nl-tests: New file.
28585         * modules/unictype/category-No-tests: New file.
28586         * modules/unictype/category-P-tests: New file.
28587         * modules/unictype/category-Pc-tests: New file.
28588         * modules/unictype/category-Pd-tests: New file.
28589         * modules/unictype/category-Pe-tests: New file.
28590         * modules/unictype/category-Pf-tests: New file.
28591         * modules/unictype/category-Pi-tests: New file.
28592         * modules/unictype/category-Po-tests: New file.
28593         * modules/unictype/category-Ps-tests: New file.
28594         * modules/unictype/category-S-tests: New file.
28595         * modules/unictype/category-Sc-tests: New file.
28596         * modules/unictype/category-Sk-tests: New file.
28597         * modules/unictype/category-Sm-tests: New file.
28598         * modules/unictype/category-So-tests: New file.
28599         * modules/unictype/category-Z-tests: New file.
28600         * modules/unictype/category-Zl-tests: New file.
28601         * modules/unictype/category-Zp-tests: New file.
28602         * modules/unictype/category-Zs-tests: New file.
28603         * modules/unictype/category-and-not-tests: New file.
28604         * modules/unictype/category-and-tests: New file.
28605         * modules/unictype/category-byname-tests: New file.
28606         * modules/unictype/category-name-tests: New file.
28607         * modules/unictype/category-none-tests: New file.
28608         * modules/unictype/category-of-tests: New file.
28609         * modules/unictype/category-or-tests: New file.
28610         * modules/unictype/category-test-withtable-tests: New file.
28611         * modules/unictype/combining-class-tests: New file.
28612         * modules/unictype/ctype-alnum-tests: New file.
28613         * modules/unictype/ctype-alpha-tests: New file.
28614         * modules/unictype/ctype-blank-tests: New file.
28615         * modules/unictype/ctype-cntrl-tests: New file.
28616         * modules/unictype/ctype-digit-tests: New file.
28617         * modules/unictype/ctype-graph-tests: New file.
28618         * modules/unictype/ctype-lower-tests: New file.
28619         * modules/unictype/ctype-print-tests: New file.
28620         * modules/unictype/ctype-punct-tests: New file.
28621         * modules/unictype/ctype-space-tests: New file.
28622         * modules/unictype/ctype-upper-tests: New file.
28623         * modules/unictype/ctype-xdigit-tests: New file.
28624         * modules/unictype/decimal-digit-tests: New file.
28625         * modules/unictype/digit-tests: New file.
28626         * modules/unictype/mirror-tests: New file.
28627         * modules/unictype/numeric-tests: New file.
28628         * modules/unictype/property-alphabetic-tests: New file.
28629         * modules/unictype/property-ascii-hex-digit-tests: New file.
28630         * modules/unictype/property-bidi-arabic-digit-tests: New file.
28631         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
28632         * modules/unictype/property-bidi-block-separator-tests: New file.
28633         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
28634         * modules/unictype/property-bidi-common-separator-tests: New file.
28635         * modules/unictype/property-bidi-control-tests: New file.
28636         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
28637         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
28638         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
28639         * modules/unictype/property-bidi-european-digit-tests: New file.
28640         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
28641         * modules/unictype/property-bidi-left-to-right-tests: New file.
28642         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
28643         * modules/unictype/property-bidi-other-neutral-tests: New file.
28644         * modules/unictype/property-bidi-pdf-tests: New file.
28645         * modules/unictype/property-bidi-segment-separator-tests: New file.
28646         * modules/unictype/property-bidi-whitespace-tests: New file.
28647         * modules/unictype/property-byname-tests: New file.
28648         * modules/unictype/property-combining-tests: New file.
28649         * modules/unictype/property-composite-tests: New file.
28650         * modules/unictype/property-currency-symbol-tests: New file.
28651         * modules/unictype/property-dash-tests: New file.
28652         * modules/unictype/property-decimal-digit-tests: New file.
28653         * modules/unictype/property-default-ignorable-code-point-tests: New file.
28654         * modules/unictype/property-deprecated-tests: New file.
28655         * modules/unictype/property-diacritic-tests: New file.
28656         * modules/unictype/property-extender-tests: New file.
28657         * modules/unictype/property-format-control-tests: New file.
28658         * modules/unictype/property-grapheme-base-tests: New file.
28659         * modules/unictype/property-grapheme-extend-tests: New file.
28660         * modules/unictype/property-grapheme-link-tests: New file.
28661         * modules/unictype/property-hex-digit-tests: New file.
28662         * modules/unictype/property-hyphen-tests: New file.
28663         * modules/unictype/property-id-continue-tests: New file.
28664         * modules/unictype/property-id-start-tests: New file.
28665         * modules/unictype/property-ideographic-tests: New file.
28666         * modules/unictype/property-ids-binary-operator-tests: New file.
28667         * modules/unictype/property-ids-trinary-operator-tests: New file.
28668         * modules/unictype/property-ignorable-control-tests: New file.
28669         * modules/unictype/property-iso-control-tests: New file.
28670         * modules/unictype/property-join-control-tests: New file.
28671         * modules/unictype/property-left-of-pair-tests: New file.
28672         * modules/unictype/property-line-separator-tests: New file.
28673         * modules/unictype/property-logical-order-exception-tests: New file.
28674         * modules/unictype/property-lowercase-tests: New file.
28675         * modules/unictype/property-math-tests: New file.
28676         * modules/unictype/property-non-break-tests: New file.
28677         * modules/unictype/property-not-a-character-tests: New file.
28678         * modules/unictype/property-numeric-tests: New file.
28679         * modules/unictype/property-other-alphabetic-tests: New file.
28680         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
28681         * modules/unictype/property-other-grapheme-extend-tests: New file.
28682         * modules/unictype/property-other-id-continue-tests: New file.
28683         * modules/unictype/property-other-id-start-tests: New file.
28684         * modules/unictype/property-other-lowercase-tests: New file.
28685         * modules/unictype/property-other-math-tests: New file.
28686         * modules/unictype/property-other-uppercase-tests: New file.
28687         * modules/unictype/property-paired-punctuation-tests: New file.
28688         * modules/unictype/property-paragraph-separator-tests: New file.
28689         * modules/unictype/property-pattern-syntax-tests: New file.
28690         * modules/unictype/property-pattern-white-space-tests: New file.
28691         * modules/unictype/property-private-use-tests: New file.
28692         * modules/unictype/property-punctuation-tests: New file.
28693         * modules/unictype/property-quotation-mark-tests: New file.
28694         * modules/unictype/property-radical-tests: New file.
28695         * modules/unictype/property-sentence-terminal-tests: New file.
28696         * modules/unictype/property-soft-dotted-tests: New file.
28697         * modules/unictype/property-space-tests: New file.
28698         * modules/unictype/property-terminal-punctuation-tests: New file.
28699         * modules/unictype/property-test-tests: New file.
28700         * modules/unictype/property-titlecase-tests: New file.
28701         * modules/unictype/property-unassigned-code-value-tests: New file.
28702         * modules/unictype/property-unified-ideograph-tests: New file.
28703         * modules/unictype/property-uppercase-tests: New file.
28704         * modules/unictype/property-variation-selector-tests: New file.
28705         * modules/unictype/property-white-space-tests: New file.
28706         * modules/unictype/property-xid-continue-tests: New file.
28707         * modules/unictype/property-xid-start-tests: New file.
28708         * modules/unictype/property-zero-width-tests: New file.
28709         * modules/unictype/scripts-tests: New file.
28710         * modules/unictype/syntax-c-ident-tests: New file.
28711         * modules/unictype/syntax-c-whitespace-tests: New file.
28712         * modules/unictype/syntax-java-ident-tests: New file.
28713         * modules/unictype/syntax-java-whitespace-tests: New file.
28714         * tests/unictype/test-bidi_byname.c: New file.
28715         * tests/unictype/test-bidi_name.c: New file.
28716         * tests/unictype/test-bidi_of.c: New file.
28717         * tests/unictype/test-bidi_test.c: New file.
28718         * tests/unictype/test-block_list.c: New file.
28719         * tests/unictype/test-block_of.c: New file.
28720         * tests/unictype/test-block_test.c: New file.
28721         * tests/unictype/test-categ_and.c: New file.
28722         * tests/unictype/test-categ_and_not.c: New file.
28723         * tests/unictype/test-categ_byname.c: New file.
28724         * tests/unictype/test-categ_name.c: New file.
28725         * tests/unictype/test-categ_none.c: New file.
28726         * tests/unictype/test-categ_of.c: New file.
28727         * tests/unictype/test-categ_or.c: New file.
28728         * tests/unictype/test-categ_test_withtable.c: New file.
28729         * tests/unictype/test-combining.c: New file.
28730         * tests/unictype/test-decdigit.c: New file.
28731         * tests/unictype/test-digit.c: New file.
28732         * tests/unictype/test-mirror.c: New file.
28733         * tests/unictype/test-numeric.c: New file.
28734         * tests/unictype/test-pr_byname.c: New file.
28735         * tests/unictype/test-pr_test.c: New file.
28736         * tests/unictype/test-predicate-part1.h: New file.
28737         * tests/unictype/test-predicate-part2.h: New file.
28738         * tests/unictype/test-scripts.c: New file.
28739         * tests/unictype/test-sy_c_ident.c: New file.
28740         * tests/unictype/test-sy_java_ident.c: New file.
28741
28742         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
28743         for Unicode 5.0.0.
28744         * tests/unictype/test-categ_Cc.c: Likewise.
28745         * tests/unictype/test-categ_Cf.c: Likewise.
28746         * tests/unictype/test-categ_Cn.c: Likewise.
28747         * tests/unictype/test-categ_Co.c: Likewise.
28748         * tests/unictype/test-categ_Cs.c: Likewise.
28749         * tests/unictype/test-categ_L.c: Likewise.
28750         * tests/unictype/test-categ_Ll.c: Likewise.
28751         * tests/unictype/test-categ_Lm.c: Likewise.
28752         * tests/unictype/test-categ_Lo.c: Likewise.
28753         * tests/unictype/test-categ_Lt.c: Likewise.
28754         * tests/unictype/test-categ_Lu.c: Likewise.
28755         * tests/unictype/test-categ_M.c: Likewise.
28756         * tests/unictype/test-categ_Mc.c: Likewise.
28757         * tests/unictype/test-categ_Me.c: Likewise.
28758         * tests/unictype/test-categ_Mn.c: Likewise.
28759         * tests/unictype/test-categ_N.c: Likewise.
28760         * tests/unictype/test-categ_Nd.c: Likewise.
28761         * tests/unictype/test-categ_Nl.c: Likewise.
28762         * tests/unictype/test-categ_No.c: Likewise.
28763         * tests/unictype/test-categ_P.c: Likewise.
28764         * tests/unictype/test-categ_Pc.c: Likewise.
28765         * tests/unictype/test-categ_Pd.c: Likewise.
28766         * tests/unictype/test-categ_Pe.c: Likewise.
28767         * tests/unictype/test-categ_Pf.c: Likewise.
28768         * tests/unictype/test-categ_Pi.c: Likewise.
28769         * tests/unictype/test-categ_Po.c: Likewise.
28770         * tests/unictype/test-categ_Ps.c: Likewise.
28771         * tests/unictype/test-categ_S.c: Likewise.
28772         * tests/unictype/test-categ_Sc.c: Likewise.
28773         * tests/unictype/test-categ_Sk.c: Likewise.
28774         * tests/unictype/test-categ_Sm.c: Likewise.
28775         * tests/unictype/test-categ_So.c: Likewise.
28776         * tests/unictype/test-categ_Z.c: Likewise.
28777         * tests/unictype/test-categ_Zl.c: Likewise.
28778         * tests/unictype/test-categ_Zp.c: Likewise.
28779         * tests/unictype/test-categ_Zs.c: Likewise.
28780         * tests/unictype/test-ctype_alnum.c: Likewise.
28781         * tests/unictype/test-ctype_alpha.c: Likewise.
28782         * tests/unictype/test-ctype_blank.c: Likewise.
28783         * tests/unictype/test-ctype_cntrl.c: Likewise.
28784         * tests/unictype/test-ctype_digit.c: Likewise.
28785         * tests/unictype/test-ctype_graph.c: Likewise.
28786         * tests/unictype/test-ctype_lower.c: Likewise.
28787         * tests/unictype/test-ctype_print.c: Likewise.
28788         * tests/unictype/test-ctype_punct.c: Likewise.
28789         * tests/unictype/test-ctype_space.c: Likewise.
28790         * tests/unictype/test-ctype_upper.c: Likewise.
28791         * tests/unictype/test-ctype_xdigit.c: Likewise.
28792         * tests/unictype/test-decdigit.h: Likewise.
28793         * tests/unictype/test-digit.h: Likewise.
28794         * tests/unictype/test-numeric.h: Likewise.
28795         * tests/unictype/test-pr_alphabetic.c: Likewise.
28796         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
28797         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
28798         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
28799         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
28800         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
28801         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
28802         * tests/unictype/test-pr_bidi_control.c: Likewise.
28803         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
28804         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
28805         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
28806         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
28807         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
28808         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
28809         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
28810         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
28811         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
28812         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
28813         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
28814         * tests/unictype/test-pr_combining.c: Likewise.
28815         * tests/unictype/test-pr_composite.c: Likewise.
28816         * tests/unictype/test-pr_currency_symbol.c: Likewise.
28817         * tests/unictype/test-pr_dash.c: Likewise.
28818         * tests/unictype/test-pr_decimal_digit.c: Likewise.
28819         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
28820         * tests/unictype/test-pr_deprecated.c: Likewise.
28821         * tests/unictype/test-pr_diacritic.c: Likewise.
28822         * tests/unictype/test-pr_extender.c: Likewise.
28823         * tests/unictype/test-pr_format_control.c: Likewise.
28824         * tests/unictype/test-pr_grapheme_base.c: Likewise.
28825         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
28826         * tests/unictype/test-pr_grapheme_link.c: Likewise.
28827         * tests/unictype/test-pr_hex_digit.c: Likewise.
28828         * tests/unictype/test-pr_hyphen.c: Likewise.
28829         * tests/unictype/test-pr_id_continue.c: Likewise.
28830         * tests/unictype/test-pr_id_start.c: Likewise.
28831         * tests/unictype/test-pr_ideographic.c: Likewise.
28832         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
28833         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
28834         * tests/unictype/test-pr_ignorable_control.c: Likewise.
28835         * tests/unictype/test-pr_iso_control.c: Likewise.
28836         * tests/unictype/test-pr_join_control.c: Likewise.
28837         * tests/unictype/test-pr_left_of_pair.c: Likewise.
28838         * tests/unictype/test-pr_line_separator.c: Likewise.
28839         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
28840         * tests/unictype/test-pr_lowercase.c: Likewise.
28841         * tests/unictype/test-pr_math.c: Likewise.
28842         * tests/unictype/test-pr_non_break.c: Likewise.
28843         * tests/unictype/test-pr_not_a_character.c: Likewise.
28844         * tests/unictype/test-pr_numeric.c: Likewise.
28845         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
28846         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
28847         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
28848         * tests/unictype/test-pr_other_id_continue.c: Likewise.
28849         * tests/unictype/test-pr_other_id_start.c: Likewise.
28850         * tests/unictype/test-pr_other_lowercase.c: Likewise.
28851         * tests/unictype/test-pr_other_math.c: Likewise.
28852         * tests/unictype/test-pr_other_uppercase.c: Likewise.
28853         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
28854         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
28855         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
28856         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
28857         * tests/unictype/test-pr_private_use.c: Likewise.
28858         * tests/unictype/test-pr_punctuation.c: Likewise.
28859         * tests/unictype/test-pr_quotation_mark.c: Likewise.
28860         * tests/unictype/test-pr_radical.c: Likewise.
28861         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
28862         * tests/unictype/test-pr_soft_dotted.c: Likewise.
28863         * tests/unictype/test-pr_space.c: Likewise.
28864         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
28865         * tests/unictype/test-pr_titlecase.c: Likewise.
28866         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
28867         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
28868         * tests/unictype/test-pr_uppercase.c: Likewise.
28869         * tests/unictype/test-pr_variation_selector.c: Likewise.
28870         * tests/unictype/test-pr_white_space.c: Likewise.
28871         * tests/unictype/test-pr_xid_continue.c: Likewise.
28872         * tests/unictype/test-pr_xid_start.c: Likewise.
28873         * tests/unictype/test-pr_zero_width.c: Likewise.
28874         * tests/unictype/test-sy_c_whitespace.c: Likewise.
28875         * tests/unictype/test-sy_java_whitespace.c: Likewise.
28876
28877 2007-11-12  Bruno Haible  <bruno@clisp.org>
28878
28879         Unicode character classification functions.
28880         * lib/unictype.h: New file.
28881         * modules/unictype/base: New file.
28882         * modules/unictype/category-L: New file.
28883         * modules/unictype/category-Lu: New file.
28884         * modules/unictype/category-Ll: New file.
28885         * modules/unictype/category-Lt: New file.
28886         * modules/unictype/category-Lm: New file.
28887         * modules/unictype/category-Lo: New file.
28888         * modules/unictype/category-M: New file.
28889         * modules/unictype/category-Mn: New file.
28890         * modules/unictype/category-Mc: New file.
28891         * modules/unictype/category-Me: New file.
28892         * modules/unictype/category-N: New file.
28893         * modules/unictype/category-Nd: New file.
28894         * modules/unictype/category-Nl: New file.
28895         * modules/unictype/category-No: New file.
28896         * modules/unictype/category-P: New file.
28897         * modules/unictype/category-Pc: New file.
28898         * modules/unictype/category-Pd: New file.
28899         * modules/unictype/category-Ps: New file.
28900         * modules/unictype/category-Pe: New file.
28901         * modules/unictype/category-Pi: New file.
28902         * modules/unictype/category-Pf: New file.
28903         * modules/unictype/category-Po: New file.
28904         * modules/unictype/category-S: New file.
28905         * modules/unictype/category-Sm: New file.
28906         * modules/unictype/category-Sc: New file.
28907         * modules/unictype/category-Sk: New file.
28908         * modules/unictype/category-So: New file.
28909         * modules/unictype/category-Z: New file.
28910         * modules/unictype/category-Zs: New file.
28911         * modules/unictype/category-Zl: New file.
28912         * modules/unictype/category-Zp: New file.
28913         * modules/unictype/category-C: New file.
28914         * modules/unictype/category-Cc: New file.
28915         * modules/unictype/category-Cf: New file.
28916         * modules/unictype/category-Cs: New file.
28917         * modules/unictype/category-Co: New file.
28918         * modules/unictype/category-Cn: New file.
28919         * modules/unictype/category-or: New file.
28920         * modules/unictype/category-of: New file.
28921         * modules/unictype/category-test: New file.
28922         * modules/unictype/category-test-withtable: New file.
28923         * modules/unictype/category-byname: New file.
28924         * modules/unictype/category-none: New file.
28925         * modules/unictype/category-and: New file.
28926         * modules/unictype/category-and-not: New file.
28927         * modules/unictype/category-name: New file.
28928         * modules/unictype/combining-class: New file.
28929         * modules/unictype/category-all: New file.
28930         * modules/unictype/bidicategory-all: New file.
28931         * modules/unictype/bidicategory-byname: New file.
28932         * modules/unictype/bidicategory-name: New file.
28933         * modules/unictype/bidicategory-of: New file.
28934         * modules/unictype/bidicategory-test: New file.
28935         * modules/unictype/decimal-digit: New file.
28936         * modules/unictype/digit: New file.
28937         * modules/unictype/numeric: New file.
28938         * modules/unictype/mirror: New file.
28939         * modules/unictype/property-white-space: New file.
28940         * modules/unictype/property-alphabetic: New file.
28941         * modules/unictype/property-other-alphabetic: New file.
28942         * modules/unictype/property-not-a-character: New file.
28943         * modules/unictype/property-default-ignorable-code-point: New file.
28944         * modules/unictype/property-other-default-ignorable-code-point: New
28945         file.
28946         * modules/unictype/property-deprecated: New file.
28947         * modules/unictype/property-logical-order-exception: New file.
28948         * modules/unictype/property-variation-selector: New file.
28949         * modules/unictype/property-private-use: New file.
28950         * modules/unictype/property-unassigned-code-value: New file.
28951         * modules/unictype/property-uppercase: New file.
28952         * modules/unictype/property-other-uppercase: New file.
28953         * modules/unictype/property-lowercase: New file.
28954         * modules/unictype/property-other-lowercase: New file.
28955         * modules/unictype/property-titlecase: New file.
28956         * modules/unictype/property-soft-dotted: New file.
28957         * modules/unictype/property-id-start: New file.
28958         * modules/unictype/property-other-id-start: New file.
28959         * modules/unictype/property-id-continue: New file.
28960         * modules/unictype/property-other-id-continue: New file.
28961         * modules/unictype/property-xid-start: New file.
28962         * modules/unictype/property-xid-continue: New file.
28963         * modules/unictype/property-pattern-white-space: New file.
28964         * modules/unictype/property-pattern-syntax: New file.
28965         * modules/unictype/property-join-control: New file.
28966         * modules/unictype/property-grapheme-base: New file.
28967         * modules/unictype/property-grapheme-extend: New file.
28968         * modules/unictype/property-other-grapheme-extend: New file.
28969         * modules/unictype/property-grapheme-link: New file.
28970         * modules/unictype/property-bidi-control: New file.
28971         * modules/unictype/property-bidi-left-to-right: New file.
28972         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
28973         * modules/unictype/property-bidi-arabic-right-to-left: New file.
28974         * modules/unictype/property-bidi-european-digit: New file.
28975         * modules/unictype/property-bidi-eur-num-separator: New file.
28976         * modules/unictype/property-bidi-eur-num-terminator: New file.
28977         * modules/unictype/property-bidi-arabic-digit: New file.
28978         * modules/unictype/property-bidi-common-separator: New file.
28979         * modules/unictype/property-bidi-block-separator: New file.
28980         * modules/unictype/property-bidi-segment-separator: New file.
28981         * modules/unictype/property-bidi-whitespace: New file.
28982         * modules/unictype/property-bidi-non-spacing-mark: New file.
28983         * modules/unictype/property-bidi-boundary-neutral: New file.
28984         * modules/unictype/property-bidi-pdf: New file.
28985         * modules/unictype/property-bidi-embedding-or-override: New file.
28986         * modules/unictype/property-bidi-other-neutral: New file.
28987         * modules/unictype/property-hex-digit: New file.
28988         * modules/unictype/property-ascii-hex-digit: New file.
28989         * modules/unictype/property-ideographic: New file.
28990         * modules/unictype/property-unified-ideograph: New file.
28991         * modules/unictype/property-radical: New file.
28992         * modules/unictype/property-ids-binary-operator: New file.
28993         * modules/unictype/property-ids-trinary-operator: New file.
28994         * modules/unictype/property-zero-width: New file.
28995         * modules/unictype/property-space: New file.
28996         * modules/unictype/property-non-break: New file.
28997         * modules/unictype/property-iso-control: New file.
28998         * modules/unictype/property-format-control: New file.
28999         * modules/unictype/property-dash: New file.
29000         * modules/unictype/property-hyphen: New file.
29001         * modules/unictype/property-punctuation: New file.
29002         * modules/unictype/property-line-separator: New file.
29003         * modules/unictype/property-paragraph-separator: New file.
29004         * modules/unictype/property-quotation-mark: New file.
29005         * modules/unictype/property-sentence-terminal: New file.
29006         * modules/unictype/property-terminal-punctuation: New file.
29007         * modules/unictype/property-currency-symbol: New file.
29008         * modules/unictype/property-math: New file.
29009         * modules/unictype/property-other-math: New file.
29010         * modules/unictype/property-paired-punctuation: New file.
29011         * modules/unictype/property-left-of-pair: New file.
29012         * modules/unictype/property-combining: New file.
29013         * modules/unictype/property-composite: New file.
29014         * modules/unictype/property-decimal-digit: New file.
29015         * modules/unictype/property-numeric: New file.
29016         * modules/unictype/property-diacritic: New file.
29017         * modules/unictype/property-extender: New file.
29018         * modules/unictype/property-ignorable-control: New file.
29019         * modules/unictype/property-test: New file.
29020         * modules/unictype/property-byname: New file.
29021         * modules/unictype/property-all: New file.
29022         * modules/unictype/scripts: New file.
29023         * modules/unictype/scripts-all: New file.
29024         * modules/unictype/block-of: New file.
29025         * modules/unictype/block-test: New file.
29026         * modules/unictype/block-list: New file.
29027         * modules/unictype/block-all: New file.
29028         * modules/unictype/syntax-c-whitespace: New file.
29029         * modules/unictype/syntax-java-whitespace: New file.
29030         * modules/unictype/syntax-c-ident: New file.
29031         * modules/unictype/syntax-java-ident: New file.
29032         * modules/unictype/ctype-alnum: New file.
29033         * modules/unictype/ctype-alpha: New file.
29034         * modules/unictype/ctype-cntrl: New file.
29035         * modules/unictype/ctype-digit: New file.
29036         * modules/unictype/ctype-graph: New file.
29037         * modules/unictype/ctype-lower: New file.
29038         * modules/unictype/ctype-print: New file.
29039         * modules/unictype/ctype-punct: New file.
29040         * modules/unictype/ctype-space: New file.
29041         * modules/unictype/ctype-upper: New file.
29042         * modules/unictype/ctype-xdigit: New file.
29043         * modules/unictype/ctype-blank: New file.
29044         * lib/unictype/bidi_byname.c: New file.
29045         * lib/unictype/bidi_name.c: New file.
29046         * lib/unictype/bidi_of.c: New file.
29047         * lib/unictype/bidi_test.c: New file.
29048         * lib/unictype/bitmap.h: New file.
29049         * lib/unictype/block_test.c: New file.
29050         * lib/unictype/blocks.c: New file.
29051         * lib/unictype/categ_C.c: New file.
29052         * lib/unictype/categ_Cc.c: New file.
29053         * lib/unictype/categ_Cf.c: New file.
29054         * lib/unictype/categ_Cn.c: New file.
29055         * lib/unictype/categ_Co.c: New file.
29056         * lib/unictype/categ_Cs.c: New file.
29057         * lib/unictype/categ_L.c: New file.
29058         * lib/unictype/categ_Ll.c: New file.
29059         * lib/unictype/categ_Lm.c: New file.
29060         * lib/unictype/categ_Lo.c: New file.
29061         * lib/unictype/categ_Lt.c: New file.
29062         * lib/unictype/categ_Lu.c: New file.
29063         * lib/unictype/categ_M.c: New file.
29064         * lib/unictype/categ_Mc.c: New file.
29065         * lib/unictype/categ_Me.c: New file.
29066         * lib/unictype/categ_Mn.c: New file.
29067         * lib/unictype/categ_N.c: New file.
29068         * lib/unictype/categ_Nd.c: New file.
29069         * lib/unictype/categ_Nl.c: New file.
29070         * lib/unictype/categ_No.c: New file.
29071         * lib/unictype/categ_P.c: New file.
29072         * lib/unictype/categ_Pc.c: New file.
29073         * lib/unictype/categ_Pd.c: New file.
29074         * lib/unictype/categ_Pe.c: New file.
29075         * lib/unictype/categ_Pf.c: New file.
29076         * lib/unictype/categ_Pi.c: New file.
29077         * lib/unictype/categ_Po.c: New file.
29078         * lib/unictype/categ_Ps.c: New file.
29079         * lib/unictype/categ_S.c: New file.
29080         * lib/unictype/categ_Sc.c: New file.
29081         * lib/unictype/categ_Sk.c: New file.
29082         * lib/unictype/categ_Sm.c: New file.
29083         * lib/unictype/categ_So.c: New file.
29084         * lib/unictype/categ_Z.c: New file.
29085         * lib/unictype/categ_Zl.c: New file.
29086         * lib/unictype/categ_Zp.c: New file.
29087         * lib/unictype/categ_Zs.c: New file.
29088         * lib/unictype/categ_and.c: New file.
29089         * lib/unictype/categ_and_not.c: New file.
29090         * lib/unictype/categ_byname.c: New file.
29091         * lib/unictype/categ_name.c: New file.
29092         * lib/unictype/categ_none.c: New file.
29093         * lib/unictype/categ_of.c: New file.
29094         * lib/unictype/categ_or.c: New file.
29095         * lib/unictype/categ_test.c: New file.
29096         * lib/unictype/combining.c: New file.
29097         * lib/unictype/ctype_alnum.c: New file.
29098         * lib/unictype/ctype_alpha.c: New file.
29099         * lib/unictype/ctype_blank.c: New file.
29100         * lib/unictype/ctype_cntrl.c: New file.
29101         * lib/unictype/ctype_digit.c: New file.
29102         * lib/unictype/ctype_graph.c: New file.
29103         * lib/unictype/ctype_lower.c: New file.
29104         * lib/unictype/ctype_print.c: New file.
29105         * lib/unictype/ctype_punct.c: New file.
29106         * lib/unictype/ctype_space.c: New file.
29107         * lib/unictype/ctype_upper.c: New file.
29108         * lib/unictype/ctype_xdigit.c: New file.
29109         * lib/unictype/decdigit.c: New file.
29110         * lib/unictype/digit.c: New file.
29111         * lib/unictype/identsyntaxmap.h: New file.
29112         * lib/unictype/mirror.c: New file.
29113         * lib/unictype/numeric.c: New file.
29114         * lib/unictype/pr_alphabetic.c: New file.
29115         * lib/unictype/pr_ascii_hex_digit.c: New file.
29116         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29117         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29118         * lib/unictype/pr_bidi_block_separator.c: New file.
29119         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29120         * lib/unictype/pr_bidi_common_separator.c: New file.
29121         * lib/unictype/pr_bidi_control.c: New file.
29122         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29123         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29124         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29125         * lib/unictype/pr_bidi_european_digit.c: New file.
29126         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29127         * lib/unictype/pr_bidi_left_to_right.c: New file.
29128         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29129         * lib/unictype/pr_bidi_other_neutral.c: New file.
29130         * lib/unictype/pr_bidi_pdf.c: New file.
29131         * lib/unictype/pr_bidi_segment_separator.c: New file.
29132         * lib/unictype/pr_bidi_whitespace.c: New file.
29133         * lib/unictype/pr_byname.c: New file.
29134         * lib/unictype/pr_byname.gperf: New file.
29135         * lib/unictype/pr_combining.c: New file.
29136         * lib/unictype/pr_composite.c: New file.
29137         * lib/unictype/pr_currency_symbol.c: New file.
29138         * lib/unictype/pr_dash.c: New file.
29139         * lib/unictype/pr_decimal_digit.c: New file.
29140         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29141         * lib/unictype/pr_deprecated.c: New file.
29142         * lib/unictype/pr_diacritic.c: New file.
29143         * lib/unictype/pr_extender.c: New file.
29144         * lib/unictype/pr_format_control.c: New file.
29145         * lib/unictype/pr_grapheme_base.c: New file.
29146         * lib/unictype/pr_grapheme_extend.c: New file.
29147         * lib/unictype/pr_grapheme_link.c: New file.
29148         * lib/unictype/pr_hex_digit.c: New file.
29149         * lib/unictype/pr_hyphen.c: New file.
29150         * lib/unictype/pr_id_continue.c: New file.
29151         * lib/unictype/pr_id_start.c: New file.
29152         * lib/unictype/pr_ideographic.c: New file.
29153         * lib/unictype/pr_ids_binary_operator.c: New file.
29154         * lib/unictype/pr_ids_trinary_operator.c: New file.
29155         * lib/unictype/pr_ignorable_control.c: New file.
29156         * lib/unictype/pr_iso_control.c: New file.
29157         * lib/unictype/pr_join_control.c: New file.
29158         * lib/unictype/pr_left_of_pair.c: New file.
29159         * lib/unictype/pr_line_separator.c: New file.
29160         * lib/unictype/pr_logical_order_exception.c: New file.
29161         * lib/unictype/pr_lowercase.c: New file.
29162         * lib/unictype/pr_math.c: New file.
29163         * lib/unictype/pr_non_break.c: New file.
29164         * lib/unictype/pr_not_a_character.c: New file.
29165         * lib/unictype/pr_numeric.c: New file.
29166         * lib/unictype/pr_other_alphabetic.c: New file.
29167         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29168         * lib/unictype/pr_other_grapheme_extend.c: New file.
29169         * lib/unictype/pr_other_id_continue.c: New file.
29170         * lib/unictype/pr_other_id_start.c: New file.
29171         * lib/unictype/pr_other_lowercase.c: New file.
29172         * lib/unictype/pr_other_math.c: New file.
29173         * lib/unictype/pr_other_uppercase.c: New file.
29174         * lib/unictype/pr_paired_punctuation.c: New file.
29175         * lib/unictype/pr_paragraph_separator.c: New file.
29176         * lib/unictype/pr_pattern_syntax.c: New file.
29177         * lib/unictype/pr_pattern_white_space.c: New file.
29178         * lib/unictype/pr_private_use.c: New file.
29179         * lib/unictype/pr_punctuation.c: New file.
29180         * lib/unictype/pr_quotation_mark.c: New file.
29181         * lib/unictype/pr_radical.c: New file.
29182         * lib/unictype/pr_sentence_terminal.c: New file.
29183         * lib/unictype/pr_soft_dotted.c: New file.
29184         * lib/unictype/pr_space.c: New file.
29185         * lib/unictype/pr_terminal_punctuation.c: New file.
29186         * lib/unictype/pr_test.c: New file.
29187         * lib/unictype/pr_titlecase.c: New file.
29188         * lib/unictype/pr_unassigned_code_value.c: New file.
29189         * lib/unictype/pr_unified_ideograph.c: New file.
29190         * lib/unictype/pr_uppercase.c: New file.
29191         * lib/unictype/pr_variation_selector.c: New file.
29192         * lib/unictype/pr_white_space.c: New file.
29193         * lib/unictype/pr_xid_continue.c: New file.
29194         * lib/unictype/pr_xid_start.c: New file.
29195         * lib/unictype/pr_zero_width.c: New file.
29196         * lib/unictype/scripts.c: New file.
29197         * lib/unictype/sy_c_ident.c: New file.
29198         * lib/unictype/sy_c_whitespace.c: New file.
29199         * lib/unictype/sy_java_ident.c: New file.
29200         * lib/unictype/sy_java_whitespace.c: New file.
29201
29202         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29203         Unicode 5.0.0.
29204         * lib/unictype/blocks.h: Likewise.
29205         * lib/unictype/categ_C.h: Likewise.
29206         * lib/unictype/categ_Cc.h: Likewise.
29207         * lib/unictype/categ_Cf.h: Likewise.
29208         * lib/unictype/categ_Cn.h: Likewise.
29209         * lib/unictype/categ_Co.h: Likewise.
29210         * lib/unictype/categ_Cs.h: Likewise.
29211         * lib/unictype/categ_L.h: Likewise.
29212         * lib/unictype/categ_Ll.h: Likewise.
29213         * lib/unictype/categ_Lm.h: Likewise.
29214         * lib/unictype/categ_Lo.h: Likewise.
29215         * lib/unictype/categ_Lt.h: Likewise.
29216         * lib/unictype/categ_Lu.h: Likewise.
29217         * lib/unictype/categ_M.h: Likewise.
29218         * lib/unictype/categ_Mc.h: Likewise.
29219         * lib/unictype/categ_Me.h: Likewise.
29220         * lib/unictype/categ_Mn.h: Likewise.
29221         * lib/unictype/categ_N.h: Likewise.
29222         * lib/unictype/categ_Nd.h: Likewise.
29223         * lib/unictype/categ_Nl.h: Likewise.
29224         * lib/unictype/categ_No.h: Likewise.
29225         * lib/unictype/categ_P.h: Likewise.
29226         * lib/unictype/categ_Pc.h: Likewise.
29227         * lib/unictype/categ_Pd.h: Likewise.
29228         * lib/unictype/categ_Pe.h: Likewise.
29229         * lib/unictype/categ_Pf.h: Likewise.
29230         * lib/unictype/categ_Pi.h: Likewise.
29231         * lib/unictype/categ_Po.h: Likewise.
29232         * lib/unictype/categ_Ps.h: Likewise.
29233         * lib/unictype/categ_S.h: Likewise.
29234         * lib/unictype/categ_Sc.h: Likewise.
29235         * lib/unictype/categ_Sk.h: Likewise.
29236         * lib/unictype/categ_Sm.h: Likewise.
29237         * lib/unictype/categ_So.h: Likewise.
29238         * lib/unictype/categ_Z.h: Likewise.
29239         * lib/unictype/categ_Zl.h: Likewise.
29240         * lib/unictype/categ_Zp.h: Likewise.
29241         * lib/unictype/categ_Zs.h: Likewise.
29242         * lib/unictype/categ_of.h: Likewise.
29243         * lib/unictype/combining.h: Likewise.
29244         * lib/unictype/ctype_alnum.h: Likewise.
29245         * lib/unictype/ctype_alpha.h: Likewise.
29246         * lib/unictype/ctype_blank.h: Likewise.
29247         * lib/unictype/ctype_cntrl.h: Likewise.
29248         * lib/unictype/ctype_digit.h: Likewise.
29249         * lib/unictype/ctype_graph.h: Likewise.
29250         * lib/unictype/ctype_lower.h: Likewise.
29251         * lib/unictype/ctype_print.h: Likewise.
29252         * lib/unictype/ctype_punct.h: Likewise.
29253         * lib/unictype/ctype_space.h: Likewise.
29254         * lib/unictype/ctype_upper.h: Likewise.
29255         * lib/unictype/ctype_xdigit.h: Likewise.
29256         * lib/unictype/decdigit.h: Likewise.
29257         * lib/unictype/digit.h: Likewise.
29258         * lib/unictype/mirror.h: Likewise.
29259         * lib/unictype/numeric.h: Likewise.
29260         * lib/unictype/pr_alphabetic.h: Likewise.
29261         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29262         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29264         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29265         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29266         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29267         * lib/unictype/pr_bidi_control.h: Likewise.
29268         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29269         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29270         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29271         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29272         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29273         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29274         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29275         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29276         * lib/unictype/pr_bidi_pdf.h: Likewise.
29277         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29278         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29279         * lib/unictype/pr_combining.h: Likewise.
29280         * lib/unictype/pr_composite.h: Likewise.
29281         * lib/unictype/pr_currency_symbol.h: Likewise.
29282         * lib/unictype/pr_dash.h: Likewise.
29283         * lib/unictype/pr_decimal_digit.h: Likewise.
29284         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29285         * lib/unictype/pr_deprecated.h: Likewise.
29286         * lib/unictype/pr_diacritic.h: Likewise.
29287         * lib/unictype/pr_extender.h: Likewise.
29288         * lib/unictype/pr_format_control.h: Likewise.
29289         * lib/unictype/pr_grapheme_base.h: Likewise.
29290         * lib/unictype/pr_grapheme_extend.h: Likewise.
29291         * lib/unictype/pr_grapheme_link.h: Likewise.
29292         * lib/unictype/pr_hex_digit.h: Likewise.
29293         * lib/unictype/pr_hyphen.h: Likewise.
29294         * lib/unictype/pr_id_continue.h: Likewise.
29295         * lib/unictype/pr_id_start.h: Likewise.
29296         * lib/unictype/pr_ideographic.h: Likewise.
29297         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29298         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29299         * lib/unictype/pr_ignorable_control.h: Likewise.
29300         * lib/unictype/pr_iso_control.h: Likewise.
29301         * lib/unictype/pr_join_control.h: Likewise.
29302         * lib/unictype/pr_left_of_pair.h: Likewise.
29303         * lib/unictype/pr_line_separator.h: Likewise.
29304         * lib/unictype/pr_logical_order_exception.h: Likewise.
29305         * lib/unictype/pr_lowercase.h: Likewise.
29306         * lib/unictype/pr_math.h: Likewise.
29307         * lib/unictype/pr_non_break.h: Likewise.
29308         * lib/unictype/pr_not_a_character.h: Likewise.
29309         * lib/unictype/pr_numeric.h: Likewise.
29310         * lib/unictype/pr_other_alphabetic.h: Likewise.
29311         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29312         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29313         * lib/unictype/pr_other_id_continue.h: Likewise.
29314         * lib/unictype/pr_other_id_start.h: Likewise.
29315         * lib/unictype/pr_other_lowercase.h: Likewise.
29316         * lib/unictype/pr_other_math.h: Likewise.
29317         * lib/unictype/pr_other_uppercase.h: Likewise.
29318         * lib/unictype/pr_paired_punctuation.h: Likewise.
29319         * lib/unictype/pr_paragraph_separator.h: Likewise.
29320         * lib/unictype/pr_pattern_syntax.h: Likewise.
29321         * lib/unictype/pr_pattern_white_space.h: Likewise.
29322         * lib/unictype/pr_private_use.h: Likewise.
29323         * lib/unictype/pr_punctuation.h: Likewise.
29324         * lib/unictype/pr_quotation_mark.h: Likewise.
29325         * lib/unictype/pr_radical.h: Likewise.
29326         * lib/unictype/pr_sentence_terminal.h: Likewise.
29327         * lib/unictype/pr_soft_dotted.h: Likewise.
29328         * lib/unictype/pr_space.h: Likewise.
29329         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29330         * lib/unictype/pr_titlecase.h: Likewise.
29331         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29332         * lib/unictype/pr_unified_ideograph.h: Likewise.
29333         * lib/unictype/pr_uppercase.h: Likewise.
29334         * lib/unictype/pr_variation_selector.h: Likewise.
29335         * lib/unictype/pr_white_space.h: Likewise.
29336         * lib/unictype/pr_xid_continue.h: Likewise.
29337         * lib/unictype/pr_xid_start.h: Likewise.
29338         * lib/unictype/pr_zero_width.h: Likewise.
29339         * lib/unictype/scripts.h: Likewise.
29340         * lib/unictype/scripts_byname.gperf: Likewise.
29341         * lib/unictype/sy_c_ident.h: Likewise.
29342         * lib/unictype/sy_c_whitespace.h: Likewise.
29343         * lib/unictype/sy_java_ident.h: Likewise.
29344         * lib/unictype/sy_java_whitespace.h: Likewise.
29345
29346         * lib/unictype/Makefile: New file.
29347         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29348         glibc.
29349         * lib/unictype/3level.h: New file, copied from glibc.
29350         * lib/unictype/3levelbit.h: New file.
29351
29352 2007-11-11  Bruno Haible  <bruno@clisp.org>
29353
29354         * modules/gperf: New file.
29355         * modules/iconv_open (Depends-on): Add it.
29356         (Makefile.am): Remove the GPERF definition.
29357
29358 2007-11-11  Bruno Haible  <bruno@clisp.org>
29359
29360         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29361         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29362
29363 2007-11-11  Bruno Haible  <bruno@clisp.org>
29364
29365         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29366         (usage): Remove function.
29367
29368 2007-11-11  Bruno Haible  <bruno@clisp.org>
29369
29370         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29371         gl_FUNC_CEILF_LIBS.
29372         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29373         gl_FUNC_CEIL_LIBS.
29374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29375         gl_FUNC_CEILL_LIBS.
29376         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29377         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29378         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29379
29380 2007-11-11  Bruno Haible  <bruno@clisp.org>
29381
29382         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29383         roundf were declared but do not exist on functions.
29384         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29385         roundl were declared but do not exist on functions.
29386         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29387         HAVE_FLOORL_AND_CEILL, respectively.
29388         Needed for Sun C on Solaris 10.
29389
29390 2007-11-11  Bruno Haible  <bruno@clisp.org>
29391
29392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29393         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29394         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29395         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29396         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29397         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29398         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29399         HAVE_DECL_ROUNDF.
29400         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29401         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29403         of HAVE_DECL_ROUND*.
29404         * modules/math (Makefile.am): Update.
29405
29406 2007-11-10  Bruno Haible  <bruno@clisp.org>
29407
29408         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29409         ptrdiff_t as m4/intl.m4.
29410
29411 2007-11-10  Jim Meyering  <meyering@redhat.com>
29412
29413         Avoid link failure for the argmatch test.
29414         * tests/test-argmatch.c (usage): Define function to avoid a link
29415         failure: argmatch_die requires a usage function.
29416
29417 2007-11-09  Bruno Haible  <bruno@clisp.org>
29418
29419         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29420         * doc/functions/vsnprintf.texi: Likewise.
29421         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29422         with a size argument < 2.
29423
29424 2007-11-09  Bruno Haible  <bruno@clisp.org>
29425
29426         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29427         buffer. Fixes an inefficiency introduced on 2007-11-03.
29428
29429 2007-11-09  Bruno Haible  <bruno@clisp.org>
29430
29431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29432         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29433
29434 2007-11-08  Jim Meyering  <meyering@redhat.com>
29435
29436         Change cache variable name prefix "jm_" to "gl_" everywhere.
29437         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29438         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29439         * m4/uptime.m4: s/gl_/jm_/
29440
29441 2007-11-07  Bruno Haible  <bruno@clisp.org>
29442
29443         Update to GNU gettext 0.17.
29444         * m4/intl.m4: Update to GNU gettext 0.17.
29445         * m4/po.m4: Likewise.
29446         * modules/gettext (Files): Remove m4/ulonglong.m4.
29447         (configure.ac): Require gettext infrastructure from version 0.17.
29448
29449 2007-11-06  Bruno Haible  <bruno@clisp.org>
29450
29451         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29452         symbolic values are not defined in a public header.
29453         * lib/freadable.c (freadable) [QNX]: Likewise.
29454         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29455         * lib/freading.c (freading) [QNX]: Likewise.
29456         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29457         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29458         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29459         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29460         Reported by Alain Magloire.
29461
29462         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29463
29464 2007-11-05  Bruno Haible  <bruno@clisp.org>
29465
29466         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29467         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29468         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29469         Reported by Eric Blake.
29470
29471 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29472             Bruno Haible  <bruno@clisp.org>
29473
29474         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29475         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29476         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29477         (malloc): Undefine also before including <stdlib.h>.
29478         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29479         Needed on OSF/1 4.0.
29480
29481 2007-11-05  Jim Meyering  <meyering@redhat.com>
29482
29483         git-version-gen: sync from coreutils.
29484         * build-aux/git-version-gen: Add comments.
29485         Change the first '-' to '.' in the snapshot version string,
29486         e.g., 6.9-377-08144 -> 6.9.377-08144
29487         Remove first parameter.
29488         Don't declare a version "-dirty" merely because a time
29489         stamp has changed.
29490
29491 2007-11-04  Bruno Haible  <bruno@clisp.org>
29492
29493         * lib/lock.h: Protect all macro definitions containing an 'if'
29494         statement through a "do { ... } while (0)".
29495         * lib/tls.h: Likewise.
29496
29497 2007-11-04  Bruno Haible  <bruno@clisp.org>
29498
29499         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29500
29501 2007-11-04  Bruno Haible  <bruno@clisp.org>
29502
29503         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29504         * modules/fprintf-posix (Depends-on): Add nocrash.
29505         * modules/snprintf-posix (Depends-on): Likewise.
29506         * modules/sprintf-posix (Depends-on): Likewise.
29507         * modules/vasnprintf-posix (Depends-on): Likewise.
29508         * modules/vasprintf-posix (Depends-on): Likewise.
29509         * modules/vfprintf-posix (Depends-on): Likewise.
29510         * modules/vsnprintf-posix (Depends-on): Likewise.
29511         * modules/vsprintf-posix (Depends-on): Likewise.
29512         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29513         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29514         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29515         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29516         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29517         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29518         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29519
29520 2007-11-04  Bruno Haible  <bruno@clisp.org>
29521
29522         * modules/nocrash: New file.
29523         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29524         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29525
29526 2007-11-04  Bruno Haible  <bruno@clisp.org>
29527
29528         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29529         precision handling.
29530         * tests/test-vasprintf-posix.c (test_function): Likewise.
29531         * tests/test-snprintf-posix.h (test_function): Likewise.
29532         * tests/test-sprintf-posix.h (test_function): Likewise.
29533
29534         Fix *printf behaviour for large precisions on mingw and BeOS.
29535         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29536         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29538         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29540         gl_PRINTF_PRECISION and test its result. Invoke
29541         gl_PREREQ_VASNPRINTF_PRECISION.
29542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29549         * doc/functions/fprintf.texi: Update.
29550         * doc/functions/printf.texi: Update.
29551         * doc/functions/snprintf.texi: Update.
29552         * doc/functions/sprintf.texi: Update.
29553         * doc/functions/vfprintf.texi: Update.
29554         * doc/functions/vprintf.texi: Update.
29555         * doc/functions/vsnprintf.texi: Update.
29556         * doc/functions/vsprintf.texi: Update.
29557
29558 2007-11-04  Bruno Haible  <bruno@clisp.org>
29559
29560         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29561
29562 2007-11-04  Bruno Haible  <bruno@clisp.org>
29563
29564         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29565         Reported by Sylvain Beucler <beuc@gnu.org>.
29566
29567 2007-11-03  Bruno Haible  <bruno@clisp.org>
29568
29569         * tests/test-fprintf-posix2.sh: New file.
29570         * tests/test-fprintf-posix2.c: New file.
29571         * modules/fprintf-posix-tests (Files): Add them.
29572         (TESTS): Add test-fprintf-posix2.sh.
29573         (configure.ac): Check for getrlimit and setrlimit.
29574         (check_PROGRAMS): Add test-fprintf-posix2.
29575
29576         * tests/test-printf-posix2.sh: New file.
29577         * tests/test-printf-posix2.c: New file.
29578         * modules/printf-posix-tests (Files): Add them.
29579         (TESTS): Add test-printf-posix2.sh.
29580         (configure.ac): Check for getrlimit and setrlimit.
29581         (check_PROGRAMS): Add test-printf-posix2.
29582
29583         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29584         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29585         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29586         (decode_double): New function, copied from decode_long_double.
29587         (scale10_round_decimal_decoded): New function, extracted from
29588         scale10_round_decimal_long_double.
29589         (scale10_round_decimal_long_double): Use it.
29590         (scale10_round_decimal_double): New function.
29591         (floorlog10): New function.
29592         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29593         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29594         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29596         gl_PRINTF_ENOMEM and test its result. Invoke
29597         gl_PREREQ_VASNPRINTF_ENOMEM.
29598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29605         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29606         * modules/snprintf-posix (Depends-on): Likewise.
29607         * modules/sprintf-posix (Depends-on): Likewise.
29608         * modules/vasnprintf-posix (Depends-on): Likewise.
29609         * modules/vasprintf-posix (Depends-on): Likewise.
29610         * modules/vfprintf-posix (Depends-on): Likewise.
29611         * modules/vsnprintf-posix (Depends-on): Likewise.
29612         * modules/vsprintf-posix (Depends-on): Likewise.
29613         * doc/functions/fprintf.texi: Update.
29614         * doc/functions/printf.texi: Update.
29615         * doc/functions/snprintf.texi: Update.
29616         * doc/functions/sprintf.texi: Update.
29617         * doc/functions/vfprintf.texi: Update.
29618         * doc/functions/vprintf.texi: Update.
29619         * doc/functions/vsnprintf.texi: Update.
29620         * doc/functions/vsprintf.texi: Update.
29621
29622 2007-11-03  Bruno Haible  <bruno@clisp.org>
29623
29624         * modules/frexp-nolibm-tests: New file.
29625
29626         * modules/frexp-nolibm: New file.
29627         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
29628
29629 2007-11-03  Bruno Haible  <bruno@clisp.org>
29630
29631         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
29632         value is C99 compliant.
29633         Needed for OSF/1 5.1.
29634
29635 2007-11-03  Bruno Haible  <bruno@clisp.org>
29636
29637         Fix out-of-memory handling of vasnprintf.
29638         * lib/printf-parse.c: Include <errno.h>.
29639         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
29640         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
29641         is already set.
29642
29643 2007-11-02  Eric Blake  <ebb9@byu.net>
29644
29645         Fix tests on cygwin.
29646         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
29647
29648 2007-11-01  Bruno Haible  <bruno@clisp.org>
29649
29650         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
29651         warning.
29652         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
29653         needed for POSIX compatibility.
29654
29655 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29656
29657         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
29658         for compatibility with GNU.
29659
29660 2007-11-01  Bruno Haible  <bruno@clisp.org>
29661
29662         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
29663         (putenv): Renamed from rpl_putenv. Change argument type from
29664         'const char *' to 'char *'.
29665         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
29666         of defining putenv in config.h, just set REPLACE_PUTENV.
29667         * modules/putenv (Depends-on): Add stdlib.
29668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29669         (Include): Use <stdlib.h>.
29670         * lib/stdlib.in.h (putenv): New declaration.
29671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
29672         REPLACE_PUTENV.
29673         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
29674         REPLACE_PUTENV.
29675         Needed for MacOS X 10.5.0.
29676         Reported by Peter O'Gorman <peter@pogma.com>.
29677
29678 2007-11-01  Jim Meyering  <meyering@redhat.com>
29679
29680         Treat an empty date string exactly like "0".
29681         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
29682         if the remaining date string (to be parsed) is empty, use "0".
29683         Reported by Mischa Molhoek and discussed in this thread:
29684         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
29685
29686 2007-10-31  Bruno Haible  <bruno@clisp.org>
29687
29688         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
29689         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
29690         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
29691         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
29692         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
29693         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
29694
29695 2007-10-31  Bruno Haible  <bruno@clisp.org>
29696
29697         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
29698         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
29699         (AC_TYPE_LONG_LONG_INT): Use it.
29700         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
29701         it as well.
29702         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
29703         to m4/longlong.m4.
29704         * modules/stdint (Files): Remove m4/ulonglong.m4.
29705         * modules/strtoull (Files): Use m4/longlong.m4 instead of
29706         m4/ulonglong.m4.
29707         * modules/strtoumax (Files): Likewise.
29708
29709 2007-10-30  Bruno Haible  <bruno@clisp.org>
29710
29711         * modules/xvasprintf-posix: New file.
29712         Suggested by Eric Blake.
29713
29714 2007-10-30  Bruno Haible  <bruno@clisp.org>
29715
29716         * modules/xprintf-posix-tests: New file.
29717         * tests/test-xprintf-posix.sh: New file.
29718         * tests/test-xprintf-posix.c: New file.
29719         * tests/test-xfprintf-posix.c: New file.
29720
29721         * modules/xprintf-posix: New file.
29722
29723 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29724
29725         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
29726         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
29727         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
29728
29729 2007-10-29  Bruno Haible  <bruno@clisp.org>
29730
29731         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
29732         contain the special marker '_cv_'.
29733         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29735         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29736         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29737         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29738         Reported by Ralf Wildenhues.
29739
29740 2007-10-29  Bruno Haible  <bruno@clisp.org>
29741
29742         * gnulib-tool (func_import): When --lgpl is not specified, set
29743         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
29744         GPLv3.
29745         Reported by Simon Josefsson.
29746
29747 2007-10-28  Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
29750         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
29751         HAVE_DECL_ISFINITE.
29752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29753         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
29754         HAVE_DECL_ISFINITE.
29755
29756 2007-10-28  Bruno Haible  <bruno@clisp.org>
29757
29758         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
29759         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
29760
29761 2007-10-28  Bruno Haible  <bruno@clisp.org>
29762
29763         Fix link errors with Sun C 5.0 on Solaris 10.
29764         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
29765         function is declared but not present in the compiler's libm.
29766         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29767         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29768         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
29769         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
29770         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
29771         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
29772         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
29773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
29774         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
29775         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
29776         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
29777         HAVE_DECL_FLOORL.
29778
29779 2007-10-28  Bruno Haible  <bruno@clisp.org>
29780
29781         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
29782         gl_FUNC_FLOORL. Cache the result.
29783         (gl_FUNC_FLOORL): Use it.
29784         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
29785         gl_FUNC_CEILL. Cache the result.
29786         (gl_FUNC_CEILL): Use it.
29787
29788         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
29789         gl_FUNC_FLOOR. Cache the result.
29790         (gl_FUNC_FLOOR): Use it.
29791         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
29792         gl_FUNC_CEIL. Cache the result.
29793         (gl_FUNC_CEIL): Use it.
29794
29795         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
29796         gl_FUNC_FLOORF. Cache the result.
29797         (gl_FUNC_FLOORF): Use it.
29798         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
29799         gl_FUNC_CEILF. Cache the result.
29800         (gl_FUNC_CEILF): Use it.
29801
29802 2007-10-28  Bruno Haible  <bruno@clisp.org>
29803
29804         * gnulib-tool: Allow specifying the LGPL version number through
29805         --lgpl=2 or --lgpl=3.
29806         (func_usage): Document --lgpl with argument.
29807         Handle --lgpl=... arguments.
29808         (func_import): Recognize also gl_LGPL calls with an argument. When
29809         --lgpl=2 is used and the module's license is just LGPL, report an
29810         error. Set sed_transform_lib_file according to the lgpl variable. In
29811         the generated files, use --lgpl or gl_LGPL invocations with argument,
29812         if necessary.
29813         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
29814         an LGPv2+ license.
29815         * doc/gnulib-tool.texi (Modified imports): Update explanation of
29816         gl_LGPL macro.
29817
29818 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29819             Bruno Haible  <bruno@clisp.org>
29820
29821         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
29822         (u16_uctomb_aux): Likewise.
29823         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
29824         !HAVE_INLINE.
29825         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
29826
29827 2007-10-28  Bruno Haible  <bruno@clisp.org>
29828
29829         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
29830         Invoke AM_GETTEXT_OPTION if it exists.
29831         * modules/vasprintf: Likewise.
29832         * modules/verror: Likewise.
29833         * modules/xprintf: Likewise.
29834         * modules/xvasprintf: Likewise.
29835
29836 2007-10-27  Ben Pfaff  <blp@gnu.org>
29837
29838         * lib/math.in.h: Define isfinite macro and prototypes for
29839         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
29840         implementations.
29841         * m4/math_h.m4: New substitutions for isfinite module.
29842         * lib/isfinite.c: New file.
29843         * m4/isfinite.m4: New file.
29844         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
29845         * modules/isfinite: New file.
29846         * modules/isfinite-tests: New file.
29847         * tests/tests-isfinite.c: New file.
29848         * doc/functions/isfinite.texi: Mention isfinite module.
29849         * MODULES.html.sh: Mention new module.
29850
29851 2007-10-27  Ben Pfaff  <blp@gnu.org>
29852
29853         Ralf Wildenhues reported that Tru64 4.0D declares the round
29854         functions but does not have definitions.
29855         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
29856         cannot be found in any library, set the output variable to
29857         "missing" instead of "".
29858         * m4/round.m4: Also use our substitute if we cannot find round in
29859         any library, even if it is declared.
29860         * m4/roundf.m4: Likewise for roundf.
29861         * m4/roundl.m4: Likewise for roundl.
29862         * lib/math.in.h: Undefine roundf, round, roundl before defining
29863         their replacements, to allow for hypothetical systems where these
29864         may be defined as macros but not available in libraries.
29865
29866 2007-10-27  Bruno Haible  <bruno@clisp.org>
29867
29868         * doc/gnulib.texi: Invoke @firstparagraphindent.
29869         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
29870         changes in gnulib.
29871         (Source changes): New section.
29872
29873 2007-10-26  Bruno Haible  <bruno@clisp.org>
29874
29875         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
29876         borrowed from autoconf.
29877
29878 2007-10-26  Bruno Haible  <bruno@clisp.org>
29879
29880         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
29881         strerror returned the empty string. Needed on HP-UX 11.00.
29882
29883 2007-10-24  Micah Cowan  <micah@cowan.name>
29884
29885         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
29886         * build-aux/bootstrap: Remove support for now-unnecessary option,
29887         --cvs-user, and envvars CVS_USER, CVS_RSH.
29888
29889 2007-10-24  Jim Meyering  <meyering@redhat.com>
29890
29891         Avoid diagnostics from sha1sum when there is no cached checksum.
29892         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
29893         if the po.s1 file hasn't been created yet.
29894
29895         * build-aux/bootstrap: Sync from coreutils:
29896         2007-10-24  Jim Meyering  <meyering@redhat.com>
29897         Get gnulib from the git repository, not from an obsolete cvs one.
29898         * build-aux/bootstrap: Suggestion from Micah Cowan.
29899         2007-10-04  Jim Meyering  <jim@meyering.net>
29900         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
29901         (update_po_files): Work also when there are no .po files in po/.
29902
29903 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29904
29905         * README: Append ".git" to git and cg examples.
29906         Problem reported by Benoit Sigoure.
29907
29908 2007-10-23  Micah Cowan  <micah@cowan.name>
29909
29910         * users.txt: Add wget.
29911
29912 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29913
29914         Fix linking of some unistdio tests on FreeBSD.
29915         * modules/unistdio/u16-vsnprintf-tests
29916         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
29917         * modules/unistdio/u16-vsprintf-tests
29918         (test_u16_vsnprintf1_LDADD): Likewise.
29919         * modules/unistdio/u32-vsnprintf-tests
29920         (test_u32_vsnprintf1_LDADD): Likewise.
29921         * modules/unistdio/u32-vsprintf-tests
29922         (test_u32_vsprintf1_LDADD): Likewise.
29923         * modules/unistdio/u8-vsnprintf-tests
29924         (test_u8_vsnprintf1_LDADD): Likewise.
29925         * modules/unistdio/u8-vsprintf-tests
29926         (test_u8_vsprintf1_LDADD): Likewise.
29927         * modules/unistdio/ulc-vsnprintf-tests
29928         (test_ulc_vsnprintf1_LDADD): Likewise.
29929         * modules/unistdio/ulc-vsprintf-tests
29930         (test_ulc_vsprintf1_LDADD): Likewise.
29931
29932         Fix linking of some uniconv tests on FreeBSD.
29933         * modules/uniconv/u16-conv-from-enc-tests
29934         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
29935         * modules/uniconv/u16-conv-to-enc-tests
29936         (test_u16_conv_to_enc_LDADD): Likewise.
29937         * modules/uniconv/u16-strconv-from-enc-tests
29938         (test_u16_strconv_from_enc_LDADD): Likewise.
29939         * modules/uniconv/u16-strconv-to-enc-tests
29940         (test_u16_strconv_to_enc_LDADD): Likewise.
29941         * modules/uniconv/u32-conv-from-enc-tests
29942         (test_u32_conv_from_enc_LDADD): Likewise.
29943         * modules/uniconv/u32-conv-to-enc-tests
29944         (test_u32_conv_to_enc_LDADD): Likewise.
29945         * modules/uniconv/u32-strconv-from-enc-tests
29946         (test_u32_strconv_from_enc_LDADD): Likewise.
29947         * modules/uniconv/u32-strconv-to-enc-tests
29948         (test_u32_strconv_to_enc_LDADD): Likewise.
29949         * modules/uniconv/u8-conv-from-enc-tests
29950         (test_u8_conv_from_enc_LDADD): Likewise.
29951         * modules/uniconv/u8-conv-to-enc-tests
29952         (test_u8_conv_to_enc_LDADD): Likewise.
29953         * modules/uniconv/u8-strconv-from-enc-tests
29954         (test_u8_strconv_from_enc_LDADD): Likewise.
29955         * modules/uniconv/u8-strconv-to-enc-tests
29956         (test_u8_strconv_to_enc_LDADD): Likewise.
29957
29958 2007-10-22  Bruno Haible  <bruno@clisp.org>
29959
29960         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
29961         size.
29962
29963 2007-10-22  Eric Blake  <ebb9@byu.net>
29964
29965         Tweak x*printf documentation.
29966         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
29967         variable name and comments.
29968         Suggested by Bruno Haible.
29969
29970 2007-10-22  Bruno Haible  <bruno@clisp.org>
29971
29972         * lib/acl.c (copy_acl): Fix file name in comment.
29973
29974 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         Fix Tru64 problem with stdbool.h.
29977         * lib/stdbool.in.h (false, true):
29978         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
29979         Don't declare as an enum in this situation; it runs afoul of Tru64.
29980         Problem reported by Steven M. Schweda in
29981         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
29982
29983 2007-10-22  Eric Blake  <ebb9@byu.net>
29984
29985         Also wrap vf?printf.
29986         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
29987         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
29988         (xvprintf, xvfprintf): New functions.
29989
29990 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29991
29992         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
29993         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
29994
29995         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
29996         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
29997
29998 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29999
30000         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30001         by Bruno Haible.
30002
30003 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30004
30005         * lib/getloadavg.c
30006         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30007         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30008
30009         * tests/test-i-ring.c: Work for C89.
30010
30011 2007-10-22  Bruno Haible  <bruno@clisp.org>
30012
30013         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30014         -1u, in preprocessor expression, so that we don't test for the bug
30015         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30017
30018 2007-10-22  Eric Blake  <ebb9@byu.net>
30019
30020         * tests/test-yesno.sh: Silence stderr during test.
30021
30022 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30023
30024         * modules/crypto/gc-camellia: New file.
30025
30026         * m4/gc-camellia.m4: New file.
30027
30028         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30029
30030         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30031
30032 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30033
30034         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30035         --help to stdout.  Reported by sms@antinode.org (Steven
30036         M. Schweda).
30037
30038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30039
30040         * users.txt: Fix link to libksba.
30041
30042 2007-10-21  Ben Pfaff  <blp@gnu.org>
30043
30044         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30045         round.c roundf implementation that depends on floorf and ceilf to
30046         be tested unconditionally.
30047
30048 2007-10-21  Ben Pfaff  <blp@gnu.org>
30049
30050         * m4/check-libm-func.m4: Removed.
30051         * m4/check-math-lib.m4: New file.
30052         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30053         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30054         definition and lack of AC_LIBOBJ([roundf]).
30055         * m4/roundl.m4: Ditto, and similarly for roundl.
30056         * modules/round: Reference new m4 file.
30057         * modules/roundf: Ditto.
30058         * modules/roundl: Ditto.
30059         * tests/test-round2.c (main): Use ROUND instead of round.
30060         Bug report from Bruno Haible.
30061
30062 2007-10-21  Bruno Haible  <bruno@clisp.org>
30063
30064         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30065         context.
30066
30067 2007-10-21  Bruno Haible  <bruno@clisp.org>
30068
30069         * tests/test-wcwidth.c (main): Allow negative result for some control
30070         characters.
30071
30072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30073         Needed on OSF/1 5.1.
30074
30075 2007-10-21  Bruno Haible  <bruno@clisp.org>
30076
30077         * tests/test-floorf1.c: Include isnanf.h.
30078         (main): Use isnanf() instead of isnan().
30079         * tests/test-ceilf1.c: Include isnanf.h.
30080         (main): Use isnanf() instead of isnan().
30081         * tests/test-truncf1.c: Include isnanf.h.
30082         (main): Use isnanf() instead of isnan().
30083         * tests/test-roundf1.c: Include isnanf.h.
30084         (main): Use isnanf() instead of isnan().
30085
30086 2007-10-21  Eric Blake  <ebb9@byu.net>
30087
30088         * users.txt: Update URL for m4.
30089
30090 2007-10-21  Bruno Haible  <bruno@clisp.org>
30091
30092         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30093
30094 2007-10-21  Bruno Haible  <bruno@clisp.org>
30095
30096         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30097         Git's management files if the CVS files are not present.
30098
30099 2007-10-20  Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30102         gcc-3.4.x.
30103
30104 2007-10-20  Ben Pfaff  <blp@gnu.org>
30105
30106         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30107         implementations.
30108         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30109         * lib/round.c: New file.
30110         * lib/roundf.c: New file.
30111         * lib/roundl.c: New file.
30112         * m4/round.m4: New file.
30113         * m4/roundf.m4: New file.
30114         * m4/roundl.m4: New file.
30115         * m4/check-libm-func-m4: New file.
30116         * modules/math: Replace round, roundf, roundl related @VARS@ in
30117         math.in.h.
30118         * modules/round: New file.
30119         * modules/round-tests: New file.
30120         * modules/roundf: New file.
30121         * modules/roundf-tests: New file.
30122         * modules/roundl: New file.
30123         * modules/roundl-tests: New file.
30124         * tests/test-round1.c: New file.
30125         * tests/test-round2.c: New file.
30126         * tests/test-roundf1.c: New file.
30127         * tests/test-roundf2.c: New file.
30128         * tests/test-roundl.c: New file.
30129         * doc/functions/round.texi: Mention round module.
30130         * doc/functions/roundf.texi: Mention roundf module.
30131         * doc/functions/roundl.texi: Mention roundl module.
30132         * MODULES.html.sh: Mention new modules.
30133         Thanks to Bruno Haible for suggestions.
30134
30135 2007-10-20  Jim Meyering  <meyering@redhat.com>
30136
30137         * lib/xprintf.c: Include <config.h> unconditionally.
30138
30139         Change xprintf's license to GPL.
30140         * modules/xprintf (License): s/LGPL/GPL/, since this module
30141         depends on modules (exit and exitfail) which are GPL.
30142         Suggestion from Bruno Haible.
30143
30144         xprintf fixes.
30145         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30146         Use a clearer diagnostic.
30147         Patch from Bruno Haible.
30148
30149 2007-10-20  Bruno Haible  <bruno@clisp.org>
30150
30151         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30152         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30153         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30154
30155 2007-10-20  Bruno Haible  <bruno@clisp.org>
30156
30157         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30158         precision in the comparison result > x - 1 or similar.
30159         * tests/test-ceilf2.c (correct_result_p): Likewise.
30160         * tests/test-truncf2.c (correct_result_p): Likewise.
30161         * tests/test-trunc2.c (correct_result_p): Likewise.
30162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30163
30164 2007-10-20  Bruno Haible  <bruno@clisp.org>
30165
30166         * modules/ceil: New file.
30167         * m4/ceil.m4: New file.
30168         * doc/functions/ceil.texi: Mention the 'ceil' module.
30169
30170 2007-10-20  Bruno Haible  <bruno@clisp.org>
30171
30172         * modules/floor: New file.
30173         * m4/floor.m4: New file.
30174         * doc/functions/floor.texi: Mention the 'floor' module.
30175
30176 2007-10-20  Bruno Haible  <bruno@clisp.org>
30177
30178         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30179         of %a.
30180         * modules/floorf-tests (Depends-on): Likewise.
30181         * modules/truncf-tests (Depends-on): Likewise.
30182         * modules/trunc-tests (Depends-on): Likewise.
30183         Reported by Ben Pfaff.
30184
30185 2007-10-19  Jim Meyering  <meyering@redhat.com>
30186
30187         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30188         Don't bother testing specific errno values.  Just test ferror.
30189
30190         New module: xprintf
30191         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30192
30193 2007-10-19  Bruno Haible  <bruno@clisp.org>
30194
30195         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30196         syntax.
30197         * modules/javaexec (Makefile.am): Likewise.
30198         * modules/relocatable-prog (Makefile.am): Likewise.
30199         Suggested by Jim Meyering.
30200
30201 2007-10-18  Bruno Haible  <bruno@clisp.org>
30202
30203         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30204         Reported by Jim Meyering.
30205
30206 2007-10-18  Eric Blake  <ebb9@byu.net>
30207
30208         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30209
30210 2007-10-18  Bruno Haible  <bruno@clisp.org>
30211
30212         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30213         the format string into writable memory. Needed in Fortify conditions.
30214
30215 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30216             Bruno Haible  <bruno@clisp.org>
30217
30218         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30219         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30220         * modules/trim (Depends-on): Add mbchar.
30221         (configure.ac): Add gl_FUNC_MBRTOWC.
30222         (Makefile.am): Augment lib_SOURCES.
30223
30224 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30225
30226         Modify glob.c to use fstatat and dirfd, to simplify it.
30227         Suggested by Eric Blake.
30228         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30229         Don't include <stdbool.h>; not used.
30230         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30231         (link_exists_p): Simplify implementation, since we can now assume
30232         dirfd and fstatat.
30233         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30234
30235 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30236
30237         * gnulib-tool (func_get_dependencies): Fix sed script to
30238         match only tests.
30239
30240 2007-10-17  Bruno Haible  <bruno@clisp.org>
30241
30242         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30243         allow locale names without encoding suffix.
30244         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30245         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30246
30247 2007-10-16  Bruno Haible  <bruno@clisp.org>
30248
30249         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30250         * lib/getgroups.c (getgroups): Likewise.
30251         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30252
30253 2007-10-16  Bruno Haible  <bruno@clisp.org>
30254
30255         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30256         * modules/malloc-posix (License): Likewise.
30257         * modules/realloc-posix (License): Likewise.
30258         * modules/calloc-posix (License): Likewise.
30259         * modules/intprops (License): Change from GPL to LGPL, with
30260         Paul Eggert's approval.
30261
30262 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30263
30264         Merge glibc changes into lib/glob.c.
30265
30266         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30267         2007-10-15 04:59:03 UTC.  Here are the changes:
30268
30269         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30270
30271         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30272
30273         * lib/glob.c: Add some branch prediction throughout.
30274
30275         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30276
30277         [BZ #5103]
30278         * lib/glob.c (glob): Recognize patterns starting \/.
30279
30280         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30281
30282         [BZ #3996]
30283         * lib/glob.c (attribute_hidden): Define if not defined.
30284         (glob): Unescape dirname, filename or username when needed and not
30285         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30286         is NULL.  Handle unescaped [ in pattern without closing ].
30287         Don't pass GLOB_CHECK down to recursive glob for directories.
30288         (__glob_pattern_type): New function.
30289         (__glob_pattern_p): Implement using __glob_pattern_type.
30290         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30291         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30292         Remove unreachable code.
30293
30294         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30295
30296         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30297         explain why there are no leaks.
30298
30299         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30300
30301         [BZ #3253]
30302         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30303         time, rather allocate increasingly bigger arrays of pointers, if
30304         possible with alloca, if too large with malloc.
30305
30306 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30307
30308         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30309         Problem reported by H.Merijn Brand in
30310         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30311         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30312         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30313
30314 2007-10-15  Bruno Haible  <bruno@clisp.org>
30315
30316         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30317         with explicit rpl_ prefix.
30318         * lib/fopen.c (fopen): Likewise.
30319         * lib/freopen.c (freopen): Likewise.
30320         * lib/iconv.c (iconv): Likewise.
30321         * lib/iconv_close.c (iconv_close): Likewise.
30322
30323 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30324
30325         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30326
30327 2007-10-15  Bruno Haible  <bruno@clisp.org>
30328
30329         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30330         <stddef.h> instead of <stdlib.h> since we only need NULL.
30331         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30332
30333 2007-10-15  Bruno Haible  <bruno@clisp.org>
30334
30335         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30336         Replace paragraph talking about LIBOBJS.
30337         Reported by Colin Watson <cjwatson@debian.org>.
30338
30339 2007-10-15  Bruno Haible  <bruno@clisp.org>
30340
30341         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30342         <stdlib.h> before using NULL.
30343
30344 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30345
30346         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30347         Reported by Albert Chin <china@thewrittenword.com>.
30348
30349 2007-10-14  Bruno Haible  <bruno@clisp.org>
30350
30351         * modules/iconv_open-utf-tests: New file.
30352         * tests/test-iconv-utf.c: New file.
30353
30354         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30355         * modules/iconv_open-utf: New file.
30356         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30357         (iconv, iconv_close): New declarations.
30358         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30359         be defined.
30360         (iconv_open): Add special handling of conversion between UTF-8 and
30361         UTF-{16,32}{BE,LE}.
30362         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30363         * lib/iconv_close.c: New file.
30364         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30365         gl_FUNC_ICONV_OPEN.
30366         (gl_FUNC_ICONV_OPEN): Use it.
30367         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30368         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30369         and REPLACE_ICONV_UTF.
30370         * modules/iconv_open (Depends-on): Add c-strcase.
30371         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30372         ICONV_CONST.
30373         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30374
30375 2007-10-13  Albert Chin  <china@thewrittenword.com>
30376             Bruno Haible  <bruno@clisp.org>
30377
30378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30379         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30380
30381 2007-10-13  Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30384         defined, use the ISO C99 inline semantics.
30385         * lib/argp.h (ARGP_EI): Likewise.
30386
30387 2007-10-13  Bruno Haible  <bruno@clisp.org>
30388
30389         Handle 'inline' change in gcc 4.3.0.
30390         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30391         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30392         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30393         argp_fmtstream_point): Disable 'extern' declaration if the function
30394         definition is going to be provided inline.
30395         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30396         semantics, not the ISO C99 inline semantics.
30397         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30398         'extern' declaration if the function definition is going to be provided
30399         inline.
30400         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30401         the GNU C inline semantics, not the ISO C99 inline semantics. With
30402         GCC 4.2, avoid a warning.
30403
30404 2007-10-13  Bruno Haible  <bruno@clisp.org>
30405
30406         * lib/freading.h (freading): Enable the use of __freading for
30407         glibc >= 2.7.
30408         * lib/freading.c (freading): Likewise.
30409
30410 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30411
30412         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30413         "warning: C99 inline functions are not supported; using GNU89".
30414
30415 2007-10-12  Bruno Haible  <bruno@clisp.org>
30416
30417         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30418         of 2.
30419         * tests/test-ceilf2.c: New file.
30420         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30421
30422         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30423         * modules/ceilf-tests: Update.
30424
30425 2007-10-12  Bruno Haible  <bruno@clisp.org>
30426
30427         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30428         of 2.
30429         * tests/test-floorf2.c: New file.
30430         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30431
30432         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30433         * modules/floorf-tests: Update.
30434
30435 2007-10-12  Bruno Haible  <bruno@clisp.org>
30436
30437         * tests/test-trunc2.c: New file.
30438         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30439
30440         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30441         * modules/trunc-tests: Update.
30442
30443 2007-10-12  Bruno Haible  <bruno@clisp.org>
30444
30445         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30446         of 2.
30447         * tests/test-truncf2.c: New file.
30448         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30449
30450         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30451         * modules/truncf-tests: Update.
30452
30453 2007-10-11  Eric Blake  <ebb9@byu.net>
30454
30455         Don't claim strerror is broken on Interix.
30456         * doc/functions/strerror.texi (strerror): Known broken systems are
30457         now Solaris 8, and not Interix.
30458         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30459         Interix on cross-compile.
30460         Reported by Martin Koeppe in
30461         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30462
30463 2007-10-11  Bruno Haible  <bruno@clisp.org>
30464
30465         * modules/i-ring-tests: New file.
30466         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30467         instead of assert.
30468
30469 2007-10-11  Bruno Haible  <bruno@clisp.org>
30470
30471         * modules/filenamecat-tests: New file.
30472         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30473         * lib/filenamecat.c: Remove test code.
30474
30475 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30478
30479         * lib/strerror.c: Include <string.h> always, to test interface,
30480         and to remove the need for the dummy.
30481         Include intprops.h to compute width instead of doing it ourselves
30482         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30483         (strerror): Define it to return NULL if there's no system strerror.
30484         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30485         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30486         ancient pre-strerror Unix systems well any more.  Saying "unknown
30487         system error" is enough.
30488         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30489         simpler strerror.c implementation.
30490         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30491         Simplify the tests to reflect the simpler strerror implementation.
30492         * modules/strerror (Depends-on): Add intprops.
30493
30494 2007-10-09  Eric Blake  <ebb9@byu.net>
30495
30496         Silence test-fpending.
30497         * modules/fpending-tests (Files): Add wrapper script.
30498         * tests/test-fpending.sh: New file.
30499
30500 2007-10-09  Bruno Haible  <bruno@clisp.org>
30501
30502         * MODULES.html.sh (func_module): Don't create a hyperlink for
30503         function names like 'printf_frexp'.
30504         (Misc): Add crc, memxor.
30505         (Characteristics of floating types): New section.
30506         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30507         isnanf-nolibm, signbit, trunc, truncf, truncl.
30508         (Enhancements for ISO C 99 functions): New subsection Input/output.
30509         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30510         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30511         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30512         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30513         (Enhancements for POSIX:2001 functions): Add chdir-long.
30514         (File system functions): Add areadlink, chdir-safer, read-file.
30515         Remove cycle-check.
30516         (File system as inode set): New section.
30517         (Date and time): Add gethrxtime.
30518         (Multithreading): Add openmp.
30519         (Internationalization functions): Add localename.
30520         (Unicode string functions): Add unistr/u*-mbsnlen.
30521         (Support for maintaining and releasing projects): Add git-version-gen.
30522         (Lone files): Remove directories.
30523
30524 2007-10-08  Ben Pfaff  <blp@gnu.org>
30525
30526         * lib/xmalloca.h: Fix typo in comment.
30527
30528 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30529
30530         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30531         when avoiding problems with integer overflow.  Use a portable test
30532         instead.
30533
30534 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30535
30536         * modules/dummy (License): Change to LGPLv2+.
30537         * modules/float (License): Likewise
30538         * modules/realloc (License): Likewise
30539         * modules/stdlib (License): Likewise
30540
30541 2007-10-07  Bruno Haible  <bruno@clisp.org>
30542
30543         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30544         * floor.c (TWO_MANT_DIG): Likewise.
30545         * ceil.c (TWO_MANT_DIG): Likewise.
30546         Reported by Ben Pfaff.
30547
30548 2007-10-07  Bruno Haible  <bruno@clisp.org>
30549
30550         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30551         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30552         * lib/frexp.c (FUNC): Likewise.
30553         * lib/printf-frexp.h (printf_frexp): Likewise.
30554         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30555         * lib/printf-frexp.c (FUNC): Likewise.
30556         Suggested by Jim Meyering.
30557
30558 2007-10-07  Jim Meyering  <meyering@redhat.com>
30559
30560         Make xnanosleep's integer overflow test more robust.
30561         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30562         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30563
30564 2007-10-07  Bruno Haible  <bruno@clisp.org>
30565
30566         * NEWS: Mention the license change.
30567
30568         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30569         abbreviations in the modules files.
30570
30571         Change copyright notice from GPLv2+ to GPLv3+.
30572         * README: Change copyright notice.
30573         * MODULES.html.sh: Likewise.
30574         * build-aux/bootstrap.conf: Likewise.
30575         * build-aux/config.libpath: Likewise.
30576         * build-aux/csharpcomp.sh.in: Likewise.
30577         * build-aux/csharpexec.sh.in: Likewise.
30578         * build-aux/install-reloc: Likewise.
30579         * build-aux/javacomp.sh.in: Likewise.
30580         * build-aux/javaexec.sh.in: Likewise.
30581         * build-aux/ldd.sh.in: Likewise.
30582         * build-aux/reloc-ldflags: Likewise.
30583         * build-aux/relocatable.sh.in: Likewise.
30584         * build-aux/x-to-1.in: Likewise.
30585         * check-module: Likewise.
30586         * config/srclistvars.sh: Likewise.
30587         * gnulib-tool: Likewise.
30588         * lib/acl-internal.h: Likewise.
30589         * lib/acl.c: Likewise.
30590         * lib/acl.h: Likewise.
30591         * lib/acl_entries.c: Likewise.
30592         * lib/areadlink-with-size.c: Likewise.
30593         * lib/areadlink.c: Likewise.
30594         * lib/areadlink.h: Likewise.
30595         * lib/argmatch.c: Likewise.
30596         * lib/argmatch.h: Likewise.
30597         * lib/argp-ba.c: Likewise.
30598         * lib/argp-eexst.c: Likewise.
30599         * lib/argp-fmtstream.c: Likewise.
30600         * lib/argp-fmtstream.h: Likewise.
30601         * lib/argp-fs-xinl.c: Likewise.
30602         * lib/argp-help.c: Likewise.
30603         * lib/argp-namefrob.h: Likewise.
30604         * lib/argp-parse.c: Likewise.
30605         * lib/argp-pin.c: Likewise.
30606         * lib/argp-pv.c: Likewise.
30607         * lib/argp-pvh.c: Likewise.
30608         * lib/argp-xinl.c: Likewise.
30609         * lib/argp.h: Likewise.
30610         * lib/at-func.c: Likewise.
30611         * lib/atanl.c: Likewise.
30612         * lib/backupfile.c: Likewise.
30613         * lib/backupfile.h: Likewise.
30614         * lib/basename.c: Likewise.
30615         * lib/binary-io.h: Likewise.
30616         * lib/byteswap.in.h: Likewise.
30617         * lib/c-stack.c: Likewise.
30618         * lib/c-stack.h: Likewise.
30619         * lib/c-strcasestr.c: Likewise.
30620         * lib/c-strcasestr.h: Likewise.
30621         * lib/c-strstr.c: Likewise.
30622         * lib/c-strstr.h: Likewise.
30623         * lib/c-strtod.c: Likewise.
30624         * lib/calloc.c: Likewise.
30625         * lib/canon-host.c: Likewise.
30626         * lib/canon-host.h: Likewise.
30627         * lib/canonicalize-lgpl.c: Likewise.
30628         * lib/canonicalize.c: Likewise.
30629         * lib/canonicalize.h: Likewise.
30630         * lib/ceil.c: Likewise.
30631         * lib/ceilf.c: Likewise.
30632         * lib/ceill.c: Likewise.
30633         * lib/chdir-long.c: Likewise.
30634         * lib/chdir-long.h: Likewise.
30635         * lib/chdir-safer.c: Likewise.
30636         * lib/chdir-safer.h: Likewise.
30637         * lib/chown.c: Likewise.
30638         * lib/classpath.c: Likewise.
30639         * lib/classpath.h: Likewise.
30640         * lib/clean-temp.c: Likewise.
30641         * lib/clean-temp.h: Likewise.
30642         * lib/cloexec.c: Likewise.
30643         * lib/close-stream.c: Likewise.
30644         * lib/closein.c: Likewise.
30645         * lib/closein.h: Likewise.
30646         * lib/closeout.c: Likewise.
30647         * lib/closeout.h: Likewise.
30648         * lib/concat-filename.c: Likewise.
30649         * lib/copy-file.c: Likewise.
30650         * lib/copy-file.h: Likewise.
30651         * lib/count-one-bits.h: Likewise.
30652         * lib/crc.c: Likewise.
30653         * lib/crc.h: Likewise.
30654         * lib/creat-safer.c: Likewise.
30655         * lib/csharpcomp.c: Likewise.
30656         * lib/csharpcomp.h: Likewise.
30657         * lib/csharpexec.c: Likewise.
30658         * lib/csharpexec.h: Likewise.
30659         * lib/cycle-check.c: Likewise.
30660         * lib/cycle-check.h: Likewise.
30661         * lib/diacrit.c: Likewise.
30662         * lib/diacrit.h: Likewise.
30663         * lib/diffseq.h: Likewise.
30664         * lib/dirchownmod.c: Likewise.
30665         * lib/dirent.in.h: Likewise.
30666         * lib/dirfd.c: Likewise.
30667         * lib/dirfd.h: Likewise.
30668         * lib/dirname.c: Likewise.
30669         * lib/dirname.h: Likewise.
30670         * lib/dummy.c: Likewise.
30671         * lib/dup-safer.c: Likewise.
30672         * lib/dup2.c: Likewise.
30673         * lib/eealloc.h: Likewise.
30674         * lib/error.c: Likewise.
30675         * lib/error.h: Likewise.
30676         * lib/euidaccess.c: Likewise.
30677         * lib/exclude.c: Likewise.
30678         * lib/exclude.h: Likewise.
30679         * lib/execute.c: Likewise.
30680         * lib/execute.h: Likewise.
30681         * lib/exitfail.c: Likewise.
30682         * lib/exitfail.h: Likewise.
30683         * lib/expl.c: Likewise.
30684         * lib/fatal-signal.c: Likewise.
30685         * lib/fatal-signal.h: Likewise.
30686         * lib/fbufmode.c: Likewise.
30687         * lib/fbufmode.h: Likewise.
30688         * lib/fchdir.c: Likewise.
30689         * lib/fchmodat.c: Likewise.
30690         * lib/fchownat.c: Likewise.
30691         * lib/fcntl--.h: Likewise.
30692         * lib/fcntl-safer.h: Likewise.
30693         * lib/fcntl.in.h: Likewise.
30694         * lib/fd-safer.c: Likewise.
30695         * lib/fflush.c: Likewise.
30696         * lib/file-has-acl.c: Likewise.
30697         * lib/file-set.c: Likewise.
30698         * lib/file-type.c: Likewise.
30699         * lib/file-type.h: Likewise.
30700         * lib/fileblocks.c: Likewise.
30701         * lib/filemode.c: Likewise.
30702         * lib/filemode.h: Likewise.
30703         * lib/filename.h: Likewise.
30704         * lib/filenamecat.c: Likewise.
30705         * lib/filenamecat.h: Likewise.
30706         * lib/findprog.c: Likewise.
30707         * lib/findprog.h: Likewise.
30708         * lib/float.in.h: Likewise.
30709         * lib/floor.c: Likewise.
30710         * lib/floorf.c: Likewise.
30711         * lib/floorl.c: Likewise.
30712         * lib/fopen-safer.c: Likewise.
30713         * lib/fopen.c: Likewise.
30714         * lib/fpending.c: Likewise.
30715         * lib/fpending.h: Likewise.
30716         * lib/fprintf.c: Likewise.
30717         * lib/fprintftime.h: Likewise.
30718         * lib/fpucw.h: Likewise.
30719         * lib/fpurge.c: Likewise.
30720         * lib/fpurge.h: Likewise.
30721         * lib/freadable.c: Likewise.
30722         * lib/freadable.h: Likewise.
30723         * lib/freadahead.c: Likewise.
30724         * lib/freadahead.h: Likewise.
30725         * lib/freading.c: Likewise.
30726         * lib/freading.h: Likewise.
30727         * lib/free.c: Likewise.
30728         * lib/freopen.c: Likewise.
30729         * lib/frexp.c: Likewise.
30730         * lib/frexpl.c: Likewise.
30731         * lib/fseek.c: Likewise.
30732         * lib/fseterr.c: Likewise.
30733         * lib/fseterr.h: Likewise.
30734         * lib/fstatat.c: Likewise.
30735         * lib/fstrcmp.c: Likewise.
30736         * lib/fstrcmp.h: Likewise.
30737         * lib/fsusage.c: Likewise.
30738         * lib/fsusage.h: Likewise.
30739         * lib/ftell.c: Likewise.
30740         * lib/ftello.c: Likewise.
30741         * lib/fts-cycle.c: Likewise.
30742         * lib/fts.c: Likewise.
30743         * lib/fts_.h: Likewise.
30744         * lib/full-read.c: Likewise.
30745         * lib/full-read.h: Likewise.
30746         * lib/full-write.c: Likewise.
30747         * lib/full-write.h: Likewise.
30748         * lib/fwritable.c: Likewise.
30749         * lib/fwritable.h: Likewise.
30750         * lib/fwriteerror.c: Likewise.
30751         * lib/fwriteerror.h: Likewise.
30752         * lib/fwriting.c: Likewise.
30753         * lib/fwriting.h: Likewise.
30754         * lib/gcd.c: Likewise.
30755         * lib/gcd.h: Likewise.
30756         * lib/getcwd.c: Likewise.
30757         * lib/getdate.h: Likewise.
30758         * lib/getdate.y: Likewise.
30759         * lib/getdomainname.c: Likewise.
30760         * lib/getdomainname.h: Likewise.
30761         * lib/getgroups.c: Likewise.
30762         * lib/gethostname.c: Likewise.
30763         * lib/gethrxtime.c: Likewise.
30764         * lib/gethrxtime.h: Likewise.
30765         * lib/getloadavg.c: Likewise.
30766         * lib/getndelim2.c: Likewise.
30767         * lib/getndelim2.h: Likewise.
30768         * lib/getnline.c: Likewise.
30769         * lib/getnline.h: Likewise.
30770         * lib/getopt.c: Likewise.
30771         * lib/getopt.in.h: Likewise.
30772         * lib/getopt1.c: Likewise.
30773         * lib/getopt_int.h: Likewise.
30774         * lib/getpagesize.h: Likewise.
30775         * lib/getsubopt.c: Likewise.
30776         * lib/gettime.c: Likewise.
30777         * lib/getugroups.c: Likewise.
30778         * lib/getugroups.h: Likewise.
30779         * lib/getusershell.c: Likewise.
30780         * lib/gl_anyavltree_list1.h: Likewise.
30781         * lib/gl_anyavltree_list2.h: Likewise.
30782         * lib/gl_anyhash_list1.h: Likewise.
30783         * lib/gl_anyhash_list2.h: Likewise.
30784         * lib/gl_anylinked_list1.h: Likewise.
30785         * lib/gl_anylinked_list2.h: Likewise.
30786         * lib/gl_anyrbtree_list1.h: Likewise.
30787         * lib/gl_anyrbtree_list2.h: Likewise.
30788         * lib/gl_anytree_list1.h: Likewise.
30789         * lib/gl_anytree_list2.h: Likewise.
30790         * lib/gl_anytree_oset.h: Likewise.
30791         * lib/gl_anytreehash_list1.h: Likewise.
30792         * lib/gl_anytreehash_list2.h: Likewise.
30793         * lib/gl_array_list.c: Likewise.
30794         * lib/gl_array_list.h: Likewise.
30795         * lib/gl_array_oset.c: Likewise.
30796         * lib/gl_array_oset.h: Likewise.
30797         * lib/gl_avltree_list.c: Likewise.
30798         * lib/gl_avltree_list.h: Likewise.
30799         * lib/gl_avltree_oset.c: Likewise.
30800         * lib/gl_avltree_oset.h: Likewise.
30801         * lib/gl_avltreehash_list.c: Likewise.
30802         * lib/gl_avltreehash_list.h: Likewise.
30803         * lib/gl_carray_list.c: Likewise.
30804         * lib/gl_carray_list.h: Likewise.
30805         * lib/gl_linked_list.c: Likewise.
30806         * lib/gl_linked_list.h: Likewise.
30807         * lib/gl_linkedhash_list.c: Likewise.
30808         * lib/gl_linkedhash_list.h: Likewise.
30809         * lib/gl_list.c: Likewise.
30810         * lib/gl_list.h: Likewise.
30811         * lib/gl_oset.c: Likewise.
30812         * lib/gl_oset.h: Likewise.
30813         * lib/gl_rbtree_list.c: Likewise.
30814         * lib/gl_rbtree_list.h: Likewise.
30815         * lib/gl_rbtree_oset.c: Likewise.
30816         * lib/gl_rbtree_oset.h: Likewise.
30817         * lib/gl_rbtreehash_list.c: Likewise.
30818         * lib/gl_rbtreehash_list.h: Likewise.
30819         * lib/gl_sublist.c: Likewise.
30820         * lib/gl_sublist.h: Likewise.
30821         * lib/group-member.c: Likewise.
30822         * lib/group-member.h: Likewise.
30823         * lib/hard-locale.c: Likewise.
30824         * lib/hard-locale.h: Likewise.
30825         * lib/hash-pjw.c: Likewise.
30826         * lib/hash-pjw.h: Likewise.
30827         * lib/hash-triple.c: Likewise.
30828         * lib/hash.c: Likewise.
30829         * lib/hash.h: Likewise.
30830         * lib/human.c: Likewise.
30831         * lib/human.h: Likewise.
30832         * lib/i-ring.c: Likewise.
30833         * lib/i-ring.h: Likewise.
30834         * lib/idcache.c: Likewise.
30835         * lib/imaxabs.c: Likewise.
30836         * lib/imaxdiv.c: Likewise.
30837         * lib/inet_pton.c: Likewise.
30838         * lib/inet_pton.h: Likewise.
30839         * lib/intprops.h: Likewise.
30840         * lib/inttostr.c: Likewise.
30841         * lib/inttostr.h: Likewise.
30842         * lib/inttypes.in.h: Likewise.
30843         * lib/isapipe.c: Likewise.
30844         * lib/isdir.c: Likewise.
30845         * lib/isnan.c: Likewise.
30846         * lib/isnan.h: Likewise.
30847         * lib/isnanf.c: Likewise.
30848         * lib/isnanf.h: Likewise.
30849         * lib/isnanl-nolibm.h: Likewise.
30850         * lib/isnanl.c: Likewise.
30851         * lib/isnanl.h: Likewise.
30852         * lib/javacomp.c: Likewise.
30853         * lib/javacomp.h: Likewise.
30854         * lib/javaexec.c: Likewise.
30855         * lib/javaexec.h: Likewise.
30856         * lib/javaversion.c: Likewise.
30857         * lib/javaversion.h: Likewise.
30858         * lib/javaversion.java: Likewise.
30859         * lib/lbrkprop.h: Likewise.
30860         * lib/lchmod.h: Likewise.
30861         * lib/lchown.c: Likewise.
30862         * lib/ldexpl.c: Likewise.
30863         * lib/linebreak.c: Likewise.
30864         * lib/linebreak.h: Likewise.
30865         * lib/linebuffer.c: Likewise.
30866         * lib/linebuffer.h: Likewise.
30867         * lib/locale.in.h: Likewise.
30868         * lib/logl.c: Likewise.
30869         * lib/long-options.c: Likewise.
30870         * lib/long-options.h: Likewise.
30871         * lib/lstat.c: Likewise.
30872         * lib/lstat.h: Likewise.
30873         * lib/math.in.h: Likewise.
30874         * lib/mbchar.c: Likewise.
30875         * lib/mbchar.h: Likewise.
30876         * lib/mbfile.h: Likewise.
30877         * lib/mbiter.h: Likewise.
30878         * lib/mbscasecmp.c: Likewise.
30879         * lib/mbscasestr.c: Likewise.
30880         * lib/mbschr.c: Likewise.
30881         * lib/mbscspn.c: Likewise.
30882         * lib/mbslen.c: Likewise.
30883         * lib/mbsncasecmp.c: Likewise.
30884         * lib/mbsnlen.c: Likewise.
30885         * lib/mbspbrk.c: Likewise.
30886         * lib/mbspcasecmp.c: Likewise.
30887         * lib/mbsrchr.c: Likewise.
30888         * lib/mbssep.c: Likewise.
30889         * lib/mbsspn.c: Likewise.
30890         * lib/mbsstr.c: Likewise.
30891         * lib/mbstok_r.c: Likewise.
30892         * lib/mbswidth.c: Likewise.
30893         * lib/mbswidth.h: Likewise.
30894         * lib/mbuiter.h: Likewise.
30895         * lib/memcasecmp.c: Likewise.
30896         * lib/memcasecmp.h: Likewise.
30897         * lib/memchr.c: Likewise.
30898         * lib/memcmp.c: Likewise.
30899         * lib/memcoll.c: Likewise.
30900         * lib/memcoll.h: Likewise.
30901         * lib/memcpy.c: Likewise.
30902         * lib/memrchr.c: Likewise.
30903         * lib/mkancesdirs.c: Likewise.
30904         * lib/mkdir-p.c: Likewise.
30905         * lib/mkdir-p.h: Likewise.
30906         * lib/mkdir.c: Likewise.
30907         * lib/mkdirat.c: Likewise.
30908         * lib/mkdtemp.c: Likewise.
30909         * lib/mkstemp-safer.c: Likewise.
30910         * lib/mkstemp.c: Likewise.
30911         * lib/modechange.c: Likewise.
30912         * lib/modechange.h: Likewise.
30913         * lib/mountlist.c: Likewise.
30914         * lib/mountlist.h: Likewise.
30915         * lib/mpsort.c: Likewise.
30916         * lib/nanosleep.c: Likewise.
30917         * lib/obstack.c: Likewise.
30918         * lib/obstack.h: Likewise.
30919         * lib/open-safer.c: Likewise.
30920         * lib/open.c: Likewise.
30921         * lib/openat-die.c: Likewise.
30922         * lib/openat-priv.h: Likewise.
30923         * lib/openat-proc.c: Likewise.
30924         * lib/openat.c: Likewise.
30925         * lib/openat.h: Likewise.
30926         * lib/pagealign_alloc.c: Likewise.
30927         * lib/pagealign_alloc.h: Likewise.
30928         * lib/physmem.c: Likewise.
30929         * lib/physmem.h: Likewise.
30930         * lib/pipe-safer.c: Likewise.
30931         * lib/pipe.c: Likewise.
30932         * lib/pipe.h: Likewise.
30933         * lib/posixtm.c: Likewise.
30934         * lib/posixtm.h: Likewise.
30935         * lib/posixver.c: Likewise.
30936         * lib/printf-frexp.c: Likewise.
30937         * lib/printf-frexp.h: Likewise.
30938         * lib/printf-frexpl.c: Likewise.
30939         * lib/printf-frexpl.h: Likewise.
30940         * lib/printf.c: Likewise.
30941         * lib/progname.c: Likewise.
30942         * lib/progname.h: Likewise.
30943         * lib/progreloc.c: Likewise.
30944         * lib/putenv.c: Likewise.
30945         * lib/quote.c: Likewise.
30946         * lib/quote.h: Likewise.
30947         * lib/quotearg.c: Likewise.
30948         * lib/quotearg.h: Likewise.
30949         * lib/raise.c: Likewise.
30950         * lib/readline.c: Likewise.
30951         * lib/readline.h: Likewise.
30952         * lib/readlink.c: Likewise.
30953         * lib/readtokens.c: Likewise.
30954         * lib/readtokens.h: Likewise.
30955         * lib/readtokens0.c: Likewise.
30956         * lib/readtokens0.h: Likewise.
30957         * lib/readutmp.c: Likewise.
30958         * lib/readutmp.h: Likewise.
30959         * lib/realloc.c: Likewise.
30960         * lib/relocwrapper.c: Likewise.
30961         * lib/rename-dest-slash.c: Likewise.
30962         * lib/rename.c: Likewise.
30963         * lib/rmdir.c: Likewise.
30964         * lib/rpmatch.c: Likewise.
30965         * lib/safe-read.c: Likewise.
30966         * lib/safe-read.h: Likewise.
30967         * lib/safe-write.c: Likewise.
30968         * lib/safe-write.h: Likewise.
30969         * lib/same-inode.h: Likewise.
30970         * lib/same.c: Likewise.
30971         * lib/same.h: Likewise.
30972         * lib/save-cwd.c: Likewise.
30973         * lib/save-cwd.h: Likewise.
30974         * lib/savedir.c: Likewise.
30975         * lib/savedir.h: Likewise.
30976         * lib/savewd.c: Likewise.
30977         * lib/savewd.h: Likewise.
30978         * lib/search.in.h: Likewise.
30979         * lib/setenv.c: Likewise.
30980         * lib/setenv.h: Likewise.
30981         * lib/settime.c: Likewise.
30982         * lib/sh-quote.c: Likewise.
30983         * lib/sh-quote.h: Likewise.
30984         * lib/sig2str.c: Likewise.
30985         * lib/sig2str.h: Likewise.
30986         * lib/signal.in.h: Likewise.
30987         * lib/signbitd.c: Likewise.
30988         * lib/signbitf.c: Likewise.
30989         * lib/signbitl.c: Likewise.
30990         * lib/sigprocmask.c: Likewise.
30991         * lib/sincosl.c: Likewise.
30992         * lib/sleep.c: Likewise.
30993         * lib/sprintf.c: Likewise.
30994         * lib/sqrtl.c: Likewise.
30995         * lib/stat-time.h: Likewise.
30996         * lib/stdio--.h: Likewise.
30997         * lib/stdio-safer.h: Likewise.
30998         * lib/stdlib--.h: Likewise.
30999         * lib/stdlib-safer.h: Likewise.
31000         * lib/stdlib.in.h: Likewise.
31001         * lib/stpcpy.c: Likewise.
31002         * lib/stpncpy.c: Likewise.
31003         * lib/strchrnul.c: Likewise.
31004         * lib/strcspn.c: Likewise.
31005         * lib/strerror.c: Likewise.
31006         * lib/strftime.c: Likewise.
31007         * lib/strftime.h: Likewise.
31008         * lib/striconveh.c: Likewise.
31009         * lib/striconveh.h: Likewise.
31010         * lib/striconveha.c: Likewise.
31011         * lib/striconveha.h: Likewise.
31012         * lib/stripslash.c: Likewise.
31013         * lib/strnlen1.c: Likewise.
31014         * lib/strnlen1.h: Likewise.
31015         * lib/strtod.c: Likewise.
31016         * lib/strtoimax.c: Likewise.
31017         * lib/strtok_r.c: Likewise.
31018         * lib/strtol.c: Likewise.
31019         * lib/strtoll.c: Likewise.
31020         * lib/strtoul.c: Likewise.
31021         * lib/strtoull.c: Likewise.
31022         * lib/sysexits.in.h: Likewise.
31023         * lib/tempname.c: Likewise.
31024         * lib/tempname.h: Likewise.
31025         * lib/timespec.h: Likewise.
31026         * lib/tls.c: Likewise.
31027         * lib/tls.h: Likewise.
31028         * lib/tmpdir.c: Likewise.
31029         * lib/tmpdir.h: Likewise.
31030         * lib/tmpfile-safer.c: Likewise.
31031         * lib/tmpfile.c: Likewise.
31032         * lib/trigl.c: Likewise.
31033         * lib/trigl.h: Likewise.
31034         * lib/trim.c: Likewise.
31035         * lib/trim.h: Likewise.
31036         * lib/trunc.c: Likewise.
31037         * lib/truncf.c: Likewise.
31038         * lib/truncl.c: Likewise.
31039         * lib/tsearch.c: Likewise.
31040         * lib/unicodeio.c: Likewise.
31041         * lib/unicodeio.h: Likewise.
31042         * lib/unistd--.h: Likewise.
31043         * lib/unistd-safer.h: Likewise.
31044         * lib/unistdio/ulc-fprintf.c: Likewise.
31045         * lib/unistdio/ulc-vfprintf.c: Likewise.
31046         * lib/unlinkdir.c: Likewise.
31047         * lib/unlinkdir.h: Likewise.
31048         * lib/unlocked-io.h: Likewise.
31049         * lib/unsetenv.c: Likewise.
31050         * lib/userspec.c: Likewise.
31051         * lib/utime.c: Likewise.
31052         * lib/utimecmp.c: Likewise.
31053         * lib/utimecmp.h: Likewise.
31054         * lib/utimens.c: Likewise.
31055         * lib/verify.h: Likewise.
31056         * lib/verror.c: Likewise.
31057         * lib/verror.h: Likewise.
31058         * lib/version-etc-fsf.c: Likewise.
31059         * lib/version-etc.c: Likewise.
31060         * lib/version-etc.h: Likewise.
31061         * lib/vfprintf.c: Likewise.
31062         * lib/vprintf.c: Likewise.
31063         * lib/vsprintf.c: Likewise.
31064         * lib/w32spawn.h: Likewise.
31065         * lib/wait-process.c: Likewise.
31066         * lib/wait-process.h: Likewise.
31067         * lib/wcwidth.c: Likewise.
31068         * lib/write-any-file.c: Likewise.
31069         * lib/xalloc-die.c: Likewise.
31070         * lib/xalloc.h: Likewise.
31071         * lib/xasprintf.c: Likewise.
31072         * lib/xgetcwd.c: Likewise.
31073         * lib/xgetcwd.h: Likewise.
31074         * lib/xgetdomainname.c: Likewise.
31075         * lib/xgetdomainname.h: Likewise.
31076         * lib/xgethostname.c: Likewise.
31077         * lib/xmalloc.c: Likewise.
31078         * lib/xmalloca.c: Likewise.
31079         * lib/xmalloca.h: Likewise.
31080         * lib/xmemcoll.c: Likewise.
31081         * lib/xnanosleep.c: Likewise.
31082         * lib/xreadlink.c: Likewise.
31083         * lib/xreadlink.h: Likewise.
31084         * lib/xsetenv.c: Likewise.
31085         * lib/xsetenv.h: Likewise.
31086         * lib/xstriconv.c: Likewise.
31087         * lib/xstriconv.h: Likewise.
31088         * lib/xstrndup.c: Likewise.
31089         * lib/xstrndup.h: Likewise.
31090         * lib/xstrtod.c: Likewise.
31091         * lib/xstrtod.h: Likewise.
31092         * lib/xstrtol-error.c: Likewise.
31093         * lib/xstrtol.c: Likewise.
31094         * lib/xstrtol.h: Likewise.
31095         * lib/xtime.h: Likewise.
31096         * lib/xvasprintf.c: Likewise.
31097         * lib/xvasprintf.h: Likewise.
31098         * lib/yesno.c: Likewise.
31099         * lib/yesno.h: Likewise.
31100         * posix-modules: Likewise.
31101         * tests/test-alloca-opt.c: Likewise.
31102         * tests/test-arcfour.c: Likewise.
31103         * tests/test-arctwo.c: Likewise.
31104         * tests/test-argmatch.c: Likewise.
31105         * tests/test-argp-2.sh: Likewise.
31106         * tests/test-argp.c: Likewise.
31107         * tests/test-arpa_inet.c: Likewise.
31108         * tests/test-array_list.c: Likewise.
31109         * tests/test-array_oset.c: Likewise.
31110         * tests/test-atexit.c: Likewise.
31111         * tests/test-avltree_list.c: Likewise.
31112         * tests/test-avltree_oset.c: Likewise.
31113         * tests/test-avltreehash_list.c: Likewise.
31114         * tests/test-base64.c: Likewise.
31115         * tests/test-binary-io.c: Likewise.
31116         * tests/test-byteswap.c: Likewise.
31117         * tests/test-c-ctype.c: Likewise.
31118         * tests/test-c-strcasecmp.c: Likewise.
31119         * tests/test-c-strcasestr.c: Likewise.
31120         * tests/test-c-strncasecmp.c: Likewise.
31121         * tests/test-c-strstr.c: Likewise.
31122         * tests/test-canonicalize-lgpl.c: Likewise.
31123         * tests/test-canonicalize.c: Likewise.
31124         * tests/test-carray_list.c: Likewise.
31125         * tests/test-ceilf.c: Likewise.
31126         * tests/test-ceill.c: Likewise.
31127         * tests/test-count-one-bits.c: Likewise.
31128         * tests/test-crc.c: Likewise.
31129         * tests/test-dirname.c: Likewise.
31130         * tests/test-fbufmode.c: Likewise.
31131         * tests/test-fcntl.c: Likewise.
31132         * tests/test-fflush.c: Likewise.
31133         * tests/test-floorf.c: Likewise.
31134         * tests/test-floorl.c: Likewise.
31135         * tests/test-fopen.c: Likewise.
31136         * tests/test-fprintf-posix.c: Likewise.
31137         * tests/test-fprintf-posix.h: Likewise.
31138         * tests/test-fpurge.c: Likewise.
31139         * tests/test-freadable.c: Likewise.
31140         * tests/test-freadahead.c: Likewise.
31141         * tests/test-freading.c: Likewise.
31142         * tests/test-freopen.c: Likewise.
31143         * tests/test-frexp.c: Likewise.
31144         * tests/test-frexpl.c: Likewise.
31145         * tests/test-fseek.c: Likewise.
31146         * tests/test-fseeko.c: Likewise.
31147         * tests/test-fseterr.c: Likewise.
31148         * tests/test-fstrcmp.c: Likewise.
31149         * tests/test-ftell.c: Likewise.
31150         * tests/test-ftello.c: Likewise.
31151         * tests/test-fwritable.c: Likewise.
31152         * tests/test-fwriting.c: Likewise.
31153         * tests/test-getaddrinfo.c: Likewise.
31154         * tests/test-getpass.c: Likewise.
31155         * tests/test-gettimeofday.c: Likewise.
31156         * tests/test-hmac-md5.c: Likewise.
31157         * tests/test-hmac-sha1.c: Likewise.
31158         * tests/test-iconv.c: Likewise.
31159         * tests/test-iconvme.c: Likewise.
31160         * tests/test-inttypes.c: Likewise.
31161         * tests/test-isnan.c: Likewise.
31162         * tests/test-isnanf.c: Likewise.
31163         * tests/test-isnanl-nolibm.c: Likewise.
31164         * tests/test-isnanl.c: Likewise.
31165         * tests/test-isnanl.h: Likewise.
31166         * tests/test-ldexpl.c: Likewise.
31167         * tests/test-linked_list.c: Likewise.
31168         * tests/test-linkedhash_list.c: Likewise.
31169         * tests/test-locale.c: Likewise.
31170         * tests/test-localename.c: Likewise.
31171         * tests/test-lock.c: Likewise.
31172         * tests/test-lseek.c: Likewise.
31173         * tests/test-malloca.c: Likewise.
31174         * tests/test-math.c: Likewise.
31175         * tests/test-mbscasecmp.c: Likewise.
31176         * tests/test-mbscasestr1.c: Likewise.
31177         * tests/test-mbscasestr2.c: Likewise.
31178         * tests/test-mbscasestr3.c: Likewise.
31179         * tests/test-mbscasestr4.c: Likewise.
31180         * tests/test-mbschr.c: Likewise.
31181         * tests/test-mbscspn.c: Likewise.
31182         * tests/test-mbsncasecmp.c: Likewise.
31183         * tests/test-mbspbrk.c: Likewise.
31184         * tests/test-mbspcasecmp.c: Likewise.
31185         * tests/test-mbsrchr.c: Likewise.
31186         * tests/test-mbsspn.c: Likewise.
31187         * tests/test-mbsstr1.c: Likewise.
31188         * tests/test-mbsstr2.c: Likewise.
31189         * tests/test-mbsstr3.c: Likewise.
31190         * tests/test-md5.c: Likewise.
31191         * tests/test-memmem.c: Likewise.
31192         * tests/test-netinet_in.c: Likewise.
31193         * tests/test-open.c: Likewise.
31194         * tests/test-printf-frexp.c: Likewise.
31195         * tests/test-printf-frexpl.c: Likewise.
31196         * tests/test-printf-posix.c: Likewise.
31197         * tests/test-printf-posix.h: Likewise.
31198         * tests/test-rbtree_list.c: Likewise.
31199         * tests/test-rbtree_oset.c: Likewise.
31200         * tests/test-rbtreehash_list.c: Likewise.
31201         * tests/test-read-file.c: Likewise.
31202         * tests/test-rijndael.c: Likewise.
31203         * tests/test-search.c: Likewise.
31204         * tests/test-signbit.c: Likewise.
31205         * tests/test-sleep.c: Likewise.
31206         * tests/test-snprintf-posix.c: Likewise.
31207         * tests/test-snprintf-posix.h: Likewise.
31208         * tests/test-snprintf.c: Likewise.
31209         * tests/test-sprintf-posix.c: Likewise.
31210         * tests/test-sprintf-posix.h: Likewise.
31211         * tests/test-stat-time.c: Likewise.
31212         * tests/test-stdbool.c: Likewise.
31213         * tests/test-stdint.c: Likewise.
31214         * tests/test-stdio.c: Likewise.
31215         * tests/test-stdlib.c: Likewise.
31216         * tests/test-stpncpy.c: Likewise.
31217         * tests/test-strcasestr.c: Likewise.
31218         * tests/test-striconv.c: Likewise.
31219         * tests/test-striconveh.c: Likewise.
31220         * tests/test-striconveha.c: Likewise.
31221         * tests/test-string.c: Likewise.
31222         * tests/test-sys_select.c: Likewise.
31223         * tests/test-sys_socket.c: Likewise.
31224         * tests/test-sys_stat.c: Likewise.
31225         * tests/test-sys_time.c: Likewise.
31226         * tests/test-sysexits.c: Likewise.
31227         * tests/test-time.c: Likewise.
31228         * tests/test-tls.c: Likewise.
31229         * tests/test-trunc.c: Likewise.
31230         * tests/test-truncf.c: Likewise.
31231         * tests/test-truncl.c: Likewise.
31232         * tests/test-unistd.c: Likewise.
31233         * tests/test-vasnprintf-posix.c: Likewise.
31234         * tests/test-vasnprintf-posix2.c: Likewise.
31235         * tests/test-vasnprintf.c: Likewise.
31236         * tests/test-vasprintf-posix.c: Likewise.
31237         * tests/test-vasprintf.c: Likewise.
31238         * tests/test-verify.c: Likewise.
31239         * tests/test-vfprintf-posix.c: Likewise.
31240         * tests/test-vprintf-posix.c: Likewise.
31241         * tests/test-vsnprintf-posix.c: Likewise.
31242         * tests/test-vsnprintf.c: Likewise.
31243         * tests/test-vsprintf-posix.c: Likewise.
31244         * tests/test-wchar.c: Likewise.
31245         * tests/test-wctype.c: Likewise.
31246         * tests/test-wcwidth.c: Likewise.
31247         * tests/test-xstrtol.c: Likewise.
31248         * tests/test-xvasprintf.c: Likewise.
31249         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31250         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31251         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31252         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31253         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31254         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31255         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31256         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31257         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31258         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31259         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31260         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31261         * tests/uniname/test-uninames.c: Likewise.
31262         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31263         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31264         * tests/unistdio/test-u16-printf1.h: Likewise.
31265         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31266         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31267         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31268         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31269         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31270         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31271         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31272         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31273         * tests/unistdio/test-u32-printf1.h: Likewise.
31274         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31275         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31276         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31277         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31278         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31279         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31280         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31281         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31282         * tests/unistdio/test-u8-printf1.h: Likewise.
31283         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31284         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31285         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31286         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31287         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31288         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31289         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31290         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31291         * tests/unistdio/test-ulc-printf1.h: Likewise.
31292         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31293         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31294         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31295         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31296         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31297         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31298         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31299         * tests/uniwidth/test-u16-width.c: Likewise.
31300         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31301         * tests/uniwidth/test-u32-width.c: Likewise.
31302         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31303         * tests/uniwidth/test-u8-width.c: Likewise.
31304         * tests/uniwidth/test-uc_width.c: Likewise.
31305         * config/srclist-update: Likewise.
31306         (fixlicense): Update to GPLv3+.
31307
31308         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31309         * tests/test-tsearch.c: Change copyright notice.
31310
31311         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31312         * lib/c-strcaseeq.h: Change copyright notice.
31313         * lib/streq.h: Likewise.
31314         * lib/uniconv.h: Likewise.
31315         * lib/uniconv/u-conv-from-enc.h: Likewise.
31316         * lib/uniconv/u-conv-to-enc.h: Likewise.
31317         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31318         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31319         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31320         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31321         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31322         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31323         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31324         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31325         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31326         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31327         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31328         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31329         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31330         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31331         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31332         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31333         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31334         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31335         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31336         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31337         * lib/uniname.h: Likewise.
31338         * lib/uniname/uniname.c: Likewise.
31339         * lib/unistdio.h: Likewise.
31340         * lib/unistdio/u-asnprintf.h: Likewise.
31341         * lib/unistdio/u-asprintf.h: Likewise.
31342         * lib/unistdio/u-printf-args.c: Likewise.
31343         * lib/unistdio/u-printf-args.h: Likewise.
31344         * lib/unistdio/u-printf-parse.h: Likewise.
31345         * lib/unistdio/u-snprintf.h: Likewise.
31346         * lib/unistdio/u-sprintf.h: Likewise.
31347         * lib/unistdio/u-vasprintf.h: Likewise.
31348         * lib/unistdio/u-vsnprintf.h: Likewise.
31349         * lib/unistdio/u-vsprintf.h: Likewise.
31350         * lib/unistdio/u16-asnprintf.c: Likewise.
31351         * lib/unistdio/u16-asprintf.c: Likewise.
31352         * lib/unistdio/u16-printf-parse.c: Likewise.
31353         * lib/unistdio/u16-snprintf.c: Likewise.
31354         * lib/unistdio/u16-sprintf.c: Likewise.
31355         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31356         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31357         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31358         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31359         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31360         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31361         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31362         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31363         * lib/unistdio/u16-vasnprintf.c: Likewise.
31364         * lib/unistdio/u16-vasprintf.c: Likewise.
31365         * lib/unistdio/u16-vsnprintf.c: Likewise.
31366         * lib/unistdio/u16-vsprintf.c: Likewise.
31367         * lib/unistdio/u32-asnprintf.c: Likewise.
31368         * lib/unistdio/u32-asprintf.c: Likewise.
31369         * lib/unistdio/u32-printf-parse.c: Likewise.
31370         * lib/unistdio/u32-snprintf.c: Likewise.
31371         * lib/unistdio/u32-sprintf.c: Likewise.
31372         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31373         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31374         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31375         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31376         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31377         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31378         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31379         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31380         * lib/unistdio/u32-vasnprintf.c: Likewise.
31381         * lib/unistdio/u32-vasprintf.c: Likewise.
31382         * lib/unistdio/u32-vsnprintf.c: Likewise.
31383         * lib/unistdio/u32-vsprintf.c: Likewise.
31384         * lib/unistdio/u8-asnprintf.c: Likewise.
31385         * lib/unistdio/u8-asprintf.c: Likewise.
31386         * lib/unistdio/u8-printf-parse.c: Likewise.
31387         * lib/unistdio/u8-snprintf.c: Likewise.
31388         * lib/unistdio/u8-sprintf.c: Likewise.
31389         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31390         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31391         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31392         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31393         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31394         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31395         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31396         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31397         * lib/unistdio/u8-vasnprintf.c: Likewise.
31398         * lib/unistdio/u8-vasprintf.c: Likewise.
31399         * lib/unistdio/u8-vsnprintf.c: Likewise.
31400         * lib/unistdio/u8-vsprintf.c: Likewise.
31401         * lib/unistdio/ulc-asnprintf.c: Likewise.
31402         * lib/unistdio/ulc-asprintf.c: Likewise.
31403         * lib/unistdio/ulc-printf-parse.c: Likewise.
31404         * lib/unistdio/ulc-snprintf.c: Likewise.
31405         * lib/unistdio/ulc-sprintf.c: Likewise.
31406         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31407         * lib/unistdio/ulc-vasprintf.c: Likewise.
31408         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31409         * lib/unistdio/ulc-vsprintf.c: Likewise.
31410         * lib/unistr.h: Likewise.
31411         * lib/unistr/u-cpy-alloc.h: Likewise.
31412         * lib/unistr/u-cpy.h: Likewise.
31413         * lib/unistr/u-endswith.h: Likewise.
31414         * lib/unistr/u-move.h: Likewise.
31415         * lib/unistr/u-set.h: Likewise.
31416         * lib/unistr/u-startswith.h: Likewise.
31417         * lib/unistr/u-stpcpy.h: Likewise.
31418         * lib/unistr/u-stpncpy.h: Likewise.
31419         * lib/unistr/u-strcat.h: Likewise.
31420         * lib/unistr/u-strcpy.h: Likewise.
31421         * lib/unistr/u-strcspn.h: Likewise.
31422         * lib/unistr/u-strdup.h: Likewise.
31423         * lib/unistr/u-strlen.h: Likewise.
31424         * lib/unistr/u-strncat.h: Likewise.
31425         * lib/unistr/u-strncpy.h: Likewise.
31426         * lib/unistr/u-strnlen.h: Likewise.
31427         * lib/unistr/u-strpbrk.h: Likewise.
31428         * lib/unistr/u-strspn.h: Likewise.
31429         * lib/unistr/u-strstr.h: Likewise.
31430         * lib/unistr/u-strtok.h: Likewise.
31431         * lib/unistr/u16-check.c: Likewise.
31432         * lib/unistr/u16-chr.c: Likewise.
31433         * lib/unistr/u16-cmp.c: Likewise.
31434         * lib/unistr/u16-cpy-alloc.c: Likewise.
31435         * lib/unistr/u16-cpy.c: Likewise.
31436         * lib/unistr/u16-endswith.c: Likewise.
31437         * lib/unistr/u16-mblen.c: Likewise.
31438         * lib/unistr/u16-mbsnlen.c: Likewise.
31439         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31440         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31441         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31442         * lib/unistr/u16-mbtouc.c: Likewise.
31443         * lib/unistr/u16-mbtoucr.c: Likewise.
31444         * lib/unistr/u16-move.c: Likewise.
31445         * lib/unistr/u16-next.c: Likewise.
31446         * lib/unistr/u16-prev.c: Likewise.
31447         * lib/unistr/u16-set.c: Likewise.
31448         * lib/unistr/u16-startswith.c: Likewise.
31449         * lib/unistr/u16-stpcpy.c: Likewise.
31450         * lib/unistr/u16-stpncpy.c: Likewise.
31451         * lib/unistr/u16-strcat.c: Likewise.
31452         * lib/unistr/u16-strchr.c: Likewise.
31453         * lib/unistr/u16-strcmp.c: Likewise.
31454         * lib/unistr/u16-strcpy.c: Likewise.
31455         * lib/unistr/u16-strcspn.c: Likewise.
31456         * lib/unistr/u16-strdup.c: Likewise.
31457         * lib/unistr/u16-strlen.c: Likewise.
31458         * lib/unistr/u16-strmblen.c: Likewise.
31459         * lib/unistr/u16-strmbtouc.c: Likewise.
31460         * lib/unistr/u16-strncat.c: Likewise.
31461         * lib/unistr/u16-strncmp.c: Likewise.
31462         * lib/unistr/u16-strncpy.c: Likewise.
31463         * lib/unistr/u16-strnlen.c: Likewise.
31464         * lib/unistr/u16-strpbrk.c: Likewise.
31465         * lib/unistr/u16-strrchr.c: Likewise.
31466         * lib/unistr/u16-strspn.c: Likewise.
31467         * lib/unistr/u16-strstr.c: Likewise.
31468         * lib/unistr/u16-strtok.c: Likewise.
31469         * lib/unistr/u16-to-u32.c: Likewise.
31470         * lib/unistr/u16-to-u8.c: Likewise.
31471         * lib/unistr/u16-uctomb-aux.c: Likewise.
31472         * lib/unistr/u16-uctomb.c: Likewise.
31473         * lib/unistr/u32-check.c: Likewise.
31474         * lib/unistr/u32-chr.c: Likewise.
31475         * lib/unistr/u32-cmp.c: Likewise.
31476         * lib/unistr/u32-cpy-alloc.c: Likewise.
31477         * lib/unistr/u32-cpy.c: Likewise.
31478         * lib/unistr/u32-endswith.c: Likewise.
31479         * lib/unistr/u32-mblen.c: Likewise.
31480         * lib/unistr/u32-mbsnlen.c: Likewise.
31481         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31482         * lib/unistr/u32-mbtouc.c: Likewise.
31483         * lib/unistr/u32-mbtoucr.c: Likewise.
31484         * lib/unistr/u32-move.c: Likewise.
31485         * lib/unistr/u32-next.c: Likewise.
31486         * lib/unistr/u32-prev.c: Likewise.
31487         * lib/unistr/u32-set.c: Likewise.
31488         * lib/unistr/u32-startswith.c: Likewise.
31489         * lib/unistr/u32-stpcpy.c: Likewise.
31490         * lib/unistr/u32-stpncpy.c: Likewise.
31491         * lib/unistr/u32-strcat.c: Likewise.
31492         * lib/unistr/u32-strchr.c: Likewise.
31493         * lib/unistr/u32-strcmp.c: Likewise.
31494         * lib/unistr/u32-strcpy.c: Likewise.
31495         * lib/unistr/u32-strcspn.c: Likewise.
31496         * lib/unistr/u32-strdup.c: Likewise.
31497         * lib/unistr/u32-strlen.c: Likewise.
31498         * lib/unistr/u32-strmblen.c: Likewise.
31499         * lib/unistr/u32-strmbtouc.c: Likewise.
31500         * lib/unistr/u32-strncat.c: Likewise.
31501         * lib/unistr/u32-strncmp.c: Likewise.
31502         * lib/unistr/u32-strncpy.c: Likewise.
31503         * lib/unistr/u32-strnlen.c: Likewise.
31504         * lib/unistr/u32-strpbrk.c: Likewise.
31505         * lib/unistr/u32-strrchr.c: Likewise.
31506         * lib/unistr/u32-strspn.c: Likewise.
31507         * lib/unistr/u32-strstr.c: Likewise.
31508         * lib/unistr/u32-strtok.c: Likewise.
31509         * lib/unistr/u32-to-u16.c: Likewise.
31510         * lib/unistr/u32-to-u8.c: Likewise.
31511         * lib/unistr/u32-uctomb.c: Likewise.
31512         * lib/unistr/u8-check.c: Likewise.
31513         * lib/unistr/u8-chr.c: Likewise.
31514         * lib/unistr/u8-cmp.c: Likewise.
31515         * lib/unistr/u8-cpy-alloc.c: Likewise.
31516         * lib/unistr/u8-cpy.c: Likewise.
31517         * lib/unistr/u8-endswith.c: Likewise.
31518         * lib/unistr/u8-mblen.c: Likewise.
31519         * lib/unistr/u8-mbsnlen.c: Likewise.
31520         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31521         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31522         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31523         * lib/unistr/u8-mbtouc.c: Likewise.
31524         * lib/unistr/u8-mbtoucr.c: Likewise.
31525         * lib/unistr/u8-move.c: Likewise.
31526         * lib/unistr/u8-next.c: Likewise.
31527         * lib/unistr/u8-prev.c: Likewise.
31528         * lib/unistr/u8-set.c: Likewise.
31529         * lib/unistr/u8-startswith.c: Likewise.
31530         * lib/unistr/u8-stpcpy.c: Likewise.
31531         * lib/unistr/u8-stpncpy.c: Likewise.
31532         * lib/unistr/u8-strcat.c: Likewise.
31533         * lib/unistr/u8-strchr.c: Likewise.
31534         * lib/unistr/u8-strcmp.c: Likewise.
31535         * lib/unistr/u8-strcpy.c: Likewise.
31536         * lib/unistr/u8-strcspn.c: Likewise.
31537         * lib/unistr/u8-strdup.c: Likewise.
31538         * lib/unistr/u8-strlen.c: Likewise.
31539         * lib/unistr/u8-strmblen.c: Likewise.
31540         * lib/unistr/u8-strmbtouc.c: Likewise.
31541         * lib/unistr/u8-strncat.c: Likewise.
31542         * lib/unistr/u8-strncmp.c: Likewise.
31543         * lib/unistr/u8-strncpy.c: Likewise.
31544         * lib/unistr/u8-strnlen.c: Likewise.
31545         * lib/unistr/u8-strpbrk.c: Likewise.
31546         * lib/unistr/u8-strrchr.c: Likewise.
31547         * lib/unistr/u8-strspn.c: Likewise.
31548         * lib/unistr/u8-strstr.c: Likewise.
31549         * lib/unistr/u8-strtok.c: Likewise.
31550         * lib/unistr/u8-to-u16.c: Likewise.
31551         * lib/unistr/u8-to-u32.c: Likewise.
31552         * lib/unistr/u8-uctomb-aux.c: Likewise.
31553         * lib/unistr/u8-uctomb.c: Likewise.
31554         * lib/unitypes.h: Likewise.
31555         * lib/uniwidth.h: Likewise.
31556         * lib/uniwidth/cjk.h: Likewise.
31557         * lib/uniwidth/u16-strwidth.c: Likewise.
31558         * lib/uniwidth/u16-width.c: Likewise.
31559         * lib/uniwidth/u32-strwidth.c: Likewise.
31560         * lib/uniwidth/u32-width.c: Likewise.
31561         * lib/uniwidth/u8-strwidth.c: Likewise.
31562         * lib/uniwidth/u8-width.c: Likewise.
31563         * lib/uniwidth/width.c: Likewise.
31564
31565 2007-10-07  Bruno Haible  <bruno@clisp.org>
31566
31567         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31568         The file is still under LGPL (see modules/inttypes).
31569
31570 2007-10-06  Bruno Haible  <bruno@clisp.org>
31571
31572         * modules/trunc (Dependencies): Add 'extensions'.
31573         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31574         Reported by Ben Pfaff <blp@gnu.org>.
31575
31576 2007-10-06  Bruno Haible  <bruno@clisp.org>
31577
31578         * modules/freopen-tests: New file.
31579         * tests/test-freopen.c: New file.
31580
31581         * modules/fopen-tests: New file.
31582         * tests/test-fopen.c: New file.
31583
31584         * modules/fopen: New file.
31585         * lib/fopen.c: New file.
31586         * m4/fopen.m4: New file.
31587         * modules/freopen: New file.
31588         * lib/freopen.c: New file.
31589         * m4/freopen.m4: New file.
31590         * lib/stdio.in.h (fopen, freopen): New declarations.
31591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31592         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31593         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31594         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31595         * doc/functions/fopen.texi: Mention the 'fopen' module.
31596         * doc/functions/freopen.texi: Mention the 'freopen' module.
31597
31598 2007-10-06  Bruno Haible  <bruno@clisp.org>
31599
31600         * modules/open-tests: New file.
31601         * tests/test-open.c: New file.
31602
31603         * modules/open: New file.
31604         * lib/open.c: New file.
31605         * m4/open.m4: New file.
31606         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31607         lib/open.c does.
31608         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31609         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31610         macros.
31611         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31612         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31613         REPLACE_OPEN.
31614         * doc/functions/open.texi: Mention the 'open' module.
31615
31616 2007-10-04  Bruno Haible  <bruno@clisp.org>
31617
31618         * modules/ceill-tests: New file.
31619         * tests/test-ceill.c: New file.
31620
31621         * modules/ceill: New file.
31622         * lib/ceill.c: Replace entire file.
31623         * m4/ceill.m4: New file.
31624         * lib/math.in.h (ceill): Replace declaration.
31625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
31626         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
31627         * doc/functions/ceill.texi: Mention the 'ceill' module.
31628         * modules/mathl (Files): Remove lib/ceill.c.
31629         (Depends-on): Add ceill.
31630
31631 2007-10-04  Bruno Haible  <bruno@clisp.org>
31632
31633         * modules/ceilf-tests: New file.
31634         * tests/test-ceilf.c: New file.
31635
31636         * modules/ceilf: New file.
31637         * lib/ceil.c: New file.
31638         * lib/ceilf.c: New file.
31639         * m4/ceilf.m4: New file.
31640         * lib/math.in.h (ceilf): New declaration.
31641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
31642         HAVE_DECL_CEILF.
31643         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
31644         HAVE_DECL_CEILF.
31645         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
31646
31647 2007-10-04  Bruno Haible  <bruno@clisp.org>
31648
31649         * modules/floorl-tests: New file.
31650         * tests/test-floorl.c: New file.
31651
31652         * modules/floorl: New file.
31653         * lib/floorl.c: Replace entire file.
31654         * m4/floorl.m4: New file.
31655         * lib/math.in.h (floorl): Replace declaration.
31656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
31657         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
31658         * doc/functions/floorl.texi: Mention the 'floorl' module.
31659         * modules/mathl (Files): Remove lib/floorl.c.
31660         (Depends-on): Add floorl.
31661
31662 2007-10-04  Bruno Haible  <bruno@clisp.org>
31663
31664         * modules/floorf-tests: New file.
31665         * tests/test-floorf.c: New file.
31666
31667         * modules/floorf: New file.
31668         * lib/floor.c: New file.
31669         * lib/floorf.c: New file.
31670         * m4/floorf.m4: New file.
31671         * lib/math.in.h (floorf): New declaration.
31672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
31673         HAVE_DECL_FLOORF.
31674         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
31675         HAVE_DECL_FLOORF.
31676         * doc/functions/floorf.texi: Mention the 'floorf' module.
31677
31678 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
31679             Bruno Haible  <bruno@clisp.org>
31680
31681         Advertise for the Git server instead of the CVS server.
31682         * doc/gnulib-intro.texi (Steady Development): Mention the Git
31683         repository instead of the CVS one.
31684         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
31685         about all VCS systems generically.
31686         * doc/gnulib.texi (Introduction): Capitalize `Git'.
31687
31688 2007-10-04  Bruno Haible  <bruno@clisp.org>
31689
31690         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
31691         means.
31692         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
31693
31694 2007-10-04  Bruno Haible  <bruno@clisp.org>
31695
31696         * modules/truncl-tests: New file.
31697         * tests/test-truncl.c: New file.
31698
31699         * modules/truncl: New file.
31700         * lib/truncl.c: New file.
31701         * m4/truncl.m4: New file.
31702         * lib/math.in.h (truncl): New declaration.
31703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
31704         HAVE_DECL_TRUNCL.
31705         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
31706         HAVE_DECL_TRUNCL.
31707         * doc/functions/truncl.texi: Mention the 'truncl' module.
31708
31709 2007-10-04  Bruno Haible  <bruno@clisp.org>
31710
31711         * modules/truncf-tests: New file.
31712         * tests/test-truncf.c: New file.
31713
31714         * modules/truncf: New file.
31715         * lib/trunc.c: Make paramerizable through USE_* macros.
31716         * lib/truncf.c: New file.
31717         * m4/truncf.m4: New file.
31718         * lib/math.in.h (truncf): New declaration.
31719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
31720         HAVE_DECL_TRUNCF.
31721         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
31722         HAVE_DECL_TRUNCF.
31723         * doc/functions/truncf.texi: Mention the 'truncf' module.
31724
31725 2007-10-03  Bruno Haible  <bruno@clisp.org>
31726
31727         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31728         augmentation also for tests modules.
31729         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
31730         * modules/atexit-tests (Makefile.am): Likewise.
31731         * modules/binary-io-tests (Makefile.am): Likewise.
31732         * modules/c-strcase-tests (Makefile.am): Likewise.
31733         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
31734         * modules/canonicalize-tests (Makefile.am): Likewise.
31735         * modules/closein-tests (Makefile.am): Likewise.
31736         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31737         * modules/freadahead-tests (Makefile.am): Likewise.
31738         * modules/fseek-tests (Makefile.am): Likewise.
31739         * modules/fseeko-tests (Makefile.am): Likewise.
31740         * modules/ftell-tests (Makefile.am): Likewise.
31741         * modules/ftello-tests (Makefile.am): Likewise.
31742         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
31743         * modules/isnanl-tests (Makefile.am): Likewise.
31744         * modules/lseek-tests (Makefile.am): Likewise.
31745         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31746         * modules/mbscasestr-tests (Makefile.am): Likewise.
31747         * modules/mbschr-tests (Makefile.am): Likewise.
31748         * modules/mbscspn-tests (Makefile.am): Likewise.
31749         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31750         * modules/mbspbrk-tests (Makefile.am): Likewise.
31751         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31752         * modules/mbsrchr-tests (Makefile.am): Likewise.
31753         * modules/mbsspn-tests (Makefile.am): Likewise.
31754         * modules/mbsstr-tests (Makefile.am): Likewise.
31755         * modules/printf-posix-tests (Makefile.am): Likewise.
31756         * modules/snprintf-posix-tests (Makefile.am): Likewise.
31757         * modules/sprintf-posix-tests (Makefile.am): Likewise.
31758         * modules/tsearch-tests (Makefile.am): Likewise.
31759         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31760         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31761         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31762         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31763         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31764         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31765         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31766         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31767         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
31768         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
31769         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31770         * modules/xstrtol-tests (Makefile.am): Likewise.
31771         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31772         * modules/yesno-tests (Makefile.am): Likewise.
31773
31774 2007-10-03  Bruno Haible  <bruno@clisp.org>
31775
31776         * modules/trunc-tests: New file.
31777         * tests/test-trunc.c: New file.
31778
31779         * modules/trunc: New file.
31780         * lib/trunc.c: New file.
31781         * m4/trunc.m4: New file.
31782         * lib/math.in.h (trunc): New declaration.
31783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
31784         HAVE_DECL_TRUNC.
31785         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
31786         HAVE_DECL_TRUNC.
31787         * doc/functions/trunc.texi: Mention the 'trunc' module.
31788
31789 2007-10-03  Bruno Haible  <bruno@clisp.org>
31790
31791         * tests/test-fpending.c: New file, mostly copied
31792         from coreutils/lib/t-fpending.c.
31793         * modules/fpending-tests: New file.
31794
31795 2007-10-03  Bruno Haible  <bruno@clisp.org>
31796
31797         Port the stdio extensions to QNX (untested).
31798         * lib/fseterr.c (fseterr): Add support for QNX.
31799         * lib/fbufmode.c (fbufmode): Likewise.
31800         * lib/freadable.c (freadable): Likewise.
31801         * lib/fwritable.c (fwritable): Likewise.
31802         * lib/freading.c (freading): Likewise.
31803         * lib/fwriting.c (fwriting): Likewise.
31804         * lib/freadahead.c (freadahed): Likewise.
31805         * lib/fpurge.c (fpurge): Likewise.
31806         * lib/fseeko.c (rpl_fseeko): Likewise.
31807
31808 2007-10-03  Bruno Haible  <bruno@clisp.org>
31809             Jim Meyering  <jim@meyering.net>
31810             Eric Blake  <ebb9@byu.net>
31811
31812         * doc/relocatable.texi: Use @command instead of @program.
31813
31814 2007-10-02  Jim Meyering  <jim@meyering.net>
31815
31816         Perform one more "_.h" -> ".in.h" substitution.
31817         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
31818         instead of unistd_.h here, too.
31819
31820 2007-10-01  Bruno Haible  <bruno@clisp.org>
31821
31822         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
31823         Needed for the alloca-opt module.
31824
31825 2007-09-30  Bruno Haible  <bruno@clisp.org>
31826
31827         * lib/alloca.in.h: Renamed from lib/alloca_.h.
31828         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
31829         alloca_.h.
31830         * lib/argz.in.h: Renamed from lib/argz_.h.
31831         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
31832         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
31833         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
31834         byteswap_.h.
31835         * lib/dirent.in.h: Renamed from lib/dirent_.h.
31836         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
31837         dirent_.h.
31838         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
31839         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
31840         fcntl_.h.
31841         * lib/float.in.h: Renamed from lib/float_.h.
31842         * modules/float (Files, Makefile.am): Use float.in.h instead of
31843         float_.h.
31844         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
31845         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
31846         fnmatch_.h.
31847         * lib/getopt.in.h: Renamed from lib/getopt_.h.
31848         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
31849         getopt_.h.
31850         * lib/glob.in.h: Renamed from lib/glob_.h.
31851         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
31852         * lib/iconv.in.h: Renamed from lib/iconv_.h.
31853         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
31854         iconv_.h.
31855         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
31856         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
31857         inttypes_.h.
31858         * lib/locale.in.h: Renamed from lib/locale_.h.
31859         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
31860         locale_.h.
31861         * lib/math.in.h: Renamed from lib/math_.h.
31862         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
31863         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
31864         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
31865         of netinet_in_.h. Add dependency.
31866         * lib/poll.in.h: Renamed from lib/poll_.h.
31867         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
31868         * lib/search.in.h: Renamed from lib/search_.h.
31869         * modules/search (Files, Makefile.am): Use search.in.h instead of
31870         search_.h.
31871         * lib/signal.in.h: Renamed from lib/signal_.h.
31872         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
31873         _signal.h.
31874         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
31875         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
31876         stdbool_.h.
31877         * lib/stdint.in.h: Renamed from lib/stdint_.h.
31878         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
31879         stdint_.h.
31880         * lib/stdio.in.h: Renamed from lib/stdio_.h.
31881         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
31882         stdio_.h.
31883         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
31884         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
31885         stdlib_.h.
31886         * lib/string.in.h: Renamed from lib/string_.h.
31887         * modules/string (Files, Makefile.am): Use string.in.h instead of
31888         string_.h.
31889         * doc/gnulib-tool.texi (Initial import): Update.
31890         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
31891         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
31892         of sys_select_.h. Add dependency.
31893         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
31894         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
31895         of sys_socket_.h.
31896         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
31897         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
31898         sys_stat_.h.
31899         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
31900         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
31901         sys_time_.h.
31902         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
31903         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
31904         sysexits_.h.
31905         * lib/time.in.h: Renamed from lib/time_.h.
31906         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
31907         * lib/unistd.in.h: Renamed from lib/unistd_.h.
31908         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
31909         unistd_.h.
31910         * lib/wchar.in.h: Renamed from lib/wchar_.h.
31911         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
31912         wchar_.h.
31913         * lib/wctype.in.h: Renamed from lib/wctype_.h.
31914         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
31915         wctype_.h.
31916         * build-aux/bootstrap (slurp): Update.
31917         * lib/.cppi-disable: Update.
31918
31919 2007-09-30  Bruno Haible  <bruno@clisp.org>
31920
31921         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
31922         Needed on BeOS.
31923
31924 2007-09-30  Bruno Haible  <bruno@clisp.org>
31925
31926         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
31927
31928 2007-09-29  Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
31931
31932 2007-09-29  Bruno Haible  <bruno@clisp.org>
31933
31934         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
31935         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
31936         * build-aux/install-reloc: Compile also areadlink.c.
31937         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
31938
31939 2007-09-29  Bruno Haible  <bruno@clisp.org>
31940
31941         * gnulib-tool (func_emit_initmacro_done): Indentation.
31942
31943 2007-09-29  Bruno Haible  <bruno@clisp.org>
31944
31945         * README: Add CVS checkout update instructions.
31946         Info from Bob Proulx <bob@proulx.com>.
31947
31948 2007-09-28  Eric Blake  <ebb9@byu.net>
31949
31950         Provide move-if-change.
31951         * build-aux/move-if-change: New file, based on best practice
31952         rather than any canonical upstream location.
31953
31954 2007-09-28  Jim Meyering  <jim@meyering.net>
31955
31956         Fix canonicalize loop-detection corner case.
31957         Do not attempt to stat the symlink values stored via seen_triple.
31958         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
31959         on linux-2.6.18, (but not 2.6.22).
31960         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
31961         triple_compare.  The former compares dev,ino,filename, while the latter
31962         would actually stat dirname(filename) when dev and ino were equal.
31963         * lib/hash-triple.c: Install <string.h>.
31964         (STREQ): Define.
31965         (triple_compare_ino_str): New function.
31966         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
31967
31968 2007-09-28  Eric Blake  <ebb9@byu.net>
31969
31970         Enforce that AC_REPLACE_FUNCS files exist.
31971         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
31972         override check for typos.
31973
31974         Fix test-closein on Solaris 10.
31975         * tests/test-closein.c (main): Don't assume stdin can be inherited
31976         closed on all systems.
31977         * tests/test-closein.sh: Likewise.
31978         Reported by Piotr Tarnowski.
31979
31980 2007-09-28  Jim Meyering  <jim@meyering.net>
31981
31982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
31983
31984 2007-09-27  Jim Meyering  <jim@meyering.net>
31985
31986         canonicalize: Avoid a false-positive cycle failure.
31987         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
31988         Sort.  Remove cycle-check.
31989         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
31990         not cycle-check.h.
31991         (seen_triple): New function.
31992         (canonicalize_filename_mode): Use it instead of cycle-check.
31993         * tests/test-canonicalize.c: Add a test for this bug.
31994         * tests/test-canonicalize.sh: Set up and run the test.
31995
31996         New module, file-set, from coreutils.
31997         * modules/file-set: Define it.
31998         * lib/file-set.c, lib/file-set.h: Implement.
31999
32000         New module, hash-triple, from coreutils.
32001         * modules/hash-triple: Define it.
32002         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32003
32004 2007-09-25  Eric Blake  <ebb9@byu.net>
32005
32006         Fix strerror on Interix.
32007         * lib/string_.h (strerror): Declare replacement.
32008         * doc/functions/strerror.texi (strerror): Document the Interix
32009         shortcoming.
32010         * modules/string (Makefile.am): Support new hooks.
32011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32012         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32013         gl_FUNC_STRERROR_SEPARATE.
32014         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32015         * lib/strerror.c (rpl_strerror): Provide replacement.
32016         * modules/strerror (Depends-on): Add string.
32017         (configure.ac): Detect use of module.
32018         * tests/test-strerror.c: New file.
32019         * modules/strerror-tests: New test module.
32020         * modules/argp (Depends-on): Add strerror.
32021         * modules/error (Depends-on): Likewise.
32022         Reported by Martin Koeppe.
32023
32024 2007-09-24  Bruno Haible  <bruno@clisp.org>
32025
32026         * README: Update git instructions.
32027
32028 2007-09-24  Eric Blake  <ebb9@byu.net>
32029
32030         Revert fpending breakage from 2007-09-08.
32031         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32032         __fpending.c.
32033
32034 2007-09-24  Jim Meyering  <jim@meyering.net>
32035
32036         filenamecat.c: Add a test.
32037         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32038         showing how the function works when DIR is the empty string.
32039
32040 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32041
32042         * tests/test-canonicalize.sh: Turn on executable bit.
32043
32044 2007-09-19  Eric Blake  <ebb9@byu.net>
32045
32046         * README: Update CVS instructions.
32047
32048 2007-09-18  Bruno Haible  <bruno@clisp.org>
32049
32050         * modules/areadlink: New file.
32051         * lib/areadlink.h (areadlink): New declaration.
32052         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32053
32054 2007-09-17  Jim Meyering  <jim@meyering.net>
32055
32056         * lib/savewd.c (ESTALE) [!defined]: Define.
32057         Reported to be required on Interix by Martin Koeppe.
32058
32059 2007-09-17  Bruno Haible  <bruno@clisp.org>
32060
32061         * gnulib-tool (func_version): Use $version.
32062
32063 2007-09-16  Bruno Haible  <bruno@clisp.org>
32064
32065         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32066         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32067         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32068         Reported by Greg Schafer <gschafer@zip.com.au>.
32069
32070 2007-09-15  Bruno Haible  <bruno@clisp.org>
32071
32072         * gnulib-tool (sed): Try a little harder to make bash understand the
32073         alias.
32074         Reported by Bruce Korb <bruce.korb@gmail.com>.
32075
32076 2007-09-13  Eric Blake  <ebb9@byu.net>
32077
32078         * ChangeLog: Remove conflict markers.
32079
32080 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32081
32082         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32083         Reported by Bruno Haible <bruno@clisp.org>.
32084
32085 2007-09-12  Bruno Haible  <bruno@clisp.org>
32086
32087         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32088         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32089         is not defined.
32090
32091 2007-09-12  Eric Blake  <ebb9@byu.net>
32092
32093         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32095         Autoconf definition.
32096         * modules/euidaccess (Depends-on): Add extensions, for
32097         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32098         * modules/fnmatch (Depends-on): Likewise.
32099         * modules/getaddrinfo (Depends-on): Likewise.
32100         * modules/getdelim (Depends-on): Likewise.
32101         * modules/getline (Depends-on): Likewise.
32102         * modules/getsubopt (Depends-on): Likewise.
32103         * modules/gettext (Depends-on): Likewise.
32104         * modules/group-member (Depends-on): Likewise.
32105         * modules/mbchar (Depends-on): Likewise.
32106         * modules/memmem (Depends-on): Likewise.
32107         * modules/mempcpy (Depends-on): Likewise.
32108         * modules/memrchr (Depends-on): Likewise.
32109         * modules/pagealign_alloc (Depends-on): Likewise.
32110         * modules/readutmp (Depends-on): Likewise.
32111         * modules/stpcpy (Depends-on): Likewise.
32112         * modules/stpncpy (Depends-on): Likewise.
32113         * modules/strchrnul (Depends-on): Likewise.
32114         * modules/strndup (Depends-on): Likewise.
32115         * modules/strsep (Depends-on): Likewise.
32116         * modules/strverscmp (Depends-on): Likewise.
32117         * modules/vasprintf (Depends-on): Likewise.
32118         * modules/wcwidth (Depends-on): Likewise.
32119         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32120         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32123         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32124         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32125         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32126         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32127         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32128         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32130         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32131         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32132         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32133         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32134         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32135         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32136         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32137         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32139         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32140         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32141         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32142         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32143         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32145         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32146         so that lock.m4 can be used in gettext without extensions module.
32147
32148 2007-09-11  Bruno Haible  <bruno@clisp.org>
32149
32150         * m4/isc-posix.m4: Remove file.
32151         Suggested by Eric Blake.
32152
32153 2007-09-11  Eric Blake  <ebb9@byu.net>
32154
32155         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32156
32157 2007-09-10  Bruno Haible  <bruno@clisp.org>
32158
32159         * posix-modules: Fix typo in error message.
32160         Reported by Matt <mkraai@beckman.com>.
32161
32162 2007-09-09  Bruno Haible  <bruno@clisp.org>
32163
32164         * doc/functions/getdelim.texi: Update list of platforms lacking the
32165         function.
32166         * doc/functions/getline.texi: Likewise.
32167
32168 2007-09-09  Jim Meyering  <jim@meyering.net>
32169
32170         * lib/hash.c (hash_initialize): Detect calloc failure.
32171         Reported by Bruno Haible.
32172
32173 2007-09-09  Bruno Haible  <bruno@clisp.org>
32174
32175         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32176         malloc or realloc fails.
32177
32178 2007-09-09  Bruno Haible  <bruno@clisp.org>
32179
32180         * modules/getcwd (Depends-on): Add malloc-posix.
32181         * modules/glob (Depends-on): Likewise.
32182         * modules/putenv (Depends-on): Likewise.
32183         * modules/strdup (Depends-on): Likewise.
32184         * modules/getdelim (Depends-on): Add realloc-posix.
32185         * modules/read-file (Depends-on): Likewise.
32186
32187 2007-09-09  Bruno Haible  <bruno@clisp.org>
32188
32189         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32190         (gl_FUNC_MALLOC_POSIX): Require it.
32191         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32192         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32193         * modules/realloc (Files): Add m4/malloc.m4.
32194         * modules/calloc (Files): Likewise.
32195
32196 2007-09-09  Bruno Haible  <bruno@clisp.org>
32197
32198         * modules/malloc-posix: New file.
32199         * modules/malloc (Depends-on): Add malloc-posix.
32200         * lib/malloc.c: Include errno.h.
32201         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32202         and a POSIX-compatible malloc into a single function. Set ENOMEM
32203         when returning NULL.
32204         * m4/malloc.m4: New file.
32205         * doc/functions/malloc.texi: Mention the malloc-posix module.
32206         * lib/stdlib_.h (malloc): New declaration.
32207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32208         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32209         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32210         and HAVE_MALLOC_POSIX.
32211
32212 2007-09-09  Bruno Haible  <bruno@clisp.org>
32213
32214         * modules/realloc-posix: New file.
32215         * modules/realloc (Depends-on): Add realloc-posix.
32216         * lib/realloc.c: Include errno.h.
32217         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32218         and a POSIX-compatible realloc into a single function. Set ENOMEM
32219         when returning NULL.
32220         * m4/realloc.m4: New file.
32221         * doc/functions/realloc.texi: Mention the realloc-posix module.
32222         * lib/stdlib_.h (realloc): New declaration.
32223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32224         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32225         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32226         and HAVE_REALLOC_POSIX.
32227
32228 2007-09-09  Bruno Haible  <bruno@clisp.org>
32229
32230         * modules/calloc-posix: New file.
32231         * modules/calloc (Depends-on): Add calloc-posix.
32232         * lib/calloc.c: Include errno.h.
32233         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32234         and a POSIX-compatible calloc into a single function. Set ENOMEM
32235         when returning NULL.
32236         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32237         * doc/functions/calloc.texi: Mention the calloc-posix module.
32238         * lib/stdlib_.h (calloc): New declaration.
32239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32240         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32241         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32242         and HAVE_CALLOC_POSIX.
32243
32244 2007-09-09  Bruno Haible  <bruno@clisp.org>
32245
32246         Allow for modules to show an arbitrary notice.
32247         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32248         * gnulib-tool: New option --extract-notice.
32249         (func_usage): Document it.
32250         (sed_extract_prog): Update.
32251         (func_get_notice): New function.
32252         (func_modules_notice): New function.
32253         (func_import, func_create_testdir): Invoke it.
32254         Suggested by Jim Meyering.
32255
32256 2007-09-09  Bruno Haible  <bruno@clisp.org>
32257
32258         * gnulib-tool: New options --verbose, --quiet.
32259         (func_usage): Document them.
32260         (verbose): New variable.
32261         (func_execute_command): New function.
32262         (func_import): Don't show the module list and the file list if
32263         $verbose < 0.
32264         (func_create_testdir): Likewise. Use func_execute_command.
32265         (func_create_megatestdir): Use func_execute_command.
32266
32267 2007-09-08  Bruno Haible  <bruno@clisp.org>
32268
32269         * gnulib-tool (func_import): Prefer rsync over wget when available,
32270         for fetching the PO files.
32271
32272 2007-09-08  Bruno Haible  <bruno@clisp.org>
32273
32274         * posix-modules: New file. Portions copied from gnulib-tool.
32275         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32276
32277 2007-09-08  Jim Meyering  <jim@meyering.net>
32278
32279         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32280         * lib/fpending.h: Rename from __fpending.h.
32281         * lib/fpending.c: Rename from __fpending.c.
32282         Include "fpending.h", not "__fpending.h".
32283         * lib/__fpending.h, lib/__fpending.c: Remove files.
32284         * modules/fpending (Files): Reflect new file names.
32285         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32286
32287 2007-09-08  Bruno Haible  <bruno@clisp.org>
32288
32289         * m4/inttypes-h.m4: Remove stub file.
32290
32291 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32292
32293         * doc/headers/stdint.texi: Discuss #include_next issue.
32294
32295 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32296
32297         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32298
32299 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32300
32301         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32302         in variable name.
32303
32304 2007-09-03  Jim Meyering  <jim@meyering.net>
32305
32306         New module: git-version-gen.
32307         * modules/git-version-gen: New file.
32308
32309         Import changes from coreutils for bootstrap script.
32310
32311         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32312
32313         bootstrap: uses rsync to download the .po files
32314         * build-aux/bootstrap (po_download_command_format): New global.
32315         (download_po_files): Use rsync.
32316         (update_po_files): Don't remove .po files after download,
32317         so future rsync runs can take advantage of the copies.
32318
32319         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32320
32321         Solve the unnecessary-.po-file-regeneration problem once and for all.
32322         * build-aux/bootstrap (download_po_files): New function, renamed from
32323         get_translations.  Now, downloads, but doesn't update LINGUAS.
32324         (update_po_files): New function.
32325
32326         bootstrap: Ignore more.
32327         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32328         uniwidth to e.g., lib/.gitignore.
32329         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32330
32331         * build-aux/bootstrap: New setting: vc_ignore.
32332         (insert_sorted_if_absent): Create $file if absent.
32333         Adapt to new, possibly empty, list: $vc_ignore.
32334
32335         bootstrap: generate more ignorable names
32336         * build-aux/bootstrap (slurp): When generating ignorable names,
32337         also map .sin to .sed, .gperf to .c, and .y to .c.
32338
32339 2007-09-03  Jim Meyering  <jim@meyering.net>
32340
32341         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32342         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32343
32344 2007-09-02  Bruno Haible  <bruno@clisp.org>
32345
32346         Fix mis-recognition of 'mcs' on QNX 6.
32347         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32348         output contains the string "Mono".
32349         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32350         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32351
32352 2007-09-01  Bruno Haible  <bruno@clisp.org>
32353
32354         Fix collision between uniwidth/* and linebreak modules.
32355         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32356         u32_width): Remove declarations.
32357         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32358         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32359         streq3, streq2, streq1, streq0): Remove functions.
32360         (STREQ): Remove macro.
32361         (is_cjk_encoding): Remove function.
32362         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32363         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32364         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32365         * NEWS: Document the change.
32366
32367 2007-09-01  Bruno Haible  <bruno@clisp.org>
32368
32369         * lib/streq.h: Add double-inclusion guard.
32370
32371 2007-09-01  Karl Berry  <karl@gnu.org>
32372
32373         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32374
32375 2007-08-28  Jim Meyering  <jim@meyering.net>
32376
32377         Rename mreadlink_with_size to areadlink_with_size.
32378         * NEWS: Document the change.
32379         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32380         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32381         * lib/mreadlink.h: Rename this to...
32382         * lib/areadlink.h: ...this.
32383         * modules/mreadlink-with-size: Rename this to...
32384         * modules/areadlink-with-size: ...this.
32385         * lib/canonicalize.c: Reflect the renaming.
32386         * modules/canonicalize: Likewise.
32387
32388 2007-08-26  Bruno Haible  <bruno@clisp.org>
32389
32390         * gnulib-tool (func_import): When deciding which files to remove,
32391         consider also dangling symbolic links.
32392         Reported by Eric Blake.
32393
32394 2007-08-26  Bruno Haible  <bruno@clisp.org>
32395
32396         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32397
32398 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32399
32400         * lib/readline.c: Don't include getline.h, the prototype is now
32401         found in stdio.h.
32402
32403 2007-08-23  Jim Meyering  <jim@meyering.net>
32404
32405         Getdelim touchup.
32406         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32407         around the funlockfile call, since funlockfile never sets errno.
32408         Don't set errno upon failed realloc.
32409
32410 2007-08-22  Eric Blake  <ebb9@byu.net>
32411
32412         Getline touchups.
32413         * lib/getdelim.c (getdelim): Revert regression that required *n to
32414         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32415         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32416         getdelim, rather than whether implementation is missing.
32417         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32418         * lib/stdio_.h (getline): Also declare if replacement is
32419         required.
32420         * doc/functions/getdelim.texi: New file.
32421         * doc/functions/getline.texi: Likewise.
32422         * doc/gnulib.texi (Function Substitutes): Add new files.
32423         Reported by Bruno Haible.
32424
32425 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32426
32427         * users.txt: Add Guile.
32428
32429 2007-08-22  Eric Blake  <ebb9@byu.net>
32430
32431         * tests/test-getdelim.c (main): Use remove, not unlink.
32432         * tests/test-getline.c (main): Likewise.
32433
32434         Move getline and getdelim into stdio.h, per POSIX 200x.
32435         * modules/getline (Files): Remove getline.h.
32436         (Depends-on): Add stdio.
32437         (configure.ac): Add module indicator.
32438         * modules/getdelim (Files): Remove getdelim.h.
32439         (Depends-on): Add stdio.
32440         (configure.ac): Add module indicator.
32441         * modules/stdio (Makefile.am): Work with new indicators.
32442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32444         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32445         * lib/getdelim.h: Delete.
32446         * lib/getline.h: Delete.
32447         * lib/stdio_.h (getdelim, getline): Declare.
32448         * modules/getdelim-tests: New module.
32449         * modules/getline-tests: Likewise.
32450         * tests/test-getdelim.c: New file.
32451         * tests/test-getline.c: Likewise.
32452         * NEWS: Document the change.
32453         * lib/getline.c: Update choice of header.
32454         * lib/csharpcomp.c: Likewise.
32455         * lib/getpass.c: Likewise.
32456         * lib/javacomp.c: Likewise.
32457         * lib/javaversion.c: Likewise.
32458         * lib/yesno.c: Likewise.
32459         * lib/getdelim.c: Likewise.
32460         (getdelim): Set errno on failure, and avoid memory leak.
32461
32462 2007-08-19  Bruno Haible  <bruno@clisp.org>
32463
32464         * modules/closein (Depends-on): Add freadahead.
32465         * lib/closein.c: Include freadahead.h.
32466         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32467         is zero.
32468
32469 2007-08-19  Bruno Haible  <bruno@clisp.org>
32470
32471         * modules/freadahead-tests: New file.
32472         * tests/test-freadahead.sh: New file.
32473         * tests/test-freadahead.c: New file.
32474
32475         * modules/freadahead: New file.
32476         * lib/freadahead.h: New file.
32477         * lib/freadahead.c: New file.
32478         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32479         fbufmode, fpurge, freadable, fwritable.
32480
32481 2007-08-19  Eric Blake  <ebb9@byu.net>
32482
32483         Test yesno in combination with closein.
32484         * lib/yesno.c (yesno): Document use of stdin.
32485         * modules/yesno-tests (Files): New module.
32486         * tests/test-yesno.c (main): New file.
32487         * tests/test-yesno.sh: Likewise.
32488
32489 2007-08-19  Bruno Haible  <bruno@clisp.org>
32490
32491         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32492         * lib/fseeko.c (rpl_fseeko): Likewise.
32493         * lib/fseterr.c (fseterr): Likewise.
32494
32495 2007-08-19  Bruno Haible  <bruno@clisp.org>
32496
32497         * tests/test-lseek.c (main): Disable a test for BeOS.
32498         * doc/functions/lseek.texi: Document the BeOS bug.
32499
32500 2007-08-19  Bruno Haible  <bruno@clisp.org>
32501             Eric Blake  <ebb9@byu.net>
32502
32503         * lib/lseek.c: Include <sys/stat.h>.
32504         (rpl_lseek): Add workaround code also for Unix platforms.
32505         Needed for BeOS.
32506         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32507         * doc/functions/lseek.texi: Document BeOS definiency.
32508
32509 2007-08-18  Bruno Haible  <bruno@clisp.org>
32510
32511         * modules/fstrcmp-tests: New file.
32512         * tests/test-fstrcmp.c: New file.
32513
32514 2007-08-18  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/fstrcmp: New file, from GNU gettext with modifications.
32517         * lib/fstrcmp.h: New file, from GNU gettext.
32518         * lib/fstrcmp.c: New file, from GNU gettext.
32519         * MODULES.html.sh (String handling): Add fstrcmp.
32520
32521 2007-08-18  Bruno Haible  <bruno@clisp.org>
32522
32523         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32524         'bool'.
32525         (diag, compareseq): Remove const from the ctxt argument.
32526         (USE_HEURISTIC): Undefine at the end.
32527
32528 2007-08-18  Jim Meyering  <jim@meyering.net>
32529
32530         New file: lib/idcache.h
32531         * NEWS: Mention the addition.
32532         * modules/idcache (Files): Add lib/idcache.h
32533         * lib/idcache.c: Include "idcache.h".
32534         Don't include <sys/types.h>.
32535         Add a FIXME comment.
32536         Move file-scoped "static" declarations to the top.
32537         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32538
32539 2007-08-17  Bruno Haible  <bruno@clisp.org>
32540         and Paul Eggert  <eggert@cs.ucla.edu>
32541
32542         * MODULES.html.sh: Add diffseq.
32543         * modules/diffseq: New file.
32544         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32545         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32546
32547 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32548
32549         Import changes from coreutils for bootstrap script.
32550
32551         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32552
32553         * build-aux/bootstrap (slurp): Work even in environments where
32554         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32555         current code does not slurp files whose names start with ".", and
32556         this looks like it might be a troublesome area.
32557
32558         2007-07-11  Jim Meyering  <jim@meyering.net>
32559
32560         If there's a GPL vN copyright comment, require that N == 3.
32561
32562         2007-07-08  Jim Meyering  <jim@meyering.net>
32563
32564         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32565         * build-aux/bootstrap (mam_template): Move definition out of loop.
32566
32567         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32568
32569         * build-aux/bootstrap (symlink_to_dir): Rename function from
32570         symlink_to_gnulib.  Add a directory parameter.  Update all
32571         callers.
32572         (cp_mark_as_generated): Also check for -- and link to -- files in
32573         gl/.
32574
32575         2007-07-08  Jim Meyering  <jim@meyering.net>
32576
32577         Adapt to deeper hierarchy in gnulib.
32578         * build-aux/bootstrap (symlink_to_dir): If the destination
32579         directory doesn't exist, create it. This is required at least for
32580         "lib/uniwidth/cjk.h".
32581
32582         2007-05-15  Jim Meyering  <jim@meyering.net>
32583
32584         * build-aux/bootstrap: Now that generated Makefile.am files
32585         are no longer under version control, they must be created at
32586         bootstrap time.
32587
32588 2007-08-14  Ben Pfaff  <blp@gnu.org>
32589
32590         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32591
32592 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32593
32594         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32595         given the changes below.
32596         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32597         even on hosts that have padding bits beyond the supported 64.
32598
32599 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32602         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32603         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32604         depends on it.
32605         (xstrtol_error): Remove.
32606         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32607         but with a different signature.
32608         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32609         * lib/xstrtol-error.c: Include exitfail.h.
32610         (xstrtol_fatal): New function, with a different signature from the
32611         old xstrtol_error, so that the caller need not worry about passing
32612         in an exit status, or about storage management of the option argument.
32613         (xstrtol_error): Now a static function.  Redo signature to
32614         implement xstrtol_fatal.  Output the correct number of hyphens in
32615         front of the option so that the caller need not worry about
32616         storage management.
32617         (N_): New macro.
32618         (_): Remove; not used now.
32619         * modules/xstrtol: Depend on getopt.
32620         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
32621         of old STRTOL_FATAL_ERROR macro.
32622         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
32623         of test program.
32624         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
32625         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
32626
32627 2007-08-08  Eric Blake  <ebb9@byu.net>
32628
32629         * lib/xstrtol-error.c: Add missing include.
32630
32631         Move xstrtol messages into gnulib domain, when --pobase is used.
32632         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
32633         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
32634         * modules/xstrtol (Files): Distribute new file.
32635         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
32636         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
32637         * tests/test-xstrtol.c: ...into new file.
32638         * tests/test-xstrtoul.c: Also test xstrtoul.
32639         * tests/test-xstrtoimax.c: Also test xstrtoimax.
32640         * tests/test-xstrtoumax.c: Also test xstrtoumax.
32641         * tests/test-xstrtol.sh: Drive the tests.
32642         * tests/test-xstrtoimax.sh: Likewise.
32643         * tests/test-xstrtoumax.sh: Likewise.
32644         * modules/xstrtol-tests: New module.
32645         * modules/xstrtoimax-tests: Likewise.
32646         * modules/xstrtoumax-tests: Likewise.
32647
32648 2007-08-08  Jim Meyering  <jim@meyering.net>
32649
32650         New function: mfile_name_concat.
32651         * lib/filenamecat.c (mfile_name_concat): New function, just like
32652         file_name_concat, but return NULL upon failure rather than exiting
32653         with a diagnostic.
32654         * lib/filenamecat.h: Declare it.
32655
32656 2007-08-07  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
32659         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
32660         warning from gcc.
32661         Reported by Eric Blake.
32662
32663 2007-08-07  Simon Josefsson  <simon@josefsson.org>
32664
32665         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
32666         * modules/crypto/arcfour (License): Likewise.
32667         * modules/crypto/des-tests (License): Likewise.
32668         * modules/crypto/gc-arctwo-tests (License): Likewise.
32669         * modules/crypto/gc-des-tests (License): Likewise.
32670         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
32671         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
32672         * modules/crypto/gc-md2-tests (License): Likewise.
32673         * modules/crypto/gc-md4-tests (License): Likewise.
32674         * modules/crypto/gc-md5-tests (License): Likewise.
32675         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
32676         * modules/crypto/gc-rijndael-tests (License): Likewise.
32677         * modules/crypto/gc-sha1-tests (License): Likewise.
32678         * modules/crypto/gc-tests (License): Likewise.
32679         * modules/crypto/hmac-md5 (License): Likewise.
32680         * modules/crypto/hmac-sha1 (License): Likewise.
32681         * modules/crypto/md2-tests (License): Likewise.
32682         * modules/crypto/md4-tests (License): Likewise.
32683         * modules/crypto/md5 (License): Likewise.
32684         * modules/crypto/rijndael (License): Likewise.
32685         * modules/crypto/sha1 (License): Likewise.
32686         * modules/memxor (License): Likewise.
32687
32688 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
32689         and Bruno Haible  <bruno@clisp.org>
32690
32691         * NEWS: Describe interface changes to human, xstrtol.
32692         * lib/human.h: Include <xstrtol.h>.
32693         (human_options): Return enum strtol_error, not int.  Remove
32694         bool arg; take int * instead.
32695         * lib/human.c: Don't include "gettext.h".
32696         (_): Remove; no longer used.
32697         Don't include <xstrtol.h>, since human.h does it.
32698         (human_options): Adjust to abovementioned interface changes.
32699         Do not report error to stderr; that's now the caller's
32700         responsibility.
32701         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
32702         interface change.
32703         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
32704         Str, Argument_type_string.  All uses changed.  Put " argument"
32705         in diagnostics to make them clearer.  Change wording of suffix
32706         message for clarity.
32707         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
32708         Argument_type_string.
32709         (STRTOL_FATAL_WARN): Remove; no longer used.
32710         * modules/human (Depends-on): Remove gettext-h.
32711
32712 2007-08-06  Simon Josefsson  <simon@josefsson.org>
32713
32714         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
32715
32716 2007-07-31  Bruno Haible  <bruno@clisp.org>
32717
32718         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
32719         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
32720         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
32721
32722 2007-07-31  Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
32725         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
32726
32727 2007-07-30  Bruno Haible  <bruno@clisp.org>
32728
32729         * modules/base64 (License): Use the synonymous term "LGPLv2+".
32730         * modules/c-ctype (License): Likewise.
32731         * modules/c-strcase (License): Likewise.
32732         * modules/check-version (License): Likewise.
32733         * modules/iconv (License): Likewise.
32734         * modules/iconv_open (License): Likewise.
32735         * modules/read-file (License): Likewise.
32736         * modules/striconv (License): Likewise.
32737         * modules/strverscmp (License): Likewise.
32738         * modules/vasprintf (License): Likewise.
32739         * modules/crypto/des (License): Likewise.
32740         * modules/crypto/gc (License): Likewise.
32741         * modules/crypto/gc-arcfour (License): Likewise.
32742         * modules/crypto/gc-arctwo (License): Likewise.
32743         * modules/crypto/gc-des (License): Likewise.
32744         * modules/crypto/gc-hmac-md5 (License): Likewise.
32745         * modules/crypto/gc-hmac-sha1 (License): Likewise.
32746         * modules/crypto/gc-md2 (License): Likewise.
32747         * modules/crypto/gc-md4 (License): Likewise.
32748         * modules/crypto/gc-md5 (License): Likewise.
32749         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
32750         * modules/crypto/gc-random (License): Likewise.
32751         * modules/crypto/gc-rijndael (License): Likewise.
32752         * modules/crypto/gc-sha1 (License): Likewise.
32753         * modules/crypto/md2 (License): Likewise.
32754         * modules/crypto/md4 (License): Likewise.
32755
32756 2007-07-30  Jim Meyering  <jim@meyering.net>
32757
32758         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
32759         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
32760         it has valid stat data.  This bug would cause du not to count the
32761         sizes of inaccessible directories.
32762         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
32763         in <http://bugzilla.redhat.com/250077>.
32764
32765 2007-07-25  Peter O'Gorman  <peter@pogma.com>
32766             Bruno Haible  <bruno@clisp.org>
32767
32768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
32769         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
32770         #include_next, gives a diagnostic about it, but reports no error in
32771         the exit code.
32772         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
32773
32774 2007-07-24  Ben Pfaff  <blp@gnu.org>
32775
32776         Improve name: "count-one-bits" is better than "popcount".
32777         * MODULES.html.sh: Update name.
32778         * lib/popcount.h: Renamed lib/count-one-bits.h.
32779         (popcount): Renamed count_one_bits.
32780         (popcountl): Renamed count_one_bits_l.
32781         (popcountll): Renamed count_one_bits_ll.
32782         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
32783         * modules/popcount: Renamed module/count-one-bits.
32784         * modules/popcount-tests: Renamed module/count-one-bits-tests.
32785         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
32786
32787 2007-07-23  Ben Pfaff  <blp@gnu.org>
32788
32789         * lib/popcount.h (popcount32): Reduce size of constants, to allow
32790         better code generation, and add U to large constants to avoid
32791         warnings, in non-GCC case.
32792         Suggested by Bruno Haible.
32793
32794 2007-07-23  Ben Pfaff  <blp@gnu.org>
32795
32796         * lib/popcount.h: Use verify_true instead of if...abort.
32797         * modules/popcount: Depend on verify module.
32798         Suggested by Jim Meyering.
32799
32800 2007-07-23  Bruno Haible  <bruno@clisp.org>
32801
32802         * gnulib-tool (func_import): Create a .cvsignore file also when the
32803         directory is not yet in CVS but the toplevel directory is. When
32804         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
32805         Reported by Karl Berry.
32806
32807 2007-07-22  Ben Pfaff  <blp@gnu.org>
32808
32809         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
32810         case.
32811         Suggested by Eric Blake.
32812
32813 2007-07-22  Ben Pfaff  <blp@gnu.org>
32814
32815         New module: popcount.
32816         * MODULES.html.sh: Add popcount.
32817         * modules/popcount: New file.
32818         * modules/popcount-tests: New file.
32819         * tests/test-popcount.c: New file.
32820         * lib/popcount.h: New file.
32821         * m4/popcount.m4: New file.
32822
32823 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32824
32825         * build-aux/announce-gen: Update to GPLv3.
32826
32827         * build-aux/config.guess: Update from config.
32828
32829 2007-07-21  Bruno Haible  <bruno@clisp.org>
32830
32831         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
32832         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
32833
32834 2007-07-20  Jim Meyering  <jim@meyering.net>
32835
32836         * check-module: Diagnose a self-dependency.
32837
32838 2007-07-19  Bruno Haible  <bruno@clisp.org>
32839
32840         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
32841         empty.
32842         Reported by Eric Blake.
32843
32844 2007-07-18  Bruno Haible  <bruno@clisp.org>
32845
32846         * gnulib-tool: New options --po-base, --po-domain.
32847         (func_usage): Document them.
32848         (pobase, po_domain): New variables.
32849         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
32850         DEFAULT_TEXT_DOMAIN.
32851         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
32852         (func_import): Consider pobase and po_domain. Create a po/ directory.
32853         (func_create_testdir): Set pobase and po_domain to empty.
32854         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
32855         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
32856
32857 2007-07-18  Bruno Haible  <bruno@clisp.org>
32858
32859         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32860         EXTRA_DIST augmentation for files in build-aux/.
32861
32862 2007-07-16  Bruno Haible  <bruno@clisp.org>
32863
32864         * modules/lseek (License): Use the synonymous term "LGPLv2+".
32865         * modules/getdelim (License): Likewise.
32866
32867 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32868
32869         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
32870         * modules/d-type (License): Likewise.
32871         * modules/extensions (License): Likewise.
32872         * modules/fnmatch (License): Likewise.
32873         * modules/fseeko (License): Likewise.
32874         * modules/getaddrinfo (License): Likewise.
32875         * modules/getline (License): Likewise.
32876         * modules/getlogin_r (License): Likewise.
32877         * modules/getpass (License): Likewise.
32878         * modules/gettimeofday (License): Likewise.
32879         * modules/glob (License): Likewise.
32880         * modules/inet_ntop (License): Likewise.
32881         * modules/malloc (License): Likewise.
32882         * modules/malloca (License): Likewise.
32883         * modules/memmem (License): Likewise.
32884         * modules/mempcpy (License): Likewise.
32885         * modules/memset (License): Likewise.
32886         * modules/minmax (License): Likewise.
32887         * modules/mktime (License): Likewise.
32888         * modules/netinet_in (License): Likewise.
32889         * modules/pathmax (License): Likewise.
32890         * modules/poll (License): Likewise.
32891         * modules/regex (License): Likewise.
32892         * modules/snprintf (License): Likewise.
32893         * modules/stdbool (License): Likewise.
32894         * modules/stdint (License): Likewise.
32895         * modules/stdio (License): Likewise.
32896         * modules/strcase (License): Likewise.
32897         * modules/strcasestr (License): Likewise.
32898         * modules/strdup (License): Likewise.
32899         * modules/string (License): Likewise.
32900         * modules/strndup (License): Likewise.
32901         * modules/strnlen (License): Likewise.
32902         * modules/strpbrk (License): Likewise.
32903         * modules/strptime (License): Likewise.
32904         * modules/strsep (License): Likewise.
32905         * modules/sys_select (License): Likewise.
32906         * modules/sys_socket (License): Likewise.
32907         * modules/sys_stat (License): Likewise.
32908         * modules/sys_time (License): Likewise.
32909         * modules/time (License): Likewise.
32910         * modules/time_r (License): Likewise.
32911         * modules/timegm (License): Likewise.
32912         * modules/unistd (License): Likewise.
32913         * modules/vsnprintf (License): Likewise.
32914         * modules/wctype (License): Likewise.
32915
32916 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32917
32918         * modules/argz (License): LGPLv2+.
32919
32920 2007-07-15  Karl Berry  <karl@gnu.org>
32921
32922         * doc/gnulib.texi: revise node structure per new fdl.texi.
32923
32924 2007-07-14  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
32927         the output file.
32928         * lib/uniname/uninames.h: Regenerated.
32929
32930 2007-07-14  Karl Berry  <karl@gnu.org>
32931
32932         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
32933         omitting sectioning and index commands.
32934
32935 2007-07-13  Bruno Haible  <bruno@clisp.org>
32936
32937         New gnulib-tool option --more-symlinks.
32938         * gnulib-tool (func_usage): Document --more-symlinks.
32939         (do_copyrights): New variable.
32940         Recognize option --more-symlinks.
32941         (func_import): Don't add a copyright notice transform to
32942         sed_transform_lib_file if do_copyrights is empty.
32943
32944 2007-07-13  Bruno Haible  <bruno@clisp.org>
32945
32946         * lib/vasnprintf.c (decimal_point_char): Define also if
32947         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
32948         && !NEED_PRINTF_DIRECTIVE_A.
32949         Reported by Clemens Koller <clemens.koller@anagramm.de> via
32950         Gary V. Vaughan <gary@gnu.org>.
32951
32952 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
32953
32954         * lib/inttypes_.h: Undo previous change, since it was fixed
32955         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
32956
32957 2007-07-13  Bruno Haible  <bruno@clisp.org>
32958
32959         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
32960         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
32961
32962 2007-07-13  Jim Meyering  <jim@meyering.net>
32963
32964         df: Don't fail for Tru64's "file-on-file mount".
32965         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
32966         so we fall through and use statfs instead.  Details here:
32967         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
32968         Reported by Albert Chin.
32969
32970 2007-07-13  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
32973         * modules/configmake (License): Likewise.
32974         * modules/gettext (License): Likewise.
32975         * modules/gettext-h (License): Likewise.
32976         * modules/include_next (License): Likewise.
32977         * modules/link-warning (License): Likewise.
32978         * modules/localcharset (License): Likewise.
32979         * modules/localename (License): Likewise.
32980         * modules/lock (License): Likewise.
32981         * modules/relocatable-lib-lgpl (License): Likewise.
32982         * modules/size_max (License): Likewise.
32983         * modules/vasnprintf (License): Likewise.
32984         * modules/wchar (License): Likewise.
32985         * modules/xsize (License): Likewise.
32986
32987 2007-07-13  Bruno Haible  <bruno@clisp.org>
32988
32989         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
32990         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
32991
32992 2007-07-12  Bruno Haible  <bruno@clisp.org>
32993
32994         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
32995         in the modules files.
32996
32997 2007-07-11  Karl Berry  <karl@gnu.org>
32998
32999         * MODULES.html.sh (func_module): use
33000          sed -e '\|^'"${includefile}"'$|d'
33001          instead of /.../d, to avoid errors on $includefile's containing /.
33002
33003 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33004
33005         * gnulib-tool (func_import): Avoid duplication of --avoid
33006         statements
33007         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33008         names to `_' in variable names.
33009
33010 2007-07-10  Eric Blake  <ebb9@byu.net>
33011
33012         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33013         * NEWS: Document this change.
33014
33015 2007-07-08  Bruno Haible  <bruno@clisp.org>
33016
33017         Update to Unicode 5.0.
33018         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33019         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33020         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33021         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33022         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33023         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33024         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33025         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33026         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33027         U+10A3F, U+1D242..U+1D244.
33028         (nonspacing_table_ind): Update.
33029         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33030         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33031
33032 2007-07-08  Bruno Haible  <bruno@clisp.org>
33033
33034         Update to Unicode 5.0.
33035         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33036         code transform. Extend the name index field of unicode_name_to_code and
33037         unicode_code_to_name from 16 to 24 bits.
33038         * lib/uniname/uniname.c (unicode_character_name,
33039         unicode_name_character): Add the range 0x12xxx to the code transform.
33040         * lib/uniname/uninames.h: Regenerated.
33041         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33042
33043 2007-07-07  Bruno Haible  <bruno@clisp.org>
33044
33045         * modules/wcwidth-tests: New file.
33046         * tests/test-wcwidth.c: New file.
33047
33048         Work around MacOS X wcwidth() bug.
33049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33050         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33051         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33052         original wcwidth in non-UTF-8 locales.
33053         * modules/wcwidth (Depends-on): Add localcharset, streq,
33054         uniwidth/width.
33055         * doc/functions/wcwidth.texi: Update.
33056
33057 2007-07-07  Bruno Haible  <bruno@clisp.org>
33058
33059         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33060         (wcwidth): New declaration.
33061         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33062         macros.
33063         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33064         here. Prepare for creating <wchar.h> unconditionally.
33065         * modules/wchar (Depends-on): Add link-warning.
33066         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33067         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33068         * lib/wcwidth.h: Remove file.
33069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33070         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33071         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33072         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33073         (Include): Replace wcwidth.h with <wchar.h>.
33074         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33075         * lib/mbchar.h: Don't include wcwidth.h.
33076         * lib/mbswidth.c: Likewise.
33077         * NEWS: Mention the change.
33078
33079 2007-07-07  Bruno Haible  <bruno@clisp.org>
33080
33081         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33082         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33083         definition with an external declaration.
33084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33085         defined as a function. Remove AC_C_INLINE requirement.
33086         * modules/wcwidth (Files): Add lib/wcwidth.c.
33087         (Makefile.am): Remove redundant statement.
33088
33089 2007-07-07  Bruno Haible  <bruno@clisp.org>
33090
33091         * MODULES.html.sh (Unicode string functions): Add the new modules.
33092
33093         * tests/uniwidth/test-u32-strwidth.c: New file.
33094         * modules/uniwidth/u32-strwidth-tests: New file.
33095
33096         * lib/uniwidth/u32-strwidth.c: New file.
33097         * modules/uniwidth/u32-strwidth: New file.
33098
33099         * tests/uniwidth/test-u16-strwidth.c: New file.
33100         * modules/uniwidth/u16-strwidth-tests: New file.
33101
33102         * lib/uniwidth/u16-strwidth.c: New file.
33103         * modules/uniwidth/u16-strwidth: New file.
33104
33105         * tests/uniwidth/test-u8-strwidth.c: New file.
33106         * modules/uniwidth/u8-strwidth-tests: New file.
33107
33108         * lib/uniwidth/u8-strwidth.c: New file.
33109         * modules/uniwidth/u8-strwidth: New file.
33110
33111         * tests/uniwidth/test-u32-width.c: New file.
33112         * modules/uniwidth/u32-width-tests: New file.
33113
33114         * lib/uniwidth/u32-width.c: New file.
33115         * modules/uniwidth/u32-width: New file.
33116
33117         * tests/uniwidth/test-u16-width.c: New file.
33118         * modules/uniwidth/u16-width-tests: New file.
33119
33120         * lib/uniwidth/u16-width.c: New file.
33121         * modules/uniwidth/u16-width: New file.
33122
33123         * tests/uniwidth/test-u8-width.c: New file.
33124         * modules/uniwidth/u8-width-tests: New file.
33125
33126         * lib/uniwidth/u8-width.c: New file.
33127         * modules/uniwidth/u8-width: New file.
33128
33129         * tests/uniwidth/test-uc_width.c: New file.
33130         * modules/uniwidth/width-tests: New file.
33131
33132         * lib/uniwidth/width.c: New file, from GNU libiconv.
33133         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33134         * modules/uniwidth/width: New file.
33135
33136         * lib/uniwidth.h: New file, from GNU libiconv.
33137         * modules/uniwidth/base: New file.
33138
33139 2007-07-07  Bruno Haible  <bruno@clisp.org>
33140
33141         * lib/uniname.h: New file, from GNU gettext.
33142         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33143         * lib/uniname/uninames.h: New file, from GNU gettext.
33144         * lib/uniname/uniname.c: New file, from GNU gettext.
33145         * tests/uniname/test-uninames.sh: New file.
33146         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33147         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33148         * modules/uniname/base: New file.
33149         * modules/uniname/uniname: New file.
33150         * modules/uniname/uniname-tests: New file.
33151         * MODULES.html.sh (Unicode string functions): Add the new modules.
33152
33153 2007-07-06  Bruno Haible  <bruno@clisp.org>
33154
33155         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33156
33157 2007-07-06  Bruno Haible  <bruno@clisp.org>
33158
33159         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33160         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33161         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33162         include <sys/time.h>.
33163         Reported by Eric Blake.
33164
33165 2007-07-06  Eric Blake  <ebb9@byu.net>
33166
33167         Fix testing canonicalize on cygwin.
33168         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33169         Revert patch from 2007-06-19.
33170         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33171         canonicalize module is also in use.
33172         * tests/test-canonicalize.c: New file.
33173         * tests/test-canonicalize.sh: Likewise.
33174         * modules/canonicalize-tests: Likewise.
33175
33176 2007-07-06  Jim Meyering  <jim@meyering.net>
33177
33178         * lib/getugroups.c (getugroups): Detect getgrent failure.
33179         Adjust comment to reflect reality: this function may return -1.
33180
33181 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33182
33183         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33184         the new TP address.
33185         (usage): Fix typo
33186         (gnulib_mk): New variable.
33187
33188 2007-07-05  Jim Meyering  <jim@meyering.net>
33189
33190         Don't let endgrent clobber errno, no matter how improbable.
33191         * lib/getugroups.c (getugroups): Save and restore errno around
33192         endgrent call.
33193
33194         Close the group DB even when failing with 2^31 or more members.
33195         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33196
33197 2007-07-04  Jim Meyering  <jim@meyering.net>
33198
33199         * lib/getugroups.h: New file.
33200         * lib/getugroups.c: Include "getugroups.h".
33201         Remove uses of "register" keyword.
33202         Move local variable, "cp", down into scope where used.
33203         Give "username" parameter the "const" attribute.
33204         * modules/getugroups (Files): Add lib/getugroups.h
33205
33206 2007-07-04  Karl Berry  <karl@gnu.org>
33207
33208         * MODULES.html.sh (func_all_modules): Complete rename of
33209         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33210
33211 2007-07-02  Bruno Haible  <bruno@clisp.org>
33212
33213         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33214         mode, when inttypes.h comes from gnulib.
33215         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33216
33217 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33218
33219         * NEWS: Mention lgpl module name change.
33220
33221         * modules/lgpl-2.1: Renamed from lgpl.
33222
33223         * NEWS: Mention gpl module name change.
33224
33225         * modules/gpl-3.0: New file, based on gpl-2.0.
33226
33227         * modules/gpl-2.0: Renamed from gpl.
33228
33229         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33230         doc/gpl-2.0.texi.
33231
33232 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33233
33234         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33235         #define __STDC_LIMIT_MACROS temporarily while including
33236         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33237         Problem reported by Joel E. Denny in
33238         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33239
33240 2007-07-01  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/unistdio.h: New file.
33243         * lib/unistdio/u-asnprintf.h: New file.
33244         * lib/unistdio/u-asprintf.h: New file.
33245         * lib/unistdio/u-printf-args.c: New file.
33246         * lib/unistdio/u-printf-args.h: New file.
33247         * lib/unistdio/u-printf-parse.h: New file.
33248         * lib/unistdio/u-snprintf.h: New file.
33249         * lib/unistdio/u-sprintf.h: New file.
33250         * lib/unistdio/u-vasprintf.h: New file.
33251         * lib/unistdio/u-vsnprintf.h: New file.
33252         * lib/unistdio/u-vsprintf.h: New file.
33253         * lib/unistdio/ulc-asnprintf.c: New file.
33254         * lib/unistdio/ulc-asprintf.c: New file.
33255         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33256         * lib/unistdio/ulc-printf-parse.c: New file.
33257         * lib/unistdio/ulc-snprintf.c: New file.
33258         * lib/unistdio/ulc-sprintf.c: New file.
33259         * lib/unistdio/ulc-vasnprintf.c: New file.
33260         * lib/unistdio/ulc-vasprintf.c: New file.
33261         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33262         * lib/unistdio/ulc-vsnprintf.c: New file.
33263         * lib/unistdio/ulc-vsprintf.c: New file.
33264         * lib/unistdio/u8-asnprintf.c: New file.
33265         * lib/unistdio/u8-asprintf.c: New file.
33266         * lib/unistdio/u8-printf-parse.c: New file.
33267         * lib/unistdio/u8-snprintf.c: New file.
33268         * lib/unistdio/u8-sprintf.c: New file.
33269         * lib/unistdio/u8-vasnprintf.c: New file.
33270         * lib/unistdio/u8-vasprintf.c: New file.
33271         * lib/unistdio/u8-vsnprintf.c: New file.
33272         * lib/unistdio/u8-vsprintf.c: New file.
33273         * lib/unistdio/u8-u8-asnprintf.c: New file.
33274         * lib/unistdio/u8-u8-asprintf.c: New file.
33275         * lib/unistdio/u8-u8-snprintf.c: New file.
33276         * lib/unistdio/u8-u8-sprintf.c: New file.
33277         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33278         * lib/unistdio/u8-u8-vasprintf.c: New file.
33279         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33280         * lib/unistdio/u8-u8-vsprintf.c: New file.
33281         * lib/unistdio/u16-asnprintf.c: New file.
33282         * lib/unistdio/u16-asprintf.c: New file.
33283         * lib/unistdio/u16-printf-parse.c: New file.
33284         * lib/unistdio/u16-snprintf.c: New file.
33285         * lib/unistdio/u16-sprintf.c: New file.
33286         * lib/unistdio/u16-vasnprintf.c: New file.
33287         * lib/unistdio/u16-vasprintf.c: New file.
33288         * lib/unistdio/u16-vsnprintf.c: New file.
33289         * lib/unistdio/u16-vsprintf.c: New file.
33290         * lib/unistdio/u16-u16-asnprintf.c: New file.
33291         * lib/unistdio/u16-u16-asprintf.c: New file.
33292         * lib/unistdio/u16-u16-snprintf.c: New file.
33293         * lib/unistdio/u16-u16-sprintf.c: New file.
33294         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33295         * lib/unistdio/u16-u16-vasprintf.c: New file.
33296         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33297         * lib/unistdio/u16-u16-vsprintf.c: New file.
33298         * lib/unistdio/u32-asnprintf.c: New file.
33299         * lib/unistdio/u32-asprintf.c: New file.
33300         * lib/unistdio/u32-printf-parse.c: New file.
33301         * lib/unistdio/u32-snprintf.c: New file.
33302         * lib/unistdio/u32-sprintf.c: New file.
33303         * lib/unistdio/u32-vasnprintf.c: New file.
33304         * lib/unistdio/u32-vasprintf.c: New file.
33305         * lib/unistdio/u32-vsnprintf.c: New file.
33306         * lib/unistdio/u32-vsprintf.c: New file.
33307         * lib/unistdio/u32-u32-asnprintf.c: New file.
33308         * lib/unistdio/u32-u32-asprintf.c: New file.
33309         * lib/unistdio/u32-u32-snprintf.c: New file.
33310         * lib/unistdio/u32-u32-sprintf.c: New file.
33311         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33312         * lib/unistdio/u32-u32-vasprintf.c: New file.
33313         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33314         * lib/unistdio/u32-u32-vsprintf.c: New file.
33315         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33316         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33317         * tests/unistdio/test-ulc-printf1.h: New file.
33318         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33319         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33320         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33321         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33322         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33323         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33324         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33325         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33326         * tests/unistdio/test-u8-asnprintf1.c: New file.
33327         * tests/unistdio/test-u8-asnprintf1.h: New file.
33328         * tests/unistdio/test-u8-printf1.h: New file.
33329         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33330         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33331         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33332         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33333         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33334         * tests/unistdio/test-u8-vasprintf1.c: New file.
33335         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33336         * tests/unistdio/test-u8-vsprintf1.c: New file.
33337         * tests/unistdio/test-u16-asnprintf1.c: New file.
33338         * tests/unistdio/test-u16-asnprintf1.h: New file.
33339         * tests/unistdio/test-u16-printf1.h: New file.
33340         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33341         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33342         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33343         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33344         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33345         * tests/unistdio/test-u16-vasprintf1.c: New file.
33346         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33347         * tests/unistdio/test-u16-vsprintf1.c: New file.
33348         * tests/unistdio/test-u32-asnprintf1.c: New file.
33349         * tests/unistdio/test-u32-asnprintf1.h: New file.
33350         * tests/unistdio/test-u32-printf1.h: New file.
33351         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33352         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33353         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33354         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33355         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33356         * tests/unistdio/test-u32-vasprintf1.c: New file.
33357         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33358         * tests/unistdio/test-u32-vsprintf1.c: New file.
33359         * modules/unistdio/base: New file.
33360         * modules/unistdio/u-printf-args: New file.
33361         * modules/unistdio/ulc-asnprintf: New file.
33362         * modules/unistdio/ulc-asprintf: New file.
33363         * modules/unistdio/ulc-fprintf: New file.
33364         * modules/unistdio/ulc-printf-parse: New file.
33365         * modules/unistdio/ulc-snprintf: New file.
33366         * modules/unistdio/ulc-sprintf: New file.
33367         * modules/unistdio/ulc-vasnprintf: New file.
33368         * modules/unistdio/ulc-vasprintf: New file.
33369         * modules/unistdio/ulc-vfprintf: New file.
33370         * modules/unistdio/ulc-vsnprintf: New file.
33371         * modules/unistdio/ulc-vsprintf: New file.
33372         * modules/unistdio/u8-asnprintf: New file.
33373         * modules/unistdio/u8-asprintf: New file.
33374         * modules/unistdio/u8-printf-parse: New file.
33375         * modules/unistdio/u8-snprintf: New file.
33376         * modules/unistdio/u8-sprintf: New file.
33377         * modules/unistdio/u8-vasnprintf: New file.
33378         * modules/unistdio/u8-vasprintf: New file.
33379         * modules/unistdio/u8-vsnprintf: New file.
33380         * modules/unistdio/u8-vsprintf: New file.
33381         * modules/unistdio/u8-u8-asnprintf: New file.
33382         * modules/unistdio/u8-u8-asprintf: New file.
33383         * modules/unistdio/u8-u8-snprintf: New file.
33384         * modules/unistdio/u8-u8-sprintf: New file.
33385         * modules/unistdio/u8-u8-vasnprintf: New file.
33386         * modules/unistdio/u8-u8-vasprintf: New file.
33387         * modules/unistdio/u8-u8-vsnprintf: New file.
33388         * modules/unistdio/u8-u8-vsprintf: New file.
33389         * modules/unistdio/u16-asnprintf: New file.
33390         * modules/unistdio/u16-asprintf: New file.
33391         * modules/unistdio/u16-printf-parse: New file.
33392         * modules/unistdio/u16-snprintf: New file.
33393         * modules/unistdio/u16-sprintf: New file.
33394         * modules/unistdio/u16-vasnprintf: New file.
33395         * modules/unistdio/u16-vasprintf: New file.
33396         * modules/unistdio/u16-vsnprintf: New file.
33397         * modules/unistdio/u16-vsprintf: New file.
33398         * modules/unistdio/u16-u16-asnprintf: New file.
33399         * modules/unistdio/u16-u16-asprintf: New file.
33400         * modules/unistdio/u16-u16-snprintf: New file.
33401         * modules/unistdio/u16-u16-sprintf: New file.
33402         * modules/unistdio/u16-u16-vasnprintf: New file.
33403         * modules/unistdio/u16-u16-vasprintf: New file.
33404         * modules/unistdio/u16-u16-vsnprintf: New file.
33405         * modules/unistdio/u16-u16-vsprintf: New file.
33406         * modules/unistdio/u32-asnprintf: New file.
33407         * modules/unistdio/u32-asprintf: New file.
33408         * modules/unistdio/u32-printf-parse: New file.
33409         * modules/unistdio/u32-snprintf: New file.
33410         * modules/unistdio/u32-sprintf: New file.
33411         * modules/unistdio/u32-vasnprintf: New file.
33412         * modules/unistdio/u32-vasprintf: New file.
33413         * modules/unistdio/u32-vsnprintf: New file.
33414         * modules/unistdio/u32-vsprintf: New file.
33415         * modules/unistdio/u32-u32-asnprintf: New file.
33416         * modules/unistdio/u32-u32-asprintf: New file.
33417         * modules/unistdio/u32-u32-snprintf: New file.
33418         * modules/unistdio/u32-u32-sprintf: New file.
33419         * modules/unistdio/u32-u32-vasnprintf: New file.
33420         * modules/unistdio/u32-u32-vasprintf: New file.
33421         * modules/unistdio/u32-u32-vsnprintf: New file.
33422         * modules/unistdio/u32-u32-vsprintf: New file.
33423         * modules/unistdio/ulc-asnprintf-tests: New file.
33424         * modules/unistdio/ulc-vasnprintf-tests: New file.
33425         * modules/unistdio/ulc-vasprintf-tests: New file.
33426         * modules/unistdio/ulc-vsnprintf-tests: New file.
33427         * modules/unistdio/ulc-vsprintf-tests: New file.
33428         * modules/unistdio/u8-asnprintf-tests: New file.
33429         * modules/unistdio/u8-vasnprintf-tests: New file.
33430         * modules/unistdio/u8-vasprintf-tests: New file.
33431         * modules/unistdio/u8-vsnprintf-tests: New file.
33432         * modules/unistdio/u8-vsprintf-tests: New file.
33433         * modules/unistdio/u16-asnprintf-tests: New file.
33434         * modules/unistdio/u16-vasnprintf-tests: New file.
33435         * modules/unistdio/u16-vasprintf-tests: New file.
33436         * modules/unistdio/u16-vsnprintf-tests: New file.
33437         * modules/unistdio/u16-vsprintf-tests: New file.
33438         * modules/unistdio/u32-asnprintf-tests: New file.
33439         * modules/unistdio/u32-vasnprintf-tests: New file.
33440         * modules/unistdio/u32-vasprintf-tests: New file.
33441         * modules/unistdio/u32-vsnprintf-tests: New file.
33442         * modules/unistdio/u32-vsprintf-tests: New file.
33443         * MODULES.html.sh (Unicode string functions): Add the new modules.
33444
33445 2007-07-01  Bruno Haible  <bruno@clisp.org>
33446
33447         * lib/sprintf.c (sprintf): Limit the available length estimation,
33448         to avoid address wraparound.
33449         * lib/vsprintf.c (vsprintf): Likewise.
33450         * modules/sprintf-posix (Dependencies): Add stdint.
33451         * modules/vsprintf-posix (Dependencies): Likewise.
33452
33453 2007-07-01  Bruno Haible  <bruno@clisp.org>
33454
33455         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33456         Windows PATH as well. Conservative double-quoting. Comments.
33457
33458 2007-07-01  Bruno Haible  <bruno@clisp.org>
33459             Eric Blake  <ebb9@byu.net>
33460             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33461
33462         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33463         empty components in $PATH, denoting '.'.
33464
33465 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33466
33467         * gnulib-tool: Fix indentation.
33468         (func_create_megatestdir): Likewise.
33469         Report by Bruno Haible.
33470
33471 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33472
33473         Sync from Automake.
33474         * build-aux/gnupload: Fix shell portability issues with for loops.
33475         Report by Karl Berry.
33476
33477 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33478
33479         * build-aux/maint.mk (POURL): Use translationproject.org.
33480
33481 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33482             Bruno Haible  <bruno@clisp.org>
33483
33484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33485         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33486         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33487         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33488         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33489
33490 2007-06-27  Bruno Haible  <bruno@clisp.org>
33491
33492         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33493         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33494
33495 2007-06-26  Karl Berry  <karl@gnu.org>
33496
33497         * MODULES.html.sh: remove xreadlink-with-size.
33498
33499 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33500
33501         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33502         method that I hope also handles the double-include problem noted
33503         by Bruno Haible in
33504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33505
33506 2007-06-23  Bruno Haible  <bruno@clisp.org>
33507
33508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33509         Don't let the 'mostlyclean' target fail if the last subdirectory could
33510         not be removed.
33511         Reported by Karl Berry.
33512
33513 2007-06-23  Bruno Haible  <bruno@clisp.org>
33514
33515         * gnulib-tool (echo): Add a speedier workaround for ksh.
33516         * tests/test-echo.sh: Likewise.
33517
33518 2007-06-23  Bruno Haible  <bruno@clisp.org>
33519
33520         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33521         * tests/test-echo.sh: Likewise.
33522
33523 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33524
33525         * gnulib-tool (IFS): Initialize early, so we don't set it to
33526         empty later.
33527         (self_abspathname): Rewrite algorithm to set it, reindent.
33528         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33529         (func_create_megatestdir): Merge some sed scripts.
33530
33531 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33532
33533         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33534         exposed by Sun Studio 11 cc on Solaris 8.
33535
33536 2007-06-22  Bruno Haible  <bruno@clisp.org>
33537
33538         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33539         backslashes.
33540         * tests/test-echo.sh: New file.
33541
33542 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33543
33544         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33545         simplify `sed_replace_build_aux' scripts, they are portable but
33546         echoing them with `echo' is not.
33547         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33548
33549 2007-06-21  Karl Berry  <karl@gnu.org>
33550
33551         * config/srclist.txt: guess we can't handle the licenses via
33552         srclist at the moment.
33553
33554 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33555
33556         * MODULES.html.sh: Add include_next.
33557         * modules/include_next: New file.
33558
33559 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33560
33561         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33562         INCLUDE_NEXT.
33563         (gl_CHECK_NEXT_HEADERS): New macro.
33564         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33565         the obsolescent gl_ABSOLUTE_HEADER.
33566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33567         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33568         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33569         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33570         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33571         * m4/math_h.m4 (gl_MATH_H): Likewise.
33572         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33573         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33574         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33575         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33576         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33577         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33578         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33582         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33583         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33584         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33585         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33586         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33587         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33588         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33589         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33590         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33591         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33592         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33593         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33594         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33595         * lib/float_.h: Likewise.
33596         * lib/inttypes_.h: Likewise.
33597         * lib/math_.h: Likewise.
33598         * lib/search_.h: Likewise.
33599         * lib/signal_.h: Likewise.
33600         * lib/stdint_.h: Likewise.
33601         * lib/stdio_.h: Likewise.
33602         * lib/stdlib_.h: Likewise.
33603         * lib/string_.h: Likewise.
33604         * lib/sys_stat_.h: Likewise.
33605         * lib/sys_time_.h: Likewise.
33606         * lib/time_.h: Likewise.
33607         * lib/unistd_.h: Likewise.
33608         * lib/wchar_.h: Likewise.
33609         * lib/wctype_.h: Likewise.
33610         * lib/dirent_.h: Likewise.
33611         * lib/iconv_.h: Likewise.
33612         * lib/locale_.h: Likewise.
33613         * lib/netinet_in_.h: Likewise.
33614         * lib/sys_select_.h: Likewise.
33615         * lib/sys_socket_.h: Likewise.
33616         * lib/sysexits_.h: Likewise.
33617         * modules/fcntl (Depends-on): Depend on include_next, not
33618         absolute_header.
33619         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
33620         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
33621         * modules/fchdir: Likewise.
33622         * modules/float: Likewise.
33623         * modules/iconv_open: Likewise.
33624         * modules/inttypes: Likewise.
33625         * modules/locale: Likewise.
33626         * modules/math: Likewise.
33627         * modules/netinet_in: Likewise.
33628         * modules/search: Likewise.
33629         * modules/signal: Likewise.
33630         * modules/stdint: Likewise.
33631         * modules/stdio: Likewise.
33632         * modules/stdlib: Likewise.
33633         * modules/string: Likewise.
33634         * modules/sys_select: Likewise.
33635         * modules/sys_socket: Likewise.
33636         * modules/sys_stat: Likewise.
33637         * modules/sys_time: Likewise.
33638         * modules/sysexits: Likewise.
33639         * modules/time: Likewise.
33640         * modules/unistd: Likewise.
33641         * modules/wchar: Likewise.
33642         * modules/wctype: Likewise.
33643         * modules/sys_stat: Change maintainer to "all".
33644         * modules/unistd: Likewise.
33645
33646 2007-06-20  Karl Berry  <karl@gnu.org>
33647
33648         * config/srclist.txt: track www changes in license files.
33649
33650 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
33651
33652         * build-aux/bootstrap: Remove stray dot.
33653         Make sure build_aux settings are honored when linking
33654         gnulib_extra_files.
33655
33656 2007-06-19  Eric Blake  <ebb9@byu.net>
33657
33658         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33659         Allow compilation on cygwin.
33660
33661 2007-06-19  Jim Meyering  <jim@meyering.net>
33662
33663         xreadlink-with-size: Remove module.  No longer used.
33664         Ex-callers now use xreadlink or mreadlink-with-size.
33665         * modules/xreadlink-with-size: Remove module.
33666         * lib/xreadlink-with-size.c: Remove file.
33667         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
33668         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
33669         just before the function definition *is* accurate.
33670
33671         Eliminate one way canonicalize_filename_mode could exit.
33672         * lib/canonicalize.c (canonicalize_filename_mode):
33673         Use mreadlink_with_size, not xreadlink_with_size.
33674
33675 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33676
33677         Detect porting problems to FreeBSD/arm, which has time_t wider than
33678         long int.  Original problem reported for GNU diff by Xin Li in
33679         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
33680         * modules/getdate (Depends-on): Add intprops, verify.
33681         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
33682         is an integer type no wider than long int.
33683
33684 2007-06-18  Jim Meyering  <jim@meyering.net>
33685
33686         New module: mreadlink-with-size.
33687         * MODULES.html.sh: Add mreadlink-with-size.
33688         * modules/mreadlink-with-size: New module
33689         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
33690         not xreadlink-with-size.
33691         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
33692
33693 2007-06-16  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
33696         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
33697         Reported by Gary V. Vaughan <gary@gnu.org>.
33698
33699 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33700
33701         Revamp lchown so that it lives in unistd.h where it belongs.
33702         * lib/lchown.h: Remove.
33703         * lib/dirchownmod.c: Don't include lib/lchown.h.
33704         * lib/fchownat.c: Likewise.
33705         * lib/openat.c: Likewise.
33706         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
33707         does not follow symlinks.
33708         (EOPNOTSUPP): Define if not defined.
33709         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
33710         is defined to 0.
33711         (lchown): New decl.
33712         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
33713         Do not check for lchown decl.
33714         Set REPLACE_LCHOWN.
33715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
33716         REPLACE_LCHOWN.
33717         * modules/chown: Make it clear it follows symlinks.
33718         * modules/lchown: Make it clear it doesn't follow symlinks.
33719         (Files): Remove lib/lchown.h
33720         (Depends-on): Add unistd.
33721         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
33722         (Include): Include <unistd.h>, not "lchown.h".
33723         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
33724         REPLACE_LCHOWN.
33725
33726 2007-06-15  Jim Meyering  <jim@meyering.net>
33727
33728         Change license (GPL to LGPL) of fsusage and dependents.
33729         * modules/fsusage (License): Change to LGPL.
33730         * modules/full-read (License): Likewise.
33731         * modules/full-write (License): Likewise.
33732         * modules/safe-read (License): Likewise.
33733         * modules/safe-write (License): Likewise.
33734
33735 2007-06-14  Ben Pfaff  <blp@gnu.org>
33736
33737         Missing part of allocsa -> malloca transition.
33738         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
33739         gl_MALLOCA.
33740
33741 2007-06-12  Bruno Haible  <bruno@clisp.org>
33742
33743         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
33744         to ia64, x86_64, i386.
33745         Reported by Eric Blake.
33746
33747 2007-06-12  Bruno Haible  <bruno@clisp.org>
33748
33749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
33750         cross-compiling to x86_64.
33751
33752 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
33753
33754         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
33755         glitch reported by Ralf Wildenhues in
33756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
33757
33758         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
33759         Vin Shelton.
33760
33761 2007-06-11  Bruno Haible  <bruno@clisp.org>
33762
33763         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
33764         replacement string.
33765         Reported by Eric Blake.
33766
33767 2007-06-10  Bruno Haible  <bruno@clisp.org>
33768
33769         Prepare vasnprintf code for use with Unicode strings.
33770         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
33771         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
33772         TYPE_U32_STRING.
33773         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
33774         a_u32_string variants.
33775         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33776         * lib/printf-args.c: Don't include config.h and the specification
33777         header if PRINTF_FETCHARGS is already defined.
33778         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
33779         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
33780         TYPE_U16_STRING, TYPE_U32_STRING.
33781         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
33782         u16_directive, u16_directives, u32_directive, u32_directives): New
33783         types.
33784         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
33785         New declarations.
33786         * lib/printf-parse.c: Don't include config.h and the specification
33787         header if PRINTF_PARSE is already defined. Eliminate the set of
33788         parameters for WIDE_CHAR_VERSION; the user of this file must provide
33789         them now. Include c-ctype.h.
33790         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
33791         directive and CHAR_T_ONLY_ASCII.
33792         * lib/vasnprintf.c: Don't include config.h and the specification header
33793         if VASNPRINTF is already defined.
33794         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
33795         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
33796         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
33797         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
33798         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
33799         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
33800         code accordingly.
33801         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
33802         pad_ourselves also in this case, with the 'c' and 's' directives, and
33803         with a different notion of "width".
33804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
33805
33806 2007-06-10  Bruno Haible  <bruno@clisp.org>
33807
33808         * modules/unistr/u32-mbsnlen: New file.
33809         * lib/unistr/u32-mbsnlen.c: New file.
33810
33811         * modules/unistr/u16-mbsnlen: New file.
33812         * lib/unistr/u16-mbsnlen.c: New file.
33813
33814         * modules/unistr/u8-mbsnlen: New file.
33815         * lib/unistr/u8-mbsnlen.c: New file.
33816
33817         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
33818         declarations.
33819
33820 2007-06-10  Bruno Haible  <bruno@clisp.org>
33821
33822         * lib/string_.h (mbsnlen): New declaration.
33823         * lib/mbsnlen.c: New file.
33824         * m4/mbsnlen.m4: New file.
33825         * modules/mbsnlen: New file.
33826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
33827         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
33828         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
33829
33830 2007-06-10  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
33833
33834 2007-06-10  Bruno Haible  <bruno@clisp.org>
33835
33836         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
33837         * lib/mbuiter.h: Likewise.
33838
33839 2007-06-10  Bruno Haible  <bruno@clisp.org>
33840
33841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
33842         declaration.
33843
33844 2007-06-10  Karl Berry  <karl@gnu.org>
33845
33846         * config/srclist.txt: remove gettext entries, Bruno prefers
33847         to update individually.
33848
33849 2007-06-10  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
33852         'maxlen'. Ensure only length + width bytes are allocated, not
33853         length + 1 + width.
33854
33855 2007-06-09  Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
33858         (CHAR_T): Remove macro.
33859         (VASNPRINTF): Update.
33860
33861 2007-06-09  Bruno Haible  <bruno@clisp.org>
33862
33863         * MODULES.html.sh (Unicode string functions): Add the new modules.
33864
33865         * modules/uniconv/u32-conv-to-enc: New file.
33866         * lib/uniconv/u32-conv-to-enc.c: New file.
33867         * modules/uniconv/u32-conv-to-enc-tests: New file.
33868         * tests/uniconv/test-u32-conv-to-enc.c: New file.
33869
33870         * modules/uniconv/u16-conv-to-enc: New file.
33871         * lib/uniconv/u16-conv-to-enc.c: New file.
33872         * lib/uniconv/u-conv-to-enc.h: New file.
33873         * modules/uniconv/u16-conv-to-enc-tests: New file.
33874         * tests/uniconv/test-u16-conv-to-enc.c: New file.
33875
33876         * modules/uniconv/u8-conv-to-enc: New file.
33877         * lib/uniconv/u8-conv-to-enc.c: New file.
33878         * modules/uniconv/u8-conv-to-enc-tests: New file.
33879         * tests/uniconv/test-u8-conv-to-enc.c: New file.
33880
33881         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
33882         u32_conv_to_encoding): New declarations.
33883
33884 2007-06-09  Bruno Haible  <bruno@clisp.org>
33885
33886         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
33887
33888 2007-06-09  Bruno Haible  <bruno@clisp.org>
33889
33890         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
33891         * modules/malloca: Renamed from modules/allocsa, updated.
33892         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
33893         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
33894         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
33895         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
33896         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
33897         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
33898         * modules/xmalloca: Renamed from modules/xallocsa, updated.
33899         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
33900         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
33901         * modules/c-strcasestr (Depends-on): Update.
33902         * lib/c-strcasestr.c: Update.
33903         * modules/c-strstr (Depends-on): Update.
33904         * lib/c-strstr.c: Update.
33905         * modules/canonicalize-lgpl (Depends-on): Update.
33906         * lib/canonicalize-lgpl.c: Update.
33907         * modules/clean-temp (Depends-on): Update.
33908         * lib/clean-temp.c: Update.
33909         * modules/csharpcomp (Depends-on): Update.
33910         * lib/csharpcomp.c: Update.
33911         * modules/csharpexec (Depends-on): Update.
33912         * lib/csharpexec.c: Update.
33913         * modules/javacomp (Depends-on): Update.
33914         * lib/javacomp.c: Update.
33915         * modules/javaexec (Depends-on): Update.
33916         * lib/javaexec.c: Update.
33917         * modules/mbscasestr (Depends-on): Update.
33918         * lib/mbscasestr.c: Update.
33919         * modules/mbsstr (Depends-on): Update.
33920         * lib/mbsstr.c: Update.
33921         * modules/setenv (Depends-on): Update.
33922         * lib/setenv.c: Update.
33923         * modules/strcasestr (Depends-on): Update.
33924         * lib/strcasestr.c: Update.
33925         * modules/striconveha (Depends-on): Update.
33926         * lib/striconveha.c: Update.
33927         * modules/relocatable-prog-wrapper (Files): Update.
33928         * lib/relocwrapper.c: Update.
33929         * build-aux/install-reloc: Update.
33930         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
33931
33932 2007-06-08  Bruno Haible  <bruno@clisp.org>
33933
33934         Port to uClibc.
33935         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
33936         * lib/fpurge.c (fpurge): Likewise.
33937         * lib/freading.c (freading): Likewise.
33938         * lib/fseeko.c (rpl_fseeko): Likewise.
33939         * lib/fseterr.c (fseterr): Likewise.
33940         * lib/fwriting.c (fwriting): Likewise.
33941         * tests/test-fflush.c (main): Avoid a failure on uClibc.
33942
33943 2007-06-08  Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
33946         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
33947         * modules/gettext (Files): Add m4/intlmacosx.m4.
33948
33949 2007-06-07  Bruno Haible  <bruno@clisp.org>
33950
33951         * modules/localename-tests: New file.
33952         * tests/test-localename.c: New file.
33953
33954         New module 'localename'.
33955         * lib/localename.h: New file.
33956         * lib/localename.c: New file, from GNU gettext.
33957         * m4/localename.m4: New file.
33958         * modules/localename: New file.
33959
33960 2007-06-07  Bruno Haible  <bruno@clisp.org>
33961
33962         Work around the lack of <wchar.h> on some builds of uClibc.
33963         * doc/headers/wchar.texi: Update.
33964         * lib/wchar_.h: Include <wchar.h> only if it exists.
33965         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
33966         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
33967         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
33968         doesn't exist.
33969         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
33970         * modules/mbfile (Depends-on): Add wchar.
33971         * modules/mbiter (Depends-on): Likewise.
33972         * modules/mbuiter (Depends-on): Likewise.
33973         Reported by Simon Josefsson.
33974
33975 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
33976
33977         Work around problem reported by Steven M. Schweda in
33978         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
33979         Tru64 5.1B with the Compaq compiler environment installed declares
33980         an 'isblank' function but does not define it in the C library.
33981         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
33982         * lib/regex_internal.h (isblank): Likewise.
33983         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
33984         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33985
33986 2007-06-05  Bruno Haible  <bruno@clisp.org>
33987
33988         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
33989         ia64.
33990         * modules/printf-safe: New file.
33991         * modules/fprintf-posix (Depends-on): Add printf-safe.
33992         * modules/printf-posix (Depends-on): Likewise.
33993         * modules/snprintf-posix (Depends-on): Likewise.
33994         * modules/sprintf-posix (Depends-on): Likewise.
33995         * modules/vasnprintf-posix (Depends-on): Likewise.
33996         * modules/vasprintf-posix (Depends-on): Likewise.
33997         * modules/vfprintf-posix (Depends-on): Likewise.
33998         * modules/vprintf-posix (Depends-on): Likewise.
33999         * modules/vsnprintf-posix (Depends-on): Likewise.
34000         * modules/vsprintf-posix (Depends-on): Likewise.
34001         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34002         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34003         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34004         "no" on i386, x86_64, ia64.
34005         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34006         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34007         on i386, x86_64, ia64.
34008         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34009         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34010         on i386, x86_64, ia64.
34011         * tests/test-vasnprintf-posix.c: Include float.h.
34012         (LDBL80_WORDS): New macro.
34013         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34014         on i386, x86_64, ia64.
34015         * tests/test-vasprintf-posix.c: Include float.h.
34016         (LDBL80_WORDS): New macro.
34017         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34018         on i386, x86_64, ia64.
34019         * tests/test-snprintf-posix.c: Include float.h.
34020         * tests/test-sprintf-posix.c: Likewise.
34021         * tests/test-vsnprintf-posix.c: Likewise.
34022         * tests/test-vsprintf-posix.c: Likewise.
34023
34024 2007-06-05  Bruno Haible  <bruno@clisp.org>
34025
34026         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34027         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34028         non-IEEE numbers on i386, x86_64, ia64.
34029         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34030         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34031         * tests/test-isnanl.h: Include float.h.
34032         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34033
34034 2007-06-05  Bruno Haible  <bruno@clisp.org>
34035
34036         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34037         also the %a / %A. Handle the %a / %A code before this extra handling.
34038
34039 2007-06-05  Bruno Haible  <bruno@clisp.org>
34040
34041         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34042         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34043
34044 2007-06-05  Bruno Haible  <bruno@clisp.org>
34045
34046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34047         typo in variable name.
34048
34049 2007-06-05  Eric Blake  <ebb9@byu.net>
34050
34051         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34052         Reported by Simon Josefsson.
34053
34054 2007-06-04  Bruno Haible  <bruno@clisp.org>
34055
34056         Avoid test failures on some PowerPC platforms.
34057         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34058         Define differently for PowerPC.
34059         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34060         Reported by Gary V. Vaughan <gary@gnu.org>.
34061
34062 2007-06-02  Bruno Haible  <bruno@clisp.org>
34063
34064         Fix test-stdint failure on FreeBSD/ia64.
34065         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34066         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34067         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34068         * doc/headers/stdint.texi: Update.
34069
34070 2007-06-01  Bruno Haible  <bruno@clisp.org>
34071
34072         * tests/test-binary-io.c (main): Pass a third argument to open().
34073         Reported by Gary V. Vaughan <gary@gnu.org>.
34074
34075 2007-06-01  Bruno Haible  <bruno@clisp.org>
34076
34077         * doc/functions/frexpl.texi: Update for mingw.
34078
34079 2007-06-01  Bruno Haible  <bruno@clisp.org>
34080
34081         * tests/test-lseek.c (main): Disable test of errno for invalid third
34082         argument.
34083         * doc/functions/lseek.texi: Update.
34084         Reported by Gary V. Vaughan <gary@gnu.org>.
34085
34086 2007-05-28  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34089
34090 2007-05-31  Eric Blake  <ebb9@byu.net>
34091
34092         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34093         cross compiling.
34094
34095 2007-05-30  Eric Blake  <ebb9@byu.net>
34096         and Bruno Haible  <bruno@clisp.org>
34097
34098         Work around mingw test failures exposed by m4-1.4.9b.
34099         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34100         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34101         moment.
34102
34103 2007-05-30  Bruno Haible  <bruno@clisp.org>
34104
34105         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34106         assuming that they are closed. Needed on HP-UX 11.
34107
34108 2007-05-29  Bruno Haible  <bruno@clisp.org>
34109
34110         Fix a problem with #include_next.
34111         * lib/dirent_.h: Split the double-inclusion guard.
34112         * lib/fcntl_.h: Likewise.
34113         * lib/float_.h: Likewise.
34114         * lib/iconv_.h: Likewise.
34115         * lib/inttypes_.h: Likewise.
34116         * lib/locale_.h: Likewise.
34117         * lib/math_.h: Likewise.
34118         * lib/netinet_in_.h: Likewise.
34119         * lib/search_.h: Likewise.
34120         * lib/signal_.h: Likewise.
34121         * lib/stdint_.h: Likewise.
34122         * lib/stdio_.h: Likewise.
34123         * lib/stdlib_.h: Likewise.
34124         * lib/string_.h: Likewise.
34125         * lib/sys_select_.h: Likewise.
34126         * lib/sys_socket_.h: Likewise.
34127         * lib/sys_stat_.h: Likewise.
34128         * lib/sys_time_.h: Likewise.
34129         * lib/sysexits_.h: Likewise.
34130         * lib/time_.h: Likewise.
34131         * lib/unistd_.h: Likewise.
34132         * lib/wchar_.h: Likewise.
34133         * lib/wctype_.h: Likewise.
34134
34135 2007-05-29  Bruno Haible  <bruno@clisp.org>
34136
34137         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34138         for the moment.
34139
34140 2007-05-29  Bruno Haible  <bruno@clisp.org>
34141
34142         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34143         invocation.
34144         Reported by Eric Blake.
34145
34146 2007-05-29  Bruno Haible  <bruno@clisp.org>
34147
34148         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34149         compiling case.
34150
34151 2007-05-29  Eric Blake  <ebb9@byu.net>
34152             Bruno Haible  <bruno@clisp.org>
34153
34154         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34155         cross compiles.
34156
34157 2007-05-28  Eric Blake  <ebb9@byu.net>
34158
34159         * modules/closein-tests (test_closein_LDADD): Support test on
34160         cygwin with libtool.
34161
34162 2007-05-28  Bruno Haible  <bruno@clisp.org>
34163
34164         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34165         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34166         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34167         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34168         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34169         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34170         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34171         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34172         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34173
34174 2007-05-28  Eric Blake  <ebb9@byu.net>
34175
34176         Unconditionally include <config.h> in unit tests.
34177         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34178         * tests/test-allocsa.c, tests/test-arcfour.c,
34179         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34180         tests/test-array_list.c, tests/test-array_oset.c,
34181         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34182         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34183         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34184         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34185         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34186         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34187         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34188         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34189         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34190         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34191         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34192         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34193         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34194         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34195         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34196         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34197         test-md5.c, test-memmem.c, test-printf-posix.c,
34198         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34199         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34200         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34201         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34202         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34203         test-vasnprintf-posix2.c, test-vasnprintf.c,
34204         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34205         test-vfprintf-posix.c, test-vprintf-posix.c,
34206         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34207         test-xvasprintf.c: Likewise.
34208
34209 2007-05-28  Bruno Haible  <bruno@clisp.org>
34210
34211         * gnulib-tool (func_import): Remember the --with-tests command-line
34212         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34213         Reported by Eric Blake.
34214
34215 2007-05-28  Bruno Haible  <bruno@clisp.org>
34216
34217         * modules/ftell-tests: New file.
34218         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34219         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34220
34221         * lib/ftell.c: New file.
34222         * modules/ftell: New file.
34223         * m4/ftell.m4: New file.
34224         * doc/functions/ftell.texi: Update.
34225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34226         REPLACE_FTELL.
34227         * lib/stdio_.h (rpl_ftell): New declaration.
34228         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34229         REPLACE_FTELL.
34230
34231 2007-05-28  Eric Blake  <ebb9@byu.net>
34232
34233         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34234
34235 2007-05-28  Bruno Haible  <bruno@clisp.org>
34236
34237         * modules/fseek-tests: New file.
34238         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34239         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34240
34241         * lib/fseek.c: New file.
34242         * modules/fseek: New file.
34243         * m4/fseek.m4: New file.
34244         * doc/functions/fseek.texi: Update.
34245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34246         REPLACE_FSEEK.
34247         * lib/stdio_.h (rpl_fseek): New declaration.
34248         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34249         REPLACE_FSEEK.
34250
34251 2007-05-28  Bruno Haible  <bruno@clisp.org>
34252
34253         * lib/stdio_.h (fflush): More comments.
34254
34255 2007-05-28  Bruno Haible  <bruno@clisp.org>
34256
34257         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34258         runtime test.
34259
34260 2007-05-28  Eric Blake  <ebb9@byu.net>
34261
34262         Improve lseek module.
34263         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34264         * lib/unistd_.h (lseek): Scale back link warning message.
34265         * tests/test-lseek.c: Beef up test.
34266         * tests/test-lseek.sh: Exercise more facets of lseek.
34267         Reported by Bruno Haible.
34268
34269 2007-05-28  Bruno Haible  <bruno@clisp.org>
34270
34271         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34272         to define.
34273
34274 2007-05-27  Bruno Haible  <bruno@clisp.org>
34275
34276         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34277
34278 2007-05-27  Bruno Haible  <bruno@clisp.org>
34279
34280         * modules/openmp: New file.
34281         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34282         Noah Misch.
34283
34284 2007-05-26  Bruno Haible  <bruno@clisp.org>
34285
34286         * modules/chdir-long (Depends-on): Add fchdir.
34287         * modules/chdir-safer (Depends-on): Likewise.
34288         * modules/fts (Depends-on): Likewise.
34289         * modules/fts-lgpl (Depends-on): Likewise.
34290         * modules/openat (Depends-on): Likewise.
34291         * modules/savewd (Depends-on): Likewise.
34292
34293 2007-05-24  Eric Blake  <ebb9@byu.net>
34294
34295         Fix lseek on mingw.
34296         * modules/lseek: New module.
34297         * m4/lseek.m4: New file.
34298         * lib/lseek.c: New file.
34299         * modules/lseek-tests: New file.
34300         * tests/test-lseek.c: New file.
34301         * tests/test-lseek.sh: New file.
34302         * MODULES.html.sh: Document lseek module.
34303         * modules/fflush (Depends-on): Add lseek, fseeko.
34304         * modules/fseeko (Depends-on): Likewise.
34305         * modules/ftello (Depends-on): Likewise.
34306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34307         broken.
34308         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34309         broken.
34310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34311         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34312         * lib/ftello.c (rpl_ftello): Likewise.
34313         * tests/test-fseeko.c (main): Test this.
34314         * tests/test-fseeko.sh: Likewise.
34315         * tests/test-ftello.c (main): Likewise.
34316         * tests/test-ftello.sh: Likewise.
34317         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34318         implies replacing fseek.
34319         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34320         HAVE_FTELLO.
34321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34322         * modules/unistd (Makefile.am): Likewise.
34323         * lib/unistd_.h (lseek): Declare a replacement.
34324         * doc/functions/lseek.texi (lseek): Document this fix.
34325         * doc/functions/fseek.texi (fseek): Likewise.
34326         * doc/functions/ftell.texi (ftell): Likewise.
34327
34328 2007-05-24  Bruno Haible  <bruno@clisp.org>
34329
34330         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34331         in the printed representation of a NaN.
34332         * tests/test-vasprintf-posix.c (test_function): Likewise.
34333         * tests/test-snprintf-posix.h (test_function): Likewise.
34334         * tests/test-sprintf-posix.h (test_function): Likewise.
34335         Reported by Eric Blake.
34336
34337 2007-05-23  Eric Blake  <ebb9@byu.net>
34338
34339         Fix fseeko/ftello on cygwin 1.5.24.
34340         * doc/functions/fseeko.texi (fseeko): Document the fix.
34341         * doc/functions/ftello.texi (ftello): Document the fix.
34342         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34343         * doc/functions/stdout.text (stdout): New file.
34344         * doc/functions/stderr.text (stderr): New file.
34345         * doc/gnulib.texi (Function Substitutes): Use new files.
34346         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34347         prior to 1.7.0.
34348         * tests/test-ftello.c (main): Likewise for ftello.
34349         * tests/test-fseeko.sh: New file.
34350         * tests/test-ftello.sh: New file.
34351         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34352         with seekable stdin.
34353         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34355         (gl_REPLACE_FSEEKO): New macro.
34356         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34357         * modules/fseeko (Files): Distribute fseeko.c.
34358         * modules/ftello (Files): Distribute ftello.c.
34359         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34360         mode.
34361         * lib/ftello.c (rpl_ftello): New file.
34362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34363         fseeko, ftello.
34364         (gl_STDIN_LARGE_OFFSET): New macro.
34365         * modules/stdio (Makefile.am): Perform the replacement.
34366         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34367
34368 2007-05-23  Bruno Haible  <bruno@clisp.org>
34369
34370         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34371         GNULIB_POSIXCHECK is defined.
34372
34373 2007-05-21  Bruno Haible  <bruno@clisp.org>
34374
34375         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34376         Check also the output for NaN arguments. When cross-compiling, guess
34377         no on IRIX.
34378         * lib/vasnprintf.c: Update comments.
34379         * tests/test-vasnprintf-posix.c (strisnan): New function.
34380         (test_function): Use it.
34381         * tests/test-vasprintf-posix.c (strisnan): New function.
34382         (test_function): Use it.
34383         * tests/test-snprintf-posix.h (strisnan): New function.
34384         (test_function): Use it.
34385         * tests/test-sprintf-posix.h (strisnan): New function.
34386         (test_function): Use it.
34387         Reported by Eric Blake.
34388
34389 2007-05-20  Bruno Haible  <bruno@clisp.org>
34390
34391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34392         numbers that fails on BeOS.
34393         * doc/functions/frexpl.texi: Update.
34394
34395 2007-05-20  Jim Meyering  <jim@meyering.net>
34396
34397         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34398         forced upon us by glibc-2.6.
34399
34400 2007-05-20  Bruno Haible  <bruno@clisp.org>
34401
34402         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34403         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34404         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34405         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34406         NEED_PRINTF_INFINITE.
34407         (is_infinitel): New function.
34408         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34410         gl_PREREQ_VASNPRINTF_INFINITE.
34411         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34412         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34413         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34414         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34415         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34416         gl_PREREQ_VASNPRINTF_INFINITE.
34417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34418         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34419         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34420         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34421         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34423         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34424         * doc/functions/fprintf.texi: Update.
34425         * doc/functions/printf.texi: Update.
34426         * doc/functions/snprintf.texi: Update.
34427         * doc/functions/sprintf.texi: Update.
34428         * doc/functions/vfprintf.texi: Update.
34429         * doc/functions/vprintf.texi: Update.
34430         * doc/functions/vsnprintf.texi: Update.
34431         * doc/functions/vsprintf.texi: Update.
34432
34433 2007-05-20  Bruno Haible  <bruno@clisp.org>
34434
34435         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34436         was not found in libc.
34437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34438
34439 2007-05-20  Bruno Haible  <bruno@clisp.org>
34440
34441         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34442         printed as "-nan" instead of "nan".
34443         * tests/test-vasprintf-posix.c (test_function): Likewise.
34444         * tests/test-snprintf-posix.h (test_function): Likewise.
34445         * tests/test-sprintf-posix.h (test_function): Likewise.
34446         Needed for HP-UX 11.
34447
34448 2007-05-20  Jim Meyering  <jim@meyering.net>
34449
34450         Fix buggy test for the fchownat-deref bug.
34451         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34452         symlink required for the run-test.  Without it, this test would
34453         always declare that fchownat doesn't work, and client code would
34454         unnecessarily use the replacement function with fixed libc.
34455         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34456         Reported by Greg Schafer.
34457
34458 2007-05-19  Bruno Haible  <bruno@clisp.org>
34459
34460         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34461         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34462         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34463         Needed for IRIX 6.5 and Solaris 2.5.1.
34464
34465 2007-05-19  Bruno Haible  <bruno@clisp.org>
34466
34467         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34468         (test_function): Skip tests involving -0.0 on platforms where
34469         -0.0 = 0.0.
34470         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34471         (test_function): Skip tests involving -0.0 on platforms where
34472         -0.0 = 0.0.
34473         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34474         (test_function): Skip tests involving -0.0 on platforms where
34475         -0.0 = 0.0.
34476         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34477         (test_function): Skip tests involving -0.0 on platforms where
34478         -0.0 = 0.0.
34479         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34480         tests.
34481         * tests/test-printf-posix.h (test_function): Likewise.
34482         * tests/test-printf-posix.output: Remove all -0.0 related results.
34483         Needed for IRIX 6.5.
34484
34485 2007-05-19  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34488         printed as "nan0x7fffffff" instead of "nan".
34489         * tests/test-vasprintf-posix.c (test_function): Likewise.
34490         * tests/test-snprintf-posix.h (test_function): Likewise.
34491         * tests/test-sprintf-posix.h (test_function): Likewise.
34492         * tests/test-fprintf-posix.h (NaN): Remove macro.
34493         (test_function): Remove all NaN related tests.
34494         * tests/test-printf-posix.h (NaN): Remove macro.
34495         (test_function): Remove all NaN related tests.
34496         * tests/test-printf-posix.output: Remove all NaN related results.
34497         Needed for IRIX 6.5.
34498
34499 2007-05-19  Bruno Haible  <bruno@clisp.org>
34500
34501         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34502         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34503
34504 2007-05-19  Bruno Haible  <bruno@clisp.org>
34505
34506         * lib/float_.h: New file.
34507         * m4/float_h.m4: New file.
34508         * modules/float: New file.
34509         * modules/isnanl (Dependencies): Add float.
34510         * modules/isnanl-nolibm (Dependencies): Likewise.
34511         * modules/mathl (Dependencies): Likewise.
34512         * modules/printf-frexpl (Dependencies): Likewise.
34513         * modules/signbit (Dependencies): Likewise.
34514         * modules/vasnprintf (Dependencies): Likewise.
34515         * doc/headers/float.texi: Update.
34516
34517 2007-05-19  Jim Meyering  <jim@meyering.net>
34518
34519         * lib/utimens.c (gl_futimens): Rename from futimens,
34520         now that glibc-2.6 declares futimens.
34521         * lib/utimens.h: Likewise.
34522
34523 2007-05-19  Bruno Haible  <bruno@clisp.org>
34524
34525         Avoid test failures on mingw.
34526         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34527         * tests/test-printf-posix.sh: Likewise.
34528         * tests/test-vfprintf-posix.sh: Likewise.
34529         * tests/test-vprintf-posix.sh: Likewise.
34530
34531 2007-05-19  Bruno Haible  <bruno@clisp.org>
34532
34533         Fix *printf result for NaN, Inf, -0.0 on mingw.
34534         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34535         * lib/vasnprintf.c: Include math.h and isnan.h.
34536         (is_infinite_or_zero): New function.
34537         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34538         values in the %f, %F, %e, %E, %g, %G directives.
34539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34541         gl_PRINTF_INFINITE and test its result. Invoke
34542         gl_PREREQ_VASNPRINTF_INFINITE.
34543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34550         * doc/functions/fprintf.texi: Update.
34551         * doc/functions/printf.texi: Update.
34552         * doc/functions/snprintf.texi: Update.
34553         * doc/functions/sprintf.texi: Update.
34554         * doc/functions/vfprintf.texi: Update.
34555         * doc/functions/vprintf.texi: Update.
34556         * doc/functions/vsnprintf.texi: Update.
34557         * doc/functions/vsprintf.texi: Update.
34558
34559 2007-05-19  Bruno Haible  <bruno@clisp.org>
34560
34561         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34562         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34563         Instead of multiplying with 10^k, set extra_zeroes to k.
34564         (scale10_round_long_double): Remove function.
34565
34566 2007-05-18  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34569         introduced on 2007-05-06.
34570
34571 2007-05-18  Bruno Haible  <bruno@clisp.org>
34572
34573         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34574         %g directives.
34575         * tests/test-vasprintf-posix.c (test_function): Likewise.
34576         * tests/test-snprintf-posix.h (test_function): Likewise.
34577         * tests/test-sprintf-posix.h (test_function): Likewise.
34578
34579 2007-05-18  Bruno Haible  <bruno@clisp.org>
34580
34581         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34582         (strmatch): New function.
34583         (test_function): Test the %f directive on numbers of various exponents.
34584         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34585         (strmatch): New function.
34586         (test_function): Test the %f directive on numbers of various exponents.
34587         * tests/test-snprintf-posix.h (strmatch): New function.
34588         (test_function): Test the %f directive on numbers of various exponents.
34589         * tests/test-sprintf-posix.h (strmatch): New function.
34590         (test_function): Test the %f directive on numbers of various exponents.
34591         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34592         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34593         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34594         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34595
34596 2007-05-18  Bruno Haible  <bruno@clisp.org>
34597
34598         Add support for 'long double' number output.
34599         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34600         * lib/vasnprintf.c: Include math.h and float+.h.
34601         (mp_limb_t): New type.
34602         (GMP_LIMB_BITS): New macro.
34603         (mp_twolimb_t): New type.
34604         (GMP_TWOLIMB_BITS): New macro.
34605         (mpn_t): New type.
34606         (multiply, divide, convert_to_decimal, decode_long_double,
34607         scale10_round_long_double, scale10_round_decimal_long_double,
34608         floorlog10l): New functions.
34609         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34610         for the %f, %F, %e, %E, %g, %G directives.
34611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34613         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34614         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34622         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
34623         * modules/snprintf-posix (Depends-on): Likewise.
34624         * modules/sprintf-posix (Depends-on): Likewise.
34625         * modules/vasnprintf-posix (Depends-on): Likewise.
34626         * modules/vasprintf-posix (Depends-on): Likewise.
34627         * modules/vfprintf-posix (Depends-on): Likewise.
34628         * modules/vsnprintf-posix (Depends-on): Likewise.
34629         * modules/vsprintf-posix (Depends-on): Likewise.
34630         * modules/vasnprintf (Files): Add lib/float+.h.
34631         * doc/functions/fprintf.texi: Update.
34632         * doc/functions/printf.texi: Update.
34633         * doc/functions/snprintf.texi: Update.
34634         * doc/functions/sprintf.texi: Update.
34635         * doc/functions/vfprintf.texi: Update.
34636         * doc/functions/vprintf.texi: Update.
34637         * doc/functions/vsnprintf.texi: Update.
34638         * doc/functions/vsprintf.texi: Update.
34639
34640 2007-05-18  Bruno Haible  <bruno@clisp.org>
34641
34642         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
34643
34644 2007-05-18  Bruno Haible  <bruno@clisp.org>
34645
34646         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
34647         for printing 64-bit integers. Needed for mingw.
34648
34649 2007-05-18  Bruno Haible  <bruno@clisp.org>
34650
34651         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34652         gl_FUNC_FREXPL_WORKS.
34653         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
34654
34655 2007-05-18  Bruno Haible  <bruno@clisp.org>
34656
34657         * modules/frexpl-nolibm-tests: New file.
34658
34659         * modules/frexpl-nolibm: New file.
34660         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
34661
34662 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34663
34664         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
34665         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34666         GCC 4.2, which otherwise issues a lot of warnings.
34667         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
34668         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
34669         Likewise.
34670         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
34671         * modules/iconv_open (iconv.h): Likewise.
34672         * modules/locale (locale.h): Likewise.
34673         * modules/netinet_in (netinet/in.h): Likewise.
34674         * modules/sys_select (sys_select.h): Likewise.
34675         * modules/sys_socket (sys/socket.h): Likewise.
34676         * modules/sys_stat (sys/stat.h): Likewise.
34677         * modules/sysexits (sysexits.h): Likewise.
34678         * modules/unistd (unistd.h): Likewise.
34679
34680 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34681
34682         * modules/closein-tests (Makefile.am): Distribute
34683         `test-closein.sh'.
34684
34685 2007-05-17  Bruno Haible  <bruno@clisp.org>
34686
34687         * tests/test-printf-posix.output: Renamed from
34688         tests/test-fprintf-posix.out.
34689         * modules/fprintf-posix-tests: Update.
34690         * modules/printf-posix-tests: Update.
34691         * modules/vfprintf-posix-tests: Update.
34692         * modules/vprintf-posix-tests: Update.
34693         * tests/test-fprintf-posix.sh: Update.
34694         * tests/test-printf-posix.sh: Update.
34695         * tests/test-vfprintf-posix.sh: Update.
34696         * tests/test-vprintf-posix.sh: Update.
34697         Reported by Ralf Wildenhues.
34698
34699 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34700
34701         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
34702         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
34703         GCC 4.2, which otherwise issues a lot of warnings.
34704         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
34705         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
34706         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
34707         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
34708         it should no longer be needed.
34709         * lib/string_.h: Likewise.
34710         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
34711         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
34712         * modules/inttypes (inttypes.h): Likewise.
34713         * modules/math (math.h): Likewise.
34714         * modules/search (search.h): Likewise.
34715         * modules/signal (signal.h): Likewise.
34716         * modules/stdint (stdint.h): Likewise.
34717         * modules/stdio (stdio.h): Likewise.
34718         * modules/stdlib (stdlib.h): Likewise.
34719         * modules/string (string.h): Likewise.
34720         * modules/sys_time (sys/time.h): Likewise.
34721         * modules/time (time.h): Likewise.
34722         * modules/wchar (wchar.h): Likewise.
34723         * modules/wctype (wtype.h): Likewise.
34724
34725 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34726
34727         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
34728
34729 2007-05-13  Bruno Haible  <bruno@clisp.org>
34730
34731         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
34732         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34733         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
34734         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34735         (gl_PREREQ_STRTOK_R): Don't require it here.
34736
34737 2007-05-13  Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
34740         when used in C++ mode.
34741
34742 2007-05-12  Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/linebuffer.h: Tweak doc.
34745         * lib/linebuffer.c: Likewise.
34746
34747 2007-05-12  James Youngman  <jay@gnu.org>
34748
34749         * lib/linebuffer.c (readlinebuffer_delim): New function,
34750         like readlinebuffer, but use a caller-specified delimiter.
34751         (readlinebuffer): Just call readlinebuffer_delim with '\n'
34752         as the delimiter.
34753         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
34754
34755 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34756
34757         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34758         * modules/openat (Files): Remove openat-die.c.
34759         (Depends-on): Add openat-die.
34760         * modules/openat-die: New module.
34761
34762 2007-05-06  Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
34765         Update with info about Cygwin.
34766         * doc/functions/fprintf.texi: Update.
34767         * doc/functions/printf.texi: Update.
34768         * doc/functions/snprintf.texi: Update.
34769         * doc/functions/sprintf.texi: Update.
34770         * doc/functions/vfprintf.texi: Update.
34771         * doc/functions/vprintf.texi: Update.
34772         * doc/functions/vsnprintf.texi: Update.
34773         * doc/functions/vsprintf.texi: Update.
34774         Reported by Eric Blake.
34775
34776 2007-05-06  Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
34779         padding ourselves for the floating-point directives.
34780         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
34781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
34782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34783         gl_PRINTF_FLAG_ZERO and test its result. Invoke
34784         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
34785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34786         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34790         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34791         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34792         * tests/test-snprintf-posix.h (test_function): Also check the width
34793         and some flags in the %f directive.
34794         * tests/test-sprintf-posix.h (test_function): Likewise.
34795         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34796         * tests/test-vasprintf-posix.c (test_function): Likewise.
34797         * doc/functions/fprintf.texi: Update.
34798         * doc/functions/printf.texi: Update.
34799         * doc/functions/snprintf.texi: Update.
34800         * doc/functions/sprintf.texi: Update.
34801         * doc/functions/vfprintf.texi: Update.
34802         * doc/functions/vprintf.texi: Update.
34803         * doc/functions/vsnprintf.texi: Update.
34804         * doc/functions/vsprintf.texi: Update.
34805
34806 2007-05-06  Bruno Haible  <bruno@clisp.org>
34807
34808         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
34809         pass the ' flag character to sprintf or snprintf.
34810         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
34811         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
34812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34813         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
34814         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
34815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
34817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34819         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34821         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34822         * tests/test-snprintf-posix.h (test_function): Also check the grouping
34823         flag.
34824         * tests/test-sprintf-posix.h (test_function): Likewise.
34825         * tests/test-vasnprintf-posix.c (test_function): Likewise.
34826         * tests/test-vasprintf-posix.c (test_function): Likewise.
34827         * doc/functions/fprintf.texi: Update.
34828         * doc/functions/printf.texi: Update.
34829         * doc/functions/snprintf.texi: Update.
34830         * doc/functions/sprintf.texi: Update.
34831         * doc/functions/vfprintf.texi: Update.
34832         * doc/functions/vprintf.texi: Update.
34833         * doc/functions/vsnprintf.texi: Update.
34834         * doc/functions/vsprintf.texi: Update.
34835
34836 2007-05-01  Bruno Haible  <bruno@clisp.org>
34837
34838         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
34839
34840 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
34841
34842         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
34843         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
34844
34845 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
34846
34847         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
34848         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
34849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
34850
34851 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
34852
34853         * lib/argp-help.c (struct hol_entry): New member `ord'.
34854         (HOL_ENTRY_PTRCMP): Use ord for comparison
34855         (hol_sort): Initialize ord.
34856
34857 2007-05-01  Bruno Haible  <bruno@clisp.org>
34858
34859         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
34860         Reported by Eric Blake.
34861         * doc/gnulib.texi (Function Substitutes): Update.
34862
34863 2007-05-01  Bruno Haible  <bruno@clisp.org>
34864
34865         * doc/functions.texi: Remove file, now redundant through
34866         doc/functions/*.texi.
34867
34868 2007-05-01  Bruno Haible  <bruno@clisp.org>
34869
34870         * modules/argp (Depends-on): Add sleep.
34871
34872 2007-05-01  Bruno Haible  <bruno@clisp.org>
34873
34874         * modules/sleep-tests: New file.
34875         * tests/test-sleep.c: New file.
34876
34877         * modules/sleep: New file.
34878         * lib/sleep.c: New file.
34879         * m4/sleep.m4: New file.
34880         * lib/unistd_.h (sleep): New declaration.
34881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
34882         HAVE_SLEEP.
34883         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
34884         * doc/functions/sleep.texi: Document the sleep module.
34885
34886 2007-05-01  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/sigprocmask.h: Remove file.
34889         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
34890         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
34891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
34892         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
34893         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34894         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
34895         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
34896         HAVE_SIGSET_T as a shell variable.
34897         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
34898         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
34899         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
34900         (Depends-on): Add signal. Remove verify.
34901         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
34902         (Include): Mention <signal.h> instead of sigprocmask.h.
34903         * NEWS: Mention the change.
34904         * lib/fatal-signal.c: Don't include sigprocmask.h.
34905
34906 2007-05-01  Bruno Haible  <bruno@clisp.org>
34907
34908         * modules/signal: New file.
34909         * lib/signal_.h: New file.
34910         * m4/signal_h.m4: New file.
34911
34912 2007-05-01  Bruno Haible  <bruno@clisp.org>
34913
34914         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
34915         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
34916         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
34917         HAVE_WCTYPE_CTMP_BUG into wctype.h.
34918
34919 2007-05-01  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
34922         configure time.
34923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
34924         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
34925         * modules/sys_stat (Makefile.am): Substitute their values into
34926         sys/stat.h.
34927
34928 2007-05-01  Bruno Haible  <bruno@clisp.org>
34929
34930         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
34931         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
34932         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
34933
34934 2007-05-01  Bruno Haible  <bruno@clisp.org>
34935
34936         * doc/header/assert.texi: Undo last change: don't mention the gnulib
34937         'assert' module here.
34938
34939 2007-05-01  Bruno Haible  <bruno@clisp.org>
34940
34941         * doc/functions/*.texi: New files.
34942         * doc/functions/google-ranking.txt: New file.
34943         * doc/gnulib.texi (Function Substitutes): New chapter.
34944         (ctime, inet_ntoa): Remove sections.
34945         * doc/ctime.texi: Remove file.
34946         * doc/inet_ntoa.texi: Remove file.
34947         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
34948         dependencies.
34949         (%.info): New rule, specifying a --reference-limit.
34950
34951 2007-05-01  Bruno Haible  <bruno@clisp.org>
34952
34953         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
34954
34955 2007-05-01  Bruno Haible  <bruno@clisp.org>
34956
34957         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
34958         the portability of 'mkdir' to mingw systems.
34959
34960 2007-05-01  Bruno Haible  <bruno@clisp.org>
34961
34962         * doc/headers/google-ranking.txt: New file.
34963
34964 2007-04-30  Eric Blake  <ebb9@byu.net>
34965
34966         Prefer fseeko to fseek.
34967         * modules/getpass (Depends-on): Add fseeko.
34968         * lib/getpass.c (getpass): Use fseeko, not fseek.
34969
34970 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
34971
34972         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
34973         assumes the sorting is stable, while most qsort implementations
34974         are not.  Use argument addresses to ensure they never compare as
34975         equal.
34976
34977         * tests/test-argp-2.sh (usage-indent test): Fix output
34978         (func_compare): Restore diff options
34979         * tests/test-argp.c: Restore #include "progname.h"
34980
34981 2007-04-29  Bruno Haible  <bruno@clisp.org>
34982
34983         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
34984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34985         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
34986         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34987         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
34988         (configure.ac): Define CHECK_SNPRINTF_POSIX.
34989         (TESTS, check_PROGRAMS): Add test-snprintf.
34990         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
34991         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
34992         (TESTS, check_PROGRAMS): Add test-vsnprintf.
34993         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
34994         assertions that fail on HP-UX, OSF/1, or IRIX.
34995         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
34996
34997 2007-04-29  Bruno Haible  <bruno@clisp.org>
34998
34999         * MODULES.html.sh (posix_functions): Remove 'contents'.
35000
35001 2007-04-29  Karl Berry  <karl@gnu.org>
35002
35003         * config/srclist.txt (gendocs_template_min): new entry.
35004
35005 2007-04-29  Bruno Haible  <bruno@clisp.org>
35006
35007         Work around fpurge bug on BSD systems.
35008         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35010         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35011         fpurge to rpl_fpurge if the system already has this function.
35012         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35013         the case where the system already has this function. Correct invariants
35014         on BSD systems.
35015         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35016         BSD systems.
35017
35018 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35019
35020         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35021         proposed by Sven Verdoolaege.
35022
35023         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35024         options.
35025         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35026         (usage and help tests): Update
35027
35028 2007-04-29  Bruno Haible  <bruno@clisp.org>
35029
35030         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35031         Print more information in case of failure. Disable a test on BeOS.
35032
35033 2007-04-29  Bruno Haible  <bruno@clisp.org>
35034
35035         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35036         This helps debugging on systems on which no gdb is available.
35037
35038 2007-04-29  Bruno Haible  <bruno@clisp.org>
35039
35040         * lib/freading.h: Improve comments.
35041         * lib/fwriting.h: Likewise.
35042         * tests/test-freading.c (main): Don't check freading immediately after
35043         repositioning. Needed for glibc.
35044
35045 2007-04-29  Bruno Haible  <bruno@clisp.org>
35046
35047         * lib/freading.c (freading): Trivial simplification.
35048
35049 2007-04-28  Bruno Haible  <bruno@clisp.org>
35050
35051         * tests/test-fwriting.c (main): Also test the interaction between
35052         fflush and fwriting.
35053         * modules/fwriting-tests (Depends-on): Add fflush.
35054
35055         * tests/test-freading.c (main): Also test the interaction between
35056         fflush and freading.
35057         * modules/freading-tests (Depends-on): Add fflush.
35058
35059 2007-04-28  Bruno Haible  <bruno@clisp.org>
35060
35061         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35062         fseeko and ftello.
35063         Suggested by Eric Blake.
35064
35065 2007-04-28  Jim Meyering  <jim@meyering.net>
35066
35067         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35068         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35069         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35070
35071 2007-04-27  Eric Blake  <ebb9@byu.net>
35072
35073         * doc/headers/assert.texi (assert.h): Document assert module use.
35074
35075 2007-04-27  Bruno Haible  <bruno@clisp.org>
35076
35077         * doc/headers/*.texi: New files.
35078         * doc/gnulib.texi (Header File Substitutes): New chapter.
35079         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35080         dependencies.
35081         (standards.info ,standards.html, standards.dvi): Update dependencies.
35082         (mostlyclean, clean): New targets.
35083
35084 2007-04-27  Bruno Haible  <bruno@clisp.org>
35085
35086         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35087         * modules/sysexits (Files, Makefile.am): Update.
35088
35089         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35090         * modules/sys_socket (Files, Makefile.am): Update.
35091
35092         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35093         * modules/sys_stat (Files, Makefile.am): Update.
35094
35095 2007-04-27  Eric Blake  <ebb9@byu.net>
35096
35097         * lib/freading.h: Improve comments.
35098         * lib/fwriting.h: Likewise.
35099         * lib/fflush.c: Likewise.
35100
35101         Fix closein for mingw.
35102         * modules/closein-tests: Add tests for closein.
35103         * tests/test-closein.c: New file.
35104         * tests/test-closein.sh: Likewise.
35105         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35106         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35107
35108 2007-04-27  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35111         version is < 6.
35112         * lib/math_.h [__DECC]: Likewise.
35113         * lib/stdio_.h [__DECC]: Likewise.
35114         * lib/stdlib_.h [__DECC]: Likewise.
35115         * lib/string_.h [__DECC]: Likewise.
35116         * lib/time_.h [__DECC]: Likewise.
35117         * lib/wchar_.h [__DECC]: Likewise.
35118         * lib/wctype_.h [__DECC]: Likewise.
35119
35120 2007-04-27  Bruno Haible  <bruno@clisp.org>
35121
35122         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35123
35124 2007-04-27  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/fflush.c: Add comments.
35127         * modules/fpurge-tests (Depends-on): Add fflush.
35128         * modules/freadable-tests (Depends-on): Likewise.
35129         * modules/fwritable-tests (Depends-on): Likewise.
35130
35131 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35132
35133         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35134         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35135         Report by Bruno Haible <bruno@clisp.org>.
35136
35137 2007-04-26  Eric Blake  <ebb9@byu.net>
35138
35139         Fix fflush on mingw.
35140         * modules/fflush (Depends-on): Add freading.
35141         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35142         but unread data.
35143
35144 2007-04-26  Eric Blake  <ebb9@byu.net>
35145         and Bruno Haible  <bruno@clisp.org>
35146
35147         Implement freading and fwriting.
35148         * lib/freading.c: New file.
35149         * lib/freading.h: Likewise.
35150         * m4/freading.m4: Likewise.
35151         * modules/freading: Likewise.
35152         * modules/freading-tests: Likewise.
35153         * tests/test-freading.c: Likewise.
35154         * lib/fwriting.c: New file.
35155         * lib/fwriting.h: Likewise.
35156         * m4/fwriting.m4: Likewise.
35157         * modules/fwriting: Likewise.
35158         * modules/fwriting-tests: Likewise.
35159         * tests/test-fwriting.c: Likewise.
35160         * MODULES.html.sh (File stream based Input/Output): Mention them.
35161
35162 2007-04-26  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35165         'long' when we assume it.
35166         Suggested by Eric Blake.
35167
35168 2007-04-26  Bruno Haible  <bruno@clisp.org>
35169
35170         Ensure fseeko, ftello are declared on glibc systems.
35171         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35172         * modules/fseeko (configure.ac-early): Likewise.
35173         * modules/ftello (configure.ac-early): Likewise.
35174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35175         AC_FUNC_FSEEKO for this.
35176         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35177         (gl_CHECK_FSEEKO): Remove macro.
35178
35179 2007-04-26  Bruno Haible  <bruno@clisp.org>
35180
35181         * tests/test-fflush.c (main): Also check the ftell result after
35182         fflush and fseek/fseeko.
35183         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35184         file descriptor position cache in the stream.
35185         * lib/fseeko.c (rpl_fseeko): Likewise.
35186
35187 2007-04-26  Bruno Haible  <bruno@clisp.org>
35188
35189         * modules/fflush-tests (Depends-on): Add fseeko.
35190
35191 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35192             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35193
35194         * lib/argz_.h: ensure error_t definition is obtained in same
35195         mechanism system argz.h would have.
35196         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35197         argz facilities are known bad.  Err on the side of caution if
35198         cross-compiling.
35199
35200 2007-04-25  Eric Blake  <ebb9@byu.net>
35201
35202         * lib/fpurge.c (includes): Use stdlib.h for free.
35203         * tests/test-fflush.c (main): Also test fflush-fseeko.
35204
35205 2007-04-25  Bruno Haible  <bruno@clisp.org>
35206
35207         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35208         * lib/fseeko.c: New file.
35209         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35210         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35211         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35212         gl_FUNC_FSEEKO.
35213         (gl_FUNC_FSEEKO): Invoke it.
35214         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35215         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35216         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35217
35218 2007-04-25  Bruno Haible  <bruno@clisp.org>
35219
35220         * modules/fflush (Depends-on): Add ftello.
35221
35222 2007-04-25  Bruno Haible  <bruno@clisp.org>
35223
35224         * modules/ftello-tests: New file.
35225         * tests/test-ftello.c: New file.
35226
35227         * modules/ftello: New file.
35228         * m4/ftello.m4: New file.
35229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35230         HAVE_FTELLO.
35231         * lib/stdio_.h (ftello): New declaration.
35232         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35233         HAVE_FTELLO.
35234
35235 2007-04-25  Bruno Haible  <bruno@clisp.org>
35236
35237         * modules/fseeko-tests: New file.
35238         * tests/test-fseeko.c: New file.
35239
35240         * modules/fseeko: New file.
35241         * m4/fseeko.m4: New file.
35242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35243         HAVE_FSEEKO.
35244         * lib/stdio_.h (fseeko): New declaration.
35245         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35246         HAVE_FSEEKO.
35247
35248 2007-04-25  Bruno Haible  <bruno@clisp.org>
35249
35250         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35251
35252 2007-04-25  Bruno Haible  <bruno@clisp.org>
35253
35254         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35255         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35256         * tests/test-unistd.c: Likewise.
35257         * tests/test-fcntl.c: Likewise.
35258
35259 2007-04-23  Eric Blake  <ebb9@byu.net>
35260
35261         * lib/fflush.c: Fix missing include.
35262         Reported by Bruno Haible.
35263
35264 2007-04-23  Bruno Haible  <bruno@clisp.org>
35265
35266         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35267         Reported by Eric Blake.
35268
35269 2007-04-23  Bruno Haible  <bruno@clisp.org>
35270
35271         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35272
35273 2007-04-23  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35276
35277 2007-04-23  Bruno Haible  <bruno@clisp.org>
35278
35279         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35280         Needed on HP-UX 11.
35281
35282 2007-04-16  Eric Blake  <ebb9@byu.net>
35283
35284         Make fflush rely on fpurge.
35285         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35286         open coding all variants.
35287         * modules/fflush (Depends-on): Add fpurge and unistd.
35288         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35289         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35290
35291         Fix --with-tests compilation on cygwin.
35292         * modules/argmatch-tests (Makefile.am): List gnulib library first
35293         in LDADD.
35294         * modules/argp-tests (Makefile.am): Likewise.
35295         * modules/array-list-tests (Makefile.am): Likewise.
35296         * modules/array-oset-tests (Makefile.am): Likewise.
35297         * modules/avltree-list-tests (Makefile.am): Likewise.
35298         * modules/avltree-oset-tests (Makefile.am): Likewise.
35299         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35300         * modules/carray-list-tests (Makefile.am): Likewise.
35301         * modules/dirname-tests (Makefile.am): Likewise.
35302         * modules/frexp-tests (Makefile.am): Likewise.
35303         * modules/isnanl-tests (Makefile.am): Likewise.
35304         * modules/linked-list-tests (Makefile.am): Likewise.
35305         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35306         * modules/lock-tests (Makefile.am): Likewise.
35307         * modules/rbtree-list-tests (Makefile.am): Likewise.
35308         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35309         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35310         * modules/tls-tests (Makefile.am): Likewise.
35311         * modules/tsearch-tests (Makefile.am): Likewise.
35312         * modules/xvasprintf-tests (Makefile.am): Likewise.
35313
35314         Fix fpurge for cygwin.
35315         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35316         value.
35317         * modules/fpurge-tests (Depends-on): Clean up trash.
35318
35319 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35320
35321         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35322
35323         * m4/autobuild.m4: Re-indent.
35324
35325 2007-04-13  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/fpurge-tests: New file.
35328         * tests/test-fpurge.c: New file.
35329
35330         * modules/fpurge: New file.
35331         * lib/fpurge.h: New file.
35332         * lib/fpurge.c: New file.
35333         * m4/fpurge.m4: New file.
35334
35335 2007-04-13  Bruno Haible  <bruno@clisp.org>
35336
35337         * modules/fbufmode-tests: New file.
35338         * tests/test-fbufmode.c: New file.
35339
35340         * modules/fbufmode: New file.
35341         * lib/fbufmode.h: New file.
35342         * lib/fbufmode.c: New file.
35343         * m4/fbufmode.m4: New file.
35344
35345 2007-04-13  Bruno Haible  <bruno@clisp.org>
35346
35347         * modules/fwritable-tests: New file.
35348         * tests/test-fwritable.c: New file.
35349
35350         * modules/fwritable: New file.
35351         * lib/fwritable.h: New file.
35352         * lib/fwritable.c: New file.
35353         * m4/fwritable.m4: New file.
35354
35355 2007-04-13  Bruno Haible  <bruno@clisp.org>
35356
35357         * modules/freadable-tests: New file.
35358         * tests/test-freadable.c: New file.
35359
35360         * modules/freadable: New file.
35361         * lib/freadable.h: New file.
35362         * lib/freadable.c: New file.
35363         * m4/freadable.m4: New file.
35364
35365 2007-04-13  Bruno Haible  <bruno@clisp.org>
35366
35367         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35368         MOSTLYCLEANFILES.
35369
35370 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35371
35372         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35373         gzip bootstrap.conf to avoid dragging in i18n machinery.
35374         (gnulib_tool_option): Use it.
35375
35376 2007-04-13  Bruno Haible  <bruno@clisp.org>
35377
35378         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35379         %F directives.
35380         * tests/test-vasprintf-posix.c (test_function): Likewise.
35381         * tests/test-snprintf-posix.h (test_function): Likewise.
35382         * tests/test-sprintf-posix.h (test_function): Likewise.
35383         * tests/test-fprintf-posix.h (test_function): Likewise.
35384         * tests/test-printf-posix.h (test_function): Likewise.
35385         * tests/test-fprintf-posix.out: Likewise.
35386
35387 2007-04-13  Bruno Haible  <bruno@clisp.org>
35388
35389         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35390         * modules/tls-tests (configure.ac): Likewise.
35391         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35392
35393 2007-04-13  Bruno Haible  <bruno@clisp.org>
35394
35395         * lib/tls.c (glthread_tls_get): Fix return type.
35396         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35397
35398 2007-04-12  Eric Blake  <ebb9@byu.net>
35399
35400         * modules/gettime (Depends-on): Remove gettime.
35401         Reported by Dmitry V. Levin.
35402
35403 2007-04-12  Bruno Haible  <bruno@clisp.org>
35404
35405         * modules/fflush (Include): Mention <stdio.h>.
35406         * modules/strtoimax (Include): Mention <inttypes.h>.
35407         * modules/strtoumax (Include): Likewise.
35408
35409 2007-04-12  Eric Blake  <ebb9@byu.net>
35410
35411         * .cvsignore: New file.
35412         * .gitignore: Likewise.
35413
35414 2007-04-12  Bruno Haible  <bruno@clisp.org>
35415
35416         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35417         not before, since $(LDADD) often contains libgnu.a.
35418         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35419         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35420         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35421         Needed on Cygwin.
35422
35423 2007-04-12  Eric Blake  <ebb9@byu.net>
35424
35425         Work around glibc's failure to flush stdin on fclose.
35426         * lib/closein.c (close_stdin): Flush stdin before closing.
35427
35428         Work around glibc's failure to reset seekable stdin on exit.
35429         * modules/closein: New module.
35430         * lib/closein.c: New file.
35431         * lib/closein.h: Likewise.
35432         * m4/closein.m4: Likewise.
35433         * MODULES.html.sh (File stream based Input/Output): Document it.
35434
35435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35436
35437         * gnulib-tool: Rename generated 'autobuild' script to
35438         'do-autobuild' in --create-megatestdir output.
35439
35440         * doc/gnulib.texi (Build robot for gnulib): Fix.
35441
35442 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35443
35444         * modules/sysexits (Depends-on): Add absolute-header.
35445
35446 2007-04-12  Eric Blake  <ebb9@byu.net>
35447
35448         No need to preserve errno on success.
35449         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35450         Reported by Bruno Haible.
35451
35452 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35453
35454         * MODULES.html.sh (Support for maintaining and releasing
35455         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35456
35457 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35458
35459         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35460
35461 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35462
35463         * modules/autobuild: New module.
35464
35465         * m4/autobuild.m4: New file.
35466
35467 2007-04-11  Bruno Haible  <bruno@clisp.org>
35468
35469         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35470         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35474         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35475         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35477         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35478         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35485         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35497         Reported by Eric Blake.
35498
35499 2007-04-11  Bruno Haible  <bruno@clisp.org>
35500
35501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35502
35503 2007-04-10  Bruno Haible  <bruno@clisp.org>
35504
35505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35506         for NaN and Infinity. Needed on FreeBSD 6.1.
35507         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35508         regarding results for "%010a" of Infinity and NaN.
35509         * tests/test-vasprintf-posix.c (test_function): Likewise.
35510         * tests/test-snprintf-posix.h (test_function): Likewise.
35511         * tests/test-sprintf-posix.h (test_function): Likewise.
35512         * tests/test-fprintf-posix.h (test_function): Likewise.
35513         * tests/test-printf-posix.h (test_function): Likewise.
35514         * tests/test-fprintf-posix.out: Likewise.
35515
35516 2007-04-10  Bruno Haible  <bruno@clisp.org>
35517
35518         * modules/locale-tests: New file.
35519         * tests/test-locale.c: New file.
35520
35521         * modules/locale: New file.
35522         * lib/locale_.h: New file.
35523         * m4/locale_h.m4: New file.
35524
35525 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35526             Bruno Haible  <bruno@clisp.org>
35527
35528         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35529         be determined, test for availability of the copysignf, copysign,
35530         copysignl functions.
35531         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35532         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35533         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35534
35535 2007-04-09  Eric Blake  <ebb9@byu.net>
35536
35537         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35538         * modules/stdio (Makefile.am): Support fflush.
35539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35540         * modules/fflush: New file.
35541         * lib/fflush.c: Likewise.
35542         * m4/fflush.m4: Likewise.
35543         * modules/fflush-tests: New test.
35544         * tests/test-fflush.c: Likewise.
35545         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35546
35547 2007-04-06  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35550         (VASNPRINTF): Use signbit for faster determination whether to print a
35551         minus sign.
35552         * modules/vasnprintf (Files): Remove lib/float+.h.
35553         * modules/fprintf-posix (Depends-on): Add signbit.
35554         * modules/snprintf-posix (Depends-on): Likewise.
35555         * modules/sprintf-posix (Depends-on): Likewise.
35556         * modules/vasnprintf-posix (Depends-on): Likewise.
35557         * modules/vasprintf-posix (Depends-on): Likewise.
35558         * modules/vfprintf-posix (Depends-on): Likewise.
35559         * modules/vsnprintf-posix (Depends-on): Likewise.
35560         * modules/vsprintf-posix (Depends-on): Likewise.
35561
35562 2007-04-06  Bruno Haible  <bruno@clisp.org>
35563
35564         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35565         * tests/test-frexpl.c (main): Likewise.
35566         * tests/test-ldexpl.c (main): Likewise.
35567         * modules/frexp-tests (Depends-on): Add signbit.
35568         * modules/frexpl-tests (Depdends-on): Likewise.
35569         * modules/ldexpl-tests (Depdends-on): Likewise.
35570
35571 2007-04-06  Bruno Haible  <bruno@clisp.org>
35572
35573         * modules/signbit-tests: New file.
35574         * tests/test-signbit.c: New file.
35575
35576         * modules/signbit: New file.
35577         * lib/signbitf.c: New file.
35578         * lib/signbitd.c: New file.
35579         * lib/signbitl.c: New file.
35580         * m4/signbit.m4: New file.
35581         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35582         (signbit): New macro.
35583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35584         REPLACE_SIGNBIT.
35585         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35586         REPLACE_FREXPL into math.h.
35587
35588 2007-04-06  Bruno Haible  <bruno@clisp.org>
35589
35590         * modules/isnanf-nolibm-tests: New file.
35591         * tests/test-isnanf.c: New file.
35592
35593         * modules/isnanf-nolibm: New file.
35594         * lib/isnanf.h: New file.
35595         * lib/isnanf.c: New file.
35596         * lib/isnan.c: Consider the USE_FLOAT macro.
35597         * m4/isnanf.m4: New file.
35598
35599 2007-04-06  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35602         (Link): New section.
35603
35604         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35605
35606 2007-04-06  Bruno Haible  <bruno@clisp.org>
35607
35608         Assume the 'long double' type.
35609         * m4/longdouble.m4: Remove file.
35610         * config/srclist.txt: Don't mention longdouble.m4.
35611         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35612         * lib/float+.h: Likewise.
35613         * lib/frexp.c: Likewise.
35614         * lib/printf-args.h: Likewise.
35615         * lib/printf-args.c: Likewise.
35616         * lib/printf-frexp.c: Likewise.
35617         * lib/printf-parse.c: Likewise.
35618         * lib/vasnprintf.c: Likewise.
35619         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
35620         * m4/intl.m4: Likewise.
35621         * m4/isnanl.m4: Likewise.
35622         * m4/printf.m4: Likewise.
35623         * m4/printf-frexpl.m4: Likewise.
35624         * m4/vasnprintf.m4: Likewise.
35625         * modules/allocsa (Files): Remove m4/longdouble.m4.
35626         * modules/gettext (Files): Likewise.
35627         * modules/relocatable-prog-wrapper (Files): Likewise.
35628         * modules/vasnprintf (Files): Likewise.
35629         * modules/isnanl (Files): Likewise.
35630         (Include): Simplify.
35631         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
35632         (Include): Simplify.
35633         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
35634         (Include): Simplify.
35635         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
35636         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35637         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
35638         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35639         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35640         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35641         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
35642         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35643         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
35644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35645         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
35646         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
35647         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
35648         * tests/test-isnanl.c: Likewise.
35649         * tests/test-snprintf-posix.h: Likewise.
35650         * tests/test-sprintf-posix.h: Likewise.
35651         * tests/test-vasnprintf-posix.c: Likewise.
35652         * tests/test-vasnprintf-posix2.c: Likewise.
35653         * tests/test-vasprintf-posix.c: Likewise.
35654
35655 2007-04-06  Bruno Haible  <bruno@clisp.org>
35656
35657         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
35658         * lib/math_.h [__DECC]: Include the overridden include file through
35659         #include_next, outside the double-inclusion guard.
35660         * lib/stdio_.h [__DECC]: Likewise.
35661         * lib/stdlib_.h [__DECC]: Likewise.
35662         * lib/string_.h [__DECC]: Likewise.
35663         * lib/time_.h [__DECC]: Likewise.
35664         * lib/wchar_.h [__DECC]: Likewise.
35665         * lib/wctype_.h [__DECC]: Likewise.
35666         * lib/inttypes_.h [__DECC]: Likewise.
35667         Reported by Albert Chin <china@thewrittenword.com> in
35668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
35669
35670 2007-04-04  Eric Blake  <ebb9@byu.net>
35671
35672         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
35673         1.5.x.
35674
35675 2007-04-04  Bruno Haible  <bruno@clisp.org>
35676
35677         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
35678         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
35679
35680 2007-04-04  Bruno Haible  <bruno@clisp.org>
35681
35682         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
35683         results for "%010a" of Infinity and NaN.
35684         * tests/test-vasprintf-posix.c (test_function): Likewise.
35685         * tests/test-snprintf-posix.h (test_function): Likewise.
35686         * tests/test-sprintf-posix.h (test_function): Likewise.
35687         * tests/test-fprintf-posix.h (test_function): Remove these tests.
35688         * tests/test-printf-posix.h (test_function): Likewise.
35689         * tests/test-fprintf-posix.out: Update.
35690         Needed for FreeBSD 6.1.
35691
35692 2007-04-04  Bruno Haible  <bruno@clisp.org>
35693
35694         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
35695         directly used by the gnulib modules nor by gnulib-tool.
35696
35697 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * DEPENDENCIES: Give overall description of version dependency
35700         desirability.  Use more-typical names for apps.
35701         Add shell, coreutils, diffutils, grep, tar, gzip.
35702
35703 2007-04-04  Simon Josefsson  <simon@josefsson.org>
35704
35705         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
35706
35707 2007-04-04  Karl Berry  <karl@gnu.org>
35708
35709         * MODULES.html.sh (func_module): missing '.
35710
35711 2007-04-03  Bruno Haible  <bruno@clisp.org>
35712
35713         * modules/argmatch-tests (Makefile.am): New variable
35714         test_argmatch_LDADD.
35715         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
35716         * modules/array-list-tests (Makefile.am): New variable
35717         test_array_list_LDADD.
35718         * modules/array-oset-tests (Makefile.am): New variable
35719         test_array_oset_LDADD.
35720         * modules/avltree-list-tests (Makefile.am): New variable
35721         test_avltree_list_LDADD.
35722         * modules/avltree-oset-tests (Makefile.am): New variable
35723         test_avltree_oset_LDADD.
35724         * modules/avltreehash-list-tests (Makefile.am): New variable
35725         test_avltreehash_list_LDADD.
35726         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
35727         test_canonicalize_lgpl_LDADD.
35728         * modules/carray-list-tests (Makefile.am): New variable
35729         test_carray_list_LDADD.
35730         * modules/dirname-tests (Makefile.am): New variable
35731         test_dirname_LDADD.
35732         * modules/linked-list-tests (Makefile.am): New variable
35733         test_linked_list_LDADD.
35734         * modules/linkedhash-list-tests (Makefile.am): New variable
35735         test_linkedhash_list_LDADD.
35736         * modules/rbtree-list-tests (Makefile.am): New variable
35737         test_rbtree_list_LDADD.
35738         * modules/rbtree-oset-tests (Makefile.am): New variable
35739         test_rbtree_oset_LDADD.
35740         * modules/rbtreehash-list-tests (Makefile.am): New variable
35741         test_rbtreehash_list_LDADD.
35742         * modules/xvasprintf-tests (Makefile.am): New variable
35743         test_xvasprintf_LDADD.
35744         Reported by Eric Blake.
35745
35746 2007-04-03  Eric Blake  <ebb9@byu.net>
35747
35748         * DEPENDENCIES: Weaken m4 requirements.
35749
35750 2007-04-03  Bruno Haible  <bruno@clisp.org>
35751
35752         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
35753         * modules/isnanl-tests (configure.ac): Likewise.
35754
35755 2007-04-03  Ben Pfaff  <blp@gnu.org>
35756
35757         * modules/iconv_open: Add $(srcdir)/ to source directory
35758         references in Makefile fragments that call gperf, to fix VPATH
35759         builds.
35760
35761 2007-04-03  Bruno Haible  <bruno@clisp.org>
35762
35763         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
35764         * lib/ldexpl.c: Undo last change.
35765
35766 2007-04-03  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/printf-frexpl (Depends-on): Undo last change.
35769         (Files): Add m4/ldexpl.m4.
35770
35771 2007-04-03  Bruno Haible  <bruno@clisp.org>
35772
35773         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
35774         * modules/isnanl (Link): New section.
35775
35776         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
35777         * modules/frexp (Link): New section.
35778
35779         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
35780         * modules/frexpl (Link): New section.
35781
35782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
35783         * modules/ldexpl (Link): New section.
35784
35785 2007-04-03  Bruno Haible  <bruno@clisp.org>
35786
35787         * modules/TEMPLATE-EXTENDED: New file.
35788         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
35789
35790 2007-04-03  Bruno Haible  <bruno@clisp.org>
35791
35792         * DEPENDENCIES: New file.
35793         Suggested by Simon Josefsson.
35794
35795 2007-04-03  Bruno Haible  <bruno@clisp.org>
35796
35797         * doc/gnulib.texi: Escape @.
35798
35799 2007-04-03  James Youngman  <jay@gnu.org>
35800         and Paul Eggert  <eggert@cs.ucla.edu>
35801
35802         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
35803         birthtime on all systems that have birthtime, not just those which
35804         use st_birthtimensec rather than st_birthtim.  Putting zero in
35805         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
35806         that the birth time is not available for files on an NFS mount.
35807
35808 2007-04-03  Simon Josefsson  <simon@josefsson.org>
35809
35810         * modules/memxor: Move back from crypto/, suggested by Bruno.
35811         * modules/crypto/hmac-sha1: Fix memxor dependency.
35812
35813         * modules/crypto/gc: Moved from ../.
35814
35815 2007-04-02  Eric Blake  <ebb9@byu.net>
35816
35817         * lib/ldexpl.c (includes): Avoid libm.
35818
35819         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
35820
35821 2007-04-02  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
35824         on IRIX.
35825
35826 2007-04-02  Bruno Haible  <bruno@clisp.org>
35827
35828         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
35829         x86 or x86_64 platforms running MacOS X.
35830         Reported by Ryan Schmidt <@ryandesign.com>.
35831
35832 2007-04-02  Bruno Haible  <bruno@clisp.org>
35833
35834         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
35835         i386.
35836
35837 2007-04-01  Simon Josefsson  <simon@josefsson.org>
35838
35839         * modules/crypto/arcfour: Moved from ../.
35840         * modules/crypto/arcfour-tests: Moved from ../.
35841         * modules/crypto/arctwo: Moved from ../.
35842         * modules/crypto/arctwo-tests: Moved from ../.
35843         * modules/crypto/des: Moved from ../.
35844         * modules/crypto/des-tests: Moved from ../.
35845         * modules/crypto/gc-arcfour: Moved from ../.
35846         * modules/crypto/gc-arcfour-tests: Moved from ../.
35847         * modules/crypto/gc-arctwo: Moved from ../.
35848         * modules/crypto/gc-arctwo-tests: Moved from ../.
35849         * modules/crypto/gc-des: Moved from ../.
35850         * modules/crypto/gc-des-tests: Moved from ../.
35851         * modules/crypto/gc-hmac-md5: Moved from ../.
35852         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
35853         * modules/crypto/gc-hmac-sha1: Moved from ../.
35854         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
35855         * modules/crypto/gc-md2: Moved from ../.
35856         * modules/crypto/gc-md2-tests: Moved from ../.
35857         * modules/crypto/gc-md4: Moved from ../.
35858         * modules/crypto/gc-md4-tests: Moved from ../.
35859         * modules/crypto/gc-md5: Moved from ../.
35860         * modules/crypto/gc-md5-tests: Moved from ../.
35861         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
35862         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
35863         * modules/crypto/gc-random: Moved from ../.
35864         * modules/crypto/gc-rijndael: Moved from ../.
35865         * modules/crypto/gc-rijndael-tests: Moved from ../.
35866         * modules/crypto/gc-sha1: Moved from ../.
35867         * modules/crypto/gc-sha1-tests: Moved from ../.
35868         * modules/crypto/gc-tests: Moved from ../.
35869         * modules/crypto/hmac-md5: Moved from ../.
35870         * modules/crypto/hmac-md5-tests: Moved from ../.
35871         * modules/crypto/hmac-sha1: Moved from ../.
35872         * modules/crypto/hmac-sha1-tests: Moved from ../.
35873         * modules/crypto/md2: Moved from ../.
35874         * modules/crypto/md2-tests: Moved from ../.
35875         * modules/crypto/md4: Moved from ../.
35876         * modules/crypto/md4-tests: Moved from ../.
35877         * modules/crypto/md5: Moved from ../.
35878         * modules/crypto/md5-tests: Moved from ../.
35879         * modules/crypto/memxor: Moved from ../.
35880         * modules/crypto/rijndael: Moved from ../.
35881         * modules/crypto/rijndael-tests: Moved from ../.
35882         * modules/crypto/sha1: Moved from ../.
35883
35884 2007-03-30  James Youngman  <jay@gnu.org>
35885
35886         * tests/test-stat-time.c (prepare_test): use chmod() rather than
35887         rename() to change the ctime of a file (because ctime is unaffected
35888         by rename on jfs2 on AIX 5.1).
35889         (main): Start by doing cleanup, in case a previous run failed leaving
35890         test files behind.
35891
35892 2007-03-31  Bruno Haible  <bruno@clisp.org>
35893
35894         Support old proprietary implementations of iconv.
35895         * modules/iconv_open: New file.
35896         * lib/iconv_.h: New file.
35897         * m4/iconv_h.m4: New file.
35898         * lib/iconv_open.c: New file.
35899         * lib/iconv_open-aix.gperf: New file.
35900         * lib/iconv_open-hpux.gperf: New file.
35901         * lib/iconv_open-irix.gperf: New file.
35902         * lib/iconv_open-osf.gperf: New file.
35903         * m4/iconv_open.m4: New file.
35904         * modules/linebreak (Depends-on): Add iconv_open.
35905         * modules/striconv (Depends-on): Likewise.
35906         * modules/striconveh (Depends-on): Likewise.
35907         * modules/unicodeio (Depends-on): Likewise.
35908         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
35909         (iconv_t)(-1).
35910         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
35911         conversion if cd is (iconv_t)(-1).
35912         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
35913         is not possible.
35914
35915 2007-03-31  Bruno Haible  <bruno@clisp.org>
35916
35917         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
35918         work on Solaris either. Protect also second use of "autodetect_jp".
35919
35920 2007-03-31  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
35923         the function is not present.
35924
35925 2007-03-31  Bruno Haible  <bruno@clisp.org>
35926
35927         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
35928         the function is not present.
35929
35930 2007-03-31  Bruno Haible  <bruno@clisp.org>
35931
35932         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
35933         a bug in HP-UX iconv_open().
35934
35935 2007-03-31  Bruno Haible  <bruno@clisp.org>
35936
35937         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
35938         (Mathematics <math.h>): New section, add fpieee.
35939         (Input/output <stdio.h>): Add fseterr.
35940         (Mathematics <math.h>): New section, add printf-frexp.
35941         (Container data structures): Add sublist.
35942         (Core language properties): Add fpucw, inline.
35943         (Functions for greatest-width integer types <inttypes.h>): Add
35944         imaxabs, imaxdiv, inttypes.
35945         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
35946         isnanl-nolibm, ldexp.
35947         (Mathematics <math.h>): New section, add printf-frexpl.
35948         (Support for systems lacking POSIX:2001): Add fprintf-posix,
35949         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
35950         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
35951         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
35952         (Unicode string functions): Add unistr/u*-mbtoucr.
35953         (Java): Add javacomp-script, javaexec-script.
35954         (C#): Add csharpcomp-script, csharpexec-script.
35955         (Support for building libraries and executables): Add havelib,
35956         relocatable-*.
35957         (Support for maintaining and releasing projects): Renamed from
35958         'Support for maintaining and release projects'. Add announce-gen.
35959
35960 2007-03-31  Bruno Haible  <bruno@clisp.org>
35961
35962         * README: Talk primarily about git.
35963         (git and CVS): Renamed from CVS.
35964         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
35965         gnulib is available through git.
35966         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
35967
35968 2007-03-30  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
35971         * lib/poll_.h: Likewise.
35972         * lib/stat_.h: Likewise.
35973         * lib/sys_time_.h: Likewise.
35974         * lib/sysexit_.h: Likewise.
35975         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
35976         * lib/stdbool_.h: Likewise.
35977         * lib/byteswap_.h: Add double-inclusion guard.
35978
35979 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
35980
35981         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
35982
35983 2007-03-30  Karl Berry  <karl@gnu.org>
35984
35985         * config/srclist-update: double space after USA in the license
35986         substitution, since that's how it's usually (?) written.
35987
35988 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35989
35990         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
35991         reported by Bruno Haible.
35992
35993 2007-03-29  Bruno Haible  <bruno@clisp.org>
35994
35995         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
35996         a bug in AIX iconv().
35997
35998 2007-03-29  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/ldexpl-tests: New file.
36001         * tests/test-ldexpl.c: New file.
36002
36003 2007-03-29  Bruno Haible  <bruno@clisp.org>
36004
36005         * lib/ldexpl.c: Include fpucw.h.
36006         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36007         multiplication.
36008         * modules/ldexpl (Depends-on): Add fpucw.
36009
36010 2007-03-29  Bruno Haible  <bruno@clisp.org>
36011
36012         * modules/ldexpl: New file.
36013         * m4/ldexpl.m4: New file.
36014         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36015         set.
36016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36017         REPLACE_LDEXPL.
36018         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36019         REPLACE_LDEXPL.
36020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36021         gl_FUNC_LDEXPL_WORKS.
36022         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36023         * modules/mathl (Files): Remove lib/ldexpl.c.
36024         (Depends-on): Add ldexpl.
36025
36026 2007-03-29  Bruno Haible  <bruno@clisp.org>
36027
36028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36029
36030 2007-03-29  Bruno Haible  <bruno@clisp.org>
36031
36032         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36033         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36034         and possibly also HP-UX.
36035         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36036         work on AIX, IRIX, HP-UX, OSF/1.
36037         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36038         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36039         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36040         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36041         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36042         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36043
36044 2007-03-29  Bruno Haible  <bruno@clisp.org>
36045
36046         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36047
36048 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36049
36050         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36051         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36052
36053 2007-03-29  Eric Blake  <ebb9@byu.net>
36054
36055         * lib/acl-internal.h: Remove redundant include.
36056         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36057         Cygwin when a file is locked.
36058
36059 2007-03-29  Bruno Haible  <bruno@clisp.org>
36060
36061         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36062         file.
36063         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36064
36065 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36066
36067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36068         try to remove a parent directory if the child couldn't be removed
36069         (except for the first rmdir, which could fail because the child
36070         doesn't exist).  Problem reported by Jeff Blaine in
36071         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36072
36073 2007-03-28  Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/striconveh.c (utf8conv_carefully): New function.
36076         (mem_cd_iconveh_internal): Invoke it.
36077
36078 2007-03-28  Bruno Haible  <bruno@clisp.org>
36079
36080         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36081         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36082         input.
36083         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36084         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36085         unistr/u8-uctomb.
36086
36087 2007-03-28  Bruno Haible  <bruno@clisp.org>
36088
36089         * modules/unistr/u8-mbtoucr: New file.
36090         * lib/unistr/u8-mbtoucr.c: New file.
36091         * modules/unistr/u16-mbtoucr: New file.
36092         * lib/unistr/u16-mbtoucr.c: New file.
36093         * modules/unistr/u16-mbtoucr: New file.
36094         * lib/unistr/u16-mbtoucr.c: New file.
36095         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36096
36097 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36098             Bruno Haible  <bruno@clisp.org>
36099
36100         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36101         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36102         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36103
36104         * m4/stdio_h.m4: Add stubs for vasprintf too.
36105
36106         * modules/stdio: Support vasprintf in sed command.
36107
36108         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36109         vasprintf.h.  Add stdio module indicator.
36110
36111         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36112         vasprintf.h.
36113
36114         * lib/vasprintf.h: File removed.
36115
36116         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36117         * lib/vasprintf.c: Ditto.
36118         * lib/xvasprintf.c: Ditto.
36119         * tests/test-vasprintf-posix.c: Ditto.
36120         * tests/test-vasprintf.c: Ditto.
36121
36122 2007-03-27  Bruno Haible  <bruno@clisp.org>
36123
36124         Make vasnprintf multithread-safe.
36125         * lib/vasnprintf.c (decimal_point_char): New function.
36126         (VASNPRINTF): Use it.
36127         Suggested by Simon Josefsson.
36128
36129 2007-03-27  Eric Blake  <ebb9@byu.net>
36130
36131         Support sub-second birthtime on cygwin.
36132         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36133         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36134         (get_stat_birthtime): Also work with st_birthtim.
36135
36136 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36137
36138         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36139         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36140         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36141         (get_stat_birthtime_ns): Simplify compile-time tests.
36142         (get_stat_birthtime): Change the API to look like
36143         get_stat_mtime etc., except return a negative tv_nsec on error.
36144         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36145         Don't check for "spare" fields.
36146         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36147         or for struct stat.st_birthtime, as these tests aren't used.
36148         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36149
36150 2007-03-27  Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/stat-time.h: Include <sys/stat.h>.
36153
36154 2007-03-27  James Youngman  <jay@gnu.org>
36155
36156         * lib/stat-time.h (get_stat_birthtime): New function for
36157           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36158         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36159           and its variants.
36160         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36161         * modules/stat-time-test: New file.
36162         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36163
36164 2007-03-26  Bruno Haible  <bruno@clisp.org>
36165
36166         Better support of signalling NaNs.
36167         * lib/atanl.c: Include isnanl.h.
36168         (atanl): Perform test for NaN at the beginning of the function and
36169         through a call to isnanl.
36170         * lib/cosl.c: Include isnanl.h.
36171         (cosl): Perform test for NaN at the beginning of the function and
36172         through a call to isnanl.
36173         * lib/ldexpl.c: Include isnanl.h.
36174         (ldexpl): Perform test for NaN through a call to isnanl.
36175         * lib/logl.c: Include isnanl.h.
36176         (logl): Perform test for NaN at the beginning of the function and
36177         through a call to isnanl.
36178         * lib/sinl.c: Include isnanl.h.
36179         (sinl): Perform test for NaN at the beginning of the function and
36180         through a call to isnanl.
36181         * lib/sqrtl.c: Include isnanl.h.
36182         (sqrtl): Perform test for NaN at the beginning of the function and
36183         through a call to isnanl.
36184         * lib/tanl.c: Include isnanl.h.
36185         (tanl): Perform test for NaN at the beginning of the function and
36186         through a call to isnanl.
36187         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36188         * modules/mathl (Depends-on): Add isnanl.
36189
36190 2007-03-26  Eric Blake  <ebb9@byu.net>
36191
36192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36193         regression in logic sense of previous patch.
36194
36195 2007-03-26  Bruno Haible  <bruno@clisp.org>
36196
36197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36198         unportable shell command "if ! ...".
36199         Reported by Ralf Wildenhues.
36200
36201 2007-03-25  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36204         <sysexits.h> file, and only add EX_CONFIG.
36205         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36206         absolute file name and whether it is sufficient. Substitute also
36207         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36208         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36209         ABSOLUTE_SYSEXITS_H into sysexits.h.
36210
36211 2007-03-25  Bruno Haible  <bruno@clisp.org>
36212
36213         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36214         hints is NULL.
36215
36216 2007-03-25  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36219         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36220
36221 2007-03-25  Bruno Haible  <bruno@clisp.org>
36222
36223         * lib/vasnprintf.c: Include langinfo.h.
36224         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36225         multithread-safe.
36226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36228         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36232         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36233         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36234         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36235         Reported by Simon Josefsson.
36236
36237 2007-03-25  Bruno Haible  <bruno@clisp.org>
36238
36239         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36240         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36241         * modules/vasnprintf (Depends-on): Add stdint.
36242
36243 2007-03-25  Bruno Haible  <bruno@clisp.org>
36244
36245         * modules/fpieee: New file.
36246         * m4/fpieee.m4: New file.
36247         * modules/isnan-nolibm (Depends-on): Add fpieee.
36248         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36249         * modules/isnanl (Depends-on): Add fpieee.
36250
36251 2007-03-25  Bruno Haible  <bruno@clisp.org>
36252
36253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36254
36255 2007-03-25  Bruno Haible  <bruno@clisp.org>
36256
36257         Avoid test failures on IRIX 6.5.
36258         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36259         (main): Use it.
36260         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36261         macros.
36262         (main): Use them.
36263
36264 2007-03-25  Bruno Haible  <bruno@clisp.org>
36265
36266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36267         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36268         exists but doesn't work.
36269         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36270         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36272         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36273
36274 2007-03-25  Bruno Haible  <bruno@clisp.org>
36275
36276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36277         returns inf. Needed on IRIX 6.5.
36278
36279 2007-03-25  Bruno Haible  <bruno@clisp.org>
36280
36281         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36282         (main): Use isnanl instead of x != x idiom.
36283         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36284
36285         * tests/test-frexp.c: Include isnan.h.
36286         (main): Use isnan instead of x != x idiom.
36287         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36288
36289 2007-03-25  Bruno Haible  <bruno@clisp.org>
36290
36291         * tests/test-frexp.c (NaN): New function/macro.
36292         (main): Use it instead of 0.0 / 0.0.
36293         * tests/test-isnan.c (NaN): New function/macro.
36294         (main): Use it instead of 0.0 / 0.0.
36295         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36296         (test_function): Use it instead of 0.0 / 0.0.
36297         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36298         (test_function): Use it instead of 0.0 / 0.0.
36299         * tests/test-snprintf-posix.h (NaN): New function/macro.
36300         (test_function): Use it instead of 0.0 / 0.0.
36301         * tests/test-sprintf-posix.h (NaN): New function/macro.
36302         (test_function): Use it instead of 0.0 / 0.0.
36303         * tests/test-fprintf-posix.h (NaN): New function/macro.
36304         (test_function): Use it instead of 0.0 / 0.0.
36305         * tests/test-printf-posix.h (NaN): New function/macro.
36306         (test_function): Use it instead of 0.0 / 0.0.
36307
36308         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36309
36310 2007-03-25  Bruno Haible  <bruno@clisp.org>
36311
36312         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36313
36314 2007-03-25  Bruno Haible  <bruno@clisp.org>
36315
36316         * lib/regexec.c (merge_state_with_log): Make static.
36317
36318 2007-03-25  Bruno Haible  <bruno@clisp.org>
36319
36320         * lib/trigl.c (kernel_rem_pio2): Make static.
36321
36322 2007-03-25  Bruno Haible  <bruno@clisp.org>
36323
36324         * lib/sincosl.c (sincosl_table): Make static.
36325
36326 2007-03-25  Bruno Haible  <bruno@clisp.org>
36327
36328         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36329         if the compiler does not support C99.
36330
36331 2007-03-25  Bruno Haible  <bruno@clisp.org>
36332
36333         * modules/time (Makefile.am): Ensure all rule action lines start with a
36334         tab.
36335
36336 2007-03-24  Bruno Haible  <bruno@clisp.org>
36337
36338         * modules/tsearch-tests: New file.
36339         * tests/test-tsearch.sh: New file.
36340         * tests/test-tsearch.c: New file, mostly copied from glibc.
36341
36342         * modules/search-tests: New file.
36343         * tests/test-search.c: New file.
36344
36345         * modules/search: New file.
36346         * lib/search_.h: New file, incorporating lib/tsearch.h.
36347         * m4/search_h.m4: New file.
36348         * lib/tsearch.h: Remove file.
36349         * lib/tsearch.c: Include search.h instead of tsearch.h.
36350         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36351         HAVE_TSEARCH.
36352         * modules/tsearch (Files): Remove lib/tsearch.h.
36353         (Depends-on): Add search.
36354         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36355         (Include): Change tsearch.h into search.h.
36356
36357 2007-03-24  Bruno Haible  <bruno@clisp.org>
36358
36359         * modules/fpucw: New file.
36360         * lib/fpucw.h: New file.
36361         * lib/frexp.c: Include fpucw.h.
36362         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36363         (FUNC): Use them.
36364         * lib/printf-frexp.c: Include fpucw.h.
36365         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36366         (FUNC): Use them.
36367         * lib/vasnprintf.c: Include fpucw.h.
36368         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36369         'long double' calculations.
36370         * tests/test-frexpl.c: Include fpucw.h.
36371         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36372         * tests/test-printf-frexpl.c: Include fpucw.h.
36373         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36374         * modules/frexpl (Depends-on): Add fpucw.
36375         * modules/printf-frexpl (Depends-on): Likewise.
36376         * modules/fprintf-posix (Depends-on): Likewise.
36377         * modules/snprintf-posix (Depends-on): Likewise.
36378         * modules/sprintf-posix (Depends-on): Likewise.
36379         * modules/vasnprintf-posix (Depends-on): Likewise.
36380         * modules/vasprintf-posix (Depends-on): Likewise.
36381         * modules/vfprintf-posix (Depends-on): Likewise.
36382         * modules/vsnprintf-posix (Depends-on): Likewise.
36383         * modules/vsprintf-posix (Depends-on): Likewise.
36384         * modules/frexpl-tests (Depends-on): Likewise.
36385         * modules/printf-frexpl-tests (Depends-on): Likewise.
36386
36387 2007-03-24  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/float+.h: New file.
36390         * lib/isnan.c: Include float+.h.
36391         (SIZE): New macro.
36392         (FUNC): Compare only SIZE bytes of the value.
36393         * lib/vasnprintf.c: Include float+.h.
36394         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36395         SIZEOF_LDBL or SIZEOF_DBL bytes.
36396         * modules/isnan-nolibm (Files): Add lib/float+.h.
36397         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36398         * modules/isnanl (Files): Add lib/float+.h.
36399         * modules/vasnprintf (Files): Add lib/float+.h.
36400
36401 2007-03-24  Bruno Haible  <bruno@clisp.org>
36402
36403         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36404         include isnanl-nolibm.h.
36405
36406 2007-03-24  Bruno Haible  <bruno@clisp.org>
36407
36408         * tests/test-read-file.c (main): Don't produce spurious output for
36409         expected situations. Make the test fail if it encountered unexpected
36410         results.
36411
36412 2007-03-24  Bruno Haible  <bruno@clisp.org>
36413
36414         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36415         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36416
36417 2007-03-24  Bruno Haible  <bruno@clisp.org>
36418
36419         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36420
36421 2007-03-24  Bruno Haible  <bruno@clisp.org>
36422
36423         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36424         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36425
36426         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36427         * modules/utf8-ucs4: Turn into a symbolic link to module
36428         unistr/u8-mbtouc.
36429
36430         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36431         utf8-ucs4-unsafe.
36432         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36433         unistr/u8-mbtouc-unsafe.
36434
36435         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36436         * modules/utf16-ucs4: Turn into a symbolic link to module
36437         unistr/u16-mbtouc.
36438
36439         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36440         utf16-ucs4-unsafe.
36441         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36442         unistr/u16-mbtouc-unsafe.
36443
36444         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36445         * modules/ucs4-utf8: Turn into a symbolic link to module
36446         unistr/u8-ubtomb.
36447
36448         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36449         * modules/ucs4-utf16: Turn into a symbolic link to module
36450         unistr/u16-ubtomb.
36451
36452 2007-03-24  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36455         Enable the function only if HAVE_INLINE.
36456         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36457         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36458         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36459         Enable the function only if HAVE_INLINE.
36460         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36461         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36462         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36463         Enable the function only if HAVE_INLINE.
36464         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36465         Enable the function only if HAVE_INLINE.
36466         * modules/utf8-ucs4: Update.
36467         * modules/utf8-ucs4-unsafe: Update.
36468         * modules/utf16-ucs4: Update.
36469         * modules/utf16-ucs4-unsafe: Update.
36470         * modules/ucs4-utf8: Update.
36471         * modules/ucs4-utf16: Update.
36472
36473 2007-03-24  Bruno Haible  <bruno@clisp.org>
36474
36475         * lib/utf8-ucs4.h: Remove file.
36476         * lib/utf8-ucs4-unsafe.h: Remove file.
36477         * lib/utf16-ucs4.h: Remove file.
36478         * lib/utf16-ucs4-unsafe.h: Remove file.
36479         * lib/ucs4-utf8.h: Remove file.
36480         * lib/ucs4-utf16.h: Remove file.
36481         * lib/unistr.h: Include their previous contents.
36482         * m4/utf-ucs4.m4: Remove file.
36483         * m4/ucs4-utf.m4: Remove file.
36484         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36485         (Depends-on): Add unistr/base.
36486         (configure.ac): Remove gl_UTF_UCS4.
36487         (Makefile.am): Update.
36488         (Include): Change to unistr.h.
36489         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36490         (Depends-on): Add unistr/base.
36491         (configure.ac): Remove gl_UTF_UCS4.
36492         (Makefile.am): Update.
36493         (Include): Change to unistr.h.
36494         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36495         (Depends-on): Add unistr/base.
36496         (configure.ac): Remove gl_UTF_UCS4.
36497         (Makefile.am): Update.
36498         (Include): Change to unistr.h.
36499         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36500         (Depends-on): Add unistr/base.
36501         (configure.ac): Remove gl_UTF_UCS4.
36502         (Makefile.am): Update.
36503         (Include): Change to unistr.h.
36504         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36505         (Depends-on): Add unistr/base.
36506         (configure.ac): Remove gl_UCS4_UTF.
36507         (Makefile.am): Update.
36508         (Include): Change to unistr.h.
36509         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36510         (Depends-on): Add unistr/base.
36511         (configure.ac): Remove gl_UCS4_UTF.
36512         (Makefile.am): Update.
36513         (Include): Change to unistr.h.
36514         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36515         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36516         utf8-ucs4-unsafe.h.
36517         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36518         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36519         utf16-ucs4-unsafe.h.
36520         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36521         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36522         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36523         * lib/unistr/u8-strchr.c: Likewise.
36524         * lib/unistr/u8-strrchr.c: Likewise.
36525         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36526         * lib/unistr/u16-strchr.c: Likewise.
36527         * lib/unistr/u16-strrchr.c: Likewise.
36528         * lib/striconveh.c: Update.
36529         * lib/linebreak.c: Update.
36530
36531 2007-03-24  Bruno Haible  <bruno@clisp.org>
36532
36533         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36534         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36535
36536 2007-03-22  Bruno Haible  <bruno@clisp.org>
36537
36538         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36539
36540 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36541
36542         * MODULES.html.sh (File system functions): New module write-any-file.
36543         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36544         * m4/write-any-file.m4: New files.
36545
36546 2007-03-23  Eric Blake  <ebb9@byu.net>
36547
36548         * gnulib-tool: Rearrange space-tab sequences, since some editors
36549         like to eat them.
36550
36551 2007-03-23  Eric Blake  <ebb9@byu.net>
36552
36553         * lib/version-etc.c (version_etc_va): Update license wording to
36554         be more concise.  Recommended by Richard Stallman.
36555
36556 2007-03-22  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/poll.c (MSG_PEEK): New fallback definition.
36559
36560 2007-03-22  Bruno Haible  <bruno@clisp.org>
36561
36562         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36563         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36564         (main): Update.
36565         Fixes a compilation error on BeOS.
36566
36567 2007-03-22  Bruno Haible  <bruno@clisp.org>
36568
36569         * modules/frexpl-tests: New file.
36570         * tests/test-frexpl.c: New file.
36571
36572         * modules/frexpl: New file.
36573         * m4/frexpl.m4: New file.
36574         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36575         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36577         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36578         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36579         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36580
36581 2007-03-22  Bruno Haible  <bruno@clisp.org>
36582
36583         * lib/frexpl.c: Share code with lib/frexp.c.
36584         * modules/mathl (Files): Add lib/frexp.c.
36585         (Depends-on): Add isnanl-nolibm.
36586
36587 2007-03-22  Bruno Haible  <bruno@clisp.org>
36588
36589         * modules/printf-frexp (Files): Add m4/frexp.m4.
36590         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36591         only if the found frexp function actually works.
36592
36593 2007-03-22  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/frexp.c: Remove older implementation that uses divisions.
36596
36597 2007-03-21  Bruno Haible  <bruno@clisp.org>
36598
36599         * modules/frexp-tests: New file.
36600         * tests/test-frexp.c: New file.
36601
36602         * modules/frexp: New file.
36603         * lib/frexp.c: New file.
36604         * m4/frexp.m4: New file.
36605         * lib/math_.h (frexp): New declaration.
36606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36607         REPLACE_FREXP.
36608         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36609
36610 2007-03-21  Bruno Haible  <bruno@clisp.org>
36611
36612         * modules/isnanl-tests: New file.
36613         * tests/test-isnanl.c: New file.
36614
36615         * modules/isnanl: New file.
36616         * lib/isnanl.h: New file.
36617         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
36618         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
36619         gl_FUNC_ISNANL_WORKS.
36620         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
36621         New macros.
36622
36623 2007-03-21  Bruno Haible  <bruno@clisp.org>
36624
36625         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
36626         lib/isnanl.h.
36627         (Include): Update.
36628         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
36629         * lib/vasnprintf.c: Update.
36630         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
36631         tests/test-isnanl.h, remove tests/test-isnanl.c.
36632         (Makefile.am): Update.
36633         * tests/test-isnanl-nolibm.c: New file.
36634         * tests/test-isnanl.h: New file.
36635         * tests/test-isnanl.c: Remove file.
36636
36637 2007-03-21  Jim Meyering  <jim@meyering.net>
36638
36639         When trying to open ".", treat ESTALE like EACCES.
36640         * lib/savewd.c (savewd_save): Resort to forking not just upon
36641         failure with EACCES, but also when errno is ESTALE.
36642
36643 2007-03-20  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
36646         Needed on AIX 5.1. Reported by Matthew Woehlke.
36647
36648 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36649
36650         Suggestions by Bruno Haible:
36651         * lib/acl-internal.h: Include "gettext.h" rather than rolling
36652         our own.
36653         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
36654         * modules/acl (Depends-on): Add gettext.
36655
36656 2007-03-19  Bruno Haible  <bruno@clisp.org>
36657
36658         * modules/iconvme: Remove file.
36659         * lib/iconvme.h: Remove file.
36660         * lib/iconvme.c: Remove file.
36661         * m4/iconvme.m4: Remove file.
36662
36663 2007-03-19  Bruno Haible  <bruno@clisp.org>
36664
36665         * doc/relocatable-maint.texi: Break long shell script line.
36666         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36667
36668 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36669
36670         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
36671         handle file_has_acl.
36672         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
36673         * lib/acl.c: Move header inclusions and related macro defns into
36674         lib/acl-internal.h.
36675         (S_ISLNK): Remove defn, since that's now done for us.
36676         (file_has_acl): Move to lib/file-has-acl.c.
36677         Call acl_trivial if available.  This is the crucial part of the fix.
36678         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
36679         shared within the library.  Rewrite a bit, partly to make it compatible
36680         with the GNU coding style.
36681         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
36682         Remove unnecessary double-quotes.
36683         Don't test for acl_to_text; the build will catch that.
36684         Replace acl_entries if it doesn't exist and it is needed.
36685         Check for -lsec and acl_trivial (as used on Solaris 10).
36686         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
36687         lib/file-has-acl.c.
36688         (Depends-on): Add sys_stat, for S_ISLNK.
36689
36690 2007-03-19  Ben Pfaff  <blp@gnu.org>
36691
36692         * doc/gnulib.texi: Fix typos.
36693         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
36694
36695 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36696
36697         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
36698         If size is zero here, buf must be zero.
36699
36700 2007-03-19  Simon Josefsson  <simon@josefsson.org>
36701
36702         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
36703         <bruno@clisp.org>.
36704
36705 2007-03-18  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
36708         Suggested by Eric Blake.
36709
36710 2007-03-18  Ben Pfaff  <blp@gnu.org>
36711
36712         * doc/relocatable.texi: Recommend using as prefix a directory
36713         that does not exist and will never be created.  Based on
36714         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
36715         and others.
36716
36717 2007-03-17  Bruno Haible  <bruno@clisp.org>
36718
36719         * lib/fchownat.c: Include lchown.h.
36720
36721 2007-03-17  Bruno Haible  <bruno@clisp.org>
36722
36723         Fix endless loop when the given allocated size was > INT_MAX.
36724         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
36725         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
36726         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
36727         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
36728         * lib/sprintf.c (sprintf): Likewise.
36729
36730 2007-03-17  Bruno Haible  <bruno@clisp.org>
36731
36732         * tests/test-argp-2.sh (func_compare): Output a context diff.
36733
36734 2007-03-17  Bruno Haible  <bruno@clisp.org>
36735
36736         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
36737         locale's decimal-point character.
36738
36739 2007-03-17  Bruno Haible  <bruno@clisp.org>
36740
36741         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
36742         before comparing it. Needed because on some platforms (e.g. x86) a
36743         'long double' occupies less bytes than sizeof (long double).
36744
36745 2007-03-17  Bruno Haible  <bruno@clisp.org>
36746
36747         * tests/test-crc.c (main): Make printf statements 64-bit clean.
36748         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
36749         * tests/test-getaddrinfo.c (simple): Likewise.
36750         * tests/test-read-file.c (main): Likewise.
36751
36752 2007-03-17  Bruno Haible  <bruno@clisp.org>
36753
36754         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
36755
36756 2007-03-17  Bruno Haible  <bruno@clisp.org>
36757
36758         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
36759         unused variable.
36760
36761 2007-03-17  Bruno Haible  <bruno@clisp.org>
36762
36763         * tests/test-c-strcasecmp.c: Include c-strcase.h.
36764         * tests/test-c-strncasecmp.c: Likewise.
36765
36766 2007-03-17  Bruno Haible  <bruno@clisp.org>
36767
36768         * modules/stdlib (Depends-on): Add unistd.
36769         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
36770         Needed for MacOS X 10.3.
36771
36772 2007-03-17  Bruno Haible  <bruno@clisp.org>
36773
36774         * lib/unistr/u-strdup.h: Include <stdlib.h>.
36775
36776 2007-03-17  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
36779
36780 2007-03-17  Bruno Haible  <bruno@clisp.org>
36781
36782         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
36783         to reflect files copied from gnulib (with or without modifications).
36784         Suggested by Jim Meyering.
36785
36786 2007-03-17  Eric Blake  <ebb9@byu.net>
36787
36788         * NEWS: Document stdlib change from 2007-02-18.
36789
36790 2007-03-17  Jim Meyering  <jim@meyering.net>
36791
36792         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
36793         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
36794         someone uses a name containing shell meta-characters.
36795         Reported by Alfred M. Szmidt.
36796
36797         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
36798
36799 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36800
36801         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
36802         and copy gettext configuration files only if configure.ac contains
36803         a use of AM_GNU_GETTEXT_VERSION.
36804
36805 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
36806
36807         * build-aux/bootstrap (gnulib_name): New variable.
36808         (gnulib_tool_options): Use it.
36809
36810 2007-03-13  Simon Josefsson  <simon@josefsson.org>
36811
36812         * tests/test-des.c: Use new namespace.
36813
36814 2007-03-15  Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
36817         Reported by James Youngman <jay@gnu.org>.
36818
36819 2007-03-15  Bruno Haible  <bruno@clisp.org>
36820
36821         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
36822         declared prototype. Needed with cc on OSF/1 5.1.
36823
36824 2007-03-15  Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
36827         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
36828         (struct gl_list_implementation): Add dispose_fn argument to the
36829         'create_empty', 'create' methods.
36830         (struct gl_list_impl_base): Add field 'dispose_fn'.
36831         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
36832         argument.
36833         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
36834         dispose_fn argument.
36835         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
36836         dispose_fn on the dropped values.
36837         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
36838         dispose_fn argument.
36839         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
36840         dropped values.
36841         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
36842         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36843         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
36844         (gl_tree_remove_node): Call dispose_fn on the dropped value.
36845         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
36846         argument.
36847         (gl_tree_list_free): Call dispose_fn on the dropped values.
36848         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
36849         the dropped values.
36850         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36851         Add dispose_fn argument.
36852         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
36853         Call dispose_fn on the dropped values.
36854         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
36855         Add dispose_fn argument.
36856         (gl_sublist_create): Initialize the 'dispose_fn' field.
36857         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
36858         * tests/test-array_list.c (main): Update.
36859         * tests/test-carray_list.c (main): Update.
36860         * tests/test-avltree_list.c (main): Update.
36861         * tests/test-rbtree_list.c (main): Update.
36862         * tests/test-avltreehash_list.c (main): Update.
36863         * tests/test-rbtreehash_list.c (main): Update.
36864         * tests/test-linked_list.c (main): Update.
36865         * tests/test-linkedhash_list.c (main): Update.
36866         * tests/test-array_oset.c (main): Update.
36867
36868 2007-03-15  Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
36871         (gl_oset_create_empty): Add dispose_fn argument.
36872         (struct gl_oset_implementation): Add dispose_fn argument to
36873         'create_empty' method.
36874         (struct gl_oset_impl_base): Add dispose_fn field.
36875         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
36876         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
36877         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
36878         values.
36879         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
36880         (gl_tree_oset_free): Call dispose_fn on the dropped values.
36881         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36882         dropped value.
36883         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
36884         dropped value.
36885         * tests/test-array_oset.c (main): Update.
36886         * tests/test-avltree_oset.c (main): Update.
36887         * tests/test-rbtree_oset.c (main): Update.
36888         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
36889
36890 2007-03-13  Bruno Haible  <bruno@clisp.org>
36891
36892         * tests/test-stdbool.c (i): Update after last patch.
36893
36894 2007-03-12  Bruno Haible  <bruno@clisp.org>
36895
36896         * lib/quotearg.c: Include <wctype.h> early, before the definition of
36897         the iswprint macro. Needed on Solaris 2.5.1.
36898
36899 2007-03-12  Bruno Haible  <bruno@clisp.org>
36900
36901         * tests/test-printf-frexp.c (main): Declare x as volatile.
36902
36903 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36904
36905         * doc/gnulib.texi (Build robot for gnulib): New section.
36906
36907 2007-03-12  Jim Meyering  <jim@meyering.net>
36908
36909         * build-aux/bootstrap: New file.
36910         * build-aux/bootstrap.conf: New file, from coreutils.
36911
36912 2007-03-11  Bruno Haible  <bruno@clisp.org>
36913
36914         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
36915
36916 2007-03-12  Simon Josefsson  <simon@josefsson.org>
36917
36918         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
36919         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
36920         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
36921
36922 2007-03-11  Bruno Haible  <bruno@clisp.org>
36923
36924         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
36925         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
36926
36927 2007-03-11  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
36930         formula. Needed for SunPRO C 5.0.
36931
36932 2007-03-11  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/long-options (Depends-on): Add getopt.
36935
36936 2007-03-11  Bruno Haible  <bruno@clisp.org>
36937
36938         * modules/modechange (Depends-on): Add stdbool.
36939
36940 2007-03-11  Bruno Haible  <bruno@clisp.org>
36941
36942         * modules/i-ring (Depends-on): Add stdbool.
36943
36944 2007-03-11  Bruno Haible  <bruno@clisp.org>
36945
36946         * modules/gc-des (Depends-on): Add stdbool.
36947
36948 2007-03-11  Bruno Haible  <bruno@clisp.org>
36949
36950         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
36951
36952 2007-03-11  Bruno Haible  <bruno@clisp.org>
36953
36954         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
36955
36956 2007-03-11  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
36959
36960 2007-03-11  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/vasnprintf.c (sprintf): Undefine.
36963
36964 2007-03-11  Bruno Haible  <bruno@clisp.org>
36965
36966         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
36967         initializers in SunPRO C and Compaq C compilers.
36968
36969 2007-03-11  Bruno Haible  <bruno@clisp.org>
36970
36971         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
36972         decrementing code ANSI C compliant.
36973
36974 2007-03-11  Bruno Haible  <bruno@clisp.org>
36975
36976         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
36977         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
36978
36979 2007-03-11  Bruno Haible  <bruno@clisp.org>
36980
36981         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
36982         <stdbool.h> substitute doesn't pass.
36983
36984 2007-03-11  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
36987
36988 2007-03-11  Bruno Haible  <bruno@clisp.org>
36989
36990         * gnulib-tool (func_create_megatestdir): Create also an autobuild
36991         script, for submission to autobuild.josefsson.org.
36992
36993 2007-03-10  Bruno Haible  <bruno@clisp.org>
36994
36995         * modules/canonicalize-lgpl-tests: New file.
36996         * tests/test-canonicalize-lgpl.sh: New file.
36997         * tests/test-canonicalize-lgpl.c: New file.
36998
36999         * modules/c-strcase-tests: New file.
37000         * tests/test-c-strcase.sh: New file.
37001         * tests/test-c-strcasecmp.c: New file.
37002         * tests/test-c-strncasecmp.c: New file.
37003
37004         * modules/atexit-tests: New file.
37005         * tests/test-atexit.sh: New file.
37006         * tests/test-atexit.c: New file.
37007
37008 2007-03-10  Bruno Haible  <bruno@clisp.org>
37009
37010         * tests/test-binary-io.sh: Use temporary filenames that are not so
37011         likely to clash with those of other tests (in a parallel make).
37012         * tests/test-binary-io.c: Likewise.
37013
37014 2007-03-10  Bruno Haible  <bruno@clisp.org>
37015
37016         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37017         fallback; use #error instead.
37018         Suggested by Simon Josefsson.
37019
37020 2007-03-10  Bruno Haible  <bruno@clisp.org>
37021
37022         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37023         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37024         first and the last.
37025
37026 2007-03-10  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37029
37030 2007-03-10  Bruno Haible  <bruno@clisp.org>
37031
37032         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37033         "make distcheck".
37034         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37035         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37036         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37037
37038 2007-03-10  Bruno Haible  <bruno@clisp.org>
37039
37040         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37041         variable.
37042         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37043         variable.
37044
37045 2007-03-09  Eric Blake  <ebb9@byu.net>
37046         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37047
37048         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37049         types are not being provided by gnulib.
37050         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37051         types are supported.
37052
37053 2007-03-10  Bruno Haible  <bruno@clisp.org>
37054
37055         * lib/stdio_.h (__attribute__): New macro.
37056         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37057         vsprintf): Specify __attribute__ __format__ for GCC.
37058         Suggested by Eric Blake.
37059
37060 2007-03-09  Bruno Haible  <bruno@clisp.org>
37061
37062         * modules/printf-posix-tests: New file.
37063         * tests/test-printf-posix.sh: New file.
37064         * tests/test-printf-posix.c: New file.
37065
37066         * modules/printf-posix: New file.
37067         * lib/printf.c: New file.
37068         * m4/printf-posix-rpl.m4: New file.
37069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37070         REPLACE_PRINTF.
37071         * lib/stdio_.h (printf): New declaration.
37072         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37073         ____strfmon____): New macros.
37074         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37075         REPLACE_PRINTF.
37076
37077 2007-03-09  Bruno Haible  <bruno@clisp.org>
37078
37079         * tests/test-vasnprintf-posix2.sh: New file.
37080         * tests/test-vasnprintf-posix2.c: New file.
37081         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37082         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37083         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37084
37085         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37086         a locale dependent decimal point, rather than always '.'.
37087
37088 2007-03-09  Eric Blake  <ebb9@byu.net>
37089
37090         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37091         spite of platforms like Tandem/NSK that define it to -1.
37092
37093 2007-03-08  Bruno Haible  <bruno@clisp.org>
37094
37095         * modules/vprintf-posix-tests: New file.
37096         * tests/test-vprintf-posix.sh: New file.
37097         * tests/test-vprintf-posix.c: New file.
37098         * tests/test-printf-posix.h: New file.
37099
37100         * modules/vprintf-posix: New file.
37101         * lib/vprintf.c: New file.
37102         * m4/vprintf-posix.m4: New file.
37103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37104         REPLACE_VPRINTF.
37105         * lib/stdio_.h (vprintf): New declaration.
37106         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37107         REPLACE_VPRINTF.
37108
37109 2007-03-08  Bruno Haible  <bruno@clisp.org>
37110
37111         * modules/fprintf-posix-tests: New file.
37112         * tests/test-fprintf-posix.sh: New file.
37113         * tests/test-fprintf-posix.c: New file.
37114
37115         * modules/fprintf-posix: New file.
37116         * lib/fprintf.c: New file.
37117         * m4/fprintf-posix.m4: New file.
37118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37119         REPLACE_FPRINTF.
37120         * lib/stdio_.h (fprintf): New declaration.
37121         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37122         REPLACE_FPRINTF.
37123
37124 2007-03-08  Bruno Haible  <bruno@clisp.org>
37125
37126         * modules/vfprintf-posix-tests: New file.
37127         * tests/test-vfprintf-posix.sh: New file.
37128         * tests/test-vfprintf-posix.c: New file.
37129         * tests/test-fprintf-posix.h: New file.
37130         * tests/test-fprintf-posix.out: New file.
37131
37132         * modules/vfprintf-posix: New file.
37133         * lib/vfprintf.c: New file.
37134         * m4/vfprintf-posix.m4: New file.
37135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37136         REPLACE_VFPRINTF.
37137         * lib/stdio_.h (vfprintf): New declaration.
37138         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37139         REPLACE_VFPRINTF.
37140
37141 2007-03-08  Bruno Haible  <bruno@clisp.org>
37142
37143         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37144
37145 2007-03-08  Bruno Haible  <bruno@clisp.org>
37146
37147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37148         instead of 'expr' invocations.
37149         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37150         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37151         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37154         Suggested by Paul Eggert.
37155
37156 2007-03-08  Bruno Haible  <bruno@clisp.org>
37157
37158         * modules/fseterr-tests: New file.
37159         * tests/test-fseterr.c: New file.
37160
37161         * modules/fseterr: New file.
37162         * lib/fseterr.h: New file.
37163         * lib/fseterr.c: New file.
37164
37165 2007-03-08  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37168         * lib/getopt_.h: Likewise.
37169         * lib/mbswidth.h: Likewise.
37170         * lib/setenv.h: Likewise.
37171         * lib/vasnprintf.h: Likewise.
37172         * lib/vasprintf.h: Likewise.
37173         * lib/verror.h: Likewise.
37174         * lib/xsetenv.h: Likewise.
37175         * lib/xvasprintf.h: Likewise.
37176
37177 2007-03-08  Jim Meyering  <jim@meyering.net>
37178
37179         * users.txt: Add parted.
37180
37181         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37182
37183 2007-03-07  Bruno Haible  <bruno@clisp.org>
37184
37185         * m4/printf.m4: Make the shell script snippets copy&pastable.
37186
37187 2007-03-02  Bruno Haible  <bruno@clisp.org>
37188
37189         * lib/netinet_in_.h: New file.
37190         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37191         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37192         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37193         (Depends-on): Add absolute-header.
37194         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37195         into netinet/in.h.
37196
37197 2007-03-03  Bruno Haible  <bruno@clisp.org>
37198
37199         * lib/sys_select_.h: New file.
37200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37201         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37202         * modules/sys_select (Files): Add lib/sys_select_.h.
37203         (Depends-on): Add absolute-header.
37204         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37205         into sys/select.h.
37206
37207 2007-03-02  Bruno Haible  <bruno@clisp.org>
37208
37209         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37210         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37211         values.
37212         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37213         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37214         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37215         * modules/sys_socket (Depends-on): Add absolute-header.
37216         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37217         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37218         (Include): Remove requirement of inclusion of <sys/types.h>.
37219
37220 2007-03-02  Bruno Haible  <bruno@clisp.org>
37221
37222         * lib/byteswap_.h (bswap_32): Fix formula.
37223
37224 2007-03-06  Bruno Haible  <bruno@clisp.org>
37225
37226         * modules/sprintf-posix-tests: New file.
37227         * tests/test-sprintf-posix.c: New file.
37228
37229         * modules/sprintf-posix: New file.
37230         * lib/sprintf.c: New file.
37231         * m4/sprintf-posix.m4: New file.
37232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37233         REPLACE_SPRINTF.
37234         * lib/stdio_.h (sprintf): New declaration.
37235         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37236         REPLACE_SPRINTF.
37237
37238 2007-03-06  Bruno Haible  <bruno@clisp.org>
37239
37240         * modules/vsprintf-posix-tests: New file.
37241         * tests/test-vsprintf-posix.c: New file.
37242         * tests/test-sprintf-posix.h: New file.
37243
37244         * modules/vsprintf-posix: New file.
37245         * lib/vsprintf.c: New file.
37246         * m4/vsprintf-posix.m4: New file.
37247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37248         REPLACE_VSPRINTF.
37249         * lib/stdio_.h (vsprintf): New declaration.
37250         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37251         REPLACE_VSPRINTF.
37252
37253 2007-03-06  Bruno Haible  <bruno@clisp.org>
37254
37255         * modules/vsnprintf (Depend-on): Remove minmax.
37256
37257 2007-03-06  Bruno Haible  <bruno@clisp.org>
37258
37259         * modules/snprintf-posix-tests: New file.
37260         * tests/test-snprintf-posix.c: New file.
37261
37262         * modules/snprintf-posix: New file.
37263         * m4/snprintf-posix.m4: New file.
37264         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37265         gl_FUNC_SNPRINTF.
37266         (gl_FUNC_SNPRINTF): Invoke it.
37267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37268         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37269         is set.
37270         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37271
37272 2007-03-06  Bruno Haible  <bruno@clisp.org>
37273
37274         * modules/vsnprintf-posix-tests: New file.
37275         * tests/test-vsnprintf-posix.c: New file.
37276         * tests/test-snprintf-posix.h: New file.
37277
37278         * modules/vsnprintf-posix: New file.
37279         * m4/vsnprintf-posix.m4: New file.
37280         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37281         gl_FUNC_VSNPRINTF.
37282         (gl_FUNC_VSNPRINTF): Invoke it.
37283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37284         * lib/stdio_.h (vsnprintf): Define as a replacement if
37285         REPLACE_VSNPRINTF is set.
37286         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37287
37288 2007-03-06  Bruno Haible  <bruno@clisp.org>
37289
37290         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37292
37293 2007-03-06  Bruno Haible  <bruno@clisp.org>
37294
37295         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37296         (asinl): Declare also if HAVE_DECL_ASINL is set.
37297         (atanl): Declare also if HAVE_DECL_ATANL is set.
37298         (ceill): Declare also if HAVE_DECL_CEILL is set.
37299         (cosl): Declare also if HAVE_DECL_COSL is set.
37300         (expl): Declare also if HAVE_DECL_EXPL is set.
37301         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37302         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37303         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37304         (logl): Declare also if HAVE_DECL_LOGL is set.
37305         (sinl): Declare also if HAVE_DECL_SINL is set.
37306         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37307         (tanl): Declare also if HAVE_DECL_TANL is set.
37308         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37311         declaration of frexpl, ldexpl.
37312         * modules/printf-frexpl (Depends-on): Add math.
37313         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37314
37315 2007-03-05  Bruno Haible  <bruno@clisp.org>
37316
37317         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37318         frexpl and ldexpl are declared.
37319         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37320
37321 2007-03-05  Bruno Haible  <bruno@clisp.org>
37322
37323         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37324         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37325
37326 2007-03-05  Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/stdio_.h: Include <stddef.h>.
37329
37330 2007-03-05  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37333
37334 2007-03-05  Bruno Haible  <bruno@clisp.org>
37335
37336         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37337         NetBSD 4, from Ralf Wildenhues.
37338
37339 2007-03-04  Bruno Haible  <bruno@clisp.org>
37340
37341         * lib/vasprintf.h: Update #if logic for the case when the functions
37342         exist but are overridden.
37343
37344 2007-03-04  Bruno Haible  <bruno@clisp.org>
37345
37346         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37347         implementations: glibc-2.4 and MacOS X 10.3.
37348         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37349         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37350         * tests/test-vasprintf-posix.c (test_function): Likewise.
37351
37352 2007-03-04  Bruno Haible  <bruno@clisp.org>
37353
37354         * modules/vasprintf-posix-tests: New file.
37355         * tests/test-vasprintf-posix.c: New file.
37356
37357         * modules/vasprintf-posix: New file.
37358         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37359         defined.
37360         * m4/vasprintf-posix.m4: New file.
37361         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37362         gl_FUNC_VASPRINTF.
37363         (gl_FUNC_VASPRINTF): Invoke it.
37364         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37365         here.
37366         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37367
37368 2007-03-04  Bruno Haible  <bruno@clisp.org>
37369
37370         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37371         REPLACE_GETTIMEOFDAY.
37372         * modules/sys_time (Makefile.am): Likewise.
37373         * m4/sys_time_h.m4: Likewise.
37374         * m4/gettimeofday.m4: Likewise.
37375
37376 2007-03-04  Bruno Haible  <bruno@clisp.org>
37377
37378         * modules/vasnprintf-posix-tests: New file.
37379         * tests/test-vasnprintf-posix.c: New file.
37380
37381         * modules/vasnprintf-posix: New file.
37382         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37383         printf-frexpl.h.
37384         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37385         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37386         REPLACE_VASNPRINTF is defined.
37387         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37388         gl_FUNC_VASNPRINTF.
37389         (gl_FUNC_VASNPRINTF): Invoke it.
37390         * m4/vasnprintf-posix.m4: New file.
37391         * m4/printf.m4: New file.
37392
37393 2007-03-04  Bruno Haible  <bruno@clisp.org>
37394
37395         Compile progreloc.c only if --enable-relocatable is specified.
37396         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37397         if --enable-relocatable was specified.
37398         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37399         lib_SOURCES.
37400
37401 2007-03-04  Jim Meyering  <jim@meyering.net>
37402
37403         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37404         Use it consistently, rather than enumerating errno constants.
37405
37406 2007-03-04  Bruno Haible  <bruno@clisp.org>
37407
37408         * modules/xvasprintf-tests: New file.
37409         * tests/test-xvasprintf.c: New file.
37410
37411         * modules/vasprintf-tests: New file.
37412         * tests/test-vasprintf.c: New file.
37413
37414         * modules/vasnprintf-tests: New file.
37415         * tests/test-vasnprintf.c: New file.
37416
37417         * modules/vsnprintf-tests: New file.
37418         * tests/test-vsnprintf.c: New file.
37419
37420         * modules/snprintf-tests: New file.
37421         * tests/test-snprintf.c: New file.
37422
37423 2007-03-04  Bruno Haible  <bruno@clisp.org>
37424
37425         Compile relocatable.c only if --enable-relocatable is specified.
37426         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37427         gl_RELOCATABLE_LIBRARY.
37428         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37429         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37430         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37431         gl_RELOCATABLE_LIBRARY.
37432         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37433         (Makefile.am): Remove lib_SOURCES.
37434         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37435         gl_RELOCATABLE_LIBRARY.
37436         (Makefile.am): Remove lib_SOURCES.
37437         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37438         always.
37439         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37440         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37441
37442 2007-03-04  Bruno Haible  <bruno@clisp.org>
37443
37444         * modules/argmatch-tests: New file.
37445         * tests/test-argmatch.c: New file.
37446
37447         * tests/test-allocsa.c (main): Halve the number of loop runs.
37448
37449         * modules/alloca-opt-tests: New file.
37450         * tests/test-alloca-opt.c: New file.
37451
37452 2007-03-04  Jim Meyering  <jim@meyering.net>
37453
37454         Work around difference between Linux ACLs and Solaris 10 ZFS.
37455         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37456         for EINVAL.
37457
37458 2007-03-03  Bruno Haible  <bruno@clisp.org>
37459
37460         * modules/relocatable-prog (Depends-on): Add back progreloc's
37461         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37462
37463 2007-03-03  Bruno Haible  <bruno@clisp.org>
37464
37465         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37466         * modules/relocatable-lib: New file.
37467
37468 2007-03-03  Bruno Haible  <bruno@clisp.org>
37469
37470         * modules/relocatable-prog: Renamed from modules/relocatable.
37471         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37472
37473 2007-03-03  Bruno Haible  <bruno@clisp.org>
37474
37475         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37476         m4/relocatable-lib.m4.
37477         (Depends-on): Remove 'relocatable'.
37478         (configure.ac): Add gl_RELOCATABLE_NOP.
37479
37480 2007-03-03  Bruno Haible  <bruno@clisp.org>
37481
37482         * modules/relocatable-prog-wrapper: New file.
37483         * modules/relocatable (Depends-on): Add it. Remove all other
37484         dependencies except progname.
37485         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37486
37487         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37488         (gl_FUNC_STRERROR): Nop.
37489         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37490
37491         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37492         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37493
37494         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37495         (gl_FUNC_READLINK): Update.
37496
37497         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37498
37499 2007-03-03  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37502         * modules/xreadlink (Depends-on): Add unistd.
37503         * modules/xreadlink-with-size (Depends-on): Likewise.
37504
37505 2007-03-03  Bruno Haible  <bruno@clisp.org>
37506
37507         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37508         extracted from gt_FUNC_SETENV.
37509         (gt_FUNC_SETENV): Remove macro.
37510         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37511         remove gt_FUNC_SETENV.
37512
37513 2007-03-03  Bruno Haible  <bruno@clisp.org>
37514
37515         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37516         ENABLE_RELOCATABLE here.
37517         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37518
37519 2007-03-03  Bruno Haible  <bruno@clisp.org>
37520
37521         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37522         * tests/test-rbtreehash_list.c: Include progname.h.
37523         (main): Call set_program_name.
37524
37525         * modules/rbtree-oset-tests (Depends-on): Add progname.
37526         * tests/test-rbtree_oset.c: Include progname.h.
37527         (main): Call set_program_name.
37528
37529         * modules/rbtree-list-tests (Depends-on): Add progname.
37530         * tests/test-rbtree_list.c: Include progname.h.
37531         (main): Call set_program_name.
37532
37533         * modules/linked-list-tests (Depends-on): Add progname.
37534         * tests/test-linked_list.c: Include progname.h.
37535         (main): Call set_program_name.
37536
37537 2007-03-03  Bruno Haible  <bruno@clisp.org>
37538
37539         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37540         All uses of __restrict changed to _Restrict_.
37541         * lib/glob_.h (__restrict): Remove macro.
37542
37543 2007-03-02  Bruno Haible  <bruno@clisp.org>
37544
37545         * modules/gettext (configure.ac): Require gettext infrastructure
37546         from version 0.16.1.
37547
37548 2007-03-02  Bruno Haible  <bruno@clisp.org>
37549
37550         * modules/linkedhash-list-tests (Depends-on): Add progname.
37551         * tests/test-linkedhash_list.c: Include progname.h.
37552         (main): Call set_program_name.
37553
37554         * modules/carray-list-tests (Depends-on): Add progname.
37555         * tests/test-carray_list.c: Include progname.h.
37556         (main): Call set_program_name.
37557
37558         * modules/avltreehash-list-tests (Depends-on): Add progname.
37559         * tests/test-avltreehash_list.c: Include progname.h.
37560         (main): Call set_program_name.
37561
37562         * modules/avltree-oset-tests (Depends-on): Add progname.
37563         * tests/test-avltree_oset.c: Include progname.h.
37564         (main): Call set_program_name.
37565
37566         * modules/avltree-list-tests (Depends-on): Add progname.
37567         * tests/test-avltree_list.c: Include progname.h.
37568         (main): Call set_program_name.
37569
37570         * modules/array-oset-tests (Depends-on): Add progname.
37571         * tests/test-array_oset.c: Include progname.h.
37572         (main): Call set_program_name.
37573
37574         * modules/array-list-tests (Depends-on): Add progname.
37575         * tests/test-array_list.c: Include progname.h.
37576         (main): Call set_program_name.
37577
37578         * modules/argp-tests (Depends-on): Add progname.
37579         * tests/test-argp.c: Include argp.h first. Include progname.h.
37580         (main): Call set_program_name.
37581
37582 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37583
37584         * doc/gnulib-tool.texi (Initial import): Reword description of
37585         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37586         limited effect even if defined after the first system include.
37587
37588 2007-03-01  Bruno Haible  <bruno@clisp.org>
37589
37590         * build-aux/config.libpath: Update to libtool-1.5.22.
37591         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37592
37593 2007-03-01  Bruno Haible  <bruno@clisp.org>
37594
37595         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37596         foo_CFLAGS.
37597         Reported by Ralf Wildenhues.
37598
37599 2007-03-01  Bruno Haible  <bruno@clisp.org>
37600
37601         * build-aux/install-reloc: Remove object files left over by some
37602         compilers.
37603         Reported by Ralf Wildenhues.
37604
37605 2007-03-01  Bruno Haible  <bruno@clisp.org>
37606
37607         * build-aux/install-reloc: Break long lines.
37608
37609 2007-03-01  Bruno Haible  <bruno@clisp.org>
37610
37611         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37612         Reported by Ralf Wildenhues.
37613
37614 2007-03-01  Bruno Haible  <bruno@clisp.org>
37615
37616         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37617         include ordering constraints.
37618
37619 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
37620
37621         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
37622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
37623         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
37624         as another example.
37625         * lib/time_.h: Fix misspelling.
37626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37627         Require gl_HEADER_TIME_H_DEFAULTS.
37628         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
37629         * m4/time_r.m4 (gl_TIME_R): Likewise.
37630         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
37631
37632 2007-03-01  Bruno Haible  <bruno@clisp.org>
37633
37634         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
37635         * m4/utimens.m4 (gl_UTIMENS): Likewise.
37636
37637 2007-03-01  Jim Meyering  <jim@meyering.net>
37638
37639         * modules/xreadlink (Maintainer): Add my name.
37640         * modules/xreadlink-with-size (Depends-on): Alphabetize.
37641
37642 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
37643             Bruno Haible  <bruno@clisp.org>
37644
37645         * build-aux/install-reloc: Compile also c-ctype.c.
37646         * build-aux/relocatable.sh.in: New file.
37647         * doc/relocatable.texi: New file.
37648         * doc/relocatable-maint.texi: New file.
37649         * doc/gnulib.texi: Include relocatable-maint.texi.
37650         * lib/progreloc.c: Include unistd.h unconditionally.
37651         * lib/relocwrapper.c: Include unistd.h unconditionally.
37652         Include c-ctype.h.
37653         (add_dotbin): Use c_tolower.
37654         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
37655         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
37656         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
37657         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
37658         to m4/relocatable-lib.m4.
37659         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
37660         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
37661         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
37662         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
37663         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
37664         * modules/relocatable: New file.
37665         * modules/relocatable-lib: New file.
37666         * modules/relocatable-script: New file.
37667
37668 2007-02-28  Bruno Haible  <bruno@clisp.org>
37669
37670         Import --enable-relocatable infrastructure.
37671         * build-aux/config.libpath: New file, from GNU gettext.
37672         * build-aux/install-reloc: New file, from GNU gettext.
37673         * build-aux/reloc-ldflags: New file, from GNU gettext.
37674         * lib/relocatable.h: New file, from GNU gettext.
37675         * lib/relocatable.c: New file, from GNU gettext.
37676         * lib/relocwrapper.c: New file, from GNU gettext.
37677         * m4/relocatable.m4: New file, from GNU gettext.
37678
37679 2007-02-28  Bruno Haible  <bruno@clisp.org>
37680
37681         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
37682
37683         * modules/xreadlink: New file, from GNU gettext with modifications.
37684         * lib/xreadlink.c: New file, from GNU gettext.
37685         * lib/xreadlink.h: Add comments.
37686         (xreadlink): New declaration.
37687
37688         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
37689         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
37690         lib/xreadlink-with-size.c.
37691         (configure.ac): Remove gl_XREADLINK invocation.
37692         (Makefile.am): Augment lib_SOURCES.
37693         * m4/xreadlink.m4: Remove file.
37694         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
37695         (xreadlink_with_size): Renamed from xreadink.
37696         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
37697         * modules/canonicalize (Depends-on): Replace xreadlink with
37698         xreadlink-with-size.
37699         * lib/canonicalize.c (canonicalize_filename_mode): Update.
37700
37701 2007-02-25  Jim Meyering  <jim@meyering.net>
37702
37703         * build-aux/announce-gen: When complaining about excess arguments,
37704         list them.
37705
37706 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37707
37708         * README: Document signed integer overflow situation more
37709         accurately.
37710
37711 2007-02-25  Bruno Haible  <bruno@clisp.org>
37712
37713         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
37714         'a' or 'A' conversion.
37715
37716 2007-02-25  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/filename: Renamed from modules/pathname.
37719         (Files): Replace lib/pathname.h with lib/filename.h. Replace
37720         lib/concatpath.c with lib/concat-filename.c.
37721         (Makefile.am): Update.
37722         (Include): Replace pathname.h with filename.h.
37723         * lib/filename.h: Renamed from lib/pathname.h.
37724         (concatenated_filename): Renamed from concatenated_pathname.
37725         * lib/concat-filename.c: Renamed from lib/concatpath.c.
37726         (concatenated_filename): Renamed from concatenated_pathname.
37727         * lib/findprog.c: Include filename.h instead of pathname.h.
37728         (find_in_path): Update.
37729         * lib/javacomp.c: Include filename.h instead of pathname.h.
37730         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37731         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37732         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37733         is_oldgcj_14_13_usable, is_javac_usable): Update.
37734         * lib/javaexec.c: Include filename.h instead of pathname.h.
37735         (execute_java_class): Update.
37736         * modules/findprog: Update.
37737         * modules/javacomp: Update.
37738         * modules/javaexec: Update.
37739         * MODULES.html.sh (File system functions): Add 'filename', remove
37740         'pathname'.
37741
37742 2007-02-25  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/printf-frexpl-tests: New file.
37745         * tests/test-printf-frexpl.c: New file.
37746
37747         * modules/printf-frexpl: New file.
37748         * lib/printf-frexpl.h: New file.
37749         * lib/printf-frexpl.c: New file.
37750         * m4/printf-frexpl.m4: New file.
37751
37752 2007-02-25  Bruno Haible  <bruno@clisp.org>
37753
37754         * modules/printf-frexp-tests: New file.
37755         * tests/test-printf-frexp.c: New file.
37756
37757         * modules/printf-frexp: New file.
37758         * lib/printf-frexp.h: New file.
37759         * lib/printf-frexp.c: New file.
37760         * m4/printf-frexp.m4: New file.
37761
37762 2007-02-25  Bruno Haible  <bruno@clisp.org>
37763
37764         Assume automake >= 1.10 for the tests.
37765         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
37766         * modules/arctwo-tests: Likewise.
37767         * modules/argp-tests: Likewise.
37768         * modules/avltree-list-tests: Likewise.
37769         * modules/avltree-oset-tests: Likewise.
37770         * modules/avltreehash-list-tests: Likewise.
37771         * modules/carray-list-tests: Likewise.
37772         * modules/crc-tests: Likewise.
37773         * modules/des-tests: Likewise.
37774         * modules/gc-arcfour-tests: Likewise.
37775         * modules/gc-arctwo-tests: Likewise.
37776         * modules/gc-des-tests: Likewise.
37777         * modules/gc-hmac-md5-tests: Likewise.
37778         * modules/gc-hmac-sha1-tests: Likewise.
37779         * modules/gc-md2-tests: Likewise.
37780         * modules/gc-md4-tests: Likewise.
37781         * modules/gc-md5-tests: Likewise.
37782         * modules/gc-pbkdf2-sha1-tests: Likewise.
37783         * modules/gc-rijndael-tests: Likewise.
37784         * modules/gc-sha1-tests: Likewise.
37785         * modules/gc-tests: Likewise.
37786         * modules/getaddrinfo-tests: Likewise.
37787         * modules/hmac-md5-tests: Likewise.
37788         * modules/hmac-sha1-tests: Likewise.
37789         * modules/linked-list-tests: Likewise.
37790         * modules/linkedhash-list-tests: Likewise.
37791         * modules/lock-tests: Likewise.
37792         * modules/md2-tests: Likewise.
37793         * modules/md4-tests: Likewise.
37794         * modules/md5-tests: Likewise.
37795         * modules/rbtree-list-tests: Likewise.
37796         * modules/rbtree-oset-tests: Likewise.
37797         * modules/rbtreehash-list-tests: Likewise.
37798         * modules/read-file-tests: Likewise.
37799         * modules/rijndael-tests: Likewise.
37800         * modules/stdint-tests: Likewise.
37801         * modules/tls-tests: Likewise.
37802
37803 2007-02-24  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
37806         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
37807         function; instead check whether isnan with a double argument links.
37808         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
37809         function; instead check whether isnan with a 'long double' argument
37810         links.
37811         Reported by Eric Blake <ebb9@byu.net>.
37812
37813 2007-02-24  Bruno Haible  <bruno@clisp.org>
37814
37815         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
37816         defined.
37817         * lib/isnanl.c: Remove all code. Just include isnan.c.
37818         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
37819
37820 2007-02-25  Jim Meyering  <jim@meyering.net>
37821
37822         Avoid conflicting types for 'unsetenv' on FreeBSD.
37823         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
37824         conflicting with FreeBSD's (5.0 and 6.1) function declaration
37825         in stdlib.h.
37826
37827 2007-02-24  Bruno Haible  <bruno@clisp.org>
37828
37829         * modules/isnanl-nolibm-tests: New file.
37830         * tests/test-isnanl.c: New file.
37831
37832         * modules/isnanl-nolibm: New file.
37833         * lib/isnanl.h: New file.
37834         * lib/isnanl.c: New file.
37835         * m4/isnanl.m4: New file.
37836
37837 2007-02-24  Bruno Haible  <bruno@clisp.org>
37838
37839         * modules/isnan-nolibm-tests: New file.
37840         * tests/test-isnan.c: New file.
37841
37842         * modules/isnan-nolibm: New file.
37843         * lib/isnan.h: New file.
37844         * lib/isnan.c: New file.
37845         * m4/isnan.m4: New file.
37846
37847 2007-02-24  Bruno Haible  <bruno@clisp.org>
37848
37849         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
37850         assume that an exponent fits in 20 bits.
37851
37852 2007-02-24  Jim Meyering  <jim@meyering.net>
37853
37854         * m4/regex.m4: Update the description of the configure-time option,
37855         --without-included-regex, to state accurately what the defaults are,
37856         and perhaps to give people an idea why using this option is risky.
37857
37858 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37859
37860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
37861         loops on small arguments.  This attempts to avoid the problem
37862         Bruno Haible reported for AIX 4.3.2 in
37863         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
37864
37865 2007-02-23  Bruno Haible  <bruno@clisp.org>
37866
37867         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
37868         Needed for help2man.
37869
37870 2007-02-23  Karl Berry  <karl@gnu.org>
37871
37872         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
37873         exists, foo.h should be cvs-ignored, not committed.
37874
37875 2007-02-23  Eric Blake  <ebb9@byu.net>
37876
37877         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
37878         * lib/stat-time.h (includes): Likewise.
37879         * lib/utimecmp.c (includes): Likewise.
37880         * lib/utimens.h (includes): Likewise.
37881         * lib/getdate.y (includes): Also include "timespec.h" for use
37882         internal to the module.
37883         * modules/utimens (Depends-on): Revert yesterday's patch.
37884         * modules/nanosleep (Depends-on): Add missing dependency.
37885
37886 2007-02-22  Bruno Haible  <bruno@clisp.org>
37887
37888         * lib/glob.c: Don't include getlogin_r.h.
37889
37890 2007-02-22  Jim Meyering  <jim@meyering.net>
37891
37892         * modules/utimens (Depends-on): Add timespec, required for
37893         utimens.h's inclusion of timespec.h.
37894
37895 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
37896
37897         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
37898         long unreadable paths in GNU/Linux.  Problem reported by Andreas
37899         Schwab in
37900         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
37901         I'll try to think of a better way to fix the Solaris problem.
37902
37903         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
37904         like glibc; on Solaris 10, it fails with errno == EINVAL.
37905         POSIX says the behavior is unspecified if the first argument is NULL,
37906         so play it safe and never pass NULL to the system getcwd.
37907
37908 2007-02-21  Jim Meyering  <jim@meyering.net>
37909
37910         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
37911         of gettimeofday.  It would conflict with the one now always
37912         provided via sys_time_.h.  Reported by Matthew Woehlke, as
37913         an IRIX 6.5 build failure.
37914
37915 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
37916
37917         Minor fixups to port to Solaris 10 with Sun C 5.8.
37918         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
37919         * modules/getcwd (Depends-on): Add dirfd.
37920         * lib/putenv.c (putenv): #undef it.
37921         (rpl_putenv): New decl.
37922         (malloc, free): Include <stdlib.h> rather than prototyping separately.
37923
37924 2007-02-20  Bruno Haible  <bruno@clisp.org>
37925
37926         * modules/stdio-tests: New file.
37927         * tests/test-stdio.c: New file.
37928
37929         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
37930         (Depends-on): Add stdio.
37931         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37932         (Include): Use <stdio.h> instead of vsnprintf.h.
37933         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37934         HAVE_DECL_VSNPRINTF.
37935         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
37936
37937         * modules/snprintf (Files): Remove lib/snprintf.h.
37938         (Depends-on): Add stdio.
37939         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
37940         (Include): Use <stdio.h> instead of snprintf.h.
37941         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
37942         HAVE_DECL_SNPRINTF.
37943         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
37944         * lib/getaddrinfo.c: Likewise.
37945
37946         * modules/stdio: New file.
37947         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
37948         * lib/snprintf.h: Remove file.
37949         * lib/vsnprintf.h: Remove file.
37950         * lib/.cppi-disable: Remove snprintf.h.
37951         * m4/stdio_h.m4: New file.
37952         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
37953
37954 2007-02-20  Jim Meyering  <jim@meyering.net>
37955
37956         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
37957         used by e.g., mingw.  From Bruno Haible.
37958
37959 2007-02-19  Bruno Haible  <bruno@clisp.org>
37960
37961         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
37962         warnings.
37963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37964
37965 2007-02-19  Bruno Haible  <bruno@clisp.org>
37966
37967         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
37968         from mingw users.
37969
37970 2007-02-19  Bruno Haible  <bruno@clisp.org>
37971
37972         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
37973         warnings.
37974         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
37975
37976 2007-02-19  Jim Meyering  <jim@meyering.net>
37977
37978         Don't use FD after a successful "fdopendir (fd)".
37979         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
37980         Reset it by calling dirfd on the just-obtained DIR*.
37981
37982         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
37983         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
37984
37985 2007-02-18  Bruno Haible  <bruno@clisp.org>
37986
37987         * lib/readlink.c: Include <unistd.h>.
37988         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
37989         HAVE_READLINK.
37990         * modules/readlink (Depends-on): Add unistd.
37991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37992         (Include): Add <unistd.h>.
37993
37994         * lib/getlogin_r.h: Remove file.
37995         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
37996         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
37997         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
37998         HAVE_DECL_GETLOGIN_R.
37999         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38001         (Include): Use <unistd.h> instead of getlogin_r.h.
38002
38003         * lib/getcwd.h: Remove file.
38004         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38005         * lib/xgetcwd.c: Likewise.
38006         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38007         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38008         * modules/getcwd (Files): Remove lib/getcwd.h.
38009         (Depends-on): Add unistd.
38010         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38011         (Include): Use <unistd.h> instad of getcwd.h.
38012
38013         * lib/ftruncate.c: Include <unistd.h> first.
38014         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38015         Set HAVE_FTRUNCATE.
38016         * modules/ftruncate (Depends-on): Add unistd.
38017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38018
38019         * lib/fchdir.c: Include <unistd.h> first.
38020         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38022         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38023         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38024         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38025
38026         * lib/dup2.c: Include <unistd.h> first.
38027         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38028         HAVE_DUP2.
38029         * modules/dup2 (Depends-on): Add unistd.
38030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38031
38032         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38033         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38034         REPLACE_CHOWN. Don't define chown as a macro here.
38035         * modules/chown (Depends-on): Add unistd.
38036         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38037
38038         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38039         Add definition for GL_LINK_WARNING.
38040         (chown, dup2): New declarations.
38041         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38042         link warning.
38043         (ftruncate): New declaration.
38044         (getcwd): New declaration, taken from old getcwd.h.
38045         (getlogin_r): New declaration, taken from old getlogin_r.h.
38046         (readlink): New declaration.
38047         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38048         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38049         (gl_PREREQ_UNISTD): Remove macro.
38050         (gl_UNISTD_MODULE_INDICATOR): New macro.
38051         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38052         many new variables. Don't set UNISTD_H.
38053         * modules/unistd (Description): Change.
38054         (Depends-on): Add link-warning.
38055         (configure.ac): Update.
38056         (Makefile.am): Create unistd.h always. Substitute many new variables
38057         into it.
38058
38059 2007-02-18  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38062         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38063         HAVE_GETSUBOPT.
38064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38065         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38066         * lib/getsubopt.h: Remove file.
38067         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38068         (Depends-on): Add stdlib.
38069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38070         (Includes): Use <stdlib.h> instead of getsubopt.h.
38071         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38072         Set HAVE_GETSUBOPT.
38073         * lib/getsubopt.c: Don't include getsubopt.h.
38074
38075 2007-02-18  Bruno Haible  <bruno@clisp.org>
38076
38077         * modules/fchdir (Depends-on): Add dup2.
38078
38079 2007-02-18  Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/stdlib_.h: Handle glibc's special invocation convention
38082         specially.
38083
38084 2007-02-18  Bruno Haible  <bruno@clisp.org>
38085
38086         * modules/stdlib-tests: New file.
38087         * tests/test-stdlib.c: New file.
38088
38089         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38090         (Depends-on): Add stdlib.
38091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38092         (Includes): Use <stdlib.h> instead of mkstemp.h.
38093         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38094         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38095         * lib/mkstemp.c: Don't include mkstemp.h.
38096         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38097         * lib/stdlib--.h: Don't include mkstemp.h.
38098
38099         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38100         (Depends-on): Add stdlib.
38101         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38102         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38103         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38104         HAVE_MKDTEMP.
38105         * lib/mkdtemp.c: Don't include mkdtemp.h.
38106         * lib/clean-temp.c: Don't include mkdtemp.h.
38107
38108         * modules/exit (Files): Remove lib/exit.h.
38109         (Depends-on): Add stdlib.
38110         (Makefile.am): Remove lib_SOURCES.
38111         (Include): Use <stdlib.h> instead of exit.h.
38112         * lib/argmatch.c: Don't include exit.h.
38113         * lib/execute.c: Likewise.
38114         * lib/pagealign_alloc.c: Likewise.
38115         * lib/pipe.c: Likewise.
38116         * lib/wait-process.c: Likewise.
38117         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38118         * lib/exitfail.c: Likewise.
38119         * lib/savewd.c: Likewise.
38120         * lib/xsetenv.c: Likewise.
38121
38122         * modules/stdlib: New file.
38123         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38124         and extra comments about mkstemp().
38125         * lib/exit.h: Remove file.
38126         * lib/mkdtemp.h: Remove file.
38127         * lib/mkstemp.h: Remove file.
38128         * m4/stdlib_h.m4: New file.
38129         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38130
38131 2007-02-18  Bruno Haible  <bruno@clisp.org>
38132
38133         * modules/math-tests: New file.
38134         * tests/test-math.c: New file.
38135
38136         * modules/math: New file.
38137         * modules/mathl (Files): Remove lib/mathl.h.
38138         (Depends-on): Add math.
38139         (Makefile.am): Don't mention mathl.h.
38140         (Include): Use <math.h> instead of mathl.h.
38141         * lib/math_.h: New file.
38142         * lib/mathl.h: Remove file.
38143         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38144         mathl.h.
38145         * lib/asinl.c: Likewise.
38146         * lib/atanl.c: Likewise.
38147         * lib/ceill.c: Likewise.
38148         * lib/cosl.c: Likewise.
38149         * lib/expl.c: Likewise.
38150         * lib/floorl.c: Likewise.
38151         * lib/frexpl.c: Likewise.
38152         * lib/ldexpl.c: Likewise.
38153         * lib/logl.c: Likewise.
38154         * lib/sincosl.c: Likewise.
38155         * lib/sinl.c: Likewise.
38156         * lib/sqrtl.c: Likewise.
38157         * lib/tanl.c: Likewise.
38158         * lib/trigl.c: Likewise.
38159         * m4/math_h.m4: New file.
38160         * MODULES.html.sh (Mathematics): Add math.
38161
38162 2007-02-17  Bruno Haible  <bruno@clisp.org>
38163
38164         * modules/wctype-tests: New file.
38165         * tests/test-wctype.c: New file.
38166
38167         * modules/wchar-tests: New file.
38168         * tests/test-wchar.c: New file.
38169
38170         * modules/unistd-tests: New file.
38171         * tests/test-unistd.c: New file.
38172
38173         * modules/time-tests: New file.
38174         * tests/test-time.c: New file.
38175
38176         * modules/sysexits-tests: New file.
38177         * tests/test-sysexits.c: New file.
38178
38179         * modules/sys_time-tests: New file.
38180         * tests/test-sys_time.c: New file.
38181
38182         * modules/sys_stat-tests: New file.
38183         * tests/test-sys_stat.c: New file.
38184
38185         * modules/sys_socket-tests: New file.
38186         * tests/test-sys_socket.c: New file.
38187
38188         * modules/sys_select-tests: New file.
38189         * tests/test-sys_select.c: New file.
38190
38191         * modules/string-tests: New file.
38192         * tests/test-string.c: New file.
38193
38194         * modules/stdbool-tests: New file.
38195         * tests/test-stdbool.c: New file.
38196
38197         * modules/netinet_in-tests: New file.
38198         * tests/test-netinet_in.c: New file.
38199
38200         * modules/inttypes-tests: New file.
38201         * tests/test-inttypes.c: New file.
38202
38203         * modules/fcntl-tests: New file.
38204         * tests/test-fcntl.c: New file.
38205
38206         * modules/byteswap-tests: New file.
38207         * tests/test-byteswap.c: New file.
38208
38209         * modules/arpa_inet-tests: New file.
38210         * tests/test-arpa_inet.c: New file.
38211
38212 2007-02-17  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38215         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38216         if the corresponding module is not enabled. Emit link warnings if
38217         the function is used nevertheless.
38218         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38219         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38220         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38221         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38222         * modules/inttypes (Depends-on): Add link-warning.
38223         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38224         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38225         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38226         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38227         * modules/imaxdiv (configure.ac): Likewise.
38228         * modules/strtoimax (configure.ac): Likewise.
38229         * modules/strtoumax (configure.ac): Likewise.
38230
38231 2007-02-17  Bruno Haible  <bruno@clisp.org>
38232
38233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38234         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38235         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38236         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38237
38238 2007-02-17  Bruno Haible  <bruno@clisp.org>
38239
38240         * modules/link-warning: New file.
38241         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38242         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38243         * modules/string (Depends-on): Add link-warning.
38244         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38245         string.h.
38246         * MODULES.html.sh (Support for building libraries and executables): Add
38247         link-warning.
38248
38249 2007-02-17  Bruno Haible  <bruno@clisp.org>
38250
38251         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38252         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38253         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38254         long lines.
38255
38256 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38257             Bruno Haible  <bruno@clisp.org>
38258
38259         * modules/tmpfile: New file.
38260         * lib/tmpfile.c: New file.
38261         * m4/tmpfile.m4: New file.
38262         * MODULES.html.sh (func_all_modules): New section "Input/output".
38263
38264 2007-02-15  Bruno Haible  <bruno@clisp.org>
38265
38266         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38267         (supports_delete_on_close): New function.
38268         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38269
38270 2007-02-14  Bruno Haible  <bruno@clisp.org>
38271
38272         * modules/mbspcasecmp-tests: New file.
38273         * tests/test-mbspcasecmp.sh: New file.
38274         * tests/test-mbspcasecmp.c: New file.
38275
38276         New module mbspcasecmp.
38277         * modules/mbspcasecmp: New file.
38278         * lib/mbspcasecmp.c: New file.
38279         * lib/string_.h (strncasecmp): Change warning message.
38280         (mbspcasecmp): New declaration.
38281         * m4/mbspcasecmp.m4: New file.
38282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38283         GNULIB_MBSPCASECMP.
38284         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38285         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38286
38287 2007-02-14  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/mbsncasecmp-tests: New file.
38290         * tests/test-mbsncasecmp.sh: New file.
38291         * tests/test-mbsncasecmp.c: New file.
38292
38293         New module mbsncasecmp.
38294         * modules/mbsncasecmp: New file.
38295         * lib/mbsncasecmp.c: New file.
38296         * lib/string_.h (mbsncasecmp): New declaration.
38297         * m4/mbsncasecmp.m4: New file.
38298         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38299         GNULIB_MBSNCASECMP.
38300         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38301         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38302
38303 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38304
38305         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38306         Verify that it doesn't overlap with our flags.
38307         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38308         do not have the desired effect in multibyte locales; instead, use
38309         mbscasecmp.
38310         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38311         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38312         we don't require GNU fnmatch ourselves (if our users require it, they
38313         should do so explicitly).
38314
38315         Fix regex code so it doesn't rely on strcasecmp.
38316         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38317         Otherwise, include gnulib's langinfo.h.
38318         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38319         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38320         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38321         * modules/regex (FILES): Remove m4/codeset.m4.
38322         (Depends-on): Add localcharset.  Remove strcase.
38323
38324 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38325
38326         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38327         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38328
38329 2007-02-13  Bruno Haible  <bruno@clisp.org>
38330
38331         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38333
38334 2007-02-12  Bruno Haible  <bruno@clisp.org>
38335
38336         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38337         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38338         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38339         time warning rather than a link error.
38340
38341 2007-02-12  Bruno Haible  <bruno@clisp.org>
38342
38343         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38344         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38346
38347 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38348
38349         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38350         args, not 2.
38351
38352 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38353
38354         New module 'time', so that apps can include <time.h> as per
38355         POSIX and GNU instead of separate include files like time_r.h
38356         and timegm.h.  This implementation tries out a simpler approach
38357         for replacing decls in standard include files (as compared to
38358         the string module), somewhat as an experiment.
38359
38360         * config/srclist.txt: Comment out mktime.c for now.
38361         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38362         since it doesn't apply any more.  Use generic wording instead.
38363         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38364         'time'.
38365         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38366         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38367         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38368         Don't include <sys/types.h>; no longer needed since we assume C89.
38369         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38370         * lib/strftime.c: Likewise.
38371         * lib/time_r.c: Likewise.
38372         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38373         * lib/nanosleep.c: Include <time.h> first, to check interface.
38374         * lib/strptime.c: Likewise.
38375         * lib/time_r.c: Likewise.
38376         * lib/timegm.c: Likewise.
38377         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38378         needed.
38379         * lib/timegm.c: Don't include timegm.h; no longer needed.
38380         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38381         time.h now handles any problems in that area.
38382         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38383         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38384         that time.h defines struct timespec.
38385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38386         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38387         handles that.
38388         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38389         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38390         needed.  Set REPLACE_LOCALTIME.
38391         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38392         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38393         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38394         nanosleep; time_h.m4 now does that.  Don't require
38395         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38396         module handles this now.
38397         * modules/getdate (Depends-on): Remove timespec.  Add time.
38398         * modules/nanosleep (Depends-on): Likewise.
38399         * modules/stat-time (Depends-on): Likewise.
38400         * modules/nanosleep (Include): Include time.h, not timespec.h.
38401         * modules/strptime (Files): Remove lib/strptime.h.
38402         (Depends-on): Add extensions, time.
38403         (Include): Include time.h, not strptime.h.
38404         * modules/time_r (Files): Remove lib/time_r.h.
38405         (Depends-on): Add time.
38406         (Include): Include time.h, not time_r.h.
38407         * modules/timegm: Likewise.
38408         * modules/timespec (Description): Now does timespec-related decls
38409         of our own, instead of struct timespec itself.
38410         (Depends-on): Add time; remove extensions.
38411         (Maintainer): Add self.
38412         * modules/utimecmp (Depends-on): Add time; remove timespec.
38413         * modules/utimens (Depends-on): Likewise.
38414         * modules/xnanosleep (Depends-on): Likewise.
38415
38416 2007-02-11  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/c-strstr.c: Include allocsa.h.
38419         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38420         * lib/c-strcasestr.c: Include allocsa.h.
38421         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38422         * lib/strcasestr.c: Include allocsa.h.
38423         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38424         * lib/mbsstr.c: Include allocsa.h.
38425         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38426         allocsa/freesa instead of malloc/free.
38427         * lib/mbscasestr.c: Include allocsa.h.
38428         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38429         allocsa/freesa instead of malloc/free.
38430         * modules/c-strstr (Depends-on): Add allocsa.
38431         * modules/c-strcasestr (Depends-on): Likewise.
38432         * modules/strcasestr (Depends-on): Likewise.
38433         * modules/mbsstr (Depends-on): Likewise.
38434         * modules/mbscasestr (Depends-on): Likewise.
38435
38436 2007-02-11  Bruno Haible  <bruno@clisp.org>
38437
38438         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38439
38440         * modules/mbsspn-tests: New file.
38441         * tests/test-mbsspn.sh: New file.
38442         * tests/test-mbsspn.c: New file.
38443
38444 2007-02-11  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38447
38448         * modules/mbspbrk-tests: New file.
38449         * tests/test-mbspbrk.sh: New file.
38450         * tests/test-mbspbrk.c: New file.
38451
38452 2007-02-11  Bruno Haible  <bruno@clisp.org>
38453
38454         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38455         unneeded cast.
38456
38457         * modules/mbscspn-tests: New file.
38458         * tests/test-mbscspn.sh: New file.
38459         * tests/test-mbscspn.c: New file.
38460
38461 2007-02-11  Bruno Haible  <bruno@clisp.org>
38462
38463         * modules/mbscasecmp-tests: New file.
38464         * tests/test-mbscasecmp.sh: New file.
38465         * tests/test-mbscasecmp.c: New file.
38466
38467 2007-02-11  Bruno Haible  <bruno@clisp.org>
38468
38469         Ensure O(n) worst-case complexity of mbscasestr.
38470         * lib/mbscasestr.c: Include stdbool.h.
38471         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38472         functions.
38473         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38474         the bookkeeping indicates that it's worth it.
38475         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38476
38477         * modules/mbscasestr-tests: New file.
38478         * tests/test-mbscasestr1.c: New file.
38479         * tests/test-mbscasestr2.sh: New file.
38480         * tests/test-mbscasestr2.c: New file.
38481         * tests/test-mbscasestr3.sh: New file.
38482         * tests/test-mbscasestr3.c: New file.
38483         * tests/test-mbscasestr4.sh: New file.
38484         * tests/test-mbscasestr4.c: New file.
38485         * m4/locale-tr.m4: New file.
38486
38487 2007-02-11  Bruno Haible  <bruno@clisp.org>
38488
38489         Ensure O(n) worst-case complexity of mbsstr.
38490         * lib/mbsstr.c: Include stdbool.h.
38491         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38492         functions.
38493         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38494         bookkeeping indicates that it's worth it.
38495         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38496
38497         * modules/mbsstr-tests: New file.
38498         * tests/test-mbsstr1.c: New file.
38499         * tests/test-mbsstr2.sh: New file.
38500         * tests/test-mbsstr2.c: New file.
38501         * tests/test-mbsstr3.sh: New file.
38502         * tests/test-mbsstr3.c: New file.
38503         * m4/locale-fr.m4: New file.
38504
38505 2007-02-11  Bruno Haible  <bruno@clisp.org>
38506
38507         * lib/mbsrchr.c (mbsrchr): Fix bug.
38508
38509         * modules/mbsrchr-tests: New file.
38510         * tests/test-mbsrchr.sh: New file.
38511         * tests/test-mbsrchr.c: New file.
38512
38513 2007-02-11  Bruno Haible  <bruno@clisp.org>
38514
38515         * lib/mbschr.c (mbschr): Fix bug.
38516
38517         * modules/mbschr-tests: New file.
38518         * tests/test-mbschr.sh: New file.
38519         * tests/test-mbschr.c: New file.
38520         * m4/locale-zh.m4: New file.
38521
38522 2007-02-11  Bruno Haible  <bruno@clisp.org>
38523
38524         Support for copying multibyte string iterators.
38525         * lib/mbiter.h: Include <string.h>.
38526         (mbiter_multi_copy): New function.
38527         (mbi_copy): New macro.
38528         * lib/mbuiter.h: Include <string.h>.
38529         (mbuiter_multi_copy): New function.
38530         (mbui_copy): New macro.
38531
38532 2007-02-11  Bruno Haible  <bruno@clisp.org>
38533
38534         New module mbslen.
38535         * modules/mbslen: New file.
38536         * lib/mbslen.c: New file.
38537         * lib/string_.h (mbslen): New declaration.
38538         * m4/mbslen.m4: New file.
38539         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38540         GNULIB_MBSLEN.
38541         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38542         * MODULES.html.sh (Internationalization functions): Add mbslen.
38543
38544 2007-02-11  Bruno Haible  <bruno@clisp.org>
38545
38546         Ensure O(n) worst-case complexity of strcasestr substitute.
38547         * lib/strcasestr.c: Include stdbool.h.
38548         (knuth_morris_pratt): New function.
38549         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38550         bookkeeping indicates that it's worth it.
38551         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38552
38553         * modules/strcasestr-tests: New file.
38554         * tests/test-strcasestr.c: New file.
38555
38556 2007-02-11  Bruno Haible  <bruno@clisp.org>
38557
38558         Ensure O(n) worst-case complexity of c_strcasestr.
38559         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38560         (knuth_morris_pratt): New function.
38561         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38562         the bookkeeping indicates that it's worth it.
38563         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38564
38565         * modules/c-strcasestr-tests: New file.
38566         * tests/test-c-strcasestr.c: New file.
38567
38568 2007-02-11  Bruno Haible  <bruno@clisp.org>
38569
38570         Ensure O(n) worst-case complexity of c_strstr.
38571         * lib/c-strstr.c: Include stdbool.h, string.h.
38572         (knuth_morris_pratt): New function.
38573         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38574         bookkeeping indicates that it's worth it.
38575         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38576
38577         * lib/c-strstr.c: Complete rewrite for maintainability.
38578
38579         * modules/c-strstr-tests: New file.
38580         * tests/test-c-strstr.c: New file.
38581
38582 2007-02-11  Bruno Haible  <bruno@clisp.org>
38583
38584         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38585         5.2.1 and earlier, whereby \055 was treated just like the range
38586         delimiter '-'.
38587         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38588
38589 2007-02-08  Bruno Haible  <bruno@clisp.org>
38590
38591         * modules/regex (Depends-on): Add stdbool.
38592         Reported by Dalibor Topic <robilad@kaffe.org>.
38593
38594 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38595
38596         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38597         Prefer returning from main to exiting from it.
38598         Remove unnecessary parens after sizeof.
38599
38600 2007-02-05  Bruno Haible  <bruno@clisp.org>
38601
38602         New module mbssep.
38603         * modules/mbssep: New file.
38604         * lib/mbssep.c: New file.
38605         * lib/string_.h (strsep): Add a conditional link warning.
38606         (mbssep): New declaration.
38607         * m4/mbssep.m4: New file.
38608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38609         GNULIB_MBSSEP.
38610         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38611         * MODULES.html.sh (Internationalization functions): Add mbssep.
38612
38613 2007-02-05  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38616         Optimize search in case of 1 delimiter.
38617
38618 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38619
38620         * lib/acl.h: Include sys/types.h before sys/acl.h.
38621
38622 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
38623
38624         Merge upstream fix for glibc bugzilla #3957:
38625
38626         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
38627
38628         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
38629         bit for RE_HAT_LISTS_NOT_NEWLINE.
38630         (build_charclass_op): Remove bogus comment.
38631
38632 2007-02-05  Simon Josefsson  <simon@josefsson.org>
38633
38634         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
38635
38636 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38637
38638         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
38639         * lib/memmem.c [!defined _LIBC]: Include config.h.
38640
38641 2007-02-04  Bruno Haible  <bruno@clisp.org>
38642
38643         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
38644         warning message.
38645
38646 2007-02-04  Bruno Haible  <bruno@clisp.org>
38647
38648         New module mbstok_r.
38649         * modules/mbstok_r: New file.
38650         * lib/mbstok_r.c: New file.
38651         * lib/string_.h (strtok_r): Change argument names to match the
38652         comments. Add a conditional link warning.
38653         (mbstok_r): New declaration.
38654         * m4/mbstok_r.m4: New file.
38655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38656         GNULIB_MBSTOK_R.
38657         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
38658         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
38659
38660 2007-02-04  Bruno Haible  <bruno@clisp.org>
38661
38662         New module mbsspn.
38663         * modules/mbsspn: New file.
38664         * lib/mbsspn.c: New file.
38665         * lib/string_.h (strspn): Add a conditional link warning.
38666         (mbsspn): New declaration.
38667         * m4/mbsspn.m4: New file.
38668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38669         GNULIB_MBSSPN.
38670         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
38671         * MODULES.html.sh (Internationalization functions): Add mbsspn.
38672
38673 2007-02-04  Bruno Haible  <bruno@clisp.org>
38674
38675         New module mbspbrk.
38676         * modules/mbspbrk: New file.
38677         * lib/mbspbrk.c: New file.
38678         * lib/string_.h (strpbrk): Add a conditional link warning.
38679         (mbspbrk): New declaration.
38680         * m4/mbspbrk.m4: New file.
38681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38682         GNULIB_MBSPBRK.
38683         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
38684         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
38685
38686 2007-02-04  Bruno Haible  <bruno@clisp.org>
38687
38688         New module mbscspn.
38689         * modules/mbscspn: New file.
38690         * lib/mbscspn.c: New file.
38691         * lib/string_.h (strcspn): Add a conditional link warning.
38692         (mbscspn): New declaration.
38693         * m4/mbscspn.m4: New file.
38694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38695         GNULIB_MBSCSPN.
38696         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
38697         * MODULES.html.sh (Internationalization functions): Add mbscspn.
38698
38699 2007-02-04  Bruno Haible  <bruno@clisp.org>
38700
38701         New module mbscasestr, reduced goal of strcasestr.
38702         * modules/mbscasestr: New file.
38703         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
38704         (mbscasestr): Renamed from strcasestr.
38705         * lib/strcasestr.c: Don't include mbuiter.h.
38706         (strcasestr): Remove support for multibyte locales.
38707         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
38708         Change the conditional link warning.
38709         (mbscasestr): New declaration.
38710         * m4/mbscasestr.m4: New file.
38711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
38712         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
38713         REPLACE_STRCASESTR.
38714         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
38715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38716         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38717         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
38718         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
38719         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
38720         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
38721         (Depends-on): Remove mbuiter.
38722         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
38723
38724 2007-02-04  Bruno Haible  <bruno@clisp.org>
38725
38726         Simplify handling of strncasecmp.
38727         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
38728         the conditional link warning.
38729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38730         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
38731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
38732         * modules/strcase (configure.ac): Don't invoke
38733         gl_STRING_MODULE_INDICATOR.
38734         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
38735
38736 2007-02-04  Bruno Haible  <bruno@clisp.org>
38737
38738         New module mbscasecmp, reduced goal of strcasecmp.
38739         * modules/mbscasecmp: New file.
38740         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
38741         (mbscasecmp): Renamed from strcasecmp.
38742         * lib/strcasecmp.c: Don't include mbuiter.h.
38743         (strcasecmp): Remove support for multibyte locales.
38744         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
38745         Change the conditional link warning.
38746         (mbscasecmp): New declaration.
38747         * m4/mbscasecmp.m4: New file.
38748         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
38749         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
38750         REPLACE_STRCASECMP.
38751         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
38752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38753         GNULIB_MBSCASECMP.
38754         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
38755         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
38756         * modules/strcase (Files): Remove m4/mbrtowc.m4.
38757         (Depends-on): Remove mbuiter.
38758         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
38759
38760 2007-02-04  Bruno Haible  <bruno@clisp.org>
38761
38762         New module mbsstr. Remove module strstr.
38763         * modules/mbsstr: New file.
38764         * modules/strstr: Remove file.
38765         * lib/mbsstr.c: Renamed from lib/strstr.c.
38766         (mbsstr): Renamed from strstr.
38767         * lib/string_.h (strstr): Remove declaration. Change the conditional
38768         link warning.
38769         (mbsstr): New declaration.
38770         * m4/mbsstr.m4: New file.
38771         * m4/strstr.m4: Remove file.
38772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
38773         REPLACE_STRSTR.
38774         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
38775         Don't initialize GNULIB_STRSTR.
38776         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
38777         substitute GNULIB_STRSTR and REPLACE_STRSTR.
38778         * MODULES.html.sh (Internationalization functions): Add mbsstr.
38779         (Support for systems lacking ANSI C 89): Remove strstr.
38780
38781 2007-02-04  Bruno Haible  <bruno@clisp.org>
38782
38783         New module mbsrchr.
38784         * modules/mbsrchr: New file.
38785         * lib/mbsrchr.c: New file.
38786         * lib/string_.h (strrchr): Add a conditional link warning.
38787         (mbsrchr): New declaration.
38788         * m4/mbsrchr.m4: New file.
38789         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38790         GNULIB_MBSRCHR.
38791         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
38792         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
38793
38794 2007-02-04  Bruno Haible  <bruno@clisp.org>
38795
38796         New module mbschr.
38797         * modules/mbschr: New file.
38798         * lib/mbschr.c: New file.
38799         * lib/string_.h (strchr): Add a conditional link warning.
38800         (mbschr): New declaration.
38801         * m4/mbschr.m4: New file.
38802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38803         GNULIB_MBSCHR.
38804         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
38805         * MODULES.html.sh (Internationalization functions): Add mbschr.
38806
38807 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38808
38809         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
38810
38811         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
38812
38813 2007-02-04  Bruno Haible  <bruno@clisp.org>
38814
38815         New module description section 'configure.ac-early'.
38816         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
38817         (func_get_autoconf_early_snippet): New function.
38818         (func_import, func_create_testdir): Use it. Remove special cases for
38819         modules 'extensions' and 'lock'.
38820         * modules/extensions (configure.ac-early): Require
38821         gl_USE_SYSTEM_EXTENSIONS.
38822         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
38823
38824 2007-02-04  Bruno Haible  <bruno@clisp.org>
38825
38826         Make use of gcj-4.3's -fsource and -ftarget option.
38827         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
38828         and if so try the options -fsource and -ftarget.
38829         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
38830         source_version, ftarget_option, target_version arguments.
38831         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
38832         (is_envjavac_oldgcj_14_14_usable): Renamed from
38833         is_envjavac_gcj_14_14_usable.
38834         (is_envjavac_oldgcj_14_13_usable): Renamed from
38835         is_envjavac_gcj_14_13_usable.
38836         (is_gcj_present): Update.
38837         (is_gcj_43, is_gcj43_usable): New functions.
38838         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
38839         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
38840         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
38841         try the options -fsource and -ftarget.
38842
38843 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38844
38845         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
38846         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
38847         larger value.
38848
38849 2007-02-03  Jim Meyering  <jim@meyering.net>
38850
38851         Give tools a better chance to allocate space for very large buffers.
38852         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
38853
38854         Make pwd and readlink work also when run with an unreadable parent dir
38855         on systems with openat support.
38856         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
38857         provided getcwd function, even when we have openat support.
38858         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
38859
38860 2007-02-02  Bruno Haible  <bruno@clisp.org>
38861
38862         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38863         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
38864         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
38865         portability problems if one of these functions is only used on specific
38866         platforms.
38867         Reported by Paul Eggert.
38868
38869 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
38870
38871         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
38872         is causing more trouble than it's curing.
38873         * lib/regex_internal.h (__mempcpy): Remove.
38874         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
38875         (and make the code a tad smaller to boot).
38876         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
38877
38878 2007-02-02  Jim Meyering  <jim@meyering.net>
38879
38880         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
38881         section, not in the Makefile.am: one.
38882
38883 2007-02-02  Eric Blake  <ebb9@byu.net>
38884
38885         * lib/strchrnul.c: Always include config.h first.
38886
38887         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
38888         gnulib strstr is not necessary here.
38889
38890 2007-02-02  Simon Josefsson  <simon@josefsson.org>
38891
38892         * m4/socklen.m4: Fix typo.
38893
38894 2007-02-02  Eric Blake  <ebb9@byu.net>
38895
38896         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
38897         * modules/netinet_in (Makefile.am): Likewise.
38898
38899 2007-02-01  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/string_.h (GL_LINK_WARNING): New macro.
38902         (strcasecmp, strstr, strcasestr): If provided by the system,
38903         conditionally define as a macro that leads to a warning instead of to
38904         an error.
38905         (strncasecmp): Conditionally define as a macro that leads to a warning.
38906
38907 2007-02-01  Karl Berry  <karl@gnu.org>
38908
38909         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
38910
38911 2007-02-01  Bruno Haible  <bruno@clisp.org>
38912
38913         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
38914         renamings.
38915
38916 2007-02-01  Eric Blake  <ebb9@byu.net>
38917
38918         * modules/regex (Depends-on): Revert dependence on mempcpy.
38919         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
38920         module's definition of mempcpy.
38921         Reported by Paul Eggert.
38922
38923 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38924
38925         * lib/string_.h: If the gnulib module XYZ is not present, undefine
38926         the symbol XYZ before redefining it.  This fixes a problem with
38927         programs that don't use XYZ, when compiled on systems that define
38928         XYZ to something else.
38929
38930 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
38931
38932         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
38933         occurs when "mkdir -m foo" creates a setgid directory that is (1)
38934         writeable to group or other and (2) is intended to have a special
38935         mode bit that is set or cleared.  In such a case, the directory
38936         should be neither group- nor other-writeable until the special
38937         mode bits are right.
38938
38939 2007-01-31  Eric Blake  <ebb9@byu.net>
38940
38941         * modules/mountlist (Depends-on): Add strstr.
38942
38943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
38944         bug.
38945         * modules/string (Makefile.am): Remove redundant replacement.
38946         * modules/regex (Depends-on): Add mempcpy.
38947
38948 2007-01-31  Bruno Haible  <bruno@clisp.org>
38949
38950         New module description field 'Link'.
38951         * gnulib-tool (func_usage): Document --extract-link-directive.
38952         (sed_extract_prog): Recognize 'Link' directive.
38953         (func_get_link_directive): New function.
38954         (func_import): Show summary of link directives.
38955         Handle --extract-link-directive option.
38956         * modules/acl (Link): New section.
38957         * modules/clock-time (Link): New section.
38958         * modules/euidaccess (Link): New section.
38959         * modules/gettext (Link): New section.
38960         * modules/iconv (Link): New section.
38961         * modules/lock (Link): New section.
38962         * modules/nanosleep (Link): New section.
38963         * modules/readline (Link): New section.
38964
38965 2007-01-27  Bruno Haible  <bruno@clisp.org>
38966
38967         Enforce the use of gnulib modules for unportable <string.h> functions.
38968         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
38969         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
38970         (gl_HEADER_STRING_H_BODY): Require it.
38971         * lib/string_.h: If the gnulib module XYZ is not present, redefine
38972         the symbol XYZ to one that gives a link error.
38973         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
38974         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
38975         * modules/mempcpy (configure.ac): Likewise.
38976         * modules/memrchr (configure.ac): Likewise.
38977         * modules/stpcpy (configure.ac): Likewise.
38978         * modules/stpncpy (configure.ac): Likewise.
38979         * modules/strcase (configure.ac): Likewise.
38980         * modules/strcasestr (configure.ac): Likewise.
38981         * modules/strchrnul (configure.ac): Likewise.
38982         * modules/strdup (configure.ac): Likewise.
38983         * modules/strndup (configure.ac): Likewise.
38984         * modules/strnlen (configure.ac): Likewise.
38985         * modules/strpbrk (configure.ac): Likewise.
38986         * modules/strsep (configure.ac): Likewise.
38987         * modules/strstr (configure.ac): Likewise.
38988         * modules/strtok_r (configure.ac): Likewise.
38989
38990 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
38991
38992         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
38993
38994 2007-01-30  Jim Meyering  <jim@meyering.net>
38995
38996         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
38997
38998 2007-01-29  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39001         * lib/execute.c: Likewise.
39002         * lib/pipe.c: Likewise.
39003         * lib/printf-args.h: Likewise.
39004         * lib/printf-args.c: Likewise.
39005         * lib/printf-parse.c: Likewise.
39006         * lib/vasnprintf.c: Likewise.
39007
39008 2007-01-29  Eric Blake  <ebb9@byu.net>
39009
39010         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39011         declaration.
39012
39013 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39014
39015         * lib/strptime.h (strptime): Use 'restrict' for args where
39016         POSIX requires this.
39017         * lib/strptime.c (strptime): Likewise.
39018         Change license notice from LGPL to GPL, since gnulib-tool will
39019         change this as needed.
39020         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39021         defined.
39022         Include "strptime.h" first, to check interface.
39023         Do not #undef _LIBC and _NL_CURRENT.
39024         Do not include <stdlib.h>; no longer needed.
39025         Include "time_r.h" and declare ptime_locale_status
39026         only if _LIBC is not defined.
39027         (__P): Remove unused macro.
39028         (match_string): Bring back glibc version, but use it only if _LIBC
39029         is defined.
39030         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39031         Remove unnecessary assertion and abort() call.
39032         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39033         * m4/strptime.m4: Fix serial number comment.
39034         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39035         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39036         (Depends-on): Add time_r.
39037
39038 2007-01-29  Bruno Haible  <bruno@clisp.org>
39039
39040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39041         strptime.
39042         * modules/strptime (Depends-on): Add stdbool.
39043         * lib/strptime.h: Include <time.h> always. Add comments.
39044
39045 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39046
39047         * modules/strptime: New file.
39048         * lib/strptime.h: New file.
39049         * lib/strptime.c: New file.
39050         * m4/strptime.m4: New file.
39051
39052 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39053
39054         * MODULES.html.sh: New module mpsort.
39055         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39056
39057         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39058         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39060         All uses changed.
39061         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39062         All uses changed.
39063         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39064         to _Restrict_.
39065         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39066         the parameter matches the prototype.
39067
39068 2007-01-28  Jim Meyering  <jim@meyering.net>
39069
39070         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39071         sys/time.h here, reverting that part of the previous patch:
39072         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39073
39074 2007-01-28  Bruno Haible  <bruno@clisp.org>
39075
39076         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39077         value of $(SYS_TIME_H).
39078         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39079         remove it conditionally, too. [added by Jim Meyering]
39080         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39082         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39083         GETTIMEOFDAY_REPLACEMENT to 1.
39084
39085 2007-01-28  Bruno Haible  <bruno@clisp.org>
39086
39087         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39088         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39090         Set UNISTD_H instead of UNISTD_H2.
39091         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39092
39093 2007-01-28  Bruno Haible  <bruno@clisp.org>
39094
39095         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39096         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39097
39098 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39099
39100         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39101         (func_create_testdir): Ensure C locale for `grep' and `tr'
39102         character ranges.
39103         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39104         ACLOCAL_AMFLAGS parsing state machine.
39105
39106 2007-01-27  Bruno Haible  <bruno@clisp.org>
39107
39108         * modules/unistr/base: Update.
39109
39110 2007-01-27  Bruno Haible  <bruno@clisp.org>
39111
39112         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39113         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39114         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39115         modules/unistr/u32-mbtouc.
39116         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39117         * lib/unistr.h: Update.
39118         * lib/linebreak.c: Update.
39119         * modules/unistr/u32-mbtouc: Renamed from
39120         modules/unistr/u32-mbtouc-safe.
39121         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39122         * lib/unistr.h: Update.
39123         * lib/unistr/u32-to-u8.c: Update.
39124         * lib/unistr/u32-to-u16.c: Update.
39125
39126 2007-01-27  Bruno Haible  <bruno@clisp.org>
39127
39128         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39129         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39130         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39131         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39132         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39133         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39134         modules/unistr/u16-mbtouc.
39135         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39136         * lib/unistr.h: Update.
39137         * lib/linebreak.c: Update.
39138         * modules/linebreak: Update.
39139         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39140         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39141         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39142         * modules/unistr/u16-mbtouc: Renamed from
39143         modules/unistr/u16-mbtouc-safe.
39144         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39145         * lib/unistr.h: Update.
39146         * lib/unistr/u16-to-u8.c: Update.
39147         * modules/unistr/u16-to-u8: Update.
39148         * lib/unistr/u16-to-u32.c: Update.
39149         * modules/unistr/u16-to-u32: Update.
39150
39151 2007-01-27  Bruno Haible  <bruno@clisp.org>
39152
39153         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39154         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39155         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39156         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39157         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39158         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39159         modules/unistr/u8-mbtouc.
39160         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39161         * lib/unistr.h: Update.
39162         * lib/striconveh.c: Update.
39163         * modules/striconveh: Update.
39164         * lib/linebreak.c: Update.
39165         * modules/linebreak: Update.
39166         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39167         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39168         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39169         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39170         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39171         * lib/unistr.h: Update.
39172         * lib/striconveh.c: Update.
39173         * modules/striconveh: Update.
39174         * lib/unistr/u8-to-u16.c: Update.
39175         * modules/unistr/u8-to-u16: Update.
39176         * lib/unistr/u8-to-u32.c: Update.
39177         * modules/unistr/u8-to-u32: Update.
39178
39179 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39180
39181         Sync from Libtool.
39182         * lib/argz.c: Do not include strings.h nor memory.h, include
39183         string.h unconditionally.  Patch by Simon Josefsson.
39184
39185 2007-01-27  Bruno Haible  <bruno@clisp.org>
39186
39187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39188         from gl_HEADER_STRING_H_BODY.
39189         (gl_HEADER_STRING_H_BODY): Require it.
39190         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39191         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39192         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39193         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39195         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39197         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39198         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39199         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39200         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39201         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39202         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39203         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39204         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39205
39206 2007-01-27  Bruno Haible  <bruno@clisp.org>
39207
39208         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39209         check_PROGRAMS into noinst_PROGRAMS.
39210         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39211         check_PROGRAMS in this case.
39212         (func_import): Set for_test to false.
39213         (func_create_testdir): Set for_test to true.
39214
39215 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39216             Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39219         (Depends-on): Add string.
39220         (Includes): Use <string.h> instead of strcasestr.h.
39221         * modules/string (Makefile.am): Also substitute the value of
39222         REPLACE_STRCASESTR.
39223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39224         assume strcasestr is declared in <string.h> not <strings.h>. Also
39225         set REPLACE_STRCASESTR.
39226         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39227         REPLACE_STRCASESTR.
39228         * lib/strcasestr.h: Remove file.
39229         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39230         * lib/string_.h (strcasestr): New declaration.
39231
39232 2007-01-27  Bruno Haible  <bruno@clisp.org>
39233
39234         * lib/string_.h: Use 'extern'.
39235
39236 2007-01-27  Jim Meyering  <jim@meyering.net>
39237
39238         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39239         of set-but-not-used local, "q".
39240
39241         * lib/mempcpy.c: Include <config.h> before <string.h>.
39242         This fixes a compilation error on HP-UX, due to the system's
39243         "restrict"-using mempcpy prototype.
39244
39245 2007-01-26  Bruno Haible  <bruno@clisp.org>
39246
39247         Small optimization.
39248         * lib/javacomp.c: Include c-strstr.h.
39249          (is_envjavac_gcj): Use c_strstr instead of strstr.
39250         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39251
39252 2007-01-26  Bruno Haible  <bruno@clisp.org>
39253
39254         * MODULES.html.sh (Unicode string functions): Add the new modules.
39255
39256         * modules/uniconv/u32-strconv-to-locale: New file.
39257         * lib/uniconv/u32-strconv-to-locale.c: New file.
39258
39259         * modules/uniconv/u16-strconv-to-locale: New file.
39260         * lib/uniconv/u16-strconv-to-locale.c: New file.
39261
39262         * modules/uniconv/u8-strconv-to-locale: New file.
39263         * lib/uniconv/u8-strconv-to-locale.c: New file.
39264
39265         * modules/uniconv/u32-strconv-from-locale: New file.
39266         * lib/uniconv/u32-strconv-from-locale.c: New file.
39267
39268         * modules/uniconv/u16-strconv-from-locale: New file.
39269         * lib/uniconv/u16-strconv-from-locale.c: New file.
39270
39271         * modules/uniconv/u8-strconv-from-locale: New file.
39272         * lib/uniconv/u8-strconv-from-locale.c: New file.
39273
39274         * modules/uniconv/u32-strconv-to-enc: New file.
39275         * lib/uniconv/u32-strconv-to-enc.c: New file.
39276         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39277         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39278
39279         * modules/uniconv/u16-strconv-to-enc: New file.
39280         * lib/uniconv/u16-strconv-to-enc.c: New file.
39281         * lib/uniconv/u-strconv-to-enc.h: New file.
39282         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39283         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39284
39285         * modules/uniconv/u8-strconv-to-enc: New file.
39286         * lib/uniconv/u8-strconv-to-enc.c: New file.
39287         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39288         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39289
39290         * modules/uniconv/u32-strconv-from-enc: New file.
39291         * lib/uniconv/u32-strconv-from-enc.c: New file.
39292         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39293         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39294
39295         * modules/uniconv/u16-strconv-from-enc: New file.
39296         * lib/uniconv/u16-strconv-from-enc.c: New file.
39297         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39298         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39299
39300         * modules/uniconv/u8-strconv-from-enc: New file.
39301         * lib/uniconv/u8-strconv-from-enc.c: New file.
39302         * lib/uniconv/u-strconv-from-enc.h: New file.
39303         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39304         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39305
39306         * modules/uniconv/u32-conv-from-enc: New file.
39307         * lib/uniconv/u32-conv-from-enc.c: New file.
39308         * modules/uniconv/u32-conv-from-enc-tests: New file.
39309         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39310
39311         * modules/uniconv/u16-conv-from-enc: New file.
39312         * lib/uniconv/u16-conv-from-enc.c: New file.
39313         * lib/uniconv/u-conv-from-enc.h: New file.
39314         * modules/uniconv/u16-conv-from-enc-tests: New file.
39315         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39316
39317         * modules/uniconv/u8-conv-from-enc: New file.
39318         * lib/uniconv/u8-conv-from-enc.c: New file.
39319         * modules/uniconv/u8-conv-from-enc-tests: New file.
39320         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39321
39322         * modules/uniconv/base: New file.
39323         * lib/uniconv.h: New file.
39324
39325 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39326
39327         * doc/gnulib-tool.texi (Initial import): Update to match current
39328         behavior with strdup module.
39329         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39330         * lib/memmem.h: Remove; all uses removed.  This is now done
39331         by <string.h>.
39332         * lib/mempcpy.h: Likewise.
39333         * lib/memrchr.h: Likewise.
39334         * lib/stpcpy.h: Likewise.
39335         * lib/stpncpy.h: Likewise.
39336         * lib/strcase.h: Likewise.
39337         * lib/strchrnul.h: Likewise.
39338         * lib/strdup.h: Likewise.
39339         * lib/strndup.h: Likewise.
39340         * lib/strnlen.h: Likewise.
39341         * lib/strpbrk.h: Likewise.
39342         * lib/strsep.h: Likewise.
39343         * lib/strstr.h: Likewise.
39344         * lib/strtok_r.h: Likewise.
39345         * lib/string_.h: New file.
39346         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39347         Rely on <string.h> instead.
39348         * lib/canon-host.c: Likewise.
39349         * lib/chdir-long.c: Likewise.
39350         * lib/concatpath.c: Likewise.
39351         * lib/exclude.c: Likewise.
39352         * lib/fchdir.c: Likewise.
39353         * lib/getaddrinfo.c: Likewise.
39354         * lib/getcwd.c: Likewise.
39355         * lib/getsubopt.c: Likewise.
39356         * lib/glob.c: Likewise.
39357         * lib/hard-locale.c: Likewise.
39358         * lib/iconvme.c: Likewise.
39359         * lib/javacomp.c: Likewise.
39360         * lib/mempcpy.c: Likewise.
39361         * lib/memrchr.c: Likewise.
39362         * lib/regex_internal.h: Likewise.
39363         * lib/stpncpy.c: Likewise.
39364         * lib/strcasecmp.c: Likewise.
39365         * lib/strchrnul.c: Likewise.
39366         * lib/strdup.c: Likewise.
39367         * lib/striconv.c: Likewise.
39368         * lib/striconveh.c: Likewise.
39369         * lib/striconveha.c: Likewise.
39370         * lib/strncasecmp.c: Likewise.
39371         * lib/strndup.c: Likewise.
39372         * lib/strnlen.c: Likewise.
39373         * lib/strsep.c: Likewise.
39374         * lib/strstr.c: Likewise.
39375         * lib/strtok_r.c: Likewise.
39376         * lib/userspec.c: Likewise.
39377         * lib/w32spawn.h: Likewise.
39378         * lib/xstrndup.c: Likewise.
39379         * lib/mountlist.c (strstr): Remove decl.
39380         * m4/string_h.m4: New file.
39381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39382         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39383         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39384         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39385         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39386         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39387         Set REPLACE_STRCASECMP if necessary.
39388         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39389         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39390         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39391         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39392         HAVE_DECL_STRDUP if necessary.
39393         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39394         since gl_FUNC_STRNDUP does that now.
39395         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39396         Check for decl here...
39397         (gl_PREREQ_STRNLEN): ... not here.
39398         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39399         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39400         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39401         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39402         necessary.
39403         * modules/string: New file.
39404         * modules/memmem (Files): Remove special-purpose include file.
39405         (Depends-on): Add string.
39406         (Include): Include <string.h>, not the removed file.
39407         * modules/mempcpy: Likewise.
39408         * modules/memrchr: Likewise.
39409         * modules/stpcpy: Likewise.
39410         * modules/stpncpy: Likewise.
39411         * modules/strcase: Likewise.
39412         * modules/strchrnul: Likewise.
39413         * modules/strdup: Likewise.
39414         * modules/strndup: Likewise.
39415         * modules/strnlen: Likewise.
39416         * modules/strpbrk: Likewise.
39417         * modules/strsep: Likewise.
39418         * modules/strstr: Likewise.
39419         * modules/strtok_r: Likewise.
39420         * tests/test-dirname.c: Don't include "strdup.h", since
39421         <string.h> now suffices.
39422         * tests/test-memmem.c: Don't include "memmem.h", since
39423         <string.h> now suffices.
39424
39425 2007-01-25  Bruno Haible  <bruno@clisp.org>
39426
39427         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39428         *resultp is 0.
39429
39430         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39431         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39432         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39433         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39434
39435         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39436         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39437         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39438         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39439         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39440         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39441
39442 2007-01-24  Bruno Haible  <bruno@clisp.org>
39443
39444         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39445         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39446         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39447         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39448         gl_FUNC_FTS_CORE.
39449         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39450         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39451         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39452         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39453         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39454         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39455         gl_FUNC_FCHOWNAT.
39456         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39457         gl_FUNC_STRFTIME.
39458         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39459         Reported by Ralf Wildenhues.
39460
39461 2007-01-24  Bruno Haible  <bruno@clisp.org>
39462
39463         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39464         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39465         gl_GETADDRINFO.
39466         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39467         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39468         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39469
39470 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39471
39472         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39473         Don't use 'exit'; just return from 'main'.
39474         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39475
39476         * lib/fnmatch_.h: Readjust white space and comments to match
39477         glibc, to avoid spurious diffs.
39478
39479 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39480
39481         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39482         2004-12-01 change by Jakub Jelinek, since this code won't compile
39483         if !LIBC.  Problem reported by Bob Proulx.
39484
39485 2007-01-23  Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/striconveh.c: Include c-strcaseeq.h.
39488         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39489         * modules/striconveh (Depends-on): Add c-strcaseeq.
39490
39491 2007-01-23  Bruno Haible  <bruno@clisp.org>
39492
39493         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39494
39495         * modules/c-strcaseeq: New file.
39496         * lib/c-strcaseeq.h: New file.
39497
39498         * modules/streq: New file.
39499         * lib/streq.h: New file.
39500
39501 2007-01-23  Bruno Haible  <bruno@clisp.org>
39502
39503         * modules/striconveha-tests: New file.
39504         * tests/test-striconveha.c: New file.
39505
39506         * lib/striconveha.h: Include <stdbool.h>.
39507         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39508         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39509         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39510         (mem_iconveha): New function.
39511         (str_iconveha_notranslit): Renamed from str_iconveha.
39512         (str_iconveha): New function.
39513         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39514         c-strcase.
39515
39516 2007-01-23  Bruno Haible  <bruno@clisp.org>
39517
39518         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39519         encodings without forgiving before trying any encoding with handler.
39520         (str_iconveha): Try all encodings without forgiving before trying any
39521         encoding with handler.
39522
39523 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39524
39525         Import the following changes from libc.
39526
39527         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39528
39529         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39530
39531         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39532
39533         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39534         normal_bracket label.
39535
39536         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39537
39538         [BZ #361]
39539         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39540         to normal_bracket after fetching the next character.
39541
39542 2007-01-22  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39545         argument.
39546         * lib/striconveh.c (iconv_carefully_1): New function.
39547         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39548         argument.
39549         (str_cd_iconveh): Update.
39550         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39551         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39552         * tests/test-striconveh.c (MAGIC): New macro.
39553         (new_offsets): New function.
39554         (main): Test call with and without offsets.
39555
39556 2007-01-22  Bruno Haible  <bruno@clisp.org>
39557
39558         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39559         * modules/sys_select (Makefile.am): Likewise.
39560         * modules/sys_socket (Makefile.am): Likewise.
39561         * modules/sys_time (Makefile.am): Likewise.
39562
39563 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39564
39565         * modules/gettimeofday (License): Change from GPL to LGPL, since
39566         gettimeofday is a library function.
39567
39568 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39569
39570         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39571
39572 2007-01-21  Bruno Haible  <bruno@clisp.org>
39573
39574         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39575
39576 2007-01-21  Bruno Haible  <bruno@clisp.org>
39577
39578         * modules/striconveha: New file.
39579         * lib/striconveha.h: New file.
39580         * lib/striconveha.c: New file.
39581         * MODULES.html.sh (Internationalization functions): Add striconveha.
39582         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39583         string.
39584         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39585
39586 2007-01-21  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39589         * lib/striconveh.c (str_iconveh): Likewise.
39590
39591 2007-01-21  Bruno Haible  <bruno@clisp.org>
39592
39593         * lib/striconveh.h (mem_iconveh): New declaration.
39594         * lib/striconveh.c (mem_iconveh): New function.
39595         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39596
39597 2007-01-21  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39600
39601         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39602         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39603         original result buffer.
39604         (str_cd_iconveh): Update.
39605         * tests/test-striconveh.c (main): Update.
39606
39607         * lib/striconv.h (mem_cd_iconv): Change specification.
39608         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39609         result buffer.
39610         (str_cd_iconv): Update.
39611         * tests/test-striconv.c (main): Update.
39612
39613 2007-01-21  Bruno Haible  <bruno@clisp.org>
39614
39615         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39616
39617 2007-01-20  Jim Meyering  <jim@meyering.net>
39618
39619         * lib/userspec.c (parse_with_separator): If a user or group string
39620         starts with "+", skip the corresponding name-to-ID look-up, since
39621         such a look-up must fail: user and group names may not include "+".
39622
39623 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39624
39625         * lib/poll.c: Include sys/time.h and time.h unconditionally,
39626         since we now assume the sys_time module.
39627         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
39628         check for sys/time.h; no longer needed.
39629         * modules/poll (Depends-on): Depend on sys_time.
39630
39631 2007-01-18  Bruno Haible  <bruno@clisp.org>
39632
39633         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
39634         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39635
39636         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
39637         gettimeofday.
39638
39639         * tests/test-gettimeofday.c: Include <time.h>.
39640         (dummy): Remove variable.
39641
39642         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
39643         gl_HEADER_SYS_TIME_H.
39644         (gl_HEADER_SYS_TIME_H): New macro.
39645
39646         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
39647         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
39649         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
39650         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
39652         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
39653         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39654         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
39655         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
39656         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39657
39658         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
39659         last change; it caused a compilation error when cross-compiling to
39660         Cygwin.
39661
39662 2007-01-18  Jim Meyering  <jim@meyering.net>
39663
39664         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
39665         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
39666         than the race-prone "test -d sys || mkdir sys".
39667         (configure.ac): Use AC_PROG_MKDIR_P.
39668         * modules/sys_select: Likewise.
39669         * modules/sys_socket: Likewise.
39670         * modules/sys_time: Likewise.
39671
39672 2007-01-18  Eric Blake  <ebb9@byu.net>
39673
39674         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
39675         replace gettimeofday.
39676         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
39677         name, to avoid infinite recursion.
39678
39679 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
39680
39681         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
39682         module sys_time.
39683         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
39684         assume timespec.h defines struct timeval.
39685         * lib/settime.c: Likewise.
39686         * lib/utimens.c: Likewise.
39687         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
39688         since we now assume the gettimeofday module.
39689         * lib/tempname.c (__gen_tempname): Likewise.
39690         * lib/gettimeofday.h: Remove.
39691         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
39692         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
39693         Include <time.h>, for 'time()'.
39694         (localtime_buffer_addr): Also use this workaround if
39695         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
39696         to simplify the uses.  All uses changed.
39697         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
39698         that #undef is inside {}, and 'const' follows type name consistently.
39699         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
39700         (gettimeofday): Do not use the maximum possible value for
39701         tv->tv_usec, since that might break usages other than ls.c.
39702         Instead, we'll leave ls.c alone.  This undoes today's patch
39703         by Bruno.  Add a compile-time warning for 1s-clock resolution;
39704         we've never observed the problem but might as well keep the
39705         canary.
39706         * lib/nanosleep.c: Include timespec.h first, for interface check.
39707         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
39708         now assume the sys_time module.
39709         * lib/tempname.c: Likewise.
39710         * lib/timespec.h: Likewise.
39711         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
39712         needed.
39713         * lib/strftime.c: Likewise.
39714         * lib/timespec.h: Likewise.
39715         * lib/posixtm.c: Include posixtm.h first, for interface check.
39716         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
39717         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
39718         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
39719         * lib/sys_time_.h: New file.
39720         * lib/timespec.h (struct timespec): Use long int, not long.
39721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39722         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
39723         Remove obsolescent call to AC_HEADER_TIME.
39724         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39726         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
39727         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
39728         Likewise.
39729         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
39730         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
39731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
39732         into the sys_time module.  Check for gettimeofday just once.
39733         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
39734         for gettimeofday signature to just check the signature.  Merely
39735         compile it, since linking doesn't test signature.  Improve test for
39736         whether gettimeofday.o is actually needed.
39737         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
39738         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
39739         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
39740         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39741         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
39742         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
39743         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
39744         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
39745         than worrying about sys/time.h.
39746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39747         Don't bother worrying about TIME_WITH_SYS_TIME.
39748         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
39749         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
39750         * m4/sys_time_h.m4: New file.
39751         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
39752         Don't include sys/time.h.  Return from main rather than exiting.
39753         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
39754         all uses changed.
39755         * modules/gethrxtime (Depends-on): Add sys_time.
39756         * modules/gettime (Depends-on): Likewise.
39757         * modules/gettimeofday (Depends-on): Likewise.
39758         * modules/nanosleep (Depends-on): Likewise.
39759         * modules/settime (Depends-on): Likewise.
39760         * modules/tempname (Depends-on): Likewise.
39761         * modules/utimens (Depends-on): Likewise.
39762         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
39763         (Include:) Change back to <sys/time.h>.
39764         (Maintainer:) Add self.
39765         * modules/sys_time: New file.
39766         * modules/tempname (Depends-on): Add gettimeofday.
39767         * tests/test-gettimeofday.c: Include <sys/time.h>
39768         rather than gettimeofday.h.
39769
39770 2007-01-17  Bruno Haible  <bruno@clisp.org>
39771
39772         * gnulib-tool (func_get_license): Revert last patch. Instead, let
39773         the license default to GPL.
39774         (func_create_testdir): Don't complain if a module is LGPL and its
39775         tests module depends on GPLed modules.
39776
39777 2007-01-17  Bruno Haible  <bruno@clisp.org>
39778
39779         * lib/gettimeofday.c (gettimeofday): Add code for the case
39780         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
39781         maximum possible value for tv->tv_usec, rather than the minimum one.
39782
39783 2005-10-08  Martin Lambers  <marlam@marlam.de>
39784 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
39785 2007-01-16  Bruno Haible  <bruno@clisp.org>
39786
39787         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
39788         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
39789         gl_FUNC_GETTIMEOFDAY.
39790         (Include): Add gettimeofday.h.
39791         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
39792         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
39793         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
39794         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
39795         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
39796         * lib/gettimeofday.h: New file.
39797         * lib/gettimeofday.c: Include <sys/timeb.h>.
39798         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
39799         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
39800         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
39801         fall back on time().
39802
39803         * tests/test-gettimeofday.c: New file.
39804         * modules/gettimeofday-tests: New file.
39805
39806 2007-01-16  Eric Blake  <ebb9@byu.net>
39807
39808         * modules/fnmatch (Depends-on): Depend on wchar.
39809         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
39810         * m4/fnmatch.m4: Likewise.
39811         * modules/mbchar (Makefile.am): Assume <wchar.h>.
39812         * m4/mbchar.m4: Likewise.
39813         * modules/mbswidth (Depends-on): Depend on wchar.
39814         * lib/mbswidth.c: Assume <wchar.h>.
39815         * m4/mbswidth.m4: Likewise.
39816         * modules/quotearg (Depends-on): Depend on wchar.
39817         * lib/quotearg.c: Assume <wchar.h>.
39818         * m4/quotearg.m4: Likewise.
39819         * modules/regex (Depends-on): Depend on wchar.
39820         * lib/regex_internal.h: Assume <wchar.h>.
39821         * m4/regex.m4: Likewise.
39822         * modules/stdint (Depends-on): Depend on wchar.
39823         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
39824         * m4/stdint.m4: Likewise.
39825         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
39826         * modules/strftime (Depends-on): Depend on wchar.
39827         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
39828         * modules/strtol (Depends-on): Depend on wchar.
39829         * lib/strtol.c: Assume <wchar.h>.
39830         * modules/wcwidth (Depends-on): Depend on wchar.
39831         * lib/wcwidth.h: Assume <wchar.h>.
39832         * m4/wcwidth.m4: Likewise.
39833
39834 2007-01-16  Bruno Haible  <bruno@clisp.org>
39835
39836         * modules/csharpexec-script: New, created from...
39837         * modules/csharpexec: ... this.
39838
39839 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
39840
39841         * modules/javaexec-script: New, created from...
39842         * modules/javaexec: ... this.
39843
39844 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39845
39846         * modules/poll (Dependencies): Add sys_select.
39847
39848 2007-01-15  Jim Meyering  <jim@meyering.net>
39849
39850         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
39851         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
39852         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
39853         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
39854
39855 2007-01-15  Bruno Haible  <bruno@clisp.org>
39856
39857         * modules/striconveh: New file.
39858         * lib/striconveh.h: New file.
39859         * lib/striconveh.c: New file.
39860         * MODULES.html.sh (Internationalization functions): Add striconveh.
39861
39862         * modules/striconveh-tests: New file.
39863         * tests/test-striconveh.c: New file.
39864
39865 2007-01-15  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
39868         not from GNU libiconv or GNU libc.
39869
39870 2007-01-15  Bruno Haible  <bruno@clisp.org>
39871
39872         * doc/gnulib-intro.texi (Copyright): Explain the different license
39873         terms for module descriptions, autoconf macros, tests, documentation.
39874
39875 2007-01-14  Bruno Haible  <bruno@clisp.org>
39876
39877         * modules/striconv-tests: New file.
39878         * tests/test-striconv.c: New file.
39879
39880 2007-01-14  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/iconv-tests: New file.
39883         * tests/test-iconv.c: New file.
39884
39885 2007-01-14  Bruno Haible  <bruno@clisp.org>
39886
39887         * gnulib-tool (func_get_license): For test modules, use the license of
39888         the main module.
39889
39890 2007-01-14  Bruno Haible  <bruno@clisp.org>
39891
39892         * modules/iconv (Include): Clarify that <iconv.h> can only be included
39893         if iconv is found to exist.
39894
39895 2007-01-14  Bruno Haible  <bruno@clisp.org>
39896
39897         * modules/c-ctype-tests: New file.
39898         * tests/test-c-ctype.c: New file.
39899
39900 2007-01-14  Bruno Haible  <bruno@clisp.org>
39901
39902         * modules/binary-io-tests: New file.
39903         * tests/test-binary-io.sh: New file.
39904         * tests/test-binary-io.c: New file.
39905
39906 2007-01-14  Bruno Haible  <bruno@clisp.org>
39907
39908         * modules/array-oset-tests: New file.
39909         * tests/test-array_oset.c: New file.
39910
39911 2007-01-14  Bruno Haible  <bruno@clisp.org>
39912
39913         * modules/array-list-tests: New file.
39914         * tests/test-array_list.c: New file.
39915
39916 2007-01-14  Bruno Haible  <bruno@clisp.org>
39917
39918         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
39919         and make.
39920         Reported by Simon Josefsson in
39921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
39922
39923 2007-01-14  Bruno Haible  <bruno@clisp.org>
39924
39925         * modules/allocsa-tests: New file.
39926         * tests/test-allocsa.c: New file.
39927
39928 2007-01-14  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/fchdir (Depends-on): Add absolute-header.
39931         * modules/unistd (Depends-on): Likewise.
39932
39933 2006-12-30  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/fchdir: New file.
39936         * modules/unistd (Files): Add lib/unistd_.h.
39937         (Makefile.am): Generate unistd.h from unistd_.h.
39938         * lib/fchdir.c: New file.
39939         * lib/dirent_.h: New file.
39940         * lib/unistd_.h: New file.
39941         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
39942         * m4/fchdir.m4: New file.
39943         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
39944         (gl_HEADER_UNISTD): Invoke it.
39945         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
39946         function.
39947         * lib/backupfile.c (opendir, closedir): Undefine.
39948         * lib/chown.c (open, close): Undefine.
39949         * lib/clean-temp.c (open, close): Undefine.
39950         * lib/copy-file.c (open, close): Undefine.
39951         * lib/execute.c (open, close): Undefine.
39952         * lib/fsusage.c (open, close): Undefine.
39953         * lib/gc-gnulib.c (open, close): Undefine.
39954         * lib/getcwd.c (opendir, closedir): Undefine.
39955         * lib/glob.c (opendir, closedir): Undefine.
39956         * lib/javacomp.c (open, close): Undefine.
39957         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
39958         * lib/openat-proc.c (open, close): Undefine.
39959         * lib/pagealign_alloc.c (open, close): Undefine.
39960         * lib/pipe.c (open, close): Undefine.
39961         * lib/progreloc.c (open, close): Undefine.
39962         * lib/savedir.c (opendir, closedir): Undefine.
39963         * lib/utime.c (open, close): Undefine.
39964         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
39965
39966 2007-01-10  Bruno Haible  <bruno@clisp.org>
39967
39968         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
39969
39970 2007-01-12  Eric Blake  <ebb9@byu.net>
39971
39972         Provide a robust <wchar.h>.  Further simplifications are now
39973         possible in other modules, but not included here.
39974         * modules/wchar: New module.
39975         * m4/wchar.m4: New file.
39976         * lib/wchar_.h: Likewise.
39977         * modules/mbchar (Depends-on): Depend on wchar, as the first use
39978         of the new module.
39979         * MODULES.html.sh (Extended multibyte and wide character utilities):
39980         New section.
39981
39982 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
39983
39984         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
39985         to a reasonable default for memory allocation.
39986         (xreadlink): Don't allocate a huge buffer, to work around a buggy
39987         file system that reports garbage st_size values for symlinks.
39988         Problem reported by Liyang Hu.
39989
39990 2007-01-11  Simon Josefsson  <simon@josefsson.org>
39991
39992         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
39993         Emacs .#* auto-save files).
39994
39995 2007-01-11  Bruno Haible  <bruno@clisp.org>
39996
39997         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
39998         directory.
39999
40000 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40001
40002         Use @...@ consistently in lib/wctype_.h.
40003         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40004         on it being set to 1 or 0.
40005         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40006         go back to AC_SUBSTing it.
40007         * modules/wctype (Makefile.am): Undo previous change.
40008
40009 2007-01-10  Eric Blake  <ebb9@byu.net>
40010
40011         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40012         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40013         * modules/wctype (Makefile.am): Likewise.
40014         Reported by Chris McGuire.
40015
40016 2007-01-10  Jim Meyering  <jim@meyering.net>
40017
40018         fts.c: a small readability/maintainability improvement
40019         * lib/fts.c (fts_read): Make this code slightly more readable and
40020         maintainable by hoisting the "sp->fts_cur = p" assignments to
40021         immediately follow the statements that set P.  Derived from
40022         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40023
40024 2007-01-10  Eric Blake  <ebb9@byu.net>
40025
40026         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40027         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40028         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40029         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40030         Reported by Chris McGuire.
40031
40032 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40033
40034         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40035         in sed script.
40036
40037 2007-01-09  Bruno Haible  <bruno@clisp.org>
40038
40039         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40040         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40041         variables.
40042         (func_module): Use them.
40043
40044 2007-01-09  Bruno Haible  <bruno@clisp.org>
40045
40046         * modules/unistr/base: New file.
40047         * lib/unistr.h: New file.
40048
40049         * modules/unistr/u8-to-u16: New file.
40050         * lib/unistr/u8-to-u16.c: New file.
40051
40052         * modules/unistr/u8-to-u32: New file.
40053         * lib/unistr/u8-to-u32.c: New file.
40054
40055         * modules/unistr/u16-to-u8: New file.
40056         * lib/unistr/u16-to-u8.c: New file.
40057
40058         * modules/unistr/u16-to-u32: New file.
40059         * lib/unistr/u16-to-u32.c: New file.
40060
40061         * modules/unistr/u32-to-u8: New file.
40062         * lib/unistr/u32-to-u8.c: New file.
40063
40064         * modules/unistr/u32-to-u16: New file.
40065         * lib/unistr/u32-to-u16.c: New file.
40066
40067         * modules/unistr/u8-check: New file.
40068         * modules/unistr/u16-check: New file.
40069         * modules/unistr/u32-check: New file.
40070         * lib/unistr/u8-check.c: New file.
40071         * lib/unistr/u16-check.c: New file.
40072         * lib/unistr/u32-check.c: New file.
40073
40074         * modules/unistr/u8-chr: New file.
40075         * modules/unistr/u16-chr: New file.
40076         * modules/unistr/u32-chr: New file.
40077         * lib/unistr/u8-chr.c: New file.
40078         * lib/unistr/u16-chr.c: New file.
40079         * lib/unistr/u32-chr.c: New file.
40080
40081         * modules/unistr/u8-cmp: New file.
40082         * modules/unistr/u16-cmp: New file.
40083         * modules/unistr/u32-cmp: New file.
40084         * lib/unistr/u8-cmp.c: New file.
40085         * lib/unistr/u16-cmp.c: New file.
40086         * lib/unistr/u32-cmp.c: New file.
40087
40088         * modules/unistr/u8-cpy: New file.
40089         * modules/unistr/u16-cpy: New file.
40090         * modules/unistr/u32-cpy: New file.
40091         * lib/unistr/u8-cpy.c: New file.
40092         * lib/unistr/u16-cpy.c: New file.
40093         * lib/unistr/u32-cpy.c: New file.
40094         * lib/unistr/u-cpy.h: New file.
40095
40096         * modules/unistr/u8-cpy-alloc: New file.
40097         * modules/unistr/u16-cpy-alloc: New file.
40098         * modules/unistr/u32-cpy-alloc: New file.
40099         * lib/unistr/u8-cpy-alloc.c: New file.
40100         * lib/unistr/u16-cpy-alloc.c: New file.
40101         * lib/unistr/u32-cpy-alloc.c: New file.
40102         * lib/unistr/u-cpy-alloc.h: New file.
40103
40104         * modules/unistr/u8-endswith: New file.
40105         * modules/unistr/u16-endswith: New file.
40106         * modules/unistr/u32-endswith: New file.
40107         * lib/unistr/u8-endswith.c: New file.
40108         * lib/unistr/u16-endswith.c: New file.
40109         * lib/unistr/u32-endswith.c: New file.
40110         * lib/unistr/u-endswith.h: New file.
40111
40112         * modules/unistr/u8-mblen: New file.
40113         * modules/unistr/u16-mblen: New file.
40114         * modules/unistr/u32-mblen: New file.
40115         * lib/unistr/u8-mblen.c: New file.
40116         * lib/unistr/u16-mblen.c: New file.
40117         * lib/unistr/u32-mblen.c: New file.
40118
40119         * modules/unistr/u8-mbtouc: New file.
40120         * modules/unistr/u16-mbtouc: New file.
40121         * modules/unistr/u32-mbtouc: New file.
40122         * lib/unistr/u8-mbtouc.c: New file.
40123         * lib/unistr/u16-mbtouc.c: New file.
40124         * lib/unistr/u32-mbtouc.c: New file.
40125
40126         * modules/unistr/u8-mbtouc-safe: New file.
40127         * modules/unistr/u16-mbtouc-safe: New file.
40128         * modules/unistr/u32-mbtouc-safe: New file.
40129         * lib/unistr/u8-mbtouc-safe.c: New file.
40130         * lib/unistr/u16-mbtouc-safe.c: New file.
40131         * lib/unistr/u32-mbtouc-safe.c: New file.
40132
40133         * modules/unistr/u8-move: New file.
40134         * modules/unistr/u16-move: New file.
40135         * modules/unistr/u32-move: New file.
40136         * lib/unistr/u8-move.c: New file.
40137         * lib/unistr/u16-move.c: New file.
40138         * lib/unistr/u32-move.c: New file.
40139         * lib/unistr/u-move.h: New file.
40140
40141         * modules/unistr/u8-next: New file.
40142         * modules/unistr/u16-next: New file.
40143         * modules/unistr/u32-next: New file.
40144         * lib/unistr/u8-next.c: New file.
40145         * lib/unistr/u16-next.c: New file.
40146         * lib/unistr/u32-next.c: New file.
40147
40148         * modules/unistr/u8-prev: New file.
40149         * modules/unistr/u16-prev: New file.
40150         * modules/unistr/u32-prev: New file.
40151         * lib/unistr/u8-prev.c: New file.
40152         * lib/unistr/u16-prev.c: New file.
40153         * lib/unistr/u32-prev.c: New file.
40154
40155         * modules/unistr/u8-set: New file.
40156         * modules/unistr/u16-set: New file.
40157         * modules/unistr/u32-set: New file.
40158         * lib/unistr/u8-set.c: New file.
40159         * lib/unistr/u16-set.c: New file.
40160         * lib/unistr/u32-set.c: New file.
40161         * lib/unistr/u-set.h: New file.
40162
40163         * modules/unistr/u8-startswith: New file.
40164         * modules/unistr/u16-startswith: New file.
40165         * modules/unistr/u32-startswith: New file.
40166         * lib/unistr/u8-startswith.c: New file.
40167         * lib/unistr/u16-startswith.c: New file.
40168         * lib/unistr/u32-startswith.c: New file.
40169         * lib/unistr/u-startswith.h: New file.
40170
40171         * modules/unistr/u8-stpcpy: New file.
40172         * modules/unistr/u16-stpcpy: New file.
40173         * modules/unistr/u32-stpcpy: New file.
40174         * lib/unistr/u8-stpcpy.c: New file.
40175         * lib/unistr/u16-stpcpy.c: New file.
40176         * lib/unistr/u32-stpcpy.c: New file.
40177         * lib/unistr/u-stpcpy.h: New file.
40178
40179         * modules/unistr/u8-stpncpy: New file.
40180         * modules/unistr/u16-stpncpy: New file.
40181         * modules/unistr/u32-stpncpy: New file.
40182         * lib/unistr/u8-stpncpy.c: New file.
40183         * lib/unistr/u16-stpncpy.c: New file.
40184         * lib/unistr/u32-stpncpy.c: New file.
40185         * lib/unistr/u-stpncpy.h: New file.
40186
40187         * modules/unistr/u8-strcat: New file.
40188         * modules/unistr/u16-strcat: New file.
40189         * modules/unistr/u32-strcat: New file.
40190         * lib/unistr/u8-strcat.c: New file.
40191         * lib/unistr/u16-strcat.c: New file.
40192         * lib/unistr/u32-strcat.c: New file.
40193         * lib/unistr/u-strcat.h: New file.
40194
40195         * modules/unistr/u8-strchr: New file.
40196         * modules/unistr/u16-strchr: New file.
40197         * modules/unistr/u32-strchr: New file.
40198         * lib/unistr/u8-strchr.c: New file.
40199         * lib/unistr/u16-strchr.c: New file.
40200         * lib/unistr/u32-strchr.c: New file.
40201
40202         * modules/unistr/u8-strcmp: New file.
40203         * modules/unistr/u16-strcmp: New file.
40204         * modules/unistr/u32-strcmp: New file.
40205         * lib/unistr/u8-strcmp.c: New file.
40206         * lib/unistr/u16-strcmp.c: New file.
40207         * lib/unistr/u32-strcmp.c: New file.
40208
40209         * modules/unistr/u8-strcpy: New file.
40210         * modules/unistr/u16-strcpy: New file.
40211         * modules/unistr/u32-strcpy: New file.
40212         * lib/unistr/u8-strcpy.c: New file.
40213         * lib/unistr/u16-strcpy.c: New file.
40214         * lib/unistr/u32-strcpy.c: New file.
40215         * lib/unistr/u-strcpy.h: New file.
40216
40217         * modules/unistr/u8-strcspn: New file.
40218         * modules/unistr/u16-strcspn: New file.
40219         * modules/unistr/u32-strcspn: New file.
40220         * lib/unistr/u8-strcspn.c: New file.
40221         * lib/unistr/u16-strcspn.c: New file.
40222         * lib/unistr/u32-strcspn.c: New file.
40223         * lib/unistr/u-strcspn.h: New file.
40224
40225         * modules/unistr/u8-strdup: New file.
40226         * modules/unistr/u16-strdup: New file.
40227         * modules/unistr/u32-strdup: New file.
40228         * lib/unistr/u8-strdup.c: New file.
40229         * lib/unistr/u16-strdup.c: New file.
40230         * lib/unistr/u32-strdup.c: New file.
40231         * lib/unistr/u-strdup.h: New file.
40232
40233         * modules/unistr/u8-strlen: New file.
40234         * modules/unistr/u16-strlen: New file.
40235         * modules/unistr/u32-strlen: New file.
40236         * lib/unistr/u8-strlen.c: New file.
40237         * lib/unistr/u16-strlen.c: New file.
40238         * lib/unistr/u32-strlen.c: New file.
40239         * lib/unistr/u-strlen.h: New file.
40240
40241         * modules/unistr/u8-strmblen: New file.
40242         * modules/unistr/u16-strmblen: New file.
40243         * modules/unistr/u32-strmblen: New file.
40244         * lib/unistr/u8-strmblen.c: New file.
40245         * lib/unistr/u16-strmblen.c: New file.
40246         * lib/unistr/u32-strmblen.c: New file.
40247
40248         * modules/unistr/u8-strmbtouc: New file.
40249         * modules/unistr/u16-strmbtouc: New file.
40250         * modules/unistr/u32-strmbtouc: New file.
40251         * lib/unistr/u8-strmbtouc.c: New file.
40252         * lib/unistr/u16-strmbtouc.c: New file.
40253         * lib/unistr/u32-strmbtouc.c: New file.
40254
40255         * modules/unistr/u8-strncat: New file.
40256         * modules/unistr/u16-strncat: New file.
40257         * modules/unistr/u32-strncat: New file.
40258         * lib/unistr/u8-strncat.c: New file.
40259         * lib/unistr/u16-strncat.c: New file.
40260         * lib/unistr/u32-strncat.c: New file.
40261         * lib/unistr/u-strncat.h: New file.
40262
40263         * modules/unistr/u8-strncmp: New file.
40264         * modules/unistr/u16-strncmp: New file.
40265         * modules/unistr/u32-strncmp: New file.
40266         * lib/unistr/u8-strncmp.c: New file.
40267         * lib/unistr/u16-strncmp.c: New file.
40268         * lib/unistr/u32-strncmp.c: New file.
40269
40270         * modules/unistr/u8-strncpy: New file.
40271         * modules/unistr/u16-strncpy: New file.
40272         * modules/unistr/u32-strncpy: New file.
40273         * lib/unistr/u8-strncpy.c: New file.
40274         * lib/unistr/u16-strncpy.c: New file.
40275         * lib/unistr/u32-strncpy.c: New file.
40276         * lib/unistr/u-strncpy.h: New file.
40277
40278         * modules/unistr/u8-strnlen: New file.
40279         * modules/unistr/u16-strnlen: New file.
40280         * modules/unistr/u32-strnlen: New file.
40281         * lib/unistr/u8-strnlen.c: New file.
40282         * lib/unistr/u16-strnlen.c: New file.
40283         * lib/unistr/u32-strnlen.c: New file.
40284         * lib/unistr/u-strnlen.h: New file.
40285
40286         * modules/unistr/u8-strpbrk: New file.
40287         * modules/unistr/u16-strpbrk: New file.
40288         * modules/unistr/u32-strpbrk: New file.
40289         * lib/unistr/u8-strpbrk.c: New file.
40290         * lib/unistr/u16-strpbrk.c: New file.
40291         * lib/unistr/u32-strpbrk.c: New file.
40292         * lib/unistr/u-strpbrk.h: New file.
40293
40294         * modules/unistr/u8-strrchr: New file.
40295         * modules/unistr/u16-strrchr: New file.
40296         * modules/unistr/u32-strrchr: New file.
40297         * lib/unistr/u8-strrchr.c: New file.
40298         * lib/unistr/u16-strrchr.c: New file.
40299         * lib/unistr/u32-strrchr.c: New file.
40300
40301         * modules/unistr/u8-strspn: New file.
40302         * modules/unistr/u16-strspn: New file.
40303         * modules/unistr/u32-strspn: New file.
40304         * lib/unistr/u8-strspn.c: New file.
40305         * lib/unistr/u16-strspn.c: New file.
40306         * lib/unistr/u32-strspn.c: New file.
40307         * lib/unistr/u-strspn.h: New file.
40308
40309         * modules/unistr/u8-strstr: New file.
40310         * modules/unistr/u16-strstr: New file.
40311         * modules/unistr/u32-strstr: New file.
40312         * lib/unistr/u8-strstr.c: New file.
40313         * lib/unistr/u16-strstr.c: New file.
40314         * lib/unistr/u32-strstr.c: New file.
40315         * lib/unistr/u-strstr.h: New file.
40316
40317         * modules/unistr/u8-strtok: New file.
40318         * modules/unistr/u16-strtok: New file.
40319         * modules/unistr/u32-strtok: New file.
40320         * lib/unistr/u8-strtok.c: New file.
40321         * lib/unistr/u16-strtok.c: New file.
40322         * lib/unistr/u32-strtok.c: New file.
40323         * lib/unistr/u-strtok.h: New file.
40324
40325         * modules/unistr/u8-uctomb: New file.
40326         * modules/unistr/u16-uctomb: New file.
40327         * modules/unistr/u32-uctomb: New file.
40328         * lib/unistr/u8-uctomb.c: New file.
40329         * lib/unistr/u16-uctomb.c: New file.
40330         * lib/unistr/u32-uctomb.c: New file.
40331
40332         * MODULES.html.sh (Unicode string functions): Add the new modules.
40333
40334 2007-01-08  Bruno Haible  <bruno@clisp.org>
40335
40336         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40337         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40338         subdirectories.
40339
40340 2007-01-08  Karl Berry  <karl@gnu.org>
40341
40342         * doc/error.texi: mention that main() fns must set program_name
40343         when progname is used.
40344
40345 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40346
40347         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40348         WCTYPE_H is empty, for the benefit of builds from non-distclean
40349         directories.  Problem reported by Eric Blake in
40350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40351
40352 2007-01-08  Bruno Haible  <bruno@clisp.org>
40353
40354         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40355         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40356         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40357         PROVIDE_CANONICALIZE_FILENAME_MODE.
40358         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40359
40360 2007-01-08  Bruno Haible  <bruno@clisp.org>
40361
40362         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40363         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40364         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40365         * lib/fts.c: Likewise.
40366         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40367
40368 2006-12-25  Bruno Haible  <bruno@clisp.org>
40369
40370         * modules/utf8-ucs4-safe: New file.
40371         * lib/utf8-ucs4-safe.h: New file.
40372         * lib/unistr/utf8-ucs4-safe.c: New file.
40373
40374         * modules/utf16-ucs4-safe: New file.
40375         * lib/utf16-ucs4-safe.h: New file.
40376         * lib/unistr/utf16-ucs4-safe.c: New file.
40377
40378         * MODULES.html.sh (Unicode string functions): Add the new modules.
40379
40380 2007-01-08  Bruno Haible  <bruno@clisp.org>
40381
40382         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40383         (Depends-on): Add unitypes.
40384         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40385         (u8_mbtouc_aux): Move out to separate file.
40386         (u8_mbtouc): Use ucs4_t, uint8_t types.
40387         * lib/unistr/utf8-ucs4.c: New file.
40388
40389         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40390         (Depends-on): Add unitypes.
40391         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40392         (u16_mbtouc_aux): Move out to separate file.
40393         (u16_mbtouc): Use ucs4_t, uint16_t types.
40394         * lib/unistr/utf16-ucs4.c: New file.
40395
40396         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40397         (Depends-on): Add unitypes.
40398         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40399         (u8_uctomb_aux): Move out to separate file.
40400         (u8_uctomb): Use ucs4_t, uint8_t types.
40401         * lib/unistr/ucs4-utf8.c: New file.
40402
40403         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40404         (Depends-on): Add unitypes.
40405         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40406         (u16_uctomb_aux): Move out to separate file.
40407         (u16_uctomb): Use ucs4_t, uint16_t types.
40408         * lib/unistr/ucs4-utf16.c: New file.
40409
40410 2006-12-25  Bruno Haible  <bruno@clisp.org>
40411
40412         * modules/unitypes: New file.
40413         * lib/unitypes.h: New file.
40414         * MODULES.html.sh (func_all_modules): New section "Unicode string
40415         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40416         this section. Add unitypes.
40417
40418 2007-01-08  Bruno Haible  <bruno@clisp.org>
40419
40420         Avoid variable names that conflict with those from libtool.
40421         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40422         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40423         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40424         library_names_spec to acl_library_names_spec, hardcode_* to
40425         acl_hardcode_*.
40426         Reported by Ralf Wildenhues.
40427
40428 2007-01-08  Bruno Haible  <bruno@clisp.org>
40429
40430         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40431         definition.
40432         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40433         definition.
40434         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40435         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40436         definition.
40437         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40438         definition.
40439         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40440         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40441         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40442         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40443         definition.
40444         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40445         definition.
40446         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40447         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40448         GC_USE_<algorithm>.
40449         * lib/gc-libgcrypt.c: Likewise.
40450         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40451         * modules/gc-arctwo (configure.ac): Likewise.
40452         * modules/gc-des (configure.ac): Likewise.
40453         * modules/gc-hmac-md5 (configure.ac): Likewise.
40454         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40455         * modules/gc-md2 (configure.ac): Likewise.
40456         * modules/gc-md4 (configure.ac): Likewise.
40457         * modules/gc-md5 (configure.ac): Likewise.
40458         * modules/gc-random (configure.ac): Likewise.
40459         * modules/gc-rijndael (configure.ac): Likewise.
40460         * modules/gc-sha1 (configure.ac): Likewise.
40461
40462 2007-01-08  Bruno Haible  <bruno@clisp.org>
40463
40464         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40465         macro definition.
40466         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40467         definition.
40468         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40469         definition.
40470         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40471         * modules/fcntl-safer (configure.ac): Likewise.
40472         * modules/fopen-safer (configure.ac): Likewise.
40473         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40474         GNULIB_FWRITEERROR macro definition.
40475
40476 2007-01-08  Bruno Haible  <bruno@clisp.org>
40477
40478         * m4/gnulib-common.m4: New file.
40479         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40480         (func_get_filelist): Add m4/gnulib-common.m4.
40481
40482 2007-01-08  Bruno Haible  <bruno@clisp.org>
40483
40484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40485         command.
40486
40487 2007-01-08  Jim Meyering  <jim@meyering.net>
40488
40489         Use a more robust test for a "can't happen" condition.
40490         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40491         narrowed the st_size value.  Presuming the "can't happen" condition
40492         is true, that narrowing could conceivably convert an invalid st_size
40493         value into a valid one.  Instead, use a change based on Matthew
40494         Woehlke's original patch.
40495
40496         Slight readability improvement: use an assert-like macro
40497         in place of literal "abort ()" uses.
40498         * lib/fts.c (fts_assert): Define.
40499         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40500         Use this macro instead of a bare 'abort'.
40501
40502 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40503
40504         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40505         simply work around them.
40506         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40507         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40508         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40509         declaring.
40510         Don't bother to define as macros, since the standard doesn't require it.
40511         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40512         longer worry about IRIX 5.3.
40513         (HAVE_WCTYPE_CTMP_BUG): Remove.
40514
40515 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40516
40517         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40518         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40519         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40520         Problems reported by Georg Schwarz for IRIX 5.3.
40521
40522         * gnulib-tool (autoconf_minversion): Take the maximum version number
40523         found, not the minimum.  Problem reported by James Youngman.
40524
40525 2007-01-03  Karl Berry  <karl@gnu.org>
40526
40527         * doc/error.texi: new file, explaining interaction with progname.
40528         * doc/gnulib.texi: include it.  Update copyright.
40529
40530 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40531
40532         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40533         AC_CANONICAL_HOST, to improve autobuild outputs.
40534
40535 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40536             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40537
40538         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40539         sockets, server sockets, and other file descriptors.  Count errors
40540         to compute the return value.  Reorder the code a bit to be easier
40541         to follow.  Don't set event bits that were not requested (except
40542         POLLERR and POLLHUP).
40543
40544 2007-01-01  Bruno Haible  <bruno@clisp.org>
40545
40546         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40547
40548 2007-01-03  Jim Meyering  <jim@meyering.net>
40549
40550         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40551
40552 2007-01-02  Bruno Haible  <bruno@clisp.org>
40553
40554         * modules/settime (Include): Require timespec.h.
40555         * modules/nanosleep (Include): Likewise.
40556
40557 2007-01-01  Bruno Haible  <bruno@clisp.org>
40558
40559         * gnulib-tool (func_emit_copyright_notice): Bump year.
40560         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40561
40562 2007-01-01  Bruno Haible  <bruno@clisp.org>
40563
40564         Improve support for OpenBSD.
40565         * build-aux/config.rpath (libname_spec): Export.
40566         (library_names_spec): New variable. Export.
40567         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40568         library_names_spec from the config.rpath output. Locate shared library
40569         through the name pattern in library_names_spec.
40570
40571 2007-01-01  Eric Blake  <ebb9@byu.net>
40572
40573         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40574
40575 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40578         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40579         assume the C locale, and avoid an "eval" that could cause trouble.
40580         Problem with SORT reported by Bob Proulx.
40581
40582         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40583         Define.  Trivial patch from Henning Nielsen Lund, originally
40584         sent to bug-grep@gnu.org today.
40585
40586 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40587
40588         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40589         struct stat.  Problem reported by Henning Nielsen Lund.
40590         * lib/acl.c: Include acl.h first, to check interface.  Don't
40591         bother to include sys/types.h and sys/stat.h again.
40592
40593 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         Import the following change from libc; problem reported by
40596         Sven Verdoolaege.
40597
40598         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40599
40600         [BZ #1373]
40601         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40602
40603 2006-12-28  Jim Meyering  <jim@meyering.net>
40604
40605         * build-aux/announce-gen: Do not assume that the package
40606         builds any of tar.gz, tar.bz2, and .xdelta files.
40607         Suggestion from Simon Josefsson.
40608
40609 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40610
40611         * modules/announce-gen: New file.
40612
40613 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40614
40615         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40616         handles its gotchas now.
40617         * lib/mbswidth.c: Likewise.
40618         * lib/wcwidth.h: Likewise.
40619         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
40620         and iswcntrl; the wctype module does this stuff now.
40621         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40623         * modules/mbchar (Depends-on): Add wctype.
40624         * modules/mbswidth (Depends-on): Likewise.
40625         * modules/wcwidth (Depends-on): Likewise.
40626
40627 2006-12-27  Eric Blake  <ebb9@byu.net>
40628
40629         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
40630         module uses more than what <wctype.h> is required to provide.
40631
40632 2006-12-26  Eric Blake  <ebb9@byu.net>
40633
40634         * gnulib-tool (sed_extract_prog): Avoid space-tab.
40635
40636 2006-12-26  Eric Blake  <ebb9@byu.net>
40637
40638         * modules/absolute-header: New module.
40639         * modules/fcntl (Depends-on): Depend on it.
40640         * modules/inttypes (Depends-on): Likewise.
40641         * modules/stdint (Depends-on): Likewise.
40642         * modules/sys_stat (Depends-on): Likewise.
40643         * modules/wctype (Depends-on): Likewise.
40644         * MODULES.html.sh (Support for building libraries and
40645         executables): Document it.
40646
40647 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40648
40649         * gnulib-tool (SED): Remove, undoing previous change.
40650         The problem was that it broke coreutils on Solaris, because
40651         "sed --posix" leaked into a makefile.
40652         (sed): New alias, if 'alias' and GNU sed.
40653
40654 2006-12-24  Jim Meyering  <jim@meyering.net>
40655
40656         Work around an fchownat bug in glibc-2.4:
40657         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
40658         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
40659         in spite of the -P option.
40660         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
40661         New macros.
40662         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
40663         * modules/openat (Files): Add lib/fchownat.c.
40664         * lib/openat.c (fchownat): Don't define here.  Move to...
40665         * lib/fchownat.c: ...this new file.
40666
40667 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40668
40669         Fix bug reported by Bruno Haible in
40670         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
40671         where quotearg.c didn't compile on Mac OS X 10.2 because it
40672         lacks <wchar.h> and wint_t.
40673         * lib/wctype_.h (__wctype_wint_t): New type.
40674         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
40675         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
40676         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
40677         Arg is now of type __wctype_wint_t, not wint_t.
40678         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
40679         substitute HAVE_WINT_T.
40680         * modules/wctype (Files): Add m4/wint_t.m4.
40681         (wctype.h): Substitute HAVE_WINT_T.
40682
40683 2006-12-23  Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
40686
40687 2006-12-23  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
40690         S_ISLNK.
40691         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
40692         mingw.
40693
40694 2006-12-22  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/copy-file.c: Include acl.h.
40697         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
40698         Close the file descriptors only after being done with copy_acl.
40699         * modules/copy-file (Depends-on): Add acl.
40700
40701 2006-12-22  Bruno Haible  <bruno@clisp.org>
40702
40703         * gnulib-tool (SED): New variable.
40704         Use $SED instead of sed everywhere.
40705
40706 2006-12-22  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/no-c++: New file.
40709         * m4/no-c++.m4: New file.
40710         * MODULES.html.sh (Support for building libraries and executables):
40711         Add no-c++.
40712
40713 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40714
40715         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
40716         Include <limits.h>, and use its INT_MAX to rewrite the
40717         j loop so that it does not overflow 'int'.  Problem reported by
40718         Ralf Wildenhues in
40719         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
40720         Play it safe by shifting left by 1 rather than multiplying by 2,
40721         as GCC is less likely to optimize this away when the value
40722         is signed (when it assumes overflow leads to undefined behavior).
40723         Also, don't assume time_t uses two's complement.
40724
40725 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40726
40727         * MODULES.html.sh: New module wctype.
40728         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
40729         * lib/fnmatch.c: Don't bother to include <wchar.h> before
40730         <wctype.h>, since the new wctype module should fix this.
40731         * lib/quotearg.c: Include <wctype.h> unconditionally, since
40732         the wctype module should arrange for it.
40733         * lib/regex_internal.h: Likewise.
40734         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
40735         since the wctype module should handle this now.
40736         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
40737         * modules/fnmatch (Depends-on): Add wctype.
40738         * modules/quotearg (Depends-on): Likewise.
40739         * modules/regex (Depends-on): Likewise.
40740
40741 2006-12-19  Bruno Haible  <bruno@clisp.org>
40742
40743         * lib/strdup.h [C++]: Wrap definitions in extern "C".
40744         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
40745
40746 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40747
40748         * modules/savewd (Depends-on): Fix dependency on fcntl.
40749
40750 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
40753         conforms to C99, rather than relying on the user's environment
40754         setting of STDINT_H.
40755
40756 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40757         and Eric Blake  <ebb9@byu.net>
40758
40759         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
40760         This is more consistent with the other defines here.
40761         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
40762         Port to z/OS.  Problem reported by Paul Gilmartin.
40763         Change local vars to use gl_ prefix rather than ac_.
40764         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
40765         with other defines.
40766         * modules/double-slash-root: New module.
40767         * modules/dirname (Files): Remove m4/double-slash-root.m4.
40768         (Depends-on): Add double-slash-root.
40769         * MODULES.html.sh (File system functions): Mention new module.
40770
40771 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
40772
40773         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
40774         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
40775         This is for the benefit of gzip, which doesn't do i18n.
40776
40777 2006-12-12  Jim Meyering  <jim@meyering.net>
40778
40779         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
40780         Reported by Andreas Schwab <schwab@suse.de>.
40781
40782 2006-12-12  Bruno Haible  <bruno@clisp.org>
40783
40784         Merge these changes.
40785         2006-09-05  Bruno Haible  <bruno@clisp.org>
40786         * lib/iconvme.c (iconv_string): No need to save and restore errno when
40787         iconv_alloc succeeded.
40788         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
40789         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
40790         test for " && dest " at the end - dest is always != NULL there. Call
40791         iconv with 4xNULL arguments initially, to reset the state. Call iconv
40792         with 2xNULL arguments, also to flush the state storage. Handle the
40793         IRIX iconv behaviour. Realloc the final result, to throw away unused
40794         memory.
40795
40796 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
40797
40798         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
40799         and fchmodat unconditionally, since glibc 2.4 has them.
40800         Problem reported by Arkadiusz Miskiewicz.
40801
40802 2006-12-10  Bruno Haible  <bruno@clisp.org>
40803
40804         * gnulib-tool (func_import): Show the include files only for those
40805         modules that are copied and specified.
40806         Reported by Karl Berry.
40807
40808 2006-12-08  Jim Meyering  <jim@meyering.net>
40809
40810         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
40811         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
40812
40813         * build-aux/announce-gen: Add two new options, both optional:
40814         --bootstrap-tools=TOOL_LIST
40815               a comma-separated list of tools, e.g.,
40816               autoconf,automake,bison,gnulib
40817         --gnulib-snapshot-date=DATE
40818               if gnulib is in the bootstrap tool list,
40819               then report this as the snapshot date.
40820               If not specified, use the current date/time.
40821               If you specify a date here, be sure it's UTC.
40822
40823 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40824
40825         * tests/test-argp-2.sh: Fix test to match actual output.
40826         (func_compare): Fix sed script to be portable.
40827
40828 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
40829
40830         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
40831         workaround for this case.  It is not autoconfigured now; offhand
40832         it's hard to see how to autoconfigure it.
40833
40834 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
40835
40836         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
40837         a directory that is about to be chowned.  Such a directory's
40838         initial file permissions should permit the owner only and this
40839         should not be changed until after the chown, since the group and
40840         other bits would be incorrect if they granted permission before
40841         the chown.
40842
40843         Fix porting problem for iswctype reported by Georg Schwarz in:
40844         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
40845         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
40846         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
40847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
40848         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40849
40850 2006-12-03  Jim Meyering  <jim@meyering.net>
40851
40852         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
40853         p->fts_statp may not yet be defined.
40854         (fts_read): Instead, set it in the caller, once p->fts_statp is
40855         sure to be defined, and corresponds to a top-level directory.
40856         This bug made du -x fail.  Here's the coreutils test case:
40857         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
40858         Reported by Mike Frysinger.
40859
40860 2006-12-01  Jim Meyering  <jim@meyering.net>
40861
40862         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
40863         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
40864         Reported by Simon Josefsson.
40865
40866 2006-11-30  Jim Meyering  <jim@meyering.net>
40867
40868         * m4/warning.m4: Use the all-permissive copyright notice
40869         recommended by RMS (rather than LGPL).
40870         * m4/vararrays.m4: Likewise.
40871         * m4/flexmember.m4: Likewise.
40872
40873 2006-11-29  Bruno Haible  <bruno@clisp.org>
40874
40875         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40876         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
40877         using +=.
40878         Reported by Simon Josefsson <simon@josefsson.org>.
40879
40880 2006-11-28  James Youngman <jay@gnu.org>
40881
40882         * README: Advise users that they might find the bug-gnulib@gnu.org
40883         and autotools-announce@gnu.org mailing lists useful.
40884
40885 2006-11-28  Bruno Haible  <bruno@clisp.org>
40886
40887         * m4/ptrdiff_max.m4: Remove file.
40888
40889 2006-11-21  Bruno Haible  <bruno@clisp.org>
40890
40891         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
40892         _AC_COMPUTE_INT.
40893         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40894         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
40895         _AC_COMPUTE_INT.
40896         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40897         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
40898         _AC_COMPUTE_INT.
40899         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40900
40901 2006-11-28  Jim Meyering  <jim@meyering.net>
40902
40903         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
40904         warning from "gcc -Wshadow" about shadowing the builtin.
40905
40906 2006-11-27  Bruno Haible  <bruno@clisp.org>
40907
40908         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
40909         _AC_COMPUTE_INT.
40910         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
40911
40912 2006-11-27  Bruno Haible  <bruno@clisp.org>
40913             Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
40916
40917 2006-11-26  Bruno Haible  <bruno@clisp.org>
40918
40919         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40920         noinst_LTLIBRARIES.
40921
40922 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
40923             Bruno Haible  <bruno@clisp.org>
40924
40925         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
40926         if compiling with "gcc -ansi".
40927
40928 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
40929
40930         Fix some incompatibilities with gcc -ansi -pedantic.
40931         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
40932         if compiling pedantically with GCC, unless it's C99 or later.
40933         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
40934         it mishandles gcc -ansi -pedantic as well.
40935         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
40936         if gcc -pedantic.
40937         * lib/regexec.c (check_node_accept_bytes): Don't use auto
40938         initializers for struct if -pedantic, unless it's C99 or later.
40939
40940 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
40941
40942         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
40943         Don't close an fd more than once. Identical atimes indicate
40944         success, not failure.
40945
40946 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
40947
40948         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
40949
40950 2006-11-23  Jim Meyering  <jim@meyering.net>
40951
40952         * build-aux/announce-gen: New file.  From coreutils.
40953
40954 2006-11-22  Jim Meyering  <jim@meyering.net>
40955
40956         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
40957         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
40958         (fts_read): Use a temporary to narrow the overused st_size member
40959         before using it in a switch statement.  Reported by Matthew Woehlke.
40960
40961         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
40962         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40963
40964 2006-11-20  Bruno Haible  <bruno@clisp.org>
40965
40966         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
40967         changequote instead of pairs of brackets.
40968         Reported by Andreas Schwab <schwab@suse.de>.
40969
40970 2006-11-21  Jim Meyering  <jim@meyering.net>
40971
40972         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
40973         so as to remain compatible with older compilers.
40974         Patch from Michael Deutschmann.
40975
40976 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
40977
40978         * MODULES.html.sh (File system functions): Add openat.
40979
40980         * lib/openat.h (rpl_fstatat): New macro, if
40981         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
40982         (fstatat): Define to rpl_fstatat under the same conditions,
40983         unless COMPILING_FSTATAT.
40984         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
40985         seems to have the bug.
40986         * lib/fstatat.c: New file.
40987         * modules/openat (Files): Add it.
40988
40989 2006-11-20  Bruno Haible  <bruno@clisp.org>
40990
40991         * Makefile: New file.
40992
40993 2006-11-20  Jim Meyering  <jim@meyering.net>
40994
40995         The beginnings of syntax-related checks for gnulib.
40996         * lib/Makefile: New file.
40997         * lib/t-idcache: New script.  Ensure that the two halves of
40998         idcache.c stay in sync.
40999
41000         * lib/idcache.c: Adjust comments in user- and group- portions to
41001         be more accurate, and to be consistent with one another.
41002
41003 2006-11-20  Jim Meyering  <jim@meyering.net>
41004
41005         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41006         continue using the flexible array member (thus, this module performs
41007         half as many malloc calls), with the addition that...
41008         (getgroup, getuser): Consistently record a non-match via an empty
41009         "name" string, and map an empty string match to a NULL return value.
41010         * modules/idcache (Depends-on): Re-add flexmember.
41011
41012         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41013         (getuidbyname, getgroup, getgidbyname): Likewise.
41014
41015         Use cleaner syntax: NULL rather than 0.
41016         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41017
41018 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41019
41020         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41021         It mishandled the case where the group was missing.
41022         Problem reported by Greg Schafer.
41023         * modules/idcache: Likewise.
41024
41025 2006-11-18  Jim Meyering  <jim@meyering.net>
41026
41027         * check-module (%exempt_header): Add exception for some
41028         conditionally-included headers.
41029
41030         * modules/i-ring (Depends-on): Add verify.
41031         (License): Change to LGPL.
41032
41033 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41034
41035         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41036         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41037         and inttostr.h.  Use snprintf rather than uinttostr, so that
41038         LGPLed code doesn't depend on GPLed.
41039
41040 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41041
41042         * modules/inline (License): Change from GPL to LGPL.
41043
41044 2006-11-17  Jim Meyering  <jim@meyering.net>
41045
41046         * modules/d-type (License): Switch to LGPL.
41047
41048 2006-11-15  Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41051
41052 2006-11-15  Eric Blake  <ebb9@byu.net>
41053
41054         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41055         the module dependency.
41056
41057 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41058             Bruno Haible  <bruno@clisp.org>
41059
41060         * gnulib-tool (func_create_testdir): Add license consistency check.
41061
41062 2006-11-15  Eric Blake  <ebb9@byu.net>
41063
41064         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41065         random "(cached)" in configure output.
41066
41067 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41068
41069         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41070         test for conforming inttypes.h is both announced and cached.
41071
41072         * MODULES.html.sh (seen_modules, seen_files): New variables.
41073         (func_module): Rewrite to use a few less gnulib-tool and sed
41074         invocations.  Avoid a couple of quadratic algorithms for ...
41075         (missed_modules, missed_files): ... these, with ...
41076         (func_append, func_tmpdir): ... these new functions, from
41077         gnulib-tool.  Analogously, install traps for cleanup.
41078
41079         * tests/test-gc.c (main): Remove unused variables.
41080         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41081
41082 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41083
41084         * modules/inttostr (License): Change to LGPL.
41085
41086 2006-11-14  Eric Blake  <ebb9@byu.net>
41087
41088         * modules/tempname (License): Change to LGPL.
41089
41090 2006-11-14  Eric Blake  <ebb9@byu.net>
41091
41092         * doc/functions.texi (Function Portability): *printf functions on
41093         Cygwin now understand all POSIX size specifiers.
41094
41095 2006-11-14  Bruno Haible  <bruno@clisp.org>
41096
41097         * modules/c-ctype (License): Change to LGPL.
41098
41099 2006-11-12  Bruno Haible  <bruno@clisp.org>
41100
41101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41102         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41103         for GNOME libraries, for which the include files are installed in
41104         subdirectories of $prefix/include.
41105
41106 2006-11-12  Bruno Haible  <bruno@clisp.org>
41107
41108         * m4/lib-link.m4: Require at least autoconf-2.54.
41109         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41110         name to underscores for the --with option.
41111
41112 2006-11-13  Bruno Haible  <bruno@clisp.org>
41113
41114         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41115         the tests directory.
41116         Reported by Ralf Wildenhues.
41117
41118 2006-11-13  Bruno Haible  <bruno@clisp.org>
41119
41120         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41121         (func_emit_initmacro_end): Undo the override here.
41122         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41123         Works around the famous automake error in coreutils.
41124
41125 2006-11-13  Eric Blake  <ebb9@byu.net>
41126
41127         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41128         element, not its node.
41129
41130 2006-11-12  Bruno Haible  <bruno@clisp.org>
41131
41132         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41133         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41134
41135 2006-11-12  Bruno Haible  <bruno@clisp.org>
41136
41137         * gnulib-tool: New option --local-symlink.
41138         (func_usage): Document it.
41139         (lsymbolic): New variable.
41140         (func_import, func_create_testdir): If --symlink was not specified,
41141         test whether --local-symlink was specified and the file comes from
41142         the local_gnulib_dir.
41143
41144 2006-11-12  Bruno Haible  <bruno@clisp.org>
41145
41146         * gnulib-tool (func_ln): New function.
41147         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41148
41149 2006-11-12  Bruno Haible  <bruno@clisp.org>
41150
41151         Finish support for source files in subdirectories.
41152         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41153         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41154         AUTOMAKE_OPTIONS.
41155         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41156
41157 2006-11-12  Bruno Haible  <bruno@clisp.org>
41158
41159         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41160         EXTRA_lib_SOURCES augmentation.
41161         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41162
41163 2006-11-12  Jim Meyering  <jim@meyering.net>
41164
41165         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41166         file descriptors.  This also averts a failure on systems with
41167         native openat support when a traversed directory lacks "x" access.
41168         * lib/fts_.h: Include "i-ring.h"
41169         (struct FTS) [fts_fd_ring]: New member.
41170         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41171         (FCHDIR): Add parentheses.
41172         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41173         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41174         When descending, rather than simply closing the previous
41175         fts_cwd_fd value, push that file descriptor onto the ring.
41176         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41177         (fts_open): Initialize the new fd_ring member.
41178         (fts_close): Clear the ring.
41179         (fts_safe_changedir): When possible, use our new fd_ring to skip
41180         the diropen and fstat and dev/ino comparison that would normally
41181         accompany a virtual `chdir ("..")'.
41182
41183         * modules/fts (Depends-on): Add i-ring.
41184         * modules/i-ring: New module.
41185         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41186         * m4/i-ring.m4: New file.
41187
41188 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41189
41190         * gnulib-tool (func_create_testdir): Fix replacement of
41191         `build-aux' in configure.ac.  Run autotools in gltests
41192         subdirectory.
41193         (func_create_testdir, func_create_megatestdir, test): There is
41194         no need for '--force' in most autotool invocations in a new
41195         tree.  Actually fail the whole test if any of the tools, or the
41196         configure or make stages fail.
41197
41198         Sync from Automake.
41199         * build-aux/gnupload: Revert last change.  Add pointer to upload
41200         instructions of the GNU Maintenance Instructions.
41201         Suggestion by Karl Berry.
41202
41203 2006-11-10  Jim Meyering  <jim@meyering.net>
41204
41205         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41206
41207 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41208
41209         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41210         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41211         (bind_textdomain_codeset) [! ENABLE_NLS]:
41212         Evaluate all the arguments.  That way, callers get compatible behavior
41213         if the arguments have side effects.  Also, it avoids some GCC
41214         diagnostics in some cases; Joel E. Denny reported problems when Bison
41215         was configured with --enable-gcc-warnigs.
41216
41217 2006-11-10  Jim Meyering  <jim@meyering.net>
41218
41219         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41220         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41221         account.
41222
41223 2006-11-10  Jim Meyering  <jim@meyering.net>
41224
41225         * modules/inline: New file/module.
41226         * modules/xalloc (Files): Remove m4/inline.m4.
41227         (Depends-on): Add inline, instead.
41228         * modules/oset: Likewise.
41229         * modules/list: Likewise.
41230
41231 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41232
41233         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41234         Problem reported by Matthew Woehlke.
41235
41236 2006-11-09  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/tempname.c (gen_tempname): Remove variant that invokes
41239         __gen_tempname.
41240         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41241         __gen_tempname.
41242
41243 2006-11-08  Bruno Haible  <bruno@clisp.org>
41244
41245         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41246         to 'yes' instead of 'cross-compiling'.
41247
41248 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41249
41250         * lib/quotearg.h (quotearg_free): New decl.
41251         * lib/quotearg.c (quotearg_free): New function.
41252         (slot0, nslots, slotvec0, slotvec):
41253         Now file-scope so that quotearg_free can get at them.
41254
41255 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41256
41257         Sync from Automake.
41258         * build-aux/gnupload: Add missing 'gnu' to example URL.
41259         Report by Karl Berry.
41260
41261 2006-11-08  Bruno Haible  <bruno@clisp.org>
41262
41263         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41264         Suggested by Paul Eggert.
41265
41266 2006-11-08  Jim Meyering  <jim@meyering.net>
41267
41268         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41269         It's already included if !_LIBC.
41270         (fts_safe_changedir): Add a comment.
41271
41272 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41273
41274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41275         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41276         Matthew Woehlke.
41277
41278         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41279         definitions up, to avoid colliding with change below.
41280         (static_inline) [HAVE_INLINE]: New macro.
41281         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41282         Provide extern decls when !HAVE_INLINE.  Do not define unless
41283         static_inline is defined, either by us or by xmalloc.c.  Use
41284         static_inline rather than static inline.
41285         (XCALLOC): Optimize sizeof(T) = 1 case.
41286         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41287
41288 2006-11-07  Bruno Haible  <bruno@clisp.org>
41289
41290         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41291         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41292         AC_C_INLINE.
41293         * modules/xalloc (Files): Add m4/inline.m4.
41294
41295 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41296
41297         * README: Fix typo.
41298         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41299         (Miscellanous Notes): ...from this.
41300
41301 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41304         Mention that offsetof should be used instead of sizeof.
41305         From Bruno Haible.
41306
41307 2006-11-07  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41310
41311 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41312
41313         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41314         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41315         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41316         (gl_tree_add_before, gl_tree_add_after):
41317         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41318         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41319         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41320         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41321         (gl_linked_add_after, gl_linked_add_at): Likewise.
41322         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41323         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41324         (gl_tree_add_before, gl_tree_add_after): Likewise.
41325         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41326         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41327         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41328
41329 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41330
41331         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41332
41333 2006-11-06  Bruno Haible  <bruno@clisp.org>
41334
41335         * m4/inline.m4: New file.
41336         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41337         * modules/list (Files): Add m4/inline.m4.
41338         * modules/oset (Files): Likewise.
41339
41340 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41341
41342         * lib/idcache.c: Include <stddef.h>, for offsetof.
41343         (struct userid.name): Change from char * to a flexible array member.
41344         All uses changed.
41345         * modules/idcache (Depends-on): Add flexmember.
41346
41347         * MODULES.html.sh (Core language properties): New module flexmember.
41348         * modules/flexmember, m4/flexmember.m4: New files.
41349
41350         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41351         inline functions that are identical with the old xnmalloc_inline,
41352         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41353         that we can avoid some unnecessary integer multiplications and
41354         divisions in the common case where the element size is known at
41355         compile time.
41356         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41357         needed.
41358         (xnboundedmalloc): Remove.
41359         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41360         arguments, for consistency with rest of this header.
41361         (xcharalloc): Rewrite using XNMALLOC.
41362         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41363         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41364         versions have been moved to lib/xalloc.h and renamed to be the
41365         non-*_inline versions.
41366         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41367         and xnrealloc functions, since those functions are now inline and
41368         now call us.
41369         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41370         renaming described above.
41371         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41372         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41373         captures the dependency in AC_C_INLINE.
41374
41375         New module canonicalize-lgpl, proposed by Charles Wilson in
41376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41377         with a few small changes afterwards.
41378         * MODULES.html.sh (File system functions): New module
41379         canonicalize-lgpl.
41380         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41381         and canonicalize_file_name.
41382         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41383         * modules/canonicalize-lgpl: New files.
41384
41385 2006-11-05  Bruno Haible  <bruno@clisp.org>
41386
41387         * gnulib-tool (func_import, func_create_testdir): Create directories
41388         also for files in subdirectories of lib/.
41389
41390 2006-11-05  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41393         ANSI C compliant.
41394
41395 2006-11-03  Bruno Haible  <bruno@clisp.org>
41396
41397         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41398         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41399         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41400         (xnboundedmalloc): New inline function.
41401         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41402         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41403         xmalloc.
41404         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41405         xmalloc.
41406         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41407         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41408         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41409         xmalloc.
41410         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41411         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41412         xmalloc.
41413         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41414         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41415         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41416         xmalloc.
41417         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41418         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41419         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41420         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41421         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41422         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41423         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41424
41425 2006-11-03  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/c-ctype.h [C++]: Define functions without name mangling.
41428         * lib/fwriteerror.h [C++]: Likewise.
41429         * lib/gcd.h [C++]: Likewise.
41430         * lib/linebreak.h [C++]: Likewise.
41431
41432 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41435         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41436         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41438         Check for functions and headers just once.
41439         Check for declaration of canonicalize_file_name.
41440         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41441
41442 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41443
41444         * gnulib-tool (func_import): Fix typo in actioncmd.
41445
41446 2006-11-02  Bruno Haible  <bruno@clisp.org>
41447
41448         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41449         newline sequence in the Makefile.am snippet as a space, like "make"
41450         does.
41451         Reported by Roger Persson <perrog@gmail.com>.
41452
41453 2006-11-01  Bruno Haible  <bruno@clisp.org>
41454
41455         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41456         already declared in <string.h>.
41457         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41458
41459 2006-11-01  Bruno Haible  <bruno@clisp.org>
41460
41461         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41462         * lib/strcase.h: Include <string.h>.
41463         (strcasecmp): Define to rpl_strcasecmp here.
41464
41465 2006-11-01  Bruno Haible  <bruno@clisp.org>
41466
41467         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41468
41469 2006-11-01  Eric Blake  <ebb9@byu.net>
41470
41471         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41472
41473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41474
41475 2006-10-29  Bruno Haible  <bruno@clisp.org>
41476
41477         Make it compile in C++ mode.
41478         * lib/full-write.c (full_rw): Add a cast.
41479
41480 2006-11-01  Bruno Haible  <bruno@clisp.org>
41481
41482         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41483         be POSIX compliant.
41484         Reported by Roger Persson <perrog@gmail.com>.
41485
41486 2006-11-01  Eric Blake  <ebb9@byu.net>
41487
41488         * lib/getopt_.h: Fix comments.
41489
41490 2006-10-31  Eric Blake  <ebb9@byu.net>
41491
41492         * modules/tmpdir (Depends-on): Add sys_stat.
41493         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41494         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41495         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41496         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41497         tempname.
41498
41499 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41500
41501         Avoid some C++ diagnostics reported by Bruno Haible.
41502         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41503         xmalloc.
41504         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41505         (struct slotvec): Move to top level.
41506         (quotearg_n_options): Rewrite to avoid xmalloc.
41507         * lib/xalloc.h (xcharalloc): New function.
41508         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41509         [defined __cplusplus]: Add function template that provides result
41510         type propagation.  This part of the change is from Bruno Haible.
41511
41512 2006-10-29  Bruno Haible  <bruno@clisp.org>
41513
41514         Make it compile in C++ mode.
41515         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41516         * lib/strnlen1.c (strnlen1): Cast memchr result.
41517         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41518         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41519         (create_temp_dir): Rename local variable 'template'.
41520         (compile_csharp_using_sscli): Add cast.
41521         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41522         * lib/findprog.c (find_in_path): Likewise.
41523         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41524         * lib/wait-process.c (register_slave_subprocess): Likewise.
41525
41526 2006-10-22  Bruno Haible  <bruno@clisp.org>
41527
41528         * modules/tsearch: New file.
41529         * lib/tsearch.h: New file.
41530         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41531         * m4/tsearch.m4: New file.
41532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41533
41534 2006-10-29  Eric Blake  <ebb9@byu.net>
41535
41536         * lib/arcfour.c: Assume config.h.
41537         * lib/arctwo.c: Likewise.
41538         * lib/base64.c: Likewise.
41539         * lib/check-version.c: Likewise.
41540         * lib/crc.c: Likewise.
41541         * lib/des.c: Likewise.
41542         * lib/gc-gnulib.c: Likewise.
41543         * lib/gc-libgcrypt.c: Likewise.
41544         * lib/gc-pbkdf2-sha1.c: Likewise.
41545         * lib/getaddrinfo.c: Likewise.
41546         * lib/getdelim.c: Likewise.
41547         * lib/getline.c: Likewise.
41548         * lib/hmac-md5.c: Likewise.
41549         * lib/hmac-sha1.c: Likewise.
41550         * lib/iconvme.c: Likewise.
41551         * lib/md2.c: Likewise.
41552         * lib/md4.c: Likewise.
41553         * lib/memxor.c: Likewise.
41554         * lib/read-file.c: Likewise.
41555         * lib/readline.c: Likewise.
41556         * lib/rijndael-alg-fst.c: Likewise.
41557         * lib/rijndael-api-fst.c: Likewise.
41558         * lib/xgetdomainname.c: Likewise.
41559
41560 2006-10-28  Eric Blake  <ebb9@byu.net>
41561
41562         * lib/xstrndup.c: Assume config.h.
41563
41564 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41565
41566         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41567         stat-macros.h is now for our own macros, whereas stat_h is for
41568         macros in the <sys/stat.h> name space.
41569         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41570         (STAT_MACROS_H): Remove.
41571         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41572         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41573         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41574         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41575         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41576         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41577         Move these macros to ...
41578         * lib/stat_.h: here.  Don't include stat-macros.h.
41579         * lib/canonicalize.c: Don't include stat-macros.h.
41580         * lib/chown.c: Likewise.
41581         * lib/euidaccess.c: Likewise.
41582         * lib/file-type.c: Likewise.
41583         * lib/filemode.c: Likewise.
41584         * lib/glob.c: Likewise.
41585         * lib/isapipe.c: Likewise.
41586         * lib/lchown.c: Likewise.
41587         * lib/lstat.c: Likewise.
41588         * lib/mkdir-p.c: Likewise.
41589         * lib/rmdir.c: Likewise.
41590         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41592         unless mkdir isn't declared, to speed up 'configure'.
41593         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41594         would define all the S_* symbols.
41595         * modules/canonicalize (Depends-on):
41596         Depend on sys_stat, not stat-macros.
41597         * modules/chown: Likewise.
41598         * modules/euidaccess: Likewise.
41599         * modules/filemode: Likewise.
41600         * modules/file-type: Likewise.
41601         * modules/glob: Likewise.
41602         * modules/isapipe: Likewise.
41603         * modules/lchown: Likewise.
41604         * modules/lstat: Likewise.
41605         * modules/mkancesdirs: Likewise.
41606         * modules/rmdir: Likewise.
41607         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41608         * modules/modechange: Likewise.
41609         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41610         (configure.ac): Remove gl_STAT_MACROS.
41611         * modules/sys_stat (Depends-on): Remove stat-macros.
41612
41613 2006-10-27  Bruno Haible  <bruno@clisp.org>
41614
41615         * m4/signed.m4: Remove file.
41616         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41617         invocation.
41618         * modules/vasnprintf (Files): Remove m4/signed.m4.
41619
41620 2006-10-27  Bruno Haible  <bruno@clisp.org>
41621
41622         Update to GNU gettext 0.16.
41623         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
41624         m4/inttypes-h.m4, m4/signed.m4.
41625         * m4/gettext.m4: Update to GNU gettext 0.16.
41626         * m4/intl.m4: New file, from GNU gettext.
41627         * m4/intldir.m4: New file, from GNU gettext.
41628         * config/srclist.txt: Update
41629
41630 2006-10-27  Eric Blake  <ebb9@byu.net>
41631
41632         * MODULES.html.sh: Document tempname.
41633         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
41634         dependencies.
41635         (Files): Move lib/tempname.c...
41636         * modules/tempname: ...to this new module.
41637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
41638         (gl_PREREQ_TEMPNAME): Move...
41639         * m4/tempname.m4: ...to this new file.
41640         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
41641         * modules/sys_stat (Depends-on): Add stat-macros.
41642         * lib/stat_.h (includes): Pick up stat macros.
41643         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
41644         if stat macros are broken.
41645         * lib/tempname.c (includes): No need to include "stat-macros.h".
41646         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
41647         (direxists, __path_search) [!_LIBC]: Don't compile these in
41648         gnulib; the tmpdir module covers that.
41649         * lib/tempname.h: New file.
41650
41651 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
41652
41653         * COPYING: Explain how gnulib-tool converts licence headers.
41654         Almost all wording by Eric Blake.
41655
41656 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
41657
41658         * lib/mbchar.h (is_basic_table): Make read-only.
41659         * lib/mbchar.c (is_basic_table): Likewise.
41660         Reported by John Darrington.
41661
41662 2006-10-25  Bruno Haible  <bruno@clisp.org>
41663
41664         * lib/progname.h (set_program_name): Undefine before defining.
41665
41666 2006-10-25  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
41669         false for non-gcc C++ compilers.
41670         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41671
41672 2006-10-24  Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
41675         iconv implementations like Irix iconv.
41676
41677 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41678
41679         * modules/vararrays: New file.
41680         * m4/vararrays.m4: New file, taken from diffutils.
41681         * MODULES.html.sh: New module vararrays.
41682
41683 2006-10-24  Karl Berry  <karl@gnu.org>
41684
41685         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
41686         Don't call GNU Unix.
41687
41688 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41689
41690         * users.txt: Add Libtool.
41691
41692         Sync from Libtool:
41693
41694         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41695
41696         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
41697         to gnulib's policy of including config.h unconditionally.
41698
41699 2006-10-24  Bruno Haible  <bruno@clisp.org>
41700
41701         * modules/wcwidth (Files): Add m4/wint_t.m4.
41702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
41703         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
41704
41705 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
41706
41707         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
41708         to pacify GCC with some -W flags enabled.  Problem reported by
41709         Bruno Haible.
41710
41711 2006-10-24  Jim Meyering  <jim@meyering.net>
41712
41713         * MODULES.html.sh: Remove uinttostr.  It's not a module.
41714         Reported by Karl Berry.
41715
41716 2006-10-23  Bruno Haible  <bruno@clisp.org>
41717
41718         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
41719
41720 2006-10-24  Bruno Haible  <bruno@clisp.org>
41721
41722         * lib/gl_list.h: Use C comment style, not C++ comment style.
41723
41724 2006-10-23  Eric Blake  <ebb9@byu.net>
41725
41726         * lib/getaddrinfo.c (includes): Add missing include.
41727
41728 2006-10-23  Bruno Haible  <bruno@clisp.org>
41729             Paul Eggert  <eggert@cs.ucla.edu>
41730
41731         Ability to rename obstack_free.
41732         * lib/obstack.h (__obstack_free): New macro. Declare instead of
41733         obstack_free.
41734         (obstack_free): Invoke the __obstack_free macro.
41735         * lib/obstack.c (obstack_free): Use __obstack_free macro.
41736
41737 2006-10-23  Bruno Haible  <bruno@clisp.org>
41738             Paul Eggert  <eggert@cs.ucla.edu>
41739
41740         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
41741         __argc, __argv from the declaration. (They are defined as macros on
41742         mingw.)
41743
41744 2006-10-22  Bruno Haible  <bruno@clisp.org>
41745
41746         * doc/gnulib-intro.texi: New file.
41747         * doc/gnulib.texi: Include it.
41748
41749 2006-10-21  Bruno Haible  <bruno@clisp.org>
41750
41751         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
41752         "Introduction", "Miscellanous Notes", "Particular Modules".
41753
41754 2006-10-21  Bruno Haible  <bruno@clisp.org>
41755
41756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41757         Change mostlyclean-local rule to avoid sh syntax error from bash
41758         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
41759
41760 2006-10-23  Jim Meyering  <jim@meyering.net>
41761
41762         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
41763         in place of snprintf.
41764
41765         * modules/inttostr (Files): Add lib/uinttostr.c.
41766         * lib/uinttostr.c (inttostr): New file/function.
41767         * lib/inttostr.h (uinttostr): Declare.
41768         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
41769         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41770         Add uinttostr.
41771         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
41772
41773 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41774
41775         * lib/canonicalize.c (ELOOP): Define if not already defined.
41776         Problem reported by Bruno Haible in
41777         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
41778
41779 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
41780
41781         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
41782         Problem reported by Perry Smith and Ville Laurikari.
41783
41784         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
41785         uses.
41786
41787 2006-10-19  Bruno Haible  <bruno@clisp.org>
41788
41789         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
41790         for mingw.
41791
41792 2006-10-19  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
41795         Needed for mingw.
41796
41797 2006-10-19  Bruno Haible  <bruno@clisp.org>
41798
41799         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
41800
41801 2006-10-19  Bruno Haible  <bruno@clisp.org>
41802
41803         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
41804         it.
41805
41806 2006-10-19  Bruno Haible  <bruno@clisp.org>
41807
41808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
41809         invocation.
41810
41811 2006-10-19  Bruno Haible  <bruno@clisp.org>
41812
41813         * gnulib-tool (func_create_testdir): Don't include ftruncate and
41814         mountlist by default.
41815
41816 2006-10-16  Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/c-strstr.c: Include c-strstr.h.
41819
41820 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41821
41822         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
41823         in a slash.
41824
41825 2006-10-18  Bruno Haible  <bruno@clisp.org>
41826
41827         * lib/lock.h [C++]: Wrap definitions in extern "C".
41828
41829 2006-10-18  Bruno Haible  <bruno@clisp.org>
41830
41831         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
41832         gl_LIBOBJS list.
41833
41834 2006-10-18  Bruno Haible  <bruno@clisp.org>
41835
41836         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
41837
41838 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
41839
41840         * lib/xstrtol.h: Include gettext.h.
41841         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
41842         Problem reported by Eric Blake.
41843         * modules/xstrtol (Depends-on): Add gettext-h.
41844
41845 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
41846
41847         * lib/strftime.c (advance): New macro.
41848         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
41849         incomplete type, so you can't add 0 to it.  Problem and patch
41850         reported by Eelco Dolstra for dietlibc.
41851
41852 2006-10-18  Jim Meyering  <jim@meyering.net>
41853
41854         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
41855         type for a local, and rename it: s/up/user_proc/.
41856
41857 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
41858
41859         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
41860         READ_UTMP_USER_PROCESS.
41861         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
41862
41863 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
41864
41865         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
41866         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
41867
41868 2006-10-17  Eric Blake  <ebb9@byu.net>
41869
41870         * lib/sigprocmask.c (sigprocmask): Fix typo.
41871
41872         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
41873
41874         * modules/clean-temp (Makefile.am): Don't add to make output...
41875         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
41876         config.h.
41877
41878 2006-10-17  Bruno Haible  <bruno@clisp.org>
41879
41880         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
41881         differently if DEFAULT_TEXT_DOMAIN is set.
41882
41883 2006-10-16  Bruno Haible  <bruno@clisp.org>
41884
41885         * lib/clean-temp.c: Include fwriteerror.h.
41886
41887 2006-10-16  Bruno Haible  <bruno@clisp.org>
41888
41889         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
41890
41891 2006-10-16  Bruno Haible  <bruno@clisp.org>
41892
41893         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
41894         * lib/sigprocmask.h: Include <sys/types.h>.
41895         (sigset_t): Use the system's definition if present.
41896
41897 2006-10-17  Eric Blake  <ebb9@byu.net>
41898
41899         * lib/xvasprintf.c (includes): Assume config.h.
41900         * lib/xasprintf.c (includes): Likewise.
41901
41902 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41903
41904         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
41905         at least as wide as intmax_t.
41906
41907 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
41908
41909         (Imported from Automake.)
41910         * build-aux/gnupload: Update to version 1.1 of directive file.
41911
41912 2006-10-16  Eric Blake  <ebb9@byu.net>
41913
41914         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
41915         match Automake 1.10a.
41916
41917 2006-10-14  Bruno Haible  <bruno@clisp.org>
41918
41919         * modules/sigprocmask: New file.
41920         * lib/sigprocmask.h: New file.
41921         * lib/sigprocmask.c: New file.
41922         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
41923         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
41924         request sigprocmask.o.
41925         (gl_PREREQ_SIGPROCMASK): New macro.
41926         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
41927         (Depends-on): Add sigprocmask.
41928         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
41929         gt_SIGNALBLOCKING. Test for 'raise' only once.
41930         * lib/fatal-signal.c: Include sigprocmask.h.
41931         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
41932         unblock_fatal_signals): Define always.
41933         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41934         sigprocmask.
41935
41936 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
41937
41938         Sync from Automake.
41939         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
41940         which incorrectly sets the mode of an existing destination
41941         directory.  In some cases the unpatched install-sh could do the
41942         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
41943         system.  We hope this is rare in practice, but it's clearly worth
41944         fixing.  Problem reported by Alex Unleashed in
41945         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
41946         Also, don't bother to check for -m bugs unless we're using -m;
41947         suggested by Stepan Kasal.
41948
41949 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41950
41951         Sync from Automake.
41952         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
41953         `-c' flag, so they appear at the same position as in %FASTDEP%
41954         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
41955         which ignores unknown options only after the first non-option.
41956         Bug report against M4 by Nelson H. F. Beebe.
41957
41958 2006-10-13  Jim Meyering  <jim@meyering.net>
41959
41960         Fix a bug in yesterday's change.
41961         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
41962         p->fts_statp->st_dev would be used uninitialized.
41963         Ensures that we always call fts_stat on the very first entry.
41964         Miklos Szeredi reported that find -xdev stopped working.
41965
41966 2006-10-12  Bruno Haible  <bruno@clisp.org>
41967
41968         * gnulib-tool (func_get_automake_snippet): Append an automatically
41969         computed EXTRA_DIST augmentation.
41970         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
41971         * modules/alloca-opt (Makefile.am): Likewise.
41972         * modules/allocsa (Makefile.am): Likewise.
41973         * modules/arcfour (Makefile.am): Likewise.
41974         * modules/arctwo (Makefile.am): Likewise.
41975         * modules/argmatch (Makefile.am): Likewise.
41976         * modules/argz (Makefile.am): Likewise.
41977         * modules/atexit (Makefile.am): Likewise.
41978         * modules/backupfile (Makefile.am): Likewise.
41979         * modules/byteswap (Makefile.am): Likewise.
41980         * modules/c-strtod (Makefile.am): Likewise.
41981         * modules/c-strtold (Makefile.am): Likewise.
41982         * modules/calloc (Makefile.am): Likewise.
41983         * modules/canon-host (Makefile.am): Likewise.
41984         * modules/canonicalize (Makefile.am): Likewise.
41985         * modules/chdir-long (Makefile.am): Likewise.
41986         * modules/chdir-safer (Makefile.am): Likewise.
41987         * modules/check-version (Makefile.am): Likewise.
41988         * modules/chown (Makefile.am): Likewise.
41989         * modules/cloexec (Makefile.am): Likewise.
41990         * modules/close-stream (Makefile.am): Likewise.
41991         * modules/closeout (Makefile.am): Likewise.
41992         * modules/crc (Makefile.am): Likewise.
41993         * modules/csharpexec (Makefile.am): Likewise.
41994         * modules/cycle-check (Makefile.am): Likewise.
41995         * modules/des (Makefile.am): Likewise.
41996         * modules/dev-ino (Makefile.am): Likewise.
41997         * modules/dirfd (Makefile.am): Likewise.
41998         * modules/dirname (Makefile.am): Likewise.
41999         * modules/dup2 (Makefile.am): Likewise.
42000         * modules/eealloc (Makefile.am): Likewise.
42001         * modules/error (Makefile.am): Likewise.
42002         * modules/euidaccess (Makefile.am): Likewise.
42003         * modules/exclude (Makefile.am): Likewise.
42004         * modules/exitfail (Makefile.am): Likewise.
42005         * modules/fcntl-safer (Makefile.am): Likewise.
42006         * modules/fcntl (Makefile.am): Likewise.
42007         * modules/file-type (Makefile.am): Likewise.
42008         * modules/fileblocks (Makefile.am): Likewise.
42009         * modules/filemode (Makefile.am): Likewise.
42010         * modules/filenamecat (Makefile.am): Likewise.
42011         * modules/fnmatch (Makefile.am): Likewise.
42012         * modules/fopen-safer (Makefile.am): Likewise.
42013         * modules/fpending (Makefile.am): Likewise.
42014         * modules/fprintftime (Makefile.am): Likewise.
42015         * modules/free (Makefile.am): Likewise.
42016         * modules/fsusage (Makefile.am): Likewise.
42017         * modules/ftruncate (Makefile.am): Likewise.
42018         * modules/fts (Makefile.am): Likewise.
42019         * modules/gc-arcfour (Makefile.am): Likewise.
42020         * modules/gc-des (Makefile.am): Likewise.
42021         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42022         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42023         * modules/gc-md4 (Makefile.am): Likewise.
42024         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42025         * modules/gc-sha1 (Makefile.am): Likewise.
42026         * modules/gc (Makefile.am): Likewise.
42027         * modules/getaddrinfo (Makefile.am): Likewise.
42028         * modules/getcwd (Makefile.am): Likewise.
42029         * modules/getdelim (Makefile.am): Likewise.
42030         * modules/getdomainname (Makefile.am): Likewise.
42031         * modules/getgroups (Makefile.am): Likewise.
42032         * modules/gethostname (Makefile.am): Likewise.
42033         * modules/gethrxtime (Makefile.am): Likewise.
42034         * modules/getline (Makefile.am): Likewise.
42035         * modules/getloadavg (Makefile.am): Likewise.
42036         * modules/getlogin_r (Makefile.am): Likewise.
42037         * modules/getndelim2 (Makefile.am): Likewise.
42038         * modules/getopt (Makefile.am): Likewise.
42039         * modules/getpagesize (Makefile.am): Likewise.
42040         * modules/getpass-gnu (Makefile.am): Likewise.
42041         * modules/getpass (Makefile.am): Likewise.
42042         * modules/getsubopt (Makefile.am): Likewise.
42043         * modules/gettime (Makefile.am): Likewise.
42044         * modules/gettimeofday (Makefile.am): Likewise.
42045         * modules/getugroups (Makefile.am): Likewise.
42046         * modules/getusershell (Makefile.am): Likewise.
42047         * modules/glob (Makefile.am): Likewise.
42048         * modules/group-member (Makefile.am): Likewise.
42049         * modules/hard-locale (Makefile.am): Likewise.
42050         * modules/hash (Makefile.am): Likewise.
42051         * modules/hmac-md5 (Makefile.am): Likewise.
42052         * modules/hmac-sha1 (Makefile.am): Likewise.
42053         * modules/human (Makefile.am): Likewise.
42054         * modules/idcache (Makefile.am): Likewise.
42055         * modules/imaxabs (Makefile.am): Likewise.
42056         * modules/imaxdiv (Makefile.am): Likewise.
42057         * modules/inet_ntop (Makefile.am): Likewise.
42058         * modules/inet_pton (Makefile.am): Likewise.
42059         * modules/intprops (Makefile.am): Likewise.
42060         * modules/inttostr (Makefile.am): Likewise.
42061         * modules/inttypes (Makefile.am): Likewise.
42062         * modules/isapipe (Makefile.am): Likewise.
42063         * modules/javaversion (Makefile.am): Likewise.
42064         * modules/lchmod (Makefile.am): Likewise.
42065         * modules/lchown (Makefile.am): Likewise.
42066         * modules/localcharset (Makefile.am): Likewise.
42067         * modules/long-options (Makefile.am): Likewise.
42068         * modules/lstat (Makefile.am): Likewise.
42069         * modules/malloc (Makefile.am): Likewise.
42070         * modules/mathl (Makefile.am): Likewise.
42071         * modules/mbchar (Makefile.am): Likewise.
42072         * modules/md2 (Makefile.am): Likewise.
42073         * modules/md4 (Makefile.am): Likewise.
42074         * modules/md5 (Makefile.am): Likewise.
42075         * modules/memcasecmp (Makefile.am): Likewise.
42076         * modules/memchr (Makefile.am): Likewise.
42077         * modules/memcmp (Makefile.am): Likewise.
42078         * modules/memcoll (Makefile.am): Likewise.
42079         * modules/memcpy (Makefile.am): Likewise.
42080         * modules/memmem (Makefile.am): Likewise.
42081         * modules/memmove (Makefile.am): Likewise.
42082         * modules/mempcpy (Makefile.am): Likewise.
42083         * modules/memrchr (Makefile.am): Likewise.
42084         * modules/memset (Makefile.am): Likewise.
42085         * modules/memxor (Makefile.am): Likewise.
42086         * modules/mkancesdirs (Makefile.am): Likewise.
42087         * modules/mkdir-p (Makefile.am): Likewise.
42088         * modules/mkdir (Makefile.am): Likewise.
42089         * modules/mkdtemp (Makefile.am): Likewise.
42090         * modules/mkstemp (Makefile.am): Likewise.
42091         * modules/mktime (Makefile.am): Likewise.
42092         * modules/modechange (Makefile.am): Likewise.
42093         * modules/mountlist (Makefile.am): Likewise.
42094         * modules/nanosleep (Makefile.am): Likewise.
42095         * modules/obstack (Makefile.am): Likewise.
42096         * modules/openat (Makefile.am): Likewise.
42097         * modules/pagealign_alloc (Makefile.am): Likewise.
42098         * modules/pathmax (Makefile.am): Likewise.
42099         * modules/physmem (Makefile.am): Likewise.
42100         * modules/poll (Makefile.am): Likewise.
42101         * modules/posixtm (Makefile.am): Likewise.
42102         * modules/posixver (Makefile.am): Likewise.
42103         * modules/putenv (Makefile.am): Likewise.
42104         * modules/quote (Makefile.am): Likewise.
42105         * modules/quotearg (Makefile.am): Likewise.
42106         * modules/raise (Makefile.am): Likewise.
42107         * modules/read-file (Makefile.am): Likewise.
42108         * modules/readline (Makefile.am): Likewise.
42109         * modules/readlink (Makefile.am): Likewise.
42110         * modules/readtokens (Makefile.am): Likewise.
42111         * modules/readutmp (Makefile.am): Likewise.
42112         * modules/realloc (Makefile.am): Likewise.
42113         * modules/regex (Makefile.am): Likewise.
42114         * modules/rename-dest-slash (Makefile.am): Likewise.
42115         * modules/rename (Makefile.am): Likewise.
42116         * modules/rijndael (Makefile.am): Likewise.
42117         * modules/rmdir (Makefile.am): Likewise.
42118         * modules/rpmatch (Makefile.am): Likewise.
42119         * modules/safe-read (Makefile.am): Likewise.
42120         * modules/safe-write (Makefile.am): Likewise.
42121         * modules/same-inode (Makefile.am): Likewise.
42122         * modules/same (Makefile.am): Likewise.
42123         * modules/save-cwd (Makefile.am): Likewise.
42124         * modules/savedir (Makefile.am): Likewise.
42125         * modules/setenv (Makefile.am): Likewise.
42126         * modules/settime (Makefile.am): Likewise.
42127         * modules/sha1 (Makefile.am): Likewise.
42128         * modules/sig2str (Makefile.am): Likewise.
42129         * modules/snprintf (Makefile.am): Likewise.
42130         * modules/stat-macros (Makefile.am): Likewise.
42131         * modules/stat-time (Makefile.am): Likewise.
42132         * modules/stdbool (Makefile.am): Likewise.
42133         * modules/stdint (Makefile.am): Likewise.
42134         * modules/stdlib-safer (Makefile.am): Likewise.
42135         * modules/stpcpy (Makefile.am): Likewise.
42136         * modules/stpncpy (Makefile.am): Likewise.
42137         * modules/strcase (Makefile.am): Likewise.
42138         * modules/strcasestr (Makefile.am): Likewise.
42139         * modules/strchrnul (Makefile.am): Likewise.
42140         * modules/strcspn (Makefile.am): Likewise.
42141         * modules/strdup (Makefile.am): Likewise.
42142         * modules/strerror (Makefile.am): Likewise.
42143         * modules/strftime (Makefile.am): Likewise.
42144         * modules/strndup (Makefile.am): Likewise.
42145         * modules/strnlen (Makefile.am): Likewise.
42146         * modules/strpbrk (Makefile.am): Likewise.
42147         * modules/strsep (Makefile.am): Likewise.
42148         * modules/strstr (Makefile.am): Likewise.
42149         * modules/strtod (Makefile.am): Likewise.
42150         * modules/strtoimax (Makefile.am): Likewise.
42151         * modules/strtok_r (Makefile.am): Likewise.
42152         * modules/strtol (Makefile.am): Likewise.
42153         * modules/strtoll (Makefile.am): Likewise.
42154         * modules/strtoul (Makefile.am): Likewise.
42155         * modules/strtoull (Makefile.am): Likewise.
42156         * modules/strtoumax (Makefile.am): Likewise.
42157         * modules/strverscmp (Makefile.am): Likewise.
42158         * modules/sys_socket (Makefile.am): Likewise.
42159         * modules/sys_stat (Makefile.am): Likewise.
42160         * modules/sysexits (Makefile.am): Likewise.
42161         * modules/time_r (Makefile.am): Likewise.
42162         * modules/timegm (Makefile.am): Likewise.
42163         * modules/timespec (Makefile.am): Likewise.
42164         * modules/tmpfile-safer (Makefile.am): Likewise.
42165         * modules/trim (Makefile.am): Likewise.
42166         * modules/unistd-safer (Makefile.am): Likewise.
42167         * modules/unlinkdir (Makefile.am): Likewise.
42168         * modules/unlocked-io (Makefile.am): Likewise.
42169         * modules/userspec (Makefile.am): Likewise.
42170         * modules/utime (Makefile.am): Likewise.
42171         * modules/utimecmp (Makefile.am): Likewise.
42172         * modules/utimens (Makefile.am): Likewise.
42173         * modules/vasnprintf (Makefile.am): Likewise.
42174         * modules/vasprintf (Makefile.am): Likewise.
42175         * modules/vsnprintf (Makefile.am): Likewise.
42176         * modules/xalloc (Makefile.am): Likewise.
42177         * modules/xgetcwd (Makefile.am): Likewise.
42178         * modules/xnanosleep (Makefile.am): Likewise.
42179         * modules/xreadlink (Makefile.am): Likewise.
42180         * modules/xstrtod (Makefile.am): Likewise.
42181         * modules/xstrtol (Makefile.am): Likewise.
42182         * modules/xstrtold (Makefile.am): Likewise.
42183         * modules/yesno (Makefile.am): Likewise.
42184         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42185
42186 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         * modules/error (Makefile.am): Distribute files through
42189         EXTRA_DIST, not lib_SOURCES.
42190
42191 2006-10-12  Eric Blake  <ebb9@byu.net>
42192
42193         * modules/error (Makefile.am): Distribute files in /lib.
42194         * modules/obstack (Makefile.am): Likewise.
42195
42196 2006-10-12  Bruno Haible  <bruno@clisp.org>
42197
42198         * modules/acl (Makefile.am): Distribute all files in lib/ through
42199         EXTRA_DIST.
42200         * modules/arcfour (Makefile.am): Likewise.
42201         * modules/arctwo (Makefile.am): Likewise.
42202         * modules/argmatch (Makefile.am): Likewise.
42203         * modules/argz (Makefile.am): Likewise.
42204         * modules/atexit (Makefile.am): Likewise.
42205         * modules/backupfile (Makefile.am): Likewise.
42206         * modules/c-strtod (Makefile.am): Likewise.
42207         * modules/c-strtold (Makefile.am): Likewise.
42208         * modules/calloc (Makefile.am): Likewise.
42209         * modules/canon-host (Makefile.am): Likewise.
42210         * modules/canonicalize (Makefile.am): Likewise.
42211         * modules/chdir-long (Makefile.am): Likewise.
42212         * modules/chdir-safer (Makefile.am): Likewise.
42213         * modules/check-version (Makefile.am): Likewise.
42214         * modules/chown (Makefile.am): Likewise.
42215         * modules/cloexec (Makefile.am): Likewise.
42216         * modules/close-stream (Makefile.am): Likewise.
42217         * modules/closeout (Makefile.am): Likewise.
42218         * modules/crc (Makefile.am): Likewise.
42219         * modules/cycle-check (Makefile.am): Likewise.
42220         * modules/des (Makefile.am): Likewise.
42221         * modules/dirfd (Makefile.am): Likewise.
42222         * modules/dirname (Makefile.am): Likewise.
42223         * modules/dup2 (Makefile.am): Likewise.
42224         * modules/euidaccess (Makefile.am): Likewise.
42225         * modules/exclude (Makefile.am): Likewise.
42226         * modules/exitfail (Makefile.am): Likewise.
42227         * modules/fcntl-safer (Makefile.am): Likewise.
42228         * modules/file-type (Makefile.am): Likewise.
42229         * modules/fileblocks (Makefile.am): Likewise.
42230         * modules/filemode (Makefile.am): Likewise.
42231         * modules/filenamecat (Makefile.am): Likewise.
42232         * modules/fnmatch (Makefile.am): Likewise.
42233         * modules/fopen-safer (Makefile.am): Likewise.
42234         * modules/fpending (Makefile.am): Likewise.
42235         * modules/fprintftime (Makefile.am): Likewise.
42236         * modules/free (Makefile.am): Likewise.
42237         * modules/fsusage (Makefile.am): Likewise.
42238         * modules/ftruncate (Makefile.am): Likewise.
42239         * modules/fts (Makefile.am): Likewise.
42240         * modules/gc (Makefile.am): Likewise.
42241         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42242         * modules/getaddrinfo (Makefile.am): Likewise.
42243         * modules/getcwd (Makefile.am): Likewise.
42244         * modules/getdelim (Makefile.am): Likewise.
42245         * modules/getdomainname (Makefile.am): Likewise.
42246         * modules/getgroups (Makefile.am): Likewise.
42247         * modules/gethostname (Makefile.am): Likewise.
42248         * modules/gethrxtime (Makefile.am): Likewise.
42249         * modules/getline (Makefile.am): Likewise.
42250         * modules/getloadavg (Makefile.am): Likewise.
42251         * modules/getlogin_r (Makefile.am): Likewise.
42252         * modules/getopt (Makefile.am): Likewise.
42253         * modules/getpass (Makefile.am): Likewise.
42254         * modules/getpass-gnu (Makefile.am): Likewise.
42255         * modules/getsubopt (Makefile.am): Likewise.
42256         * modules/gettime (Makefile.am): Likewise.
42257         * modules/gettimeofday (Makefile.am): Likewise.
42258         * modules/getugroups (Makefile.am): Likewise.
42259         * modules/getusershell (Makefile.am): Likewise.
42260         * modules/glob (Makefile.am): Likewise.
42261         * modules/group-member (Makefile.am): Likewise.
42262         * modules/hard-locale (Makefile.am): Likewise.
42263         * modules/hash (Makefile.am): Likewise.
42264         * modules/hmac-md5 (Makefile.am): Likewise.
42265         * modules/hmac-sha1 (Makefile.am): Likewise.
42266         * modules/human (Makefile.am): Likewise.
42267         * modules/idcache (Makefile.am): Likewise.
42268         * modules/imaxabs (Makefile.am): Likewise.
42269         * modules/imaxdiv (Makefile.am): Likewise.
42270         * modules/inet_ntop (Makefile.am): Likewise.
42271         * modules/inet_pton (Makefile.am): Likewise.
42272         * modules/inttostr (Makefile.am): Likewise.
42273         * modules/isapipe (Makefile.am): Likewise.
42274         * modules/lchown (Makefile.am): Likewise.
42275         * modules/long-options (Makefile.am): Likewise.
42276         * modules/lstat (Makefile.am): Likewise.
42277         * modules/malloc (Makefile.am): Likewise.
42278         * modules/mathl (Makefile.am): Likewise.
42279         * modules/mbchar (Makefile.am): Likewise.
42280         * modules/md2 (Makefile.am): Likewise.
42281         * modules/md4 (Makefile.am): Likewise.
42282         * modules/md5 (Makefile.am): Likewise.
42283         * modules/memcasecmp (Makefile.am): Likewise.
42284         * modules/memchr (Makefile.am): Likewise.
42285         * modules/memcmp (Makefile.am): Likewise.
42286         * modules/memcoll (Makefile.am): Likewise.
42287         * modules/memcpy (Makefile.am): Likewise.
42288         * modules/memmem (Makefile.am): Likewise.
42289         * modules/memmove (Makefile.am): Likewise.
42290         * modules/mempcpy (Makefile.am): Likewise.
42291         * modules/memrchr (Makefile.am): Likewise.
42292         * modules/memset (Makefile.am): Likewise.
42293         * modules/memxor (Makefile.am): Likewise.
42294         * modules/mkancesdirs (Makefile.am): Likewise.
42295         * modules/mkdir (Makefile.am): Likewise.
42296         * modules/mkdir-p (Makefile.am): Likewise.
42297         * modules/mkdtemp (Makefile.am): Likewise.
42298         * modules/mkstemp (Makefile.am): Likewise.
42299         * modules/mktime (Makefile.am): Likewise.
42300         * modules/modechange (Makefile.am): Likewise.
42301         * modules/mountlist (Makefile.am): Likewise.
42302         * modules/nanosleep (Makefile.am): Likewise.
42303         * modules/openat (Makefile.am): Likewise.
42304         * modules/pagealign_alloc (Makefile.am): Likewise.
42305         * modules/physmem (Makefile.am): Likewise.
42306         * modules/poll (Makefile.am): Likewise.
42307         * modules/posixtm (Makefile.am): Likewise.
42308         * modules/posixver (Makefile.am): Likewise.
42309         * modules/putenv (Makefile.am): Likewise.
42310         * modules/quote (Makefile.am): Likewise.
42311         * modules/quotearg (Makefile.am): Likewise.
42312         * modules/raise (Makefile.am): Likewise.
42313         * modules/read-file (Makefile.am): Likewise.
42314         * modules/readline (Makefile.am): Likewise.
42315         * modules/readlink (Makefile.am): Likewise.
42316         * modules/readtokens (Makefile.am): Likewise.
42317         * modules/readutmp (Makefile.am): Likewise.
42318         * modules/realloc (Makefile.am): Likewise.
42319         * modules/regex (Makefile.am): Likewise.
42320         * modules/rename (Makefile.am): Likewise.
42321         * modules/rename-dest-slash (Makefile.am): Likewise.
42322         * modules/rijndael (Makefile.am): Likewise.
42323         * modules/rmdir (Makefile.am): Likewise.
42324         * modules/rpmatch (Makefile.am): Likewise.
42325         * modules/safe-read (Makefile.am): Likewise.
42326         * modules/safe-write (Makefile.am): Likewise.
42327         * modules/same (Makefile.am): Likewise.
42328         * modules/save-cwd (Makefile.am): Likewise.
42329         * modules/savedir (Makefile.am): Likewise.
42330         * modules/setenv (Makefile.am): Likewise.
42331         * modules/settime (Makefile.am): Likewise.
42332         * modules/sha1 (Makefile.am): Likewise.
42333         * modules/sig2str (Makefile.am): Likewise.
42334         * modules/snprintf (Makefile.am): Likewise.
42335         * modules/stdlib-safer (Makefile.am): Likewise.
42336         * modules/stpcpy (Makefile.am): Likewise.
42337         * modules/stpncpy (Makefile.am): Likewise.
42338         * modules/strcase (Makefile.am): Likewise.
42339         * modules/strcasestr (Makefile.am): Likewise.
42340         * modules/strchrnul (Makefile.am): Likewise.
42341         * modules/strcspn (Makefile.am): Likewise.
42342         * modules/strdup (Makefile.am): Likewise.
42343         * modules/strerror (Makefile.am): Likewise.
42344         * modules/strftime (Makefile.am): Likewise.
42345         * modules/strndup (Makefile.am): Likewise.
42346         * modules/strnlen (Makefile.am): Likewise.
42347         * modules/strpbrk (Makefile.am): Likewise.
42348         * modules/strsep (Makefile.am): Likewise.
42349         * modules/strstr (Makefile.am): Likewise.
42350         * modules/strtod (Makefile.am): Likewise.
42351         * modules/strtoimax (Makefile.am): Likewise.
42352         * modules/strtok_r (Makefile.am): Likewise.
42353         * modules/strtol (Makefile.am): Likewise.
42354         * modules/strtoll (Makefile.am): Likewise.
42355         * modules/strtoul (Makefile.am): Likewise.
42356         * modules/strtoull (Makefile.am): Likewise.
42357         * modules/strtoumax (Makefile.am): Likewise.
42358         * modules/strverscmp (Makefile.am): Likewise.
42359         * modules/time_r (Makefile.am): Likewise.
42360         * modules/timegm (Makefile.am): Likewise.
42361         * modules/tmpfile-safer (Makefile.am): Likewise.
42362         * modules/unistd-safer (Makefile.am): Likewise.
42363         * modules/unlinkdir (Makefile.am): Likewise.
42364         * modules/userspec (Makefile.am): Likewise.
42365         * modules/utime (Makefile.am): Likewise.
42366         * modules/utimecmp (Makefile.am): Likewise.
42367         * modules/utimens (Makefile.am): Likewise.
42368         * modules/vasnprintf (Makefile.am): Likewise.
42369         * modules/vasprintf (Makefile.am): Likewise.
42370         * modules/vsnprintf (Makefile.am): Likewise.
42371         * modules/xalloc (Makefile.am): Likewise.
42372         * modules/xgetcwd (Makefile.am): Likewise.
42373         * modules/xnanosleep (Makefile.am): Likewise.
42374         * modules/xreadlink (Makefile.am): Likewise.
42375         * modules/xstrtod (Makefile.am): Likewise.
42376         * modules/xstrtol (Makefile.am): Likewise.
42377         * modules/xstrtold (Makefile.am): Likewise.
42378         * modules/yesno (Makefile.am): Likewise.
42379
42380 2006-10-12  Jim Meyering  <jim@meyering.net>
42381
42382         * m4/getloadavg.m4: Revert the change below.
42383
42384         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42385         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42386         fail with a symlink, which is what coreutils' ./bootstrap now
42387         creates by default.
42388
42389 2006-10-12  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42392         mingw.
42393         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42394         MSVC and mingw explicitly.
42395
42396 2006-10-11  Simon Josefsson  <jas@extundo.com>
42397             Bruno Haible  <bruno@clisp.org>
42398
42399         Add support for multiple gnulib-tool invocations in the scope of a
42400         single configure.ac file.
42401         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42402         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42403         with the same contents as the _LIBADD variable.
42404         (func_emit_initmacro_start, func_emit_initmacro_end,
42405         func_emit_initmacro_done): New functions.
42406         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42407         gl_LIBOBJS and gl_LTLIBOBJS.
42408
42409 2006-10-11  Bruno Haible  <bruno@clisp.org>
42410
42411         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42412         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42413         autoreconf. Instead, invoke autopoint explicitly but move back the
42414         *.m4 files from gnulib.
42415
42416 2006-10-11  Bruno Haible  <bruno@clisp.org>
42417
42418         * gnulib-tool (func_usage): Make module names after --create-testdir
42419         optional.
42420         (func_create_testdir): If no module was specified, use nearly all
42421         modules.
42422
42423 2006-10-12  Jim Meyering  <jim@meyering.net>
42424
42425         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42426         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42427         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42428         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42429         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42430         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42431         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42432         (fts_set_stat_required): New function.
42433         (fts_open): Defer the calls to fts_stat, if possible or requested.
42434         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42435         into fts_stat itself.
42436         (fts_read): Perform any required (deferred) fts_stat call.
42437         (fts_build): Likewise, for the directory we're about to open and read.
42438         In the readdir loop, carefully decide whether each entry will require
42439         an eventual call to fts_stat, using dirent.d_type info if available.
42440         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42441         a command line argument into this function.  Update all callers.
42442         Map a return value of FTS_DOT to FTS_D for a command line argument.
42443         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42444         Thanks to Miklos Szeredi for his tenacity and for the initial
42445         bug report about "find" failing on a FUSE-based file system.
42446
42447         * lib/fts.c (fts_open): Use consistent indentation.
42448
42449 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42450
42451         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42452         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42453         reported by Jim Meyering.  All uses of cache variables renamed
42454         to match Autoconf's.
42455         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42456         the other one.
42457
42458         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42459         Fix misspelling in diagnostic.
42460
42461 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42462
42463         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42464         defined.  Problem reported by Matthew Woehlke.
42465
42466         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42467         Add support for Tandem NonStop R series.
42468         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42469         Use new macro.
42470
42471         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42472         (has_trailing_slash): Omit size arg; all callers changed.
42473         Omit 'inline', since it doesn't help performance and we'd
42474         need to configure it.
42475         Don't count //, ///, etc. as having a trailing slash.
42476         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42477         (rpl_rename_dest_slash): On failure, use rename's errno rather
42478         than (in some cases) an incorrect or junk errno.
42479         Simplify code by removing need to compute length; this does
42480         cause it to make two passes instead of one over the file name,
42481         but it's worth it.
42482
42483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42484         change, since Autoconf's version may no longer be appropriate now
42485         that we are using CVS Autoconf's version.  Add support for Tandem.
42486
42487 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42488             Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42491         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42492         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42493         gl_AC_TYPE_LONG_LONG.
42494
42495         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42496         instead of HAVE_LONG_LONG.
42497         * lib/printf-args.c (printf_fetchargs): Likewise.
42498         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42499         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42500         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42501         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42502         gl_AC_TYPE_LONG_LONG.
42503
42504 2006-10-11  Bruno Haible  <bruno@clisp.org>
42505
42506         * m4/longlong.m4: Add comments.
42507         * m4/ulonglong.m4: Likewise.
42508
42509 2006-10-10  Bruno Haible  <bruno@clisp.org>
42510
42511         Make it possible to #define stpcpy, strdup to aliases.
42512         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42513         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42514
42515 2006-10-10  Bruno Haible  <bruno@clisp.org>
42516
42517         Make it possible to #define gcd to an alias.
42518         * lib/gcd.c: Include config.h.
42519
42520 2006-10-10  Bruno Haible  <bruno@clisp.org>
42521
42522         Make it possible to #define c_isascii to an alias.
42523         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42524         defined. Undefine the macros before defining them, to avoid gcc
42525         warnings.
42526         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42527         define NO_C_CTYPE_MACROS early.
42528
42529 2006-10-10  Bruno Haible  <bruno@clisp.org>
42530
42531         Make it possible to #define set_program_name to an alias.
42532         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42533         ENABLE_RELOCATABLE early.
42534
42535 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42536
42537         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42538         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42539         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42540         More generally, don't assume that 64-bit signed int is available
42541         if unsigned int is, and vice versa.
42542         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42543         unsigned symbols, not on their signed counterparts.
42544         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42545         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42546         (UINT64_C, UINTMAX_C):
42547         Likewise.
42548         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42549         unsigned counterparts.
42550         (Have_long_long, Unsigned): New macros.
42551         (Int): Renamed from INT.
42552         (strtoimax): Use the new macros.
42553         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42554         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42555         * modules/inttypes (inttypes.h): Substitute
42556         HAVE_UNSIGNED_LONG_LONG_INT.
42557         * modules/stdint (stdint.h): Likewise.
42558         (Files): Add m4/ulonglong.m4.
42559
42560 2006-10-10  Bruno Haible  <bruno@clisp.org>
42561
42562         Fix a gcc -Wshadow warning.
42563         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42564         to 'bucket'.
42565         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42566         gl_linked_indexof_from_to): Likewise.
42567         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42568         Likewise.
42569         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42570         Likewise.
42571         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42572         Reported by Eric Blake.
42573
42574 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42575
42576         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42577         for NetBSD.  Problem reported by Bruno Haible.
42578
42579 2006-10-09  Jim Meyering  <jim@meyering.net>
42580
42581         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42582         Patch from Bruno Haible.
42583
42584 2006-10-09  Jim Meyering  <jim@meyering.net>
42585
42586         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42587         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42588         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42589
42590 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42591
42592         Don't include <config.h> twice; this doesn't work in some cases,
42593         e.g., when config.h has "#define intmax_t long long int" and
42594         we include <config.h>, <inttypes.h>, <config.h> in that order.
42595         Problem reported by Matthew Woehlke in:
42596         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42597         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42598         * lib/fts-cycle.c: Don't include config.h.
42599         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42600         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42601         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42602         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42603         inttypes.h.
42604         * lib/xstrtoumax.c: Likewise.
42605         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42606         __strtol and the like, so that this module is more like its siblings.
42607         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42608         Remove; no longer needed now that we assume gnulib inttypes.h.
42609
42610 2006-10-08  Bruno Haible  <bruno@clisp.org>
42611
42612         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42613         option.
42614
42615 2006-10-07  Jim Meyering  <jim@meyering.net>
42616
42617         * modules/inttypes (inttypes.h): Revert what seems to have been
42618         an inadvertent part of today's change: use "|", not "/" in the
42619         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
42620
42621 2006-10-07  Bruno Haible  <bruno@clisp.org>
42622
42623         * modules/sublist: New file.
42624
42625 2006-10-07  Bruno Haible  <bruno@clisp.org>
42626
42627         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
42628         * modules/argz (argz.h): Likewise.
42629         * modules/arpa_inet (arpa/inet.h): Likewise.
42630         * modules/byteswap (byteswap.h): Likewise.
42631         * modules/configmake (configmake.h): Likewise.
42632         * modules/fcntl (fcntl.h): Likewise.
42633         * modules/fnmatch (fnmatch.h): Likewise.
42634         * modules/getopt (getopt.h): Likewise.
42635         * modules/glob (glob.h): Likewise.
42636         * modules/inttypes (inttypes.h): Likewise.
42637         * modules/netinet_in (netinet/in.h): Likewise.
42638         * modules/poll (poll.h): Likewise.
42639         * modules/stdbool (stdbool.h): Likewise.
42640         * modules/stdint (stdint.h): Likewise.
42641         * modules/sys_select (sys/select.h): Likewise.
42642         * modules/sys_socket (sys/socket.h): Likewise.
42643         * modules/sys_stat (sys/stat.h): Likewise.
42644         * modules/sysexits (sysexits.h): Likewise.
42645         * modules/unistd (unistd.h): Likewise.
42646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42647         Add a "DO NOT EDIT" comment to the generated file.
42648         (func_import): Likewise for gnulib-comp.m4.
42649
42650 2006-10-07  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/gl_sublist.h: New file.
42653         * lib/gl_sublist.c: New file.
42654
42655 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42656
42657         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
42658         name (relative to the original working directory) and the file
42659         name component (relative to the temporary working directory).  All
42660         callers changed.
42661         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
42662         * lib/mkdir-p.c (make_dir_parents): Likewise.
42663         * lib/mkdir-p.h (make_dir_parents): Likewise.
42664
42665 2006-10-06  Eric Blake  <ebb9@byu.net>
42666
42667         Define several macros for use by the clean-temp module.
42668         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
42669         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
42670         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
42671
42672         * lib/clean-temp.h (close_stream_temp): New declaration.
42673         * lib/clean-temp.c (includes): Pull in headers according to what
42674         other modules are in use.
42675         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
42676
42677 2006-10-06  Bruno Haible  <bruno@clisp.org>
42678
42679         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
42680         instead of fopen, fwriteerror.
42681
42682 2006-10-06  Bruno Haible  <bruno@clisp.org>
42683
42684         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
42685         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
42686         int.
42687         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
42688         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
42689         Return an error indicator.
42690         Suggested by Eric Blake.
42691
42692 2006-10-06  Bruno Haible  <bruno@clisp.org>
42693
42694         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
42695         Reported by Eric Blake.
42696
42697 2006-10-06  Bruno Haible  <bruno@clisp.org>
42698
42699         * modules/closeout (Description): Mention stderr too.
42700
42701 2006-10-06  Bruno Haible  <bruno@clisp.org>
42702         and Paul Eggert  <eggert@cs.ucla.edu>
42703
42704         * lib/closeout.c (close_stdout): Also close stderr.
42705         * lib/closeout.h: Update comment.
42706
42707 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42708
42709         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
42710         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
42711         * lib/dirchownmod.c: Include lchown.h.
42712         * lib/lchown.c: Don't include files that lchown.h now includes.
42713         Don't declare chown, since lchown.h now does that.
42714         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
42715         (lchown): Define to rpl_chown if lchown is declared but
42716         does not exist.  Declare using a prototype if lchown is not
42717         declared.  Add a copyright notice.
42718         * lib/mkstemp.h: Include <unistd.h>.
42719         * lib/openat.c: Include lchown.h.
42720
42721         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
42722         we now test for that separately.
42723         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
42724         rather than O_NOFOLLOW, when testing whether it's possible to
42725         avoid a race condition reliably.
42726         * lib/savewd.c (savewd_chdir): Likewise.
42727
42728         Remove macros that are no longer needed now that stdint.h is
42729         reliable.
42730         * lib/fsusage.c (UINTMAX_MAX): Remove.
42731         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
42732         * lib/utimecmp.c (SIZE_MAX): Remove.
42733
42734         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
42735
42736         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
42737         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
42738         O_NOATIME works.
42739
42740 2006-10-05  Bruno Haible  <bruno@clisp.org>
42741
42742         * lib/gl_list.h (gl_sortedlist_search_from_to,
42743         gl_sortedlist_indexof_from_to): New declarations.
42744         (gl_list_implementation): New fields sortedlist_search_from_to,
42745         sortedlist_indexof_from_to.
42746         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
42747         inline functions.
42748         * lib/gl_list.c (gl_sortedlist_search_from_to,
42749         gl_sortedlist_indexof_from_to): New functions.
42750         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
42751         function.
42752         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
42753         (gl_array_sortedlist_search_from_to): New function.
42754         (gl_array_list_implementation): Update.
42755         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
42756         function.
42757         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
42758         (gl_carray_sortedlist_search_from_to): New function.
42759         (gl_carray_list_implementation): Update.
42760         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
42761         gl_linked_sortedlist_indexof_from_to): New functions.
42762         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42763         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42764         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
42765         gl_tree_sortedlist_indexof_from_to): New functions.
42766         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42767         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42768         Update.
42769         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42770         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
42771         Update.
42772
42773 2006-10-05  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
42776         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
42777         (struct gl_list_implementation): Add fields search_from_to,
42778         indexof_from_to. Remove fields search, indexof.
42779         (gl_list_search): Use the search_from_to method.
42780         (gl_list_search_from, gl_list_search_from_to): New functions.
42781         (gl_list_indexof): Use the indexof_from_to method.
42782         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42783         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
42784         (gl_list_search_from, gl_list_search_from_to): New functions.
42785         (gl_list_indexof): Use the indexof_from_to method.
42786         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
42787         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
42788         gl_array_indexof. Add start_index, end_index arguments.
42789         (gl_array_search_from_to): Renamed from gl_array_search. Add
42790         start_index, end_index arguments.
42791         (gl_array_remove, gl_array_list_implementation): Update.
42792         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
42793         gl_carray_indexof. Add start_index, end_index arguments.
42794         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
42795         start_index, end_index arguments.
42796         (gl_carray_remove, gl_carray_list_implementation): Update.
42797         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
42798         gl_linked_search. Add start_index, end_index arguments.
42799         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
42800         start_index, end_index arguments.
42801         (gl_linked_remove): Update.
42802         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42803         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42804         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
42805         field to 'size_t'.
42806         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
42807         gl_tree_search. Add start_index, end_index arguments.
42808         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42809         start_index, end_index arguments.
42810         (gl_tree_remove): Update.
42811         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42812         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42813         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
42814         function.
42815         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
42816         gl_tree_search. Add start_index, end_index arguments.
42817         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
42818         start_index, end_index arguments.
42819         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42820         Update.
42821         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42822
42823 2006-10-05  Bruno Haible  <bruno@clisp.org>
42824
42825         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
42826
42827         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
42828         fwriteerror_temp): New declarations.
42829         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
42830         (descriptors): New variable.
42831         (cleanup): First, close the descriptors.
42832         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
42833         fclose_temp, fwriteerror_temp): New functions.
42834
42835 2006-10-04  Jim Meyering  <jim@meyering.net>
42836
42837         * lib/fts.c (fts_open): Tiny comment change.
42838
42839 2006-10-04  Bruno Haible  <bruno@clisp.org>
42840
42841         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
42842         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
42843         gl_LOCK_BODY.
42844         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
42845         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
42846         gl_LOCK_EARLY_BODY.
42847         (gl_LOCK): Require gl_LOCK_BODY.
42848
42849 2006-10-04  Bruno Haible  <bruno@clisp.org>
42850
42851         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
42852         (gl_oset_search_atleast): New declaration.
42853         (struct gl_oset_implementation): Add field 'search_atleast'.
42854         (gl_oset_search_atleast): New inline function.
42855         * lib/gl_oset.c (gl_oset_search_atleast): New function.
42856         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
42857         (gl_array_oset_implementation): Update.
42858         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
42859         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
42860         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
42861
42862 2006-10-04  Bruno Haible  <bruno@clisp.org>
42863
42864         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
42865
42866 2006-10-03  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
42869         from gl_avltreehash_list_implementation.
42870
42871 2006-10-03  Bruno Haible  <bruno@clisp.org>
42872
42873         * lib/gl_oset.c (gl_oset_add): Fix return type.
42874
42875 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
42876
42877         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
42878
42879 2006-10-02  Eric Blake  <ebb9@byu.net>
42880
42881         * modules/strnlen (Depends-on): Add extensions.
42882
42883 2006-10-02  Eric Blake  <ebb9@byu.net>
42884
42885         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
42886         definition in 2.60+.
42887
42888 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
42889
42890         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
42891         checks.
42892
42893 2006-10-02  Bruno Haible  <bruno@clisp.org>
42894
42895         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
42896         to the AUTOMAKE_OPTIONS.
42897         Reported by Jim Meyering.
42898
42899 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
42900
42901         Work around bug in Solaris 10 /proc file system:
42902         /proc/self/fd/NNN/.. isn't the parent directory of
42903         the directory whose file descriptor is NNN.  This needs to
42904         be worked around at run time, not compile time, since a
42905         program might be built on Solaris 8, where things work, and
42906         run on Solaris 10.
42907         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
42908         to use the following interface instead:
42909         (OPENAT_BUFFER_SIZE): New macro.
42910         (openat_proc_name): New function.
42911         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
42912         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
42913         Likewise.
42914         * lib/openat-proc.c: New file.
42915         * modules/openat (Files): Add lib/openat-proc.c.
42916         (Depends-on): Add same-inode, stdbool.
42917         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
42918
42919 2006-09-29  Bruno Haible  <bruno@clisp.org>
42920
42921         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
42922         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
42923         argument. Set stdout_closed before testing for ferror, not after.
42924         (fwriteerror, fwriteerror_no_ebadf): New functions.
42925
42926 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42927
42928         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
42929
42930 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
42931
42932         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
42933         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
42934
42935 2006-09-28  Jim Meyering  <jim@meyering.net>
42936
42937         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
42938         Include <unistd.h>.
42939
42940 2006-09-28  Bruno Haible  <bruno@clisp.org>
42941
42942         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
42943         * modules/linkedhash-list (Depends-on): Likewise.
42944         * modules/rbtreehash-list (Depends-on): Likewise.
42945
42946 2006-09-28  Bruno Haible  <bruno@clisp.org>
42947
42948         * lib/strndup.h: Simplify the redefinition of strndup.
42949         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
42950         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
42951
42952 2006-09-28  Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
42955         * lib/gl_linkedhash_list.c: Likewise.
42956         * lib/gl_rbtreehash_list.c: Likewise.
42957
42958 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
42959
42960         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
42961         getaddrinfo.
42962
42963         * lib/__fpending.h: Don't include <stdio_ext.h> unless
42964         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
42965         it causes <stdio_ext.h> to cause a compile-time error.
42966         Problem reported by Nelson H. F. Beebe.
42967         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
42968         of HAVE_DECL___PENDING.
42969
42970         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
42971         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
42972         declaration.
42973
42974 2006-09-27  Jim Meyering  <jim@meyering.net>
42975
42976         This file could end up with a definition for a function
42977         named __strndup, rather than rpl_strndup on a system with
42978         incomplete weak_alias support.
42979         * lib/strndup.c (strndup): Rename from __strndup.
42980         Remove #defines that used to map __strndup to strndup.
42981         Don't use K&R prototypes.
42982         Remove LIBC-related code, since this file is not sync'd with glibc.
42983         * lib/strndup.h: Revamp, accordingly.
42984         * m4/strndup.m4: Modernize.
42985
42986 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
42987
42988         * modules/savewd (Depends-on): Add 'raise'.
42989         * lib/savewd.c: Include <signal.h>, for 'raise'.
42990
42991 2006-09-26  Jim Meyering  <jim@meyering.net>
42992
42993         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
42994         when we detect Darwin 8.7.0's acl_get_file bug.
42995         Rearrange to perform the new (below) run-test while $LIBS
42996         contains any acl-related library.  Set USE_ACL at the end.
42997         (gl_ACL_GET_FILE): New function.
42998
42999 2006-09-26  Eric Blake  <ebb9@byu.net>
43000
43001         * lib/verror.c: Include <config.h> unconditionally.
43002
43003 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43004
43005         * modules/clock-time (Maintainer): Add self.
43006         * modules/getlogin_r (Depends-on): Add extensions.
43007
43008 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43009
43010         * modules/clock-time: New module.
43011         * modules/nanosleep (Depends-on): Add clock-time.
43012         * modules/gethrxtime (Depends-on): Likewise.
43013         * modules/gettime (Depends-on): Likewise.
43014         * modules/settime (Depends-on): Likewise.
43015
43016         * modules/fts-lgpl: Depend on openat.
43017         * modules/mkancesdirs: Depend on savewd.
43018         * modules/mkdir-p: Likewise.
43019
43020 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43021
43022         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43023
43024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43025         `gl_have_arbitrary_file_name_length_limit' to
43026         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43027         actually works between configure runs.
43028
43029 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43030             Bruno Haible  <bruno@clisp.org>
43031
43032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43033
43034 2006-09-25  Jim Meyering  <jim@meyering.net>
43035
43036         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43037         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43038
43039 2006-09-25  Eric Blake  <ebb9@byu.net>
43040
43041         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43042         exec's in 2006-09-18 patch when shuffling fds.
43043
43044 2006-09-25  Bruno Haible  <bruno@clisp.org>
43045
43046         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43047         Reported by Jim Meyering.
43048
43049 2006-09-24  Jim Meyering  <jim@meyering.net>
43050
43051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43052         compare a pointer against a literal "0".  That caused failures with
43053         at least HP-UX's hpcc.
43054
43055 2006-09-22  Simon Josefsson  <jas@extundo.com>
43056
43057         * modules/gc-sha1:
43058         * modules/gc-md4:
43059         * modules/gc-hmac-sha1:
43060         * modules/gc-hmac-md5:
43061         * modules/gc-des:
43062         * modules/gc-arcfour: Distribute more files.
43063
43064 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43065
43066         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43067         (gl_linked_iterator_from_to): Initialize struct completely.
43068         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43069         (gl_tree_iterator_from_to): Likewise
43070         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43071         * lib/gl_array_list.c [lint] (gl_array_iterator)
43072         (gl_array_iterator_from_to): Likewise.
43073         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43074         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43075         (gl_carray_iterator_from_to): Likewise.
43076
43077         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43078         * lib/md4.c (md4_process_block): Remove unused variable.
43079         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43080         parentheses for clarity.
43081
43082 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43083
43084         * modules/bison-i18n (Depends-on): Add gettext.
43085
43086 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43087
43088         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43089         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43090         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43091         also add missing comma that caused broken test.
43092         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43093         stdlib.h, for `abort'.
43094         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43095         variables.
43096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43097         include unistd.h if present, for `rmdir'.
43098         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43099         variables.
43100         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43101         in the process include standard headers for prototypes.
43102         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43103         gets declared on GNU/Linux.
43104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43105         unistd.h, for `rmdir'.
43106         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43107
43108         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43109         always true.
43110         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43111
43112         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43113
43114 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43115
43116         * gnulib-tool (func_version): Create output all at once.  This
43117         may help avoid triggering unnecessary SIGPIPEs, and at any
43118         rate it doesn't hurt.
43119
43120 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43121             Bruno Haible  <bruno@clisp.org>
43122
43123         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43124         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43125         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43126
43127         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43128         (gl_FUNC_VASPRINTF): Invoke it.
43129
43130 2006-09-22  Bruno Haible  <bruno@clisp.org>
43131
43132         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43133         getloadavg.c as first argument.
43134
43135 2006-09-22  Bruno Haible  <bruno@clisp.org>
43136
43137         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43138         at the beginning of the gl_INIT macro.
43139         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43140         gl_GETLOADAVG.
43141
43142 2006-09-22  Bruno Haible  <bruno@clisp.org>
43143
43144         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43145         module.
43146         Suggested by Ralf Wildenhues.
43147
43148 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43149
43150         Import this patch from libc:
43151
43152         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43153
43154         * lib/regex_internal.c (re_string_reconstruct): Handle
43155         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43156         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43157         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43158         re_string_context_at.
43159
43160         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43161         now requires it.
43162         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43163         gl_REGEX now does it for us.
43164         (gl_REGEX): Add test taken from
43165         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43166
43167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43168         Check that large offsets work.  Modernize Autoconf usages.
43169         Prefer "yes" to mean a good thing rather than a bad.
43170         Don't put "#define mkstemp" in config.h, as this might interfere
43171         with standard system headers that "#define mkstemp mkstemp64".
43172
43173         * modules/mkstemp (Depends-on): Add extensions, so that
43174         mkstemp is visible on some platforms.
43175         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43176         (Include): Change to "mkstemp.h" from <stdlib.h>.
43177         (Files): Add mkstemp.h.
43178
43179         * lib/mkstemp.h: New file, since some standard headers
43180         #define mkstemp.
43181         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43182         Include "mkstemp.h".
43183         Make the _LIBC code resemble glibc original more,
43184         e.g., use K&R style.
43185         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43186         (mkstemp): Remove, since mkstemp.h does this for us.
43187         * lib/stdlib--.h: Include mkstemp.h.
43188
43189         Import this patch from libc:
43190
43191         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43192
43193         * lib/tempname.c (__gen_tempname): Change attempts_min
43194         into a macro.  Use preprocessor to decide how to initialize
43195         attempts [Coverity CID 67].
43196
43197 2006-09-20  Bruno Haible  <bruno@clisp.org>
43198
43199         * lib/mkdtemp.c: Import from libc.
43200         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43201                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43202                 attempts_min into a macro.  Use preprocessor to decide how to
43203                 initialize attempts [Coverity CID 67].
43204         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43205                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43206                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43207
43208 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43209
43210         * gnulib-tool (func_exit): New function, to allow to pass the
43211         exit status portably through the trap.  Use everywhere.
43212         (--help, --version): Signal a write error.
43213         (trap): catch SIGPIPE, for write errors.
43214         Exit at the end of the trap, with the correct exit status.
43215
43216 2006-09-19  Karl Berry  <karl@gnu.org>
43217
43218         * doc/gnulib.texi: note about the license texinfo files.
43219
43220 2006-09-19  Eric Blake  <ebb9@byu.net>
43221
43222         * gnulib-tool: Avoid space-tab.
43223
43224 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43225
43226         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43227         that prevented coreutils 6.1 from building.  Problem reported
43228         by Petter Reinholdtsen.
43229
43230 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43231
43232         * gnulib-tool (avoidlist): Fix typo that broke options like
43233         --avoid=lock that are used by coreutils bootstrap.
43234
43235 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43236
43237         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43238         more systematically.
43239
43240 2006-09-18  Jim Meyering  <jim@meyering.net>
43241
43242         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43243
43244 2006-09-18  Bruno Haible  <bruno@clisp.org>
43245
43246         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43247
43248 2006-09-18  Bruno Haible  <bruno@clisp.org>
43249
43250         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43251         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43252         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43253         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43254         * m4/gettext.m4: Require autoconf >= 2.52.
43255         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43256         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43257         of gl_cv_header_inttypes_h.
43258
43259 2006-09-18  Bruno Haible  <bruno@clisp.org>
43260
43261         * lib/javaversion.c: Include configmake.h.
43262
43263 2006-09-18  Bruno Haible  <bruno@clisp.org>
43264
43265         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43266         avoid that the while loops be executed in a subshell.
43267
43268 2006-09-18  Bruno Haible  <bruno@clisp.org>
43269
43270         * MODULES.html.sh (func_module): Break long lines.
43271         Suggested by Bruce Korb <bkorb@gnu.org>.
43272
43273 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43274
43275         Speed up by a factor of 1.12.
43276         * gnulib-tool (nl): New variable.
43277         (func_import): Rewrite include directive extraction to only read each
43278         directive once.
43279
43280 2006-09-17  Bruno Haible  <bruno@clisp.org>
43281
43282         * modules/javaversion (Makefile.am): Remove DEFS setting.
43283         (Depends-on): Add configmake, for PKGDATADIR definition.
43284
43285 2006-09-17  Bruno Haible  <bruno@clisp.org>
43286
43287         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43288
43289 2006-09-17  Bruno Haible  <bruno@clisp.org>
43290
43291         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43292         (func_modules_transitive_closure, func_modules_add_dummy,
43293         func_modules_to_filelist, func_import, func_create_testdir,
43294         func_create_megatestdir, ...): Use it wherever possible.
43295         Suggested by Ralf Wildenhues.
43296
43297 2006-09-16  Karl Berry  <karl@gnu.org>
43298
43299         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43300         to avoid sectioning errors.
43301         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43302         [ifinfo]: blank line after @center-ed titles.
43303         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43304         Spell FSF address consistently with others.
43305         (These changes approved by rms.)
43306
43307 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43308
43309         Speed up by a factor of 1.61.
43310         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43311         already checked module names again.
43312
43313 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43314
43315         Speed up by a factor of 1.13.
43316         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43317         for new_files, and the input to func_add_or_update.
43318
43319 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43320
43321         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43322         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43323
43324 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43325
43326         * modules/mkancesdirs (Depends-on): Add fcntl.
43327         * modules/savewd: New file.
43328         * MODULES.html.sh (File system functions): Add savewd.
43329
43330         * modules/configmake (Makefile.am): Add support for the
43331         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43332
43333 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43334
43335         * m4/savewd.m4: New file.
43336
43337 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43338
43339         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43340         (dirchownmod): New arg FD.  All callers changed.
43341         Use FD rather than opening the directory ourself, as opening is
43342         now the caller's responsibility.
43343         * lib/dirchownmod.h: Likewise.
43344         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43345         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43346         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43347         (test_dir): Remove.
43348         (mkancesdirs): Return length of prefix of FILE that has already
43349         been made, or -2 if there is a child doing the work.  Redo
43350         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43351         ".", and treat ".." specially since it might stray back into
43352         already-created areas.  Use a subprocess if necessary.  New arg
43353         WD; all users changed.  MAKE_DIR function should now return 1
43354         if it creates a directory that is not readable.  Return -2 if
43355         a child process is spun off.
43356         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43357         Adjust signature to match code.
43358         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43359         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43360         all users changed.
43361         * lib/savewd.c, lib/savewd.h: New files.
43362
43363 2006-09-15  Jim Meyering  <jim@meyering.net>
43364
43365         * modules/rename-dest-slash: New module.
43366         * MODULES.html.sh (posix_compat): Add it here.
43367
43368         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43369
43370 2006-09-15  Jim Meyering  <jim@meyering.net>
43371
43372         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43373         file.
43374
43375         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43376
43377 2006-09-15  Jim Meyering  <jim@meyering.net>
43378
43379         * lib/rename-dest-slash.c (has_trailing_slash): Use
43380         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43381         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43382         test before testing whether SRC is a directory.
43383         Suggestions from Bruno Haible.
43384
43385         Avoid a warning about an unused variable.
43386         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43387         into the #ifdef block where it's used.
43388
43389         * lib/rename-dest-slash.c: New file.
43390
43391 2006-09-14  Bruno Haible  <bruno@clisp.org>
43392
43393         * lib/allocsa.c: Include <config.h> unconditionally.
43394         * lib/asnprintf.c: Likewise.
43395         * lib/asprintf.c: Likewise.
43396         * lib/c-strcasecmp.c: Likewise.
43397         * lib/c-strcasestr.c: Likewise.
43398         * lib/c-strncasecmp.c: Likewise.
43399         * lib/c-strstr.c: Likewise.
43400         * lib/classpath.c: Likewise.
43401         * lib/clean-temp.c: Likewise.
43402         * lib/concatpath.c: Likewise.
43403         * lib/copy-file.c: Likewise.
43404         * lib/csharpcomp.c: Likewise.
43405         * lib/csharpexec.c: Likewise.
43406         * lib/execute.c: Likewise.
43407         * lib/fatal-signal.c: Likewise.
43408         * lib/findprog.c: Likewise.
43409         * lib/fwriteerror.c: Likewise.
43410         * lib/gl_array_list.c: Likewise.
43411         * lib/gl_array_oset.c: Likewise.
43412         * lib/gl_avltree_list.c: Likewise.
43413         * lib/gl_avltree_oset.c: Likewise.
43414         * lib/gl_avltreehash_list.c: Likewise.
43415         * lib/gl_carray_list.c: Likewise.
43416         * lib/gl_linked_list.c: Likewise.
43417         * lib/gl_linkedhash_list.c: Likewise.
43418         * lib/gl_list.c: Likewise.
43419         * lib/gl_oset.c: Likewise.
43420         * lib/gl_rbtree_list.c: Likewise.
43421         * lib/gl_rbtree_oset.c: Likewise.
43422         * lib/gl_rbtreehash_list.c: Likewise.
43423         * lib/imaxabs.c: Likewise.
43424         * lib/imaxdiv.c: Likewise.
43425         * lib/javacomp.c: Likewise.
43426         * lib/javaexec.c: Likewise.
43427         * lib/javaversion.c: Likewise.
43428         * lib/linebreak.c: Likewise.
43429         * lib/localcharset.c: Likewise.
43430         * lib/lock.c: Likewise.
43431         * lib/mbchar.c: Likewise.
43432         * lib/mbswidth.c: Likewise.
43433         * lib/mkdtemp.c: Likewise.
43434         * lib/pipe.c: Likewise.
43435         * lib/printf-args.c: Likewise.
43436         * lib/printf-parse.c: Likewise.
43437         * lib/progname.c: Likewise.
43438         * lib/progreloc.c: Likewise.
43439         * lib/readlink.c: Likewise.
43440         * lib/sh-quote.c: Likewise.
43441         * lib/stpcpy.c: Likewise.
43442         * lib/stpncpy.c: Likewise.
43443         * lib/strcasecmp.c: Likewise.
43444         * lib/strcasestr.c: Likewise.
43445         * lib/strcspn.c: Likewise.
43446         * lib/striconv.c: Likewise.
43447         * lib/strncasecmp.c: Likewise.
43448         * lib/strnlen1.c: Likewise.
43449         * lib/strstr.c: Likewise.
43450         * lib/strtok_r.c: Likewise.
43451         * lib/tls.c: Likewise.
43452         * lib/tmpdir.c: Likewise.
43453         * lib/unicodeio.c: Likewise.
43454         * lib/unsetenv.c: Likewise.
43455         * lib/vasnprintf.c: Likewise.
43456         * lib/vasprintf.c: Likewise.
43457         * lib/wait-process.c: Likewise.
43458         * lib/xallocsa.c: Likewise.
43459         * lib/xsetenv.c: Likewise.
43460         * lib/xstriconv.c: Likewise.
43461
43462 2006-09-13  Simon Josefsson  <jas@extundo.com>
43463
43464         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43465         that internally, suggested by Ralf Wildenhues
43466         <Ralf.Wildenhues@gmx.de>.
43467
43468 2006-09-13  Simon Josefsson  <jas@extundo.com>
43469
43470         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43471         @LIBOBJS@.
43472         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43473
43474 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43475
43476         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43477         longer worry about uses that don't define HAVE_CONFIG_H.
43478         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43479         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43480         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43481         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43482         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43483         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43484         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43485         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43486         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43487         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43488         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43489         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43490         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43491         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43492         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43493         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43494         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43495         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43496         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43497         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43498         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43499         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43500         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43501         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43502         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43503         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43504         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43505         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43506         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43507         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43508         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43509         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43510         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43511         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43512         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43513         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43514         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43515         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43516         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43517         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43518         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43519         Likewise.
43520
43521 2006-09-13  Eric Blake  <ebb9@byu.net>
43522
43523         * lib/getopt.c: Fix typo in last commit.
43524
43525 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43526
43527         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43528         dgettext.
43529
43530 2006-09-12  Jim Meyering  <jim@meyering.net>
43531
43532         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43533         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43534         Reported by Nelson H. F. Beebe.
43535
43536 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43537
43538         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43539         program_invocation_name and program_invocation_short_name are
43540         initialized.
43541         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43542         and program_invocation_short_name to argp.h, so they are visible
43543         to user programs.
43544         * lib/argp.h: Likewise
43545
43546 2006-09-10  Bruno Haible  <bruno@clisp.org>
43547
43548         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43549         m4/inttypes_h.m4, m4/uintmax_t.m4.
43550
43551 2006-09-10  Bruno Haible  <bruno@clisp.org>
43552
43553         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43554         gl_AC_TYPE_UINTMAX_T.
43555
43556 2006-09-10  Bruno Haible  <bruno@clisp.org>
43557
43558         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43559
43560 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43561
43562         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43563         convention.  Text proposed by Bruno Haible.
43564         (struct argp_option): Document the use of N_() wrappers.
43565
43566         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43567         '\v', and translate the two parts separately, instead of feeding
43568         the whole string to gettext.  This allows to exclude
43569         '\v' from the strings visible to the translator by writing doc
43570         strings as N_("..") "\v" N_("..").
43571
43572 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43573
43574         * config/srclist.txt: Undo latest change; the bug was fixed.
43575
43576 2006-09-09  Bruno Haible  <bruno@clisp.org>
43577
43578         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43579         assignments if building a library without libtool.
43580         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43581         in func_emit_lib_Makefile_am.
43582         (func_import): When building a static library libfoo.a, arrange to
43583         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43584         (func_create_testdir): Likewise.
43585         * modules/gc (configure.ac, Makefile.am): If building statically,
43586         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43587         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43588         * modules/striconv (configure.ac, Makefile.am): Likewise.
43589         Based on a suggestion by Ralf Wildenhues.
43590
43591 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43592
43593         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43594         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43595         Also:
43596
43597         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43598         Add year_2050_test to catch glibc bug 2821
43599         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43600
43601         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43602         Prefer #ifdef to #if.
43603
43604         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43605         Return from 'main' instead of calling 'exit'.
43606
43607 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43608
43609         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43610         returned the maximum time_t value rather than (time_t) -1.
43611         Problem originally reported by William Bardwell
43612         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43613
43614         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43615         Moved to here ...
43616         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43617         ... from here.
43618
43619 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43620
43621         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
43622         2821 is fixed.
43623
43624 2006-09-08  Jim Meyering  <jim@meyering.net>
43625
43626         Don't make generated files read-only.  That would bother too many
43627         people.  However, do retain the ability to work when targets are
43628         read-only: remove the destination and temporary files before writing
43629         them (when generated via sed or echo), or by using the -f option for
43630         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
43631         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43632         * modules/byteswap, modules/configmake, modules/fcntl:
43633         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43634         * modules/localcharset, modules/netinet_in, modules/poll:
43635         * modules/stdbool, modules/stdint, modules/sys_select:
43636         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43637
43638 2006-09-08  Jim Meyering  <jim@meyering.net>
43639
43640         Avoid new build failure on FreeBSD 6.0.
43641         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
43642         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
43643         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
43644
43645 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43646
43647         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
43648
43649 2006-09-07  Jim Meyering  <jim@meyering.net>
43650
43651         Fix global typo in last change: use chmod u-w, not chmod u-x.
43652         Spotted by Paul Eggert and Bruce Korb.
43653         * modules/alloca-opt, modules/argz, modules/arpa_inet:
43654         * modules/byteswap, modules/configmake, modules/fcntl:
43655         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
43656         * modules/localcharset, modules/netinet_in, modules/poll:
43657         * modules/stdbool, modules/stdint, modules/sys_select:
43658         * modules/sys_socket, modules/sys_stat, modules/sysexits:
43659
43660 2006-09-06  Jim Meyering  <jim@meyering.net>
43661
43662         Make generated files be read-only.
43663         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
43664         Ensure that each generated file is now read-only.
43665         * modules/argz: Likewise.
43666         * modules/arpa_inet: Likewise.
43667         * modules/byteswap: Likewise.
43668         * modules/configmake: Likewise.
43669         * modules/fcntl: Likewise.
43670         * modules/fnmatch: Likewise.
43671         * modules/getopt: Likewise.
43672         * modules/glob: Likewise.
43673         * modules/inttypes: Likewise.
43674         * modules/netinet_in: Likewise.
43675         * modules/poll: Likewise.
43676         * modules/stdbool: Likewise.
43677         * modules/stdint: Likewise.
43678         * modules/sys_select: Likewise.
43679         * modules/sys_socket: Likewise.
43680         * modules/sys_stat: Likewise.
43681         * modules/sysexits: Likewise.
43682         * modules/localcharset: Same as above, but continue using temporary
43683         file named "t-$@" (why different?) rather than the "$@-t" used
43684         everywhere else.
43685
43686         * modules/sysexits (Makefile.am): Replace literal occurrences
43687         of "sysexit.h" more readable, and more consistent, "$@".
43688
43689 2006-09-06  Bruno Haible  <bruno@clisp.org>
43690
43691         * modules/striconv: New file.
43692         * modules/xstriconv: New file.
43693         * MODULES.html.sh (Internationalization functions): Add striconv,
43694         xstriconv.
43695
43696 2006-09-06  Bruno Haible  <bruno@clisp.org>
43697
43698         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
43699         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
43700         not using libtool correctly.
43701
43702 2006-09-06  Bruno Haible  <bruno@clisp.org>
43703
43704         * lib/striconv.h: New file.
43705         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
43706         iconvstring.c.
43707         * lib/xstriconv.h: New file.
43708         * lib/xstriconv.c: New file.
43709
43710 2006-09-06  Bruno Haible  <bruno@clisp.org>
43711
43712         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
43713         lib_..._LDFLAGS.
43714
43715 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43716
43717         * lib/argz_.h: Sync from Libtool.
43718
43719         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
43720                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43721
43722         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
43723
43724 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43725
43726         * modules/trim: New file.
43727
43728 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
43729
43730         * lib/trim.h: New file.
43731         * lib/trim.c: New file.
43732
43733 2006-09-05  Bruno Haible  <bruno@clisp.org>
43734
43735         * MODULES.html.sh (String handling): Add trim.
43736
43737 2006-09-04  Karl Berry  <karl@gnu.org>
43738
43739         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
43740         until next release.
43741
43742 2006-09-03  Bruno Haible  <bruno@clisp.org>
43743
43744         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
43745         correctly.
43746
43747 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43748
43749         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
43750         not gl_GETLOADAVG.  Omit unneeded semicolons.
43751         Problems reported by Ralf Wildenhues in
43752         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43753         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
43754         at the end, which is the usual gnulib style.
43755
43756         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
43757         of doing all the work ourselves.
43758         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
43759         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
43760
43761 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43762
43763         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
43764         Problem reported by Ralf Wildenhues in
43765         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
43766
43767         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
43768         HAVE_STRUCT_STATFS_F_FSTYPENAME.
43769
43770 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43771
43772         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
43773         yesterday's patch by changing test -n to test -z.
43774
43775 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43776
43777         * modules/getloadavg (Files): Add m4/getloadavg.m4.
43778         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
43779         the former is now obsolescent.
43780
43781         * modules/chdir-long (Depends-on): Add fcntl.
43782
43783 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
43786         obsolescent, and programs should use gnulib instead.
43787         * m4/getloadavg.m4: New file, with contents taken from Autoconf
43788         but with prefixes changed.
43789
43790 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
43791
43792         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
43793         or stdbool.h, because they might not exist while configuring.
43794
43795         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
43796         Don't include unistd.h or limits.h; not needed, since chdir-long.h
43797         does that for us.
43798         (O_DIRECTORY): Remove.
43799
43800 2006-08-31  Eric Blake  <ebb9@byu.net>
43801
43802         * gnulib-tool: Don't let emacs change spaces to TAB.
43803
43804 2006-08-31  Bruno Haible  <bruno@clisp.org>
43805
43806         * gnulib-tool: When calling func_import more than once, do it in a
43807         subshell.
43808         Reported by Eric Blake <ebb9@byu.net>.
43809
43810 2006-08-31  Bruno Haible  <bruno@clisp.org>
43811
43812         * gnulib-tool (nl): Remove variable.
43813         (sed_transform_lib_file): Use more robust test for config-h module.
43814         (func_import): Fix typo in 2006-08-25 patch.
43815
43816 2006-08-31  Bruno Haible  <bruno@clisp.org>
43817
43818         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
43819         specified, augment Makefile.am variables instead of assigning them.
43820
43821 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         Work around a bug in both the Linux and SunOS 64-bit kernels:
43824         nanosleep mishandles sleeps for longer than 2**31 seconds.
43825         Problem reported by Frank v Waveren in
43826         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
43828         Check for nanosleep bug.
43829         (LIB_NANOSLEEP): Append clock_gettime library if needed.
43830
43831 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         Work around a bug in both the Linux and SunOS 64-bit kernels:
43834         nanosleep mishandles sleeps for longer than 2**31 seconds.
43835         Problem reported by Frank v Waveren in
43836         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
43837         * lib/nanosleep.c (BILLION): New constant.
43838         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
43839         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
43840         implementation.
43841
43842 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43843
43844         * modules/nanosleep (Depends-on): Add gettime.
43845
43846 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
43847         and Simon Josefsson  <jas@extundo.com>
43848         and Oskar Liljeblad  <oskar@osk.mine.nu>
43849
43850         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
43851         * gnulib-tool (func_import): New license type 'unmodifiable license
43852         text'.
43853         * modules/fdl: Use it.  Longer description.
43854         * module/gpl, module/lgpl: New files.
43855
43856 2006-08-30  Jim Meyering  <jim@meyering.net>
43857
43858         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
43859         shadowing the parameter.
43860
43861 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43862
43863         Sync from Libtool:
43864
43865         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43866
43867         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
43868         sharing with gnulib.  Report by Eric Blake.
43869
43870 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43871
43872         * modules/isapipe: New file.
43873         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
43874
43875 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43876
43877         * modules/configmake (Makefile.am): Add a comment, and omit
43878         the CONFIGMAKE_ prefix from generated macro names.  Suggested
43879         by Bruno Haible.
43880
43881 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43882
43883         * m4/isapipe.m4: New file.
43884
43885 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
43886
43887         * lib/isapipe.c, lib/isapipe.h: New files.
43888
43889 2006-08-29  Jim Meyering  <jim@meyering.net>
43890
43891         * modules/configmake (Makefile.am): Make configmake.h depend on
43892         Makefile.  Otherwise, a stale configmake.h could hang around.
43893
43894 2006-08-29  Eric Blake  <ebb9@byu.net>
43895
43896         * lib/error.c (error_at_line, print_errno_message): Match libc, after
43897         resolution of upstream bug 3044.
43898
43899 2006-08-29  Bruno Haible  <bruno@clisp.org>
43900
43901         * modules/localcharset (Depends-on): Add configmake.
43902         (Makefile.am): Remove setting of LIBDIR through DEFS.
43903
43904 2006-08-29  Bruno Haible  <bruno@clisp.org>
43905
43906         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
43907         defined.
43908
43909 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43910
43911         * modules/fcntl: New file.
43912         * modules/chdir-safer (Depends-on): Add fcntl.
43913         * modules/fts: Likewise.
43914         * modules/mkdir-p: Likewise.
43915
43916         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
43917         This undoes the most recent change, since we're now addressing the
43918         problem in a different way.
43919
43920         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
43921         into output, since the output might be called Makefile.am even
43922         if $makefile_name is something different.
43923         (func_import): Use $makefile_am rather than
43924         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
43925         empty.
43926
43927         * modules/inttypes (Files): Add m4/inttypes-h.m4.
43928
43929 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43930
43931         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
43932         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
43933         recent change to stdint.m4, since we're now addressing the problem in a
43934         different way.
43935
43936 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43937
43938         * m4/fcntl_h.m4: New file.
43939
43940 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
43941
43942         * lib/fcntl_.h: New file.
43943         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
43944         the fcntl module.
43945         * lib/dirchownmod.c: Likewise.
43946         * lib/fts.c: Likewise.
43947
43948         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
43949         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
43950         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
43951         just before including <inttypes.h>, to avoid circular inclusion.
43952
43953 2006-08-28  Jim Meyering  <jim@meyering.net>
43954
43955         * doc/visibility.texi: Actually read and correct the grammar of the
43956         sentence affected by yesterday's change.
43957
43958 2006-08-28  Eric Blake  <ebb9@byu.net>
43959
43960         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
43961         needs wrapper.
43962
43963 2006-08-28  Eric Blake  <ebb9@byu.net>
43964
43965         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
43966
43967 2006-08-28  Eric Blake  <ebb9@byu.net>
43968
43969         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
43970
43971 2006-08-28  Bruno Haible  <bruno@clisp.org>
43972
43973         * modules/c-strstr: New file, from GNU gettext.
43974         * MODULES.html.sh (String handling): Add c-strstr.
43975
43976 2006-08-28  Bruno Haible  <bruno@clisp.org>
43977
43978         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
43979         macros.
43980         Reported by Eric Blake.
43981
43982 2006-08-28  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
43985         (VASNPRINTF): Return a string of length > INT_MAX without failing.
43986         * lib/vasprintf.c: Include errno.h, limits.h.
43987         (EOVERFLOW): New fallback definition.
43988         (vasprintf): Test here whether the string length is > INT_MAX.
43989         * lib/vsnprintf.c: Include errno.h, limits.h.
43990         (EOVERFLOW): New fallback definition.
43991         (vsnprintf): Fix bug when generated string was too long for the buffer.
43992         Test here whether the string length is > INT_MAX.
43993
43994 2006-08-28  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/inttypes_.h (SCNX*): Remove definitions.
43997         Reported by Eric Blake.
43998
43999 2006-08-28  Bruno Haible  <bruno@clisp.org>
44000
44001         * lib/c-strstr.h: New file, from GNU gettext.
44002         * lib/c-strstr.c: New file, from GNU gettext.
44003
44004 2006-08-28  Bruno Haible  <bruno@clisp.org>
44005
44006         * gnulib-tool: Reorder some statements.
44007
44008 2006-08-28  Bruno Haible  <bruno@clisp.org>
44009
44010         * gnulib-tool: New option --makefile-name.
44011         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44012         $makefile_name.
44013         (func_import): Write $makefile_name to the cache file, and read it from
44014         there unless explicitly specified. Use $makefile_name as file name
44015         instead of Makefile.am. Adjust the recommendations accordingly.
44016
44017 2006-08-28  Bruno Haible  <bruno@clisp.org>
44018
44019         * gnulib-tool (func_verify_module): Check against misapplying patch.
44020
44021 2006-08-28  Bruno Haible  <bruno@clisp.org>
44022
44023         * gnulib-tool (func_relativize, func_relconcat): New functions.
44024         Give an error if --local-dir is given with --update.
44025         Remove trailing slashes from $local_gnulib_dir.
44026         (func_import): Store the relativized $local_gnulib_dir in
44027         gnulib-cache.m4, and read it from there if not specified explicitly.
44028
44029 2006-08-28  Bruno Haible  <bruno@clisp.org>
44030
44031         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44032         is the current directory. Respect also $local_gnulib_dir.
44033
44034 2006-08-28  Bruno Haible  <bruno@clisp.org>
44035             Simon Josefsson  <jas@extundo.com>
44036
44037         BeOS portability.
44038         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44039
44040 2006-08-27  Jim Meyering  <jim@meyering.net>
44041
44042         * doc/visibility.texi: Remove duplicate word: "pointer".
44043
44044 2006-08-26  Bruno Haible  <bruno@clisp.org>
44045
44046         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44047         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44048         (Makefile.am): Create inttypes.h from inttypes_.h.
44049         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44050
44051         * modules/imaxabs: New file.
44052
44053         * modules/imaxdiv: New file.
44054
44055 2006-08-26  Bruno Haible  <bruno@clisp.org>
44056
44057         * m4/inttypes.m4: New file.
44058         * m4/_inttypes_h.m4: Remove file.
44059         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44060         PRI_MACROS_BROKEN.
44061         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44062
44063         * m4/imaxabs.m4: New file.
44064
44065         * m4/imaxdiv.m4: New file.
44066
44067 2006-08-26  Bruno Haible  <bruno@clisp.org>
44068
44069         * lib/inttypes_.h: New file.
44070         * lib/inttypes.h: Remove file.
44071         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44072
44073         * lib/imaxabs.c: New file.
44074
44075         * lib/imaxdiv.c: New file.
44076
44077 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44078
44079         New config-h module, so that "make" output needn't be cluttered
44080         by -DHAVE_CONFIG_H.
44081         * MODULES.html.sh (Support for building libraries and executables):
44082         Add config-h.
44083         * modules/config-h: New file.
44084         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44085         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44086         the config-h module is used.
44087
44088         New configmake module, so that "make" output needn't be cluttered
44089         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44090         * MODULES.html.sh (Support for building libraries and executables):
44091         Add configmake.
44092         * modules/configmake: New file.
44093
44094 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * m4/config-h.m4: New file.
44097
44098 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44099
44100         * config/srclist.txt: Add elisp-comp.
44101
44102 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44103
44104         * MODULES.html.sh (Support for building libraries and executables):
44105         Add elisp-comp.
44106         * build-aux/elisp-comp: New file.
44107         * modules/elisp-comp: New file.
44108
44109 2006-08-24  Bruno Haible  <bruno@clisp.org>
44110
44111         * gnulib-tool (func_create_testdir): Use non-default values of
44112         sourcebase and m4base.
44113
44114 2006-08-24  Bruno Haible  <bruno@clisp.org>
44115
44116         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44117         HTML structure.
44118
44119 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44120
44121         * modules/openat (Depends-on): Add lchown.
44122
44123 2006-08-23  Bruno Haible  <bruno@clisp.org>
44124
44125         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44126         of gl_LOCK_EARLY instead of gl_LOCK.
44127
44128 2006-08-23  Bruno Haible  <bruno@clisp.org>
44129
44130         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44131         on OSF/1 to no.
44132         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44133
44134 2006-08-23  Bruno Haible  <bruno@clisp.org>
44135
44136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44137         as unusable.
44138
44139         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44140         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44141         (gl_LOCK): New macro.
44142
44143 2006-08-22  Simon Josefsson  <jas@extundo.com>
44144
44145         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44146         to md5 module.
44147
44148 2006-08-22  Simon Josefsson  <jas@extundo.com>
44149
44150         * MODULES.html.sh: Add "Support for maintaining and release
44151         projects".
44152
44153         * build-aux/gnupload: New file, from coreutils.
44154
44155 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44156
44157         Avoid the need for AC_LIBSOURCES in m4 macros.
44158         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44159         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44160         * modules/check-version (EXTRA_DIST): Add check-version.h.
44161         * modules/crc (EXTRA_DIST): Add crc.h.
44162         * modules/des (EXTRA_DIST): Add des.h.
44163         * modules/gc (EXTRA_DIST): Add gc.h.
44164         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44165         * modules/getline (EXTRA_DIST): Add getline.h.
44166         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44167         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44168         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44169         * modules/md2 (EXTRA_DIST): Add md2.h.
44170         * modules/md4 (EXTRA_DIST): Add md4.h.
44171         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44172         * modules/read-file (EXTRA_DIST): Add read-file.h.
44173         * modules/readline (EXTRA_DIST): Add readline.h.
44174         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44175         rijndael-api-fst.h.
44176
44177 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44178
44179         * m4/rijndael.m4 (gl_ARCFOUR):
44180         * m4/arctwo.m4 (gl_ARCTWO):
44181         * m4/check-version.m4 (gl_CHECK_VERSION):
44182         * m4/crc.m4 (gl_CRC):
44183         * m4/des.m4 (gl_DES):
44184         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44185         * m4/gc.m4 (gl_GC):
44186         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44187         * m4/getline.m4 (gl_FUNC_GETLINE):
44188         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44189         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44190         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44191         * m4/md2.m4 (gl_MD2):
44192         * m4/md4.m4 (gl_MD4):
44193         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44194         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44195         * m4/readline.m4 (gl_FUNC_READLINE):
44196         * m4/rijndael.m4 (gl_RIJNDAEL):
44197         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44198         to get the necessary .h files and whatnot.
44199
44200 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44201
44202         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44203         gnulib rather than the other way around.
44204         * config/srclistvars.sh (COREUTILS): Remove.
44205
44206 2006-08-22  Jim Meyering  <jim@meyering.net>
44207
44208         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44209
44210         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44211
44212 2006-08-22  Eric Blake  <ebb9@byu.net>
44213
44214         * modules/regexprops-generic: New file.
44215         * MODULES.html.sh (Support for building documentation): List it.
44216
44217 2006-08-22  Eric Blake  <ebb9@byu.net>
44218
44219         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44220         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44221         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44222         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44223
44224 2006-08-22  Bruno Haible  <bruno@clisp.org>
44225
44226         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44227         and lib_LTLIBRARIES like the other lib_* variables.
44228
44229 2006-08-22  Bruno Haible  <bruno@clisp.org>
44230
44231         * build-aux/x-to-1.in: New file, from GNU gettext.
44232
44233 2006-08-22  Bruno Haible  <bruno@clisp.org>
44234
44235         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44236         <utmpx.h> exists.
44237
44238 2006-08-22  Bruno Haible  <bruno@clisp.org>
44239
44240         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44241         <utmpx.h> exists.
44242
44243 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44244
44245         BeOS portability.
44246         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44247         exist.
44248         Problem reported by Bruno Haible.
44249
44250 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44251
44252         Avoid the need for AC_LIBSOURCES in m4 macros.
44253         * modules/acl (EXTRA_DIST): Add acl.h.
44254         * modules/argmatch (Files): Add m4/argmatch.m4.
44255         (configure.ac): Add gl_ARGMATCH.
44256         (EXTRA_DIST): Renamed from lib_SOURCES, for
44257         consistency with the other modules.  Remove argmatch.c.
44258         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44259         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44260         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44261         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44262         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44263         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44264         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44265         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44266         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44267         * modules/closeout (EXTRA_DIST): Add closeout.h.
44268         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44269         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44270         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44271         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44272         dirname.h; remove basename.c and stripslash.c.
44273         * modules/exclude (EXTRA_DIST): Add exclude.h.
44274         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44275         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44276         * modules/file-type (EXTRA_DIST): Add file-type.h.
44277         * modules/filemode (EXTRA_DIST): Add filemode.h.
44278         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44279         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44280         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44281         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44282         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44283         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44284         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44285         * modules/getdate (EXTRA_DIST): Add getdate.c.
44286         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44287         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44288         * modules/getpass (EXTRA_DIST): Add getpass.h.
44289         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44290         * modules/group-member (EXTRA_DIST): Add group-member.h.
44291         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44292         * modules/hash (EXTRA_DIST): Add hash.h.
44293         * modules/human (EXTRA_DIST): Add human.h.
44294         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44295         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44296         * modules/lchown (EXTRA_DIST): Add lchown.h.
44297         * modules/long-options (EXTRA_DIST): Add long-options.h.
44298         * modules/lstat (EXTRA_DIST): Add lstat.h.
44299         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44300         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44301         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44302         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44303         * modules/memxor (EXTRA_DIST): Add memxor.h.
44304         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44305         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44306         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44307         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44308         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44309         * modules/physmem (EXTRA_DIST): Add physmem.h.
44310         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44311         * modules/posixver (EXTRA_DIST): Add posixver.h.
44312         * modules/quote (EXTRA_DIST): Add quote.h.
44313         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44314         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44315         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44316         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44317         regex_internal.h regexec.c.
44318         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44319         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44320         * modules/same (EXTRA_DIST): Add same.h.
44321         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44322         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44323         * modules/savedir (EXTRA_DIST): Add savedir.h.
44324         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44325         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44326         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44327         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44328         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44329         * modules/strdup (EXTRA_DIST): Add strdup.h.
44330         * modules/strftime (EXTRA_DIST): Add strftime.h.
44331         * modules/strndup (EXTRA_DIST): Add strndup.h.
44332         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44333         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44334         * modules/time_r (EXTRA_DIST): Add time_r.h.
44335         * modules/timespec (EXTRA_DIST): Add timespec.h.
44336         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44337         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44338         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44339         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44340         * modules/userspec (EXTRA_DIST): Add userspec.h.
44341         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44342         * modules/utimens (EXTRA_DIST): Add utimens.h.
44343         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44344         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44345         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44346         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44347         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44348         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44349         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44350         * modules/yesno (EXTRA_DIST): Add yesno.h.
44351
44352 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44353
44354         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44355
44356         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44357         * m4/dev-ino.m4, same-inode.m4: Remove.
44358
44359         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44360         * m4/acl.m4 (AC_FUNC_ACL):
44361         * m4/backupfile.m4 (gl_BACKUPFILE):
44362         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44363         * m4/canon-host.m4 (gl_CANON_HOST):
44364         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44366         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44367         * m4/cloexec.m4 (gl_CLOEXEC):
44368         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44369         * m4/closeout.m4 (gl_CLOSEOUT):
44370         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44371         * m4/dirname.m4 (gl_DIRNAME):
44372         * m4/exclude.m4 (gl_EXCLUDE):
44373         * m4/exitfail.m4 (gl_EXITFAIL):
44374         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44375         * m4/file-type.m4 (gl_FILE_TYPE):
44376         * m4/filemode.m4 (gl_FILEMODE):
44377         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44378         * m4/fpending.m4 (gl_FUNC_FPENDING):
44379         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44380         * m4/fts.m4 (gl_FUNC_FTS):
44381         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44382         * m4/getdate.m4 (gl_GETDATE):
44383         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44384         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44385         * m4/getpass.m4 (gl_FUNC_GETPASS):
44386         * m4/gettime.m4 (gl_GETTIME):
44387         * m4/getugroups.m4 (gl_GETUGROUPS):
44388         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44389         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44390         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44391         * m4/hash.m4 (gl_HASH):
44392         * m4/idcache.m4 (gl_IDCACHE):
44393         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44394         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44395         * m4/long-options.m4 (gl_LONG_OPTIONS):
44396         * m4/lstat.m4 (gl_FUNC_LSTAT):
44397         * m4/md5.m4 (gl_MD5):
44398         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44399         * m4/memcoll.m4 (gl_MEMCOLL):
44400         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44401         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44402         * m4/memxor.m4 (gl_MEMXOR):
44403         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44404         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44405         * m4/modechange.m4 (gl_MODECHANGE):
44406         * m4/mountlist.m4 (gl_MOUNTLIST):
44407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44408         * m4/openat.m4 (gl_FUNC_OPENAT):
44409         * m4/pathmax.m4 (gl_PATHMAX):
44410         * m4/physmem.m4 (gl_PHYSMEM):
44411         * m4/posixtm.m4 (gl_POSIXTM):
44412         * m4/posixver.m4 (gl_POSIXVER):
44413         * m4/quote.m4 (gl_QUOTE):
44414         * m4/quotearg.m4 (gl_QUOTEARG):
44415         * m4/readtokens.m4 (gl_READTOKENS):
44416         * m4/readutmp.m4 (gl_READUTMP):
44417         * m4/regex.m4 (gl_REGEX):
44418         * m4/safe-read.m4 (gl_SAFE_READ):
44419         * m4/safe-write.m4 (gl_SAFE_WRITE):
44420         * m4/same.m4 (gl_SAME):
44421         * m4/save-cwd.m4 (gl_SAVE_CWD):
44422         * m4/savedir.m4 (gl_SAVEDIR):
44423         * m4/settime.m4 (gl_SETTIME):
44424         * m4/sha1.m4 (gl_SHA1):
44425         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44426         * m4/stat-macros.m4 (gl_STAT_MACROS):
44427         * m4/stat-time.m4 (gl_STAT_TIME):
44428         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44429         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44430         * m4/strdup.m4 (gl_FUNC_STRDUP):
44431         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44432         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44433         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44434         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44435         * m4/time_r.m4 (gl_TIME_R):
44436         * m4/timespec.m4 (gl_TIMESPEC):
44437         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44438         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44439         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44440         * m4/userspec.m4 (gl_USERSPEC):
44441         * m4/utimecmp.m4 (gl_UTIMECMP):
44442         * m4/utimens.m4 (gl_UTIMENS):
44443         * m4/xalloc.m4 (gl_XALLOC):
44444         * m4/xgetcwd.m4 (gl_XGETCWD):
44445         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44446         * m4/xreadlink.m4 (gl_XREADLINK):
44447         * m4/xstrtod.m4 (gl_XSTRTOD):
44448         * m4/yesno.m4 (gl_YESNO):
44449         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44450         to get the necessary .h files and whatnot.
44451
44452 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44453             Bruno Haible  <bruno@clisp.org>
44454
44455         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44456         /bin/sh understanding of '!' conditional negation.
44457
44458 2006-08-21  Jim Meyering  <jim@meyering.net>
44459
44460         * modules/openat (Depends-on): Really alphabetize.
44461
44462         * modules/acl (Depends-on): Add error and quote.
44463
44464         * check-module (find_included_lib_files): Add at-func.c to the
44465         ok-to-include-more-than-once white list.
44466
44467         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44468
44469 2006-08-21  Bruno Haible  <bruno@clisp.org>
44470
44471         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44472         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44473         Reported by Martin Lambers <marlam@marlam.de>.
44474
44475 2006-08-21  Bruno Haible  <bruno@clisp.org>
44476
44477         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44478         specify an installation location, don't emit a noinst_LIBRARIES or
44479         noinst_LTLIBRARIES assignment.
44480
44481 2006-08-21  Bruno Haible  <bruno@clisp.org>
44482
44483         BeOS portability.
44484         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44485         BeOS has mbrtowc() but no <wctype.h>.
44486
44487 2006-08-21  Bruno Haible  <bruno@clisp.org>
44488
44489         BeOS portability.
44490         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44491         exist.
44492
44493 2006-08-21  Bruno Haible  <bruno@clisp.org>
44494
44495         BeOS portability.
44496         * lib/mbchar.h: Include <wctype.h> only if it exists.
44497
44498 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44499
44500         Remove files that are no longer needed by their respective modules.
44501         * m4/obstack.m4: Remove.
44502         * m4/strerror_r.m4: Remove.
44503         * m4/uint32_t.m4: Remove.
44504         * m4/uintptr_t.m4: Remove.
44505         * m4/ullong_max.m4: Remove.
44506         * m4/xstrtoimax.m4: Remove.
44507         * m4/xstrtoumax.m4: Remove.
44508
44509         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44510         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44511         dependencies now capture this.
44512
44513         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44514         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44515         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44516         * m4/human.m4 (gl_HUMAN): Likewise.
44517         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44518         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44519
44520         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44521
44522         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44523         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44524         stdint.
44525         * m4/human.m4 (gl_HUMAN): Likewise.
44526         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44527         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44528         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44529         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44530         * m4/xstrtol (gl_XSTRTOL): Likewise.
44531
44532         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44533         AC_TYPE_LONG_LONG_INT.
44534         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44535         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44536         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44537         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44538
44539         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44540         on stdbool.
44541
44542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44543         (gl_PREREQ_XSTRTOUL): Remove.
44544
44545         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44546
44547         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44548         mode.
44549
44550 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44551
44552         Add and change modules to make it easier for coreutils to use
44553         gnulib-tool.
44554         * modules/backupfile (Files): Remove m4/d-ino.m4.
44555         (Depends-on): Add d-ino.
44556         * modules/cycle-check (Depends-on): Add stdint.
44557         (lib_SOURCES): Add cycle-check.h.
44558         * modules/d-ino: New module.
44559         * modules/d-type: New module.
44560         * modules/error (Files): Remove m4/strerror_r.m4.
44561         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44562         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44563         m4/inttypes_h.m4, m4/uintmax_t.m4.
44564         (Depends-on): Add stdint.
44565         (lib_SOURCES): Add fsusage.h.
44566         * modules/getcwd (Files): Remove d-ino.m4.
44567         (Depends-on): Add d-ino.
44568         * modules/getndelim2 (Depends-on): Add stdint.
44569         * modules/glob (Files): Remove m4/d-type.m4.
44570         (Depends-on): Add d-type.
44571         * modules/host-os: New module.
44572         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44573         m4/inttypes_h.m4, m4/uintmax_t.m4.
44574         * Depends-on: Add stdint.
44575         (lib_SOURCES): Add human.h.
44576         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44577         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44578         m4/uintmax_t.m4, m4/ulonglong.m4.
44579         (Depends-on): Add stdint.
44580         (EXTRA_DIST): Add inttostr.h.
44581         * modules/lchmod: New module.
44582         * modules/link-follow: New module.
44583         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44584         (Depends-on): Add lchmod.
44585         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44586         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44587         (Depends-on): Add stdint.
44588         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44589         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44590         (Depends-on): Add stdint.
44591         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44592         * modules/perl: New module.
44593         * modules/regex (Depends-on): Add stdint.
44594         * modules/rmdir-errno: New module.
44595         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44596         m4/intmax_t.m4.
44597         (Depends-on): Add stdint.
44598         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44599         m4/uintmax_t.m4.
44600         (Depends-on): Add stdint.
44601         * modules/unlink-busy: New module.
44602         * modules/utimecmp (Depends-on): Add stdint.
44603         * modules/uptime: New module.
44604         * modules/winsz-ioctl: New module.
44605         * modules/winsz-termios: New module.
44606         * modules/xnanosleep (Depends-on): Add nanosleep.
44607         * modules/ullong_max: Remove.
44608         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44609         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44610         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44611         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44612         (Depends-on): Add inttypes.
44613         (lib_SOURCES): Add xstrtol.h.
44614         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44615         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44616         * MODULES.html.sh: Move 'assert' into the assert section.
44617         Move 'dummy' into the linking section.
44618         Remove ullong_max.
44619         Add section for compatibility checks for POSIX:2001 functions,
44620         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
44621         winsz-ioctl, and winsz-termios into it.
44622         Add lchmod.
44623         Add top-level Misc section and put host-os, perl, and uptime
44624         into it.
44625
44626 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44627
44628         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
44629         now assume the stdint module.  Do not include inttypes.h.
44630         * lib/fsusage.h: Likewise.
44631         * lib/getndelim2.c: Likewise.
44632         * lib/human.h: Likewise.
44633         * lib/inttostr.h: Likewise.
44634         * lib/obstack.c: Likewise.
44635         * lib/regex_internal.h: Likewise.
44636         * lib/tempname.c: Likewise.
44637         * lib/utimecmp.c: Likewise.
44638         * lib/xstrtol.h: Likewise.
44639
44640         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
44641
44642         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
44643         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
44644         * lib/xtime.h: Likewise.
44645
44646 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44647
44648         * modules/openat (Files): Add lib/fchmodat.c.
44649         Fixes problem reported by Jay Youngman.
44650
44651 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
44654         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
44655
44656 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
44657             Bruno Haible  <bruno@clisp.org>
44658
44659         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
44660         and is a script that invokes bison. Tighten the code. Add comments.
44661
44662 2006-08-18  Jim Meyering  <jim@meyering.net>
44663
44664         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
44665         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
44666         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
44667         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
44668
44669 2006-08-18  Bruno Haible  <bruno@clisp.org>
44670
44671         * modules/bison-i18n: New file.
44672         * MODULES.html.sh (Internationalization functions): Add it.
44673
44674 2006-08-18  Bruno Haible  <bruno@clisp.org>
44675
44676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
44677         sys/statvfs.h. When getmntinfo was found, check its declaration and
44678         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
44679
44680 2006-08-18  Bruno Haible  <bruno@clisp.org>
44681
44682         * m4/bison-i18n.m4: New file, from bison.
44683
44684 2006-08-18  Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
44687         (ME_DUMMY): Treat "kernfs" as a dummy.
44688         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
44689
44690 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44691
44692         Update from coreutils.
44693
44694         2006-08-15  Jim Meyering  <jim@meyering.net>
44695
44696         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
44697
44698         2006-01-17  Jim Meyering  <jim@meyering.net>
44699
44700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
44701
44702         2006-01-11  Jim Meyering  <jim@meyering.net>
44703
44704         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
44705         Check for the lchmod function.
44706
44707 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
44708
44709         Update from coreutils.
44710
44711         * lib/__fpending.h: Add copyright notice.
44712         * lib/fprintftime.h: Likewise.
44713         * lib/savedir.c: Use (C) in copyright notice.
44714         * lib/savedir.h: Likewise.
44715
44716         2006-08-15  Jim Meyering  <jim@meyering.net>
44717
44718         * lib/at-func.c: New file, with the logic of all emulated at-functions.
44719         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
44720         in support of the EXPECTED_ERRNO macro.
44721         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
44722         definitions.  Instead, define the appropriate symbols and include
44723         "at-func.c".
44724         * lib/mkdirat.c (mkdirat): Likewise.
44725         * lib/fchmodat.c (fchmodat): Likewise.
44726         (ENOSYS): Remove definition.
44727         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
44728         it.  Don't include "unistd--.h" -- it wasn't ever used.
44729
44730         2006-01-17  Jim Meyering  <jim@meyering.net>
44731
44732         Rewrite fts.c not to change the current working directory,
44733         by using openat, fstatat, fdopendir, etc..
44734
44735         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
44736         (HAVE_OPENAT_SUPPORT): Define.
44737         [_LIBC] (fchdir): Don't undef or define; no longer used.
44738         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
44739         Now, this `function' always succeeds, and consumes its file descriptor
44740         parameter -- so callers must not close such FDs.  Update callers.
44741         (diropen_fd, opendirat, cwd_advance_fd): New functions.
44742         (diropen): Add parameter, SP.  Adjust all callers.
44743         Implement using diropen_fd, rather than open.
44744         (fts_open): Initialize new member, fts_cwd_fd.
44745         Remove fts_rft-setting code.
44746         (fts_close): Close fts_cwd_fd, if necessary.
44747         (__opendir2): Define in terms of opendir or opendirat,
44748         depending on whether the FST_NOCHDIR flag is set.
44749         (fts_build): Since fts_safe_changedir consumes its FD, and since
44750         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
44751         and close the dup'd file descriptor upon failure.
44752         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
44753         (fts_safe_changedir): Tweak semantics to reflect that this function
44754         now calls cwd_advance_fd and hence consumes its FD argument.
44755         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
44756         [struct FTS] (fts_rft): Remove now-unused member.
44757         [struct FTS] (fts_cycle.state): Improve comment.
44758
44759         * lib/openat.c (openat_needs_fchdir): New function.
44760         * lib/openat.h (openat_needs_fchdir): Declare it.
44761
44762 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
44763
44764         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
44765         Problem and fix reported by Pádraig Brady in
44766         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
44767
44768 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44769
44770         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
44771
44772 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44773
44774         * lib/memcoll.c (memcoll): Optimize for the common case where the
44775         arguments are bytewise equal.
44776
44777 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44778
44779         * doc/regexprops-generic.texi: Add a copyright notice.
44780
44781 2006-08-15  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/tmpdir (License): Change to LGPL.
44784
44785 2006-08-15  Bruno Haible  <bruno@clisp.org>
44786
44787         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
44788         module.
44789
44790 2006-08-14  Simon Josefsson  <jas@extundo.com>
44791
44792         * config/srclist.txt: Add gnupload.
44793
44794 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44795
44796         Change copyright notice from LGPL 2 to GPL 2, since that's the
44797         standard form used in the gnulib repository.
44798         * tests/test-lock.c: Likewise.
44799         * tests/test-stdint.c: Likewise.
44800         * tests/test-tls.c: Likewise.
44801
44802         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
44803         prelude-manager.  User shorter URLs for GNU projects, without '?'.
44804         Add copyright notice.
44805
44806         * check-module: Add copyright notice.  Output a copyright
44807         notice if "--version" is specified.
44808         * modules/COPYING: New file.
44809         * tests/test-getaddrinfo.c: Add copyright notice.
44810         * tests/test-verify.c: Likewise.
44811
44812 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44813
44814         Change copyright notice from LGPL 2 to GPL 2, since that's the
44815         standard form used in the gnulib repository.
44816         * lib/lock.c: LGPL -> GPL.
44817         * lib/lock.h: Likewise.
44818         * lib/strnlen1.c: Likewise.
44819         * lib/strnlen1.h: Likewise.
44820         * lib/tls.c: Likewise.
44821         * lib/tls.h: Likewise.
44822         * lib/tmpdir.c: Likewise.
44823
44824         * lib/TODO: Remove; this belongs only in coreutils.
44825
44826 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44827
44828         Add copyright notices to long-enough files that lack them, since
44829         otherwise the files aren't clearly free.  Use the same notice that
44830         getdate.texi already uses.
44831         * doc/alloca-opt.texi: Add copyright notice.
44832         * doc/alloca.texi: Likewise.
44833         * doc/ctime.texi: Likewise.
44834         * doc/functions.texi: Likewise.
44835         * doc/gcd.texi: Likewise.
44836         * doc/gnulib-tool.texi: Likewise.
44837         * doc/inet_ntoa.texi: Likewise.
44838         * doc/visibility.texi: Likewise.
44839
44840         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
44841         * doc/quote.texi: Add copyright notice.
44842
44843         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
44844         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
44845         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
44846         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
44847         is now obsolete, and give a pointer to the Sun list.
44848         Add copyright notice.
44849
44850 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
44851
44852         * config/srclistvars.sh: Add copyright notice.
44853
44854 2006-08-14  Eric Blake  <ebb9@byu.net>
44855
44856         Import the following change from libc:
44857
44858         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
44859
44860         Upstream bug 2997.
44861         * lib/misc/error.c: Add space between program name and message if file
44862         name is missing.
44863
44864 2006-08-12  Karl Berry  <karl@gnu.org>
44865
44866         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
44867         remove, these originate in gnulib now.
44868
44869 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44870
44871         * doc/Makefile (standards.info standards.html standards.dvi):
44872         Also depend on make-stds.texi.
44873
44874 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
44877         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
44878
44879         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
44880         in wchar_t.  Problem reported by Eric Blake.
44881
44882         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
44883         LEN is smaller than SIZE.  Suggested by Bruno Haible.
44884         Also, help the compiler to keep LEN in a register.
44885
44886 2006-08-11  Eric Blake  <ebb9@byu.net>
44887
44888         * users.txt: Sort.  Add tar.
44889
44890 2006-08-11  Bruno Haible  <bruno@clisp.org>
44891
44892         * users.txt: New file.
44893
44894 2006-08-11  Bruno Haible  <bruno@clisp.org>
44895
44896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
44897         before <wchar.h>. Needed for OSF/1 and BSD/OS.
44898
44899 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44900
44901         * modules/snprintf (Depends-on): Remove minmax.
44902         (Maintainer): Add self and Bruno.
44903
44904 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44905
44906         * lib/.cppi-disable: Add snprintf.h, socket_.h.
44907         * lib/snprintf.c: Include <errno.h> and <limits.h>.
44908         (EOVERFLOW): Define if the system does not.
44909         Do not include "minmax.h"; it wasn't used.
44910         (snprintf): Don't assume size_t promotes to an unsigned type.
44911         Fix bug when generated string was too long for the buffer: the
44912         buffer's contents are supposed to be the initial prefix of the
44913         output.  Don't assume vasnprintf returns EOVERFLOW if the size
44914         exceeds INT_MAX; do the check ourselves.
44915
44916         Import the following changes from libc:
44917
44918         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
44919
44920         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
44921         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
44922         set wc to the byte which couldn't be converted.
44923         (re_string_reconstruct): Don't clear valid_raw_len before calling
44924         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
44925         tip_context using re_string_context_at.
44926
44927         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
44928
44929         * lib/posix/regex.h: g++ still cannot handled [restrict].
44930
44931         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
44932
44933         * lib/posix/regex.h: Remove special handling for VMS.
44934
44935 2006-08-10  Jim Meyering  <jim@meyering.net>
44936
44937         * modules/same-inode: New module.
44938         * modules/dev-ino: New module.
44939         * modules/cycle-check: Depend on these modules, rather than simply
44940         including their .h files.
44941         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
44942         required via m4/cycle-check.m4.
44943         * modules/same: Depend on new same-inode module, rather than
44944         including same-inode.h.
44945         * modules/chdir-safer: New file.
44946
44947         * modules/chown (Depends-on): Add stat-macros.
44948
44949 2006-08-10  Jim Meyering  <jim@meyering.net>
44950
44951         * m4/cycle-check.m4: New file.
44952         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
44953         * m4/dev-ino.m4, m4/same-inode.m4: New files.
44954
44955 2006-08-10  Eric Blake  <ebb9@byu.net>
44956
44957         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
44958         in from original proposal.
44959
44960 2006-08-10  Eric Blake  <ebb9@byu.net>
44961         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44962
44963         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
44964         namespace.
44965
44966 2006-08-10  Bruno Haible  <bruno@clisp.org>
44967
44968         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
44969         as well.
44970
44971 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44972
44973         Sync from coreutils.
44974
44975         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
44976
44977         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
44978         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
44979
44980 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44981
44982         * modules/restrict: Remove; no longer needed now that we assume
44983         Autoconf 2.59 or later.
44984         * MODULES.html.sh: Remove 'restrict'.
44985         * modules/argp (Depends-on): Remove 'restrict'.
44986         * modules/base64 (Depends-on): Likewise.
44987         * modules/gc (Depends-on): Likewise.
44988         * modules/getaddrinfo (Depends-on): Likewise.
44989         * modules/glob (Depends-on): Likewise.
44990         * modules/inet_ntop (Depends-on): Likewise.
44991         * modules/inet_pton (Depends-on): Likewise.
44992         * modules/memxor (Depends-on): Likewise.
44993         * modules/regex (Depends-on): Likewise.
44994         * modules/strtok_r (Depends-on): Likewise.
44995         * modules/time_r (Depends-on): Likewise.
44996
44997 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
44998
44999         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45000         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45001         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45002         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45003         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45004         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45005         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45006         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45007
45008         Merge from coreutils.
45009         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45010         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45011         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45012         * m4/time_r.m4 (gl_TIME_R): Likewise.
45013
45014 2006-08-09  Karl Berry  <karl@gnu.org>
45015
45016         * config/srclist.txt: no more gettext-tools, per Bruno.
45017
45018 2006-08-08  Eric Blake  <ebb9@byu.net>
45019
45020         * modules/verror: New module.
45021         * MODULES.html.sh: Document it.
45022
45023 2006-08-08  Eric Blake  <ebb9@byu.net>
45024
45025         * lib/verror.h, lib/verror.c: New files.
45026
45027 2006-08-08  Eric Blake  <ebb9@byu.net>
45028
45029         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45030         verror_at_line output complies with GNU Coding Standards even when
45031         file is NULL.
45032
45033 2006-08-07  Bruno Haible  <bruno@clisp.org>
45034
45035         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45036         versions of AIX.
45037         Reported by Ralf Wildenhues.
45038
45039 2006-08-07  Bruno Haible  <bruno@clisp.org>
45040
45041         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45042         in an AC_DEFUN. Needed so that the autoconf snippets can use
45043         AC_REQUIRE.
45044
45045 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45046
45047         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45048         Initialize pkgdata_DATA.
45049         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45050         overriding it.
45051
45052 2006-08-06  Eric Blake  <ebb9@byu.net>
45053
45054         * lib/error.h: Fold in some upstream changes from glibc.
45055         * lib/error.c: Likewise.
45056
45057 2006-08-04  Bruno Haible  <bruno@clisp.org>
45058
45059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45060         Make the mostlyclean-local rule depend on mostlyclean-generic.
45061         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45062
45063 2006-07-31  Bruno Haible  <bruno@clisp.org>
45064
45065         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45066         <stdlib.h>, <string.h>.
45067
45068 2006-07-30  Bruno Haible  <bruno@clisp.org>
45069
45070         * modules/readlink (License): Change to LGPL.
45071
45072 2006-07-30  Bruno Haible  <bruno@clisp.org>
45073
45074         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45075         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45076         set PKGDATADIR to point to it.
45077
45078 2006-07-30  Bruno Haible  <bruno@clisp.org>
45079
45080         * modules/csharpexec (configure.ac): Comment out macro invocation.
45081         * modules/javaexec (configure.ac): Likewise.
45082         * modules/javacomp-script (configure.ac): Likewise.
45083
45084         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45085
45086 2006-07-30  Bruno Haible  <bruno@clisp.org>
45087
45088         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45089         linked-list.
45090
45091 2006-07-30  Bruno Haible  <bruno@clisp.org>
45092
45093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45094
45095 2006-07-30  Bruno Haible  <bruno@clisp.org>
45096
45097         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45098         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45099         get removed.
45100
45101 2006-07-29  Bruno Haible  <bruno@clisp.org>
45102
45103         Make it possible for gnulib-tool to work with locally modified or
45104         augmented gnulib repositories.
45105         * gnulib-tool (func_usage): Document --local-dir option.
45106         (local_gnulib_dir): New variable.
45107         Handle --local-dir option.
45108         (func_lookup_file): New function.
45109         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45110         (func_get_description, func_get_filelist, func_get_description,
45111         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45112         func_get_automake_snippet, func_get_include_directive,
45113         func_get_license, func_get_maintainer): Use func_lookup_file.
45114         (func_import, func_create_testdir): Use func_lookup_file.
45115
45116 2006-07-29  Bruno Haible  <bruno@clisp.org>
45117
45118         * modules/setenv (Depends-on): Add unistd.
45119
45120 2006-07-29  Bruno Haible  <bruno@clisp.org>
45121
45122         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45123
45124 2006-07-29  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45127
45128 2006-07-29  Bruno Haible  <bruno@clisp.org>
45129
45130         * gnulib-tool (import, update): If there is no Makefile.am, look at
45131         aclocal.m4, instead of bailing out.
45132
45133 2006-07-29  Bruno Haible  <bruno@clisp.org>
45134
45135         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45136         Categorize the options by when they are useful.
45137
45138 2006-07-29  Bruno Haible  <bruno@clisp.org>
45139
45140         * gnulib-tool (func_usage): Document option --no-libtool.
45141         Handle option --no-libtool.
45142         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45143         for changed semantics of $libtool variable.
45144         (func_import): Likewise. If libtool is not used, show this through
45145         an option --no-libtool.
45146         (func_create_testdir): Update.
45147
45148 2006-07-29  Bruno Haible  <bruno@clisp.org>
45149
45150         * gnulib-tool (func_import): Extend error message about missing
45151         --doc-base.
45152
45153 2006-07-29  Bruno Haible  <bruno@clisp.org>
45154
45155         * gnulib-tool (func_import): Don't create the $docbase directory if
45156         there is no file to store there.
45157
45158 2006-07-29  Bruno Haible  <bruno@clisp.org>
45159
45160         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45161         relevant, look for configure.ac there, not in the current directory.
45162         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45163
45164 2006-07-29  Bruno Haible  <bruno@clisp.org>
45165
45166         * gnulib-tool (SORT): New variable.
45167         (func_usage): Undocument --assume-autoconf option.
45168         Remove --assume-autoconf option handling.
45169         (autoconf_minversion): Determine from the contents of configure.ac.
45170         (func_import): Remove autoconf_minversion handling.
45171         Suggested by Eric Blake.
45172
45173 2006-07-29  Bruno Haible  <bruno@clisp.org>
45174
45175         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45176
45177 2006-07-29  Bruno Haible  <bruno@clisp.org>
45178
45179         * config/srclist.txt (*setenv.[ch]): Remove rules.
45180
45181 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45182
45183         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45184
45185 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45186
45187         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45188         arpa/inet.h.
45189
45190 2006-07-28  Simon Josefsson  <jas@extundo.com>
45191
45192         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45193         * modules/inet_pton (Depends-on): Likewise.
45194
45195 2006-07-28  Simon Josefsson  <jas@extundo.com>
45196
45197         * m4/netinet_in_h.m4: New file.
45198
45199 2006-07-28  Simon Josefsson  <jas@extundo.com>
45200
45201         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45202         #include's.
45203
45204 2006-07-28  Simon Josefsson  <jas@extundo.com>
45205
45206         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45207         #include's.
45208
45209 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45210
45211         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45212         setgid on directories only if they set these bits.
45213         * lib/modechange.h: Remove obsolete comment about masks.
45214
45215 2006-07-28  Eric Blake  <ebb9@byu.net>
45216
45217         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45218         macro expansion.
45219
45220 2006-07-28  Bruno Haible  <bruno@clisp.org>
45221
45222         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45223
45224 2006-07-28  Bruno Haible  <bruno@clisp.org>
45225
45226         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45227
45228 2006-07-28  Bruno Haible  <bruno@clisp.org>
45229
45230         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45231         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45232         Define fallbacks.
45233         Avoids link error on FreeBSD 4.x.
45234         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45235
45236         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45237         encoding.
45238         * lib/mbswidth.c (iswcntrl): Likewise.
45239
45240 2006-07-27  Bruno Haible  <bruno@clisp.org>
45241
45242         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45243         test.
45244
45245 2006-07-27  Bruno Haible  <bruno@clisp.org>
45246
45247         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45248         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45249         defined.
45250
45251 2006-07-26  Eric Blake  <ebb9@byu.net>
45252
45253         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45254
45255 2006-07-26  Eric Blake  <ebb9@byu.net>
45256
45257         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45258         like mingw that lack mkstemp.
45259         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45260         avoid compilation warning on mingw.
45261
45262 2006-07-26  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45265         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45266         INT_FAST*_MIN, INTPTR_MIN.
45267
45268 2006-07-25  Bruno Haible  <bruno@clisp.org>
45269
45270         * modules/version-etc (Depends-on): Add stdarg.
45271
45272 2006-07-25  Bruno Haible  <bruno@clisp.org>
45273
45274         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45275         complex commands.
45276
45277 2006-07-25  Bruno Haible  <bruno@clisp.org>
45278
45279         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45280         defined in <stdarg.h> or config.h.
45281
45282 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45283
45284         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45285         (gl_STDIO_SAFER): Remove.
45286
45287 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45288
45289         * MODULES.html.sh (File stream based Input/Output):
45290         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45291         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45292         * modules/fopen-safer, modules/tmpfile-safer: New files.
45293         * modules/stdio-safer: Remove.
45294
45295 2006-07-24  Bruno Haible  <bruno@clisp.org>
45296
45297         * modules/tmpdir: New file.
45298         * MODULES.html.sh (File system functions): Add it.
45299
45300 2006-07-24  Bruno Haible  <bruno@clisp.org>
45301
45302         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45303         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45304
45305 2006-07-24  Bruno Haible  <bruno@clisp.org>
45306
45307         * modules/clean-temp: New file.
45308
45309 2006-07-24  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/tmpdir.m4: New file, from GNU gettext.
45312
45313 2006-07-24  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/tmpdir.h: New file, from GNU gettext.
45316         * lib/tmpdir.c: New file, from GNU gettext.
45317
45318 2006-07-24  Bruno Haible  <bruno@clisp.org>
45319
45320         * lib/clean-temp.h: New file, from GNU gettext.
45321         * lib/clean-temp.c: New file, from GNU gettext.
45322
45323 2006-07-23  Eric Blake  <ebb9@byu.net>
45324
45325         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45326         (Depends-on): Add binary-io.
45327
45328 2006-07-23  Eric Blake  <ebb9@byu.net>
45329
45330         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45331
45332 2006-07-23  Eric Blake  <ebb9@byu.net>
45333
45334         * lib/tmpfile-safer.c: New file.
45335         * lib/stdio-safer.h (fopen_safer): Add prototype.
45336         * lib/stdio--.h (tmpfile): Make safer.
45337
45338 2006-07-23  Bruno Haible  <bruno@clisp.org>
45339
45340         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45341         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45342         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45343         gl_linked_remove_at): Use it.
45344
45345 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45346         and Simon Josefsson <jas@extundo.com>
45347
45348         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45349
45350         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45351
45352 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * modules/close-stream: New file.
45355         * modules/closeout (Description): Make it clear that it exits
45356         with a diagnostic on error.
45357         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45358         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45359
45360 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45361
45362         * m4/close-stream.m4: New file.
45363
45364 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45365
45366         * lib/close-stream.c, lib/close-stream.h: New files.
45367
45368 2006-07-22  Bruno Haible  <bruno@clisp.org>
45369
45370         Merge from GNU gettext 0.15.
45371
45372         2006-05-01  Bruno Haible  <bruno@clisp.org>
45373
45374                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45375
45376         2006-07-22  Bruno Haible  <bruno@clisp.org>
45377
45378                 * modules/javaversion: New file.
45379                 * MODULES.html.sh (Java): Add javaversion.
45380
45381         2006-03-12  Bruno Haible  <bruno@clisp.org>
45382
45383                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45384
45385         2005-12-04  Bruno Haible  <bruno@clisp.org>
45386
45387                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45388                 (untested).
45389
45390         2006-06-21  Bruno Haible  <bruno@clisp.org>
45391
45392                 Avoid warnings from recent versions of mcs.
45393                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45394                 -o, -L, -r any more. Use options documented since mcs-1.0
45395                 instead. Similarly for -g.
45396
45397         2005-12-04  Bruno Haible  <bruno@clisp.org>
45398
45399                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45400                 .resources, not .resource.
45401
45402         2005-07-09  Bruno Haible  <bruno@clisp.org>
45403
45404                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45405                 add a .dll suffix.
45406                 Reported by Mark Junker <mjscod@gmx.de>.
45407
45408         2006-07-22  Bruno Haible  <bruno@clisp.org>
45409
45410                 * modules/gettext: Upgrade to gettext-0.15.
45411                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45412                 m4/visibility.m4.
45413                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45414
45415 2006-07-22  Bruno Haible  <bruno@clisp.org>
45416
45417         Merge from GNU gettext 0.15.
45418
45419         2006-03-25  Bruno Haible  <bruno@clisp.org>
45420
45421                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45422
45423         2006-07-21  Bruno Haible  <bruno@clisp.org>
45424
45425                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45426                 "1.1".
45427
45428         2006-05-09  Bruno Haible  <bruno@clisp.org>
45429
45430                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45431                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45432                 for the conftestver execution.
45433
45434         2006-05-01  Bruno Haible  <bruno@clisp.org>
45435
45436                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45437                 optional target-version argument. Verify that the compiler
45438                 groks source of the specified source-version, or add -source
45439                 option as necessary. Verify that the compiler produces
45440                 bytecode in the specified target-version, or add -target and
45441                 -source options as necessary. Make the result of the test
45442                 available as variable CONF_JAVAC. Also log error output in
45443                 config.log.
45444
45445         2006-03-11  Bruno Haible  <bruno@clisp.org>
45446
45447                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45448
45449         2006-05-09  Bruno Haible  <bruno@clisp.org>
45450
45451                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45452                 CLASSPATH_SEPARATOR to a semicolon.
45453
45454         2006-03-12  Bruno Haible  <bruno@clisp.org>
45455
45456                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45457                 available as variable CONF_JAVA, for subsequent autoconf
45458                 tests. Also log error output in config.log.
45459
45460         2006-07-19  Bruno Haible  <bruno@clisp.org>
45461
45462                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45463                 that getline works on glibc2 systems. Needed to avoid trouble
45464                 in relocatable.c.
45465                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45466
45467         2005-12-04  Bruno Haible  <bruno@clisp.org>
45468
45469                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45470                 launcher (untested).
45471
45472         2005-12-04  Bruno Haible  <bruno@clisp.org>
45473
45474                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45475
45476         2006-07-22  Bruno Haible  <bruno@clisp.org>
45477
45478                 * gettext.m4: Update from GNU gettext-0.15.
45479                 * nls.m4: Likewise.
45480                 * po.m4: Likewise.
45481                 * inttypes-pri.m4: Likewise.
45482                 * inttypes-h.m4: Renamed from inttypes.m4.
45483                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45484
45485 2006-07-22  Bruno Haible  <bruno@clisp.org>
45486
45487         Merge from GNU gettext 0.15.
45488
45489         2005-07-05  Bruno Haible  <bruno@clisp.org>
45490
45491                 * printf-args.c (printf_fetchargs): Work around broken
45492                 definition of wint_t on mingw.
45493
45494         2005-02-12  Bruno Haible  <bruno@clisp.org>
45495
45496                 * xallocsa.h: Add extern "C" for C++.
45497
45498         2006-05-17  Bruno Haible  <bruno@clisp.org>
45499
45500                 Cygwin portability.
45501                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45502
45503         2006-04-30  Bruno Haible  <bruno@clisp.org>
45504
45505                 * progreloc.c: Include <mach-o/dyld.h> if available.
45506                 (find_executable): Use _NSGetExecutablePath when possible.
45507
45508         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45509
45510                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45511                 function.
45512
45513         2005-12-29  Bruno Haible  <bruno@clisp.org>
45514
45515                 * progreloc.c (set_program_name_and_installdir): Fix
45516                 compilation error.
45517
45518         2005-12-04  Bruno Haible  <bruno@clisp.org>
45519
45520                 Cygwin portability.
45521                 * progreloc.c: Include <windows.h> also on Cygwin.
45522                 (find_executable): Add support for Cygwin.
45523                 (set_program_name_and_installdir): Handle also platforms with
45524                 nonempty EXEEXT.
45525
45526         2006-07-11  Bruno Haible  <bruno@clisp.org>
45527
45528                 * javacomp.c: Fix a comment.
45529                 Reported by Jim Meyering.
45530
45531         2006-04-30  Bruno Haible  <bruno@clisp.org>
45532
45533                 * javacomp.h (compile_java_class): Add source_version,
45534                 target_version arguments.
45535                 * javacomp.c: Rewritten to choose only a compiler that
45536                 respects the specified source_version and target_version.
45537
45538         2006-06-27  Bruno Haible  <bruno@clisp.org>
45539
45540                 Assume correct S_ISDIR macro.
45541                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45542
45543         2006-07-22  Bruno Haible  <bruno@clisp.org>
45544
45545                 * javaversion.h: New file, from GNU gettext.
45546                 * javaversion.c: New file, from GNU gettext.
45547                 * javaversion.java: New file, from GNU gettext.
45548                 * javaversion.class: New file, from GNU gettext.
45549
45550         2006-05-17  Bruno Haible  <bruno@clisp.org>
45551
45552                 Cygwin portability.
45553                 * javaexec.c (execute_java_class): Test for jview program
45554                 also on Cygwin.
45555
45556         2006-04-09  Bruno Haible  <bruno@clisp.org>
45557
45558                 * fatal-signal.c: Don't include string.h.
45559                 (at_fatal_signal): Use a copying loop instead of memcpy.
45560
45561         2005-12-04  Bruno Haible  <bruno@clisp.org>
45562
45563                 * csharpexec.c: Add support for 'clix' launcher (untested).
45564                 (execute_csharp_using_sscli): New function.
45565                 (execute_csharp_program): Call it.
45566
45567         2006-06-21  Bruno Haible  <bruno@clisp.org>
45568
45569                 Avoid warnings from recent versions of mcs.
45570                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45571                 -o, -L, -r any more. Use options documented since mcs-1.0
45572                 instead. Similarly for -g.
45573
45574         2005-07-09  Bruno Haible  <bruno@clisp.org>
45575
45576                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45577                 add a .dll suffix.
45578                 Reported by Mark Junker <mjscod@gmx.de>.
45579
45580         2006-06-17  Bruno Haible  <bruno@clisp.org>
45581
45582                 * config.charset: Update for NetBSD 3.0.
45583
45584         2006-05-17  Bruno Haible  <bruno@clisp.org>
45585
45586                 Cygwin portability.
45587                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45588
45589         2006-05-16  Bruno Haible  <bruno@clisp.org>
45590
45591                 * localcharset.c [CYGWIN]: Include <windows.h>.
45592                 (get_charset_aliases): For Cygwin, return the same CPxxx
45593                 aliases list as under WIN32.
45594                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45595                 the environment variables. Fall back to GetACP().
45596
45597         2006-04-05  Bruno Haible  <bruno@clisp.org>
45598
45599                 * config.charset: Update Juan Manuel Guerrero's address.
45600
45601         2005-02-12  Bruno Haible  <bruno@clisp.org>
45602
45603                 * allocsa.h: Add extern "C" for C++.
45604
45605         2005-02-10  Bruno Haible  <bruno@clisp.org>
45606
45607                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45608                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45609
45610         2006-07-22  Bruno Haible  <bruno@clisp.org>
45611
45612                 * gettext.h: Update to GNU gettext-0.15.
45613
45614 2006-07-22  Bruno Haible  <bruno@clisp.org>
45615
45616         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45617         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
45618         lib-prefix.m4, longdouble.m4, ssize_t.m4.
45619
45620 2006-07-21  Eric Blake  <ebb9@byu.net>
45621
45622         * modules/stdlib-safer: New file.
45623         * MODULES.html.sh (File stream based Input/Output): Add
45624         stdlib-safer.
45625
45626 2006-07-21  Eric Blake  <ebb9@byu.net>
45627
45628         * lib/stdlib-safer.h: New file from coreutils, required by
45629         stdlib--.h.
45630
45631 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
45634
45635 2006-07-20  Bruno Haible  <bruno@clisp.org>
45636
45637         * gnulib-tool: Recognize new option --assume-autoconf.
45638         (autoconf_minversion): New variable.
45639         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
45640
45641 2006-07-20  Bruno Haible  <bruno@clisp.org>
45642
45643         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
45644
45645 2006-07-19  Derek R. Price  <derek@ximbiot.com>
45646
45647         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
45648         Reindent and repaginate.
45649
45650 2006-07-19  Derek Price  <derek@ximbiot.com>
45651
45652         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
45653         Correct grammar.
45654
45655 2006-07-17  Bruno Haible  <bruno@clisp.org>
45656
45657         * modules/list: New file.
45658         * modules/array-list: New file.
45659         * modules/carray-list, modules/carray-list-tests: New files.
45660         * modules/linked-list, modules/linked-list-tests: New files.
45661         * modules/avltree-list, modules/avltree-list-tests: New files.
45662         * modules/rbtree-list, modules/rbtree-list-tests: New files.
45663         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
45664         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
45665         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
45666         * modules/oset: New file.
45667         * modules/array-oset: New file.
45668         * modules/avltree-oset, modules/avltree-oset-tests: New files.
45669         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
45670         * tests/test-carray_list.c: New file.
45671         * tests/test-linked_list.c: New file.
45672         * tests/test-avltree_list.c: New file.
45673         * tests/test-rbtree_list.c: New file.
45674         * tests/test-linkedhash_list.c: New file.
45675         * tests/test-avltreehash_list.c: New file.
45676         * tests/test-rbtreehash_list.c: New file.
45677         * tests/test-avltree_oset.c: New file.
45678         * tests/test-rbtree_oset.c: New file.
45679         * MODULES.html.sh (Container data structures): New section.
45680
45681 2006-07-17  Bruno Haible  <bruno@clisp.org>
45682
45683         * m4/gl_list.m4: New file.
45684
45685 2006-07-17  Bruno Haible  <bruno@clisp.org>
45686
45687         * lib/gl_list.h: New file.
45688         * lib/gl_list.c: New file.
45689         * lib/gl_array_list.h: New file.
45690         * lib/gl_array_list.c: New file.
45691         * lib/gl_carray_list.h: New file.
45692         * lib/gl_carray_list.c: New file.
45693         * lib/gl_linked_list.h: New file.
45694         * lib/gl_linked_list.c: New file.
45695         * lib/gl_anylinked_list1.h: New file.
45696         * lib/gl_anylinked_list2.h: New file.
45697         * lib/gl_avltree_list.h: New file.
45698         * lib/gl_avltree_list.c: New file.
45699         * lib/gl_anyavltree_list1.h: New file.
45700         * lib/gl_anyavltree_list2.h: New file.
45701         * lib/gl_rbtree_list.h: New file.
45702         * lib/gl_rbtree_list.c: New file.
45703         * lib/gl_anyrbtree_list1.h: New file.
45704         * lib/gl_anyrbtree_list2.h: New file.
45705         * lib/gl_anytree_list1.h: New file.
45706         * lib/gl_anytree_list2.h: New file.
45707         * lib/gl_linkedhash_list.h: New file.
45708         * lib/gl_linkedhash_list.c: New file.
45709         * lib/gl_anyhash_list1.h: New file.
45710         * lib/gl_anyhash_list2.h: New file.
45711         * lib/gl_avltreehash_list.h: New file.
45712         * lib/gl_avltreehash_list.c: New file.
45713         * lib/gl_rbtreehash_list.h: New file.
45714         * lib/gl_rbtreehash_list.c: New file.
45715         * lib/gl_anytreehash_list1.h: New file.
45716         * lib/gl_anytreehash_list2.h: New file.
45717
45718         * lib/gl_oset.h: New file.
45719         * lib/gl_oset.c: New file.
45720         * lib/gl_array_oset.h: New file.
45721         * lib/gl_array_oset.c: New file.
45722         * lib/gl_avltree_oset.h: New file.
45723         * lib/gl_avltree_oset.c: New file.
45724         * lib/gl_rbtree_oset.h: New file.
45725         * lib/gl_rbtree_oset.c: New file.
45726         * lib/gl_anytree_oset.h: New file.
45727
45728 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45729
45730         * m4/mkancesdirs.m4: New file.
45731         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
45732         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
45733         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
45734         it.
45735
45736 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45737
45738         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
45739         * lib/mkancesdirs.h: New files.
45740         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
45741         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
45742         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
45743         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
45744         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
45745         callers changed.  Revamp internals significantly, by not
45746         attempting to create directories that are temporarily more
45747         permissive than the final results.  Do not attempt to use
45748         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
45749         This removes some race conditions, fixes some bugs, and simplifies
45750         things.  Use new dirchownmod function to do owner and mode changes.
45751         * lib/mkdir-p.h: Likewise.
45752         * lib/modechange.c (octal_to_mode): New function.
45753         (struct mode_change): New member mentioned.
45754         (make_node_op_equals): New arg mentioned.  All callers changed.
45755         (mode_compile): Keep track of which mode bits the user has explicitly
45756         mentioned.
45757         (mode_adjust): New arg DIR, so that we implement the X op correctly.
45758         New arg PMODE_BITS, to keep track of which mode bits the user
45759         mentioned; it treats S_ISUID and S_ISGID speciall.
45760         All callers changed.
45761         * lib/modechange.h: Likewise.
45762
45763 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
45764
45765         * MODULES.html.sh: Add mkancestors.
45766         * modules/mkancesdirs: New module.
45767         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
45768         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
45769         The chdir-safer and afs files are now orphans; I'll remove them
45770         unless someone speaks up.
45771         Add lib/dirchownmod.c, lib/dirchownmod.h.
45772         (Depends-on): Remove alloca, chown, save-cwd, dirname.
45773         Add lchown, mkancesdirs.
45774         (Maintainer): Add self.
45775
45776 2006-07-15  Karl Berry  <karl@gnu.org>
45777
45778         * gnulib-tool: help message wording/arrangement.
45779
45780 2006-07-14  Simon Josefsson  <jas@extundo.com>
45781
45782         * doc/gnulib.texi (Libtool and Windows): New section.
45783
45784 2006-07-12  Simon Josefsson  <jas@extundo.com>
45785
45786         * modules/gendocs (License): Fix license, approved by Karl.
45787
45788 2006-07-12  Eric Blake  <ebb9@byu.net>
45789
45790         * MODULES.html.sh: Add gendocs.
45791
45792 2006-07-11  Eric Blake  <ebb9@byu.net>
45793
45794         * modules/fdl: New module, to install doc/fdl.texi.
45795         * MODULES.html.sh: Add new section for documentation modules.
45796         * gnulib-tool: Avoid space-tab.
45797         (--doc-base): New option, to manage files from doc.
45798
45799 2006-07-11  Eric Blake  <ebb9@byu.net>
45800
45801         * m4/absolute-header.m4: Fix comments to match recent change.
45802
45803 2006-07-11  Eric Blake  <ebb9@byu.net>
45804
45805         * gnulib-tool: List --doc-base before --tests-base.
45806
45807 2006-07-11  Derek R. Price  <derek@ximbiot.com>
45808
45809         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
45810
45811 2006-07-11  Bruno Haible  <bruno@clisp.org>
45812
45813         * README: Mention where to put documentation.
45814
45815 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45816
45817         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
45818
45819 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45820
45821         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
45822         to stdint.m4.
45823
45824 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
45825
45826         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
45827         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
45828         "no/such/file/stdint.h" when there is no such file, so that
45829         the resulting C code can be parsed by dodgy compilers.
45830         Problems reported by Bob Proulx.
45831
45832 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45833
45834         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
45835         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45836         macros into the GNU _D_EXACT_NAMLEN.
45837         * lib/savedir.c:  Likewise.
45838         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
45839
45840 2006-07-10  Derek R. Price  <derek@ximbiot.com>
45841         and Paul Eggert  <eggert@cs.ucla.edu>
45842
45843         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
45844         * m4/savedir.m4:
45845         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
45846         macros into the GNU _D_EXACT_NAMLEN.
45847
45848 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45849
45850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
45851         around the absolute name, to work around a problem with the HP-UX
45852         11.23 native C compiler, reported by Bob Proulx.
45853
45854 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * doc/maintain.texi, make-stds.texi: Sync from
45857         <http://savannah.gnu.org/projects/gnustandards>.
45858
45859 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
45860
45861         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
45862
45863 2006-07-09  Jim Meyering  <jim@meyering.net>
45864
45865         * m4/glob.m4: Remove a doubled word in a comment.
45866
45867 2006-07-09  Jim Meyering  <jim@meyering.net>
45868
45869         * lib/argp-pv.c: Remove a doubled word in a comment.
45870         * lib/check-version.c (check_version): Likewise.
45871         * lib/javacomp.c (compile_java_class): Likewise.
45872
45873 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
45876         for the benefit of people using Autoconf 2.60.  If you want to
45877         support older Autoconf versions you can copy m4/onceonly_2_57.m4
45878         (or m4/onceonly.m4, if pre-2.57) manually.
45879
45880 2006-07-08  Jim Meyering  <jim@meyering.net>
45881
45882         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
45883         comment.
45884         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
45885         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
45886         comment.
45887
45888 2006-07-08  Jim Meyering  <jim@meyering.net>
45889
45890         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
45891
45892 2006-07-07  Simon Josefsson  <jas@extundo.com>
45893
45894         * tests/test-crc.c: Change expected crc value, the test vector
45895         were probably computed using the old broken crc.c?
45896
45897 2006-07-06  Simon Josefsson  <jas@extundo.com>
45898
45899         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
45900         now the canonical place for the M4 file).
45901
45902         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
45903         from the sys_socket dependency now.
45904
45905         * modules/inet_pton (Files): Ditto.
45906
45907         * modules/inet_ntop (Files): Ditto.
45908
45909 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45910
45911         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
45912         not gl_PREREQ_GETUSERSHELL.
45913
45914 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45915
45916         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
45917         with only one argument, for Autoconf 2.60.
45918         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
45919         expand to nothing, so add a shell command to avoid syntax error.
45920         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45921
45922 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45923
45924         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
45925
45926 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45927
45928         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
45929         no longer needed.  Check for isblank decl.
45930         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
45931         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
45932         of existence.
45933
45934 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45935
45936         * lib/getloadavg.c: Use __VMS, not VMS.
45937         * lib/getopt.c: Likewise.
45938         * lib/getpagesize.h: Likewise.
45939         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
45940         and probably does not work.
45941
45942 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
45943
45944         * lib/.cppi-disable: Add wcwidth.
45945         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
45946         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
45947         (ISGRAPH): Remove.  All uses changed to isgraph.
45948         (FOLD) [!defined _LIBC]: Remove special case.
45949         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
45950         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
45951         HAVE_ISBLANK.
45952         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
45953         case.
45954
45955 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45956
45957         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
45958         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
45959         brackets.  Other minor changes to suppress some compiler
45960         warnings.
45961
45962 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45963         and Paul Eggert  <eggert@cs.ucla.edu>
45964
45965         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
45966         of invoking obsolescent AC_HEADER_DIRENT macro.
45967         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
45968         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
45969         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45970         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
45971         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
45972         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45973         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
45974         * m4/readdir.m4: Remove; no longer needed.
45975
45976 2006-07-06  Derek R. Price  <derek@ximbiot.com>
45977         and Paul Eggert  <eggert@cs.ucla.edu>
45978
45979         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
45980         Don't worry about this obsolete case any more.
45981         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
45982         directories.
45983         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
45984         worry about this obsolete case any more.
45985         * lib/fts.c: Likewise.
45986         * lib/getcwd.c: Likewise.
45987         * lib/glob.h: Likewise.
45988         * lib/savedir.c: Likewise.
45989
45990 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
45991
45992         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
45993         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
45994         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
45995         needed.
45996         All uses removed.
45997         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
45998         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
45999         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46000         needed.
46001         * m4/getdate.m4 (gl_GETDATE): Likewise.
46002         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46003         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46004         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46005         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46006         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46007         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46008         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46009         needed.
46010
46011 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46012
46013         * lib/memcasecmp.c: Include <limits.h>.
46014         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46015         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46016         Don't assume isdigit succeeds only on '0' through '9'.
46017
46018 2006-07-05  Eric Blake  <ebb9@byu.net>
46019
46020         * modules/getaddrinfo (Depends-on): Add snprintf.
46021
46022 2006-07-05  Eric Blake  <ebb9@byu.net>
46023
46024         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46025         to avoid 'header present but could not be compiled' on cygwin.
46026
46027 2006-07-05  Eric Blake  <ebb9@byu.net>
46028
46029         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46030         missing from netdb.h.
46031         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46032
46033 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46034
46035         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46036         no longer needed.
46037         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46038         * m4/getdate.m4 (gl_GETDATE): Likewise.
46039         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46040         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46041         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46042         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46044
46045 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46046
46047         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46048         All uses of is_space replaced by isspace.
46049         * lib/exit.h: Don't talk about STDC_HEADERS.
46050         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46051         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46052         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46053         replaced by isprint etc.
46054         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46055         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46056         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46057         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46058         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46059         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46060
46061 2006-07-05  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46064         the function exists, before testing against AIX.
46065         Reported by Martin Lambers <marlam@marlam.de>.
46066
46067 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46068
46069         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46070         From Mark D. Baushke.
46071
46072 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46073
46074         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46075         to the absolute name, not just one, to bypass Sun C 5.8's
46076         "warning: #include of /usr/include/... may be non-portable".
46077
46078 2006-07-04  Eric Blake  <ebb9@byu.net>
46079
46080         * modules/dirname-tests: New test module.
46081         * tests/test-dirname.c: New file, replacing dirname.c
46082         TEST_DIRNAME section that was recently deleted.
46083
46084 2006-07-04  Bruno Haible  <bruno@clisp.org>
46085
46086         Assume ANSI C header files and <ctype.h> functions.
46087         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46088         (mbsnwidth): Use isprint, iscntrl instead.
46089
46090 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46091
46092         Merge from coreutils.
46093         * MODULES.html.sh: Add xstrtold.
46094         * modules/xstrtold: New file.
46095         * modules/cycle-check (Files): Add lib/same-inode.h.
46096         * modules/dirname (Files): Add m4/double-slash-root.m4.
46097         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46098         * modules/mkdir-p (Files): Add lib/same-inode.h.
46099         * modules/same (Files): Add lib/same-inode.h.
46100
46101 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46102
46103         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46104         This is to keep the terminology clean; POSIX talks about
46105         "absolute pathnames", not "full pathnames", but the GNU
46106         Coding Standards say to use "path" for something else;
46107         so use "absolute" to keep both sides happy.
46108         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46109         Set gl_absolute_header, not gl_full_header_path.
46110         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46111         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46112         All uses changed.
46113
46114         Merge from coreutils.
46115
46116         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46117
46118         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46119         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46120         want to require the building of c-strtod.o.
46121         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46122         needs -lm directly.
46123         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46124
46125         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46126
46127         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46128         --as-needed option if available.  Problem reported by Albert Chin in
46129         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46130         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46131         cc merely issues a bunch of annoying warnings for --as-needed
46132         (this problem was reported by Bob Proulx).  Also, try linking with
46133         -lm to detect a bug in binutils 2.16 (this problem was reported
46134         by Ralf Wildenhues).
46135
46136         2006-06-18  Jim Meyering  <jim@meyering.net>
46137
46138         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46139         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46140         macro.
46141         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46142         also check for glibc-2.4's abort-inducing bug.
46143
46144         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46145         Low-probability clean-up should be to use rmdir to get rid of
46146         the just-created directory, not unlink.
46147
46148         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46149         configure fail, and request a bug report to inform us about it.
46150         Add a comment that, barring reports to the contrary, in 2007 we'll
46151         assume ftruncate is universally available.
46152
46153         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46156
46157         2006-03-12  Jim Meyering  <jim@meyering.net>
46158
46159         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46160         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46161         * m4/same.m4 (gl_SAME): Likewise.
46162         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46163
46164         2006-03-11  Eric Blake  <ebb9@byu.net>
46165
46166         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46167         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46168         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46169         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46170
46171 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46172
46173         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46174         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46175         reported by Mark D. Baushke, one in
46176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46177
46178         Merge from coreutils.
46179
46180         * lib/.cppi-disable: Add stdint_.h.
46181         * lib/.cvsignore: Add stdint.h.
46182
46183         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46184
46185         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46186         both double and long double versions.
46187         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46188         * lib/xstrtold.c: New file.
46189         * lib/xstrtod.h (xstrtold): New decl.
46190
46191         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46192
46193         * lib/filemode.c (setst): Remove.
46194         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46195         (arguably) clearer, and the generated code is a bit smaller on my
46196         Debian GNU/Linux stable x86 host.
46197
46198         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46199
46200         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46201         Assume that filemode.h includes sys/types.h and sys/stat.h.
46202         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46203         (ftypelet): Reorder to put common cases first, for efficiency.
46204         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46205         to do 'M'.
46206         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46207         of 10, for compatibility with FreeBSD.  All callers changed.
46208         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46209         types that can't be deduced solely from st_mode.  First arg is now a
46210         const pointer.
46211         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46212         (strmode): Renamed from mode_string.
46213         (filemodestring): New decl.
46214         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46215         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46216         needed.
46217         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46218
46219         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46220
46221         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46222         fsusage.h now does that.  Include fsusage.h first, to test interface.
46223         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46224         at most one method (the old code could have generated decls that
46225         didn't conform to C89, not that this was ever exercised).
46226         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46227
46228         2006-03-19  Jim Meyering  <jim@meyering.net>
46229
46230         Work even in a chroot where d_ino values for entries in "/"
46231         don't match the stat.st_ino values for the same names.
46232         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46233         number, iterate through all entries again, using lstat instead.
46234         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46235         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46236
46237         * lib/getcwd.c (__getcwd): Clarify a comment.
46238         Use memcpy in place of a call to strcpy.
46239
46240         2006-03-12  Jim Meyering  <jim@meyering.net>
46241
46242         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46243         matches that of the current directory (which we're about to chdir ".."
46244         out of), then save the dev-ino of the parent, instead.
46245
46246         * lib/same-inode.h (SAME_INODE): New file/macro.
46247         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46248         Include "same-inode.h", instead.
46249         * lib/same.c: Likewise.
46250         * lib/cycle-check.h: Include "same-inode.h".
46251         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46252         * lib/cycle-check.c (SAME_INODE): Remove definition.
46253         * lib/root-dev-ino.h: Include "same-inode.h".
46254
46255         2006-03-11  Eric Blake  <ebb9@byu.net>
46256
46257         * lib/same.c (same_name): s/base_name/last_component/
46258         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46259         * lib/filenamecat.c (file_name_concat): Likewise.
46260
46261         2006-03-11  Eric Blake  <ebb9@byu.net>,
46262                     Paul Eggert  <eggert@cs.ucla.edu>
46263
46264         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46265         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46266         drive prefix.
46267         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46268         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46269         (last_component): New method.
46270         * lib/dirname.c (dir_len): Determine when drive letters need a
46271         subsequent slash.  Preserve // when it is special.
46272         (dir_name): Don't append dot when drive letter is absolute.
46273         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46274         * lib/basename.c (base_name): New semantics - malloc the result.
46275         Preserve // when it is special.  Preserve relative files that look
46276         like drive letters.
46277         (base_len): Preserve // when it is special.
46278         (last_component): New method, similar to old base_name semantics.
46279         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46280         base_name.  Strip redundant slashes from ///.
46281
46282 2006-07-03  Jim Meyering  <jim@meyering.net>
46283
46284         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46285         macro is used before the first cycle_check call.
46286
46287 2006-07-03  Eric Blake  <ebb9@byu.net>
46288
46289         * modules/dirname (Depends-on): Add xstrndup.
46290
46291 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46292
46293         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46294         test cases, so that config.log is a bit easier to follow.
46295
46296 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46297
46298         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46299         both are 64 bits, since this seems to be the tradition, and this
46300         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46301         we ever run into a host that prefers long long to long in this
46302         case, we'll need another configure-time test.  Problem reported by
46303         Jim Meyering.
46304
46305 2006-07-02  Eric Blake  <ebb9@byu.net>
46306
46307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46308
46309 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46310
46311         * modules/inttypes (Depends-on): No longer depends on stdint.
46312         * modules/stdint (Description): Say more about assumptions.
46313         Say that the fast types might differ.  Say macros are used.
46314         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46315         (Makefile.am): Revise list of substituted symbols to match
46316         new stdint.m4.
46317         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46318         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46319         * tests/test-stdint.c (verify_same_types)
46320         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46321         the code conforms to C99/C89.
46322         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46323         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46324
46325 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46326
46327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46328         but fix a bug, by requiring at least 64 bits.
46329         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46330         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46331         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46332         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46333
46334         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46335         changes.  Make 2.59 a prerequisite.  Check and substitute for
46336         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46337         inttypes.h.  Do not use special include files; just use the
46338         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46339         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46340         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46341         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46342         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46343         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46344         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46345         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46346         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46347         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46348         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46349         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46350         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46351         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46352         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46353         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46354         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46355         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46356         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46357         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46358         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46359         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46360         not check for things that C99 does not require, e.g., int8_t.  If
46361         a test isn't needed unless <stdint.h> isn't working, and is
46362         unlikely to be needed for any other reason, then don't do it
46363         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46364         size_t, since we assume C89 freestanding at least.  Do not check
46365         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46366         the right thing even if the types are not defined.  Instead use:
46367         (gl_STDINT_TYPE_PROPERTIES): New macro.
46368         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46369         testing whether <sys/types.h> clashes, as Autoconf does this for
46370         us now.  All uses removed.
46371         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46372         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46373         (gl_CHECK_TYPE_SAME):
46374         Remove; no longer needed.
46375         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46376         exists, since we'll return 0 anyway in that case.
46377         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46378
46379 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46382         possible collision with system files.
46383         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46384         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46385         WCHAR_MIN and WCHAR_MAX in this case.
46386         (<stddef.h>): Do not include; no longer needed.
46387         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46388         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46389         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46390         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46391         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46392         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46393         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46394         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46395         !defined(__c99))]: Include in this case too, since it's harmless
46396         now.
46397         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46398         dangerous to do so.
46399         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46400         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46401         (_STDINT_MIN, _STDINT_MAX): New macros.
46402         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46403         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46404         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46405         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46406         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46407         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46408         macros, not typedefs; this simplifies things quite a bit.
46409         Use long int for all types narrower than int64_t.
46410         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46411         Define in terms of long long int or int64_t or long int,
46412         not int64_t or int32_t.  This saves some compile-time testing.
46413         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46414         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46415         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46416         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46417         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46418         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46419         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46420         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46421         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46422         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46423         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46424         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46425         undef any previous version and define our own version, for
46426         simplicity and consistency with the new macros for types.
46427         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46428         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46429         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46430         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46431         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46432         @WINT_T_SUFFIX@ to keep things simple here.
46433         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46434         Simplify by assuming typical 8/16/32/64 host, since we're
46435         already doing that elsewhere anyway.
46436         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46437         and assume long long int is 64 bits if available.  This
46438         speeds up 'configure'.
46439
46440 2006-07-01  Eric Blake  <ebb9@byu.net>
46441
46442         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46443         Reported by Andreas Buening.
46444
46445 2006-07-01  Eric Blake  <ebb9@byu.net>
46446
46447         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46448
46449 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46450
46451         * lib/getaddrinfo.c: fixed typo
46452
46453 2006-06-29  Jim Meyering  <jim@meyering.net>
46454
46455         * modules/strftime (Maintainer): Add my name, since with the
46456         FPRINTFTIME changes strftime.c has forked from glibc.
46457
46458 2006-06-29  Eric Blake  <ebb9@byu.net>
46459
46460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46461
46462 2006-06-29  Eric Blake  <ebb9@byu.net>
46463
46464         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46465
46466 2006-06-29  Eric Blake  <ebb9@byu.net>
46467
46468         * lib/stat_.h: New file.
46469
46470 2006-06-29  Eric Blake  <ebb9@byu.net>
46471
46472         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46473         unused static function.
46474
46475 2006-06-29  Eric Blake  <ebb9@byu.net>
46476
46477         * doc/functions.texi (Function Portability): Document missing lstat
46478         on mingw.
46479
46480 2006-06-29  Eric Blake  <ebb9@byu.net>
46481
46482         * MODULES.html.sh: Add sys_stat.
46483         * modules/sys_stat: New module.
46484         * modules/mkstemp (Depends-on): Add sys_stat.
46485
46486 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46487
46488         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46489
46490 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46491
46492         * m4/c-bs-a.m4: Removed.
46493
46494 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46495
46496         * lib/strftime.c: Assume strftime() exists.
46497
46498 2006-06-29  Derek Price  <derek@ximbiot.com>
46499
46500         * modules/c-bs-a: Removed - \a is C89.
46501         * MODULES.html.sh: Remove c-bs-a.
46502
46503 2006-06-29  Bruno Haible  <bruno@clisp.org>
46504
46505         * modules/wcwidth (License): Change to LGPL.
46506
46507 2006-06-28  Simon Josefsson  <jas@extundo.com>
46508
46509         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46510         on _WIN32.
46511
46512         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46513         getnameinfo.
46514
46515 2006-06-28  Simon Josefsson  <jas@extundo.com>
46516
46517         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46518
46519 2006-06-28  Simon Josefsson  <jas@extundo.com>
46520
46521         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46522         functions there.  It will succeed on Windows XP, but on Windows
46523         2000 and (presumably) earlier, it will fail, and use the internal
46524         re-implementation.
46525         (use_win32_p): New function.
46526         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46527         Support AI_NUMERICSERV to disable getservbyname.
46528         (getnameinfo): New function, only supports
46529         NI_NUMERICHOST|NI_NUMERICSERV for now.
46530
46531         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46532         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46533         getnameinfo.
46534
46535 2006-06-28  Eric Blake  <ebb9@byu.net>
46536
46537         * modules/wcwidth: New file.
46538         * modules/mbchar (Depends-on): Add wcwidth.
46539         * modules/mbswidth (Depends-on): Add wcwidth.
46540         * MODULES.html.sh: Add wcwidth.
46541
46542 2006-06-28  Eric Blake  <ebb9@byu.net>
46543
46544         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46546
46547 2006-06-28  Eric Blake  <ebb9@byu.net>
46548
46549         * lib/xvasprintf.h: Fix comments.
46550
46551 2006-06-28  Eric Blake  <ebb9@byu.net>
46552
46553         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46554         * lib/mbswidth.c (wcwidth): Move from here...
46555         * lib/wcwidth.h: ...to this new file.
46556
46557 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46558
46559         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46560
46561         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46562         it's obsolete.
46563         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46564
46565 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46566
46567         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46568         Autoconf 2.60 says this stuff was obsolete.
46569
46570 2006-06-28  Bruno Haible  <bruno@clisp.org>
46571
46572         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46573
46574 2006-06-28  Bruno Haible  <bruno@clisp.org>
46575
46576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46577         gt_TYPE_WCHAR_T.
46578
46579 2006-06-28  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46582         declaration for wcwidth.
46583         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46584
46585 2006-06-28  Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46588         (mkdir): Define using _mkdir.
46589
46590 2006-06-28  Bruno Haible  <bruno@clisp.org>
46591
46592         * lib/getaddrinfo.h: Fix POSIX URL.
46593         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46594         _WIN32.
46595         (use_win32_p): Make static.
46596         (getaddrinfo): Reject service name if it is empty or does not consist
46597         solely of decimal digits, or if its value is > 65535.
46598         (getnameinfo): Remove useless casts.
46599
46600 2006-06-27  Simon Josefsson  <jas@extundo.com>
46601
46602         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46603         Eggert and Martin Lambers.
46604
46605 2006-06-27  Simon Josefsson  <jas@extundo.com>
46606
46607         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46608         Eggert and Martin Lambers.
46609
46610 2006-06-27  Bruno Haible  <bruno@clisp.org>
46611
46612         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46613         result to 0, not to empty.
46614         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46615
46616 2006-06-27  Bruno Haible  <bruno@clisp.org>
46617
46618         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
46619
46620 2006-06-26  Simon Josefsson  <jas@extundo.com>
46621
46622         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
46623         present.
46624
46625 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
46626
46627         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
46628         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
46629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
46630
46631 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
46632
46633         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
46634
46635 2006-06-26  Bruno Haible  <bruno@clisp.org>
46636
46637         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
46638
46639 2006-06-26  Bruno Haible  <bruno@clisp.org>
46640
46641         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
46642
46643 2006-06-26  Bruno Haible  <bruno@clisp.org>
46644
46645         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
46646         SGI C compiler in pre-C99 mode.
46647         Suggested by Mark D. Baushke and Larry Jones.
46648
46649 2006-06-26  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
46652         WCHAR_MAX.
46653         Reported by Mark D. Baushke and Larry Jones.
46654
46655 2006-06-26  Bruno Haible  <bruno@clisp.org>
46656
46657         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
46658         in pre-C99 mode.
46659         Suggested by Mark D. Baushke and Larry Jones.
46660
46661 2006-06-23  Simon Josefsson  <jas@extundo.com>
46662             Bruno Haible  <bruno@clisp.org>
46663
46664         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
46665         Emit mostlyclean-local rule.
46666         (func_emit_tests_Makefile_am): Likewise.
46667         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
46668
46669 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
46670
46671         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
46672
46673 2006-06-23  Bruno Haible  <bruno@clisp.org>
46674
46675         * tests/test-stdint.c: Update to match ISO C 99 Technical
46676         Corrigendum 1.
46677
46678 2006-06-23  Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
46681
46682 2006-06-23  Bruno Haible  <bruno@clisp.org>
46683
46684         * lib/stdint_.h: Treat IRIX like OpenBSD.
46685
46686 2006-06-23  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
46689         ISO C 99 Technical Corrigendum 1.
46690
46691 2006-06-22  Simon Josefsson  <jas@extundo.com>
46692
46693         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
46694         MinGW.
46695
46696 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46697
46698         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
46699         needed.  Some compiler complained about some of them.  Problem reported
46700         by Larry Jones in
46701         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
46702
46703 2006-06-21  Simon Josefsson  <jas@extundo.com>
46704
46705         * tests/test-getaddrinfo.c: New file.
46706
46707         * modules/getaddrinfo-tests: New file.
46708
46709         * MODULES.html.sh: Add inet_pton.
46710
46711         * modules/inet_pton: New file.
46712
46713 2006-06-21  Simon Josefsson  <jas@extundo.com>
46714
46715         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
46716         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
46717         of using the (limited) gnulib implementation on Windows XP.
46718
46719         * m4/inet_pton.m4: New file.
46720
46721 2006-06-21  Simon Josefsson  <jas@extundo.com>
46722
46723         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
46724         variable.
46725
46726         * lib/socket_.h: Don't define WINVER.
46727
46728         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
46729         slightly modified to work in gnulib.
46730
46731 2006-06-21  Simon Josefsson  <jas@extundo.com>
46732
46733         * doc/gnulib.texi (Windows sockets): Add.
46734
46735 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * lib/read-file.c (fread_file): Start with buffer allocation of
46738         0 bytes rather than 1 byte; this simplifies the code.
46739         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
46740         code to free buffer and save/restore errno.
46741         (internal_read_file): Remove unused local.
46742
46743 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
46744
46745         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
46746         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
46747         Problem reported by Denis Excoffier in
46748         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
46749
46750 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46751
46752         * modules/sys_socket, modules/socklen: Include sys/types since
46753         FreeBSD 4.x's sys/socket.h needs it.
46754
46755 2006-06-19  Simon Josefsson  <jas@extundo.com>
46756
46757         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
46758
46759 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
46762
46763 2006-06-19  Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
46766         and FULL_PATH_INTTYPES_H in angle brackets.
46767         Reported by Mark D. Baushke <mdb@gnu.org>.
46768
46769 2006-06-17  Eric Blake  <ebb9@byu.net>
46770
46771         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
46772         errno.
46773
46774 2006-06-17  Bruno Haible  <bruno@clisp.org>
46775
46776         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
46777         <sys/inttypes.h>.
46778
46779 2006-06-17  Bruno Haible  <bruno@clisp.org>
46780
46781         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
46782         whether errno is declared. Assume <errno.h> declares errno.
46783
46784 2006-06-17  Bruno Haible  <bruno@clisp.org>
46785
46786         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
46787
46788 2006-06-17  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
46791         problem on Solaris 2.5.1.
46792
46793 2006-06-16  Eric Blake  <ebb9@byu.net>
46794
46795         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
46796         * lib/unicodeio.c [!defined errno]: Likewise.
46797         * lib/strtol.c [!defined errno]: Likewise.
46798         * lib/strtod.c [!defined errno]: Likewise.
46799
46800 2006-06-15  Eric Blake  <ebb9@byu.net>
46801
46802         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
46803
46804 2006-06-15  Eric Blake  <ebb9@byu.net>
46805
46806         * config/srclist.txt (ssize_t.m4): Lose sync.
46807
46808 2006-06-15  Bruno Haible  <bruno@clisp.org>
46809
46810         * modules/stdint (Files): Include m4/full-header-path.m4,
46811         m4/size_max.m4, m4/wchar_t.m4.
46812         (Makefile.am): Many more substitutions.
46813         * modules/stdint-tests: New file.
46814         * tests/test-stdint.c: New file.
46815
46816 2006-06-15  Bruno Haible  <bruno@clisp.org>
46817
46818         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
46819         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
46820         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
46821         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
46822         gl_CHECK_TYPE_SAME): New macros.
46823
46824 2006-06-15  Bruno Haible  <bruno@clisp.org>
46825
46826         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
46827
46828 2006-06-15  Bruno Haible  <bruno@clisp.org>
46829
46830         * lib/stdint_.h: Rewritten to be fully auto-configured.
46831         Fixes bug on HP-UX/IA64.
46832
46833 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
46834
46835         * lib/getdate.y (__attribute__): Don't define if already defined.
46836         Problem reported by Larry Jones.
46837         * lib/utimens.c (__attribute__): Likewise.
46838
46839 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
46840
46841         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
46842         reported by Andreas Schwab.
46843
46844 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46845             Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
46848         check for the declaration of strnlen and a run test that exposes the
46849         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
46850         rpl_strndup.
46851
46852 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46853             Bruno Haible  <bruno@clisp.org>
46854
46855         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
46856
46857 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46858
46859         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
46860         compile test, for Tru64 4.0D.
46861
46862 2006-05-28  Karl Berry  <karl@gnu.org>
46863
46864         * config/srclist.txt (printf-args.c): lose sync.
46865
46866 2006-05-26  Martin Lambers  <marlam@marlam.de>
46867
46868         * lib/getpass.c: Updates the test for the native W32 API, and adds
46869         missing includes, thus fixing compilation warnings.
46870
46871 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46872
46873         * lib/exclude.c (exclude_fnmatch): New function.
46874         (excluded_file_name): Call exclude_fnmatch.
46875         * lib/exclude.h (excluded_file_name): New prototype
46876
46877 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
46878
46879         * lib/tempname.c (small_open, large_open): New macros.
46880         (__open, __open64) [!_LIBC]: Remove.
46881         (__gen_tempname): Use small_open and large_open instead of __open
46882         and __open64.  This fixes a portability bug on HP-UX 11.11i
46883         reported by Simon Wing-Tang in
46884         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
46885
46886 2006-05-24  Bruno Haible  <bruno@clisp.org>
46887
46888         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
46889         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
46890         Reported by Thorsten Maerz <torte@netztorte.de> via
46891         Aaron Stone <aaron@serendipity.cx>.
46892
46893 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46894
46895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
46896         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
46897         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
46898         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
46899         not really conditional on the cache.
46900         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
46901
46902 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46903
46904         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
46905         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
46906         (my_usleep): Don't mishandle maximum value.
46907
46908 2006-05-19  Jim Meyering  <jim@meyering.net>
46909
46910         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
46911
46912 2006-05-17  Bruno Haible  <bruno@clisp.org>
46913
46914         Cygwin portability.
46915         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
46916
46917 2006-05-17  Bruno Haible  <bruno@clisp.org>
46918
46919         * lib/stdint_.h: Fix recognition of Cygwin.
46920
46921 2006-05-15  Bruno Haible  <bruno@clisp.org>
46922
46923         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
46924         on libtool patch by Ralf Wildenhues.
46925
46926 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
46927
46928         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
46929         test for C99 conformance; (bool) 0.5 is an integer constant
46930         expression, but (bool) -0.5 is not.  Problem reported by Fedor
46931         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
46932
46933 2006-05-11  Simon Josefsson  <jas@extundo.com>
46934
46935         * m4/xvasprintf.m4: Fix obvious typo.
46936
46937 2006-05-11  Jim Meyering  <jim@meyering.net>
46938
46939         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
46940         James Lemley.
46941
46942 2006-05-10  Simon Josefsson  <jas@extundo.com>
46943
46944         * lib/md4.c: Typo fix, update copyright years.
46945         (K1, K2): Don't use L because it turn computations into 64-bit on
46946         64-bit platforms.
46947
46948 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
46949
46950         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
46951         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
46952         unwanted sign propagation, e.g., on hosts with 64-bit int.
46953         There still are some problems with reeelly weird theoretical hosts
46954         (e.g., 33-bit int) but it's not worth worrying about now.
46955         * lib/sha1.c (rol): Likewise.
46956         (K1, K2, K3, K4): Remove unnecessary L suffix.
46957
46958 2006-05-10  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/des.c: Cast to avoid warnings.
46961
46962 2006-05-09  Bruno Haible  <bruno@clisp.org>
46963
46964         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
46965         (Depends-on): Depend also on xsize, stdarg.
46966         (configure.ac): Add gl_XVASPRINTF.
46967
46968 2006-05-09  Bruno Haible  <bruno@clisp.org>
46969
46970         * m4/xvasprintf.m4: New file.
46971
46972 2006-05-09  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
46975         (EOVERFLOW): Define fallback value.
46976         (xstrcat): New function.
46977         (xvasprintf): Recognize the special case of a string concatenation.
46978
46979 2006-05-08  Eric Blake  <ebb9@byu.net>
46980
46981         * gnulib-tool (func_version): Base copyright year on CVS date.
46982         (func_emit_copyright_notice): New function.
46983         (func_emit_lib_Makefile_am): Use it.
46984         (func_emit_tests_Makefile_am): Likewise.
46985         (func_import): Likewise.
46986
46987 2006-05-08  Bruno Haible  <bruno@clisp.org>
46988
46989         * modules/stdarg: New file.
46990         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
46991
46992 2006-05-08  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/stdarg.m4: New file, from GNU gettext.
46995
46996 2006-05-08  Bruno Haible  <bruno@clisp.org>
46997
46998         * config/srclist.txt (build-aux/config.rpath): different from latest
46999         release.
47000
47001 2006-05-08  Bruno Haible  <bruno@clisp.org>
47002
47003         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47004
47005 2006-05-05  Jim Meyering  <jim@meyering.net>
47006
47007         * m4/warning.m4: New file, derived from bison's file by the same name.
47008
47009 2006-05-03  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/stdint_.h: Shorter URL.
47012         * lib/inttypes.h: Likewise.
47013
47014 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47015
47016         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47017
47018 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47019
47020         * lib/verify.h: Document the internals better.  Most of this change
47021         was written by Bruno Haible.
47022
47023 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47024
47025         * doc/verify.texi: New file, partly based on a proposal by
47026         Bruno Haible.
47027
47028 2006-05-02  Bruno Haible  <bruno@clisp.org>
47029
47030         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47031         test from here...
47032         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47033
47034 2006-04-29  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47037         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47038
47039 2006-04-29  Bruno Haible  <bruno@clisp.org>
47040
47041         * gnulib-tool: Make --update option actually work.
47042
47043 2006-04-29  Bruno Haible  <bruno@clisp.org>
47044
47045         * doc/gcd.texi: New file.
47046         * doc/gnulib.texi: Include it.
47047
47048 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47049
47050         * lib/getdate.y (get_date): When adding relative date, start with the
47051         initial time, not with the result of the first mktime call.
47052
47053 2006-04-25  Bruno Haible  <bruno@clisp.org>
47054
47055         * gnulib-tool (func_import): Output the include directives in three
47056         blocks, sorted separately.
47057         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47058
47059 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47060
47061         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47062         to define main with arguments, for C++.  Reported by Eric Blake.
47063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47064         Prefer 'int main ()' to 'int main (void)', for C++.
47065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47066         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47067         for 'main', for C99 and C++.
47068
47069 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47070
47071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47072         Don't assume that exit status -1 is valid.
47073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47075         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47076         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47077         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47078         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47079         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47080         functions can be used without declaring them, or that you can
47081         exit with status -1.
47082         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47083
47084 2006-04-24  Karl Berry  <karl@gnu.org>
47085
47086         * config/srclist.txt (longdouble.m4): sync lost.
47087
47088 2006-04-24  Eric Blake  <ebb9@byu.net>
47089
47090         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47091
47092 2006-04-24  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47095         poll() implementation in AIX.
47096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47097
47098 2006-04-24  Bruno Haible  <bruno@clisp.org>
47099
47100         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47101         assigned exactly once.
47102
47103 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47104             Bruno Haible  <bruno@clisp.org>
47105
47106         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47107         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47108         for AM_CPPFLAGS.
47109
47110 2006-04-23  Bruno Haible  <bruno@clisp.org>
47111
47112         * modules/copy-file: Depend on unistd.
47113         * modules/execute: Likewise.
47114         * modules/fatal-signal: Likewise.
47115         * modules/findprog: Likewise.
47116         * modules/mkdtemp : Likewise.
47117         * modules/pipe: Likewise.
47118         * modules/wait-process: Likewise.
47119
47120 2006-04-23  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47123         condition was already detected.
47124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47125
47126 2006-04-23  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/copy-file.c: Include <unistd.h> unconditionally.
47129         * lib/execute.c: Likewise.
47130         * lib/fatal-signal.c: Likewise.
47131         * lib/findprog.c: Likewise.
47132         * lib/mkdtemp.c: Likewise.
47133         * lib/pipe.h: Likewise.
47134         * lib/pipe.c: Likewise.
47135         * lib/wait-process.h: Likewise.
47136
47137 2006-04-23  Bruno Haible  <bruno@clisp.org>
47138
47139         * gnulib-tool (func_usage): Fix --import description. Document
47140         --update.
47141         (func_import): Create temporary file in a temporary directory, if
47142         --dry-run is specified. Silence errors from 'grep' when there are no
47143         m4 files in $m4dir.
47144         (func_create_testdir): Silence errors from 'grep' when there are no
47145         m4 files in $m4dir.
47146         Reported by Karl Berry <karl@freefriends.org>.
47147
47148 2006-04-20  Bruno Haible  <bruno@clisp.org>
47149
47150         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47151         one argument, so that the code will be portable to Autoconf 2.60.
47152         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47153         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47154         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47155
47156 2006-04-19  Derek Price  <derek@ximbiot.com>
47157             Eric Blake  <ebb9@byu.net>
47158
47159         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47160         rather than "/full/path.h".  Update comment to match.  Shorten &
47161         generalize m4_translit call via AS_TR_CPP.
47162
47163 2006-04-19  Derek Price  <derek@ximbiot.com>
47164             Eric Blake  <ebb9@byu.net>
47165
47166         * lib/inttypes.h: Correct grammar in comment.
47167
47168 2006-04-18  Derek Price  <derek@ximbiot.com>
47169             Paul Eggert  <eggert@cs.ucla.edu>
47170
47171         * modules/inttypes: New file.
47172         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47173
47174 2006-04-18  Derek Price  <derek@ximbiot.com>
47175             Paul Eggert  <eggert@cs.ucla.edu>
47176
47177         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47178         New files.
47179
47180 2006-04-18  Derek Price  <derek@ximbiot.com>
47181             Paul Eggert  <eggert@cs.ucla.edu>
47182
47183         * lib/inttypes.h: New file.
47184         * lib/strtoimax.c: Assume <inttypes.h>.
47185
47186 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47187
47188         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47189         isn't mounted.  Problem reported by Kir Kolyshkin.
47190
47191 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47192
47193         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47194         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47195         Derek R. Price.
47196         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47197         implementation.
47198
47199 2006-04-12  Eric Blake  <ebb9@byu.net>
47200
47201         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47202         is now done automatically by the corresponding Autoconf macro.
47203
47204 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47207         time_r.h.
47208
47209 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47210
47211         Merge regex changes from libc, removing some of our
47212         POSIX-conformance changes that were rejected and redoing them in a
47213         less-intrusive way.
47214
47215         * lib/regcomp.c (re_compile_internal, init_dfa):
47216         Length arg is now size_t, not Idx.  All uses changed.
47217         (peek_token): Forward decl now says internal_function.
47218         (__re_error_msgid, __re_error_msgid_idx):
47219         Now static rather than extern with attribute_hidden.
47220         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47221         For some reason libc prefers K&R style defns for external functions.
47222         (regerror) [!defined _LIBC]: Likewise.
47223         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47224         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47225         (build_range_exp, build_collating_symbol):
47226         Use K&R-style defn.
47227         (re_compile_fastmap): Use '\0' to memset, not 0.
47228         (utf8_sb_map): Make the calculations more obvious.
47229         (init_dfa, parse_bracket_exp, build_charclass_op):
47230         Call calloc and cast result, as glibc does.
47231         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47232         (build_range_exp, build_collating_symbol):
47233         Now internal functions.
47234
47235         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47236
47237         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47238         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47239         Don't depend on VMS; depend on __VMS instead, for POSIX
47240         namespace cleanness.
47241         (regoff_t): Define to ssize_t, not long int.
47242
47243         Remove the REG_ macros named below.  Instead, make the old names
47244         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47245         __USE_GNU_REGEX.
47246         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47247         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47248         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47249         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47250         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47251         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47252         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47253         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47254         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47255         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47256         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47257         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47258         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47259         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47260         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47261         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47262         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47263         (REG_NREGS):
47264         Remove.  All uses replaced by the old RE_* names.
47265         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47266         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47267         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47268         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47269         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47270         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47271         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47272         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47273         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47274         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47275         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47276         Don't bother having these macros be independent of each others'
47277         values, since they no longer exist in the POSIX name space.
47278
47279         Rename the following member names back to their old names,
47280         unless !__USE_GNU_REGEX.  All uses changed back.
47281         (buffer): Renamed from re_buffer.
47282         (allocated): Renamed from re_allocated.
47283         (used): Renamed from re_used.
47284         (syntax): Renamed from re_syntax.
47285         (fastmap): Renamed from re_fastmap.
47286         (translate): Renamed from re_translate.
47287         (can_be_null): Renamed from re_can_be_null.
47288         (regs_allocated): Renamed from re_regs_allocated.
47289         (fastmap_accurate): Renamed from re_fastmap_accurate.
47290         (no_sub): Renamed from re_no_sub.
47291         (not_bol): Renamed from re_not_bol.
47292         (not_eol): Renamed from re_not_eol.
47293         (newline_anchor): Renamed from re_newline_anchor.
47294         (num_regs): Renamed from rm_num_regs.
47295         (start): Renamed from rm_start.
47296         (end): Renamed from rm_end.
47297
47298         (free_state): Move up a bit.
47299
47300         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47301         #define to be empty.
47302         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47303         when that is what is intended.
47304         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47305         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47306         (MAX): New macro.
47307         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47308         All uses changed back to re_malloc, etc.  It's now the caller's
47309         responsibility to check for overflow; all callers changed.
47310         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47311         (re_x2nrealloc): Remove.
47312         (free_state): Remove decl.
47313
47314         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47315         (re_set_registers, re_exec):
47316         Use K&R-style defn.
47317
47318         2006-01-31  Roland McGrath  <roland@redhat.com>
47319
47320         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47321         Reported by Mike Frysinger <vapier@gentoo.org>.
47322
47323         2006-01-15  Andreas Jaeger  <aj@suse.de>
47324
47325         [BZ #1950]
47326         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47327         build_wcs_upper_buffer change.
47328         (build_wcs_upper_buffer): Change return type.
47329
47330         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47331
47332         * lib/regex_internal.h: Include <stdint.h> if available.
47333
47334         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47335
47336         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47337
47338         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47339
47340         * lib/regcomp.c: Adjust for changed secondary hash function.
47341
47342         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47343
47344         * lib/regex.h: Pretty printing.
47345         Clean up namespace a bit.
47346
47347         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47348
47349         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47350         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47351
47352         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47353                     Ulrich Drepper  <drepper@redhat.com>
47354
47355         [BZ #1302]
47356         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47357         changed.
47358         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47359
47360         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47361
47362         [BZ #281]
47363         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47364         * lib/regcomp.c: Remove unnecessary uses of
47365         unsigned RE_TRANSLATE_TYPE.
47366         * lib/regex_internal.h: Likewise.
47367         * lib/regex_internal.c: Likewise.
47368         * lib/regexec.c: Likewise.
47369         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47370
47371         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47372
47373         * lib/regexec.c (find_recover_state): Remove unnecessary
47374         initialization.
47375         (transit_state_bkref): Make DFA a const pointer.
47376         (get_subexp): Likewise.
47377         (check_arrival): Likewise.
47378         (update_cur_sifted_state): Likewise.
47379         (re_search_internal): Likewise.
47380         (prune_impossible_nodes): Likewise.
47381         (acquire_init_state_context): Likewise.
47382         (proceed_next_node): Likewise.
47383         (set_regs): Likewise.
47384         (free_fail_stack_return): Likewise.
47385         (check_arrival_expand_ecl): Mark DFA parameter as const.
47386         (check_arrival_expand_ecl_sub): Likewise.
47387         (check_subexp_limits): Likewise.
47388         (sub_epsilon_src_nodes):  Likewise.
47389         (add_epsilon_src_nodes):  Likewise.
47390         (merge_state_array): Likewise.
47391         (update_regs): Likewise.
47392         (build_trtable): Likewise.
47393         (sift_states_backward): Mark MCTX parameter as const.
47394         (build_sifted_states): Likewise.
47395         (update_cur_sifted_state): Likewise.
47396         (sift_states_mkref): Likewise.
47397         (check_arrival_expand_ecl): Mark eclosure as const.
47398         (check_dst_limits_calc_pos_1): Likewise.
47399         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47400         pointer.
47401
47402         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47403
47404         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47405         (transit_state_sb): Likewise.
47406         (transit_state_mb): Likewise.
47407         (sift_states_iter_mb): Likewise.
47408         (check_arrival_add_next_nodes): Likewise.
47409         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47410         [_LIBC] (re_search_2_stub): Use mempcpy.
47411
47412         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47413         mbrtowc for very simple UTF-8 case.
47414
47415         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47416         a pointer-to-const.
47417         (re_acquire_state_context): Likewise.
47418         * lib/regex_internal.h: Adjust prototypes.
47419
47420         * lib/regex.c: Prevent using C++ compilers.
47421
47422         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47423         (re_acquire_state_context): Likewise.
47424
47425 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47426
47427         * modules/regex (Depends-on): Add ssize_t.
47428
47429 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47430
47431         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47432         translation table.
47433
47434 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47437
47438 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47439             Bruno Haible  <bruno@clisp.org>
47440
47441         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47442         <sys/types.h> and <inttypes.h>.
47443
47444 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47445
47446         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47447         `__error_t_defined', so argp.h will not typedef the former.
47448
47449 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47452         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47453         glibc names.  Even if glibc is changed to conform to POSIX, the
47454         traditional names will be available anyway, since regex depends on
47455         the extensions module.  Also, fix a longstanding typo in the
47456         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47457         reported by Emanuele Giaquinta.  Also, change sense of cached
47458         variable, so that the message makes sense.
47459
47460 2006-03-24  Simon Josefsson  <jas@extundo.com>
47461
47462         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47463         including some doc fixes.
47464         (base64_encode_alloc): Fix +1 bug on allocation failures.
47465
47466 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47467
47468         * lib/base64.c (base64_encode): Do not read past end of array with
47469         unsanitized input on systems with CHAR_BIT > 8.
47470
47471 2006-03-24  Eric Blake  <ebb9@byu.net>
47472
47473         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47474
47475 2006-03-22  Karl Berry  <karl@gnu.org>
47476
47477         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47478         * config/srclistvars.sh (COREUTILS): new var.
47479
47480 2006-03-17  Jim Meyering  <jim@meyering.net>
47481
47482         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47483         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47484
47485 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47486
47487         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47488         no longer needs it.  Instead, check that regoff_t is as least
47489         as wide as ptrdiff_t.
47490
47491         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47492         so that our regex.h stays compatible with the installed regex.
47493         This is helpful for installers who configure --without-included-regex.
47494         Problem reported by Emanuele Giaquinta.
47495
47496 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47497
47498         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47499         Typedef to long int, not to off_, as POSIX will likely change
47500         in that direction.
47501
47502 2006-03-15  Eric Blake  <ebb9@byu.net>
47503
47504         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47505
47506 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47507
47508         * lib/argp-help.c (validate_uparams): Fix typo
47509         * lib/argp-parse.c (argp_default_options): Consistently begin help
47510         messages with a lowercase letter.
47511
47512 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47513
47514         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47515         overrun buffers and shouldn't be used (much as gets shouldn't be
47516         used).
47517         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47518
47519 2006-03-08  Simon Josefsson  <jas@extundo.com>
47520
47521         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47522         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47523
47524 2006-03-08  Simon Josefsson  <jas@extundo.com>
47525
47526         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47527         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47528
47529 2006-03-08  Simon Josefsson  <jas@extundo.com>
47530
47531         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47532         signal that configure disabled the device.
47533
47534 2006-03-08  Simon Josefsson  <jas@extundo.com>
47535
47536         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47537         languages.
47538
47539 2006-03-07  Simon Josefsson  <jas@extundo.com>
47540
47541         * modules/getopt (Depends-on): Add unistd.
47542
47543         * modules/unistd: New file.
47544
47545 2006-03-07  Simon Josefsson  <jas@extundo.com>
47546
47547         * modules/gc-random: New file.
47548
47549 2006-03-07  Simon Josefsson  <jas@extundo.com>
47550
47551         * m4/unistd_h.m4: New file.
47552
47553 2006-03-07  Simon Josefsson  <jas@extundo.com>
47554
47555         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47556         test to be side-effect free by storing the result in the cache
47557         variable gl_cv_lib_readline, and moving the assignment of
47558         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47559         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47560
47561 2006-03-07  Simon Josefsson  <jas@extundo.com>
47562
47563         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47564         error on missing devices (the functions will return an error).
47565
47566         * m4/gc.m4: Move random stuff to gc-random.m4
47567
47568 2006-03-07  Simon Josefsson  <jas@extundo.com>
47569
47570         * lib/unistd_.h: New file.
47571
47572 2006-03-07  Simon Josefsson  <jas@extundo.com>
47573
47574         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47575
47576 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47579         Problem reported by Juan Manuel Guerrero.
47580
47581 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47582
47583         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47584         the unistd module.
47585         * lib/getlogin_r.c: Likewise.
47586         * lib/getlogin_r.h: Likewise.
47587         * lib/glob.c: Likewise.
47588         * lib/pagealign_alloc.c: Likewise.
47589         * lib/unistd_.h: Remove; no longer needed.
47590
47591 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47594         Add unistd.
47595         * modules/c-stack (Depends-on): Add unistd.
47596         * modules/getlogin_r: Likewise.
47597         * modules/glob: Likewise.
47598         * modules/pagealign_alloc: Likewise.
47599         * modules/unistd (Files): Remove lib/unistd_.h.
47600         (EXTRA_DIST): Remove.
47601         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47602         need unistd_.h.
47603         (MOSTLYCLEANFILES): Remove unistd.h-t.
47604
47605 2006-03-03  Simon Josefsson  <jas@extundo.com>
47606
47607         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47608
47609 2006-03-03  Simon Josefsson  <jas@extundo.com>
47610
47611         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47612         libidn and bison.
47613
47614 2006-03-03  Simon Josefsson  <jas@extundo.com>
47615
47616         * build-aux/maint.mk: Add indent target.
47617
47618 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
47619
47620         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
47621         our replacement poll.h in any case, to avoid a differing
47622         declaration from a system header.  Seen on AIX.
47623
47624 2006-03-01  Simon Josefsson  <jas@extundo.com>
47625
47626         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
47627         <kasal@ucw.cz>.
47628
47629 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47630
47631         * modules/gettime (Depends-on): Add extensions module.
47632         * modules/nanosleep (Depends-on): Likewise.
47633         * modules/settime (Depends-on): Likewise.
47634
47635 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
47636
47637         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
47638         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
47639         pedantically.
47640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47641         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
47642
47643         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
47644         not "==".  Reported by Ralf Wildenhues.
47645
47646 2006-03-01  Karl Berry  <karl@gnu.org>
47647
47648         * doc/Copyright/request-*: new files, synced from gnuorg.
47649
47650 2006-03-01  Karl Berry  <karl@gnu.org>
47651
47652         * config/srclist.txt (Copyright/*): new entries.
47653
47654 2006-02-28  Simon Josefsson  <jas@extundo.com>
47655
47656         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
47657
47658 2006-02-27  Simon Josefsson  <jas@extundo.com>
47659
47660         * lib/base64.h: Indent #define's.  From Jim Meyering
47661         <jim@meyering.net>.
47662
47663 2006-02-27  Jim Meyering  <jim@meyering.net>
47664
47665         Revert the change of 2006-02-24, so these files can continue
47666         to be sync'd from gettext.
47667         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
47668         of `config.h'.
47669
47670 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
47671
47672         * modules/intprops: New file.
47673         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47674         Add intprops.
47675         * modules/getloadavg (Files): Remove lib/intprops.h.
47676         (Depends-on): Add intprops.
47677         * modules/human: Likewise.
47678         * modules/inttostr: Likewise.
47679         * modules/openat: Likewise.
47680         * modules/sig2str: Likewise.
47681         * modules/userspec: Likewise.
47682         * modules/utimecmp: Likewise.
47683         * modules/xnanosleep: Likewise.
47684         * modules/xstrtol: Likewise.
47685
47686 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
47687
47688         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
47689         * modules/lock-tests (TESTS): Use $(EXEEXT).
47690         * modules/tls-tests: Likewise.
47691         * modules/argp-tests: Likewise.
47692         (check_PROGRAMS): New var, replacing...
47693         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
47694
47695 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47696
47697         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
47698         `config.h'.
47699
47700 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
47701
47702         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
47703
47704 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47705
47706         Sync from coreutils.
47707         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
47708         gl_CHDIR_SAFER.
47709
47710 2006-02-22  Jim Meyering  <jim@meyering.net>
47711
47712         Sync from coreutils.
47713         * m4/chdir-safer.m4: New file.
47714
47715 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
47716
47717         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
47718         AT_FDCWD exceeds INT_MAX.
47719         * lib/openat.h (AT_FDCWD): Likewise.
47720
47721 2006-02-17  Eric Blake  <address@hidden>
47722
47723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
47724
47725 2006-02-16  Simon Josefsson  <jas@extundo.com>
47726
47727         * modules/getaddrinfo (Depends-on): Add sys_socket.
47728
47729 2006-02-15  Simon Josefsson  <jas@extundo.com>
47730
47731         * build-aux/maint.mk: Add dsyntax-check rule.
47732
47733 2006-02-15  Eric Blake  <ebb9@byu.net>
47734
47735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
47736         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
47737         'present but cannot compile' warnings on cygwin.
47738         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
47739         use ws2tcpip.h if sys/socket.h works.
47740         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
47741         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
47742
47743 2006-02-14  Simon Josefsson  <jas@extundo.com>
47744
47745         * modules/maintainer-makefile (Files): Rename.
47746
47747         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
47748         and (the local) Makefile.cfg to maint-cfg.mk.
47749
47750         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
47751         to the latter.
47752
47753         * modules/maintainer-makefile: New module.
47754
47755         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
47756         severaly stripped to make it possible to build it up from scratch
47757         with reliable tests.
47758
47759         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
47760         fixes to permit overriding the default actions when configure and
47761         makefile are not available.
47762
47763 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
47764
47765         Sync from coreutils.
47766         * modules/lstat (Depends-on): Don't depend on xalloc.
47767         (License): Change from GPL to LGPL, since this is now simply a
47768         replacement for a libc function.
47769
47770 2006-02-14  Jim Meyering  <jim@meyering.net>
47771
47772         Sync from coreutils.
47773
47774         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
47775         failure on deficient systems, and simplify gnulib lgpl dependencies.
47776         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
47777         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
47778
47779         * lib/xalloc-die.c: Remove unused definition of N_.
47780
47781 2006-02-14  Jim Meyering  <jim@meyering.net>
47782
47783         Sync from coreutils.
47784         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
47785         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
47786         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
47787         double-quote uses of that variable, to accommodate the rare case in
47788         which getmntent is available in none of the libraries checked.  This
47789         happens at least on FreeBSD 5.0.
47790
47791 2006-02-13  Simon Josefsson  <jas@extundo.com>
47792
47793         * gnulib-tool (Usage): Fix --import, from
47794         karl@freefriends.org (Karl Berry).
47795
47796 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47797
47798         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
47799
47800 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
47801
47802         * lib/argp-namefrob.h: Restore changes accidentally lost during the
47803         "autoupdate" on 2005-12-12.
47804
47805 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47806
47807         * modules/closeout (Depends-on): Remove atexit.
47808
47809 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
47812         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
47813
47814 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
47815
47816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
47817         __EXTENSIONS__ if this causes compilation to fail.  Problem
47818         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
47819         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
47820
47821 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
47822
47823         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
47824         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
47825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
47826         All uses changed.
47827
47828 2006-01-26  Simon Josefsson  <jas@extundo.com>
47829
47830         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
47831         prototype is visible on mingw32.
47832
47833         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
47834         for mingw32.
47835
47836         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
47837         mingw32).
47838
47839 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47840
47841         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
47842         attempt to open for write; this always fails, at least on POSIX
47843         hosts.  This reinstates the 2006-01-09 change, which was
47844         inadvertently removed.
47845
47846 2006-01-26  Bruno Haible  <bruno@clisp.org>
47847
47848         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
47849         Reported by Paul Eggert.
47850
47851 2006-01-26  Bruno Haible  <bruno@clisp.org>
47852             Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * lib/stdbool_.h (_Bool)
47855         [(! (defined __cplusplus || defined __BEOS__)
47856           && !defined __GNUC__
47857           && !(defined __HP_cc || defined __xlc__
47858                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
47859                || defined __sgi))]:
47860         #define to signed char in these cases too; this simplifies
47861         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
47862         etc., separately) and makes it more conservative.
47863
47864 2006-01-25  Simon Josefsson  <jas@extundo.com>
47865
47866         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
47867         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
47868         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
47869
47870 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47871
47872         * lib/argp-namefrob.h: Bugfix. Remove stray #
47873
47874 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
47875
47876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
47877         so that we test the test.
47878         Check for yet another HP-UX cc bug involving *bool |= bool.
47879
47880 2006-01-25  Karl Berry  <karl@gnu.org>
47881
47882         * config/srclist.txt (vasnprintf.c): sync lost.
47883
47884 2006-01-25  Jim Meyering  <jim@meyering.net>
47885
47886         Sync from the stable (b5) branch of coreutils:
47887
47888         * lib/fts.c (fts_children): Don't let close() clobber errno from
47889         failed fchdir().
47890
47891         * lib/fts.c (fts_stat): When following a symlink-to-directory,
47892         don't necessarily interpret stat-fails+lstat-succeeds as indicating
47893         a dangling symlink.  That can also happen at least for ELOOP.
47894         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
47895         FYI, this bug predates the inclusion of fts.c in coreutils.
47896
47897         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
47898         in their own block, so pre-c99 compilers don't object.
47899
47900         Avoid the double-free (first in fts_read, second in fts_close) that
47901         would occur when an `active' directory is made inaccessible (e.g.,
47902         via chmod a-x) during a traversal.
47903         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
47904         before returning.  Reproduce this failure by
47905         mkdir -p a/b; cd a; chmod a-x . b
47906         Reported by Stavros Passas.
47907
47908 2006-01-25  Jim Meyering  <jim@meyering.net>
47909
47910         * lib/fileblocks.c: Remove more useless parentheses.
47911         * lib/readutmp.h: Likewise.
47912
47913 2006-01-25  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
47916         warnings.
47917         Reported by Paul Eggert.
47918
47919 2006-01-25  Bruno Haible  <bruno@clisp.org>
47920
47921         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
47922         rid of a trap command. For Solaris sh.
47923         Reported by Mark D. Baushke <mdb@gnu.org>.
47924
47925 2006-01-24  Simon Josefsson  <jas@extundo.com>
47926
47927         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
47928         Bruno.
47929
47930 2006-01-24  Karl Berry  <karl@gnu.org>
47931
47932         * config/srclist.txt (argp-namefrob.h): sync lost.
47933
47934 2006-01-24  Jim Meyering  <jim@meyering.net>
47935
47936         * modules/openat (Files): Add lib/intprops.h.
47937         From Mark D. Baushke.
47938
47939 2006-01-24  Jim Meyering  <jim@meyering.net>
47940
47941         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
47942         Reported by Mark D. Baushke.
47943
47944 2006-01-24  Jim Meyering  <jim@meyering.net>
47945
47946         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
47947
47948 2006-01-24  Bruno Haible  <bruno@clisp.org>
47949
47950         * modules/strnlen (Maintainer): Change from glibc to all.
47951
47952 2006-01-24  Bruno Haible  <bruno@clisp.org>
47953
47954         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
47955         Patch by Paul Eggert.
47956
47957 2006-01-24  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
47960         already has it.
47961         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
47962         2005-11-26.
47963
47964         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
47965         'signed char' to avoid problems with the built-in _Bool type.
47966         Reported by Paul Eggert on 2005-11-26.
47967
47968 2006-01-24  Bruno Haible  <bruno@clisp.org>
47969
47970         * gnulib-tool (func_import): Avoid constructing complicated sed
47971         expressions inside backquote.
47972         Report and solution by Mark D. Baushke <mdb@gnu.org>.
47973
47974 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
47975
47976         These changes imported from libc.
47977         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
47978         test and two separate function calls.
47979         * lib/strndup.c (__strndup): Add libc_hidden_def.
47980
47981 2006-01-23  Simon Josefsson  <jas@extundo.com>
47982
47983         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
47984         Remove the test_*_SOURCES variable: automake infers it by default.
47985         * modules/tls-tests: Likewise.
47986
47987 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         Work around porting bugs reported by Dieter in
47990         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
47991         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
47992         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
47993         Include "getopt.h" first, to check interface.
47994         (getenv): Declare only if defined HAVE_DECL_GETENV &&
47995         !HAVE_DECL_GETENV.
47996         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
47997         (__strndup): Revert to K&R-style function dfns, the glibc style.
47998         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
47999         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48000         Include strnlen.h first, to get prototype properly.
48001         (strnlen): Renamed from __strnlen.
48002         Remove weak alias.
48003
48004 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48007
48008 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48009
48010         * config/srclist.txt: Adjust to reflect glibc reorganization.
48011         This affects only comments.
48012
48013 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48014
48015          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48016          Reported by Bruce Korb <bkorb@gnu.org>.
48017
48018 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48019
48020         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48021         to pacify gcc -Wswitch-default.
48022
48023 2006-01-22  Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48026         temporary buffer for sprintf, take into account the precision also
48027         for 'd', 'i', 'u', 'o', 'x', 'X'.
48028
48029 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48030
48031         * modules/argp-tests: New module
48032         * tests/test-argp.c: New file
48033         * tests/test-argp-2.sh: New file
48034
48035 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48036
48037         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48038         (__argp_base_name): Removed
48039         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48040         typo.
48041         (__argp_base_name): Provide macro definition or extern declaration
48042         depending on the configuration
48043
48044 2006-01-20  Simon Josefsson  <jas@extundo.com>
48045
48046         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48047
48048 2006-01-20  Simon Josefsson  <jas@extundo.com>
48049
48050         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48051
48052 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48055         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48056         Suggested by Bruno Haible.
48057
48058 2006-01-20  Karl Berry  <karl@gnu.org>
48059
48060         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48061         until changes propagate, I guess.
48062
48063 2006-01-19  Simon Josefsson  <jas@extundo.com>
48064
48065         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48066
48067 2006-01-19  Simon Josefsson  <jas@extundo.com>
48068
48069         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48070
48071 2006-01-19  Simon Josefsson  <jas@extundo.com>
48072
48073         * gnulib-tool: Set check_PROGRAMS.
48074
48075         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48076         modules/des-tests, modules/gc-arcfour-tests,
48077         modules/gc-arctwo-tests, modules/gc-des-tests,
48078         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48079         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48080         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48081         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48082         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48083         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48084         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48085         test_*_SOURCES.
48086
48087 2006-01-18  Simon Josefsson  <jas@extundo.com>
48088
48089         * modules/socklen (Depends-on): Depend on sys_socket.
48090
48091 2006-01-18  Simon Josefsson  <jas@extundo.com>
48092
48093         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48094         modules/des-tests, modules/gc-arcfour-tests,
48095         modules/gc-arctwo-tests, modules/gc-des-tests,
48096         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48097         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48098         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48099         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48100         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48101         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48102         $(EXEEXT) to automake TESTS variable, for mingw32.
48103
48104 2006-01-17  Simon Josefsson  <jas@extundo.com>
48105
48106         * modules/socklen (Include): Need sys/socket.h.
48107
48108 2006-01-17  Bruno Haible  <bruno@clisp.org>
48109
48110         * modules/ssize_t (Include): Add <sys/types.h>.
48111
48112 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48113
48114         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48115         it's not portable and it doesn't work with cross-compiles.
48116         Problem reported by Bruno Haible.  Fix missing-$ typo in
48117         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48118         -zignore from being used with Sun's C compiler.
48119
48120 2006-01-12  Simon Josefsson  <jas@extundo.com>
48121
48122         * lib/base64.c: Fix warning, reported by Bruno Haible
48123         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48124
48125 2006-01-12  Bruno Haible  <bruno@clisp.org>
48126
48127         * modules/ldd: New file.
48128         * build-aux/ldd.sh.in: New file.
48129         * MODULES.html.sh (Support for building libraries and executables): Add
48130         ldd.
48131
48132 2006-01-12  Bruno Haible  <bruno@clisp.org>
48133
48134         * m4/ldd.m4: New file.
48135
48136 2006-01-12  Bruno Haible  <bruno@clisp.org>
48137
48138         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48139         endless loop while replacing $auxdir with build-aux.
48140
48141 2006-01-11  Simon Josefsson  <jas@extundo.com>
48142
48143         * lib/stdint_.h (SIZE_MAX): Add missing (.
48144
48145 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48146
48147         Sync from coreutils.
48148         * lib/md5.c: Fix commentary typos.
48149         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48150         * lib/md5.h (__attribute__): Remove; unused.
48151         * lib/sha1.c: Fix commentary to match md5 better.
48152         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48153         so that we don't need to worry about alignment.  All uses changed.
48154         This merges the 2005-10-28 md5 change into sha1.
48155
48156 2006-01-11  Jim Meyering  <jim@meyering.net>
48157
48158         Sync from coreutils.
48159         * lib/md5.c (OP): Fix spacing.
48160
48161 2006-01-11  Bruno Haible  <bruno@clisp.org>
48162
48163         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48164         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48165         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48166
48167 2006-01-11  Bruno Haible  <bruno@clisp.org>
48168
48169         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48170         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48171         the "early" section as well.
48172
48173 2006-01-11  Bruno Haible  <bruno@clisp.org>
48174
48175         Avoid "ar: no archive members specified" error on MacOS X.
48176         * gnulib-tool (func_modules_add_dummy): New function.
48177         (func_import, func_create_testdir): Invoke it.
48178
48179 2006-01-11  Bruno Haible  <bruno@clisp.org>
48180
48181         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48182         with $auxdir in AC_CONFIG_FILES statements.
48183
48184 2006-01-11  Bruno Haible  <bruno@clisp.org>
48185
48186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48187         Initialize also noinst_HEADERS to empty.
48188
48189 2006-01-11  Bruno Haible  <bruno@clisp.org>
48190
48191         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48192         variables.
48193         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48194         autoreconf.
48195
48196 2006-01-11  Bruno Haible  <bruno@clisp.org>
48197
48198         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48199         overridable by the user.
48200         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48201
48202 2006-01-10  Simon Josefsson  <jas@extundo.com>
48203
48204         * modules/sys_socket: New file.
48205
48206 2006-01-10  Simon Josefsson  <jas@extundo.com>
48207
48208         * m4/sys_socket_h.m4: New file.
48209
48210 2006-01-10  Simon Josefsson  <jas@extundo.com>
48211
48212         * lib/socket_.h: New file.
48213
48214 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48215
48216         * modules/readutmp (Maintainer): Add myself.
48217
48218 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48221         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48222         People who are still concerned with buggy memcmp implementations
48223         can invoke gl_FUNC_MEMCMP themselves.
48224
48225 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * lib/regex_internal.h (BITSET_WORD_BITS):
48228         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48229         preprocessor mishandles large unsigned values as if they were signed.
48230         Problem reported by Claudio Fontana in
48231         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48232
48233 2006-01-10  Jim Meyering  <jim@meyering.net>
48234
48235         Avoid the double-free (first in fts_read, second in fts_close) that
48236         would occur when an `active' directory is made inaccessible (e.g.,
48237         via chmod a-x) during a traversal.
48238         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48239         before returning.  Reproduce this failure by
48240         mkdir -p a/b; cd a; chmod a-x . b
48241         Reported by Stavros Passas.
48242
48243         Sync from coreutils.
48244         * lib/sha1.c: Tweak grammar in a comment.
48245
48246 2006-01-10  Jim Meyering  <jim@meyering.net>
48247
48248         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48249         Patch by Joerg Sonnenberger.
48250
48251 2006-01-10  Bruno Haible  <bruno@clisp.org>
48252
48253         * modules/readutmp: Depend on module free.
48254         * modules/strtok_r: Depend on module restrict.
48255
48256 2006-01-10  Bruno Haible  <bruno@clisp.org>
48257
48258         * modules/gettext (configure.ac): Add an invocation of
48259         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48260
48261 2006-01-10  Bruno Haible  <bruno@clisp.org>
48262
48263         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48264         Reported by Werner Lemberg <wl@gnu.org>.
48265
48266 2006-01-10  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/localcharset.c: Update from GNU gettext.
48269
48270 2006-01-10  Bruno Haible  <bruno@clisp.org>
48271
48272         * lib/argp.h (__const): Remove macro. Use const instead.
48273         * lib/argp-fmtstream.h (__const): Likewise.
48274         * lib/glob_.h (__const): Remove macro.
48275         * lib/glob-libc.h: Use const instead of __const.
48276
48277 2006-01-10  Bruno Haible  <bruno@clisp.org>
48278
48279         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48280         variable.
48281         Needed to avoid an automake error regarding the 'gettext' module.
48282
48283 2006-01-09  Simon Josefsson  <jas@extundo.com>
48284
48285         * modules/inet_ntop (Depends-on): Add restrict.
48286
48287 2006-01-09  Simon Josefsson  <jas@extundo.com>
48288
48289         * modules/gc-rijndael-tests (License): Put under LGPL.
48290
48291         * modules/gc-des-tests (License): Likewise.
48292
48293         * modules/gc-arcfour-tests (License): Likewise.
48294
48295         * modules/gc-arctwo-tests (License): Likewise.
48296
48297         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48298
48299         * modules/gc-hmac-sha1-tests (Files): Likewise.
48300
48301         * modules/gc-hmac-md5-tests (License): Likewise.
48302
48303         * modules/gc-sha1-tests (License): Likewise.
48304
48305         * modules/gc-md5-tests (License): Likewise.
48306
48307         * modules/gc-md4-tests (License): Likewise.
48308
48309         * modules/gc-md2-tests (License): Likewise.
48310
48311         * modules/gc-tests (License): Likewise.
48312
48313         * modules/des-tests (License): Likewise.
48314
48315         * modules/md4-tests (License): Likewise.
48316
48317         * modules/md2-tests (License): Likewise.
48318
48319 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48320
48321         Sync from coreutils:
48322
48323         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48324         * modules/lib-ignore: New file.
48325         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48326         chdir-safer.m4, lchmod.m4.
48327         * modules/openat: Add mkdirat.c, openat-priv.h.
48328
48329 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         Sync from coreutils.
48332         * m4/lib-ignore.m4: New file.
48333         * m4/lchmod.m4: New file.
48334
48335 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48336
48337         Sync from coreutils.
48338         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48339         for write access: POSIX says that must fail.
48340         * lib/fts.c (diropen): Likewise.
48341         * lib/save-cwd.c (save_cwd): Likewise.
48342         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48343         well, for minor improvements on hosts that lack O_DIRECTORY.
48344         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48345         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48346         Fall back on chown if open failed with EACCES.
48347
48348         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48349         Report an error at compile-time if only a 1-second nominal clock
48350         resolution is found.
48351
48352         * lib/lchmod.h: New file.
48353         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48354         (make_dir_parents): Use lchown rather than chown, and
48355         lchmod rather than chmod.
48356
48357         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48358         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48359         "proc" reported by n0dalus.
48360
48361         * lib/mountlist.c: Include <limits.h>.
48362         (dev_from_mount_options)
48363         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48364         New function.  It no longer assumes "dev=" has the System V meaning
48365         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48366         (read_file_system_list)
48367         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48368         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48369         dev= in that case.
48370
48371         * lib/posixtm.h (PDS_PRE_2000): New macro.
48372         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48373         allow_century.  All usages changed.  Reject dates outside the range
48374         1969-1999 if PDS_PRE_2000 is used.
48375
48376 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         Sync from coreutils.
48379         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48380         (Time of day items): Mention the possibility of leap seconds.
48381         Problem reported by Dr. David Alan Gilbert.
48382
48383 2006-01-09  Jim Meyering  <jim@meyering.net>
48384
48385         Sync from coreutils.
48386
48387         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48388
48389         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48390
48391         * lib/modechange.c (mode_compile): Reject an invalid mode string
48392         that starts with an octal digit.  From Andreas Gruenbacher.
48393
48394         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48395         and dup to open_safer and dup_safer, respectively.
48396         (openat_permissive): Fix typo in comment.
48397
48398         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48399         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48400         (_): Remove; no longer needed.
48401         (openat): Renamed from rpl_openat; no need for rpl_openat
48402         since openat.h renames openat for us.
48403         Replace most of the body with a call to openat_permissive,
48404         to avoid duplicate code.
48405         Port to (probably hypothetical) environments were mode_t is
48406         wider than int.
48407         (openat_permissive): Require mode arg, so that we can check
48408         types better.  Put it just after flags.  Change cwd failure
48409         indicator from pointer-to-bool to pointer-to-errno-value.
48410         All callers changed.
48411         Invoke openat_save_fail and/or openat_restore_fail if
48412         cwd_errno is null, so that openat can call us.
48413         (openat_permissive, fdopendir, fstatat, unlinkat):
48414         Simplify errno handling to avoid some duplicate code,
48415         as it's OK to set errno on success.
48416         * lib/openat.h: Revamp code so that function macros depend on
48417         __OPENAT_PREFIX only, not also on AT_FDCWD.
48418         (openat_ro): Remove.  Caller changed to use openat_permissive.
48419         (openat_permissive): Now a macro, if not a function.
48420         (openat_restore_fail, openat_save_fail): Now always functions,
48421         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48422
48423         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48424         and openat.c.
48425         * lib/mkdirat.c: Include openat-priv.h.
48426         Remove definitions of macros defined therein.
48427         * lib/openat.c: Likewise.
48428
48429         * lib/mkdirat.c (mkdirat): New file and function.
48430         * lib/openat.h (mkdirat): Declare.
48431
48432         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48433
48434         * lib/openat.h (openat_permissive): Declare.
48435         (openat_ro): Define.
48436
48437         * lib/openat.c (EXPECTED_ERRNO): New macro.
48438         (openat_permissive): New function -- used in remove.c rewrite.
48439         (all functions): Set errno just before returning, only if there
48440         was an actual failure.
48441         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48442
48443         Emulate openat-family functions using Linux's procfs, if possible.
48444         Idea and some code based on Ulrich Drepper's glibc changes.
48445
48446         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48447         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48448         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48449         before falling back on save_cwd and restore_cwd.
48450         (fdopendir, fstatat, unlinkat): Likewise.
48451
48452         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48453         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48454
48455         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48456         as second argument to va_arg.  Otherwise, some versions of gcc
48457         warn that `if this code is reached, the program will abort'.
48458
48459 2006-01-09  Jim Meyering  <jim@meyering.net>
48460
48461         Sync from coreutils.
48462         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48463         Require openat-priv.h.
48464
48465 2006-01-09  Bruno Haible  <bruno@clisp.org>
48466
48467         * modules/strnlen (Include): Use strnlen.h.
48468
48469 2006-01-09  Bruno Haible  <bruno@clisp.org>
48470
48471         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48472
48473 2006-01-09  Bruno Haible  <bruno@clisp.org>
48474
48475         * lib/sysexit_.h (EX_OK): New macro.
48476         Suggested by Martin Lambers <marlam@marlam.de>.
48477
48478 2006-01-09  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48481         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48482
48483 2006-01-09  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48486         numbers.
48487
48488 2006-01-09  Bruno Haible  <bruno@clisp.org>
48489
48490         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48491         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48492         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48493         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48494
48495 2006-01-09  Bruno Haible  <bruno@clisp.org>
48496
48497         * build-aux/javacomp.sh.in: New file, moved from lib/.
48498         * modules/javacomp-script (Files): Update.
48499         (configure.ac): Add AC_CONFIG_FILES invocation.
48500         (EXTRA_DIST): Remove variable.
48501
48502         * build-aux/javaexec.sh.in: New file, moved from lib/.
48503         * modules/javaexec (Files): Update.
48504         (configure.ac): Add AC_CONFIG_FILES invocation.
48505         (EXTRA_DIST): Remove javaexec.sh.in.
48506
48507         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48508         * modules/csharpcomp-script (Files): Update.
48509         (configure.ac): Add AC_CONFIG_FILES invocation.
48510         (EXTRA_DIST): Remove variable.
48511
48512         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48513         * modules/csharpexec (Files): Update.
48514         (configure.ac): Add AC_CONFIG_FILES invocation.
48515         (EXTRA_DIST): Remove csharpexec.sh.in.
48516
48517 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48518
48519         Sync from coreutils.
48520
48521         Add POSIX ACL support
48522         * lib/acl.h (copy_acl, set_acl): Add declarations.
48523         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48524         systems other than Linux.
48525         (chmod_or_fchmod): New function: use fchmod when possible,
48526         and chmod otherwise.
48527         (file_has_acl): Add a POSIX ACL implementation, with a
48528         Linux-specific subcase.
48529         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48530         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48531         acls are unsupported.
48532         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48533         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48534         are unsupported.
48535
48536 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48537
48538         Sync from coreutils.
48539         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48540
48541 2006-01-07  Bruno Haible  <bruno@clisp.org>
48542
48543         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48544         gl_EARLY.
48545
48546 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48547
48548         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48549         Problem reported for Mingw by Mark Junker.
48550
48551 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48552
48553         * README: Gnulib normally doesn't generate a tarball.
48554
48555 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48556
48557         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48558         long int, not int, for nanosecond counts, so that people who are
48559         used to POSIX struct timespec won't be surprised.  Reported by Jim
48560         Meyering.
48561
48562 2005-12-28  Bruno Haible  <bruno@clisp.org>
48563
48564         * build-aux/config.rpath: Update from GNU gettext.
48565
48566 2005-12-16  Jim Meyering  <jim@meyering.net>
48567
48568         * modules/fprintftime: New module.
48569         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48570
48571 2005-12-16  Jim Meyering  <jim@meyering.net>
48572
48573         * m4/fprintftime.m4: New file.
48574
48575 2005-12-16  Jim Meyering  <jim@meyering.net>
48576
48577         * lib/fprintftime.c, lib/fprintftime.h: New files.
48578
48579 2005-12-15  Simon Josefsson  <jas@extundo.com>
48580
48581         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48582         new m4/socklen.m4.
48583
48584 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48585
48586         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48587         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48588
48589 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48590
48591         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48592         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48593         struct uparams is valid. Fall back to the default values if it is
48594         not.
48595
48596 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48597
48598         * modules/argp (Files): Add argp-pin.c
48599         (Depends-on): dirname
48600         (lib_SOURCES): Add argp-pin.c
48601
48602 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48603
48604         * m4/argp.m4:  Check if program_invocation_name and
48605         program_invocation_short_name are declared and define appropriate
48606         macros if they are not.
48607
48608 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48609
48610         * lib/argp-help.c (__argp_base_name): New function
48611         (__argp_short_program_name): Rewrite using __argp_base_name
48612         * lib/argp-namefrob.h: Define program_invocation_name and
48613         program_invocation_short_name if requested
48614         (__argp_base_name): Add prototype
48615         * lib/argp-parse.c (argp_def): Use gettext wrappers
48616         (argp_default_parser): Use __argp_base_name
48617         * lib/argp-pin.c: New file. Defines program_invocation_name and
48618         program_invocation_short_name on systems that lack them.
48619
48620 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
48623         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48624         porting problem reported by Georg Schwarz in
48625         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48626
48627 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
48630         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
48631         porting problem reported by Georg Schwarz in
48632         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
48633
48634 2005-12-05  Bruno Haible  <bruno@clisp.org>
48635
48636         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
48637         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
48638         Reported by Mark Junker <mjscod@gmx.de>.
48639
48640 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
48643         Use implementation from Albert Chin, with some
48644         comments/corrections by Stepan Kasal and myself.
48645
48646 2005-12-02  Bruno Haible  <bruno@clisp.org>
48647
48648         * gnulib-tool (func_import): Accept GPLed build tool modules when
48649         --lgpl is given.
48650         * modules/csharpcomp-script: New file.
48651         * modules/csharpcomp: Depend on it.
48652         * modules/javacomp-script: New file.
48653         * modules/javacomp: Depend on it.
48654         Suggested by Simon Josefsson.
48655
48656 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
48657
48658         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
48659         statement, to work around an HP-UX 10.20 compiler bug reported by
48660         Peter O'Gorman.
48661
48662 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * modules/savedir (Depends-on): Add openat.
48665
48666 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
48667
48668         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
48669         (uintmax_t) [defined uintmax_t]: Do not declare.
48670         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
48671         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
48672         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
48673         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
48674         sake of portability to weird hosts that C allows (though we don't
48675         know of any practical examples).
48676
48677         * lib/savedir.h (fdsavedir): New decl.
48678         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
48679         contains most of the former guts of savedir.
48680         (savedir): Use savedirstream.
48681         Include "openat.h".
48682
48683 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         * modules/obstack (Files): Add m4/ulonglong.m4.
48686         Problem reported by Davide Angelocola.
48687
48688 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
48691         coreutils no longer futzes with rounding modes.
48692
48693 2005-11-14  Jim Meyering  <jim@meyering.net>
48694
48695         * lib/mkstemp-safer.c: Include <config.h>, required for possible
48696         replacement of mkstemp.
48697
48698 2005-11-10  Simon Josefsson  <jas@extundo.com>
48699
48700         * lib/readline.c: Remove EOL.
48701
48702 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48703
48704         * modules/gethrxtime (Depends-on): Add gettime.
48705
48706 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48707
48708         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
48709         or gettimeofday; no longer needed.
48710
48711 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
48712
48713         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
48714         time business.
48715         (gethrxtime) [! (HAVE_NANOUPTIME
48716         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
48717         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
48718         our own approximation.
48719
48720 2005-11-08  Eric Blake  <ebb9@byu.net>
48721
48722         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48723
48724 2005-11-08  Eric Blake  <ebb9@byu.net>
48725
48726         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
48727
48728 2005-11-04  Bruno Haible  <bruno@clisp.org>
48729
48730         * gnulib-tool: Implement --update mode.
48731
48732 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48733
48734         Fix porting problem reported by Theodoros V. Kalamatianos.
48735         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
48736         Don't assume that futimes failing means we must fail.
48737
48738 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
48739
48740         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
48741         variables to suggest the intended function of the PATH_MAX check.
48742
48743 2005-10-30  Kean Johnston  <jkj@sco.com>
48744
48745         Trivial changes to support SCO systems.
48746         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
48747         as PATH_MAX.
48748         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
48749         where __ptr is null when no I/O is pending.
48750
48751 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
48752
48753         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
48754         leave errno alone.  Problem reported by Dmitry V. Levin.
48755
48756 2005-10-28  Simon Josefsson  <jas@extundo.com>
48757
48758         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
48759         Test more.
48760
48761         * tests/test-gc-md2.c, tests/test-md2.c: New files.
48762
48763         * modules/md2, modules/md2-tests: New files.
48764
48765 2005-10-28  Simon Josefsson  <jas@extundo.com>
48766
48767         * m4/inet_ntop.m4: More tests.
48768
48769         * m4/gc-md2.m4, md2.m4: New file.
48770
48771 2005-10-28  Simon Josefsson  <jas@extundo.com>
48772
48773         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
48774         "restrict" keywords, as per POSIX.  Protect the function
48775         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
48776         Don't use K&R prototypes.  Check the sprintf return values.
48777         Re-define EAFNOSUPPORT if not present.  Indent.
48778
48779         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
48780         suggested by Bruno Haible <bruno@clisp.org>.
48781
48782         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
48783
48784         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
48785
48786         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
48787         libgcrypt).
48788
48789         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
48790
48791         * lib/md2.h, lib/md2.c: New files.
48792
48793 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
48794
48795         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
48796         errno alone.  Problem reported by Frederic Jolliton.
48797
48798 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48799
48800         * modules/verify (License): Change from GPL to LGPL.  This is a
48801         tiny module and there are apparently near-equivalents that are
48802         under the BSD license.
48803
48804 2005-10-24  Simon Josefsson  <jas@extundo.com>
48805
48806         * modules/sha1: Relicense to LGPL.
48807
48808 2005-10-24  Simon Josefsson  <jas@extundo.com>
48809
48810         * lib/md4.h: Shrink buffer size, now that we changed the type.
48811
48812 2005-10-23  Simon Josefsson  <jas@extundo.com>
48813
48814         * gnulib-tool (func_import): Fix --tests-base.
48815
48816 2005-10-22  Simon Josefsson  <jas@extundo.com>
48817
48818         * modules/arcfour (Depends-on): Need stdint.
48819
48820 2005-10-22  Simon Josefsson  <jas@extundo.com>
48821
48822         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
48823         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
48824
48825 2005-10-22  Simon Josefsson  <jas@extundo.com>
48826
48827         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
48828         suggested by Bruno Haible <bruno@clisp.org>.
48829
48830 2005-10-22  Simon Josefsson  <jas@extundo.com>
48831
48832         * lib/crc.h: Include stddef.h, for size_t.
48833
48834 2005-10-22  Simon Josefsson  <jas@extundo.com>
48835
48836         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
48837         arcfour_context struct (simplify test vector testing in GNU
48838         Shishi).
48839
48840 2005-10-21  Simon Josefsson  <jas@extundo.com>
48841
48842         * modules/des, modules/des-tests: New files.
48843
48844         * modules/gc-des, modules/gc-des-tests: New files.
48845
48846         * tests/test-des.c, tests/test-gc-des.c: New file.
48847
48848 2005-10-21  Simon Josefsson  <jas@extundo.com>
48849
48850         * modules/arctwo, modules/arctwo-tests: New files.
48851
48852         * tests/test-arctwo.c: New file.
48853
48854         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
48855
48856         * tests/test-gc-arctwo.c: New file.
48857
48858 2005-10-21  Simon Josefsson  <jas@extundo.com>
48859
48860         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
48861         Bruno Haible <bruno@clisp.org>.
48862
48863         * m4/gc-des.m4: New file.
48864
48865 2005-10-21  Simon Josefsson  <jas@extundo.com>
48866
48867         * m4/arctwo.m4: New file.
48868
48869         * m4/gc-arctwo.m4: New file.
48870
48871 2005-10-21  Simon Josefsson  <jas@extundo.com>
48872
48873         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
48874         block.
48875
48876 2005-10-21  Simon Josefsson  <jas@extundo.com>
48877
48878         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
48879         <bruno@clisp.org>.
48880
48881         * lib/hmac-sha1.c (hmac_sha1): Likewise.
48882
48883         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
48884         Bruno Haible <bruno@clisp.org>.
48885
48886         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
48887         <bruno@clisp.org>.
48888
48889 2005-10-21  Simon Josefsson  <jas@extundo.com>
48890
48891         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
48892
48893 2005-10-21  Simon Josefsson  <jas@extundo.com>
48894
48895         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
48896
48897 2005-10-21  Simon Josefsson  <jas@extundo.com>
48898
48899         * lib/des.h, lib/des.c: New files.
48900
48901         * lib/gc-gnulib.c: Support DES.c
48902
48903 2005-10-21  Simon Josefsson  <jas@extundo.com>
48904
48905         * lib/arctwo.h, lib/arctwo.c: New files.
48906
48907         * lib/gc-gnulib.c: Support ARCTWO.
48908
48909 2005-10-21  Simon Josefsson  <jas@extundo.com>
48910
48911         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
48912         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48913
48914 2005-10-21  Simon Josefsson  <jas@extundo.com>
48915
48916         * gnulib-tool (func_import, func_create_testdir): Define automake
48917         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
48918         Makefile.am snippet),
48919         suggested by Bruno Haible <bruno@clisp.org>.
48920
48921         * modules/gc (Makefile.am): Use it.
48922
48923 2005-10-21  Bruno Haible  <bruno@clisp.org>
48924
48925         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
48926         patch.
48927
48928 2005-10-19  Simon Josefsson  <jas@extundo.com>
48929
48930         * tests/test-gc-rijndael.c: New file.
48931
48932         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
48933
48934 2005-10-19  Simon Josefsson  <jas@extundo.com>
48935
48936         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
48937         interface too.
48938
48939 2005-10-19  Simon Josefsson  <jas@extundo.com>
48940
48941         * tests/test-gc-arcfour.c: New file.
48942
48943         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
48944
48945 2005-10-19  Simon Josefsson  <jas@extundo.com>
48946
48947         * modules/gc-md4, modules/gc-md4-tests: New file.
48948
48949         * tests/test-gc-md4.c: New file.
48950
48951 2005-10-19  Simon Josefsson  <jas@extundo.com>
48952
48953         * m4/gc-md4.m4: New file.
48954
48955 2005-10-19  Simon Josefsson  <jas@extundo.com>
48956
48957         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
48958         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
48959         <kasal@ucw.cz>.
48960
48961 2005-10-19  Simon Josefsson  <jas@extundo.com>
48962
48963         * m4/gc-arcfour.m4: New file.
48964
48965         * m4/gc-rijndael.m4: New file.
48966
48967 2005-10-19  Simon Josefsson  <jas@extundo.com>
48968
48969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
48970
48971 2005-10-19  Simon Josefsson  <jas@extundo.com>
48972
48973         * lib/gc-gnulib.c: Support ARCFOUR.
48974
48975 2005-10-19  Simon Josefsson  <jas@extundo.com>
48976
48977         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
48978         support.
48979
48980         * lib/gc.h: Add ECB enum type.
48981
48982         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
48983
48984 2005-10-18  Simon Josefsson  <jas@extundo.com>
48985
48986         * tests/test-md5.c: New file.
48987
48988         * modules/md5-tests: New file.
48989
48990 2005-10-18  Simon Josefsson  <jas@extundo.com>
48991
48992         * tests/test-md4.c: New file.
48993
48994         * modules/md4, modules/md4-tests: New files.
48995
48996 2005-10-18  Simon Josefsson  <jas@extundo.com>
48997
48998         * m4/md4.m4: New file.
48999
49000 2005-10-18  Simon Josefsson  <jas@extundo.com>
49001
49002         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49003
49004 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49005
49006         * gnulib-tool (func_create_testdir): Omit the second check whether
49007         BUILT_SOURCES in nonempty.
49008
49009 2005-10-17  Simon Josefsson  <jas@extundo.com>
49010
49011         * tests/test-rijndael.c: New file.
49012
49013 2005-10-17  Simon Josefsson  <jas@extundo.com>
49014
49015         * modules/sha1: Depend on stdint instead of md5.
49016
49017         * modules/md5: Depend on stdint, remove uint32_t.
49018
49019 2005-10-17  Simon Josefsson  <jas@extundo.com>
49020
49021         * modules/gc-sha1-tests: New file.
49022
49023         * tests/test-gc-sha1.c: New file.
49024
49025 2005-10-17  Simon Josefsson  <jas@extundo.com>
49026
49027         * m4/md5.m4: Remove call to uint32_t.m4.
49028
49029 2005-10-17  Simon Josefsson  <jas@extundo.com>
49030
49031         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49032
49033         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49034         md5.h.
49035
49036         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49037
49038         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49039
49040 2005-10-17  Simon Josefsson  <jas@extundo.com>
49041
49042         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49043
49044 2005-10-17  Simon Josefsson  <jas@extundo.com>
49045
49046         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49047
49048 2005-10-17  Simon Josefsson  <jas@extundo.com>
49049
49050         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49051
49052         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49053
49054 2005-10-17  Bruno Haible  <bruno@clisp.org>
49055
49056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49057         that it can also be used in a test.
49058
49059 2005-10-16  Bruno Haible  <bruno@clisp.org>
49060
49061         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49062         TESTS_ENVIRONMENT, so that individual tests can augment it.
49063
49064         * gnulib-tool (func_create_testdir): Use an intermediate target for
49065         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49066         macros, like $(ALLOCA_H), which cannot be passed through the command
49067         line.
49068
49069 2005-10-15  Simon Josefsson  <jas@extundo.com>
49070
49071         * modules/rijndael-tests: New file.
49072
49073         * modules/rijndael: New file.
49074
49075 2005-10-15  Simon Josefsson  <jas@extundo.com>
49076
49077         * m4/rijndael.m4: New file.
49078
49079 2005-10-15  Simon Josefsson  <jas@extundo.com>
49080
49081         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49082
49083         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49084
49085 2005-10-14  Simon Josefsson  <jas@extundo.com>
49086
49087         * tests/test-arcfour.c: New file.
49088
49089         * modules/arcfour, modules/arcfour-tests: New files.
49090
49091 2005-10-14  Simon Josefsson  <jas@extundo.com>
49092
49093         * m4/arcfour.m4: New file.
49094
49095 2005-10-14  Simon Josefsson  <jas@extundo.com>
49096
49097         * lib/arcfour.h, lib/arcfour.c: New files.
49098
49099 2005-10-14  Roland McGrath  <roland@redhat.com>
49100
49101         Import from libc.  [BZ #1331]
49102         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49103         macro argument.
49104         Reported by Matej Vela <vela@debian.org>.
49105
49106 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49107
49108         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49109         include <wchar.h>; no longer needed.
49110
49111 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49114
49115 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49116         and  Ulrich Drepper  <drepper@redhat.com>
49117
49118         Import from libc.
49119         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49120         instead of inline stream orientation test and two separate
49121         function calls.  Pay no attention to USE_IN_LIBIO.
49122
49123 2005-10-13  Simon Josefsson  <jas@extundo.com>
49124
49125         * modules/gc-hmac-md5-tests: New file.
49126
49127         * tests/test-gc-hmac-sha1.c: New file.
49128
49129         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49130
49131         * modules/gc-hmac-md5-tests: New file.
49132
49133         * tests/test-gc-md5.c: New file.
49134
49135         * modules/gc-md5-tests: New file.
49136
49137 2005-10-13  Simon Josefsson  <jas@extundo.com>
49138
49139         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49140         Move memory allocation outside of loop.
49141
49142 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49145         intermediate directory is in a read-only file system.  Problem
49146         reported by Eric Blake.
49147
49148 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49149
49150         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49151
49152 2005-10-12  Simon Josefsson  <jas@extundo.com>
49153
49154         * tests/test-hmac-sha1.c: New file.
49155
49156         * modules/hmac-sha1-tests: New file.
49157
49158         * modules/hmac-sha1: New file.
49159
49160 2005-10-12  Simon Josefsson  <jas@extundo.com>
49161
49162         * modules/gc-sha1: New file.
49163
49164 2005-10-12  Simon Josefsson  <jas@extundo.com>
49165
49166         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49167
49168         * tests/test-gc-pbkdf2-sha1.c: New file.
49169
49170 2005-10-12  Simon Josefsson  <jas@extundo.com>
49171
49172         * modules/gc-md5, modules/gc-hmac-md5: New files.
49173
49174         * modules/gc (Files): Remove md5, memxor and hmac files.
49175
49176 2005-10-12  Simon Josefsson  <jas@extundo.com>
49177
49178         * m4/gc-pbkdf2-sha1.m4: New file.
49179
49180         * m4/gc-hmac-sha1.m4: New file.
49181
49182         * m4/gc-sha1: New file.
49183
49184         * m4/hmac-sha1.m4: New file.
49185
49186 2005-10-12  Simon Josefsson  <jas@extundo.com>
49187
49188         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49189
49190         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49191
49192 2005-10-12  Simon Josefsson  <jas@extundo.com>
49193
49194         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49195         suggested by Bruno Haible <bruno@clisp.org>.
49196
49197 2005-10-12  Simon Josefsson  <jas@extundo.com>
49198
49199         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49200
49201 2005-10-12  Simon Josefsson  <jas@extundo.com>
49202
49203         * lib/gc-pbkdf2-sha1.c: New file.
49204
49205         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49206
49207 2005-10-12  Simon Josefsson  <jas@extundo.com>
49208
49209         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49210
49211         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49212
49213 2005-10-12  Simon Josefsson  <jas@extundo.com>
49214
49215         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49216         GC_USE_HMAC_MD5, respectively.
49217
49218         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49219         (gc_md5): Fix typo.
49220
49221         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49222
49223         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49224
49225         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49226
49227 2005-10-12  Bruno Haible  <bruno@clisp.org>
49228
49229         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49230         Reported by Stepan Kasal <kasal@ucw.cz>.
49231
49232 2005-10-11  Simon Josefsson  <jas@extundo.com>
49233
49234         * tests/test-crc.c: New file.
49235
49236         * modules/crc, modules/crc-tests: New files.
49237
49238 2005-10-11  Simon Josefsson  <jas@extundo.com>
49239
49240         * m4/crc.m4: New file.
49241
49242 2005-10-11  Simon Josefsson  <jas@extundo.com>
49243
49244         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49245
49246         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49247
49248         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49249
49250 2005-10-11  Simon Josefsson  <jas@extundo.com>
49251
49252         * lib/crc.h, lib/crc.c: New files.
49253
49254         * lib/gc.h (gc_hash_buffer): Add doc.
49255
49256 2005-10-11  Bruno Haible  <bruno@clisp.org>
49257
49258         * modules/c-strcasestr: New file.
49259         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49260
49261 2005-10-11  Bruno Haible  <bruno@clisp.org>
49262
49263         * modules/c-strcase: New file.
49264         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49265
49266 2005-10-11  Bruno Haible  <bruno@clisp.org>
49267
49268         * lib/strcasecmp.c: Include limits.h.
49269         (strcasecmp): Avoid integer overflow on exotic platforms.
49270         * lib/strncasecmp.c: Include limits.h.
49271         (strncasecmp): Avoid integer overflow on exotic platforms.
49272         Reported by Paul Eggert.
49273
49274 2005-10-11  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/c-strcasestr.h: New file, from GNU gettext.
49277         * lib/c-strcasestr.c: New file, from GNU gettext.
49278
49279 2005-10-11  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/c-strcase.h: New file, from GNU gettext.
49282         * lib/c-strcasecmp.c: New file, from GNU gettext.
49283         * lib/c-strncasecmp.c: New file, from GNU gettext.
49284
49285 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49286
49287         * modules/mempcpy (License): GPL -> LGPL.
49288         * modules/strchrnul (License): Likewise.
49289         * modules/sysexits (License): Likewise.
49290
49291 2005-10-08  Simon Josefsson  <jas@extundo.com>
49292
49293         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49294
49295 2005-10-07  Simon Josefsson  <jas@extundo.com>
49296
49297         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49298
49299 2005-10-06  Simon Josefsson  <jas@extundo.com>
49300
49301         * tests/test-hmac-md5.c: New file.
49302
49303         * modules/hmac-md5-tests: New file.
49304
49305         * modules/hmac-md5: New file.
49306
49307 2005-10-06  Simon Josefsson  <jas@extundo.com>
49308
49309         * m4/hmac-md5.m4: New file.
49310
49311         * m4/memxor.m4: Require gl_C_RESTRICT.
49312
49313 2005-10-06  Simon Josefsson  <jas@extundo.com>
49314
49315         * lib/memxor.c (memxor): Avoid casts and warnings.
49316
49317 2005-10-06  Simon Josefsson  <jas@extundo.com>
49318
49319         * lib/hmac-md5.c: New file.
49320
49321         * lib/hmac.h: New file.
49322
49323 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49324
49325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49326         promotes to int, not unsigned int, to catch the AIX 5.3
49327         compiler bug.
49328
49329 2005-10-05  Simon Josefsson  <jas@extundo.com>
49330
49331         * modules/memxor: New file.
49332
49333         * modules/iconv (Files): Move config.rpath to havelib, it is used
49334         there.
49335
49336         * modules/havelib (Files): Add config.rpath.
49337
49338 2005-10-05  Simon Josefsson  <jas@extundo.com>
49339
49340         * m4/memxor.m4: New file.
49341
49342 2005-10-05  Simon Josefsson  <jas@extundo.com>
49343
49344         * lib/memxor.c (memxor): Fix compiler error.
49345
49346         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49347         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49348
49349         * lib/memxor.h, lib/memxor.c: New files.
49350
49351         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49352         we assume all systems have it, suggested by Jim Meyering
49353         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49354         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49355         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49356         same reasons.
49357
49358 2005-10-05  Simon Josefsson  <jas@extundo.com>
49359
49360         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49361
49362 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49363
49364         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49365         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49366         needed, since the source code now assumes these .h files.
49367
49368 2005-10-05  Derek Price  <derek@ximbiot.com>
49369
49370         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49371
49372 2005-10-05  Bruno Haible  <bruno@clisp.org>
49373
49374         * modules/stdint (License): Change to LGPL.
49375
49376 2005-10-04  Simon Josefsson  <jas@extundo.com>
49377
49378         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49379         D. Baushke" <mdb@gnu.org>.
49380
49381 2005-10-04  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/verify.h (verify_true): Provide alternative definition for C++.
49384
49385 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49386
49387         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49388         (SSIZE_MAX): New macro, if not already defined.
49389         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49390         than 2 GiB.
49391
49392 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49393
49394         Sync from coreutils.
49395         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49396         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49397         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49398         ULLONG_MAX doesn't work with 2.7.2.1.
49399
49400 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49401
49402         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49403         From Ben Pfaff.
49404
49405         * modules/exclude (Depends-on): Depend on verify.
49406         * modules/strtoimax (Depends-on): Likewise.
49407         * modules/utimecmp (Depends-on): Likewise.
49408
49409 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49410
49411         * lib/exclude.c: Include verify.h.
49412         (verify): Remove.  All callers changed to use verify.h's version.
49413         * lib/strtoimax.c: Likewise.
49414         * lib/utimecmp.c: Likewis.e
49415
49416         Sync from coreutils.
49417         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49418         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49419         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49420         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49421         bother returning ENOSYS if settimeofday or stime fails; just let
49422         them return whatever errno they want to return.
49423         * lib/utimens.c: Include unistd.h, for dup2.
49424         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49425         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49426
49427 2005-10-02  Jim Meyering  <jim@meyering.net>
49428
49429         Sync from coreutils.
49430         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49431         from glibc-2.2.5 that fails for read-only files.
49432
49433 2005-10-02  Jim Meyering  <jim@meyering.net>
49434
49435         Sync from coreutils.
49436         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49437         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49438         `#if HAVE_CONFIG_H'.
49439         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49440         Remove AT_FDCWD test.
49441         Do not consume the fd unless successful.
49442         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49443         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49444         block, so that we don't even try to compile it if settimeofday is
49445         available.  This works around a compilation failure on OSF1 V5.1,
49446         due to stime requiring a `long int*' while tv_sec is `int'.
49447
49448 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49449
49450         Sync from coreutils.
49451         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49452         against `yes', rather than just testing for nonempty.
49453
49454 2005-10-01  Simon Josefsson  <jas@extundo.com>
49455
49456         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49457         and Darwin.
49458
49459         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49460         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49461         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49462         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49463         Check if struct addrinfo is declared.
49464
49465 2005-10-01  Simon Josefsson  <jas@extundo.com>
49466
49467         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49468         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49469         AI_* and EAI_* definitions.  Protect function declarations.
49470
49471 2005-10-01  Jim Meyering  <jim@meyering.net>
49472
49473         Sync from coreutils.
49474
49475         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49476         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49477         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49479         in the inet and nsl libraries.  Required on Solaris 5.7.
49480
49481 2005-10-01  Jim Meyering  <jim@meyering.net>
49482
49483         Sync from coreutils.
49484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49485         in the inet and nsl libraries.  Required on Solaris 5.7.
49486
49487 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49488
49489         * lib/getdelim.c (getdelim): Remove unused variables.
49490
49491 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49492
49493         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49494         so that the code works even with ancient cpp.  Portability problem
49495         with GCC 2.7.2.1 reported by Thomas M.Ott.
49496
49497 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49498
49499         * modules/regex (Depends-on): Add strcase.
49500
49501         * modules/gethostname (Licence): Change from GPL to LGPL, since
49502         gethostname.c is a trivial implementation of a standard library
49503         function.
49504         * modules/poll (License): Change from GPL to LGPL, since it's
49505         derived from LGPL code.
49506
49507 2005-09-27  Jim Meyering  <jim@meyering.net>
49508
49509         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49510         HAVE_CONFIG_H.
49511
49512         * lib/intprops.h (signed_type_or_expr__): Define.
49513         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49514         for unsigned types.
49515
49516 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49517
49518         * lib/verify.h (verify_expr): Remove, replacing with:
49519         (verify_true): New macro that returns true instead of void.
49520         (verify_type__): Remove.
49521         (verify): Use verify_true rather than verify_type__.
49522
49523 2005-09-26  Bruno Haible  <bruno@clisp.org>
49524
49525         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49526         is necessary.
49527         (lib_SOURCES): Remove mbchar.c.
49528         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49529         (Files): Add m4/mbrtowc.m4.
49530         * modules/mbiter: Likewise.
49531         * modules/mbuiter: Likewise.
49532
49533 2005-09-26  Bruno Haible  <bruno@clisp.org>
49534
49535         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49536         compile mbchar.c if they are not both present.
49537         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49538         * m4/mbiter.m4 (gl_MBITER): Likewise.
49539         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49540         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49541         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49542
49543 2005-09-25  Jim Meyering  <jim@meyering.net>
49544
49545         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49546         also uses socklen_t.
49547
49548 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49549
49550         * lib/utimens.c (ENOSYS): Define if not already defined.
49551         (futimens): Support having a null PATH if the file descriptor
49552         is nonnegative.
49553
49554         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49555         Remove.
49556         (__attribute): Define to empty unless GCC 3.1 or later.
49557         This works around a core dump on OpenBSD 3.4, which has GCC
49558         2.95.3, which dumps core when given __attribute__(()).  It also
49559         simplifies other tests, since we really don't want to bother with
49560         worrying about which ancient version of GCC supported what.
49561         Original problem reported by Yoann Vandoorselaere, with part of
49562         the fix suggested by Derek Price.
49563
49564 2005-09-24  Jim Meyering  <jim@meyering.net>
49565
49566         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49567         so we can once again use a positive bitfield width of 1 -- now we
49568         don't have to explain why we were using a bitfield width of 2.
49569
49570 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49571
49572         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49573         and similarly for the other external symbols.  Problem reported
49574         by James Gallager.
49575
49576         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49577         bug reported by Jim Meyering.
49578
49579         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49581         not needed, since socklen is a prerequisite module.
49582
49583 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49584
49585         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49586         Problem reported by Eric Blake.
49587         (getaddrinfo): Initialize se so that it's not garbage.
49588         Redo internal storage allocation so that it doesn't make unportable
49589         assumptions about alignment.
49590         Fix a memory leak.
49591
49592         * lib/utimens.c (futimens): Use futimesat if available.
49593         Prefer it to futimes since it doesn't have the futimes bug.
49594
49595         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49596         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49597         Instead, declare a function that returns a pointer to an array,
49598         and use verify_type__ to declare the size of the array.
49599         Problem and germ of a solution reported by Bruno Haible.
49600         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49601         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49602
49603 2005-09-23  Jim Meyering  <jim@meyering.net>
49604
49605         Sync from coreutils.
49606         Correct build failure (socklen_t not defined) on at least
49607         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49609
49610 2005-09-23  Jim Meyering  <jim@meyering.net>
49611
49612         * modules/getaddrinfo (Depends-on): Add socklen.
49613
49614 2005-09-23  Bruno Haible  <bruno@clisp.org>
49615
49616         * tests/test-verify.c: New file.
49617
49618 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49619
49620         Sync from coreutils.
49621
49622         * modules/argmatch (Depends-on): Add verify.
49623         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
49624         unistd-safer.
49625         * modules/save-cwd (Depends-on): Likewise.
49626
49627         * modules/openat (Files): Add lib/openat-die.c.
49628         (Depends-on): Remove error, exitfail.
49629         Add dirname.
49630
49631         * modules/verify: New file.
49632         * MODULES.html.sh (Diagnostics <assert.h>): New section,
49633         with "verify" module.
49634
49635 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49636
49637         Sync from coreutils.
49638
49639         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
49640         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
49641         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
49642         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
49643         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
49644         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
49645         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
49646         Don't bother checking for string.h, stdlib.h, unistd.h.
49647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
49648         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
49649         module's job.
49650         * m4/jm-macros.m4 (gl_MACROS): Likewise.
49651         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
49652
49653         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
49654         (gl_GETDATE): Use it.
49655
49656         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
49657
49658 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         Sync from coreutils.
49661
49662         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
49663         stat-time.h.
49664         * lib/argmatch.h: Include verify.h
49665         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
49666         (ARGMATCH_ASSERT): Remove; unused.
49667         * lib/canonicalize.c: Assume STDC_HEADERS.
49668         * lib/exclude.c: Include "strcase.h".
49669         * lib/regex_internal.h [!defined _LIBC]: Likewise.
49670         * lib/getusershell.c: Include stdio--.h rather than stdio.h
49671         and stdio-safer.h.
49672         (getusershell): Call fopen, not fopen_safer.
49673         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
49674         Do not include unistd-safer.h.
49675         (save_cwd): Don't call fd_safer; no longer needed
49676         now that we include fcntl--.h.
49677
49678         * lib/getdate.y (relative_time): New type.
49679         (RELATIVE_TIME_0): New constant.
49680         (parser_control): Use relative_time instead of doing it ourselves.
49681         (%union): Add new relative_time rel member.
49682         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
49683         Now typeless.
49684         (relunit, relunit_snumber): Now of type rel.
49685         (zone, rel, relunit, get_date): Adjust to above changes.
49686
49687         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
49688         Do not include unistd-safer.h.
49689         (getloadavg): Don't call fd_safer; no longer needed
49690         now that we include fcntl--.h.
49691
49692         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
49693         (make_dir_parents): Treat ENOSYS like EEXIST.
49694
49695         Improve quality of diagnostics on restore_cwd failure.
49696         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
49697         (make_dir_parents): Last arg is now int * (for errno), not bool *.
49698         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
49699         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
49700         each time through the loop.  Do not diagnose restore_cwd failure;
49701         that is the caller's job (and perhaps the caller does not care).
49702
49703         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
49704         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
49705         If the file already exists but is not a directory, don't bother
49706         to try to make its parents.
49707         Close potential file descriptor leak if we can't chdir("/") (!).
49708         Don't always return true if chdir($PWD) fails; return true only
49709         if the requested action was done successfully (except for the
49710         chdir($PWD)).
49711         Don't log final directory unless we actually made it.
49712         Refactor to avoid duplicate code to fix up permissions.
49713         Don't attempt to fix up parent permissions if chdir($PWD) fails.
49714
49715         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
49716         to make it a bit faster and (I hope) clearer.
49717         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
49718         Fix bug in formats like %2N.
49719
49720         * lib/verify.h: New file.
49721
49722 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49723
49724         Sync from coreutils.
49725         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
49726
49727 2005-09-22  Jim Meyering  <jim@meyering.net>
49728
49729         Sync from coreutils.
49730
49731         * m4/lstat.m4 (gl_FUNC_LSTAT):
49732         Use AC_LIBSOURCES to require lstat.c and lstat.h.
49733         Remove obsolete comment.
49734         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
49735         * m4/xstrtod.m4: Likewise.
49736
49737         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
49738
49739 2005-09-22  Jim Meyering  <jim@meyering.net>
49740
49741         Sync from coreutils.
49742
49743         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
49744
49745         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
49746         the .tm_year member, since otherwise gcc-4.0 would now warn about
49747         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
49748
49749         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
49750         order to avoid an unsuppressible warning from gcc on 64-bit systems.
49751
49752         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
49753         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
49754         when run in a time zone for which daylight savings time is in effect
49755         for the starting date.
49756
49757         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
49758         stop us from restricting permissions of just-created absolute-named
49759         directories.
49760         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
49761         to restore initial working directory.
49762         * lib/mkdir-p.c (make_dir_parents): New parameter:
49763         different_working_dir, to tell caller if/when we change the working
49764         directory and are unable to return to the initial one.
49765         * lib/mkdir-p.h (make_dir_parents): Update prototype.
49766         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
49767         `return false'.  This fixes a bug introduced on 2004-07-30.
49768
49769         * lib/openat.c (fdopendir): Be sure to close the supplied
49770         file descriptor before returning.  This makes our replacement
49771         implementation a little closer to Solaris's, where fdopendir
49772         ties the file descriptor to the returned DIR* pointer.
49773         * lib/openat.c (unlinkat): New function.
49774         * lib/openat.h (unlinkat): Add prototype.
49775         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
49776         (openat_restore_fail): Rename from openat_restore_die.
49777         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
49778
49779         Provide an alternative to exiting immediately upon save_cwd or
49780         restore_cwd failure.  Now, an application can arrange e.g.,
49781         to perform a longjump in that case.
49782         * lib/openat.c: Include dirname.h.
49783         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
49784         (rpl_openat, fdopendir, fstatat): Call openat_save_die
49785         and openat_restore_die rather than calling error directly.
49786         Don't include "error.h" or "exitfail.h"; they're no longer needed.
49787
49788         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
49789         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
49790         define.
49791
49792         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
49793         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
49794                             int utc, int nanoseconds);
49795         Background:
49796         date should not have to allocate a megabyte of virtual memory to
49797         handle a format argument like +%1048575T.  When implemented with
49798         strftime, it must allocate such a buffer, use strftime to fill it
49799         in, print it, then free it.
49800         With fprintftime, it simply prints everything and exits.
49801         With no need for memory allocation, that's one fewer way to fail.
49802         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
49803         optional field width, not before, so we accept %9:z, not %:9z.
49804         (my_strftime): Be sure to use L_('x') for literals.
49805
49806         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
49807         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
49808         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
49809         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
49810         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
49811         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
49812         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
49813         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
49814         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
49815         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
49816         * lib/xgethostname.c, lib/xreadlink.c:
49817         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
49818
49819         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
49820         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
49821         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
49822         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49823         and don't include <sys/file.h>).
49824
49825 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
49826
49827         Sync from coreutils.
49828
49829         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
49830         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
49831         [!LDAV_DONE]: Avoid unused variable warning.
49832
49833 2005-09-21  Bruno Haible  <bruno@clisp.org>
49834
49835         * lib/unicodeio.h (unicode_to_mb): New declaration.
49836
49837 2005-09-20  Derek Price  <derek@ximbiot.com>
49838
49839         * lib/getaddrinfo.c: Don't include <netdb.h> included from
49840         getaddrinfo.h.
49841
49842 2005-09-20  Bruno Haible  <bruno@clisp.org>
49843
49844         * gnulib-tool: Remove trailing slashes from the values specified for
49845         --source-base, --m4-base, --tests-base, --aux-dir.
49846         Suggested by Simon Josefsson <jas@extundo.com>.
49847
49848 2005-09-20  Bruno Haible  <bruno@clisp.org>
49849
49850         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
49851         func_modules_to_filelist, func_import, func_create_testdir): Make all
49852         sorting results locale-independent, so that gnulib-cache.m4 doesn't
49853         change when gnulib-tool is invoked in a different locale.
49854
49855 2005-09-19  Simon Josefsson  <jas@extundo.com>
49856
49857         * m4/socklen.m4: Fix typo.
49858
49859 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49860
49861         Use a consistent style for including <config.h>.
49862         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
49863         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
49864         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
49865         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
49866         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
49867         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
49868         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
49869         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
49870         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
49871         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
49872         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
49873         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
49874         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
49875         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
49876         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
49877         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
49878         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
49879         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
49880         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
49881         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
49882         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
49883         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
49884         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
49885         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
49886         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
49887         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
49888         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
49889         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
49890         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
49891         lib/xstrtoumax.c, lib/yesno.c:
49892         Standardize inclusion of config.h.
49893         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
49894         lib/inttostr.h:  Removed inclusion of config.h from header files.
49895         * lib/inttostr.c:  Adjusted in-tree users.
49896         * lib/timespec.h: Remove superfluous warning to include config.h.
49897         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
49898         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
49899         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
49900         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
49901         config.h with HAVE_CONFIG_H.
49902
49903 2005-09-19  Jim Meyering  <jim@meyering.net>
49904
49905         * modules/pathmax (License): Change to LGPL.
49906
49907 2005-09-19  Derek Price  <derek@ximbiot.com>
49908
49909         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
49910
49911 2005-09-19  Bruno Haible  <bruno@clisp.org>
49912
49913         * gnulib-tool (import): Provide default for --tests-base.
49914
49915 2005-09-19  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/quote.texi: New file, extracted from gnulib.texi.
49918         * doc/ctime.texi: New file, extracted from gnulib.texi.
49919         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
49920         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
49921         * doc/gnulib.texi: Include them.
49922
49923 2005-09-18  Bruno Haible  <bruno@clisp.org>
49924
49925         Portability fix.
49926         * gnulib-tool (func_readlink): New function.
49927         (func_ln_if_changed): Use it.
49928
49929 2005-09-18  Bruno Haible  <bruno@clisp.org>
49930
49931         * gnulib-tool: Support --with-tests also with --import.
49932         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
49933         (func_import): Use variables $testsbase and $inctests. Emit a
49934         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
49935         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
49936         SUBDIRS += $testsdir.
49937         (func_create_testdir): Update.
49938
49939 2005-09-18  Bruno Haible  <bruno@clisp.org>
49940
49941         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
49942         instead of $dry_run.
49943         (func_cp_if_changed, func_mv_if_changed): Remove functions.
49944         (func_ln_if_changed): Don't handle dry-run here.
49945         (func_import): In dry-run mode, detect more precisely which actions
49946         would be performed, and don't use "...ing" verbs.
49947
49948 2005-09-18  Bruno Haible  <bruno@clisp.org>
49949
49950         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
49951         (func_import): Use join on two temporary files instead of three nested
49952         loops, in order to determine which files are new or old.
49953
49954 2005-09-18  Bruno Haible  <bruno@clisp.org>
49955
49956         * gnulib-tool (func_import): Comment out code that spits out the
49957         new files with --dry-run.
49958
49959 2005-09-18  Bruno Haible  <bruno@clisp.org>
49960
49961         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
49962
49963 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49964
49965         * lib/stat-time.h: New file.
49966         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
49967         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
49968         in a different way.
49969         (timespec_cmp): New function.
49970         * lib/utimecmp.c: Include stat-time.h.
49971         (SYSCALL_RESOLUTION): Depend on whether various struct stat
49972         members exist, not on the obsolescent ST_MTIM_NSEC.
49973         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
49974
49975 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49976
49977         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
49978
49979 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
49980
49981         * MODULES.html.sh (File system functions): Add stat-time.
49982         * modules/stat-time: New file.
49983         * modules/timespec (Files): Remove m4/st_mtim.m4; this
49984         is now done in a different way, by the stat-time module.
49985         * modules/utimecmp (Depends-on): Add stat-time.
49986
49987 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49988
49989         * m4/st_mtim.m4: Remove.  Superseded by...
49990         * m4/stat-time.m4: New file.
49991         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
49992         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
49993
49994 2005-09-15  Derek Price  <derek@ximbiot.com>
49995
49996         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
49997
49998 2005-09-15  Derek Price  <derek@ximbiot.com>
49999
50000         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50001         * lib/regex_internal.c: Ditto, using this...
50002         (__GNUC_PREREQ): ...new macro.
50003         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50004         using...
50005         (__GNUC_PREREQ): ...this new macro.
50006
50007         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50008
50009 2005-09-15  Derek Price  <derek@ximbiot.com>
50010             Paul Eggert  <eggert@cs.ucla.edu>
50011
50012         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50013         changes, consolidating in...
50014         * lib/regex_internal.h: ...this file.
50015
50016 2005-09-13  Jim Meyering  <jim@meyering.net>
50017
50018         * lib/canon-host.c: Filter through gnu indent and reword comments
50019         slightly.
50020         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50021
50022 2005-09-13  Derek Price  <derek@ximbiot.com>
50023
50024         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50025         failure.
50026         Reported by Jim Meyering  <jim@meyering.net>.
50027
50028 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50029
50030         * lib/base64.c: Typo.
50031         (base64_encode): Put b64str in initialized data section.
50032
50033 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50034
50035         Merge glibc and coreutils changes into gnulib, plus a few
50036         extra fixes.
50037         * lib/md5.c: Use #error rather than a string.
50038         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50039         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50040         (__attribute__): Define to empty for non recent-GCC.
50041         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50042         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50043         Renamed from their non-__ counterparts, with new macros replacing
50044         them if not _LIBC.  Add __THROW attribute.
50045         (rol): Remove.
50046         (struct md5_ctx): Align buffer if using GCC.
50047         * lib/sha1.h (struct sha1_ctx): Likewise.
50048         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50049         The old name was backwards.
50050         (NOTSWAP): Remove; not used.
50051         (rol): New macro, moved here from md5.h.
50052         (sha1_process_block): Remove a FIXME that doesn't make sense.
50053
50054 2005-09-12  Derek Price  <derek@ximbiot.com>
50055
50056         Return usable errors from canon-host.
50057         * lib/canon-host.h: New file.
50058         * lib/canon-host.c (canon_host): Wrap...
50059         (canon_host_r): ...this new function, which now relies exclusively on
50060         getaddrinfo.
50061         (ch_strerror): New function.
50062         (last_cherror): New global.
50063         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50064         interface.
50065         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50066         void *.
50067         (freeaddrinfo): Free ai->ai_canonname when set.
50068
50069 2005-09-12  Derek Price  <derek@ximbiot.com>
50070
50071         Make canon-host require getaddrinfo.
50072         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50073         AC_LIBSOURCE canon-host.h.  Call...
50074         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50075         gl_GETADDRINFO.
50076         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50077
50078 2005-09-12  Derek Price  <derek@ximbiot.com>
50079
50080         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50081         LGPL.
50082         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50083
50084 2005-09-12  Derek Price  <derek@ximbiot.com>
50085
50086         * lib/gai_strerror.c: Include config.h when available.  Include
50087         getaddrinfo.h before other headers to test interface.
50088         Reported by Larry Jones <lawrence.jones@ugs.com>.
50089
50090 2005-09-12  Derek Price  <derek@ximbiot.com>
50091             Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         * modules/glob (Files): Add glob-libc.h.
50094
50095 2005-09-12  Derek Price  <derek@ximbiot.com>
50096             Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50099         glob_.h, glob-libc.h.
50100         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50101
50102 2005-09-12  Derek Price  <derek@ximbiot.com>
50103             Paul Eggert  <eggert@cs.ucla.edu>
50104
50105         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50106         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50107         protecting things that should be done only in gnulib contexts.
50108         * lib/glob_.h: New file, containing only the glob things needed for
50109         gnulib.
50110         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50111         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50112         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50113         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50114         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50115         and to respect the namespace rules better.
50116
50117 2005-09-08  Simon Josefsson  <jas@extundo.com>
50118
50119         * modules/socklen: New file.
50120
50121 2005-09-08  Simon Josefsson  <jas@extundo.com>
50122
50123         * m4/socklen.m4: New file.
50124
50125 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50126
50127         * modules/utimens (Files): Add m4/utimbuf.m4, since
50128         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50129         Reported by Sergey Poznyakoff.
50130
50131 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50134         definitions, since that's the preferred style in glibc.
50135         Fix a minor spacing issue, and update copyright notice to match
50136         glibc's.
50137
50138 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50141
50142 2005-09-06  Simon Josefsson  <jas@extundo.com>
50143
50144         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50145         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50146
50147 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50148
50149         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50150         warning.
50151
50152 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50153
50154         * config/srclist.txt: Add glibc bug 1302.
50155
50156 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50157
50158         Change bitset word type from unsigned int to unsigned long int,
50159         as this has better performance on typical 64-bit hosts.
50160         Port bitset code to hosts with unusual word sizes.
50161         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50162         (build_collating_symbol):
50163         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50164         argument is a bitset.  This is merely a style issue, but it makes
50165         it clearer that an entire array is expected.
50166         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50167         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50168         Port to the case where bitset_word is not the same as unsigned int.
50169         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50170         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50171         Likewise.
50172         * lib/regexec.c (check_dst_limits_calc_pos_1,
50173         check_subexp_matching_top):
50174         (build_trtable, group_nodes_into_DFAstates):
50175         Likewise.
50176         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50177         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50178         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50179         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50180         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50181         * lib/regcomp.c (optimize_subexps, lower_subexp):
50182         Work even if bitset_word has holes in its bitwise representation.
50183         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50184         * lib/regexec.c (check_dst_limits_calc_pos_1,
50185         check_subexp_matching_top):
50186         Likewise.
50187         * lib/regex_internal.c (re_string_reconstruct):
50188         Don't assume UCHAR_MAX == 255.
50189         * lib/regex_internal.h (bitset_set_all): Likewise.
50190         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50191         All uses changed.
50192         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50193         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50194         All uses changed.
50195         (BITSET_WORD_MAX): New macro.
50196         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50197         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50198         (bitset_empty, bitset_copy):
50199         Prefer sizeof (bitset) to multiplying it out ourselves.
50200         (bitset_not_merge): Remove; unused.
50201         (bitset_contain): Return bool, not unsigned int with one bit on.
50202         All callers changed.
50203         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50204         alignment than re_node_set; do this by defining a new internal
50205         type struct dests_alloc and using it to allocate memory.
50206
50207 2005-09-05  Bruno Haible  <bruno@clisp.org>
50208
50209         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50210         links.
50211
50212 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50213
50214         * modules/size_max (Makefile.am): Add size_max.h
50215
50216 2005-09-04  Derek Price  <derek@ximbiot.com>
50217
50218         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50219
50220 2005-09-03  Simon Josefsson  <jas@extundo.com>
50221
50222         * gnulib-tool: Fix typo.
50223
50224 2005-09-03  Simon Josefsson  <jas@extundo.com>
50225
50226         * config/srclist.txt: Add glibc bug 1293.
50227
50228 2005-09-03  Derek Price  <derek@ximbiot.com>
50229
50230         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50231         From Larry Jones <lawrence.jones@ugs.com>.
50232
50233 2005-09-02  Simon Josefsson  <jas@extundo.com>
50234
50235         * modules/socklen: New file.
50236
50237 2005-09-02  Simon Josefsson  <jas@extundo.com>
50238
50239         * modules/havelib: New module.
50240
50241         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50242         Use havelib.
50243
50244 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50245
50246         Check for arithmetic overflow when calculating sizes, to prevent
50247         some buffer-overflow issues.  These patches are conservative, in the
50248         sense that when I couldn't determine whether an overflow was possible,
50249         I inserted a run-time check.
50250         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50251         macros.
50252         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50253         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50254         (re_xnrealloc, re_x2nrealloc): New inline functions.
50255         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50256         parse_bracket_exp):
50257         (build_equiv_class, build_charclass): Check for arithmetic overflow
50258         in size expression calculations.
50259         * lib/regex_internal.c (re_string_realloc_buffers):
50260         (build_wcs_upper_buffer, re_node_set_add_intersect):
50261         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50262         (re_dfa_add_node, register_state): Likewise.
50263         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50264         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50265         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50266         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50267
50268 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50269
50270         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50271         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50272
50273 2005-09-02  Bruno Haible  <bruno@clisp.org>
50274
50275         Support for lib vs. lib64 distinction on biarch platforms.
50276         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50277         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50279
50280 2005-09-02  Bruno Haible  <bruno@clisp.org>
50281
50282         * gnulib-tool (import): In the other first-use case, provide defaults
50283         as well.
50284
50285 2005-09-02  Bruno Haible  <bruno@clisp.org>
50286
50287         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50288         patches not yet found in the latest gettext release.
50289
50290 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50291
50292         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50293         to avoid a collision with bits/local_lim.h in glibc.
50294         All uses changed.  Problem reported by Dmitry V. Levin in
50295         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50296
50297         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50298         bugs in int versus size_t comparisons.
50299         (re_string_context_at): Fix bug where the code assumed that
50300         Idx is signed.
50301
50302         Use bool where appropriate.
50303         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50304         All callers changed.
50305         (calc_eclosure_iter): Likewise, for ROOT arg.
50306         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50307         (build_charclass_op): Likewise, for NON_MATCH arg.
50308         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50309         (re_string_construct_common): Likewise, for ICASE arg.
50310         * lib/regexec.c (re_search_2_stub, re_search_stub):
50311         Likewise, for RET_LEN arg.
50312         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50313         (set_regs): Likewise, for FL_BACKTRACK arg.
50314         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50315         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50316         (calc_eclosure_iter, parse_bracket_exp):
50317         Use bool for internal variables that are booleans.
50318         * lib/regexec.c (re_search_internal, check_matching,
50319         proceed_next_node):
50320         (set_regs, build_sifted_states, sift_states_bkref):
50321         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50322         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50323         (find_collation_sequence_value):
50324         Likewise.
50325         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50326         (re_node_set_compare):
50327         Return bool, not int. All callers changed.
50328         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50329         (build_trtable, check_node_accept): Likewise.
50330         * lib/regex_internal.h: Include stdbool.h.
50331
50332         Fix bugs uncovered when converting to bool.
50333         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50334         failure instead of charging ahead blindly.
50335         * lib/regex_internal.c (register_state): Likewise.
50336         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50337         for freeing internal storage.
50338         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50339         bitset pieces used as boolean, to avoid undefined behavior
50340         on hosts that do int overflow checking.
50341
50342 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50343
50344         * config/srclist.txt: Add glibc bugs 1285-1287.
50345
50346 2005-09-01  Jim Meyering  <jim@meyering.net>
50347
50348         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50349         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50350         Require gl_STAT_MACROS, too.
50351
50352 2005-09-01  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool (import): In the first-use case, provide defaults.
50355
50356 2005-09-01  Bruno Haible  <bruno@clisp.org>
50357
50358         * gnulib-tool (func_import): Remove the .tmp files.
50359
50360 2005-09-01  Bruno Haible  <bruno@clisp.org>
50361
50362         * gnulib-tool (func_import): Fix handling of symbolic links.
50363
50364 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50365
50366         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50367         old glibc regex code mishandles strings longer than 2**31 bytes.
50368         This patch fixes this when the regex code is used in gnulib
50369         (i.e., outside glibc).
50370
50371         This patch should not affect the use of the regex code inside
50372         glibc.  No doubt this problem also needs to be handled for glibc
50373         as well, but the result will be an incompatible change to the
50374         glibc ABI, and the old ABI will have to be supported too.  That
50375         can be the the subject for another patch.
50376
50377         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50378         governing whether the rest of this patch is active.  By default,
50379         the macro is disabled and the patch has no effect.
50380         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50381         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50382         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50383         (re_match_2, re_set_registers): Use the new types.
50384         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50385         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50386         New macros.
50387         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50388         (re_string_context_at, bin_tree_t, re_dfastate_t):
50389         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50390         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50391         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50392         (re_string_char_size_at, re_string_wchar_at):
50393         (re_string_elem_size_at):
50394         Use the new types and macros to port to 64-bit hosts.
50395         Use unsigned types for internal values, so that the code
50396         mostly works even for arrays larger than SSIZE_MAX.
50397         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50398         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50399         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50400         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50401         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50402         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50403         (calc_inveclosure, parse_dup_op, build_range_exp):
50404         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50405         (fetch_number, create_token_tree, mark_opt_subexp):
50406         Likewise.
50407         * lib/regex_internal.c (re_string_construct_common,
50408         create_ci_newstate):
50409         (create_cd_newstate, re_string_allocate, re_string_construct):
50410         (re_string_realloc_buffers, build_wcs_upper_buffer):
50411         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50412         (re_string_reconstruct, re_string_peek_byte_case):
50413         (re_string_fetch_byte_case, re_string_context_at):
50414         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50415         (re_node_set_init_copy, re_node_set_add_intersect):
50416         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50417         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50418         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50419         (re_acquire_state, re_acquire_state_context, register_state):
50420         Likewise.
50421         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50422         search_cur_bkref_entry):
50423         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50424         (re_search_internal, re_search_2_stub, re_search_stub)
50425         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50426         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50427         (update_cur_sifted_state, check_dst_limits):
50428         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50429         (check_subexp_limits, sift_states_bkref, merge_state_array):
50430         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50431         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50432         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50433         (expand_bkref_cache, check_node_accept_bytes):
50434         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50435         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50436         (acquire_init_state_context, check_halt_node_context):
50437         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50438         (sift_states_backward, clean_state_log_if_needed):
50439         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50440         (find_recover_state, transit_state_sb, transit_state_mb):
50441         (transit_state_bkref, build_trtable, match_ctx_clean):
50442         Likewise.
50443         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50444         to work around an assumption that REG_MISSING is negative.
50445
50446         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50447         (seek_collating_symbol_entry) [defined _LIBC]:
50448         (lookup_collation_sequence_value) [defined _LIBC]:
50449         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50450         Use prototypes rather than old-style function definitions.
50451         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50452         (transit_state_sb) [0]:
50453         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50454
50455         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50456         rm_eo.
50457
50458         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50459         (optimize_subexps, lower_subexp):
50460         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50461         since the signed shift might overflow.  Use 1u<<31 instead.
50462         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50463         Likewise.
50464         * lib/regexec.c (check_dst_limits_calc_pos_1,
50465         check_subexp_matching_top): Likewise.
50466
50467         * lib/regcomp.c (optimize_subexps, lower_subexp):
50468         Use CHAR_BIT rather than 8, for clarity.
50469         * lib/regexec.c (check_dst_limits_calc_pos_1):
50470         (check_subexp_matching_top): Likewise.
50471         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50472         have to worry about portability issues when shifting it left.
50473         Remove no-longer-needed test for table_size > 0.
50474         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50475         in a word, as the resulting behavior is undefined.
50476         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50477         in one case, a <= should have been an <, and in another case the
50478         whole test was missing.
50479         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50480         the standard name CHAR_BIT.
50481         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50482         this is not true on one's complement and signed-magnitude hosts.
50483
50484         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50485         next_last_offset.
50486         (struct re_dfa_t): Remove unused member states_alloc.
50487         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50488
50489 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50490
50491         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50492         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50493         and large-file glibc and in 32-bit large-file Solaris.
50494
50495 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50496
50497         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50498         lengths fit in regoff_t; this isn't true if regoff_t is the same
50499         width as size_t.
50500         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50501         (= START + RANGE) instead of RANGE.  This avoids overflow
50502         problems when regoff_t is the same width as size_t.
50503         All callers changed.
50504         (re_search_2_stub): Check for overflow when adding the
50505         sizes of the two strings.
50506         (re_search_stub): Check for overflow when adding START
50507         to RANGE; if it occurs, substitute the extreme value.
50508
50509 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50510
50511         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50512
50513 2005-08-31  Jim Meyering  <jim@meyering.net>
50514
50515         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50516         a pointer-to-const.
50517         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50518         (register_state): Likewise.
50519         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50520         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50521         (group_nodes_into_DFAstates): Likewise.
50522
50523 2005-08-31  Jim Meyering  <jim@meyering.net>
50524
50525         * check-module: Add a FIXME comment.
50526
50527 2005-08-31  Eric Blake  <ebb9@byu.net>
50528
50529         * modules/unistd-safer (Files): Add unistd--.h.
50530         * modules/stdio-safer (Files): Add stdio--.h.
50531
50532 2005-08-31  Derek Price  <derek@ximbiot.com>
50533
50534         * lib/getdelim.c (getdelim): Return EOF on EOF.
50535         Reported by Larry Jones <lawrence.jones@ugs.com>.
50536
50537 2005-08-31  Bruno Haible  <bruno@clisp.org>
50538
50539         Avoid unnecessary diffs in the generated lib/Makefile.am.
50540         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50541         the generated files.
50542         (func_import): Don't set cmd.
50543
50544 2005-08-31  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/strstr.c: Include <stddef.h>, for NULL.
50547         * lib/strcasestr.c: Likewise.
50548         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50549
50550 2005-08-31  Bruno Haible  <bruno@clisp.org>
50551
50552         * gnulib-tool: New option --macro-prefix.
50553         (func_import): Use macro_prefix.
50554         (import): Handle option --macro-prefix.
50555
50556 2005-08-31  Bruno Haible  <bruno@clisp.org>
50557
50558         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50559         Also use new variables cached_lgpl, cached_libtool.
50560
50561 2005-08-31  Bruno Haible  <bruno@clisp.org>
50562
50563         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50564         always instantiating them.
50565
50566 2005-08-31  Bruno Haible  <bruno@clisp.org>
50567
50568         * gnulib-tool (func_import): Read the previous cached settings
50569         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50570         earlier added by gnulib but are now dropped. Warn when a gnulib file
50571         overwrites a non-gnulib file.
50572
50573 2005-08-31  Bruno Haible  <bruno@clisp.org>
50574
50575         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50576         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50577         projects that don't keep autogenerated files in CVS. Put into
50578         actioncmd only the specified modules, not the transitive closure.
50579
50580 2005-08-31  Bruno Haible  <bruno@clisp.org>
50581
50582         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50583         Create directories that shall be filled.
50584         (import): Don't look for gl_* macros in configure.ac. Recurse across
50585         all directories containing a gnulib-cache.m4 files, if meaningful.
50586
50587 2005-08-31  Bruno Haible  <bruno@clisp.org>
50588
50589         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50590         (import): Set seen_libtool when we see gl_LIBTOOL.
50591
50592 2005-08-31  Bruno Haible  <bruno@clisp.org>
50593
50594         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50595         declaration macro definitions from generated gnulib.m4.
50596
50597 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50598
50599         * lib/iconvme.h: Add prototype for iconv_alloc.
50600
50601 2005-08-29  Simon Josefsson  <jas@extundo.com>
50602
50603         * lib/iconvme.c: Fix errno.
50604
50605 2005-08-29  Bruno Haible  <bruno@clisp.org>
50606
50607         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50608         that it works when the directory contains spaces.
50609
50610 2005-08-29  Bruno Haible  <bruno@clisp.org>
50611
50612         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50613
50614 2005-08-29  Bruno Haible  <bruno@clisp.org>
50615
50616         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50617         Emit more advice.
50618
50619 2005-08-29  Bruno Haible  <bruno@clisp.org>
50620         and Stepan Kasal  <kasal@ucw.cz>
50621
50622         * check-module: If more parameters are given, check each of them
50623         separately; add more exceptions, as noted by Jim Meyering.
50624         (check_module): New procedure.
50625         (%exempt_header): Now contains all exceptions.
50626
50627 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
50628
50629         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
50630
50631 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50632
50633         * lib/iconvme.c: Split iconv_string into iconv_alloc.
50634
50635 2005-08-28  Bruno Haible  <bruno@clisp.org>
50636
50637         * m4/gnulib-tool.m4: New file.
50638
50639 2005-08-27  Jim Meyering  <jim@meyering.net>
50640
50641         * modules/unistd-safer (Files): Add pipe-safer.c.
50642         * modules/fcntl-safer (Files): Add creat-safer.c.
50643
50644 2005-08-27  Jim Meyering  <jim@meyering.net>
50645
50646         * m4/stdlib-safer.m4: New file.  From coreutils.
50647         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
50648         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
50649         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
50650         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
50651         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
50652
50653 2005-08-27  Jim Meyering  <jim@meyering.net>
50654
50655         * lib/fopen-safer.c: Merge minor changes from coreutils.
50656         * lib/dup-safer.c: Likewise.
50657         * lib/fd-safer.c: Likewise.
50658
50659         Merge from coreutils.
50660         * lib/stdio--.h: New file.
50661         * lib/stdlib--.h: New file.
50662         * lib/mkstemp-safer.c: New file.
50663
50664         GNU tar needs these.
50665         * lib/pipe-safer.c: New file.
50666         * lib/creat-safer.c: New file.
50667         * lib/fcntl--.h (creat): Define to creat_safer.
50668         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
50669         * lib/unistd--.h (pipe): Define to pipe_safer.
50670         * lib/unistd-safer.h: Declare pipe_safer.
50671
50672 2005-08-26  Simon Josefsson  <jas@extundo.com>
50673
50674         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
50675         Haible <bruno@clisp.org>.
50676
50677 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * lib/regex_internal.h: Remove all references to
50680         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
50681         or better.
50682         (bitset_not, bitset_merge, bitset_not_merge):
50683         (bitset_mask, re_string_allocate, re_string_construct):
50684         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
50685         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
50686         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
50687         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
50688         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50689         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50690         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
50691         (re_acquire_state_context):
50692         Remove unnecessary forward decls.
50693         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
50694         Put __attribute at function definition,
50695         now that the function decl has been removed.
50696         * lib/regex_internal.c (re_string_peek_byte_case):
50697         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
50698         Likewise.
50699
50700 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
50701
50702         * m4/regex.m4: Add AC_PREREQ(2.50).
50703         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
50704
50705 2005-08-25  Simon Josefsson  <jas@extundo.com>
50706
50707         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
50708         __fsetlocking.
50709
50710 2005-08-25  Simon Josefsson  <jas@extundo.com>
50711
50712         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
50713         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
50714         GLIBC specific code.
50715
50716 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50717
50718         Make regex safe for g++.  This fixes one real bug (an "err"
50719         that should have been "*err").  g++ problem reported by
50720         Sam Steingold.
50721         * lib/regex_internal.h (re_calloc): New macro, consistent with
50722         re_malloc etc.  All callers of calloc changed to use re_calloc.
50723         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
50724         not int.  All callers changed.
50725         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
50726         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
50727         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
50728         (find_recover_state): Change "err" to "*err"; this fixes what
50729         appears to be a real bug.
50730         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
50731         versus int.
50732
50733 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50734
50735         * modules/regex (Depends-on): Add malloc, since the code
50736         assumes that !malloc(0) means failure.
50737
50738 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50739
50740         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
50741
50742         alloca modernization/simplification for regex.
50743         * lib/regex.c: Remove portability cruft for alloca.  This no longer
50744         needs to be at the start of the file, and can be moved into
50745         regex_internal.h and simplified.
50746         * lib/regex_internal.h: Include <alloca.h>.
50747         (__libc_use_alloca) [!defined _LIBC]: New macro.
50748         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
50749         now works outside glibc.
50750
50751 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * config/srclist.txt: Add glibc bugs 1241, 1245.
50754
50755 2005-08-25  Jim Meyering  <jim@meyering.net>
50756
50757         * lib/open-safer.c: Include <config.h>.
50758         Otherwise, we'd lose LARGEFILE support in any file using
50759         e.g. "fcntl--.h"
50760
50761 2005-08-25  Bruno Haible  <bruno@clisp.org>
50762
50763         * m4/minmax.m4: Require autoconf 2.52.
50764         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
50765         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
50766         alternatives of translit over the alphabet.
50767         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
50768
50769 2005-08-24  Simon Josefsson  <jas@extundo.com>
50770
50771         * tests/test-getpass.c: New file.
50772
50773 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
50776         for GNU regex features.
50777
50778 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50779
50780         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
50781         * lib/regex.h (regerror): Likewise.
50782
50783         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
50784         requires this.  (The code never needed it.)
50785
50786         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
50787         All uses of recently-renamed identifiers changed to use the new,
50788         POSIX-compliant names.  The code will build and run just fine
50789         without these changes, but it's better to eat our own dog food
50790         and use the standard-conforming names.
50791
50792         * lib/regex.h: Fix a multitude of POSIX name space violations.
50793         These changes have an effect only for programs that define
50794         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
50795         do not change anything for programs compiled in the normal way.
50796         Also, there is no effect on the ABI.
50797
50798         (_REGEX_SOURCE): New macro.
50799         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
50800         defined and _GNU_SOURCE is not; this fixes a name space violation.
50801
50802         Rename the following macros to obey POSIX requirements.
50803         The old names are still visible as macros if _REGEX_SOURCE is defined.
50804         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
50805         RE_BACKSLASH_ESCAPE_IN_LISTS.
50806         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
50807         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
50808         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
50809         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
50810         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
50811         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
50812         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
50813         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
50814         (REG_INTERVALS): renamed from RE_INTERVALS.
50815         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
50816         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
50817         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
50818         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
50819         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
50820         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
50821         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
50822         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
50823         RE_UNMATCHED_RIGHT_PAREN_ORD.
50824         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
50825         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
50826         (REG_DEBUG): renamed from RE_DEBUG.
50827         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
50828         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
50829         unusual, since we can't clash with the POSIX REG_ICASE.
50830         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
50831         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
50832         (REG_NO_SUB): renamed from RE_NO_SUB.
50833         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
50834         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
50835         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
50836         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
50837         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
50838         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
50839         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
50840         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
50841         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
50842         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
50843         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
50844         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
50845         RE_SYNTAX_POSIX_MINIMAL_BASIC.
50846         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
50847         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
50848         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
50849         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
50850         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
50851         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
50852         (REG_FIXED): Renamed from REGS_FIXED.
50853         (REG_NREGS): Renamed from RE_NREGS.
50854
50855         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
50856         of other REG_* macros, since POSIX says the user is allowed to
50857         #undef these macros selectively.
50858
50859         (reg_errcode_t): Update comment stating what other tables need
50860         to be consistent.
50861
50862         Rename the following enum values to obey POSIX requirements.
50863         The old names are still visible as macros.
50864         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
50865         is not defined, since GNU is supposed to be a superset of POSIX as
50866         much as possible, and since we want reg_errcode_t to be a signed
50867         type for implementation consistency.
50868         (_REG_NOERROR): Renamed from REG_NOERROR.
50869         (_REG_NOMATCH): Renamed from REG_NOMATCH.
50870         (_REG_BADPAT): Renamed from REG_BADPAT.
50871         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
50872         (_REG_ECTYPE): Renamed from REG_ECTYPE.
50873         (_REG_EESCAPE): Renamed from REG_EESCAPE.
50874         (_REG_ESUBREG): Renamed from REG_ESUBREG.
50875         (_REG_EBRACK): Renamed from REG_EBRACK.
50876         (_REG_EPAREN): Renamed from REG_EPAREN.
50877         (_REG_EBRACE): Renamed from REG_EBRACE.
50878         (_REG_BADBR): Renamed from REG_BADBR.
50879         (_REG_ERANGE): Renamed from REG_ERANGE.
50880         (_REG_ESPACE): Renamed from REG_ESPACE.
50881         (_REG_BADRPT): Renamed from REG_BADRPT.
50882         (_REG_EEND): Renamed from REG_EEND.
50883         (_REG_ESIZE): Renamed from REG_ESIZE.
50884         (_REG_ERPAREN): Renamed from REG_ERPAREN.
50885         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
50886         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
50887         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
50888         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
50889
50890         (_REG_RE_NAME, _REG_RM_NAME): New macros.
50891         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
50892         changed.  But support the old name if the new one is not defined
50893         and if _REGEX_SOURCE.
50894
50895         Change the following member names in struct re_pattern_buffer.
50896         The old names are still supported if !_REGEX_SOURCE.
50897         The new names are always supported, regardless of _REGEX_SOURCE.
50898         (re_buffer): Renamed from buffer.
50899         (re_allocated): Renamed from allocated.
50900         (re_used): Renamed from used.
50901         (re_syntax): Renamed from syntax.
50902         (re_fastmap): Renamed from fastmap.
50903         (re_translate): Renamed from translate.
50904         (re_can_be_null): Renamed from can_be_null.
50905         (re_regs_allocated): Renamed from regs_allocated.
50906         (re_fastmap_accurate): Renamed from fastmap_accurate.
50907         (re_no_sub): Renamed from no_sub.
50908         (re_not_bol): Renamed from not_bol.
50909         (re_not_eol): Renamed from not_eol.
50910         (re_newline_anchor): Renamed from newline_anchor.
50911
50912         Change the following member names in struct re_registers.
50913         The old names are still supported if !_REGEX_SOURCE.
50914         The new names are always supported, regardless of _REGEX_SOURCE.
50915         (rm_num_regs): Renamed from num_regs.
50916         (rm_start): Renamed from start.
50917         (rm_end): Renamed from end.
50918
50919         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
50920         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
50921         Prepend __ to parameter names.
50922
50923         Undo yesterday's changes.
50924
50925 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50926
50927         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
50928         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
50929         lib/regex.c.
50930
50931 2005-08-24  Jim Meyering  <jim@meyering.net>
50932
50933         Sync from coreutils.
50934         * m4/fcntl-safer.m4: New file.
50935
50936         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
50937         and object files for this module.
50938
50939 2005-08-24  Jim Meyering  <jim@meyering.net>
50940
50941         Sync from coreutils.
50942         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
50943
50944 2005-08-24  Jim Meyering  <jim@meyering.net>
50945
50946         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
50947         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
50948
50949 2005-08-24  Jim Meyering  <jim@meyering.net>
50950
50951         * modules/fcntl-safer: New module.
50952         * modules/fts (Depends-on): Add fcntl-safer.
50953         * MODULES.html.sh (File descriptor based Input/Output):
50954         Add fcntl-safer.
50955
50956 2005-08-24  Bruno Haible  <bruno@clisp.org>
50957
50958         Support for unit test modules.
50959         * modules/README: Mention tests modules.
50960         * modules/TEMPLATE-TESTS: New file.
50961         * gnulib-tool: New options --extract-tests-module, --with-tests and
50962         --tests-base (unused for the moment).
50963         (testsbase, inctests): New variables.
50964         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
50965         (func_verify_module): Exclude TEMPLATE-TESTS.
50966         (func_verify_nontests_module, func_verify_tests_module): New functions.
50967         (func_get_dependencies): Add implicit dependency for tests modules.
50968         (func_get_tests_module): New function.
50969         (func_modules_transitive_closure): When --with-tests was specified,
50970         include the unit tests as well, unless explicitly avoided.
50971         (func_emit_lib_Makefile_am): Ignore the tests modules here.
50972         (func_emit_tests_Makefile_am): New function.
50973         (func_create_testdir): When --with-tests was specified, emit a
50974         tests/ directory.
50975         * MODULES.html.sh (Future developments): Update.
50976
50977 2005-08-24  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/tls-tests: New file.
50980         * tests/test-tls.c: New file, from GNU gettext.
50981
50982 2005-08-24  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/lock-tests: New file.
50985         * tests/test-lock.c: New file, from GNU gettext.
50986
50987 2005-08-24  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/lock.h: Add multiple inclusion guard.
50990         * lib/tls.h: Add multiple inclusion guard.
50991
50992 2005-08-24  Bruno Haible  <bruno@clisp.org>
50993
50994         * gnulib-tool: Add support for the --aux-dir option to
50995         --create-testdir, --create-megatestdir, --test, --megatest.
50996         (func_create_testdir, func_create_megatestdir): Optionally emit a
50997         AC_CONFIG_AUX_DIR directive.
50998         (create-testdir, create-megatestdir, test, megatest): Provide a
50999         default value for $auxdir.
51000
51001 2005-08-24  Bruno Haible  <bruno@clisp.org>
51002
51003         * gnulib-tool (import): Use compound statement instead of subshell
51004         where possible.
51005
51006 2005-08-24  Bruno Haible  <bruno@clisp.org>
51007
51008         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51009
51010 2005-08-24  Bruno Haible  <bruno@clisp.org>
51011
51012         * gnulib-tool (func_version): Update.
51013
51014 2005-08-24  Bruno Haible  <bruno@clisp.org>
51015
51016         * gnulib-tool (func_import, func_create_testdir,
51017         func_create_megatestdir): Quote all autoconf macro arguments.
51018
51019 2005-08-24  Bruno Haible  <bruno@clisp.org>
51020
51021         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51022         option --force, because --force causes the aclocal.m4 of each
51023         subdirectory to be newer than the corresponding config.h.in.
51024
51025 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51026
51027         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51028         All contents moved to gl_REGEX.
51029         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51030         assume that it does.
51031
51032 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51033
51034         * lib/regex.h (REG_NOSYS)
51035         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51036         Define, since POSIX requires it as of 2001.
51037         (_REG_ENOSYS)
51038         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51039         New private symbol, used to keep the enum signed in all cases.
51040         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51041         Youngman in
51042         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51043
51044         * lib/regex_internal.c (re_string_skip_chars, register_state):
51045         (calc_state_hash):
51046         Remove forward decls; no longer needed now that we use prototypes.
51047         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51048         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51049         (clean_state_log_if_needed): Likewise.
51050
51051 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51052
51053         * config/srclist.txt: Add glibc bugs 1231-1233.
51054
51055 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51056
51057         Fix problems reported by Sam Steingold in
51058         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51059         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51060         assumed that reg_errcode_t is a signed type, which is not
51061         necessarily true if _XOPEN_SOURCE is not defined.
51062         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51063         since some compilers warn about it otherwise.
51064
51065 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51068         (init_word_char, create_initial_state, duplicate_node_closure):
51069         (fetch_token, peek_token_bracket, build_range_exp):
51070         (build_collating_symbol): Remove forward decls; no longer needed
51071         now that we use prototypes.
51072
51073         * lib/regcomp.c:
51074         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51075         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51076         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51077         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51078         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51079         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51080         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51081         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51082         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51083         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51084         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51085         (build_charclass, build_charclass_op, fetch_number, create_tree):
51086         (create_token_tree, mark_opt_subexp, duplicate_tree):
51087         Use prototypes rather than old-style definitions.
51088
51089         * lib/regex_internal.c:
51090         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51091         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51092         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51093         (re_string_reconstruct, re_string_peek_byte_case):
51094         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51095         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51096         (re_node_set_init_copy, re_node_set_add_intersect):
51097         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51098         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51099         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51100         (re_acquire_state, re_acquire_state_context, register_state):
51101         (create_ci_newstate, create_cd_newstate, free_state):
51102         Likewise.
51103         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51104         re_search_2):
51105         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51106         (re_search_internal, prune_impossible_nodes):
51107         (acquire_init_state_context, check_matching, static):
51108         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51109         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51110         (update_regs, sift_states_backward, build_sifted_states):
51111         (clean_state_log_if_needed, merge_state_array):
51112         (update_cur_sifted_state, add_epsilon_src_nodes):
51113         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51114         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51115         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51116         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51117         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51118         (check_arrival, check_arrival_add_next_nodes):
51119         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51120         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51121         (check_node_accept_bytes, check_node_accept, extend_buffers):
51122         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51123         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51124         (sift_ctx_init):
51125         Likewise.
51126
51127         * lib/regex_internal.h:
51128         (re_string_allocate, re_string_construct, re_string_reconstruct):
51129         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51130         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51131         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51132         (re_string_context_at, re_string_peek_byte_case):
51133         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51134         is defined, since we now use prototypes always.
51135
51136         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51137         C89 or better.  All uses removed.
51138
51139 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * config/srclist.txt: Add glibc bugs 1220-1227.
51142
51143 2005-08-20  Jim Meyering  <jim@meyering.net>
51144
51145         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51146         of unused local, dfa.
51147
51148 2005-08-20  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51151
51152 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51155         (re_node_set_insert_last, re_dfa_add_node):
51156         Rename local variables to avoid GCC shadowing warnings.
51157
51158 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51159
51160         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51161         [defined lint]: Suppress bogus uninitialized-variable warnings.
51162
51163         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51164         and let the caller return REG_ESPACE if out of space.  This
51165         removes an uninitialied-variable warning with GCC 4.0.1, and also
51166         avoids taking the address of a local variable.  All callers
51167         changed.
51168
51169 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51172         $LIBCSRC/posix/regexec.c.
51173         Add glibc bug 1217 for regcomp.c.
51174
51175 2005-08-19  Jim Meyering  <jim@meyering.net>
51176
51177         * lib/regexec.c (proceed_next_node): Redo local variables to
51178         avoid GCC shadowing warnings.
51179
51180 2005-08-18  Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/strstr.c (strstr): Fix return value in multibyte case.
51183         * lib/strcasestr.c (strcasestr): Likewise.
51184
51185 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51186
51187         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51188
51189 2005-08-17  Jim Meyering  <jim@meyering.net>
51190
51191         Make the %s format (seconds since the epoch) work for a negative
51192         number and when used with a zero-padded field width, e.g. %015s.
51193
51194         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51195         label so that it precedes the code to set `digits'.  Otherwise,
51196         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51197         print `00-22'.  Now, it prints `-0022', as it should.
51198
51199 2005-08-17  Bruno Haible  <bruno@clisp.org>
51200
51201         * modules/strstr (Files): Add m4/mbrtowc.m4.
51202         (Depends-on): Add mbuiter.
51203
51204 2005-08-17  Bruno Haible  <bruno@clisp.org>
51205
51206         * modules/strcasestr: New file.
51207         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51208         strcasestr.
51209
51210 2005-08-17  Bruno Haible  <bruno@clisp.org>
51211
51212         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51213
51214 2005-08-17  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/mbuiter: New file.
51217         * MODULES.html.sh (Extended multibyte and wide character utilities):
51218         Add mbuiter.
51219
51220 2005-08-17  Bruno Haible  <bruno@clisp.org>
51221
51222         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51223         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51224
51225 2005-08-17  Bruno Haible  <bruno@clisp.org>
51226
51227         * m4/strcasestr.m4: New file.
51228
51229 2005-08-17  Bruno Haible  <bruno@clisp.org>
51230
51231         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51232         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51233
51234 2005-08-17  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/strcasestr.h: New file.
51237         * lib/strcasestr.c: New file.
51238
51239 2005-08-17  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/strcasecmp.c: Use mbuiter.h.
51242
51243 2005-08-17  Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/mbuiter.h: New file.
51246
51247 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51248
51249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51250         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51251         and gl_GETOPT are both invoked via different paths (as happens
51252         with GNU tar CVS because it uses both argp and getopt), the former
51253         wins.
51254
51255 2005-08-16  Bruno Haible  <bruno@clisp.org>
51256
51257         * modules/tls: New file.
51258         * MODULES.html.sh (Multithreading): Add tls.
51259
51260 2005-08-16  Bruno Haible  <bruno@clisp.org>
51261
51262         * modules/strnlen1: New file.
51263         * MODULES.html.sh (String handling): Add strnlen1.
51264
51265 2005-08-16  Bruno Haible  <bruno@clisp.org>
51266
51267         * modules/strcase (Files): Add m4/mbrtowc.m4.
51268         (Depends-on): Add strnlen1, mbchar.
51269
51270 2005-08-16  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/mbiter: New file.
51273         * MODULES.html.sh (Extended multibyte and wide character utilities):
51274         Add mbiter.
51275
51276 2005-08-16  Bruno Haible  <bruno@clisp.org>
51277
51278         * modules/mbfile: New file.
51279         * MODULES.html.sh (Extended multibyte and wide character utilities):
51280         Add mbfile.
51281
51282 2005-08-16  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/mbchar: New file.
51285         * MODULES.html.sh (Extended multibyte and wide character utilities):
51286         New section.
51287
51288 2005-08-16  Bruno Haible  <bruno@clisp.org>
51289
51290         * m4/tls.m4: New file, from GNU gettext.
51291
51292 2005-08-16  Bruno Haible  <bruno@clisp.org>
51293
51294         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51295         always.
51296         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51297
51298 2005-08-16  Bruno Haible  <bruno@clisp.org>
51299
51300         * m4/mbiter.m4: New file.
51301
51302 2005-08-16  Bruno Haible  <bruno@clisp.org>
51303
51304         * m4/mbfile.m4: New file.
51305
51306 2005-08-16  Bruno Haible  <bruno@clisp.org>
51307
51308         * m4/mbchar.m4: New file.
51309
51310 2005-08-16  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/tls.h: New file, from GNU gettext.
51313         * lib/tls.c: New file, from GNU gettext.
51314
51315 2005-08-16  Bruno Haible  <bruno@clisp.org>
51316
51317         * lib/strnlen1.h: New file.
51318         * lib/strnlen1.c: New file.
51319
51320 2005-08-16  Bruno Haible  <bruno@clisp.org>
51321
51322         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51323         (mbi_init): Update.
51324         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51325         NUL byte, not after it.
51326
51327 2005-08-16  Bruno Haible  <bruno@clisp.org>
51328
51329         * lib/strcase.h (strcasecmp): Add note in comments.
51330         * lib/strncasecmp.c: Use code from strcasecmp.c.
51331         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51332         (strcasecmp): Work correctly in multibyte locales.
51333
51334 2005-08-16  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/mbiter.h: New file.
51337
51338 2005-08-16  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/mbfile.h: New file.
51341
51342 2005-08-16  Bruno Haible  <bruno@clisp.org>
51343
51344         * lib/mbchar.h: New file.
51345         * lib/mbchar.c: New file.
51346
51347 2005-08-16  Bruno Haible  <bruno@clisp.org>
51348
51349         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51350         the valid ones. Makes the comparison operations transitive:
51351         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51352         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51353
51354 2005-08-15  Simon Josefsson  <jas@extundo.com>
51355
51356         * modules/ssize_t (License): Change to 'unlimited'.
51357
51358         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51359
51360 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51361
51362         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51363         Add comments for each pending glibc patch.
51364
51365 2005-08-15  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51368         __cplusplus is defined.
51369
51370 2005-08-14  Jim Meyering  <jim@meyering.net>
51371
51372         Sync from coreutils.
51373
51374         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51375         Use the hash-table-based cycle-detection code not just when
51376         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51377         Reported by James Youngman in
51378         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51379         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51380         FTS_TIGHT_CYCLE_CHECK.
51381         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51382         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51383         once again.
51384         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51385         * lib/fts.c (fd_safer): Remove decl.
51386         Include fcntl--.h rather than unistd-safer.h
51387         (fts_safe_changedir): Don't call fd_safer; no longer needed
51388         now that we include fcntl--.h.
51389
51390 2005-08-12  Simon Josefsson  <jas@extundo.com>
51391
51392         * modules/getndelim2: Use ssize_t module.
51393         * modules/getnline: Likewise.
51394         * modules/safe-read: Likewise.
51395         * modules/xreadlink: Likewise.
51396
51397         * modules/ssize_t: New file.
51398
51399 2005-08-12  Simon Josefsson  <jas@extundo.com>
51400
51401         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51402
51403 2005-08-12  Simon Josefsson  <jas@extundo.com>
51404
51405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51406         ssize_t.
51407
51408 2005-08-12  Simon Josefsson  <jas@extundo.com>
51409
51410         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51411         readline, getdelim and check_version.
51412         (Support for systems lacking ISO C 99: Sizes of integer types):
51413         Add size_max.
51414
51415 2005-08-12  Bruno Haible  <bruno@clisp.org>
51416
51417         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51418
51419 2005-08-11  Simon Josefsson  <jas@extundo.com>
51420
51421         * modules/readline: New file.
51422
51423         * modules/strnlen (Files): Add strnlen.h.
51424
51425 2005-08-11  Simon Josefsson  <jas@extundo.com>
51426
51427         * m4/readline.m4: New file.
51428
51429 2005-08-11  Simon Josefsson  <jas@extundo.com>
51430
51431         * lib/readline.h, readline.c: New file.
51432
51433 2005-08-11  Simon Josefsson  <jas@extundo.com>
51434
51435         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51436         gl_AVOID.
51437
51438 2005-08-11  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51441
51442 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51443
51444         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51445
51446 2005-08-10  Simon Josefsson  <jas@extundo.com>
51447
51448         * tests/test-iconvme.c: New file.
51449
51450 2005-08-10  Simon Josefsson  <jas@extundo.com>
51451
51452         * m4/strnlen.m4: New file.
51453
51454         * m4/strndup.m4: Don't check for strnlen declaration, done in
51455         strnlen.m4.
51456
51457 2005-08-10  Simon Josefsson  <jas@extundo.com>
51458
51459         * lib/strndup.c: Use strnlen.h.
51460
51461         * lib/strnlen.h: New file.
51462
51463 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51464
51465         * README: Typos.
51466
51467 2005-08-02  Simon Josefsson  <jas@extundo.com>
51468
51469         * modules/readline: New file.
51470
51471 2005-08-02  Simon Josefsson  <jas@extundo.com>
51472
51473         * modules/getdelim: New file.
51474
51475         * modules/getline: Rewrite, don't use getndelim2.
51476
51477 2005-08-02  Simon Josefsson  <jas@extundo.com>
51478
51479         * m4/getline.m4: Separate out getdelim stuff into separate module.
51480
51481         * m4/getdelim.m4: New file.
51482
51483 2005-08-02  Simon Josefsson  <jas@extundo.com>
51484
51485         * lib/getline.h, getline.c: Rewrite.
51486
51487         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51488
51489 2005-07-31  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/lock.h (gl_lock_initializer): New macro.
51492         (gl_lock_define_initialized): Use it.
51493         (gl_rwlock_initializer): New macro.
51494         (gl_rwlock_define_initialized): Use it.
51495         (gl_recursive_lock_initializer): New macro.
51496         (gl_recursive_lock_define_initialized): Use it.
51497
51498 2005-07-30  Karl Berry  <karl@gnu.org>
51499
51500         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51501         Report from Ben Pfaff, regarding getopt.
51502
51503 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51504
51505         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51506         normal way.
51507         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51508         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51509         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51510         (gl_GETOPT): Use the new macros.  Most of the implementation
51511         is moved to the new macros.  This is for programs like Emacs
51512         that don't want all the functionality of gl_GETOPT.
51513
51514 2005-07-26  Bruno Haible  <bruno@clisp.org>
51515
51516         * m4/lock.m4: Update from GNU gettext.
51517
51518 2005-07-26  Bruno Haible  <bruno@clisp.org>
51519
51520         * lib/lock.h: Update from GNU gettext.
51521         * lib/lock.c: Update from GNU gettext.
51522
51523 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51526         obsolescent AC_TRY_RUN.  Include the default includes files, for
51527         'exit'.
51528
51529 2005-07-24  Bruno Haible  <bruno@clisp.org>
51530
51531         * modules/visibility: New file.
51532         * MODULES.html.sh (Misc): Add visibility.
51533
51534 2005-07-24  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/visibility.m4: New file.
51537
51538 2005-07-24  Bruno Haible  <bruno@clisp.org>
51539
51540         * doc/visibility.texi: New file.
51541
51542 2005-07-22  Bruno Haible  <bruno@clisp.org>
51543
51544         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51545         $(ALLOCA_H), redundant through BUILT_SOURCES.
51546         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51547         redundant through BUILT_SOURCES.
51548         * modules/byteswap (Makefile.am): Remove explicit dependency on
51549         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51550         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51551         $(FNMATCH_H), redundant through BUILT_SOURCES.
51552         * modules/getopt (Makefile.am): Remove explicit dependency on
51553         $(GETOPT_H), redundant through BUILT_SOURCES.
51554         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51555         redundant through BUILT_SOURCES.
51556         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51557         redundant through BUILT_SOURCES.
51558         * modules/stdbool (Makefile.am): Remove explicit dependency on
51559         $(STDBOOL_H), redundant through BUILT_SOURCES.
51560         * modules/stdint (Makefile.am): Remove explicit dependency on
51561         $(STDINT_H), redundant through BUILT_SOURCES.
51562         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51563         Remove explicit dependency on $(SYSEXITS_H).
51564         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51565
51566 2005-07-18  Simon Josefsson  <jas@extundo.com>
51567
51568         * lib/check-version.c (check_version): Accept identical versions too.
51569
51570 2005-07-18  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/lock: New file.
51573         * MODULES.html.sh (Multithreading): New section.
51574
51575 2005-07-18  Bruno Haible  <bruno@clisp.org>
51576
51577         * m4/lock.m4: New file, from GNU gettext.
51578
51579 2005-07-18  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/lock.h: New file, from GNU gettext.
51582         * lib/lock.c: New file, from GNU gettext.
51583
51584 2005-07-18  Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/lock.h (gl_once_t): New type.
51587         (gl_once_define, gl_once): New macros.
51588         * lib/lock.c (fresh_once): New variable.
51589         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51590         functions.
51591
51592 2005-07-16  Simon Josefsson  <jas@extundo.com>
51593
51594         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51595         workaround, suggested by Bruno.
51596
51597 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51598
51599         * modules/xalloc (Depends-on): Add xalloc-die.
51600         * modules/xvasprintf (Depends-on): Add xalloc-die.
51601
51602 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51603
51604         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51605         with a minor change.
51606
51607 2005-07-15  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51610         When using lib/poll.c, define poll as rpl_poll.
51611
51612 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * modules/argp (Depends-on): Remove unlocked-io.
51615
51616 2005-07-14  Derek Price  <derek@ximbiot.com>
51617
51618         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
51619         for glob symlink bug.
51620
51621 2005-07-14  Bruno Haible  <bruno@clisp.org>
51622
51623         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
51624         Instead, test for *_unlocked function declarations directly.
51625
51626 2005-07-11  Simon Josefsson  <jas@extundo.com>
51627
51628         * modules/size_max: New file.
51629
51630         * modules/xsize: Depend on size_max module for size_max.m4.
51631
51632 2005-07-11  Simon Josefsson  <jas@extundo.com>
51633
51634         * lib/size_max.h: New file.
51635
51636 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
51637
51638         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
51639         copyright symbol and the year.
51640         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
51641         (version_etc_va): Use parameterized copyright notice.
51642         Reword to conform to the current GNU coding standards.
51643
51644 2005-07-11  Karl Berry  <karl@gnu.org>
51645
51646         * doc/gnulib.texi (Quoting): new node.
51647         (Initial import): more info, from Patrice.
51648
51649 2005-07-11  Bruno Haible  <bruno@clisp.org>
51650
51651         * gnulib-tool (func_usage): Document option --avoid.
51652         (Command line options): Handle --avoid.
51653         (func_acceptable): New function.
51654         (func_modules_transitive_closure): Use it.
51655
51656 2005-07-11  Bruno Haible  <bruno@clisp.org>
51657
51658         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
51659         Reported by Jim Meyering.
51660
51661 2005-07-10  Bruno Haible  <bruno@clisp.org>
51662
51663         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
51664         Needed when size_t is smaller than 'unsigned int'.
51665         Reported by Paul Eggert.
51666
51667 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51668
51669         * modules/argp (Depends-on): Add unlocked-io
51670
51671 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51672
51673         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
51674         block of defines.
51675
51676 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * config/srclist.txt: Comment out regcomp.c, since we have a porting
51679         fix now.
51680
51681 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
51682         and Paul Eggert  <eggert@cs.ucla.edu>
51683
51684         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
51685         in wint_t, not wchar_t.  Remove now-unnecessary cast.
51686
51687 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         * modules/regex (Files): Add lib/regex_internal.c,
51690         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
51691         (Depends-on): Add extensions.
51692         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
51693
51694 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
51697         pathconf.
51698         * m4/same.m4 (gl_SAME): Likewise.
51699         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
51700
51701         * m4/regex.m4: Adjust to new libc regex implementation.
51702         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
51703         all the .c and .h parts of (the new) regex.
51704         Quote the m4 stuff better.
51705         Check for RE_ICASE bug of old gnulib.
51706         Check for REG_STARTEND of recent libc.
51707         Rename local variables from jm_* to gl_*.
51708         Quote operand of "test -f".
51709         Say "recent enough" version of libc, not "version 2".
51710         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
51711         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
51712         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
51713         Remove check for btowc, isascii.
51714         Require AM_LANGINFO_CODESET.
51715
51716 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * lib/regex.c, regex.h: Sync from libc.
51719         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
51720         * lib/regexec.c:
51721         New files, synced from libc, except that regex_internal.h
51722         currently has a small porting fix.
51723
51724 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
51725
51726         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
51727         regex_internal.c, regexec.c.
51728         Add regex_internal.h too, but as a comment, since the libc version
51729         is currently broken in gnulib mode.
51730
51731 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51732
51733         Support programs like Emacs that use gnulib but not gettext.
51734         * MODULES.html.sh (Internationalization functions): Add gettext-h.
51735         * modules/gettext-h: New file.
51736         * modules/gettext (Files): Remove lib/gettext.h.
51737         (Depends-on): Add gettext-h.
51738         (Makefile.am): Remove lib_SOURCES.
51739         * modules/argmatch, modules/c-stack, modules/closeout:
51740         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
51741         * modules/execute, modules/file-type, modules/getaddrinfo:
51742         * modules/getopt, modules/human, modules/javacomp:
51743         * modules/javaexec, modules/mkdir-p, modules/obstack:
51744         * modules/openat, modules/pagealign_alloc, modules/pipe:
51745         * modules/quotearg, modules/regex, modules/rpmatch:
51746         * modules/unicodeio, modules/userspec, modules/version-etc:
51747         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
51748         * modules/xsetenv:
51749         Depend on gettext-h, not gettext.
51750
51751 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         * gnulib-tool (func_import): Add support for 'public domain' license.
51754         * modules/alloca, modules/atexit, modules/memmove:
51755         Now public domain, not GPL.
51756         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
51757         * modules/realloc, modules/strerror, modules/strtod:
51758         Now LGPL, not GPL.
51759
51760 2005-07-05  Bruno Haible  <bruno@clisp.org>
51761
51762         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
51763         autoconf CVS. Needed for mingw.
51764
51765 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51766
51767         Remove the dependency of the strftime module on the tzset module.
51768         * modules/strftime (Depends-on): Remove dependency on tzset.
51769
51770 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51771
51772         Remove the dependency of the strftime module on the tzset module.
51773         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
51774         gl_FUNC_TZSET_CLOBBER.
51775
51776 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51777
51778         Remove the dependency of the strftime module on the tzset module.
51779         * lib/strftime.c (my_strftime)
51780         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
51781         Copy the input structure, to work around some of the bug with
51782         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
51783         Solaris releases, you should also use the tzset module, but we won't
51784         require it as a dependency any more since we don't want LGPLed code
51785         to depend on GPLed code.
51786
51787 2005-07-02  Jim Meyering  <jim@meyering.net>
51788
51789         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
51790         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
51791         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
51792         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
51793
51794 2005-07-02  Jim Meyering  <jim@meyering.net>
51795
51796         * lib/backupfile.c (backup_args): Change a `0' to NULL.
51797
51798 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51799
51800         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
51801         declares only 'struct timespec;' (!).
51802
51803 2005-07-01  Jim Meyering  <jim@meyering.net>
51804
51805         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
51806         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
51807         * lib/save-cwd.c, tempname.c:
51808         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
51809         and don't include <sys/file.h>).
51810
51811 2005-06-29  Jim Meyering  <jim@meyering.net>
51812
51813         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
51814         type name.  Use the variable name instead.
51815         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
51816         Likewise.
51817
51818 2005-06-28  Simon Josefsson  <jas@extundo.com>
51819
51820         * modules/check-version (Files): Add check-version.m4.
51821
51822 2005-06-28  Simon Josefsson  <jas@extundo.com>
51823
51824         * m4/check-version.m4: New file, suggested by Jim Meyering
51825         <jim@meyering.net>.
51826
51827 2005-06-28  Simon Josefsson  <jas@extundo.com>
51828
51829         * lib/check-version.h, lib/check-version.c: New files.
51830
51831 2005-06-28  Simon Josefsson  <jas@extundo.com>
51832
51833         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
51834         collision with global variable.  Better indentation.  Don't
51835         increment buffer pointer beyond buffer end.  Based on comments
51836         from Paul Eggert <eggert@cs.ucla.edu>.
51837
51838         * lib/base64.h: Indent.
51839
51840 2005-06-28  Simon Josefsson  <jas@extundo.com>
51841
51842         * doc/gnulib.texi (Library version handling): New section.
51843
51844 2005-06-28  Jim Meyering  <jim@meyering.net>
51845
51846         * check-module (find_included_lib_files): Hard-code another
51847         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
51848         but modules/fts-lgpl (correctly) does not list those files.
51849
51850         * modules/canonicalize (Files): Add lib/pathmax.h.
51851
51852 2005-06-25  Simon Josefsson  <jas@extundo.com>
51853
51854         * modules/check-version: New file.
51855
51856 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
51859         initializer of struct addrinfo, as an indication that we don't
51860         care how many members the structure has.
51861
51862 2005-06-24  Derek Price  <derek@ximbiot.com>
51863         and Bruno Haible  <bruno@clisp.org>
51864
51865         Remove stat module & update lstat.
51866         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
51867         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51868         * m4/stat.m4: Remove this file.
51869
51870 2005-06-24  Derek Price  <derek@ximbiot.com>
51871         and Bruno Haible  <bruno@clisp.org>
51872
51873         Remove stat module & update lstat.
51874         * lib/stat.c: Remove this file...
51875         (slash_aware_lstat): ...moving this content and its support...
51876         * lib/lstat.c (rpl_lstat): ...into here.
51877         * lib/lstat.h: New file.
51878
51879 2005-06-24  Derek Price  <derek@ximbiot.com>
51880         and Bruno Haible  <bruno@clisp.org>
51881
51882         Remove stat module & update lstat.
51883         * config/srclist.txt (libc sources): Remove stat.
51884
51885 2005-06-24  Derek Price  <derek@ximbiot.com>
51886         and Bruno Haible  <bruno@clisp.org>
51887
51888         Remove stat module & update lstat.
51889         * MODULES.html.sh (stat): Remove.
51890         * MODULES.html: Regenerated.
51891         * modules/lstat (Description): Correct function name.
51892         (Files): Add "lstat.h".
51893         (Depends-on): Remove stat, add xalloc, stat-macros.
51894         * modules/stat: Remove this file.
51895         (Include): Add "lstat.h", remove <sys/stat.h>.
51896
51897 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51898
51899         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
51900         (ranged_convert): Don't save conversion in a temporary struct.
51901         This causes a warning with GCC 4.0.0, and anyway in the typical
51902         case it's not worth the extra 100 bytes or so of code.
51903         (ranged_convert, __mktime_internal): When calling a function via a
51904         pointer P, use P () rather than (*P) (), as we now assume C89 or
51905         better.
51906
51907 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51908
51909         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
51910         "who -r" failed to give output.  Problem reported by Tim Waugh.
51911
51912         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
51913         (xcalloc): Use it to avoid needless tests.
51914         Problem reported by Jim Meyering.
51915
51916 2005-06-20  Derek Price  <derek@ximbiot.com>
51917
51918         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
51919         unnecessary for Autoconfs > 2.59c.
51920
51921 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51922
51923         * lib/argp.h (__option_is_short): Check upper limit of
51924         __key. Isprint() requires its argument to have the value
51925         of an unsigned char or EOF.
51926
51927 2005-06-16  Jim Meyering  <jim@meyering.net>
51928
51929         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
51930         when either N or S is zero.
51931
51932 2005-06-16  Derek Price  <derek@ximbiot.com>
51933
51934         * m4/bison.m4: Declare YACC & YFLAGS precious.
51935
51936 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
51939         multibyte string or pattern, fall back on unibyte matching.
51940         Problem reported by James Youngman.
51941
51942 2005-06-08  Bruno Haible  <bruno@clisp.org>
51943
51944         * modules/csharpcomp: New file.
51945         * MODULES.html.sh (C#): Add csharpcomp.
51946
51947 2005-06-08  Bruno Haible  <bruno@clisp.org>
51948
51949         * m4/csharpcomp.m4: New file, from GNU gettext.
51950
51951 2005-06-08  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/csharpcomp.h: New file, from GNU gettext.
51954         * lib/csharpcomp.c: New file, from GNU gettext.
51955         * lib/csharpcomp.sh.in: New file, from GNU gettext.
51956
51957 2005-06-08  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
51960         warning on mingw.
51961
51962 2005-06-07  Derek Price  <derek@ximbiot.com>
51963
51964         Sync from CVS.
51965         * lib/glob_.h: Indent nested #ifdef.
51966
51967 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         Sync from coreutils.
51970         Use "file name" when talking about file names, instead of "filename"
51971         or "path", as per the GNU coding standards.
51972         * lib/mkdir-p.c: Renamed from makepath.c.
51973         (make_dir_parents): Renamed from make_path.  All callers changed.
51974         * lib/mkdir-p.h: Likewise.  All includers changed.
51975         * lib/filenamecat.c: Renamed from path-concat.c.
51976         (file_name_concat): Renamed from path_concat.  All callers changed.
51977         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
51978         * lib/filenamecat.h: Likewise.  All includers changed.
51979         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
51980         in comments or local variable names.
51981         * lib/basename.c: Likewise.
51982         * lib/canonicalize.c, canonicalize.h: Likewise.
51983         * lib/dirname.c, dirname.h: Likewise.
51984         * lib/euidaccess.c: Likewise.
51985         * lib/exclude.c: Likewise
51986         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
51987         * lib/fsusage.c, fsuage.h: Likewise.
51988         * lib/fts.c, fts_.h: Likewise.
51989         * lib/getcwd.c: Likewise.
51990         * lib/getloadavg.c: Likewise.
51991         * lib/mkstemp.c: Likewise.
51992         * lib/mountlist.c, mountlist.h: Likewise.
51993         * lib/openat.c, openat.h: Likewise.
51994         * lib/readlink-stub.c: Likewise.
51995         * lib/readutmp.c, readutmp.h: Likewise.
51996         * lib/rename.c: Likewise.
51997         * lib/rmdir.c: Likewise.
51998         * lib/same.c: Likewise.
51999         * lib/savedir.c: Likewise.
52000         * lib/stripslash.c: Likewise.
52001         * lib/tempname.c: Likewise.
52002         * lib/xreadlink.c: Likewise.
52003         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52004         All uses changed.
52005         * lib/exclude.h: Likewise.
52006
52007         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52008         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52009         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52010         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52011         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52012         files have been getting away with it for years (MORE/BSD 4.3
52013         is extinct now).
52014         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52015         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52016
52017         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52018         Define to 256, not 255, as per modern POSIX.
52019
52020 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         Sync from coreutils.
52023         Use "file name" when talking about file names, instead of "filename"
52024         or "path", as per the GNU coding standards.
52025         * MODULES.html.sh: mkdir-p renamed from makepath.
52026         filenamecat renamed from path-concat.
52027         * modules/filenamecat: Renamed from modules/path-concat.
52028         (Files): filenamecat.h and filenamecat.c renamed from
52029         path-concat.h and path-concat.c.
52030         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52031         (Include): filenamecat.h, not path-concat.h.
52032         * modules/mkdir-p: Renamed from modules/makepath.
52033         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52034         makepath.c.
52035         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52036         (Include): mkdir-p.h, not makepath.h.
52037
52038 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         Sync from coreutils.
52041         * m4/mkdir-p.m4: Renamed from makepath.m4.
52042         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52043         Rename files from makepath.c to mkdir-p.c, and from
52044         makepath.h to mkdir-p.h.
52045         * m4/filenamecat.m4: Renamed from path-concat.m4.
52046         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52047         Rename files from path-concat.c to filenamecat.c,
52048         and from path-concat.h to filenamecat.h.
52049         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52050         "file name" in local variables or comments.
52051         * m4/rename.m4: Likewise.
52052
52053 2005-06-01  Bruno Haible  <bruno@clisp.org>
52054
52055         * modules/csharpexec: New file.
52056         * MODULES.html.sh (C#): New section.
52057
52058 2005-06-01  Bruno Haible  <bruno@clisp.org>
52059
52060         * m4/csharp.m4: New file, from GNU gettext.
52061         * m4/csharpexec.m4: New file, from GNU gettext.
52062
52063 2005-06-01  Bruno Haible  <bruno@clisp.org>
52064
52065         * lib/csharpexec.h: New file, from GNU gettext.
52066         * lib/csharpexec.c: New file, from GNU gettext.
52067         * lib/csharpexec.sh.in: New file, from GNU gettext.
52068
52069 2005-05-31  Derek Price  <derek@ximbiot.com>
52070             Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         Sync from cvs.
52073         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52074
52075 2005-05-31  Derek Price  <derek@ximbiot.com>
52076             Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         Sync from cvs.
52079         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52080
52081 2005-05-29  Derek Price  <derek@ximbiot.com>
52082
52083         * config/srclist.txt (glob_.h, glob.c): Add these files.
52084
52085 2005-05-29  Derek Price  <derek@ximbiot.com>
52086
52087         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52088         * modules/glob: New file.
52089         * modules/getlogin_r: Add link to POSIX spec in description.
52090
52091 2005-05-29  Derek Price  <derek@ximbiot.com>
52092             Paul Eggert  <eggert@cs.ucla.edu>
52093
52094         * m4/glob.m4: New file.
52095
52096 2005-05-29  Derek Price  <derek@ximbiot.com>
52097             Paul Eggert  <eggert@cs.ucla.edu>
52098
52099         * lib/glob_.h, lib/glob.c: New files.
52100
52101 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52102
52103         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52104         * modules/fts-lgpl (Depends-on): Remove gettext.
52105
52106 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52109         and don't require gt_INTTYPES_PRI.
52110
52111 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52112
52113         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52114
52115         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52116         the configuration hassle isn't worth it.
52117         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52118         (LONGEST_MODIFIER, PRIuMAX): Remove.
52119
52120 2005-05-27  Bruno Haible  <bruno@clisp.org>
52121
52122         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52123
52124 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52127         _POSIX_PTHREAD_SEMANTICS for Solaris.
52128
52129 2005-05-25  Derek Price  <derek@ximbiot.com>
52130
52131         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52132
52133 2005-05-25  Derek Price  <derek@ximbiot.com>
52134             Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52137         * lib/getlogin_r.c, getlogin_r.h: New files.
52138
52139 2005-05-25  Bruno Haible  <bruno@clisp.org>
52140             Derek Price  <derek@ximbiot.com>
52141
52142         * lib/getlogin_r.h: Simplify API documentation.
52143
52144 2005-05-23  Derek Price  <derek@ximbiot.com>
52145
52146         * modules/minmax (Files): Add m4/minmax.m4.
52147         (configure.ac): Add gl_MINMAX.
52148
52149 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52150
52151         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52152         so that unistd-safer.h (GPL'ed code) need not be included.
52153
52154 2005-05-22  Bruno Haible  <bruno@clisp.org>
52155
52156         * m4/minmax.m4: New file.
52157         Based on a patch by Derek Price <derek@ximbiot.com>.
52158
52159 2005-05-22  Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52162         (INT64_MIN): Fix definition.
52163         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52164
52165         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52166         NEED_SIGNED_INT_TYPES.
52167
52168         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52169         HAVE_SYSTEM_INTTYPES.
52170
52171 2005-05-22  Bruno Haible  <bruno@clisp.org>
52172
52173         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52174         Also include <sys/param.h> if it defines MIN, MAX.
52175         Based on a patch by Derek Price <derek@ximbiot.com>.
52176
52177 2005-05-21  Jim Meyering  <jim@meyering.net>
52178
52179         * modules/fts (Files): Add m4/inttypes-pri.m4.
52180         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52181
52182 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52183
52184         New fts module.
52185         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52186         (setup_dir, free_dir): New functions.
52187         (enter_dir, leave_dir): Define trivial
52188         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52189         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52190         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52191         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52192         Move to fts-cycle.c.
52193         (fts_open): Use setup_dir.
52194         (fts_close): Use free_dir.
52195         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52196         This adds a label and some gotos, but the alternatives were messier.
52197         Check for memory allocation failure when entering a dir.
52198         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52199         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52200         (FTS): New member fts_cycle, that is a union that contains the
52201         old active_dir_ht and cycle_state.  All uses changed to mention
52202         fts_cycle.ht and fts_cycle.state.
52203         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52204         fts.c, with the following changes:
52205         (setup_dir, free_dir): New functions.
52206         (enter_dir): Now returns bool.  Return true if successful, false
52207         if memory exhausted.  All callers changed.
52208         Do not bother partly cleaning up on
52209         memory allocation failure; that is free_dir's job.
52210         However, free ad if hash_insert fails, to avoid memory leak.
52211         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52212         fts->fts_options to see which union member to use.
52213
52214 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52215
52216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52217         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52218
52219 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52220
52221         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52222
52223 2005-05-20  Jim Meyering  <jim@meyering.net>
52224
52225         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52226         Now a macro, to pacify GCC.
52227
52228 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52229
52230         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52231         of -1.
52232
52233 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52234
52235         * lib/chown.c (rpl_chown): Return -1 on failure.
52236
52237 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52238
52239         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52240         Don't check for stddef.h.
52241         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52242         don't use its results.
52243         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52244         since we include them unconditionally.  Don't require
52245         AM_STDBOOL_H, since stdbool is a prerequisite.
52246         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52247         since we assume C89 or better.
52248         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52249         as we don't use their results.
52250         Don't check for fchdir, memmove, memset, strrchr, as we use
52251         them unconditionally.
52252         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52253         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52254
52255 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52256
52257         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52258         Include <stddef.h> unconditionally, since we assume C89 now.
52259         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52260         * lib/fts.c: Include fts_.h first, to check interface.
52261         Do not include intprops.h; no longer needed.
52262         Include cycle-check.h and hash.h, since fts_.h no longer does.
52263         Remove unnecessary casts of closedir to void.
52264         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52265         decide whether to decrement nlinks.
52266         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52267         (FTS): Use struct hash_table * instead of Hash_table, so that
52268         we no longer need to include hash.h here.
52269
52270 2005-05-18  Jim Meyering  <jim@meyering.net>
52271
52272         * modules/dirfd (License): Change to LGPL.  Most of the code
52273         is already in the public domain.
52274
52275 2005-05-18  Jim Meyering  <jim@meyering.net>
52276
52277         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52278         Reported by Yoann Vandoorselaere.
52279
52280 2005-05-17  Jim Meyering  <jim@meyering.net>
52281
52282         * m4/fts.m4: New file, from coreutils.
52283
52284 2005-05-17  Jim Meyering  <jim@meyering.net>
52285
52286         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52287
52288 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         Sync from coreutils.
52291         * m4/unlinkdir.m4: New file.
52292
52293 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52294
52295         Sync from coreutils.
52296         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52297         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52298         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52299         White space changes only.
52300         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52301         special.
52302         * lib/yesno.c: Include getline.h, not ctype.h.
52303         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52304         Use getline to remove arbitrary restriction on response length.
52305
52306 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * config/srclist-update: Spell out "Street" in FSF postal
52309         mail address; this is the style the FSF seems to prefer.
52310
52311         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52312         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52313         this updates FSF postal mail address.
52314
52315         Sync from coreutils.
52316         * modules/unlinkdir: New file.
52317         * modules/yesno (Depends-on): Add getline.
52318         * MODULES.html.sh (File system functions): Add unlinkdir.
52319
52320 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52323         lib/strsep.h:
52324         Change the initial comment to refer to GPL, not LGPL.
52325         gnulib-tool will change it to LGPL as needed.
52326
52327         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52328         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52329         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52330         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52331         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52332         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52333         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52334         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52335         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52336         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52337         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52338         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52339         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52340         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52341         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52342         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52343         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52344         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52345         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52346         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52347         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52348         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52349         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52350         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52351         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52352         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52353         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52354         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52355         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52356         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52357         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52358         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52359         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52360         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52361         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52362         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52363         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52364         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52365         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52366         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52367         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52368         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52369         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52370         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52371         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52372         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52373         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52374         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52375         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52376         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52377         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52378         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52379         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52380         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52381         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52382         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52383         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52384         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52385         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52386         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52387         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52388         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52389         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52390         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52391         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52392         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52393         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52394         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52395         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52396         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52397         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52398         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52399         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52400         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52401         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52402         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52403         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52404         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52405         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52406         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52407         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52408         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52409         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52410         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52411         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52412         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52413         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52414         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52415         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52416         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52417         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52418         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52419         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52420         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52421         lib/yesno.c, lib/yesno.h:
52422         Update FSF postal mail address.
52423
52424 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52425
52426         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52427         tests/test-memmem.c, tests/test-stpncpy.c:
52428         Update FSF postal mail address.
52429
52430 2005-05-13  Bruno Haible  <bruno@clisp.org>
52431
52432         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52433         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52434         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52435         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52436         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52437         Add support for 64-bit integers in the MSVC compiler.
52438
52439 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52440
52441         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52442
52443 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52444
52445         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52446
52447 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * doc/getdate.texi (General date syntax): Don't say that date
52450         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52451         Problem reported by Nic Ferrier.
52452
52453 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52454
52455         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52456         specified in ai_socktype. Fix invalid ai_protocol
52457         check. ai_protocol is usually set to 0 or depending on
52458         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52459         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52460         ai_socktype / ai_protocol in the returned addrinfo structure.
52461
52462 2005-05-10  Simon Josefsson  <jas@extundo.com>
52463
52464         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52465         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52466
52467 2005-05-10  Karl Berry  <karl@gnu.org>
52468
52469         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52470         (from http://www.gnu.org/licenses).
52471         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52472         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52473         fdl.texi suffices.
52474
52475 2005-05-10  Karl Berry  <karl@gnu.org>
52476
52477         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52478         (COPYING.DOC): remove.
52479
52480         * config/srclist-update: new FSF address.
52481
52482 2005-05-10  Derek Price  <derek@ximbiot.com>
52483
52484         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52485         possible.
52486
52487 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52488             Bruno Haible  <bruno@clisp.org>
52489
52490         * modules/inet_ntop: New file.
52491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52492         inet_ntop.
52493
52494 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52495             Bruno Haible  <bruno@clisp.org>
52496
52497         * m4/inet_ntop.m4: New file.
52498
52499 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52500             Bruno Haible  <bruno@clisp.org>
52501
52502         * lib/inet_ntop.h: New file.
52503         * lib/inet_ntop.c: New file, from glibc with modifications.
52504
52505 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52506
52507         * modules/time_r (License): Change to LGPL.
52508         * modules/extensions (License): Change to LGPL.  Actually,
52509         the license is more permissive than that, but currently gnulib-tool
52510         doesn't know how to handle more-permissive licenses.
52511
52512         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52513         Problem reported by Dave Love.
52514
52515 2005-05-08  Jim Meyering  <jim@meyering.net>
52516
52517         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52518         blank.
52519
52520 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52521
52522         * modules/argmatch (Depends-on): Add stdbool.
52523         * modules/backupfile (Depends-on): Likewise.
52524         * modules/chdir-long (Depends-on): Likewise.
52525         * modules/closeout (Depends-on): Likewise.
52526         * modules/cycle-check (Depends-on): Likewise.
52527         * modules/dirname (Depends-on): Likewise.
52528         * modules/fnmatch (Depends-on): Likewise.
52529         * modules/fsusage (Depends-on): Likewise.
52530         * modules/fwriteerror (Depends-on): Likewise.
52531         * modules/getcwd (Depends-on): Likewise.
52532         * modules/getloadavg (Depends-on): Likewise.
52533         * modules/hard-locale (Depends-on): Likewise.
52534         * modules/makepath (Depends-on): Likewise.
52535         * modules/mountlist (Depends-on): Likewise.
52536         * modules/nanosleep (Depends-on): Likewise.
52537         * modules/posixtm (Depends-on): Likewise.
52538         * modules/quotearg (Depends-on): Likewise.
52539         * modules/readtokens (Depends-on): Likewise.
52540         * modules/readtokens0 (Depends-on): Likewise.
52541         * modules/readutmp (Depends-on): Likewise.
52542         * modules/save-cwd (Depends-on): Likewise.
52543         * modules/strftime (Depends-on): Likewise.
52544         * modules/userspec (Depends-on): Likewise.
52545         * modules/utimecmp (Depends-on): Likewise.
52546         * modules/xgetcwd (Depends-on): Likewise.
52547         * modules/xnanosleep (Depends-on): Likewise.
52548         * modules/xstrtod (Depends-on): Likewise.
52549         * modules/yesno (Depends-on): Likewise.
52550
52551 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52554         needless checks.
52555
52556 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         Merge from coreutils.  Among other things,
52559         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52560         * lib/fd-safer.c: New file.
52561         * lib/fcntl-safer.h, open-safer.c: Remove.
52562         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52563         * lib/dup-safer.c: Include unistd-safer.h first.
52564         Don't include errno.h.
52565         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52566         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52567         * lib/file-type.c: Rely on file-type.h change.
52568         * lib/getloadavg.c: Include unistd-safer.h.
52569         (getloadavg): Use safer open.
52570         * lib/getusershell.c: Include "stdio-safer.h".
52571         (getusershell): Use safer fopen.
52572         * lib/long-options.c (long_options): Use NULL rather than 0.
52573         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52574         'free'.
52575         * lib/modechange.c: Likewise.
52576         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52577         (MODE_DONE): New constant.
52578         (struct mode_change): Remove 'next' member.
52579         (make_node_op_equals): New function; like the old one of the
52580         same name, except it allocates an array.
52581         (mode_compile, mode_create_from_ref): Use it.
52582         (mode_compile): Allocate result as an array, not a linked list.
52583         Parse octal string ourself, so that we catch mistakes like "+0".
52584         (mode_adjust): Arg is an array, not a linked list.
52585         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52586         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52587         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52588         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52589         Remove.  This is now stat-macros.h's job.
52590         (talloc): Remove.  All callers replaced by xalloc, so that
52591         our invokers don't have to worry about reporting memory failures.
52592         (make_node_op_equals): Remove.
52593         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52594         New constants.
52595         (struct mode_change): Moved here from modechange.h.
52596         (mode_append_entry): Remove.
52597         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52598         apps to have incorrect behavior.  Use simpler algorithm for head
52599         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52600         Detect more invalid usages rather than having somewhat-random behavior.
52601         Don't insert an "a=" action, as that leads to incorrect behavior.
52602         (mode_compile, mode_create_from_ref): Return NULL on error instead
52603         of an enum, since now there's only one way to have an error.  All
52604         callers changed.
52605         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52606         at the correct time.  Simplify calculation of "+u" and its ilk.
52607         Don't mishandle "+X".
52608         (mode_free): Remove "register" and localize decls.
52609         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52610         (struct mode_change): Move to modechange.c; callers don't
52611         need to see this stuff.
52612         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52613         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52614         (mode_change, mode_adjust): Reflect the new signatures noted above.
52615         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52616         that might redefine system include files.
52617         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
52618         (my_usleep): Use NULL rather than (void *) 0.
52619         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
52620         Use siginterrupt to specify that system calls should be interrupted.
52621         (rpl_nanosleep): Move initialization of suspended closer to call of
52622         my_usleep.
52623         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
52624         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
52625         (desirable_utmp_entry): New function.
52626         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
52627         using x2nrealloc, to simplify logic.
52628         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
52629         size calculation.  Do not assume utmp file is a regular file.
52630         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
52631         (READ_UTMP_CHECK_PIDS): New constant.
52632         * lib/save-cwd.c: Include unistd-safer.h.
52633         (save_cwd): Use fd_safer.
52634         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
52635         [!_LIBC] Include "stat-macros.h" instead.
52636         * lib/unistd-safer.h (fd_safer): New decl.
52637
52638 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52639
52640         * modules/getloadavg (Depends-on): Add unistd-safer.
52641         * modules/getusershell (Depends-on): Add stdio-safer.
52642         * modules/lstat (Depends-on): Remove xalloc.
52643         * modules/mkstemp (Depends-on): Add stat-macros.
52644         * modules/modechange (Depends-on): Remove xstrtol.
52645         Add stat-macros, xalloc.
52646         * modules/save-cwd (Depends-on): Add unistd-safer.
52647         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
52648         * modules/unistd-safer (Files): Add lib/fd-safer.c
52649         (Makefile.am): Remove lib_SOURCES.
52650
52651         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
52652         Remove fcntl-safer; unistd-safer supersedes it.
52653
52654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
52657         AC_HEADER_STAT.
52658         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
52659         (gl_PREREQ_CHOWN): Remove.
52660         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
52661         it.  Don't require AC_HEADER_STAT.
52662         (gl_PREREQ_LSTAT): Remove.
52663         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
52664         Don't require AC_HEADER_STAT.
52665         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
52666         (gl_PREREQ_RMDIR): Remove.
52667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
52668         mention stat-macros.h or AC_HEADER_STAT, since we'll make
52669         the stat-macros module a prerequisite.
52670         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
52671         * m4/filemode.m4 (gl_FILEMODE): Likewise.
52672         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
52673         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
52674         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
52675         variable names.
52676         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
52677         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
52678         variable prefixes.
52679         * m4/fcntl-safer.m4: Remove.
52680         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
52681         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
52682         Invoke gl_PREREQ_FD_SAFER.
52683         (gl_PREREQ_FD_SAFER): New macro.
52684         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
52685         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
52686         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
52687         Remove duplicate call to AC_LIBOBJ(readutmp).
52688         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
52689
52690         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
52691         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
52692
52693 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52694
52695         * MODULES.html.sh (Misc): Add byteswap.
52696
52697 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52698
52699         * modules/getcwd (Depends-on): Add extensions.
52700         * modules/openat (Depends-on): Likewise.
52701
52702 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52703
52704         * modules/byteswap: New file.
52705
52706 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52707
52708         * m4/byteswap.m4: New file.
52709
52710 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
52711
52712         * lib/byteswap_.h: New file.
52713
52714 2005-04-25  Karl Berry  <karl@gnu.org>
52715
52716         * m4/gettext.m4: Update from GNU gettext 0.14.4.
52717
52718 2005-04-25  Albert Chin  <china@thewrittenword.com>
52719
52720         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
52721         Toolkit C bug.
52722
52723 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
52724
52725         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
52726         (func_ln_if_changed) Remove forcibly for no error message
52727         in case file does not exist.
52728
52729 2005-04-19  Simon Josefsson  <jas@extundo.com>
52730
52731         * gnulib-tool (Options): Make --symlink mean --symbolic.
52732
52733 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
52734
52735         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
52736
52737 2005-04-16  Simon Josefsson  <jas@extundo.com>
52738
52739         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
52740
52741 2005-04-15  Simon Josefsson  <jas@extundo.com>
52742
52743         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
52744
52745 2005-04-15  Simon Josefsson  <jas@extundo.com>
52746
52747         * gnulib-tool: Rename --symlink to --symbolic.
52748
52749 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
52750
52751         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
52752         symbolic links to files instead of copying/moving.  Add --aux-dir,
52753         specifying directory relative --dir where auxiliary build tools
52754         are placed.
52755
52756 2005-04-14  Bruno Haible  <bruno@clisp.org>
52757
52758         * modules/allocsa (License): Change to LGPL.
52759         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52760
52761 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52762
52763         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
52764         that "UTC +1 second" continues to work.  Problem reported
52765         by Dmitry V. Levin.
52766         (relunit_snumber): New rule.
52767         (relunit): Use it.
52768
52769 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * lib/getdate.y (universal_time_zone_table): New constant.
52772         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
52773         universal_time_zone_table.
52774         (lookup_zone): Prefer universal_time_zone_table to
52775         local_time_zone_table, so that "GMT" time stamps are allowed in
52776         London during the summer.  Problem reported by Ian Abbott.
52777
52778 2005-04-12  Jim Meyering  <jim@meyering.net>
52779
52780         * lib/human.c (humblock): Set *options even when returning due to
52781         xstrtoumax conversion failure.  Thanks to a used-uninitialized
52782         warning from gcc-4.
52783
52784 2005-04-09  Jim Meyering  <jim@meyering.net>
52785
52786         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
52787         -Wuninitialized: initialize tm0.tm_year.
52788
52789 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
52790
52791         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
52792         count, since there's no maximum.  All uses changed.
52793         Add member dsts_seen.
52794         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
52795         not being INT_MAX.
52796         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
52797         Use pc_rels_seen to decide whther a date is absolute.
52798
52799         * lib/getdate.y (number): Don't overwrite year.
52800         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
52801         check.
52802
52803 2005-04-02  Simon Josefsson  <jas@extundo.com>
52804
52805         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
52806         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
52807
52808 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
52809
52810         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
52811         where no absolute path name can be longer than PATH_MAX.
52812
52813 2005-03-27  Jim Meyering  <jim@meyering.net>
52814
52815         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
52816
52817 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
52820         "one's complement" -> "ones' complement" in comment, as per Knuth.
52821         "value of type" -> "type or expression" in comment.
52822         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
52823
52824 2005-03-26  Jim Meyering  <jim@meyering.net>
52825
52826         Comment nits.
52827         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
52828         Correct typos: s/or/of/.
52829
52830 2005-03-26  Jim Meyering  <jim@meyering.net>
52831
52832         * modules/check-include-files: Move to ../ and rename to...
52833         * check-module: ...this.
52834
52835 2005-03-25  Jim Meyering  <jim@meyering.net>
52836
52837         * modules/xvasprintf (Files): Add xalloc.h.
52838
52839 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * modules/gettext (Files): config/config.rpath ->
52842         build-aux/config.rpath
52843         * modules/iconv (Files): Likewise.
52844         Problem reported by Oskar Liljeblad.
52845
52846 2005-03-23  Jim Meyering  <jim@meyering.net>
52847
52848         * modules/check-include-files: New script to check for
52849         missing dependencies, multiple includes, etc.
52850
52851         * modules/c-strtold (Depends-on): Add xalloc.
52852         * modules/c-strtod (Depends-on): Add xalloc.
52853         * modules/hash (Depends-on): Add xalloc.
52854         (Files): Remove lib/xalloc.h.
52855
52856         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
52857         * modules/userspec (Files): Add lib/inttostr.h.
52858
52859 2005-03-23  Jim Meyering  <jim@meyering.net>
52860
52861         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
52862
52863 2005-03-22  Jim Meyering  <jim@meyering.net>
52864
52865         * modules/stat-macros: New module.
52866         * modules/canonicalize, modules/euidaccess, modules/file-type,
52867         * modules/filemode, modules/lchown, modules/makepath,
52868         * modules/rmdir, modules/stat: Depend on new stat-macros module
52869         rather than listing lib/stat-macros.h manually.
52870         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
52871
52872 2005-03-22  Jim Meyering  <jim@meyering.net>
52873
52874         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
52875
52876 2005-03-22  Bruno Haible  <bruno@clisp.org>
52877
52878         * config/srclist.txt: Replace target directory 'config' with
52879         'build-aux'.
52880         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
52881         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
52882         ../build-aux/.
52883
52884 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * modules/chdir-long (Depends-on): Add mempcpy.
52887
52888         * modules/acl, modules/backupfile, modules/c-strtod,
52889         modules/c-strtold, modules/canon-host, modules/canonicalize,
52890         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
52891         modules/exclude, modules/exitfail, modules/file-type,
52892         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
52893         modules/getdate, modules/getline, modules/getpagesize,
52894         modules/getpass, modules/getugroups, modules/group-member,
52895         modules/hard-locale, modules/hash, modules/human, modules/idcache,
52896         modules/inttostr, modules/long-options, modules/makepath,
52897         modules/md5, modules/memcasecmp, modules/memcoll,
52898         modules/modechange, modules/mountlist, modules/path-concat,
52899         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
52900         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
52901         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
52902         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
52903         modules/strftime, modules/strndup, modules/strverscmp,
52904         modules/timespec, modules/unlocked-io, modules/userspec,
52905         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
52906         modules/yesno:
52907         Remove lib_SOURCES line from Makefile.am section, as this is now
52908         done automatically by the corresponding Autoconf macro.
52909
52910 2005-03-21  Jim Meyering  <jim@meyering.net>
52911
52912         Changes imported from coreutils.
52913
52914         * lib/cycle-check.c: Don't include xalloc.h.
52915
52916         * lib/path-concat.c: Don't include assert.h.
52917         (path_concat): Remove assertion that would have triggered
52918         for ABASE starting with more than one slash.
52919         Reported by Andreas Schwab.
52920
52921         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
52922         properly when ABASE is an absolute file name.
52923         Correct the description of this function.
52924         Include <assert.h>.
52925         Add an assertion and a test driver.
52926         This fixes a bug introduced on 2004-07-02.
52927         Andreas Schwab reported the resulting failure of cp --parents:
52928         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
52929
52930 2005-03-21  Jim Meyering  <jim@meyering.net>
52931
52932         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
52933         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
52934
52935 2005-03-21  Jim Meyering  <jim@meyering.net>
52936         and  Paul Eggert  <eggert@cs.ucla.edu>
52937
52938         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
52939         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
52940         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
52941         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
52942         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
52943         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
52944         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
52945         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
52946         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
52947         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
52948         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
52949         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
52950         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
52951         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
52952         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
52953         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
52954         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
52955         for these modules.
52956
52957 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
52960         (which shouldn't happen), generate nothing instead of returning 0
52961         immediately, so that nstrftime (NULL, ...) doesn't return 0.
52962
52963 2005-03-16  Bruno Haible  <bruno@clisp.org>
52964
52965         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
52966         HAVE_LONGLONG_64BIT.
52967
52968 2005-03-16  Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
52971         HAVE_LONGLONG_64BIT.
52972
52973 2005-03-16  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
52976         HAVE_LONGLONG_64BIT.
52977
52978 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52979
52980         * lib/strftime.c (my_strftime): Prepend space to format so that we can
52981         reliably distinguish strftime failure from empty output on POSIX
52982         hosts.
52983
52984 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
52985
52986         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
52987         (iconv_string): Don't guess a size-zero buffer, as that might cause
52988         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
52989         result would be 'too large', where 'too large' is (heuristically)
52990         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
52991         overflow concerns.  This will prevent some unwanted malloc failures
52992         when the inputs are very large.
52993
52994 2005-03-15  Karl Berry  <karl@gnu.org>
52995
52996         * config/srclist.txt (config.rpath): from gettext.
52997         * config/config.rpath: update.
52998
52999 2005-03-15  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53002         to 'negate'.
53003
53004         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53005         variable.
53006
53007         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53008         results.
53009
53010 2005-03-14  Simon Josefsson  <jas@extundo.com>
53011
53012         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53013         <fx@gnu.org>.
53014
53015 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53018         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53019         intprops.h.
53020         * lib/strtol.c: Likewise.
53021
53022 2005-03-14  Jim Meyering  <jim@meyering.net>
53023
53024         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53025         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53026         to be nonzero so that we (and caller) can detect the difference
53027         between a valid zero-length expansion and an error return, even
53028         when the underlying strftime fails before writing anything into
53029         that location.
53030
53031 2005-03-14  Bruno Haible  <bruno@clisp.org>
53032
53033         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53034         Update from GNU gettext 0.14.3.
53035
53036 2005-03-10  Jim Meyering  <jim@meyering.net>
53037
53038         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53039
53040 2005-03-10  Jim Meyering  <jim@meyering.net>
53041
53042         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53043         so that this module works on systems without fchdir.
53044
53045 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53046
53047         Factor int-properties macros into a single file, except for
53048         glibc-related files.
53049         * lib/intprops.h: New file.
53050         * lib/getloadavg.c: Include it instead of limits.h.
53051         (INT_STRLEN_BOUND): Remove.
53052         * lib/human.c: Include intprops.h.
53053         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53054         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53055         302/1000.
53056         * lib/inttostr.h: Include intprops.h instead of limits.h.
53057         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53058         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53059         for consistency with intprops.h.
53060         (time_t_is_integer, twos_complement_arithmetic): Use them.
53061         * lib/sig2str.h: Include <signal.h>, intprops.h.
53062         (INT_STRLEN_BOUND): Remove.
53063         * lib/strftime.c (TYPE_SIGNED): Remove.
53064         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53065         * lib/strtol.c: Adjust comments to match intprops.h.
53066         * lib/userspec.c: Include intprops.h.
53067         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53068         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53069         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53070         instead of rolling our own expressions.
53071         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53072
53073         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53074         instead of int.
53075         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53076         the right thing even if adding 1900 would overflow.  Similarly
53077         for tm_mon + 1 and tm_yday + 1.
53078         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53079         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53080         (DO_SIGNED_NUMBER): New macro.
53081         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53082
53083 2005-03-07  Bruno Haible  <bruno@clisp.org>
53084
53085         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53086
53087 2005-03-07  Bruno Haible  <bruno@clisp.org>
53088
53089         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53090
53091 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53092
53093         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53094         (func_import): Only replace files via --import when they have actually
53095         changed.
53096
53097 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53098
53099         * m4/mmap-anon.m4: New file.
53100         * m4/pagealign_alloc.m4: New file.
53101
53102 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53103             Bruno Haible  <bruno@clisp.org>
53104
53105         * modules/pagealign_alloc: New file.
53106         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53107
53108 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53109             Bruno Haible  <bruno@clisp.org>
53110
53111         * lib/pagealign_alloc.h: New file.
53112         * lib/pagealign_alloc.c: New file.
53113
53114 2005-03-03  Bruno Haible  <bruno@clisp.org>
53115
53116         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53117         Use an all-permissive copyright notice, recommended by RMS.
53118
53119 2005-03-02  Bruno Haible  <bruno@clisp.org>
53120
53121         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53122         of AIX, the replacement has to be done only after <string.h> is
53123         included, therefore not in config.h. stpncpy.h does the replacement,
53124         and stpncpy.c uses it.
53125
53126 2005-03-02  Bruno Haible  <bruno@clisp.org>
53127
53128         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53129         stpncpy.c uses it.
53130
53131 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53134         The workaround isn't strictly needed for POSIX conformance, and
53135         it's too much of a pain to configure and maintain.  We'll ask
53136         people to fix their kernels instead.
53137         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53138         (NANOSLEEP_BUG_WORKAROUND): Remove.
53139         (xnanosleep): Remove the workaround.
53140
53141 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53144         Reported by Derek Price.
53145         (Include): Add "timespec.h".
53146
53147         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53148
53149 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53150
53151         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53152         to detect nanosleep bug.
53153
53154 2005-03-01  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53157
53158 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * modules/gethrxtime: New file.
53161         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53162         (Depends-on): Add gethrxtime.
53163         (configure.ac): Add gl_XNANOSLEEP.
53164         (Makefile.am): Remove lib_SOURCES line.
53165
53166 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53169         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53170
53171 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53172
53173         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53174         * lib/timespec.h (gettime): Return void, since it always
53175         succeeds now.  All uses changed.
53176         * lib/gettime.c (gettime) Likewise.
53177         [HAVE_NANOTIME]: Prefer nanotime.
53178         Assume gettimeofday succeeds, as POSIX requires.
53179         Assime time () succeeds, since other code already does.
53180         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53181         (timespec_subtract): Remove.
53182         (NANOSLEEP_BUG_WORKAROUND): New constant.
53183         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53184         things considerably.  Use it only on GNU/Linux hosts, since the
53185         workaround shouldn't be needed elsewhere.
53186
53187 2005-02-24  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/gettext (Files): Add m4/glibc2.m4.
53190
53191 2005-02-24  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53194         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53195         * m4/progtest.m4:
53196         Update from GNU gettext 0.14.2.
53197         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53198
53199 2005-02-24  Bruno Haible  <bruno@clisp.org>
53200
53201         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53202         * lib/config.charset: Update from GNU gettext 0.14.2.
53203
53204 2005-02-24  Bruno Haible  <bruno@clisp.org>
53205
53206         * lib/gettext.h: Update from GNU gettext 0.14.2.
53207
53208 2005-02-23  Simon Josefsson  <jas@extundo.com>
53209
53210         * m4/iconvme.m4: New file.
53211
53212 2005-02-23  Jim Meyering  <jim@meyering.net>
53213
53214         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53215         change.
53216         Thanks to Bruno Haible for catching it.
53217
53218 2005-02-22  Simon Josefsson  <jas@extundo.com>
53219
53220         * modules/iconvme: New file.
53221
53222         * MODULES.html.sh: Add iconvme.
53223
53224 2005-02-22  Simon Josefsson  <jas@extundo.com>
53225
53226         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53227
53228 2005-02-22  Simon Josefsson  <jas@extundo.com>
53229
53230         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53231
53232 2005-02-22  Jim Meyering  <jim@meyering.net>
53233
53234         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53235         s/ifndef/ifdef/.
53236
53237 2005-02-20  Neil Conway  <neilc@samurai.com>
53238
53239         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53240         returned by OSX/Darwin if the specified buffer is not large
53241         enough for the hostname.
53242
53243 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53244
53245         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53246         pass it to _help, otherwise the latter coredumps trying to
53247         dereference state.root_argp.
53248
53249 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * modules/chdir-long (Depends-on): Add memrchr.
53252         * modules/memrchr (Files): Add lib/memrchr.h.
53253         (Include): "memrchr.h".
53254
53255 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53258
53259 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         * lib/memrchr.h: New file.
53262         * lib/chdir-long.c: Include it.
53263         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53264         Don't bother including stddef.h.
53265
53266 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53269         inclusion.
53270         Include <sys/types.h>, for dev_t.
53271         (ME_DUMMY, ME_REMOTE): Move from here....
53272         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53273         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53274         Dmitry V. Levin.
53275         Include mountlist.h first, to test the interface.
53276
53277 2005-01-29  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/progname.c (program_name): Initialize.
53280         Needed when linking statically on MacOS X.
53281
53282 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53283
53284         Sync from coreutils.
53285         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53286         (Depends-on): Add c-strtod.
53287         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53288
53289 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         Sync from coreutils.
53292         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53293
53294         Remove files that are specific to coreutils.
53295         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53296
53297 2005-01-28  Bruno Haible  <bruno@clisp.org>
53298
53299         * modules/javacomp: New file.
53300         * MODULES.html.sh (Java): Add javacomp.
53301
53302 2005-01-28  Bruno Haible  <bruno@clisp.org>
53303
53304         * m4/javacomp.m4: New file, from GNU gettext.
53305
53306 2005-01-28  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/javacomp.sh.in: New file, from GNU gettext.
53309         * lib/javacomp.h: New file, from GNU gettext.
53310         * lib/javacomp.c: New file, from GNU gettext.
53311
53312 2005-01-26  Simon Josefsson  <jas@extundo.com>
53313
53314         * lib/gai_strerror.c: Use GPL in header.
53315
53316 2005-01-26  Bruno Haible  <bruno@clisp.org>
53317
53318         * modules/javaexec: New file.
53319         * MODULES.html.sh (Java): Add javaexec.
53320
53321 2005-01-26  Bruno Haible  <bruno@clisp.org>
53322
53323         * m4/javaexec.m4: New file, from GNU gettext.
53324
53325 2005-01-26  Bruno Haible  <bruno@clisp.org>
53326
53327         * lib/javaexec.sh.in: New file, from GNU gettext.
53328         * lib/javaexec.h: New file, from GNU gettext.
53329         * lib/javaexec.c: New file, from GNU gettext.
53330
53331 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53332
53333         * modules/lchown (Depends-on): Remove lchown.h
53334
53335 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53336
53337         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53338         must be defined if the header file was not found, in order
53339         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53340
53341 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53342
53343         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53344         initializers for struct pentry_state.
53345         (__argp_error): Check return value of __asprintf
53346         (__argp_failure): Translate error message
53347
53348         * lib/argp-parse.c: Removed braces around the expansion of N_()
53349
53350 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53351
53352         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53353         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53354         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53355         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53356         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53357         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53358         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53359         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53360         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53361         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53362         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53363         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53364         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53365         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53366         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53367         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53368         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53369         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53370         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53371         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53372         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53373         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53374         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53375         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53376         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53377         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53378         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53379         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53380         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53381         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53382         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53383         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53384         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53385         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53386         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53387         Use an all-permissive copyright notice, recommended by RMS.
53388
53389 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53390
53391         * modules/chdir-long (Depends-on): Remove mempcpy.
53392
53393 2005-01-21  Jim Meyering  <jim@meyering.net>
53394
53395         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53396         same value as for Solaris 9.
53397
53398         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53399         component length.  This included changing the parameter to be
53400         of type `char *' rather than `char const *'.
53401         * lib/chdir-long.h (chdir_long): Update prototype.
53402
53403         * lib/openat.c (fdopendir, fstatat): New functions.
53404         * lib/openat.h: Include headers required for use of DIR and struct
53405         stat.
53406         [AT_SYMLINK_NOFOLLOW]: Define.
53407         (fdopendir, fstatat): Add prototypes.
53408
53409 2005-01-21  Bruno Haible  <bruno@clisp.org>
53410
53411         * modules/classpath: New file.
53412         * MODULES.html.sh (Java): Add classpath.
53413
53414 2005-01-21  Bruno Haible  <bruno@clisp.org>
53415
53416         * lib/classpath.h: New file, from GNU gettext.
53417         * lib/classpath.c: New file, from GNU gettext.
53418
53419 2005-01-20  Simon Josefsson  <jas@extundo.com>
53420
53421         * modules/version-etc-fsf: New file.
53422
53423 2005-01-20  Simon Josefsson  <jas@extundo.com>
53424
53425         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53426         * lib/version-etc.c: Remove version_etc_copyright.
53427         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53428         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53429
53430 2005-01-20  Simon Josefsson  <jas@extundo.com>
53431
53432         * lib/base64.h (isbase64): Add.
53433
53434         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53435         using a unsigned prototype, don't inline.
53436         (base64_decode): Use it.
53437
53438 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53439
53440         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53441         it.
53442
53443 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * lib/save-cwd.c (save_cwd): Remove code to support the case
53446         where fchdir is missing or flaky.
53447
53448 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53451
53452 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53453
53454         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53455         AC_LIBSOURCES now does this.
53456         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53457         with new ullong_max module.
53458
53459 2005-01-19  Bruno Haible  <bruno@clisp.org>
53460
53461         * modules/sh-quote: New file.
53462         * MODULES.html.sh (Executing programs): Add sh-quote.
53463
53464 2005-01-19  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/sh-quote.h: New file, from GNU gettext.
53467         * lib/sh-quote.c: New file, from GNU gettext.
53468
53469 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         Merge from coreutils.
53472         * m4/ullong_max.m4: New file.
53473         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53474         (gl_MACROS): Assume localeconv exists.
53475
53476 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         Merge changes from coreutils, as described below in several
53479         changelogs dated today.
53480
53481         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53482         (O_DIRECTORY): Remove; not needed here, since "." must be
53483         a directory.  All uses removed.
53484         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53485         universal on Suns, and we also need to test for IRIX.
53486         Revamp code to use 'if' rather than '#if'.
53487         Avoid unnecessary comparison of cwd->desc to 0.
53488
53489         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53490         for known valid error numbers rather than observed invalid ones.
53491
53492 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53493
53494         * modules/ullong_max: New file.
53495
53496         * modules/chdir-long, modules/openat: New files.
53497         * modules/save-cwd (Depends-on): Depend on chdir-long.
53498         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53499
53500 2005-01-18  Jim Meyering  <jim@meyering.net>
53501
53502         Merge from coreutils.
53503         * m4/chdir-long.m4, m4/openat.m4: New files.
53504         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53505         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53506         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53507         is sane and DOES follow symlinks.  Besides, testing 20 different
53508         systems found no broken chown implementations.
53509         Prompted by a change in rsync's copy of this macro.
53510         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53511
53512         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53513
53514         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53515         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53516         NULL-means-set-to-current-time semantics.
53517         Remove temporary file immediately, rather than waiting
53518         for configure's at-exit trap code to do it.
53519
53520 2005-01-18  Jim Meyering  <jim@meyering.net>
53521
53522         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53523
53524         * lib/utimens.c (futimens): Account for the fact that futimes
53525         can also fail with errno == ENOSYS or errno == ENOENT.
53526         Patch from Dmitry V. Levin.
53527
53528         Change the name of the robust chdir function from chdir to chdir_long.
53529         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53530         (restore_cwd): Use chdir_long, not chdir.
53531         * lib/chdir-long.c: Renamed from chdir.c.
53532         * lib/chdir-long.h: Renamed from chdir.h.
53533         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53534         Hurd.
53535
53536 2005-01-18  Bruno Haible  <bruno@clisp.org>
53537
53538         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53539         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53540         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53541         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53542         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53543         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53544         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53545         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53546         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53547         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53548         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53549         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53550         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53551         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53552         Use an all-permissive copyright notice, recommended by RMS.
53553
53554 2005-01-18  Bob Proulx  <bob@proulx.com>
53555
53556         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53557         simplify offsetof() macro construct to avoid compile failure with
53558         native HP-UX 11.0 ANSI C compiler.
53559
53560 2005-01-17  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53563         redundant because stpncpy.m4 takes care of it.
53564
53565 2005-01-17  Bruno Haible  <bruno@clisp.org>
53566
53567         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53568
53569 2005-01-17  Bruno Haible  <bruno@clisp.org>
53570
53571         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53572         used.
53573
53574 2005-01-17  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/fwriteerror.h (fwriteerror): Change specification to include
53577         fclose.
53578         * lib/fwriteerror.c: Include <stdbool.h>.
53579         (fwriteerror): At the end, close the file stream. Record whether
53580         stdout was already closed.
53581
53582 2005-01-17  Bruno Haible  <bruno@clisp.org>
53583
53584         * lib/execute.c (environ): Declare if needed.
53585         * lib/pipe.c (environ): Likewise.
53586         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53587
53588 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53589
53590         * modules/argp: Depend on vsnprintf
53591
53592 2005-01-10  Jim Meyering  <jim@meyering.net>
53593
53594         * modules/closeout (Depends-on): Add atexit.
53595
53596 2005-01-06  Bruno Haible  <bruno@clisp.org>
53597
53598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53599
53600 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53603         definitions to be after all include files, to avoid collisions.
53604         Problem reported by Bob Proulx.
53605
53606 2005-01-04  Jim Meyering  <jim@meyering.net>
53607
53608         Changes imported from coreutils.
53609         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53610         as the mkstemp template, use a temporary directory and an
53611         8.3-friendly template to avoid trouble on systems like DJGPP.
53612         Reported by Juan M. Guerrero via Stepan Kasal.
53613         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53614         close. Remove the temporary directory right away, rather than waiting
53615         for configure's at-exit trap code to do it.
53616         Suggestion from Stepan Kasal.
53617
53618 2005-01-01  Simon Josefsson  <jas@extundo.com>
53619
53620         * gnulib-tool: Print #include directives when --import'ing.
53621
53622 2004-12-28  Simon Josefsson  <jas@extundo.com>
53623
53624         * tests/test-base64.c: Include required header files.  Remove
53625         unused variables.
53626
53627 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53628
53629         * modules/error (Depends-on): Remove gettext.
53630
53631 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
53632
53633         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
53634         not needed.  This removes a dependency on the gettext module.
53635         [defined _LIBC]: Do not include <libintl.h>; not needed.
53636
53637 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
53640         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
53641
53642 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
53643
53644         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
53645         HAVE_DECL_STRTOLD.
53646
53647 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         * modules/getdate (Depends-on): Remove alloca-opt.
53650
53651 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53652
53653         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
53654
53655 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
53656
53657         * lib/argp-parse.c: Include <stddef.h>.
53658         (alignof, alignto): New macros.
53659         (parser_init): Don't assume that void * is aligned sufficiently
53660         for struct option.
53661
53662         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
53663         need to extend the stack.
53664         (YYINITDEPTH): New macro, so that the initial stack isn't overly
53665         large.
53666
53667 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53668
53669         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
53670
53671 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
53674         (2004-10-24) change.  Apparently this was a false alarm.
53675
53676         * modules/getdate: Depend on alloca-opt, not alloca.
53677
53678 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
53681         Remove now-obsolete comment about AIX.
53682         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
53683         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
53684         (YYMAXDEPTH): New macro.
53685
53686 2004-12-18  Simon Josefsson  <jas@extundo.com>
53687
53688         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
53689
53690 2004-12-18  Bruno Haible  <bruno@clisp.org>
53691
53692         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
53693
53694 2004-12-18  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/fatal-signal.c (fatal_signals): Make non-const.
53697         (init_fatal_signals): New function.
53698         (uninstall_handlers, install_handlers): Ignore signals that were set to
53699         SIG_IGN.
53700         (at_fatal_signal): Call init_fatal_signals.
53701         (init_fatal_signal_set): Likewise. Ignore signals that were set to
53702         SIG_IGN.
53703         Reported by Paul Eggert.
53704
53705 2004-12-18  Bruno Haible  <bruno@clisp.org>
53706
53707         * doc/alloca.texi: New file.
53708         * doc/alloca-opt.texi: New file.
53709
53710 2004-12-17  Jim Meyering  <jim@meyering.net>
53711
53712         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
53713         Otherwise, install-sh could exit with improper exit status when
53714         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
53715
53716 2004-12-16  Simon Josefsson  <jas@extundo.com>
53717
53718         * tests/test-base64.c: Add license.
53719
53720 2004-12-15  Stepan Kasal  <address@hidden>
53721
53722         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
53723
53724 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * modules/getcwd (Files): Add m4/d-ino.m4.
53727         Suggested by Mark D. Baushke.
53728
53729 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         * lib/getdate.y (textint): New member "negative".
53732         (time_zone_hhmm): New function.
53733         Expect 14 shift-reduce conflicts, not 13.
53734         (o_colon_minutes): New rule.
53735         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
53736         (yylex): Set the "negative" member of signed numbers.
53737
53738 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
53739
53740         * doc/getdate.texi (Time of day items, Time zone items):
53741         Describe new formats +00:00, UTC+00:00.
53742
53743 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53744
53745         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
53746         spurious "-l"s.  Problem reported by Stepan Kasal.
53747
53748 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
53751         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
53752
53753 2004-12-04  Simon Josefsson  <jas@extundo.com>
53754
53755         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
53756         Vandoorselaere <yoann@prelude-ids.org>.
53757
53758 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53759
53760         Changes imported from coreutils.
53761         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
53762         exist.
53763         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
53764
53765 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53766
53767         Changes imported from coreutils.
53768         * lib/hard-locale.c: Assume <locale.h> exists.
53769         Include "strdup.h".
53770         (GLIBC_VERSION): New macro.
53771         (hard_locale): Assume setlocale exists.
53772         Rewrite to avoid #ifdef.
53773         Use strdup rather than malloc + strcpy.
53774         * lib/human.c: Assume <locale.h> exists.
53775         (human_readable): Assume localeconv exists.
53776
53777 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         * modules/hard-locale (Depends-on): Add strdup.
53780
53781 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53782
53783         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
53784         convert T2, not T.  (Imported from libc.)
53785
53786 2004-11-30  Simon Josefsson  <jas@extundo.com>
53787
53788         * modules/restrict (License): Change to LGPL.
53789
53790 2004-11-30  Simon Josefsson  <jas@extundo.com>
53791
53792         * m4/restrict.m4: Add copyright and copying conditions.
53793
53794 2004-11-30  Simon Josefsson  <jas@extundo.com>
53795
53796         * m4/base64.m4: New file.
53797
53798 2004-11-30  Simon Josefsson  <jas@extundo.com>
53799
53800         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
53801         base64.
53802
53803         * tests/test-base64.c: New file.
53804
53805         * modules/base64: New file.
53806
53807 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53808
53809         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
53810         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
53811
53812         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
53813
53814 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
53815
53816         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
53817         (__getcwd.c): Don't restore errno; glibc doesn't.
53818         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
53819         first, falling back to our code only if its results look suspicious.
53820         Ensure that the resulting buffer is only as large as necessary.
53821
53822         * lib/readutmp.c: Include readutmp.h first.
53823         Include <errno.h>, since readutmp.h no longer does that.
53824         * lib/readutmp.h: Don't include <errno.h>,
53825         <sys/param.h>, <time.h>; not needed to establish interface.
53826         (errno): Remove decl.
53827         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
53828         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
53829         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
53830
53831 2004-11-28  Simon Josefsson  <jas@extundo.com>
53832
53833         * lib/base64.h, base64.c: New file.
53834
53835 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
53836
53837         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
53838
53839 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
53840
53841         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
53842         (Depends-on): Remove pathmax, same.  Add mempcpy.
53843         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
53844         (Makefile.am): Append getcwd.h to lib_SOURCES.
53845         (Include): Add getcwd.h.
53846         (Maintainer): Change from Jim Meyering to "all, glibc",
53847         since getdate now uses intended-for-glibc code.
53848         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
53849         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
53850
53851 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
53854         HP's ANSI C compiler.
53855         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
53856         Declaring int functions causes warnings on some modern systems and
53857         shouldn't be needed to compile on ancient ones.
53858         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
53859         defined.
53860
53861         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
53862         with the following changes.
53863         (__set_errno): Parenthesize properly.
53864         Include <stdbool.h>.
53865         (MIN, MAX, MATCHING_INO): New macros.
53866         (__getcwd): Define with prototype, not K&R form.
53867         Use heuristics to allocate default buffer on stack if possible.
53868         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
53869         behavior, and to avoid the PATH_MAX limit when computing
53870         ../../../../...
53871         Use MATCHING_INO to compare inode number to file.
53872         Check for arithmetic overflow in size calculations.
53873         Fix bug in reallocation of dot array that caused getcwd to fail
53874         on directories nested deeper than 75.
53875         Be more careful about saving errno on error.
53876         Do not use realloc; use only free+malloc, as this is a bit
53877         more flexible and avoids a needless copy operation.
53878         Do not inspect st_dev and st_ino for symbolic links; POSIX
53879         doesn't specify the latter.
53880         Check for closedir errors.
53881         Avoid needless casts.
53882         Use "#ifdef weak_alias" around weak_alias, to be like other
53883         glibc code.
53884         The following changes to getcwd.c have effect only when used in
53885         gnulib; they have no effect inside glibc proper.
53886         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
53887         as alloca isn't used.
53888         (alloca, __alloca): Likewise.
53889         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
53890         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53891         unconditionally, as gnulib assumes C89 or better.
53892         Do not include <sys/param.h>.
53893         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
53894         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
53895         better.
53896         (NULL) [!defined NULL]: Remove; we assume C89 or better.
53897         Include <dirent.h> in a way that is compatible with modern Autoconf.
53898         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
53899         New macros, if not already defined.
53900         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
53901         Use "_LIBC", not "defined _LIBC", for consistency.
53902         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
53903         a mempcpy module.
53904         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
53905         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
53906         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
53907         credit only to Jim Meyering and adjust the copyright dates.
53908         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
53909         <stdlib.h>, <unistd.h>, "pathmax.h".
53910         Instead, include "xgetcwd.h" (first) and "getcwd.h".
53911         (INITIAL_BUFFER_SIZE): Remove.
53912         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
53913
53914 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
53917         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
53918         Use the _ONCE methods, for efficiency.
53919         Check for fcntl.h.  In test program, include <errno.h>
53920         and <fcntl.h> if available.  Remove old K&R cruft from
53921         test program.  Check for common errors in GNU/Linux,
53922         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
53923         don't do AC_LIBOBJ, as that's getcwd.m4's job.
53924         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
53925         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
53926         name accordingly.
53927         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
53928         accommodate new getcwd.c.
53929         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
53930         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
53931         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
53932         that's all we need now.
53933
53934 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53935
53936         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
53937         argp-parse.c depends on getopt internals, that means we should
53938         always use our getopt, to be on the safe side.
53939         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
53940         order not to spoil the result of an eventual previous invocation
53941         of gl_GETOPT_SUBSTITUTE.
53942
53943 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53944
53945         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
53946         redefinition warnings. To avoid them, include the defines
53947         in `#if !defined __need_getopt ... #endif'. The only place
53948         where __getopt_argv_const is used is in definitions
53949         of getopt_long and getopt_long_only below, which are as well
53950         protected by `#ifndef __need_getopt'.
53951         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
53952         __need_getopt after including <stdio.h> and <unistd.h> These
53953         headers might have defined it.
53954
53955 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
53958
53959 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
53962         (futimens): New function, which uses futimes if available.
53963         (futimens, utimens): Support timespec==NULL, with same semantics
53964         as utime and utimens.
53965         * lib/utimens.h (futimens): New decl.
53966
53967 2004-11-23  Jim Meyering  <jim@meyering.net>
53968
53969         * lib/getopt_.h: Remove trailing blanks.
53970
53971 2004-11-23  Jim Meyering  <jim@meyering.net>
53972
53973         * lib/__fpending.c: Add comment.
53974
53975 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * modules/canonicalize (Depends-on): Add xreadlink.
53978         Problem reported by James Youngman.
53979
53980 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
53983         New macros.
53984         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
53985         optopt): Use them instead of invoking ## directly; otherwise, the
53986         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
53987
53988 2004-11-19  Bruno Haible  <bruno@clisp.org>
53989
53990         * lib/strtok_r.c: Move comments from here...
53991         * lib/strtok_r.h: ... to here.
53992
53993 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
53996         implementations that mishandle size_t overflow.
53997
53998 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54001         might fail.  Problem reported by Yoann Vandoorselaere.
54002         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54003         implementations that mishandle size_t overflow.
54004
54005 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * modules/canon-host (Depends-on): Add strdup.
54008
54009 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54012
54013 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * lib/canon-host.c: Include "strdup.h".
54016         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54017         Use strdup instead of malloc/strcpy to duplicate strings.
54018
54019         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54020         (human_space_before_unit): New constant.
54021         * lib/human.c (human_readable): Support it.
54022
54023         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54024         (xgetcwd): Set errno correctly when failing.
54025         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54026         the failure is actually due to a PATH_MAX problem.
54027
54028         Further getopt changes to make it more likely that glibc will
54029         buy the changes back.
54030         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54031         (getopt): Use it, so to preserve glibc semantic
54032         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54033         when compiling for libc.
54034         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54035         (getopt_long, getopt_long_only): Use it.
54036
54037         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54038         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54039         (getopt): Argv is now char * const *, as per standard.
54040         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54041         not char *__getopt_argv_const *.
54042         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54043         _getopt_long_only_r): Likewise.
54044         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54045         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54046         _getopt_long_r, _getopt_long_only_r): Likewise.
54047         * lib/getopt_.h (__getopt_argv_const): Remove.
54048         (getopt): Argv is now char * const *, as per standard.
54049
54050         * lib/getdate.y (tORDINAL): New token.
54051         (day, relunit): Allow it for relative times.
54052         (relative_time_table): Use tORDINAL for ordinals.
54053
54054 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54057         Document that "second" isn't allowed as an ordinal number.
54058
54059 2004-11-16  Jim Meyering  <jim@meyering.net>
54060
54061         * modules/closeout (Depends-on): Add fpending.
54062
54063 2004-11-15  Jim Meyering  <jim@meyering.net>
54064
54065         * lib/closeout.c: Include "__fpending.h" once again.
54066         Include <stdbool.h>.
54067         (close_stdout): Don't fail just because stdout was closed initially,
54068         since some programs don't write to stdout in the normal course of
54069         operation (other than --version and --help), and we don't want this
54070         function to make e.g. `touch file >&-' fail.
54071         But do fail if it was closed and someone has tried to write to it.
54072         E.g., `printf foo >&-' must fail.
54073
54074 2004-11-13  Jim Meyering  <jim@meyering.net>
54075
54076         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54077
54078 2004-11-12  Simon Josefsson  <jas@extundo.com>
54079
54080         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54081         small doc fix is still pending.
54082
54083 2004-11-11  Simon Josefsson  <jas@extundo.com>
54084
54085         * modules/strtok_r: New file.
54086
54087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54088         strtok_r.
54089
54090 2004-11-11  Simon Josefsson  <jas@extundo.com>
54091
54092         * m4/strtok_r.m4: New file.
54093
54094         * m4/getopt.m4: Replace opterr.
54095
54096 2004-11-11  Simon Josefsson  <jas@extundo.com>
54097
54098         * lib/strtok_r.h, strtok_r.c: New file.
54099
54100 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54103         of replacing opterr, getopt, etc.  This should handle the
54104         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54105
54106 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54109         we can stop lying to compilers about the constness of argv when we
54110         are compiled outside glibc.
54111         (getopt, getopt_long, getopt_long_only): Use it.
54112         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54113         _getopt_internal, getopt): Likewise.
54114         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54115         _getopt_long_only_r): Likewise.
54116         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54117         _getopt_long_r, _getopt_long_only_r): Likewise.
54118
54119         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54120         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54121         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54122         the other external symbols.
54123         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54124         declaration, since the above renaming now works around collisions.
54125
54126 2004-11-11  Jim Meyering  <jim@meyering.net>
54127
54128         * lib/linebreak.c: Remove trailing blanks.
54129         * lib/alloca_.h: Likewise.
54130         * lib/acosl.c: Likewise.
54131         * lib/euidaccess.c: Likewise.
54132         * lib/allocsa.h: Likewise.
54133
54134 2004-11-10  Simon Josefsson  <jas@extundo.com>
54135
54136         * m4/getaddrinfo.m4: New file.
54137
54138 2004-11-10  Simon Josefsson  <jas@extundo.com>
54139
54140         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54141
54142 2004-11-10  Simon Josefsson  <jas@extundo.com>
54143
54144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54145         getaddrinfo.
54146
54147         * modules/getaddrinfo: New file.
54148
54149 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54152
54153 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54154
54155         * lib/mktime.c (SHR): New macro, which is a portable
54156         substitute for >> that should work even on Crays.
54157         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54158         Problem reported by Mark D. Baushke in
54159         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54160         * lib/getdate.y (SHR): Likewise.
54161         (tm_diff): Use it.
54162         * lib/strftime.c (SHR): Likewise.
54163         (tm_diff): Use it.
54164         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54165         quote_these_too, so that right shifts are well defined.  All uses
54166         changed.
54167
54168 2004-11-10  Jim Meyering  <jim@meyering.net>
54169
54170         Ensure that no close failure goes unreported.
54171         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54172         return early when it seems there's nothing to flush.
54173         Don't include __fpending.h.
54174
54175 2004-11-10  Jim Meyering  <jim@meyering.net>
54176
54177         * modules/closeout (Depends-on): Remove fpending.
54178
54179 2004-11-10  Jim Meyering  <jim@meyering.net>
54180
54181         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54182
54183 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54184
54185         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54186         gl_FUNC_STRFTIME.
54187         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54188         and AC_REQUIRE when possible, to avoid duplicate checks.
54189         Check for <wchar.h>.
54190
54191 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54192
54193         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54194
54195 2004-11-09  Bruno Haible  <bruno@clisp.org>
54196
54197         * m4/sockpfaf.m4: New file.
54198
54199 2004-11-05  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54202         Reported by Mark D. Baushke <mdb@cvshome.org>.
54203
54204 2004-11-04  Bruno Haible  <bruno@clisp.org>
54205
54206         2004-09-11  Bruno Haible  <bruno@clisp.org>
54207                 * allocsa.valgrind: New file.
54208         2004-02-06  Bruno Haible  <bruno@clisp.org>
54209                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54210                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54211                 Reported by Christopher Seip <chris.seip@hp.com>.
54212
54213 2004-11-04  Bruno Haible  <bruno@clisp.org>
54214
54215         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54216         (Makefile.am): Distribute it.
54217
54218 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54219
54220         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54221         with errno == ERANGE if the buffer is too small.
54222         Problem reported by Mark D. Baushke.
54223
54224 2004-11-03  Albert Chin  <china@thewrittenword.com>
54225             Paul Eggert  <eggert@cs.ucla.edu>
54226
54227         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54228         equivalent, substitute $ac_type for equivalent type rather than
54229         blindly using uint32_t *always* which won't work if uint32_t is not
54230         available.  Define _UINT32_T to work around typedef of uint32_t if
54231         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54232         2.5.1.
54233
54234 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54235
54236         * m4/jm-macros.m4: Sync from coreutils.
54237         (gl_MACROS): Check for mbrlen, for pathchk.
54238         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54239
54240 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * lib/xreadlink.c (MAXSIZE): New macro.
54243         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54244         size does not exceed MAXSIZE.  Avoid cast.
54245         As suggested by Mark D. Baushke in
54246         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54247         if readlink fails with buffer size just under MAXSIZE, try again
54248         with MAXSIZE.
54249
54250 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54251
54252         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54253
54254 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54255         and  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54258         (get_date): Overparenthesize to avoid GCC warning.
54259
54260 2004-11-02  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54263         returns void.
54264
54265 2004-11-02  Bruno Haible  <bruno@clisp.org>
54266
54267         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54268         function returns void.
54269
54270 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54271
54272         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54273         fflush_unlocked, flockfile, funlockfile, funlockfile,
54274         fputs_unlocked, putc_unlocked.
54275
54276 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54279         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54280         already declared.
54281
54282 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54283
54284         * modules/getdate (Files): Add doc/getdate.texi.
54285         (Depends-on): Add setenv, xalloc.
54286
54287 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54288
54289         * lib/getdate.y: Add support for TZ="foo" within a date string.
54290         Fix some bugs near time_t boundaries.  Reject dates with
54291         out-of-range components, e.g., "Sept 31".
54292         Include <stdlib.h>, "setenv.h", "xalloc.h".
54293         (ISDIGIT_LOCALE): Remove; unused.
54294         Note that the TZ and time functions used here are not reentrant.
54295         (mktime_ok, get_tz): New functions.
54296         (TZBUFSIZE): New constant.
54297         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54298         This requires that we sometimes generate our own TZ="XXX..." setting.
54299
54300 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54301
54302         * doc/getdate.texi: New file, from coreutils with modifications for
54303         the new TZ parsing.
54304
54305 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54306
54307         * lib/mktime.c (not_equal_tm): Remove redundant check.
54308
54309 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54310
54311         * modules/regex (lib_SOURCES): Add regex.c.
54312         Reported by James Youngman in
54313         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54314
54315 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54316
54317         * lib/getdate.y: Use Bison 1.875 features, and some minor
54318         code cleanups.  This change does not affect semantics.
54319         Don't include <stdlib.h>; no longer needed.
54320         Don't include unlocked-io.h; only the "#if TEST" code uses
54321         stdio, and performance isn't crucial there.
54322         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54323         Bison 1.875 features as described below.
54324         All uses of "PC." replaced by "pc->".
54325         (YYSTYPE): Add a forward declaration.
54326         (yylex, yyerror): Use full prototypes in forward decls.
54327         Use "%pure-parser" rather than obsolescent "%pure_parser".
54328         Use %parse-param and %lex-param instead of obsolescent
54329         YYPARSE_PARAM and YYLEX_PARAM.
54330         (meridian_table, month_and_day_table, time_units_table,
54331         relative_time_table, time_zone_table, military_table,
54332         lookup_zone, lookup_word, get_date):
54333         Use NULL instead of 0 where appropriate.
54334         (to_hour): Avoid abort (), to avoid a dependency on
54335         stdlib.h.
54336         (yyerror, yylex): Now accepts parser_control * arg.
54337         (main) [TEST]: Use '\0' rather than 0 for char.
54338
54339 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54342
54343 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54346         It's now the caller's responsibility to handle the case where
54347         !HAVE_GETPAGESIZE && !defined getpagesize.
54348
54349         * lib/mktime.c (leapyear): Arg is long int, not int.
54350
54351 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54352
54353         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54354
54355 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54358         missing.  Problem reported by James Youngman.
54359
54360 2004-10-16  Simon Josefsson  <jas@extundo.com>
54361
54362         * gnulib-tool: Fix comments.  Fix parse problem.
54363         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54364
54365 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54366
54367         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54368         implementation of getopt_long.  Problem reported by Alexander Taler in:
54369         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54370
54371 2004-10-15  Bruno Haible  <bruno@clisp.org>
54372
54373         * gnulib-tool: Untabify. Initialize supplied_libname.
54374         (func_usage): More homogenous output.
54375         (func_modules_transitive_closure, func_modules_to_filelist,
54376         func_emit_lib_Makefile_am): New functions.
54377         (func_import): New function, extracted from big case statement. Use
54378         func_get_license, func_modules_transitive_closure,
54379         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54380         opt_lgpl. Don't use test -a, as it's not portable.
54381         (func_create_testdir): Use func_modules_transitive_closure,
54382         func_modules_to_filelist, func_emit_lib_Makefile_am.
54383
54384 2004-10-15  Bruno Haible  <bruno@clisp.org>
54385
54386         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54387
54388 2004-10-15  Bruno Haible  <bruno@clisp.org>
54389
54390         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54391         the portions belonging to each module.
54392         Suggested by Derek Robert Price <derek@ximbiot.com>.
54393
54394 2004-10-12  Simon Josefsson  <jas@extundo.com>
54395
54396         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54397         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54398         to real functions.
54399
54400 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54401
54402         * modules/vsnprintf: New file.
54403
54404 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54405
54406         * m4/vsnprintf.m4: New file.
54407
54408 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54409
54410         * lib/vsnprintf.h: New file.
54411         * lib/vsnprintf.c: New file.
54412
54413 2004-10-11  Bruno Haible  <bruno@clisp.org>
54414
54415         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54416         vsnprintf.
54417
54418 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54421
54422 2004-10-07  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54425         fits into the provided buffer.
54426
54427 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54428
54429         * lib/diacrit.c, diacrit.h: Add GPL notice.
54430
54431         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54432         notice.
54433         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54434         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54435         This avoids a potential constant-folding bug.
54436
54437 2004-10-05  Bruno Haible  <bruno@clisp.org>
54438
54439         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54440         for the declaration of strsep.
54441
54442 2004-10-05  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54445
54446 2004-10-04  Simon Josefsson  <jas@extundo.com>
54447
54448         * modules/memmem: New file.
54449         * tests/test-memmem.c: New file.
54450         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54451
54452 2004-10-04  Simon Josefsson  <jas@extundo.com>
54453
54454         * m4/memmem.m4: New file.
54455
54456 2004-10-04  Simon Josefsson  <jas@extundo.com>
54457
54458         * lib/memmem.h: New file.
54459         * lib/memmem.c: New file, taken from glibc.
54460
54461 2004-10-04  Simon Josefsson  <jas@extundo.com>
54462
54463         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54464         '#ifdef USE_UNLOCKED_IO'.
54465
54466 2004-10-04  Simon Josefsson  <jas@extundo.com>
54467
54468         * config/srclist.txt: Add memmem from glibc.
54469
54470 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54471
54472         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54473
54474         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54475         modules/exclude, modules/getdate, modules/getline,
54476         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54477         modules/getusershell, modules/linebuffer, modules/md5,
54478         modules/mountlist, modules/posixtm, modules/readtokens,
54479         modules/readutmp, modules/regex, modules/sha1,
54480         modules/version-etc, modules/yesno:
54481         Remove dependency on unlocked-io.
54482
54483 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54486
54487         * m4/unlocked-io.m4: Add copyright notice.
54488         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54489
54490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54493         * lib/xmalloc.c (xmemdup): Likewise.
54494         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54495         XFREE): Remove these long-obsolescent macros.
54496         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54497         * lib/xstrdup.c: Remove.
54498
54499         * lib/regex.c (re_comp): Cast gettext return value to char *,
54500         Problem reported by Martin Neitzel via Mark D. Baushke.
54501
54502 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54505         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54506         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54507         regex.c, sha1.c, version-etc.c, yesno.c:
54508         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54509         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54510         the includer's responsibility.
54511
54512         Sync from coreutils.
54513
54514         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54515         points to the start of a string, as the C Standard says the
54516         resulting behavior is undefined.
54517
54518         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54519         simple -> simple_backups, numbered_existing ->
54520         numbered_existing_backups, numbered -> numbered_backups
54521         to avoid shadowing problems.  All uses changed.
54522         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54523         * lib/backupfile.c (check_extension, numbered_backup):
54524         Rename locals to avoid shadowing 'basename'.
54525         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54526         once.
54527
54528         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54529         * lib/.cvsignore: Add getopt.h.
54530
54531 2004-10-04  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/README: New file.
54534         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54535         not a module.
54536
54537 2004-10-02  Jim Meyering  <jim@meyering.net>
54538
54539         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54540
54541 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54542
54543         * modules/strsep: New file.
54544
54545 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54546
54547         * m4/strsep.m4: New file.
54548
54549 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54550
54551         * lib/strsep.h: New file.
54552         * lib/strsep.c: New file.
54553
54554 2004-10-01  Simon Josefsson  <jas@extundo.com>
54555
54556         * lib/snprintf.c (snprintf): Handle size==0.
54557
54558 2004-10-01  Simon Josefsson  <jas@extundo.com>
54559             Bruno Haible  <bruno@clisp.org>
54560
54561         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54562         (snprintf): Declare 'args'.
54563
54564 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54565
54566         * lib/snprintf.c: Remove comments as to why each header is needed.
54567
54568 2004-10-01  Bruno Haible  <bruno@clisp.org>
54569
54570         * MODULES.html.sh: Add strsep.
54571
54572 2004-09-30  Simon Josefsson  <jas@extundo.com>
54573
54574         * modules/snprintf: New file.
54575
54576 2004-09-30  Simon Josefsson  <jas@extundo.com>
54577
54578         * m4/snprintf.m4: New file.
54579
54580 2004-09-30  Simon Josefsson  <jas@extundo.com>
54581
54582         * lib/snprintf.h, lib/snprintf.c: New files.
54583
54584 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54585
54586         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54587         (hol_entry_help): Never translate an empty string.
54588         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54589         * lib/argp.h (OPTION_NO_TRANS): New option.
54590
54591 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54592
54593         * modules/argp (Maintainer): Replace Simon Josefsson
54594         by Sergey Poznyakoff.
54595
54596 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54597
54598         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54599         changes merged back into glibc.
54600
54601 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54604
54605 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54606
54607         * lib/xvasprintf.c: Include xalloc.h.
54608         (xvasprintf): Use xalloc_die, not xmalloc_die.
54609
54610 2004-09-29  Bruno Haible  <bruno@clisp.org>
54611
54612         * modules/alloca-opt: New file, derived from modules/alloca.
54613         * modules/allocsa: Depend on alloca-opt instead of alloca.
54614         * modules/setenv: Likewise.
54615         * modules/vasnprintf: Likewise.
54616         * MODULES.html.sh: Add alloca-opt.
54617
54618 2004-09-28  Simon Josefsson  <jas@extundo.com>
54619
54620         * gnulib-tool: New parameter --lgpl, to asseert that modules are
54621         LGPL, and to replace license template from GPL to LGPL.
54622
54623 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54624
54625         * modules/dummy: Change license to LGPL.
54626
54627 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
54630
54631 2004-09-24  Simon Josefsson  <jas@extundo.com>
54632
54633         * modules/minmax (License): Change from GPL to LGPL.
54634
54635 2004-09-23  Simon Josefsson  <jas@extundo.com>
54636
54637         * gnulib-tool (--import): Typo.
54638
54639 2004-09-23  Simon Josefsson  <jas@extundo.com>
54640
54641         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
54642
54643 2004-09-22  Bruno Haible  <bruno@clisp.org>
54644
54645         * modules/*: Add 'License' field.
54646         * gnulib-tool: Accept --extract-license option.
54647         (func_get_license): New function.
54648
54649 2004-09-21  Bruno Haible  <bruno@clisp.org>
54650
54651         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
54652         Reported by Simon Josefsson.
54653
54654 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
54657         gl_AC_TYPE_LONG_LONG.
54658
54659 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54660
54661         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
54662
54663 2004-09-18  Simon Josefsson  <jas@extundo.com>
54664         and  Paul Eggert  <eggert@cs.ucla.edu>
54665
54666         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
54667         calls with autoreconf.  Define GL_LIB.
54668
54669 2004-09-14  Karl Berry  <karl@gnu.org>
54670
54671         * config/srclist.txt: unsync setenv.c, sigh.
54672
54673 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54674
54675         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
54676         Problem reported by Bruno Haible in:
54677         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
54678
54679 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
54680
54681         * config/srclist.txt: Comment out argp-pvh.c.
54682
54683 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
54684
54685         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
54686         in case some system header has #define'd it.  Problem reported by
54687         Soeren D. Schulze in
54688         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
54689
54690 2004-09-09  Karl Berry  <karl@gnu.org>
54691
54692         * regex.[ch]: delete from the root.  These were supposed to be
54693                 synced with emacs cvs, but this has not happened for about
54694                 a year, and anyway nothing else uses emacs regex.[ch].
54695                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
54696                 lib/regex[.ch] is untouched.
54697
54698 2004-09-09  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
54701
54702 2004-09-09  Bruno Haible  <bruno@clisp.org>
54703
54704         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
54705         modifications.
54706         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
54707
54708 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54709
54710         * modules/xvasprintf: New file.
54711         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
54712
54713 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
54714
54715         * lib/xvasprintf.h: New file.
54716         * lib/xvasprintf.c: New file.
54717         * lib/xasprintf.c: New file.
54718
54719 2004-09-08  Bruno Haible  <bruno@clisp.org>
54720
54721         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
54722
54723 2004-09-08  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
54726         length is > INT_MAX.
54727         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
54728         more.
54729
54730 2004-09-08  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/stdint_.h: New file, taken from GNU clisp.
54733
54734 2004-09-08  Bruno Haible  <bruno@clisp.org>
54735             Oskar Liljeblad  <oskar@osk.mine.nu>
54736
54737         * modules/stdint: New file.
54738         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
54739
54740 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         Import from coreutils.
54743         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
54744         strings on unbounded length.  alloca's performance benefits aren't
54745         that important here.
54746         (V_STRDUP): Remove.
54747         (parse_with_separator): New function, with most of the internals
54748         of the old parse_user_spec.  Allow user to omit both user and group,
54749         for compatibility with FreeBSD.
54750         Clone only the user name, not the entire spec.
54751         Do not set *uid, *gid unless entirely successful.
54752         Avoid memory leak in some failing cases.
54753         Fix regression for USER.GROUP reported by Dmitry V. Levin in
54754         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
54755         (parse_user_spec): Rewrite to use parse_with_separator.
54756
54757 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54758
54759         * modules/userspec: Don't depend on alloca.
54760
54761 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54762
54763         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
54764
54765 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
54768         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
54769         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
54770
54771 2004-08-16  Simon Josefsson  <jas@extundo.com>
54772
54773         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
54774         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
54775         Add --dry-run for --import.
54776         Let user provided command line parameters override configure.ac
54777         settings.
54778
54779 2004-08-12  Simon Josefsson  <jas@extundo.com>
54780
54781         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
54782         as discussed with Paul Eggert in threads rooted at
54783         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
54784         and
54785         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
54786         Before, the test was empty, and relied on ELIDE_CODE in source
54787         code.)
54788         (gl_PREREQ_GETOPT): New macro.
54789         (gl_GETOPT): Use them.
54790
54791 2004-08-12  Simon Josefsson  <jas@extundo.com>
54792
54793         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
54794         * lib/getopt_.h: Renamed from getopt.h.
54795
54796 2004-08-12  Simon Josefsson  <jas@extundo.com>
54797
54798         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
54799         Change default library name from libfoo to libgnu.
54800         Now, if you have a configure.ac that says:
54801                 gl_SOURCE_BASE(gl)
54802                 gl_M4_BASE(gl/m4)
54803                 gl_MODULES(error getopt etcetera)
54804                 gl_INIT
54805         you can import all you need by running:
54806                 ../gnulib/gnulib-tool --import
54807
54808         * modules/getopt (Files): Rename getopt.h to getopt_.h.
54809         (Makefile.am): Rewrite, use logic from argz.
54810         (Include): Use <getopt.h> instead of "getopt.h".
54811
54812 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * modules/argp (Files): Add m4/unlocked-io.m4.
54815         (Depends-on): Add extensions.
54816
54817 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
54820         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
54821         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
54822         Check for program_invocation_name, program_invocation_short_name,
54823         flockfile, funlockfile, features.h, _getopt_long_only_r.
54824
54825 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54826
54827         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
54828         its complicated substitute.
54829         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
54830         and program_invocation_name.
54831         (__argp_basename) [!_LIBC]: Remove; the only use was
54832         replaced by its body.
54833         (__argp_short_program_name): Change condition from
54834         !defined __argp_short_program_name to
54835         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
54836         to match argp-namefrob.h.
54837         (__argp_failure): Don't assume strerror_r returns char *.
54838         * lib/argp-parse.c (N_): Define unconditionally.
54839         (argp_default_options): Fill out initializers with 0 to avoid
54840         gcc warnings.
54841
54842 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
54843
54844         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
54845         getopt1.c.
54846
54847 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         Merge from coreutils.
54850
54851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
54852
54853         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
54854         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
54855
54856 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54857
54858         Merge from coreutils.
54859
54860         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
54861         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
54862         for Reliant Unix 5.43.
54863
54864         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
54865         (union fooround): Use uintmax_t, not long int.
54866         The rest is a merge from libc:
54867         [defined _LIBC]: Include <shlib-compat.h>.
54868         (_obstack) [defined _LIBC]: Remove after 2.3.4.
54869
54870         * lib/settime.c (settime): Recode to avoid warning with
54871         Sun Forte C 6U2.
54872
54873         * lib/strverscmp.c: Convert to UTF-8.
54874
54875 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54878         m4/uintmax_t.m4.
54879
54880 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54881
54882         * modules/xalloc-die: New file.
54883         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
54884
54885         * modules/md5 (Files): Add m4/uint32_t.m4.
54886         * modules/sha1: Renamed from modules/sha.
54887         (Files):
54888         Rename lib/sha.h to lib/sha1.h.
54889         Rename lib/sha.c to lib/sha1.c.
54890         Rename m4/sha.m4 to m4/sha1.m4.
54891         (lib_SOURCES): Likewise.
54892         (configure.ac): Rename gl_SHA to gl_SHA1.
54893         (Include): sha.h -> sha1.h.
54894
54895 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54896
54897         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
54898         * m4/sha1.m4: Renamed from sha.m4.
54899         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
54900
54901 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         * lib/obstack.h (obstack_empty_p):
54904         Don't assume that chunk->contents is suitably aligned.
54905         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
54906         Likewise. Problem reported by Benno in
54907         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
54908
54909         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
54910         readable.  This could be improved further but it'd take some work.
54911
54912 2004-08-08  Simon Josefsson  <jas@extundo.com>
54913
54914         * modules/xgethostname (Depends-on): Remove exit and error (not
54915         used).
54916
54917         * modules/getpass-gnu: Add getpass.h.
54918         (Depends-on): Add stdbool.
54919         * modules/getpass: Add getpass.h.
54920
54921 2004-08-08  Simon Josefsson  <jas@extundo.com>
54922
54923         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
54924         Check getpass declaration.
54925
54926 2004-08-08  Simon Josefsson  <jas@extundo.com>
54927
54928         * lib/xgethostname.c: Don't include error.h (not used).
54929
54930         * lib/getpass.h: Add.
54931         * lib/getpass.c: Include getpass.h first.
54932
54933 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
54934
54935         * lib/xalloc-die.c: New file.
54936         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
54937         All uses removed.
54938         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
54939         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
54940         xalloc-die.c.
54941         (_, N_, xalloc_die): Move to xalloc-die.c.
54942         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
54943         so that we needn't mess with xalloc_msg_memory_exhausted.
54944
54945         * lib/sha1.h: Renamed from sha.h.
54946         (SHA1_H): Renamed from _SHA_H.
54947         (sha1_ctx): Renamed from sha_ctx.
54948         (sha1_init_ctx): Renamed from sha_init_ctx.
54949         (sha1_process_block): Renamed from sha_process_block.
54950         (sha1_process_bytes): Renamed from sha_process_bytes.
54951         (sha1_finish_ctx): Renamed from sha_finish_ctx.
54952         (sha1_read_ctx): Renamed from sha_read_ctx.
54953         (sha1_stream): Renamed from sha_stream.
54954         (sha1_buffer): Renamed from sha_buffer.
54955         * lib/sha1.c: Likewise; renamed from sha.c.
54956         Do not include <sys/types.h>.
54957         Include <stddef.h> rather than <stdlib.h>.
54958
54959 2004-08-08  Bruno Haible  <bruno@clisp.org>
54960
54961         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
54962         FILESYSTEM_PREFIX_LEN.
54963         * lib/progreloc.c: Likewise.
54964         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
54965
54966 2004-08-06  Simon Josefsson  <jas@extundo.com>
54967
54968         * modules/progname (Depends-on): Don't depend on stdbool.
54969
54970 2004-08-06  Simon Josefsson  <jas@extundo.com>
54971
54972         * modules/getsubopt: New file.
54973         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54974         getsubopt.
54975
54976 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54977
54978         More merge from coreutils.
54979
54980         * m4/utimens.m4, m4/utimecmp.m4: New files.
54981         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
54982         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
54983         prereq.m4, sha.m4: Import changes from coreutils.
54984
54985 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54986
54987         More merge from coreutils.
54988         * modules/raise, modules/readtokens0, modules/utimens:
54989         * modules/utimecmp, module/xnanosleep: New files.
54990         * modules/strftime: Add lib/strftime.h.
54991         Change include from <time.h> to "strftime.h".
54992         * modules/yesno: Add lib/yesno.h.
54993         * modules/backupfile: Remove lib/addext.c.
54994         * modules/euidaccess: Add stat-macros.h.
54995         * modules/canonicalize, modules/euidaccess,
54996         modules/filemode, modules/lchown, modules/makepath,
54997         modules/rmdir, modules/stat: Likewise.
54998
54999 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55000
55001         Merge from tar.
55002         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55003         SIZE_MAX is a valid preprocessor constant.
55004         (__argp_basename): Change from "#ifndef _LIBC"
55005         to "#ifndef __argp_short_program_name", so that
55006         we don't compile these functions for tar.
55007
55008         More merges from coreutils.
55009         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55010         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55011         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55012         * lib/addext.c: Remove; no longer needed.
55013         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55014         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55015         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55016         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55017         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55018         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55019         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55020         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55021         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55022         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55023         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55024         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55025         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55026         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55027         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55028         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55029         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55030         Import changes from coreutils.
55031
55032 2004-08-05  Simon Josefsson  <jas@extundo.com>
55033
55034         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55035
55036 2004-08-05  Simon Josefsson  <jas@extundo.com>
55037
55038         * m4/getsubopt.m4: New file.
55039
55040 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         Merge from coreutils.
55043
55044         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55045         * m4/getcwd-path-max.m4: New files.
55046
55047         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55048         FILESYSTEM_PREFIX_LEN ->
55049         FILE_SYSTEM_PREFIX_LEN.
55050         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55051         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55052         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55053         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55054
55055         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55056         prerequisite modules now handle the DOS stuff.
55057         Don't check for unistd.h.
55058
55059 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55060
55061         Merge from coreutils.
55062
55063         * lib/.gdb-history: Remove; this doesn't belong here.
55064
55065         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55066         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55067         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55068         * lib/getcwd.c: New files.
55069
55070         * lib/dirname.h: Include <stdbool.h>.
55071         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55072         for consistency with POSIX terminology.  All uses changed.
55073         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55074         (strip_trailing_slashes): Use bool for booleans.
55075         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55076
55077         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55078         sometimes returns a positive errno value even when it succeeds.
55079         (print_errno_message) [!LIBC]: Fall back on strerror if
55080         __strerror_r fails.
55081
55082         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55083         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55084         (longest_relative_suffix): New function.
55085         (path_concat): Use it.  Assume first argument is not NULL.
55086         Port to DOS.  Omit redundant separators.
55087         Report an error instead of returning NULL.
55088         Use mempcpy instead of memcpy.
55089         (xpath_concat): Remove: not declared or used.
55090
55091         * lib/same.h: Include <stdbool.h>
55092         (same_name): Return bool, not int.
55093         * lib/same.c (same_name): Likewise.
55094         (errno): Don't declare; we assume C89 or better now.
55095
55096         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55097         if not already defined.
55098
55099         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55100         * lib/dup-safer.c (errno): Likewise.
55101
55102 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55103
55104         Merge from coreutils.
55105         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55106         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55107         * modules/path-concat: Don't depend on strdup.
55108
55109 2004-08-03  Simon Josefsson  <jas@extundo.com>
55110
55111         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55112         * lib/progname.h: Don't include stdbool.h.
55113
55114 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55117         * MODULES.html.sh (func_all_modules): Remove fatal.
55118
55119 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55122
55123 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55126         working.
55127
55128 2004-08-02  Simon Josefsson  <jas@extundo.com>
55129
55130         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55131         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55132         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55133
55134 2004-08-01  Simon Josefsson  <jas@extundo.com>
55135
55136         * lib/xgetdomainname.c: Include stdlib.h, for free().
55137
55138 2004-07-19  Bruno Haible  <bruno@clisp.org>
55139
55140         * MODULES.html.sh (func_all_modules): Add dummy.
55141
55142 2004-07-16  Simon Josefsson  <jas@extundo.com>
55143
55144         * modules/dummy: New file.
55145
55146 2004-07-16  Simon Josefsson  <jas@extundo.com>
55147
55148         * lib/dummy.c: New file.
55149
55150 2004-07-16  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/backupfile.h: Add extern "C" for C++.
55153         * lib/closeout.h: Likewise.
55154         * lib/copy-file.h: Likewise.
55155         * lib/findprog.h: Likewise.
55156         * lib/full-write.h: Likewise.
55157         * lib/pathname.h: Likewise.
55158         * lib/progname.h: Likewise.
55159         * lib/stpcpy.h: Likewise.
55160         * lib/stpncpy.h: Likewise.
55161         * lib/strcase.h: Likewise.
55162         * lib/strstr.h: Likewise.
55163         * lib/xalloc.h: Likewise.
55164
55165         * lib/mbswidth.h: Add extern "C" for C++.
55166         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55167
55168 2004-07-13  Robert Millan  <robertmh@gnu.org>
55169
55170         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55171
55172 2004-07-09  Simon Josefsson  <jas@extundo.com>
55173
55174         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55175         failed without this.)
55176
55177 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * modules/chown (Files): Add lib/fchown-stub.c, since
55180         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55181
55182 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         * lib/fchown-stub.c: New file.
55185
55186 2004-06-24  Jim Meyering  <jim@meyering.net>
55187
55188         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55189
55190 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55191
55192         * modules/argz: Omit "#include".
55193
55194         * MODULES.html.sh (func_all_modules): Add calloc, to match
55195         2004-06-01 addition of calloc module.
55196
55197 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55198
55199         * m4/argz.m4: New file, which is autoupdated from libtool.
55200
55201 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55202
55203         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55204         libtool.
55205
55206 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55207
55208         * config/srclist-update: Don't insist on "USA." before the
55209         close-comment, as libtool omits the period and puts the */ on a
55210         separate line.
55211         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55212         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55213
55214 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55215
55216         * modules/argz: New file.
55217         * MODULES.html.sh (func_all_modules): Add argz.
55218
55219 2004-06-12  Jim Meyering  <jim@meyering.net>
55220         and  Paul Eggert  <eggert@cs.ucla.edu>
55221
55222         * modules/hash (Files): Add lib/xalloc.h.
55223         * modules/pipe (Depends-on): Add wait-process.
55224         * modules/stat (Depends-on): Add xalloc.
55225         * modules/userspec (Files): Add lib/userspec.h.
55226         * modules/xstrto
55227
55228         Upgrade from gettext-0.13.
55229         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55230         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55231         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55232
55233 2004-06-10  Jim Meyering  <jim@meyering.net>
55234
55235         * lib/calloc.c: New file.
55236
55237 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55238
55239         * lib/getdate.y (yylex): Allow space between sign and number.
55240         Problem reported by Dan Jacobson.
55241
55242 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         Merge from coreutils CVS.
55245
55246         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55247         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55248         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55249         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55250         xstrtol.m4: Fix copyright date and/or serial number.
55251
55252         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55253         See if we need an fchown replacement.
55254         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55255         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55256         and use the replacement function if we detect either defect.
55257
55258         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55259         gl_UTIMECMP.
55260
55261 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55262         and  Jim Meyering  <jim@meyering.net>
55263
55264         Merge from coreutils CVS.
55265
55266         * lib/stat-macros.h: New file, with contents from file-type.h
55267         and coreutils' system.h.
55268         * lib/file-type.c: Include "stat-macros.h".
55269         * lib/file-type.h (file_type): Move all macro definitions to new file,
55270         stat-macros.h.
55271
55272         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55273         Wrap old code with this conditional.
55274         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55275         function that does not dereference symlinks.
55276         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55277
55278         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55279         dependency problems.
55280         (xreadlink): Accept new arg SIZE, for efficiency.
55281         All decls and uses changed.
55282         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55283
55284         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55285         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55286
55287         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55288         sysexits.h.
55289
55290 2004-06-01  Jim Meyering  <jim@meyering.net>
55291
55292         * m4/calloc.m4: New file.
55293
55294 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55295
55296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55297         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55298         Also, fix a typo in a diagnostic.
55299
55300 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55301
55302         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55303         or AC_FUNC_REALLOC.
55304
55305 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55306
55307         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55308         macros to be defined.
55309         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55310         the allocator returns NULL because the requested size is zero.
55311
55312 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55315         var.  Add comment explaining why libc still defines it.  This
55316         merges the following patch from glibc:
55317         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55318
55319 2004-05-20  Andreas Schwab  <schwab@suse.de>
55320
55321         * m4/free.m4: Replace free if it not known to work, not the other
55322         way round.
55323
55324 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55327         present in glibc since revision 1.1 of this file.
55328         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55329         obstack_alignment_mask, obstack_alloc, obstack_base,
55330         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55331         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55332         obstack_grow0, obstack_init, obstack_int_grow,
55333         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55334         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55335         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55336         nonexistent functions.
55337
55338 2004-05-18  Karl Berry  <karl@gnu.org>
55339
55340         * config/srclist.txt: break link for vasnprintf.c.
55341
55342 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         Port obstack to the AS/400, where pointers are 16 bytes wide and
55345         you cannot cast an integer to a valid pointer.  This patch is
55346         currently waiting to be integrated into glibc; see
55347         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55348
55349         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55350         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55351         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55352         (struct obstack): temp member is now a union of a pointer and
55353         an integer, instead of an integer.  All integer uses changed.
55354         This does not affect the physical layout of struct obstack,
55355         except on hosts (like the AS/400) where the size or alignment of
55356         void * is greater than that of ptrdiff_t.
55357         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55358         __STDC__)]: Store temporary in pointer member of union, not
55359         integer member.
55360         * lib/obstack.c: Include <stddef.h>, for offsetof.
55361         (struct fooalign): Remove; it doesn't need a name.
55362         (union fooround): Change double to long double, and add void *.
55363         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55364         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55365         not a macro.  Hence the values are always int; so remove all
55366         casts-to-int in uses.
55367
55368 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55369
55370         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55371         we can get this patch merged into glibc.
55372
55373 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55374             Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * m4/argp: Depend on alloca.
55377
55378 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55379             Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55382         freecoding.
55383
55384 2004-05-17  Bruno Haible  <bruno@clisp.org>
55385
55386         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55387         precision that consists of a '.' followed by an empty digit string.
55388         Patch by Tor Lillqvist <tml@iki.fi>.
55389
55390 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55393         for backward compatibility with older code.  We need our own
55394         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55395         it under some other name, and our alloca.h will define it.
55396
55397 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55398             Derek Price  <derek@ximbiot.com>
55399
55400         * lib/alloca.c: Include <alloca.h>, to get our interface.
55401         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55402         include <alloca.h> first.  Use C89 prototype for alloca; this
55403         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55404         Use #elif for simplicity, since we can assume C89 now.
55405         Don't try to source the system alloca.h since it will not be found
55406         and to prevent recursively including its replacement.
55407         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55408         * lib/regex.c: Likewise.
55409
55410 2004-05-16  Derek Price  <derek@ximbiot.com>
55411             Paul Eggert  <eggert@cs.ucla.edu>
55412
55413         getline cleanup.  This changes the getndelim2 API: both order of
55414         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55415         no delimiter).
55416
55417         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55418         interface does that.
55419         (getline): Always use getdelim, so that we don't have two
55420         copies of this code.
55421         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55422         if available.
55423         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55424         (GETNDELIM2_MAXIMUM): New macro.
55425         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55426         instead of the old practice of delim2==0.  All callers changed.
55427         Return -1 on overflow, instead of returning junk.
55428         Do not set *linesize unless allocation succeeds.
55429         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55430         that we include sys/types.h.
55431         * lib/getnline.h: Likewise.
55432         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55433         (getndelim2): Reorder arguments.
55434         * lib/getnline.c (getnline, getndelim):
55435         Don't discard the NMAX argument.
55436         (getnline): Invoke getndelim, to avoid code duplication.
55437         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55438         of (size_t) -1 by callers of the getnline family.
55439
55440 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55443         Check for gettimeofday.
55444         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55445         Check for settimeofday, stime.
55446
55447 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55448
55449         * lib/nanosleep.c (suspended): Change its type from int to
55450         sig_atomic_t volatile.
55451         (first_call): Make it private to rpl_nanosleep, and have it
55452         be zero initially as that's a bit faster.
55453         (my_usleep): Round up fractional times instead of truncating them,
55454         as this is the usual meaning for 'sleep'.
55455
55456         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55457         doesn't work.
55458         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55459         (ENOSYS): Define if not defined.
55460         (settime): Fall back on stime if it exists and settimeofday fails.
55461         But don't bother with fallbacks if a method fails with errno == EPERM.
55462
55463 2004-05-11  Jim Meyering  <jim@meyering.net>
55464
55465         Prior to this change, the save_cwd caller required read access to the
55466         current directory on most systems (ones with the fchdir function).
55467
55468         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55469         fails, try write-only, and finally, resort to using xgetcwd.
55470
55471 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         * lib/obstack.c, obstack.h: Import changes from libc.
55474
55475 2004-04-28  Bruno Haible  <bruno@clisp.org>
55476
55477         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55478         also implicitly appends .exe to executables.
55479         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55480         accepts Windows pathnames.
55481         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55482         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55483         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55484         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55485         Reported by Derek Robert Price <derek@ximbiot.com>.
55486
55487 2004-04-21  Karl Berry  <karl@gnu.org>
55488
55489         * config/srclist.txt (localcharset.c): break sync.
55490
55491 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55492
55493         * m4/host-os.m4: Add a copyright notice.
55494
55495 2004-04-20  Jim Meyering  <jim@meyering.net>
55496
55497         Change UTILS_ to gl_ in AC_DEFINE'd names.
55498         Change utils_- and jm_-prefixed variables, too.
55499         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55500         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55501         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55502
55503         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55504         Don't emit trailing blanks.
55505         Also rename jm_-prefixed variables to have gl_ prefix.
55506
55507         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55508         Also rename jm_-prefixed variables to have gl_ prefix.
55509
55510         * m4/jm-macros.m4: Reflect the renamings.
55511         * m4/prereq.m4: Likewise.
55512
55513 2004-04-20  Jim Meyering  <jim@meyering.net>
55514
55515         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55516         memory.
55517
55518 2004-04-20  Jim Meyering  <jim@meyering.net>
55519             Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55522         memory when realloc fails.
55523
55524 2004-04-19  Jim Meyering  <jim@meyering.net>
55525
55526         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55527         now that readutmp.c may call `free (0)'.
55528
55529 2004-04-19  Bruno Haible  <bruno@clisp.org>
55530
55531         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55532         * m4/inttypes_h.m4: Likewise.
55533         * m4/stdint_h.m4: Likewise.
55534         * m4/intmax_t.m4: Likewise.
55535         * m4/uintmax_t.m4: Likewise.
55536
55537 2004-04-18  Jim Meyering  <jim@meyering.net>
55538
55539         * m4/prereq.m4: Don't forbid jm_ prefix.
55540
55541         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55542         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55543         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55544         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55545         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55546         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55547         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55548         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55549         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55550         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55551         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55552         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55553         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55554         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55555         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55556         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55557         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55558         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55559         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55560
55561 2004-04-18  Jim Meyering  <jim@meyering.net>
55562
55563         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55564         failure, don't leak memory and do call END_UTMP_ENT.
55565
55566 2004-04-16  Jim Meyering  <jim@meyering.net>
55567
55568         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55569         coreutils' stat program.
55570         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55571
55572 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55573
55574         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55575         C89.
55576         (CHAR_BIT): Remove, since we assume C89.
55577         Include <stdint.h> if available, as per current Autoconf CVS advice.
55578
55579 2004-03-31  Jim Meyering  <jim@meyering.net>
55580
55581         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55582         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55583         * m4/xalloc.m4: Likewise.
55584
55585 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55586
55587         Merge from coreutils.
55588
55589         * m4/inttostr.m4: New file.
55590         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55591         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55592         Require gl_CLOCK_TIME.
55593         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55594
55595 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55596
55597         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55598         not bool, to be more consistent with Unix conventions.
55599         Suggested by Bruno Haible.
55600
55601         Merge from coreutils.
55602
55603         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55604         * lib/umaxtostr.c: New files.
55605
55606         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55607         the usual <time.h> dance.
55608         (get_date): Change signature to support fractional time stamps.
55609         All callers changed.
55610         * lib/getdate.y: Include "getdate.h" first, as we can now
55611         assume C89 and don't need to worry about 'const'.
55612         Similarly, include "unlocked-io.h" near start, not in middle.
55613         Include <limits.h>.
55614         (textint.value): Use long int rather than int.
55615         (textint.digits): Use size_t rather than int.
55616         (BILLION, LOG10_BILLION): New constants.
55617         (parser_control): New member rel_ns.  Members day_ordinal,
55618         time_zone, month, day, hour, minutes, rel_year, rel_month,
55619         rel_day, rel_hour, rel_minutes, rel_seconds
55620         are now long int, not int.  Member seconds is now struct timespec,
55621         not int.  New member timespec_seen.  Members dates_seen, days_seen,
55622         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
55623         not int.
55624         (%union.intval): Now long int, not int.
55625         New member timespec.
55626         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
55627         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
55628         (spec): Now is a timespec or an item list.
55629         (timespec, items): New nonterminals.
55630         (time, rel, relunit, number, get_date):
55631         Add support for fractional seconds.
55632         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
55633         (gmtime, localtime, mktime): Remove decls; not needed with C89.
55634         (to_hour): First arg is now long int, not int.
55635         (to_year): Returns long int, not int.
55636         Don't treat year -70 like 70.
55637         (tm_diff): Returns long int, not int.
55638         (lookup_word): Use bool instead of int when appropriate.
55639         (yylex): Use size_t for count, not int.
55640         Detect overflow when parsing large integer constants.
55641         Add support for fractions.
55642         (get_date): Make pointers 'const' if possible.
55643         Use more-portable code to detect integer overflow.
55644         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
55645         Don't use ctime; it's not reliable if the year has >4 digits.
55646
55647         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
55648         This is for compatibility with BSD.
55649
55650         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
55651         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
55652         From coreutils' system.h.
55653
55654         * lib/userspec.c: Don't include "posixver.h".
55655         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
55656         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
55657         compatible extension.  Simplify code by removing a boolean int
55658         that was always nonzero if a string was nonnull.
55659
55660 2004-03-30  Jim Meyering  <jim@meyering.net>
55661
55662         Merge from coreutils.
55663
55664         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
55665         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
55666         on some systems one must include <grp.h> before it.
55667         Reported by Christian Krackowizer.
55668
55669 2004-03-30  Jim Meyering  <jim@meyering.net>
55670
55671         Merge from coreutils.
55672
55673         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
55674
55675         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
55676         an empty input stream.
55677
55678         * lib/readtokens.c: Include <stdbool.h>.
55679         (readtoken): Use `size_t' rather than int/long.
55680         All callers adjusted.
55681         Use `bool' rather than `int' where appropriate.
55682         Use memset rather than an explicit loop.
55683         Use x2nrealloc rather than xrealloc.
55684         Allow the use of `\0' as a delimiter.
55685         (readtokens): Likewise.
55686         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
55687
55688 2004-03-30  Jim Meyering  <jim@meyering.net>
55689
55690         * m4/realloc.m4: Remove file, since now it does no more than
55691         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
55692         the `configure.ac' section of module/realloc.
55693         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
55694
55695 2004-03-30  Bruno Haible  <bruno@clisp.org>
55696
55697         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
55698         nonnull.
55699
55700 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55701
55702         Merge changes to getloadavg.c from coreutils and Emacs.
55703
55704         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
55705         Define to an expression, not to the empty string.
55706         Include cloexec.h and xalloc.h.
55707         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
55708         Use set_cloexec_flag rather than rolling our own.
55709         * lib/cloexec.c, lib/cloexec.h: New files.
55710
55711 2004-03-29  Paul Eggert  <eggert@twinsun.com>
55712
55713         * m4/cloexec.m4: New file.
55714
55715 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55716
55717         * lib/getopt.h: Sync with libc CVS.
55718
55719 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55720             Bruno Haible  <bruno@clisp.org>
55721
55722         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
55723         mbswidth.
55724
55725 2004-03-18  Paul Eggert  <eggert@twinsun.com>
55726             Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/mbswidth.h: Include <wchar.h> only if
55729         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
55730         <wchar.h>.
55731         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
55732
55733 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55734
55735         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
55736         Sync with libc CVS.
55737         * lib/getopt_int.h: New file, also synced from libc.
55738
55739 2004-03-09  Paul Eggert  <eggert@twinsun.com>
55740
55741         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
55742         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
55743         Bring back getopt.c, getopt.h, getopt1.c.
55744
55745 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55746
55747         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
55748         All uses changed.  Check for sa_sigaction member; this fixes
55749         a bug first reported by Jason Andrade in
55750         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55751
55752 2004-03-07  Paul Eggert  <eggert@twinsun.com>
55753
55754         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
55755         '#if' expressions.  Unlike the code it replaces, it does not
55756         depend on (defined _SC_PAGESIZE).  However, it does depend on
55757         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
55758         first reported by Jason Andrade in
55759         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
55760
55761 2004-02-25  Simon Josefsson  <jas@extundo.com>
55762
55763         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
55764
55765 2004-02-25  Simon Josefsson  <jas@extundo.com>
55766
55767         * lib/strdup.h: New file.
55768         * lib/strdup.c: Include it.
55769         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
55770         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
55771
55772 2004-02-23  Karl Berry  <karl@gnu.org>
55773
55774         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
55775         (from fencepost.gnu.org:/gd/gnuorg).
55776
55777 2004-02-23  Karl Berry  <karl@gnu.org>
55778
55779         * config/srclistvars.sh (GNUORG) [karl]: redefine.
55780         * config/srclist.txt: add maintain/standards documents.
55781
55782 2004-02-18  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
55785         Reported by Derek Robert Price <derek@ximbiot.com>.
55786
55787 2004-02-16  Karl Berry  <karl@gnu.org>
55788
55789         * config/mkinstalldirs, install-sh: update from automake.
55790
55791 2004-02-06  Karl Berry  <karl@gnu.org>
55792
55793         * m4/po.m4: update from gettext 0.14.1.
55794
55795 2004-02-06  Karl Berry  <karl@gnu.org>
55796
55797         * lib/config.charset: update from gettext 0.14.1.
55798
55799 2004-02-05  Paul Eggert  <eggert@twinsun.com>
55800
55801         Add comments and code, prompted by suggestions from Bruno Haible
55802         for sh-quote.
55803         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
55804         describing the enum quoting_style values.
55805         * lib/quotearg.c (quotearg_alloc): New function.
55806         (quotearg_buffer_restyled): Treat lone { and } as special.
55807         Treat = as special.  Work around bug with older shells
55808         that "see" a '\' that is really the 2nd byte of a multibyte char.
55809         Quote empty string with shell_quoting_style.
55810
55811 2004-02-03  Bruno Haible  <bruno@clisp.org>
55812
55813         * m4/pipe.m4: New file, from GNU gettext.
55814
55815 2004-02-03  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/pipe.h: New file, from GNU gettext.
55818         * lib/pipe.c: New file, from GNU gettext.
55819
55820 2004-01-27  Bruno Haible  <bruno@clisp.org>
55821
55822         * m4/execute.m4: New file, from GNU gettext.
55823
55824 2004-01-27  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/execute.h: New file, from GNU gettext.
55827         * lib/execute.c: New file, from GNU gettext.
55828         * lib/w32spawn.h: New file, from GNU gettext.
55829
55830 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55831
55832         Merge from diffutils.
55833
55834         * lib/file-type.c (file_type): Add typed memory objects.
55835         * lib/file-type.h (S_TYPEISTMO): New macro.
55836
55837         * lib/c-stack.h (c_stack_action): Remove argv argument.
55838         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
55839         (die): Don't calculate message unless segv_action returns.
55840         (get_stack_location, min_address_from_argv, max_address_from_argv,
55841         volatile stack_base, volatile_stack_size): Remove.
55842         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
55843         that every segmentation violation is a stack overflow.  (Ouch!)
55844         See Debian bug 136249 (still outstanding) for more info about why
55845         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
55846
55847 2004-01-24  Paul Eggert  <eggert@twinsun.com>
55848
55849         Exit-status fix from coreutils.
55850
55851         Use exit_failure consistently in place of EXIT_FAILURE,
55852         so that program exit statuses are consistent on failure.
55853
55854         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
55855         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
55856         * lib/argmatch.h: Comment fix to match the above.
55857         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
55858         Now a macro referring to exit_failure, instead of a separate
55859         variable.  Include "exitfail.h" to get it.
55860         * lib/xstrtol.h: Include "exitfail.h".
55861         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
55862
55863         * lib/long-options.c (parse_long_options): Use prototype
55864         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
55865         for clarity.
55866
55867 2004-01-21  Jim Meyering  <jim@meyering.net>
55868
55869         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
55870         so as not to conflict with a different-sized __mktime_internal
55871         function in GNU libc.
55872         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
55873         Problem building statically-linked `ls' reported by Michael Brunnbauer.
55874
55875 2004-01-20  Karl Berry  <karl@gnu.org>
55876
55877         * config/config.guess: update from config.
55878
55879         * config/srclistvars.sh: GNUWWWLICENSES for karl.
55880
55881 2004-01-20  Bruno Haible  <bruno@clisp.org>
55882
55883         Safer stack allocation.
55884         * lib/setenv.c: Include allocsa.h.
55885         (alloca): Remove fallback definition.
55886         (freea): Remove macro.
55887         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
55888         instead of freea.
55889
55890 2004-01-20  Bruno Haible  <bruno@clisp.org>
55891
55892         * m4/eealloc.m4: New file, from GNU gettext.
55893
55894 2004-01-20  Bruno Haible  <bruno@clisp.org>
55895
55896         * m4/allocsa.m4: New file, from GNU gettext.
55897
55898 2004-01-20  Bruno Haible  <bruno@clisp.org>
55899
55900         * lib/xallocsa.h: New file, from GNU gettext.
55901         * lib/xallocsa.c: New file, from GNU gettext.
55902
55903 2004-01-20  Bruno Haible  <bruno@clisp.org>
55904
55905         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
55906
55907 2004-01-20  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
55910         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
55911         specially.
55912
55913 2004-01-20  Bruno Haible  <bruno@clisp.org>
55914
55915         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
55916         patch.
55917
55918 2004-01-20  Bruno Haible  <bruno@clisp.org>
55919
55920         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
55921
55922 2004-01-20  Bruno Haible  <bruno@clisp.org>
55923
55924         * lib/eealloc.h: New file.
55925
55926 2004-01-20  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/binary-io.h: Avoid warnings on Cygwin.
55929
55930 2004-01-20  Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/allocsa.h: New file, from GNU gettext.
55933         * lib/allocsa.c: New file, from GNU gettext.
55934
55935 2004-01-18  Karl Berry  <karl@gnu.org>
55936
55937         * doc/gpl.texi, doc/lgpl.texi: new files.
55938
55939 2004-01-18  Karl Berry  <karl@gnu.org>
55940
55941         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
55942         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
55943
55944 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55945
55946         Merge from coreutils.
55947
55948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
55949         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
55950         (gl_DEFAULT_POSIX2_VERSION): Move
55951         the documentation from 'configure' into 'config.hin',
55952         so that 'configure --help' isn't burdened by it and
55953         we don't have to worry about its formatting there.
55954         Reword the documentation so that it's more succinct
55955         and can be run together into a single paragraph.
55956         * m4/same.m4 (gl_SAME): Check for pathconf.
55957
55958 2004-01-15  Paul Eggert  <eggert@twinsun.com>
55959
55960         Merge from coreutils.
55961
55962         * lib/posixver.c: Include posixver.h.
55963
55964         * lib/same.c: Include <stdbool.h>, <limits.h>.
55965         (_POSIX_NAME_MAX): Define if not defined.
55966         (MIN): New macro.
55967         (same_name): If file names are silently truncated, report
55968         that the file names are the same if they are the same after
55969         the silent truncation.
55970
55971         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
55972         conversion function.
55973         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
55974         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
55975         longer needed.
55976
55977 2004-01-15  Jim Meyering  <jim@meyering.net>
55978
55979         Merge from coreutils.
55980
55981         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
55982         if no library is required.
55983         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
55984         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
55985         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
55986         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
55987         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
55988         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
55989         value, $ac_cv_search_crypt, if it's "none required".
55990         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
55991         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
55992         not gl_FUNC_GETLOADAVG.
55993         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
55994         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
55995
55996 2004-01-15  Jim Meyering  <jim@meyering.net>
55997
55998         Merge from coreutils.
55999
56000         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56001         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56002         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56003
56004         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56005         optional configure-time default.
56006
56007         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56008
56009         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56010
56011 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56012
56013         Merge from coreutils.
56014
56015         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56016         value, $ac_cv_search_nanosleep, if it's "none required".
56017
56018 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56019
56020         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56021         with like-named macro in fnmatch.c.
56022         (EXT): Use an internal constant instead.
56023
56024         Merge fnmatch patches from glibc.
56025         * lib/fnmatch.c (mbsinit): Remove define.
56026         Add libc_hidden_ver (__fnmatch, fnmatch).
56027         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56028         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56029
56030 2004-01-14  Karl Berry  <karl@gnu.org>
56031
56032         * config/install-sh: update from automake.
56033
56034 2004-01-13  Karl Berry  <karl@gnu.org>
56035
56036         * config/install-sh: update from automake.
56037
56038 2004-01-09  Karl Berry  <karl@gnu.org>
56039
56040         * config/install-sh: update from automake.
56041
56042 2004-01-05  Karl Berry  <karl@gnu.org>
56043
56044         * config/config.{sub,guess}: update from config.
56045
56046 2003-12-31  Karl Berry  <karl@gnu.org>
56047
56048         * config/depcomp: update from automake.
56049
56050 2003-12-14  Karl Berry  <karl@gnu.org>
56051
56052         * lib/config.charset: update from gettext-runtime.
56053
56054 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56055
56056         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56057         Bug reported by Alfred M. Szmidt.
56058
56059 2003-12-03  Bruno Haible  <bruno@clisp.org>
56060
56061         * m4/gettext.m4: Upgrade from gettext-0.13.
56062         * m4/po.m4: Upgrade from gettext-0.13.
56063         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56064         * m4/intmax.m4: New file, from gettext-0.13.
56065         * m4/printf-posix.m4: New file, from gettext-0.13.
56066
56067 2003-11-29  Karl Berry  <karl@gnu.org>
56068
56069         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56070
56071 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56072             Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/printf-parse.h: Don't include sys/types.h.
56075         (ARG_NONE): New macro.
56076         (char_directive): Change type of *arg_index fields to size_t.
56077         * lib/printf-parse.c: Don't include sys/types.h.
56078         (SSIZE_MAX): Remove macro.
56079         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56080         Remove unnecessary overflow check.
56081         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56082         fields.
56083
56084 2003-11-25  Bruno Haible  <bruno@clisp.org>
56085
56086         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56087
56088 2003-11-25  Bruno Haible  <bruno@clisp.org>
56089
56090         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56091         gt_TYPE_SSIZE_T.
56092
56093 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56094
56095         * modules/alloca: Remove dependency on xalloc.
56096
56097 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56098
56099         * lib/alloca.c: Remove dependency on xalloc module.
56100         (xalloc_die): Remove.
56101         (memory_full) [!defined emacs]: New macro.
56102         [!defined emacs]: Don't include xalloc.h.
56103         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56104         address arithmetic overflows.  Change datatypes a bit to avoid
56105         unnecessary casts.
56106
56107 2003-11-22  Jim Meyering  <jim@meyering.net>
56108
56109         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56110         s/size/size_t/.
56111
56112 2003-11-21  Karl Berry  <karl@gnu.org>
56113
56114         * config/config.{sub,guess}: update from config.
56115
56116 2003-11-18  Karl Berry  <karl@gnu.org>
56117
56118         * config/config.{sub,guess}: update from config.
56119
56120         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56121
56122 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56123
56124         * README: Mention that S+T cannot overflow if S is the size of
56125         an existing object and T is sufficiently small.
56126
56127 2003-11-17  Jim Meyering  <jim@meyering.net>
56128
56129         On systems without utime and without a utimes function capable of
56130         dealing with a NULL struct utimbuf* argument, this utime replacement
56131         could -- in unusual circumstances -- leak a file descriptor.
56132         * lib/utime.c: Include <unistd.h> and <errno.h>.
56133         (utime_null): Be sure to close `fd' and to preserve errno.
56134         Reported by Geoff Collyer via Arnold Robbins.
56135
56136 2003-11-17  Bruno Haible  <bruno@clisp.org>
56137
56138         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56139         (Depends-on): Add xsize.
56140
56141 2003-11-17  Bruno Haible  <bruno@clisp.org>
56142
56143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56144
56145 2003-11-17  Bruno Haible  <bruno@clisp.org>
56146
56147         * lib/vasnprintf.c (alloca): Remove fallback definition.
56148         (freea): Remove definition.
56149         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56150         Reported by Paul Eggert.
56151
56152 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56153             Bruno Haible  <bruno@clisp.org>
56154
56155         Protect against address arithmetic overflow.
56156         * lib/printf-args.h: Include stddef.h.
56157         (arguments): Change type of field 'count' to size_t.
56158         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56159         'unsigned int' where appropriate.
56160         * lib/printf-parse.h: Include sys/types.h.
56161         (char_directive): Change type of *arg_index fields to ssize_t.
56162         (char_directives): Change type of fields 'count', max_*_length to
56163         size_t.
56164         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56165         (SSIZE_MAX): Define fallback value.
56166         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56167         instead of 'int' where appropriate. Check a_allocated, d_allocated
56168         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56169         * lib/vasnprintf.c: Include xsize.h.
56170         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56171         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56172         overflow. Avoid wraparound when converting a width or precision from
56173         decimal to binary.
56174
56175 2003-11-16  Bruno Haible  <bruno@clisp.org>
56176
56177         Update from GNU gettext.
56178         * lib/printf-parse.c: Generalize to it can be compiled for wide
56179         strings.
56180         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56181         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56182         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56183         SNPRINTF): New macros.
56184         Don't include <alloca.h> if the file is used inside libintl.
56185         (local_wcslen): New function, for Solaris 2.5.1.
56186         (VASNPRINTF): Use it instead of wcslen.
56187
56188 2003-11-16  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/xsize.h (xmax): New function.
56191         (xsum, xsum3, xsum4): Declare as "pure" functions.
56192
56193 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56194
56195         * modules/xalloc (Files): Undo latest change, since xalloc.h
56196         no longer needs SIZE_MAX or PTRDIFF_MAX.
56197
56198 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56199
56200         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56201         gl_PTRDIFF_MAX.
56202
56203 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56204
56205         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56206         "return", to pacify some unknown compiler.  Problem reported
56207         by Joerg Schilling.
56208
56209 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56210
56211         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56212         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56213         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56214         heuristic is just as accurate as far as we know, and it removes a
56215         dependency on size_max.m4 and ptrdiff_max.m4.
56216
56217 2003-11-11  Bruno Haible  <bruno@clisp.org>
56218
56219         * modules/xsize (Files): Add m4/size_max.m4.
56220         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56221
56222 2003-11-11  Bruno Haible  <bruno@clisp.org>
56223
56224         * m4/size_max.m4: New file.
56225         * m4/ptrdiff_max.m4: New file.
56226         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56227         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56228         (gl_XALLOC): Invoke it.
56229
56230 2003-11-11  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56233         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56234         defined.
56235
56236 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56237
56238         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56239         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56240         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56241         From Bruno Haible.
56242         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56243         not (size_t) -1, since it's defined here.
56244
56245 2003-11-09  Karl Berry  <karl@gnu.org>
56246
56247         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56248
56249 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56250
56251         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56252         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56253         Reject sizes of exactly SIZE_MAX bytes.
56254         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56255         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56256
56257 2003-11-05  Bruno Haible  <bruno@clisp.org>
56258
56259         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56260         SIZE_MAX defined in <limits.h> on Solaris.
56261
56262 2003-11-04  Jim Meyering  <jim@meyering.net>
56263
56264         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56265         variable names, rather than @VAR@.
56266         * modules/poll: Likewise.
56267
56268 2003-11-04  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/xsize: New file.
56271         * modules/linebreak: Depend on xsize.
56272         * MODULES.html.sh (func_all_modules): Add xsize.
56273
56274 2003-11-04  Bruno Haible  <bruno@clisp.org>
56275
56276         * m4/xsize.m4: New file.
56277
56278 2003-11-04  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/xsize.h: New file.
56281         * lib/linebreak.c: Include xsize.h.
56282         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56283         argument for overflow.
56284         Suggested by Paul Eggert.
56285
56286 2003-11-03  Karl Berry  <karl@gnu.org>
56287
56288         * config/config.{guess,sub}: update from config.
56289
56290 2003-11-03  Jim Meyering  <jim@meyering.net>
56291
56292         * modules/userspec (lib_SOURCES): Add userspec.h.
56293         (Include): Add "userspec.h".
56294         Improve description.
56295
56296 2003-11-03  Jim Meyering  <jim@meyering.net>
56297
56298         * lib/userspec.c: Include "userspec.h".
56299         * lib/userspec.h: New file.
56300
56301 2003-11-03  Bruno Haible  <bruno@clisp.org>
56302
56303         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56304
56305 2003-11-03  Bruno Haible  <bruno@clisp.org>
56306
56307         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56308         available, to avoid (extremely rare) race condition.
56309         Suggested by Paul Eggert.
56310
56311 2003-11-02  Karl Berry  <karl@gnu.org>
56312
56313         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56314
56315 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56316
56317         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56318         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56319         (read_filesystem_list): Set and use me_type_malloced.
56320         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56321         whatever the type happens to be), for brevity and consistency.
56322         Check for size calculation overflow on Alphas running OSF/1.
56323
56324 2003-10-31  Jim Meyering  <jim@meyering.net>
56325
56326         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56327
56328         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56329
56330 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56331             Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56334         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56335
56336 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56337
56338         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56339         netbsd*-gnu*.  Suggested by Robert Millan.
56340
56341 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56342
56343         * modules/group-member: Depend on stdbool.
56344
56345 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56346
56347         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56348
56349 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56350
56351         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56352         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56353         after the 'gnu' in these cases.  This fixes some bugs in the
56354         previous change, and is based on suggestions by Robert Millan.
56355
56356 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56357
56358         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56359         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56360         no longer needed.
56361         * lib/quotearg.c (quotearg_n_options): Use it.
56362         * lib/group-member.c: Include <stdbool.h>.
56363         (free_group_info): Arg is now const *; don't free arg.
56364         (get_group_info): Now returns bool and accepts struct group_info *,
56365         rather than returning a malloc'ed struct group_info *.
56366         All uses changed.  Check for overflow in internal size calculation.
56367
56368         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56369         rather than xmalloc/xrealloc.
56370         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56371         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56372         conformance bug: the old code used a pointer after freeing the
56373         storage that it addressed.
56374         * lib/hash.c (hash_initialize): Simplify the code by using
56375         xalloc_oversized rather than doing it by hand.
56376         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56377         the buffer preserved.  Use free and xmalloc instead.
56378         * lib/quotearg.c (quotearg_n_options): Likewise.
56379         Use a simpler test for size overflow.  Don't use xalloc_oversized
56380         because unsigned int might be wider than size_t (!); this suggests
56381         that we should switch from unsigned int to size_t for slot numbers.
56382
56383 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56384
56385         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56386         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56387         NetBSD kernels.  Requested by Richard Stallman.
56388
56389 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56390
56391         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56392         to allocate the returned structure.  Do not allocate a subarray,
56393         as x2nrealloc will do that.
56394         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56395         instead of xnrealloc.
56396         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56397
56398 2003-10-27  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/stdbool_.h: Better support for BeOS.
56401
56402 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56403
56404         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56405         now uses inline.
56406
56407 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56408
56409         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56410         callers that want to do their own size-overflow checking.  Include
56411         <stdbool.h>, since xalloc_oversized returns bool.
56412         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56413         to use xalloc_oversized.
56414
56415         Add two functions x2realloc, x2nrealloc, for programs that grow
56416         arrays dynamically by doubling their sizes.
56417         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56418         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56419         New functions.
56420
56421         Port to C99 semantics for 'inline' of external functions.
56422         Bug reported by Bruno Haible.
56423         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56424         with the old contents of xnmalloc.
56425         (xnmalloc, xmalloc): Use it.
56426         (xnrealloc_inline): New static inline function,
56427         with the old contents of xnrealloc.
56428         (xnrealloc, xrealloc): Use it.
56429
56430         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56431         that.
56432
56433 2003-10-26  Karl Berry  <karl@gnu.org>
56434
56435         * config/srclist.txt (COPYING.DOC): no longer available from
56436         /gd/gnuorg; don't know where the ultimate source is.
56437
56438 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56439
56440         Fix several address-calculation bugs in the hash modules,
56441         plus some minor code cleanup.
56442
56443         * lib/hash.h: Include <stdbool.h>, for bool.
56444         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56445         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56446         hash_get_n_entries, hash_get_max_bucket_length,
56447         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56448         hash_rehash): Use size_t rather than unsigned.
56449         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56450         hash_get_n_buckets_used, hash_get_n_entries,
56451         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56452         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56453         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56454         Likewise.
56455         (SIZE_MAX): Define if not defined.
56456         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56457         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56458         hash_print):
56459         Use const * when possible.
56460         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56461         (check_tuning): Fix bug: if tuning parameters were very close to
56462         0 or 1, rounding errors could have caused subscript violations.
56463         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56464         (hash_initialize): Add 'fail:' label
56465         to free table and return NULL, and use it to simplify code.
56466         Use calloc rather than clearing the storage ourself.
56467         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56468         buffer size calculations.
56469         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56470         Include <stddef.h>, for size_t.
56471         * lib/hash-pjw.c (hash_pjw): Likewise.
56472         Switch to method described by Bruno Haible.
56473         Include <limits.h>, for CHAR_BIT.
56474         (SIZE_BITS): New macro.
56475
56476 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56477
56478         * m4/getline.m4 (AM_FUNC_GETLINE):
56479         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56480         hosts.  Problem reported by Derek Robert Price in
56481         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56482         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56483         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56484
56485 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56486
56487         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56488         ceiling the allocation at NMAX bytes rather than silently
56489         discarding input bytes before NMAX is reached.  This makes
56490         a difference only if NMAX exceeds SIZE_MAX / 2.
56491
56492         * lib/obstack.c: Merge from glibc.
56493         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56494         Add libc_hidden_def (_obstack_newchunk).
56495         (_obstack_free) [! defined _LIBC]: Remove.
56496         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56497         a clone of the function body.
56498         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56499         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56500
56501         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56502         glibc.
56503         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56504         arg to memcpy.
56505
56506         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56507         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56508         Don't use lvalue casts, as GCC plans to remove support for them
56509         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56510         was also present in the non-GCC version, indicating that this
56511         code had always been buggy and had never been widely used.
56512         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56513         Use the fast variant of each macro, rather than copying the
56514         definiens of the fast variant; that way, we'll be more likely to
56515         catch future bugs in the fast variants.
56516
56517 2003-10-20  Bruno Haible  <bruno@clisp.org>
56518
56519         * modules/wait-process: New file.
56520         * MODULES.html.sh (func_all_modules): Add wait-process.
56521
56522 2003-10-20  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/wait-process.m4: New file.
56525
56526 2003-10-20  Bruno Haible  <bruno@clisp.org>
56527
56528         * lib/wait-process.h: New file, from GNU gettext.
56529         * lib/wait-process.c: New file, from GNU gettext.
56530
56531 2003-10-19  Jim Meyering  <jim@meyering.net>
56532
56533         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56534         HPUX 10.20.
56535
56536 2003-10-18  Karl Berry  <karl@gnu.org>
56537
56538         * config/config.guess: update from config.
56539
56540 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56541
56542         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56543         (getgroups): First arg is int, not size_t.
56544         Don't let 'free' mangle errno.
56545
56546 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56547
56548         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56549
56550 2003-10-16  Karl Berry  <karl@gnu.org>
56551
56552         * config/config.{guess,sub}: update from config.
56553
56554 2003-10-16  Jim Meyering  <jim@meyering.net>
56555
56556         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56557         memcpy.
56558
56559 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56560
56561         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56562         (SIZE_MAX): Remove.
56563         (new_exclude, add_exclude_file): Initial size no longer needs to
56564         be a power of 2.
56565         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56566         our own address arithmetic overflow checking.
56567
56568         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56569         (fnmatch): Do not alloca more than 2000 wide characters;
56570         instead, use malloc for large buffers.
56571         Check for address arithmetic overflow, and return -1
56572         with errno set to ENOMEM in that case.
56573         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56574         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56575         instead, return -1.  Check for address arithmetic overflow.
56576
56577 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56578
56579         Handle invalid suffixes and overflow independently, so that
56580         callers can treat them independently as needed.  Fix some bugs in
56581         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56582         suffix for a human-readable blocksize.  The major caller-visible
56583         change is the addition of a new
56584         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56585         that both overflow and suffix chars were found.
56586
56587         * lib/human.c (humblock): Don't check separately for invalid suffix
56588         char; that is xstrtoumax's job (now that its bug is fixed).
56589         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56590         INTMAX_MAX]: New macros.
56591         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56592         TYPE_MAXIMUM): New macros.
56593         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56594         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56595         if overflow occurs, as it's what __strtol does and it's more useful
56596         in practice.
56597         (__xstrtol): If __strtol reports some error other than ERANGE,
56598         reflect it to the caller as LONGINT_INVALID.  If it reports
56599         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56600         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56601         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56602         value.
56603         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56604         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56605         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56606         [defined UINTMAX_MAX]: New macros.
56607
56608 2003-10-14  Bruno Haible  <bruno@clisp.org>
56609
56610         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56611
56612 2003-10-14  Bruno Haible  <bruno@clisp.org>
56613
56614         * m4/sig_atomic_t: New file, from GNU gettext.
56615         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56616
56617 2003-10-14  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
56620         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
56621         Also use volatile where needed.
56622
56623 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56624
56625         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
56626         Change maintainer from Bruno Haible to 'all'.
56627
56628 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56629
56630         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
56631
56632 2003-10-12  Paul Eggert  <eggert@twinsun.com>
56633
56634         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
56635         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
56636         and define in terms of the other primitives.
56637         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
56638         (SIZE_MAX): Define if not already defined.
56639         (array_size_overflow): New function.
56640         (xalloc_die): Abort instead of exiting if 'error' returns.
56641         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
56642         (xmalloc, xrealloc): Use them.
56643         (xcalloc): Check for address arithmetic overflow.
56644         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
56645         a bit faster than strcpy.
56646
56647 2003-10-10  Simon Josefsson  <jas@extundo.com>
56648
56649         * modules/argp (Depends-on): Add restrict and strcase.
56650
56651 2003-10-10  Simon Josefsson  <jas@extundo.com>
56652
56653         * m4/argp.m4: Add AC_C_INLINE.
56654
56655 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56656
56657         Merge getpass from libc, plus a few fixes.
56658
56659         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
56660         Include <stdbool.h>.
56661         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
56662         __fsetlocking to empty.
56663         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
56664         do include <bits/libc-lock.h>.
56665         Do not include <fcntl.h>; not needed.
56666         [_LIBC]: Include <wchar.h>.
56667         (NOTCANCEL_MODE): New macro.
56668         (flockfile, funlockfile) [_LIBC]: New macros.
56669         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
56670         [!_LIBC]: New macros.
56671         (call_fclose): New function.
56672         (getpass): Use it.  Save tty stream separately; this simplifies the
56673         code and makes it more reliable if stdin happens to equal stdout.
56674         Invoke __fsetlocking on tty.
56675         Handle thread cancellation if needed.
56676         Namespace cleanup (use __tcgetattr, __getline).
56677         Use bool for Booleans.
56678         [USE_IN_LIBIO]: Handle wide streams.
56679         [!_LIBC]: Unconditionally do the fseek, since we don't know what
56680         stream might go where.
56681
56682         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
56683         doesn't have to include <stdio.h> before us.
56684         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
56685         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
56686         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
56687         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
56688         if not declared, so that we can use getpass.c code from libc without
56689         rewriting it.
56690         (flockfile, ftrylockfile, funlockfile): New macros.
56691
56692 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56693
56694         * modules/getpass: Depend on stdbool.
56695
56696 2003-10-08  Paul Eggert  <eggert@twinsun.com>
56697
56698         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
56699
56700 2003-10-07  Karl Berry  <karl@gnu.org>
56701
56702         * config/config.{guess,sub}: update from config.
56703
56704 2003-10-06  Jim Meyering  <jim@meyering.net>
56705             Bruno Haible  <bruno@clisp.org>
56706
56707         This lets translators provide better translations for the
56708         "Written by ..." part of --version output.
56709         * lib/version-etc.h: Include stdarg.h.
56710         (version_etc_copyright): Declare as readonly.
56711         (version_etc): Make this function variadic with a NULL-terminated list
56712         of author name strings.
56713         (version_etc_va): New declaration.
56714         * lib/version-etc.c: Include stdarg.h, stdlib.h.
56715         (version_etc_copyright): Declare as readonly.
56716         (version_etc_va): New function. Provide a different translatable string
56717         for each possible number of authors < 10. Abbreviate when there are 10
56718         authors or more.
56719         (version_etc): Make this function variadic. Call version_etc_va.
56720         Suggestion from Gary V. Vaughan.
56721
56722         * lib/long-options.h (parse_long_options): Change prototype: the
56723         authors string is moved to the end and becomes variadic.
56724         * lib/long-options.c: Include stdarg.h.
56725         (parse_long_options): Make this function variadic, too.
56726         Call version_etc_va, not version_etc.
56727
56728 2003-10-06  Bruno Haible  <bruno@clisp.org>
56729
56730         * modules/version-etc-2: Remove file.
56731         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
56732
56733 2003-10-06  Bruno Haible  <bruno@clisp.org>
56734
56735         * modules/fatal-signal: New file.
56736         * MODULES.html.sh (func_all_modules): Add fatal-signal.
56737
56738 2003-10-06  Bruno Haible  <bruno@clisp.org>
56739
56740         * m4/fatal-signal.m4: New file.
56741         * m4/signalblocking.m4: New file, from GNU gettext.
56742
56743 2003-10-06  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/version-etc-2.h: Remove file.
56746         * lib/version-etc-2.c: Remove file.
56747
56748 2003-10-06  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/fatal-signal.h: New file, from GNU gettext.
56751         * lib/fatal-signal.c: New file, from GNU gettext.
56752
56753 2003-10-05  Paul Eggert  <eggert@twinsun.com>
56754
56755         * README: Rework advice for preventing empty .o files.
56756         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
56757         not <sys/types.h>.
56758
56759 2003-10-04  Karl Berry  <karl@gnu.org>
56760
56761         * lib/argp*: update from libc.
56762
56763 2003-10-04  Karl Berry  <karl@gnu.org>
56764
56765         * config/config.{guess,sub}: update from config.
56766
56767 2003-10-02  Bruno Haible  <bruno@clisp.org>
56768
56769         * modules/lchown (Include): Add lchown.h.
56770         * modules/time_r (Include): Use "..." syntax.
56771         * modules/xgetdomainname (Include): Add xgetdomainname.h.
56772
56773 2003-10-01  Simon Josefsson  <jas@extundo.com>
56774
56775         * MODULES.html.sh (func_all_modules): Move gethostname from section
56776         'based on' to section 'lacking' POSIX:2001.
56777
56778 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
56779
56780         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
56781         to output mode on the same stream.
56782
56783 2003-09-29  Paul Eggert  <eggert@twinsun.com>
56784
56785         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
56786         Fix arg typo in previous patch.
56787
56788 2003-09-28  Jim Meyering  <jim@meyering.net>
56789
56790         * lib/error.c: Correct cpp indentation.
56791
56792 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56793
56794         * modules/free: New file.
56795
56796 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56797
56798         * m4/free.m4: New file.
56799
56800 2003-09-27  Paul Eggert  <eggert@twinsun.com>
56801
56802         * lib/minmax.h (MIN, MAX)
56803         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
56804         Omit the special code that used __typeof__, since we worry that
56805         it could be more trouble than it's worth.  See:
56806         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
56807         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
56808
56809         * lib/free.c: New file.
56810
56811 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
56812
56813         Trivial fixes to Makefile.am parts of module listings.
56814         * modules/strstr: Append strstr.h to lib_SOURCES.
56815         * modules/strcase: Likewise, for strcase.h.
56816
56817 2003-09-27  Karl Berry  <karl@gnu.org>
56818
56819         * config/mkinstalldirs: update from automake.
56820
56821 2003-09-26  Paul Eggert  <eggert@twinsun.com>
56822
56823         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
56824         (error_tail): Do not loop, reallocating temporary buffer, since
56825         the output cannot contain more wide characters than the input
56826         contains bytes, the size must be big enough already.  This avoids
56827         one potential size overflow calculation.  Check for size overflow
56828         when calculating temporary buffer size.  Free temporary buffer
56829         when done, if it was allocated with malloc; this plugs a memory
56830         leak.  Remove casts from void * to pointers, that are no longer
56831         needed now that we're assuming C89 or better.
56832
56833         Merge error changes from glibc.
56834
56835         * lib/error.c, error.h: Update copyright notice header to match glibc.
56836         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
56837         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
56838         Disable cancellation while printing error.
56839         * lib/error.h: Prepend __ to parameter names.
56840
56841 2003-09-26  Jim Meyering  <jim@meyering.net>
56842
56843         * lib/error.c (error_tail): Move some declarations
56844         into inner scope where the local variables are used.
56845
56846 2003-09-26  Bruno Haible  <bruno@clisp.org>
56847
56848         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
56849         stpncpy().
56850         Don't define stpncpy through config.h; it's now done through stpncpy.h.
56851
56852 2003-09-26  Bruno Haible  <bruno@clisp.org>
56853
56854         * lib/stpncpy.h (gnu_stpncpy): New declaration.
56855         (stpncpy): Define as alias for gnu_stpncpy.
56856         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
56857
56858 2003-09-25  Simon Josefsson  <jas@extundo.com>
56859
56860         * lib/xgetdomainname.h: New file.
56861         * lib/xgetdomainname.c: New file.
56862
56863 2003-09-25  Simon Josefsson  <jas@extundo.com>
56864             Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/getdomainname: New file.
56867         * modules/xgetdomainname: New file.
56868         * MODULES.html.sh (func_all_modules): Add getdomainname,
56869         xgetdomainname.
56870
56871 2003-09-25  Simon Josefsson  <jas@extundo.com>
56872             Bruno Haible  <bruno@clisp.org>
56873
56874         * m4/getdomainname.m4: New file.
56875
56876 2003-09-25  Simon Josefsson  <jas@extundo.com>
56877             Bruno Haible  <bruno@clisp.org>
56878
56879         * lib/getdomainname.h: New file.
56880         * lib/getdomainname.c: New file.
56881
56882 2003-09-25  Karl Berry  <karl@gnu.org>
56883
56884         * lib/argp-fmtstream.c, argp-help.c: update from libc.
56885
56886 2003-09-25  Karl Berry  <karl@gnu.org>
56887
56888         * config/install-sh: update from automake.
56889
56890 2003-09-25  Bruno Haible  <bruno@clisp.org>
56891
56892         * modules/version-etc-2: New file, from modules/version-etc with
56893         modifications.
56894         * MODULES.html.sh (func_all_modules): Add version-etc-2.
56895
56896 2003-09-25  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
56899         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
56900
56901 2003-09-24  Simon Josefsson  <jas@extundo.com>
56902
56903         * modules/xgethostname: Add xgethostname.h.
56904
56905 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56906
56907         * lib/linebuffer.c (freebuffer): Don't free the argument, just
56908         the buffer associated with the argument.  Bug reported by
56909         Simon Josefsson.
56910
56911 2003-09-24  Paul Eggert  <eggert@twinsun.com>
56912
56913         * README: Document assumptions that 'int' is at least 32 bits
56914         wide, that integer arithmetic is 2's complement without overflow,
56915         that there are no holes in integer values, that adding sizes of
56916         two nonoverlapping objects can't overflow, and that all-bits-zero
56917         yields scalar zero.  Fix spelling and capitalization typos.
56918
56919 2003-09-19  Karl Berry  <karl@gnu.org>
56920
56921         * lib/argp.h: update from libc.
56922
56923 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56924
56925         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
56926         to avoid spurious warnings like "AC_RUN_IFELSE was called before
56927         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
56928
56929 2003-09-17  Paul Eggert  <eggert@twinsun.com>
56930
56931         * gnulib-tool: Use "test -h", not "test -L", for portability
56932         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
56933         (tags_regexp): Remove, since \| doesn't conform to POSIX.
56934         (sed_extract_prog): Issue s commands one-by-one, rather than
56935         using \| in one s command.
56936
56937 2003-09-16  Paul Eggert  <eggert@twinsun.com>
56938
56939         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
56940         input error, instead of returning NULL the next time we are called
56941         (and therefore losing track of errno).
56942
56943 2003-09-16  Bruno Haible  <bruno@clisp.org>
56944
56945         * gnulib-tool (func_create_testdir): Warn about duplicated
56946         dependencies.
56947
56948 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56949
56950         * modules/argmatch, modules/fatal, modules/obstack,
56951         modules/xalloc, modules/xgethostname: Sort dependencies by
56952         importance, not alphabetically.
56953
56954 2003-09-15  Paul Eggert  <eggert@twinsun.com>
56955
56956         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
56957         fails, so that the caller gets the proper errno.
56958
56959         * lib/readutmp.c (read_utmp): Likewise.
56960         Check for fstat error.  Close stream and free storage
56961         when failing.
56962
56963 2003-09-14  Karl Berry  <karl@gnu.org>
56964
56965         * config/srclist.txt (strdup.c): disable for c89 changes.
56966
56967 2003-09-14  Jim Meyering  <jim@meyering.net>
56968
56969         * lib/getloadavg.c: Correct cpp indentation.
56970         * lib/strdup.c: Likewise.
56971         * lib/vasnprintf.c: Likewise.
56972
56973 2003-09-14  Bruno Haible  <bruno@clisp.org>
56974
56975         * modules/fwriteerror: New file.
56976         * MODULES.html.sh (func_all_modules): Add fwriteerror.
56977
56978 2003-09-14  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/fwriteerror.h: New file.
56981         * lib/fwriteerror.c: New file.
56982
56983 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56984
56985         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
56986         modules/xgethostname, modules/xalloc: Depend on exit.
56987
56988 2003-09-12  Paul Eggert  <eggert@twinsun.com>
56989
56990         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
56991
56992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
56993         and AC_MINIX, too, so that their extensions are available.
56994
56995         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
56996         This macro has been superseded by gl_BACKUPFILE.
56997
56998         More patches to assume C89 or better.
56999
57000         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57001
57002         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57003         unconditionally.
57004         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57005         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57006         Include <string.h>, <stdlib.h> unconditionally.
57007         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57008         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57009         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57010         headers or for string.h.
57011         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57012         or strtoul.
57013
57014         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57015         headers.
57016         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57017         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57018         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57019         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57020         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57021         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57022         memcpy, memset.
57023         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57024         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57025         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57026         strtol.
57027         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57028         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57029         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57030         strtoul.
57031
57032 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57033
57034         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57035         * lib/obstack.c [!defined _LIBC]: Likewise.
57036         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57037         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57038         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57039
57040         More changes to assume C89 or better.
57041
57042         * lib/error.c (error_tail): Assume vprintf.
57043
57044         * lib/argmatch.c (getenv): Remove decl.
57045         * lib/progreloc.c (get_full_program_name): Define via prototype.
57046         * lib/setenv.c (clearenv): Likewise.
57047         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57048         needed.
57049         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57050         (malloc, memcpy): Remove decls.
57051         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57052         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57053         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57054         (memcpy): Remove macro.
57055         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57056         (__P): Remove.  All uses removed.
57057         (PTR): Remove.  All uses changed to void *.
57058         (CHAR_BIT, NULL): Remove.
57059         (spaces, zeros, memset_space, memset_zero)
57060         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57061         Remove.
57062         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57063         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57064         Define with prototype.
57065         Remove now-unnecessary prototype decl.
57066         (extra_args_spec): Assume ANSI C.  All uses changed.
57067         (extra_args_spec_iso): Remove.
57068         (my_strftime, emacs_strftimeu): Define via prototype.
57069         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57070         unconditionally.
57071         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57072         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57073         (strtoul, strtol): Remove decls.
57074         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57075         LONG_MAX): Remove.
57076         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57077         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57078         (LOCALE_PARAM_PROTO): New macro.
57079         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57080         (INTERNAL (strtol), strtol): Define with a prototype.
57081         (PARAMS): Remove.  All uses removed.
57082         * lib/tempname.c: Include <string.h> unconditionally.
57083         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57084         * lib/xgethostname.c (main): Define with a prototype.
57085         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57086         Include <stdlib.h> unconditionally.
57087         (calloc, malloc, realloc, free): Remove decls.
57088         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57089         Include <stdlib.h> unconditionally.  Sort include file names.
57090         (strtod): Remove.
57091         (xstrtod): Define with a prototype.
57092         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57093         (strtol, strtoul): Remove decls.
57094
57095 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57096
57097         More patches to assume C89 or better.
57098         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57099         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57100         string.h, memchr, STDC_HEADERS.
57101
57102 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57103
57104         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57105         Include <stdlib.h>, <string.h> unconditionally.
57106         Remove now-unnecessary cast to char *.
57107         * lib/strnlen.c: Include <string.h> unconditionally.
57108         * lib/yesno.c (yesno): Define with a prototype.
57109
57110 2003-09-11  Bruno Haible  <bruno@clisp.org>
57111
57112         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57113
57114 2003-09-10  Jim Meyering  <jim@meyering.net>
57115
57116         * lib/error.c: Correct indentation of cpp directives.
57117
57118 2003-09-10  Bruno Haible  <bruno@clisp.org>
57119
57120         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57121         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57122         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57123         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57124         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57125         <stdlib.h> and <string.h> checks.
57126         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57127         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57128
57129 2003-09-10  Bruno Haible  <bruno@clisp.org>
57130
57131         * lib/strcspn.c: Include <string.h> unconditionally.
57132         * lib/strpbrk.c: Include <string.h> unconditionally.
57133         * lib/strstr.c: Include <string.h> unconditionally.
57134         * lib/unicodeio.c: Include <string.h> unconditionally.
57135         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57136         * lib/unsetenv.c: Likewise.
57137         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57138         * lib/yesno.c: Include <stdlib.h> unconditionally.
57139         (rpmatch): Add prototype.
57140
57141 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57142
57143         More patches to assume C89 or better.
57144         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57145         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57146         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57147         or for string.h.
57148         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57149         stdlib.h.
57150         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57151         C headers.
57152         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57153         string.h.
57154         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57155         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57156         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57157         or for string.h.
57158         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57159         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57160         C headers.
57161         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57162         memcpy.
57163         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57164         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57165         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57166         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57167         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57168         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57169         string.h, free.
57170         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57171         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57172         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57173         C headers, or for string.h.
57174         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57175         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57176         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57177         headers, memory.h, stdlib.h, string.h, strings.h.
57178         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57179         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57180         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57181         strchr.
57182         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57183         headers, memory.h, string.h.
57184         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57185         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57186         free.
57187         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57188         headers.
57189         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57190         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57191         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57192         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57193         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57194
57195 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57196
57197         More K&R removal.
57198
57199         * lib/acosl.c (main): Use a prototype.
57200         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57201         tanl.c: Likewise.
57202
57203         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57204
57205         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57206         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57207         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57208         with a prototype.
57209         * lib/getopt.c (const): Remove macro.
57210         Include <string.h> unconditionally.
57211         (my_index): Remove; all uses changed to strchr.
57212         (strlen): Remove decl.
57213         (exchange): Remove forward decl; no longer needed.
57214         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57215         Define with prototype.
57216         * lib/getopt1.c (const): Remove macro.
57217         (getopt_long, getopt_long_only, main): Define with prototype.
57218
57219         * lib/getugroups.c: Include <string.h> unconditionally.
57220
57221         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57222         (getusershell, setusershell, endusershell, readname, main):
57223         Define with prototypes.
57224
57225         * lib/group-member.c: Include group-member.h first.
57226         Include <stdlib.h> unconditionally.
57227
57228         * lib/hard-locale.c: Include hard-locale.h first.
57229         Include <stdlib.h>, <string.h> unconditionally.
57230
57231         * lib/hash.c (free, malloc): Remove decls.
57232         Include <stdlib.h> unconditionally.
57233
57234         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57235         (getenv): Do not declare.
57236
57237         * lib/idcache.c: Include <string.h> unconditionally.
57238
57239         * lib/long-options.c: Include long-options.h first, to test interface.
57240         Include <stdlib.h> unconditionally.
57241
57242         * lib/makepath.c: Include makepath.h first, to test interface.
57243         Include <stdlib.h> and <string.h> unconditionally.
57244
57245         * lib/linebuffer.c: Include <stdlib.h>.
57246         (free): Remove decl.
57247
57248         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57249         stddef.h. rpl_malloc returns void *, not char *.
57250         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57251         prototype.
57252
57253         * lib/md5.h: Include <limits.h> unconditionally.
57254         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57255         (__P): Remove; all uses removed.
57256         * lib/md5.c: Include "md5.h" first.
57257         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57258         md5_buffer, md5_process_bytes, md5_process_block):
57259         Define with prototypes.
57260         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57261         * lib/sha.c: Include "sha.h" first.
57262         Include <stdlib.h>, <string.h> unconditionally.
57263
57264         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57265         * lib/memcmp.c (__ptr_t): Likewise.
57266         * lib/memrchr.c (__ptr_t): Likewise.
57267         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57268         Include <string.h> unconditionally.
57269         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57270         * lib/memchr.c: Include <stdlib.h> unconditionally.
57271         * lib/memchr.c (LONG_MAX): Remove.
57272         * lib/memrchr.c (LONG_MAX): Likewise.
57273         * lib/memchr.c (__memchr): Define via a prototype.
57274         * lib/memrchr.c (__memrchr): Likewise.
57275         * lib/memcmp.c (__P): Remove, and remove all uses.
57276         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57277         Remove forward decls; no longer needed.
57278         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57279         Use types required by C89 in prototype.
57280
57281         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57282         * lib/savedir.c: Likewise.
57283         * lib/mkdir.c (free): Remove decl.
57284         * lib/rmdir.c (rmdir): Define with a prototype.
57285         * lib/savedir.c: Include savedir.h first, to test interface.
57286
57287         * lib/mktime.c (STDC_HEADERS): Remove.
57288         Include <stdlib.h>, <string.h> unconditionally.
57289
57290         * lib/modechange.c: Include <stdlib.h> unconditionally.
57291         (malloc): Remove decl.
57292
57293         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57294         (free): Remove decl.
57295
57296         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57297         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57298         (This type really should be intptr_t, but that's a C99ism.)
57299         (_obstack_memcpy): Remove: all uses changed to memcpy.
57300         Include <string.h> unconditionally.
57301         (struct obstack): Assume __STDC__ for types of members
57302         chunkfun, freefun, extra_arg.
57303         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57304         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57305         obstack_begin, obstack_specify_allocation,
57306         obstack_specify_allocation_with_arg, obstack_chunkfun,
57307         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57308         Remove unprototyped decls and the macros that use them.
57309         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57310         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57311         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57312         (defined __STDC__ && __STDC__)]:
57313         Remove nonprototyped code.
57314         Include <stdlib.h> unconditionally.
57315         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57316         _obstack_allocated_p, _obstack_free, obstack_free,
57317         _obstack_memory_used, print_and_abort):
57318         Define using prototypes.
57319         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57320         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57321         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57322         obstack_next_free, obstack_object_size, obstack_room) [0]:
57323         Remove unused, unprototyped code.
57324
57325         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57326
57327         * lib/physmem.c (physmem_total, physmem_available, main): Define
57328         with prototypes.
57329
57330         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57331         (main): Define with a prototype.
57332
57333         * lib/posixver.c (getenv): Remove decl.
57334
57335         * lib/putenv.c (malloc): Returns void *, not char *.
57336         Include <string.h> unconditionally.
57337         (strchr, memcpy, NULL): Do not define.
57338
57339         * lib/readtokens.c: Include readtokens.h first, to test interface.
57340         Include <stdlib.h>, <string.h> unconditionally.
57341         (init_tokenbuffer): Define with a prototype.
57342
57343         * lib/regex.c (PARAMS): Remove.  All uses removed.
57344         All uses of _RE_ARGS removed, too.
57345         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57346         unconditionally.
57347         (bzero): Assume memset exists.
57348         (memcmp, memcpy, NULL): Remove.
57349         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57350         char, or assignments to local vars of type signed char.
57351         (init_syntax_once, PREFIX(extract_number_and_incr),
57352         PREFIX(print_partial_compiled_pattern),
57353         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57354         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57355         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57356         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57357         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57358         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57359         wcs_compile_range, byte_compile_range, truncate_wchar,
57360         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57361         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57362         count_mbs_length, wcs_re_match_2_internal,
57363         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57364         PREFIX(alt_match_null_string_p),
57365         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57366         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57367         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57368         now-unnecessary declaration, if any.
57369         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57370         regcomp, regexec):
57371         Remove now-unnecessary casts among pointer types.
57372         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57373
57374         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57375         (free): Remove decl.
57376
57377         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57378
57379         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57380         (free): Remove decl.
57381
57382         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57383         * lib/xgetcwd.c: Likewise.
57384
57385         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57386         (free): Remove decl.
57387
57388         * lib/strchrnul.c (strchrnul): Define with a prototype.
57389         Fix bug: c_in was not converted to char before searching.
57390
57391         The following changes are not K&R related:
57392
57393         * lib/group-member.h: Include <sys/types.h>, so that this file is
57394         self-contained.
57395         * lib/makepath.h: Likewise.
57396
57397         * lib/getusershell.c (readname, default_index, line_size, readname):
57398         Use size_t, not int, for sizes.
57399         (readname): If the size overflows, report an error instead of
57400         looping forever.
57401
57402 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57403
57404         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57405         libc.
57406
57407 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57408
57409         * README: New section: portability guidelines.
57410
57411 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57412
57413         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57414         C89 spec.
57415
57416 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57417
57418         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57419
57420 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57421
57422         Assume C89 or better; remove K&R cruft.
57423         A few of these changes were first proposed by Derek Robert Price
57424         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57425
57426         * lib/addext.c: Include <string.h> unconditionally.
57427         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57428         Don't declare getenv or malloc.
57429
57430         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57431         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57432         (NULL): Remove.
57433         (find_stack_direction, alloca): Use prototypes.
57434
57435         * lib/atexit.c (atexit): Define using a prototype.
57436
57437         * lib/basename.c, dirname.c, stripslash.c:
57438         Include <string.h> unconditionally.
57439
57440         * lib/bcopy.c: Include <stddef.h>.
57441         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57442
57443         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57444
57445         * lib/error.h (error, error_at_line, error_print_progname)
57446         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57447         * lib/error.c: Include error.h first, to check interface.
57448         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57449         (VA_START): Remove; all uses changeed to va_start.
57450         (exit, strerror): Remove decls.
57451         (error_print_progname): Prototype uncondionally.
57452         Don't include <errno.h>; no longer needed.
57453         (private_strerror): Remove.
57454         (error_tail): Always define.
57455         (error, error_at_line): Assume C89 or better; always use prototypes.
57456         * lib/fatal.c: Include "fatal.h" first, to test interface.
57457         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57458         (VA_START): Remove; all uses changed to va_start.
57459         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57460         this case.
57461         (exit): Remove decl.
57462         (fatal): Prototype unconditionally.  Assume va_start works.
57463         Abort at end, to pacify gcc.
57464
57465         * lib/euidaccess.c (main): Define with a prototype.
57466
57467         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57468
57469         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57470
57471         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57472         prototypes.
57473         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57474         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57475         (getenv): Remove decl.
57476         (fnmatch): Define using a prototype.
57477         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57478         (FCT): Define using a prototype.
57479
57480         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57481
57482         * lib/gethostname.c: Include <stddef.h>.
57483         (gethostname): Define with prototype.  Length is size_t, not int.
57484
57485 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57486
57487         Assume C89 or better; remove K&R cruft.
57488         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57489         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57490         string.h, getenv, malloc.
57491         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57492         headers.
57493         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57494         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57495         do not check for strerror.
57496         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57497         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57498         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57499         do not check for doprnt or vprintf.
57500         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57501         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57502
57503 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57504
57505         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57506         getversion.c should have been removed then, but was accidentally
57507         preserved.
57508
57509         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57510         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57511
57512 2003-09-08  Karl Berry  <karl@gnu.org>
57513
57514         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57515                 config, forget about prep.
57516
57517         * config/depcomp, missing: update from automake.
57518
57519 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57520
57521         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57522         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57523
57524 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57525
57526         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57527         copy_tm_result.  Bug reported by Simon Josefsson in
57528         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57529
57530 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57531
57532         * m4/time_r.m4: New file.
57533         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57534         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57535         is. Check for timegm declaration.
57536         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57537         Do not check for gmtime_r.
57538         Replace mktime if __mktime_internal does not exist and if mktime
57539         hasn't been replaced already.
57540
57541 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57542
57543         * lib/time_r.c, lib/time_r.h: New files.
57544
57545         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57546         __localtime_r.
57547         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57548         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57549
57550         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57551         __gmtime_r.
57552         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57553         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57554         Include <time_r.h>.
57555
57556         * lib/timegm.c: Switch to glibc implementation, with the following
57557         changes:
57558         [defined HAVE_CONFIG_H]: Include <config.h>.
57559         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57560         (__mktime_internal) [!defined _LIBC]: New decl.
57561         (__gmtime_r) [!defined _LIBC]: New macro and function.
57562         (timegm): Use a prototype, since gnulib assumes C89.
57563         Do not bother declaring tmp to be const, as it's not really usefu.
57564         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57565         (timegm): Declare only if HAVE_DECL_TIMEGM.
57566
57567 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57568
57569         * MODULES.html.sh (func_all_modules): Add time_r.
57570         * modules/time_r: New file.
57571         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57572         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57573
57574 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57575
57576         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57577         Bug reported by Lute Kamstra in
57578         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57579
57580         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57581         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57582         course with correspondingly smaller numbers for tomorrow and
57583         yesterday.  From Tadayoshi Funaba.  Originally installed into
57584         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57585         coreutils merge?).
57586
57587 2003-08-31  Simon Josefsson  <jas@extundo.com>
57588
57589         * modules/timegm: New file.
57590         * MODULES.html.sh (func_all_modules): Add timegm.
57591
57592 2003-08-31  Simon Josefsson  <jas@extundo.com>
57593
57594         * m4/timegm.m4: New file.
57595
57596 2003-08-31  Simon Josefsson  <jas@extundo.com>
57597
57598         * lib/timegm.h: New file.
57599         * lib/timegm.c: New file.  Based on
57600         wget-1.8.2/src/http.c:mktime_from_utc.
57601
57602 2003-08-31  Karl Berry  <karl@gnu.org>
57603
57604         * lib/argp.h: update from libc.
57605
57606 2003-08-28  Bruno Haible  <bruno@clisp.org>
57607
57608         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57609         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57610         followed by '#define fnmatch fnmatch_posix' gives an error.
57611
57612 2003-08-28  Bruno Haible  <bruno@clisp.org>
57613
57614         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57615         warning on QNX, which defines O_BINARY to 000000.
57616
57617 2003-08-27  Jim Meyering  <jim@meyering.net>
57618
57619         * m4/mkstemp.m4: Require that the system mkstemp be able to create
57620         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
57621         would fail after 32.  Reported by Danny Levinson.  Details here:
57622         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
57623
57624 2003-08-24  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
57627         MSVC7 <stdio.h> is included later.
57628
57629 2003-08-22  Simon Josefsson  <jas@extundo.com>
57630
57631         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
57632
57633 2003-08-20  Karl Berry  <karl@gnu.org>
57634
57635         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
57636
57637 2003-08-20  Bruno Haible  <bruno@clisp.org>
57638
57639         * modules/progname: New file.
57640         * MODULES.html.sh (func_all_modules): Add progname.
57641
57642 2003-08-20  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/progname.h: New file, from GNU gettext.
57645         * lib/progname.c: New file, from GNU gettext.
57646         * lib/progreloc.c: New file, from GNU gettext.
57647
57648 2003-08-19  Jim Meyering  <jim@meyering.net>
57649
57650         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
57651         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
57652
57653 2003-08-19  Bruno Haible  <bruno@clisp.org>
57654
57655         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
57656         more.
57657
57658 2003-08-19  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/xstrdup.c: Assume <string.h> exists.
57661
57662 2003-08-18  Paul Eggert  <eggert@twinsun.com>
57663
57664         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
57665         in makefile rules.
57666
57667 2003-08-18  Jim Meyering  <jim@meyering.net>
57668
57669         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
57670         * m4/lib-ld.m4: Likewise.
57671
57672 2003-08-18  Jim Meyering  <jim@meyering.net>
57673
57674         * lib/setenv.h: Indent nested cpp directive.
57675         * lib/vasnprintf.c: Remove trailing blanks.
57676
57677 2003-08-17  Simon Josefsson  <jas@extundo.com>
57678
57679         * modules/xstrndup: New file.
57680         * MODULES.html.sh (func_all_modules): Add xstrndup.
57681
57682 2003-08-17  Simon Josefsson  <jas@extundo.com>
57683
57684         * modules/argp: Fix autoconf macro name. Add more dependencies.
57685
57686 2003-08-17  Simon Josefsson  <jas@extundo.com>
57687
57688         * m4/xstrndup.m4: New file.
57689
57690 2003-08-17  Simon Josefsson  <jas@extundo.com>
57691
57692         * m4/argp.m4: New file.
57693
57694 2003-08-17  Simon Josefsson  <jas@extundo.com>
57695             Bruno Haible  <bruno@clisp.org>
57696
57697         * lib/xstrndup.h: New file.
57698         * lib/xstrndup.c: New file.
57699
57700 2003-08-17  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/strndup (Files, Include): Add lib/strndup.h.
57703
57704 2003-08-17  Bruno Haible  <bruno@clisp.org>
57705
57706         * modules/euidaccess (Files): Add lib/euidaccess.h.
57707
57708 2003-08-17  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/strndup.h: New file.
57711
57712 2003-08-17  Bruno Haible  <bruno@clisp.org>
57713
57714         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
57715         like AC_GNU_SOURCE.
57716         * modules/extensions (configure.ac): Comment out the invocation of
57717         gl_USE_SYSTEM_EXTENSIONS.
57718
57719 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57720
57721         Merges from coreutils, etc.
57722         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
57723         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
57724         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
57725         fixing a typo.
57726         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
57727         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
57728
57729 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57730
57731         Document merge from coreutils.
57732         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
57733         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
57734         * modules/utime: Add m4/utimes-null.m4.
57735
57736 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57737
57738         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
57739         space, undoing this 2003-08-12 change:
57740         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57741
57742 2003-08-16  Paul Eggert  <eggert@twinsun.com>
57743
57744         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
57745         strtoul.c from libc, undoing this 2003-08-12 change:
57746         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
57747
57748 2003-08-16  Jim Meyering  <jim@meyering.net>
57749
57750         Merges from coreutils.
57751         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
57752         prefix.  Adjust cache variables similarly.  Create 500 rather than
57753         just 300 files, to exercise bug on Darwin6.5, too.
57754         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
57755         $missing_dir.
57756         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
57757         AM_SYS_POSIX_TERMIOS.
57758         Reported by mkc@mathdogs.com.
57759         Also change use of $am_cv_sys_posix_termios
57760         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
57761         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
57762         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
57763         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
57764         in /proc/mounts until it finds one with matching device number.  This
57765         is unnecessary when the FILE argument *is* a mount point.  No stat call
57766         is necessary in that case.  So, disable the statvfs-testing code on
57767         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
57768         as RedHat bug# 84846.
57769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57770         to 1MB, so as not to render systems with no stack size limit (e.g.,
57771         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57772         Include <unistd.h>.  On some systems,
57773         it is required for the definition of _SC_PAGESIZE.
57774
57775 2003-08-16  Jim Meyering  <jim@meyering.net>
57776
57777         Merge from coreutils.
57778         * lib/xstrtoimax.c: #else #if -> #elif.
57779         * lib/xstrtoumax.c: Likewise.
57780
57781 2003-08-16  Jim Meyering  <jim@meyering.net>
57782
57783         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
57784         * m4/utimes.m4: Removed.
57785         * m4/utimes-null.m4: Renamed from utimes.m4.
57786
57787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
57788         to 1MB, so as not to render systems with no stack size limit (e.g.,
57789         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
57790         Include <unistd.h>.  On some systems,
57791         it is required for the definition of _SC_PAGESIZE.
57792
57793 2003-08-16  Jim Meyering  <jim@meyering.net>
57794         and Paul Eggert  <eggert@cs.ucla.edu>
57795
57796         Merges from coreutils, etc.
57797
57798         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
57799         using the latest version from cvs.  This avoids problems with #line
57800         directives using a vendor (Sun) compiler.
57801         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
57802         Don't set GETGROUPS_LIB here; now it's
57803         done via getgroups.m4's wrapper function.
57804         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
57805         rather than just in sh-util/configure.in, so that the
57806         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
57807         same.
57808         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
57809         AC_FUNC_GETLOADAVG where to find getloadavg.c.
57810         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
57811         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
57812         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
57813         Remove code that is now done by the newly-required macros.
57814         Append $(EXEEXT) to DF_PROG.
57815         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
57816         Do not invoke or require the following here,
57817         since prereq.m4 or some gnulib .m4 now does this for us:
57818         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
57819         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
57820         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
57821         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
57822         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
57823         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
57824         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
57825         AC_FUNC_OBSTACK.
57826         Do not replace the following functions, as this is now the job
57827         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
57828         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
57829         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
57830         atexit getpass, strdup, getpagesize.
57831         Replace 'raise'.
57832         Do not check for the following functions, as this is now the job
57833         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
57834         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
57835         setregid.
57836         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
57837         Check for sys/sysctl.h.
57838         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
57839         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
57840         of checking for ssize_t ourselves.
57841
57842         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
57843         Require every macro that gnulib/modules/* suggests for us.
57844         (jm_PREREQ_ADDEXT): New macro.
57845         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
57846         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
57847
57848         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
57849         (gl_PHYSMEM): Use it.
57850         Also check for `table' function.
57851         Check for new headers and functions.
57852         Add check for sys/sysmp.h.
57853         With suggestions from Kaveh Ghazi.
57854         Ignore headers that are present but cannot be compiled.  This
57855         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
57856         C 5.4.
57857
57858 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57859
57860         Document merge from coreutils.
57861         * modules/userspec: Depend on posixver.
57862         * modules/strftime: Depend on tzset.
57863
57864 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57865
57866         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
57867         rather than tab, after '#' in shell-script copyright notices.
57868         Suggested by Bruno Haible.
57869
57870 2003-08-15  Paul Eggert  <eggert@twinsun.com>
57871
57872         * config/srclist-update: Use three spaces, rather than tab, after '#'
57873         in shell-script copyright notices.  Suggested by Bruno Haible.
57874         Remove unnecessary parenthesization in regular expression.
57875
57876 2003-08-15  Jim Meyering  <jim@meyering.net>
57877
57878         Merge from coreutils.
57879         * lib/xgethostname.c: Include <stdlib.h>.
57880         (xghostname): Don't exit for anything other than memory-related
57881         failure; just return NULL.
57882         * lib/userspec.c: Include "posixver.h".
57883         (parse_user_spec): Accept `.' as a separator only
57884         in pre-POSIX-200112 mode.
57885         * lib/strtoimax.c: Use #elif rather than #else #if.
57886         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
57887         Remove function, now that we can rely on a working tzset function.
57888         [!_LIBC]: Ensure that the required autoconf test has been run.
57889         [!defined _NL_CURRENT && HAVE_STRFTIME]:
57890         Use underlying_strftime for %r.
57891         * lib/sha.c: Merge in some clean-up and optimization changes from
57892         glibc.
57893         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
57894         Ensure that it is a multiple of 64.
57895         Rearrange loop exit tests so as to avoid performing an
57896         additional fread after encountering an error or EOF.
57897         * lib/realloc.c: Update copyright date.
57898
57899 2003-08-15  Jim Meyering  <jim@meyering.net>
57900         and Paul Eggert  <eggert@twinsun.com>
57901
57902         Merge from coreutils.
57903         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
57904         member but strut utmpx does not.  Needed for AIX 4.3.3.
57905         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
57906
57907 2003-08-15  Jim Meyering  <jim@meyering.net>
57908         and Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         Merges from coreutils, etc.
57911         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
57912         Require gl_FUNC_TZSET_CLOBBER.
57913         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
57914         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
57915         members.
57916
57917 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57918
57919         Help the merge from coreutils.
57920         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
57921         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
57922         * m4/tzset.m4: Use it too.
57923
57924 2003-08-14  Paul Eggert  <eggert@twinsun.com>
57925
57926         * modules/tzset: New file.
57927
57928 2003-08-14  Jim Meyering  <jim@meyering.net>
57929
57930         Merges from coreutils.
57931         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
57932         variable names, rather than @FNMATCH_H@.
57933         * modules/alloca: Likewise for $(ALLOCA_H).
57934
57935         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
57936         the three copies of the literal target, `fnmatch.h'.
57937         * modules/alloca (alloca.h): Likewise.
57938
57939 2003-08-14  Jim Meyering  <jim@meyering.net>
57940
57941         Merge from coreutils.
57942         * m4/tzset.m4: New file.
57943         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
57944         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
57945         otherwise, AIX 5.1 systems would end up using the latter.
57946         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
57947         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
57948         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
57949         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
57950
57951 2003-08-14  Jim Meyering  <jim@meyering.net>
57952
57953         Merge from coreutils.
57954         * lib/obstack.h: Whitespace changes.
57955         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
57956         and xcalloc return values.
57957         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
57958         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
57959         hang on OSF/1 5.1 for DIR on both local and remote file systems.
57960         Reported by (and fix confirmed by) Nelson H. F. Beebe.
57961         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57962         error from mntctl.
57963         Use mntctl's return value to drive the entry-processing loop, since
57964         we can't rely on the value of the vmt_length member in the last
57965         entry.  On some systems doing so could result in exhausting
57966         virtual memory.  Based in part on a patch from Mike Jetzer.
57967
57968 2003-08-14  Jim Meyering  <jim@meyering.net>
57969         and Paul Eggert  <eggert@twinsun.com>
57970
57971         Merges from coreutils, plus other fixes.
57972         * lib/physmem.c: Merge in portability changes from gcc/libiberty
57973         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
57974         for credits and details.  Thanks to Kaveh Ghazi for helping
57975         to keep these files in sync.
57976         (ARRAY_SIZE): Define it.
57977         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
57978         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
57979         (memcasecmp): Don't assume size_t fits in unsigned int.
57980         Remove casts and duplicate code.
57981         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
57982         (memcpy): Remove definition.
57983         Merge in some clean-up and optimization changes from glibc.
57984         [BLOCKSIZE]: Move definition to top of file.
57985         Ensure that it is a multiple of 64.
57986         Rearrange loop exit tests so as to avoid performing an
57987         additional fread after encountering an error or EOF.
57988         * lib/md5.h (md5_uintptr): Define.
57989         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
57990         return to the initial working directory.  Preserve errno
57991         for caller.
57992         * lib/idcache.c: Include "xalloc.h".
57993         (xmalloc, xrealloc): Remove decls.
57994         (getuser): Remove casts no longer required in C89.
57995         * lib/human.c: Include stdio.h, for sprintf.
57996         * lib/group-member.c: Include "xalloc.h".
57997         (xmalloc, xrealloc): Remove decls.
57998         (get_group_info): Remove casts no longer required in C89.
57999         * lib/getusershell.c (readname): Remove casts no longer required in
58000         C89.
58001         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58002         * lib/getline.c: Whitespace fix, from coreutils.
58003
58004 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58005
58006         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58007         Check for isascii.
58008
58009         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58010         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58011         Undo previous (whitespace-only) change.
58012
58013 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58014
58015         * lib/exclude.c: Include <ctype.h>
58016         (IN_CTYPE_DOMAIN): New macro.
58017         (is_space): New fn.
58018         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58019         and empty lines.
58020
58021         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58022         Undo previous (whitespace-only) change.
58023
58024 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58025
58026         * config/srclist-update: Change update back to the old behavior,
58027         leaving whitespace alone.  Use one 'sed' command rather than a
58028         pipeline.
58029         (fixlicense): Now a variable, not a function.
58030         (remove_trailing_blanks): Remove.
58031         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58032         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58033         Undo previous (whitespace-only) change.
58034
58035 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58036
58037         Merge from coreutils.
58038         * modules/euidaccess: Add lib_SOURCES, include for new
58039         file euidaccess.h
58040
58041 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58042
58043         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58044         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58045         Normalize leading white space and remove trailing white space.
58046
58047         Merge from coreutils
58048         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58049
58050         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58051         0.12.1.  These files are now being upgraded automatically by
58052         ../config/srclist-update.
58053
58054 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58055
58056         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58057         Normalize leading white space and remove trailing white space.
58058         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58059         notice, as per ../config/srclist-update.
58060
58061         Merge from coreutils.
58062         * lib/euidaccess.h: New file.
58063         * lib/euidaccess.c: Include it.
58064         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58065         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58066         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58067
58068 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58069
58070         * config/srclist-update: Add copyright notice.
58071         (remove_id_lines, remove_trailing_blanks): New constants.
58072         (fixfile): Use them to normalize spacing a bit in copied files.
58073         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58074         Normalize leading white space and remove trailing white space.
58075
58076         * config/texinfo.tex: Sync with texinfo.
58077
58078         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58079         strtoul.c from libc, to merge coreutils whitespace changes.
58080
58081         * config/srclist.txt: Get the following m4 files from gettext:
58082         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58083         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58084         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58085         wint_t.m4.
58086
58087 2003-08-12  Karl Berry  <karl@gnu.org>
58088
58089         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58090         been made.
58091
58092 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58093
58094         * modules/gnu-source, m4/gnu-source.m4:
58095         Remove; we're assuming Autoconf 2.54 or later now.
58096         Suggested by Bruno Haible.
58097         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58098
58099 2003-08-11  Bruno Haible  <bruno@clisp.org>
58100
58101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58102
58103 2003-08-11  Bruno Haible  <bruno@clisp.org>
58104
58105         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58106         (vasnprintf): Use it instead of wcslen.
58107
58108 2003-08-11  Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58111         value to ensure that _Bool promotes to int. Use #define for _Bool when
58112         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58113
58114 2003-08-10  Karl Berry  <karl@gnu.org>
58115
58116         * lib/regex.h: update from libc (whitespace fix).
58117
58118 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58119
58120         Merge some files from coreutils.  These changes were
58121         originally made by Jim Meyering.
58122         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58123         many older Unixes require this.
58124         * lib/alloca.c (alloca): Remove cast to argument of free;
58125         no longer needed in C89.
58126         * lib/alloca_.h, regex.h: Fix white space to match
58127         what GNU indent does.
58128
58129 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58130
58131         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58132         apparently Emacs's Unicode mode got confused before my 2003-08-05
58133         checkin.
58134
58135 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58136
58137         * m4/extensions.m4: New file.
58138         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58139         Require gl_USE_SYSTEM_EXTENSIONS.
58140         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58141         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58142
58143 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58144
58145         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58146         * modules/extensions, modules/gnu-source: New files.
58147         * modules/timespec, modules/unlocked-io: Depend on extensions.
58148
58149 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58150
58151         * modules/restrict: New file.
58152         * MODULES.html.sh (func_all_modules): Add restrict.
58153         * modules/regex: Depend on restrict.
58154
58155 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58156
58157         * m4/restrict.m4: New file.
58158         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58159
58160 2003-08-07  Bruno Haible  <bruno@clisp.org>
58161
58162         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58163         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58164
58165 2003-08-07  Bruno Haible  <bruno@clisp.org>
58166
58167         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58168         makes the module 'getndelim2' compatible with the module 'getline'.
58169
58170 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58171
58172         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58173         byte with "\201" to avoid glitches when editing that source file
58174         with multi-gnome-terminal.
58175
58176 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58177
58178         * lib/bumpalloc.h: Remove.
58179
58180 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58181
58182         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58183         * modules/bumpalloc: Remove.
58184
58185 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58186
58187         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58188         GNU coding style.
58189
58190         Merge from coreutils.
58191         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58192         1. From glibc.
58193         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58194         from Karl Berry, implemented by Jim Meyering.
58195         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58196         from Dmitry V. Levin.
58197         Remove anachronistic cast of xrealloc.
58198         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58199         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58200         type. Otherwise, it wouldn't compile with at least /bin/cc on
58201         ymp-cray-unicos9.0.2.X.
58202         Combine two mostly-identical uses of alloca into one.
58203         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58204
58205 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58206
58207         [From Emacs.]
58208
58209         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58210         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58211         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58212         obsolete NLIST_NAME_UNION.
58213         [__GNU__]: Undef BSD and FSCALE.
58214         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58215
58216 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58217
58218         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58219         an enum type, so that it's guaranteed to promote to int.  See:
58220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58221
58222 2003-08-03  Karl Berry  <karl@gnu.org>
58223
58224         * config/depcomp: update from automake.
58225
58226 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58227
58228         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58229         (strerror): Don't assume that a printable int fits in 14 bytes.
58230
58231 2003-07-31  Bruno Haible  <bruno@clisp.org>
58232
58233         * modules/getpass-gnu: New file.
58234         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58235
58236 2003-07-31  Bruno Haible  <bruno@clisp.org>
58237
58238         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58239
58240 2003-07-24  Karl Berry  <karl@gnu.org>
58241
58242         * config/missing: update from automake.
58243
58244 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58245             Bruno Haible  <bruno@clisp.org>
58246
58247         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58248         * lib/getline.c (getline, getdelim): Likewise.
58249         Remove _GNU_SOURCE define; now it's defined in config.h through
58250         m4/getline.m4.
58251
58252 2003-07-23  Karl Berry  <karl@gnu.org>
58253
58254         * config/config.sub: update from prep.
58255
58256 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58257
58258         * modules/xalloc (Depends-on): Add exitfail.
58259         * modules/xmemcoll: Likewise.
58260
58261 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58262
58263         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58264         over-parenthesization in macros.
58265
58266         Sync with coreutils.
58267
58268         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58269         required by C99.
58270
58271         Use `exit_failure' for xalloc and xmemcoll instead of their own
58272         private exit-failure variables.
58273         * lib/xalloc.h (xalloc_exit_failure): Remove.
58274         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58275         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58276         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58277         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58278         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58279
58280 2003-07-20  Jim Meyering  <jim@meyering.net>
58281
58282         * modules/closeout (Depends-on): Add exitfail.
58283         Suggestion from Bruno Haible.
58284
58285 2003-07-19  Karl Berry  <karl@gnu.org>
58286
58287         * config/config.sub: update from prep.
58288
58289 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58290
58291         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58292         Remove.
58293         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58294         to test that it can stand by itself.  Include "exitfail.h".
58295         Clients should set exit_failure instead.
58296         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58297
58298 2003-07-18  Bruno Haible  <bruno@clisp.org>
58299
58300         * modules/getndelim2: New file.
58301         * modules/getline: Share files with module getndelim2.
58302         * modules/getnline: Depend on getndelim2 instead of sharing files with
58303         it. Add getnline.c to lib_SOURCES.
58304         * MODULES.html.sh (func_all_modules): Add getndelim2.
58305
58306 2003-07-18  Bruno Haible  <bruno@clisp.org>
58307
58308         * m4/getndelim2.m4: New file.
58309         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58310         invoke gl_PREREQ_GETNDELIM2.
58311         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58312         gl_PREREQ_GETNDELIM2.
58313         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58314         gl_GETNDELIM2.
58315
58316 2003-07-18  Bruno Haible  <bruno@clisp.org>
58317
58318         * lib/getndelim2.h: New file.
58319         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58320         getndelim2.h.
58321         (getndelim2): Make non-static. Change return type to ssize_t.
58322         * lib/getline.h: Change argument names.
58323         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58324         * lib/getnline.c: Include getndelim2.h.
58325
58326 2003-07-18  Andreas Schwab  <schwab@suse.de>
58327
58328         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58329
58330 2003-07-17  Karl Berry  <karl@gnu.org>
58331
58332         * config/config.sub: update from prep.
58333
58334 2003-07-17  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/getnline: New file.
58337         * modules/getline: Add lib/getndelim2.c to source file list.
58338         * MODULES.html.sh (func_all_modules): Add getnline.
58339
58340 2003-07-17  Bruno Haible  <bruno@clisp.org>
58341
58342         * m4/getnline.m4: New file.
58343
58344 2003-07-17  Bruno Haible  <bruno@clisp.org>
58345
58346         * m4/Makefile.am.in: Remove file.
58347         * m4/Makefile.am: Remove file.
58348         * m4/Makefile.in: Remove file.
58349
58350 2003-07-17  Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/getnline.h: New file.
58353         * lib/getnline.c: New file.
58354         * lib/getndelim2.c: New file, extracted from getline.c.
58355         (getndelim2): Renamed from getdelim2, with added nmax argument.
58356         * lib/getline.c: Include getndelim2.c.
58357         (getdelim2): Moved out to getndelim2.c.
58358         (getline, getdelim): Update.
58359
58360 2003-07-17  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/Makefile.am: Remove file.
58363         * lib/Makefile.in: Remove file.
58364
58365 2003-07-17  Bruno Haible  <bruno@clisp.org>
58366
58367         * configure.in: Remove file.
58368         * Makefile.in: Remove file.
58369
58370 2003-07-17  Bruno Haible  <bruno@clisp.org>
58371
58372         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58373
58374 2003-07-16  Karl Berry  <karl@gnu.org>
58375
58376         * config/srclist-update: was running fixlicense twice, which caused
58377                 texinfo.tex to be nullified for some reason.  Simplify,
58378                 $gplsrc is no longer needed as far as I can see?
58379
58380 2003-07-16  Jim Meyering  <jim@meyering.net>
58381
58382         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58383
58384 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58385
58386         * config/srclist.txt: Get the following files from gettext-runtime/intl
58387         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58388         ref-del.sin.  From Bruno Haible.
58389         * config/srclist-update (fixfile): Change grep pattern again, since the
58390         previous fix didn't work (there was another trailing $).  Use
58391         '[$]' to escape the $s.
58392
58393 2003-07-15  Karl Berry  <karl@gnu.org>
58394
58395         * lib/vasnprintf.c: update from gettext.
58396
58397 2003-07-15  Karl Berry  <karl@gnu.org>
58398
58399         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58400         gets expanded when surrounded by '$'.
58401
58402 2003-07-15  Jim Meyering  <jim@meyering.net>
58403
58404         * modules/save-cwd: Don't depend on error.  From Derek Price.
58405
58406 2003-07-15  Jim Meyering  <jim@meyering.net>
58407
58408         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58409
58410 2003-07-14  Simon Josefsson  <jas@extundo.com>
58411
58412         * modules/mempcpy: New file.
58413         * MODULES.html.sh (func_all_modules): Add mempcpy.
58414
58415 2003-07-14  Simon Josefsson  <jas@extundo.com>
58416
58417         * m4/mempcpy.m4: New file.
58418
58419 2003-07-14  Simon Josefsson  <jas@extundo.com>
58420
58421         * lib/mempcpy.h: New file.
58422         * lib/mempcpy.c: New file.
58423
58424 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58425
58426         * modules/getdate, modules/posixtm: Depend on mktime.
58427
58428 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58429
58430         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58431         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58432         unicodeio.c, unicodeio.h, unlocked-io.h:
58433         Switch from LGPL to GPL.
58434
58435 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58436
58437         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58438         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58439         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58440         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58441         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58442         updated automatically by ../config/srclist-update.  This changes
58443         their license from LPGL to GPL.
58444
58445 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58446
58447         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58448         assumed to refer to the root of the most recent stable gettext version.
58449         * config/srclistvars.sh: Add defaults for eggert.
58450         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58451         Match "This program" as well as "The program".  This is needed
58452         for gettext.
58453
58454 2003-07-14  Jim Meyering  <jim@meyering.net>
58455
58456         Don't emit diagnostics.  Let callers do that.
58457         * lib/save-cwd.c: Don't include "error.h".
58458         (save_cwd): Don't call error.  Ensure that errno is valid
58459         when returning nonzero.
58460
58461         * lib/save-cwd.h (restore_cwd): Update prototype.
58462         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58463         Simplify.  Don't call error upon failure.  Let callers do that.
58464         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58465         when auditing is enabled.  But don't bother updating the #if.
58466
58467 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58468
58469         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58470         it breaks C++ compilation.
58471         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58472
58473 2003-07-10  Simon Josefsson  <jas@extundo.com>
58474
58475         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58476
58477 2003-07-10  Jim Meyering  <jim@meyering.net>
58478
58479         * m4/clock_time.m4: Remove trailing blank.
58480         * m4/intmax_t.m4: Likewise.
58481
58482 2003-07-10  Jim Meyering  <jim@meyering.net>
58483
58484         * lib/vasnprintf.c: Remove trailing blanks.
58485         Make cpp indentation consistent.
58486
58487 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58488
58489         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58490         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58491         Switch from LGPL to GPL.
58492
58493 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58494
58495         * config/srclist.txt: Sort sublists.  Add
58496         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58497         that differ from gnulib for one reason or another; we'd like this list
58498         to be smaller but for now let's document what we have.
58499
58500 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58501
58502         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58503         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58504         and sweeter "eval x=$x".
58505         * config/srclist.txt: Get lib/argp* from glibc.
58506
58507 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58508
58509         * lib/mktime.c: Fix some boundary cases and remove need for floating
58510         point.
58511
58512         Issue a compile-time diagnostic if time_t is floating point, or if
58513         two's complement arithmetic is not in effect, or if arithmetic
58514         right shift does not propagate the sign.  These assumptions were
58515         all in the original code but they weren't checked.
58516
58517         (TIME_T_MIDPOINT, verify): New macros.
58518         (__isleap): Remove; it has integer overflow problems.
58519         (leapyear): New function, without those problems.
58520         (ydhms_tm_diff): Remove; splitting into two parts.
58521         (ydhms_diff): New function, containing the arithmetic part of
58522         the old ydhms_tm_diff function.  Issue a compile-time
58523         diagnostic if we are not using C99 integer division.
58524         Avoid casts when possible.
58525         (guess_time_tm): New function, containing the checking part of
58526         the old ydhms_tm_diff function.  Return the new value, rather than
58527         the difference between it and the old.  Accept a new argument T
58528         so that *T specifies the old value.  Check for overflow in the result.
58529
58530         (__mktime_internal): Use a time_t offset, not a long int offset.
58531         This undoes the 2003-06-04 change, which is no longer needed now
58532         that we have better overflow checking.
58533         (localtime_offset): Likewise.
58534
58535         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58536         and long are 64-bit but int is only 32-bit.
58537         (ydhms_diff): Use long int to store year1 and yday1.
58538         Issue a compile-time diagnostic if long int is not wide enough.
58539
58540         (__mktime_internal): Use long int to store adjusted year and yday.
58541         Use plain C rather than preprocessor commands, if that doesn't
58542         affect efficiency.
58543         Check for overflow (and try to repair) after each probe
58544         rather than checking only at the very end.  This avoids some bugs
58545         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58546         does not equal GMT offset at maximum time).
58547         Use integer to check for overflow rather than floating point; this
58548         is more portable to non-IEEE hosts, and is a tad faster.
58549         When we detect that we are oscillating between two values,
58550         don't check whether tm_isdst has the requested value, since
58551         we already know the answer.  When tm_isdst has the wrong value,
58552         use a different heuristic to find the right one, based on the
58553         extreme values actually observed in practice in tz2003a,
58554         rather than the (overly optimistic) "previous 3 calendar quarters".
58555
58556         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58557         "T const" to accommodate glibc style.
58558         (check_result): Use less-confusing report format.  "long" -> "long int.
58559         (main): Likewise.
58560         Don't loop if the iteration overflows time_t.
58561         Allow a negative step in the iteration.
58562
58563 2003-07-06  Karl Berry  <karl@gnu.org>
58564
58565         * config/depcomp: update from automake.
58566         * config/config.sub: update from prep.
58567
58568 2003-07-03  Karl Berry  <karl@gnu.org>
58569
58570         * config/config.guess: update from prep.
58571
58572 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58573
58574         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58575         xreadlink.c now includes it unconditionally.
58576
58577 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58578
58579         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58580         having it depend on HAVE_SYS_TYPES_H.
58581
58582 2003-07-01  Bruno Haible  <bruno@clisp.org>
58583
58584         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58585         <sys/types.h> should be sufficient.
58586         Reported by Paul Eggert.
58587
58588 2003-06-26  Karl Berry  <karl@gnu.org>
58589
58590         * config/depcomp: update from automake.
58591
58592 2003-06-26  Bruno Haible  <bruno@clisp.org>
58593
58594         * modules/human: Depend on module stdbool.
58595
58596 2003-06-25  Bruno Haible  <bruno@clisp.org>
58597
58598         * modules/readlink: New file.
58599         * modules/xreadlink: Depend on it.
58600         * MODULES.html.sh (func_all_modules): Add readlink.
58601
58602 2003-06-25  Bruno Haible  <bruno@clisp.org>
58603
58604         * m4/readlink.m4: New file.
58605
58606 2003-06-25  Bruno Haible  <bruno@clisp.org>
58607
58608         * lib/readlink.c: New file.
58609
58610 2003-06-22  Karl Berry  <karl@gnu.org>
58611
58612         * config/srclist.txt: update mkinstalldirs from automake.
58613         * config/mkinstalldirs: update.
58614
58615 2003-06-22  Bruno Haible  <bruno@clisp.org>
58616
58617         Portability to mingw32.
58618         * m4/ssize_t.m4: New file, from GNU gettext.
58619         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
58620         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
58621
58622 2003-06-22  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/safe-read: Add m4/ssize_t.m4.
58625         * modules/xreadlink: Add m4/ssize_t.m4.
58626
58627 2003-06-20  Bruno Haible  <bruno@clisp.org>
58628
58629         Assume C89, so PARAMS isn't needed.
58630         * lib/unicodeio.h (PARAMS): Remove.
58631         * lib/unicodeio.c: Don't use PARAMS.
58632
58633 2003-06-18  Karl Berry  <karl@gnu.org>
58634
58635         * config/config.{guess,sub}: update from prep.
58636
58637 2003-06-18  Jim Meyering  <jim@meyering.net>
58638
58639         Merge changes from coreutils.
58640         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
58641         Remove explicit declarations of xmalloc and realloc.
58642         Include xalloc.h.
58643         (read_utmp): Remove anachronistic cast of xmalloc.
58644
58645 2003-06-17  Paul Eggert  <eggert@twinsun.com>
58646
58647         Assume C89, so PARAMS isn't needed.
58648         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
58649         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
58650         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
58651         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
58652         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
58653         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
58654         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
58655         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
58656         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
58657         lib/xstrtod.h, lib/xstrtol.h: Likewise.
58658         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
58659         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
58660         no longer needed. Anyway, config.h should always be included before any
58661         other file.
58662
58663 2003-06-11  Simon Josefsson  <jas@extundo.com>
58664
58665         * modules/sysexits: New file.
58666         * MODULES.html.sh (func_all_modules): Add sysexits.
58667
58668 2003-06-11  Simon Josefsson  <jas@extundo.com>
58669
58670         * lib/sysexit_.h: New file.
58671
58672 2003-06-11  Derek Price  <derek@ximbiot.com>
58673
58674         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
58675         necessary.
58676
58677 2003-06-11  Bruno Haible  <bruno@clisp.org>
58678
58679         * m4/sysexits.m4: New file.
58680
58681 2003-06-10  Simon Josefsson  <jas@extundo.com>
58682
58683         * lib/argp.h: New file, from glibc.
58684         * lib/argp-ba.c: New file, from glibc.
58685         * lib/argp-eexst.c: New file, from glibc.
58686         * lib/argp-fmtstream.c: New file, from glibc.
58687         * lib/argp-fmtstream.h: New file, from glibc.
58688         * lib/argp-fs-xinl.c: New file, from glibc.
58689         * lib/argp-help.c: New file, from glibc.
58690         * lib/argp-namefrob.h: New file, from glibc.
58691         * lib/argp-parse.c: New file, from glibc.
58692         * lib/argp-pv.c: New file, from glibc.
58693         * lib/argp-pvh.c: New file, from glibc.
58694         * lib/argp-xinl.c: New file, from glibc.
58695
58696 2003-06-10  Simon Josefsson  <jas@extundo.com>
58697
58698         * modules/strchrnul: New file.
58699
58700 2003-06-10  Simon Josefsson  <jas@extundo.com>
58701
58702         * modules/argp: New file.
58703
58704 2003-06-10  Simon Josefsson  <jas@extundo.com>
58705
58706         * m4/strchrnul.m4: New file.
58707
58708 2003-06-10  Simon Josefsson  <jas@extundo.com>
58709
58710         * lib/strchrnul.h: New file.
58711         * lib/strchrnul.c: New file.
58712
58713 2003-06-10  Bruno Haible  <bruno@clisp.org>
58714
58715         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
58716
58717 2003-06-07  Karl Berry  <karl@gnu.org>
58718
58719         * config/config.{guess,sub}: update from prep.
58720
58721 2003-06-07  Jim Meyering  <jim@meyering.net>
58722
58723         * modules/strtod: Use $(...) notation, not @...@ for
58724         AC_REPLACE'd variables.
58725         * modules/localcharset: Likewise.
58726
58727 2003-06-07  Jim Meyering  <jim@meyering.net>
58728
58729         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
58730         in place of my name in the copyright comment.
58731         Remove definition and uses of __P.
58732
58733         From coreutils.
58734         * lib/stat.c: Don't declare xmalloc explicitly.
58735         Instead, include "xalloc.h".
58736         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
58737         xrealloc, and xcalloc return values.
58738         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
58739         Improve comment.
58740         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
58741
58742 2003-06-07  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
58745         avoid AC_CONFIG_LINKS.
58746         * modules/fnmatch (Makefile.am): Use explicit creation rule for
58747         fnmatch.h, to avoid AC_CONFIG_LINKS.
58748         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
58749
58750 2003-06-07  Bruno Haible  <bruno@clisp.org>
58751
58752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
58753         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
58754         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58755         directory.
58756         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
58757         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
58758         directory.
58759
58760 2003-06-06  Jim Meyering  <jim@meyering.net>
58761
58762         Merge from coreutils.
58763         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
58764         Consolidate declarations and initializations of *_base* locals.
58765
58766         Merge from coreutils.
58767         This avoids a core dump on systems without GNU putenv,
58768         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
58769         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
58770         (unsetenv): New static function, from GNU libc.
58771         (rpl_putenv): Use it.
58772
58773         * lib/modechange.c: Remove trailing blanks.
58774
58775         Merge from coreutils.
58776         * lib/fsusage.c: Remove declaration of statfs.
58777         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
58778
58779         * lib/posixtm.c: Include <stdbool.h> unconditionally.
58780
58781 2003-06-06  Jim Meyering  <jim@meyering.net>
58782
58783         * lib/stdbool_.h: Renamed from stdbool.h.in.
58784
58785 2003-06-06  Jim Meyering  <jim@meyering.net>
58786             Bruno Haible  <bruno@clisp.org>
58787
58788         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
58789         Adjust Makefile.am snippet not to redirect directly to target.
58790         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
58791
58792 2003-06-05  Paul Eggert  <eggert@twinsun.com>
58793
58794         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
58795         mismatch, look in future quarters as well as past.  This fixes a
58796         bug when processing fall-backwards gaps immediately after a long
58797         period of daylight-saving time.
58798
58799         * lib/mktime.c: Assume freestanding C89 or better.
58800         (HAVE_LIMITS_H): Remove.  Assume it's 1.
58801         (__P): Remove; not used.
58802         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
58803         (mktime, not_equal_tm, print_tm, check_result,
58804         main): Use prototypes.  Use const * where appropriate.
58805         (main): Fix typo in testing code that uncovered by above changes.
58806         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
58807
58808 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58809
58810         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
58811         locale.h, localeconv.  This merges changes from coreutils.
58812
58813         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
58814         It can be removed after the next Autoconf is released.
58815         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
58816         needed.
58817
58818 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58819
58820         * lib/mktime.c: Fix Debian bug 177940
58821         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
58822         (localtime_offset): Now long int, not time_t, because we want it
58823         to be guaranteed to be signed.  All uses changed.
58824         (__mktime_internal): If overflow would occur when adding offset,
58825         don't add it.
58826
58827         Merge 'human' changes from coreutils.  Rewrite to support
58828         locale-specific notations like thousands separators.
58829         * lib/human.c: Simplify authorship notice.
58830         Include human.h immediately after config.h.
58831         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
58832         <limits.h>: Do not include, since human.h does.
58833         (SIZE_MAX, UINTMAX_MAX): New macros.
58834         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
58835         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
58836         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
58837         (power_letter): Renamed from suffixes.
58838         (generate_suffix_backwards): Remove.
58839         (adjust_value): Now takes int style (because of human.h changes)
58840         and long double value (for greater precision on some platforms).
58841         (group_number): New function.
58842         (human_readable): Use it.  Use integer options, not enum.
58843         Put the options before the sizes in the arg list.
58844         Support all the new options.
58845         The old human_readable function has been removed;
58846         use inttostr.h instead.
58847         (human_readable, default_block_size, humblock):
58848         Use uintmax_t, not int, for block sizes.
58849         (human_readable_inexact, block_size_types): Remove.
58850         (block_size_opts): New constant.
58851         (human_options): Renamed from human_block_size, with new signature
58852         that allows block sizes up to UINTMAX_MAX.  All callers changed.
58853         * lib/human.h: Add copyright and authorship notice.
58854         Include <limits.h> and <stdbool.h> unconditionally.
58855         (PARAMS): Remove.  All uses removed.
58856         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
58857         (enum human_inexact_style): Remove tag; now a nameless enum.
58858         (human_floor, human_ceiling, human_round_to_even): Now have
58859         values 2, 0, 1 rather than -1, 1, 0.
58860         (human_group_digits, human_suppress_point_zero, human_autoscale,
58861         human_base_1024, human_SI, human_B): New constants.
58862         (human_readable_inexact, human_block_size): Remove.
58863         (human_readable): Size args are now uintmax_t, not int.
58864         (human_options): New decl.
58865
58866         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
58867         unnecessary now that we assume C89 or better.  This change
58868         imported from coreutils.
58869
58870         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58871         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
58872         in the 2003-05-30 sync from glibc.
58873
58874         .h files should stand alone, but we shouldn't include <sys/types.h>
58875         if we can get away with just <stddef.h>.
58876
58877         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
58878         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
58879         rather than <sys/types.h>, as we merely need size_t.
58880         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
58881         to get size_t.
58882         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
58883         Include <stdio.h>, to get FILE.
58884         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
58885         memcasecmp.h has included <stddef.h> and all we need is size_t.
58886         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
58887         our interface, instead of including <sys/types.h>
58888
58889 2003-06-04  Paul Eggert  <eggert@twinsun.com>
58890
58891         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
58892         now, as glibc mktime is buggy on non-glibc systems.
58893
58894 2003-06-03  Karl Berry  <karl@gnu.org>
58895
58896         * config/config.sub: update from prep.
58897
58898 2003-06-02  Paul Eggert  <eggert@twinsun.com>
58899
58900         [from coreutils]
58901         Fix some minor time-related bugs with POSIX time arguments.
58902         Some valid time stamps were being rejected (notably -1, and
58903         time stamps before 1900 on 64-bit hosts).  And some invalid
58904         time stamps were being accepted, e.g. September 31.
58905
58906         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
58907         that we can return (time_t) -1 successfully.
58908         * lib/posixtm.c: Likewise.
58909         [HAVE_STDBOOL_H]: Include <stdbool.h>.
58910         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
58911         (t): Remove static var.
58912         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
58913         of static var.  All uses changed.
58914         (year): Do not reject years before 1900; they can occur with
58915         64-bit time_t.
58916         (posix_time_parse): Do not check for out-of-range components;
58917         that is now the caller's responsibility, since our checks were
58918         only approximations.
58919         (posixtime): Use mktime to check for out-of-range components,
58920         since it knows them exactly.
58921         If mktime returns (time_t) -1, check whether an error actually occurred
58922         by invoking localtime on -1.
58923         (main) [TEST_POSIXTIME]: Check for input data errors, and report
58924         posixtime failures better.
58925         Improve the test data (in comments only).
58926
58927 2003-06-02  Karl Berry  <karl@gnu.org>
58928
58929         * config/mkinstalldirs (version): new variable.
58930         (--version): new option.
58931         (usage): improve message.
58932
58933 2003-05-30  Karl Berry  <karl@gnu.org>
58934
58935         * lib/mktime.c: update from libc.
58936
58937 2003-05-30  Bruno Haible  <bruno@clisp.org>
58938
58939         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
58940         * config/config.rpath: Upgrade to gettext-0.12.1.
58941
58942 2003-05-30  Bruno Haible  <bruno@clisp.org>
58943
58944         * m4/gettext.m4: Upgrade to gettext-0.12.1.
58945         * m4/nls.m4: New file, from gettext-0.12.1.
58946         * m4/po.m4: New file, from gettext-0.12.1.
58947         * m4/progtest.m4: Upgrade to gettext-0.12.1.
58948
58949 2003-05-30  Bruno Haible  <bruno@clisp.org>
58950
58951         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
58952         * lib/localcharset.h: Likewise.
58953         * lib/localcharset.c: Likewise.
58954
58955 2003-05-29  Karl Berry  <karl@gnu.org>
58956
58957         * config/config.rpath: update from gettext.
58958
58959 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58960
58961         Assume the headers required for C89 freestanding compilers.
58962         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
58963         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
58964         * m4/human.m4 (gl_HUMAN): Likewise.
58965         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
58966         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
58967         * m4/userspec.m4 (gl_USERSPEC): Likewise.
58968         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
58969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
58970         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
58971
58972 2003-05-28  Paul Eggert  <eggert@twinsun.com>
58973
58974         Assume the headers required for C89 freestanding compilers.
58975         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
58976         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
58977         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
58978         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
58979         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
58980         define, since <limits.h> is guaranteed to do that.
58981         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
58982         * lib/exclude.c: Include <stdbool.h> unconditionally.
58983         * lib/tempname.c: Include <stddef.h> unconditionally.
58984         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
58985         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
58986         <stddef.h> does that.
58987         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
58988         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
58989         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
58990         needed.
58991         * lib/xstrtol.c: Likewise.
58992         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
58993         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
58994
58995         * lib/addext.c (addext): Use assignment rather than cast, to avoid
58996         warnings on some platforms.
58997
58998         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
58999         arbitrarily.
59000
59001 2003-05-26  Jim Meyering  <jim@meyering.net>
59002
59003         Merge in a change from coreutils:
59004         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59005         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59006         that condition, rather than `-1' which is slightly misleading.
59007         Change the name of the cache variable to have the gl_ prefix.
59008         Prompted by a patch from Richard Dawe for DJGPP.
59009
59010 2003-05-24  Karl Berry  <karl@gnu.org>
59011
59012         * config/config.guess: update from prep.
59013
59014 2003-05-22  Karl Berry  <karl@gnu.org>
59015
59016         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59017
59018 2003-05-20  Karl Berry  <karl@gnu.org>
59019
59020         * config/config.guess: update from prep.
59021
59022 2003-05-18  Karl Berry  <karl@gnu.org>
59023
59024         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59025         might actually be set by the user.
59026
59027         * config/depcomp, install-sh, mdate-sh: update from automake.
59028
59029 2003-05-17  Bruno Haible  <bruno@clisp.org>
59030
59031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59032         invalid expansion for AC_EGREP_CPP.
59033         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59034         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59035         Suggested by Akim Demaille <akim@epita.fr> in
59036         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59037
59038 2003-05-12  Jim Meyering  <jim@meyering.net>
59039
59040         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59041         the space-padded-by-default conversion specifiers, %e, %k, %l.
59042
59043 2003-05-12  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59046         the string is longer than 4 KB.
59047
59048 2003-05-11  Karl Berry  <karl@gnu.org>
59049
59050         * config/config.{guess,sub}: update from prep.
59051
59052 2003-05-09  Bruno Haible  <bruno@clisp.org>
59053
59054         * modules/error: Add m4/strerror_r.m4 to file list.
59055
59056 2003-05-03  Bruno Haible  <bruno@clisp.org>
59057
59058         Upgrade to Unicode-4.0.
59059         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59060         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59061         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59062         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59063         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59064         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59065         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59066         Change width of U+E0100..U+E01EF from 1 to 0.
59067
59068 2003-04-25  Jim Meyering  <jim@meyering.net>
59069
59070         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59071         of type size_t, not int.
59072
59073 2003-04-25  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/copy-file.c: Include <stddef.h>, for size_t.
59076
59077 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59078
59079         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59080         code which expansion is under static control.  Patch imported from
59081         Akim Demaille's patch to Bison; see
59082         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59083
59084 2003-04-14  Bruno Haible  <bruno@clisp.org>
59085
59086         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59087
59088 2003-04-11  Jim Meyering  <jim@meyering.net>
59089
59090         Merge changes from Coreutils.
59091
59092         2003-03-22  Jim Meyering  <jim@meyering.net>
59093
59094         * lib/strftime.c (widen): Cast alloca return value to proper type.
59095
59096         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59097
59098         From GNU libc.
59099         * lib/strftime.c (my_strftime): Handle very large width
59100         specifications for numeric values correctly.  Improve checks for
59101         overflow.
59102
59103         2003-01-19  Jim Meyering  <jim@meyering.net>
59104
59105         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59106         definitions.
59107         (nl_get_alt_digit) [! defined my_strftime]: Define.
59108         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59109         _nl_get_alt_digit and _nl_get_walt_digit.
59110
59111         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59112         libc. These changes have no effect outside of _LIBC.
59113
59114 2003-04-10  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/findprog: New file.
59117         * MODULES.html.sh (func_all_modules): Add it.
59118
59119 2003-04-10  Bruno Haible  <bruno@clisp.org>
59120
59121         * m4/findprog.m4: New file.
59122         * m4/eaccess.m4: New file.
59123
59124 2003-04-10  Bruno Haible  <bruno@clisp.org>
59125
59126         * lib/findprog.h: New file, from GNU gettext.
59127         * lib/findprog.c: New file, from GNU gettext.
59128
59129 2003-04-05  Jim Meyering  <jim@meyering.net>
59130
59131         Merge changes from Coreutils.
59132
59133         * lib/exclude.h (PARAMS): Remove definition and uses.
59134         * lib/exclude.c: Remove uses of `PARAMS'.
59135
59136         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59137         Add test-cases for DOS filenames. Declare program_name.
59138         (main): Set up program_name.  Patch by Rich Dawe.
59139
59140         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59141         error from mntctl.
59142         Use mntctl's return value to drive the entry-processing loop, since
59143         we can't rely on the value of the vmt_length member in the last
59144         entry.  On some systems doing so could result in exhausting
59145         virtual memory.  Based in part on a patch from Mike Jetzer.
59146
59147 2003-04-04  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/linebreak: New file.
59150         * MODULES.html.sh (func_all_modules): Add it.
59151
59152 2003-04-04  Bruno Haible  <bruno@clisp.org>
59153
59154         * m4/linebreak.m4: New file.
59155
59156 2003-04-04  Bruno Haible  <bruno@clisp.org>
59157
59158         * lib/linebreak.h: New file, from GNU gettext.
59159         * lib/linebreak.c: New file, from GNU gettext with slight
59160         modifications.
59161         * lib/lbrkprop.h: New file, from GNU gettext.
59162
59163 2003-04-03  Bruno Haible  <bruno@clisp.org>
59164
59165         * modules/utf8-ucs4: New file.
59166         * modules/utf16-ucs4: New file.
59167         * modules/ucs4-utf8: New file.
59168         * modules/ucs4-utf16: New file.
59169         * MODULES.html.sh (func_all_modules): Add them.
59170
59171 2003-04-03  Bruno Haible  <bruno@clisp.org>
59172
59173         * m4/utf-ucs4.m4: New file.
59174         * m4/ucs4-utf.m4: New file.
59175
59176 2003-04-03  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/utf8-ucs4.h: New file, from GNU gettext.
59179         * lib/utf16-ucs4.h: New file, from GNU gettext.
59180         * lib/ucs4-utf8.h: New file, from GNU gettext.
59181         * lib/ucs4-utf16.h: New file, from GNU gettext.
59182
59183 2003-04-02  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/binary-io: New file.
59186         * MODULES.html.sh (func_all_modules): Add it.
59187
59188 2003-04-02  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/binary-io.h: New file, from GNU gettext.
59191
59192 2003-04-01  Bruno Haible  <bruno@clisp.org>
59193
59194         * modules/pathname: New file.
59195         * MODULES.html.sh (func_all_modules): Add it.
59196
59197 2003-04-01  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/pathname.h: New file, from GNU gettext.
59200         * lib/concatpath.c: New file, from GNU gettext.
59201
59202 2003-03-30  Bruno Haible  <bruno@clisp.org>
59203
59204         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59205
59206 2003-03-30  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59209         function chown() doesn't exist.
59210
59211 2003-03-28  Bruno Haible  <bruno@clisp.org>
59212
59213         * modules/copy-file: New file.
59214         * MODULES.html.sh (func_all_modules): Add it.
59215
59216 2003-03-28  Bruno Haible  <bruno@clisp.org>
59217
59218         * m4/copy-file.m4: New file.
59219
59220 2003-03-28  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/copy-file.h: New file, from GNU gettext.
59223         * lib/copy-file.c: New file, from GNU gettext.
59224
59225 2003-03-18  Jim Meyering  <jim@meyering.net>
59226
59227         * lib/quote.c (quote_n): Fix typo in comment.
59228
59229 2003-03-18  Bruno Haible  <bruno@clisp.org>
59230
59231         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59232         checking.
59233         * m4/onceonly_2_57.m4: Likewise.
59234
59235 2003-03-17  Bruno Haible  <bruno@clisp.org>
59236
59237         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59238         (m4_quote): Remove macro.
59239         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59240
59241 2003-03-14  Jim Meyering  <jim@meyering.net>
59242
59243         Merge changes from Coreutils.
59244         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59245         to be const, in order to avoid warnings.
59246         (obstack_room): Likewise.
59247         (obstack_empty_p): Likewise.
59248
59249 2003-03-14  Bruno Haible  <bruno@clisp.org>
59250
59251         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59252         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59253
59254 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59255
59256         Merge changes from Bison.
59257         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59258         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59259         when compiling Bison 1.875's `bitset bset = obstack_alloc
59260         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59261         * lib/hash.c: Include <stdbool.h> unconditionally.
59262
59263 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59264
59265         * m4/onceonly.m4 (m4_quote): New macro.
59266         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59267         Quote AC_FOREACH variable-expansions properly.
59268
59269 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59270
59271         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59272
59273 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59274
59275         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59276         Reported by Bruce Becker; see:
59277         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59278
59279 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59280             Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59283         Reported by John Hughes, see
59284         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59285
59286 2003-02-20  Bruno Haible  <bruno@clisp.org>
59287
59288         * MODULES.html.sh (func_all_modules): Add poll.
59289
59290 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59291
59292         * modules/poll: New file.
59293
59294 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59295
59296         * lib/poll_.h: New file.
59297         * lib/poll.c: New file.
59298
59299 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59300
59301         * m4/poll.m4: New file.
59302
59303 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59304
59305         * modules/mathl: New file.
59306
59307 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59308
59309         * lib/mathl.h: New file.
59310         * lib/acosl.c: New file.
59311         * lib/asinl.c: New file.
59312         * lib/atanl.c: New file.
59313         * lib/ceill.c: New file.
59314         * lib/cosl.c: New file.
59315         * lib/expl.c: New file.
59316         * lib/floorl.c: New file.
59317         * lib/frexpl.c: New file.
59318         * lib/ldexpl.c: New file.
59319         * lib/logl.c: New file.
59320         * lib/sincosl.c: New file.
59321         * lib/sinl.c: New file.
59322         * lib/sqrtl.c: New file.
59323         * lib/tanl.c: New file.
59324         * lib/trigl.c: New file.
59325         * lib/trigl.h: New file.
59326
59327 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59328
59329         * m4/mathl.m4: New file.
59330
59331 2003-02-18  Bruno Haible  <bruno@clisp.org>
59332
59333         * MODULES.html.sh (func_all_modules): Add mathl.
59334
59335 2003-02-17  Bruno Haible  <bruno@clisp.org>
59336
59337         * modules/mkdtemp: New module.
59338         * MODULES.html.sh (func_all_modules): Add it.
59339
59340 2003-02-17  Bruno Haible  <bruno@clisp.org>
59341
59342         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59343
59344 2003-02-17  Bruno Haible  <bruno@clisp.org>
59345
59346         * lib/mkdtemp.h: New file, from GNU gettext.
59347         * lib/mkdtemp.c: New file, from GNU gettext.
59348
59349 2003-02-02  Jim Meyering  <jim@meyering.net>
59350
59351         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59352         e.g. glibc-2.2.93.
59353
59354 2003-01-31  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59357         'rpl_rename'.
59358         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59359         'rpl_strnlen'.
59360         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59361         'rpl_strtod'.
59362         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59363         'rpl_utime'.
59364
59365 2003-01-31  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/rename.c: #undef rename before defining rpl_rename.
59368         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59369
59370 2003-01-30  Bruno Haible  <bruno@clisp.org>
59371
59372         * modules/vasnprintf, modules/vasprintf: New modules.
59373         * MODULES.html.sh (func_all_modules): Add them.
59374
59375 2003-01-30  Bruno Haible  <bruno@clisp.org>
59376
59377         * m4/signed.m4: New file, from GNU gettext.
59378         * m4/longdouble.m4: New file, from GNU gettext.
59379         * m4/wchar_t.m4: New file, from GNU gettext.
59380         * m4/wint_t.m4: New file, from GNU gettext.
59381         * m4/vasnprintf.m4: New file.
59382         * m4/vasprintf.m4: New file.
59383
59384 2003-01-30  Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/printf-args.h: New file, from GNU gettext.
59387         * lib/printf-args.c: New file, from GNU gettext.
59388         * lib/printf-parse.h: New file, from GNU gettext.
59389         * lib/printf-parse.c: New file, from GNU gettext.
59390         * lib/vasnprintf.h: New file, from GNU gettext.
59391         * lib/vasnprintf.c: New file, from GNU gettext.
59392         * lib/asnprintf.c: New file, from GNU gettext.
59393         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59394         * lib/vasprintf.c: New file, from GNU gettext.
59395         * lib/asprintf.c: New file, from GNU gettext.
59396
59397 2003-01-29  Bruno Haible  <bruno@clisp.org>
59398
59399         * modules/stpncpy: New module.
59400         * MODULES.html.sh (func_all_modules): Add it.
59401
59402 2003-01-29  Bruno Haible  <bruno@clisp.org>
59403
59404         * m4/stpncpy.m4: New file.
59405
59406 2003-01-29  Bruno Haible  <bruno@clisp.org>
59407
59408         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59409         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59410
59411 2003-01-28  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/c-ctype: New module.
59414         * MODULES.html.sh (func_all_modules): Add it.
59415
59416 2003-01-28  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59419         Paul Eggert.
59420         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59421         Paul Eggert.
59422
59423 2003-01-27  Bruno Haible  <bruno@clisp.org>
59424
59425         * modules/xsetenv: New module.
59426         * MODULES.html.sh (func_all_modules): Add it.
59427
59428 2003-01-27  Bruno Haible  <bruno@clisp.org>
59429
59430         * lib/xsetenv.h: New file, from GNU gettext.
59431         * lib/xsetenv.c: New file, from GNU gettext.
59432
59433 2003-01-23  Jim Meyering  <jim@meyering.net>
59434
59435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59436         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59437
59438 2003-01-23  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/minmax: New module.
59441         * MODULES.html.sh (func_all_modules): Add it.
59442
59443 2003-01-23  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59446         Eggert.
59447
59448 2003-01-22  Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/exit: New module.
59451         * MODULES.html.sh (func_all_modules): Add it.
59452
59453 2003-01-22  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/exit.h: New file, from GNU gettext.
59456
59457 2003-01-19  Bruno Haible  <bruno@clisp.org>
59458
59459         * gnulib-tool: Recognize option --extract-maintainer.
59460         (func_get_maintainer): New function.
59461         * modules/*: Add Maintainer entry.
59462
59463 2003-01-16  Jim Meyering  <jim@meyering.net>
59464
59465         * m4/regex.m4: The `regex' struct is both input and output.
59466         Initialize it before each use.  Patch by Tim Waugh.
59467
59468 2003-01-16  Bruno Haible  <bruno@clisp.org>
59469
59470         * MODULES.html.sh: Add a table of contents. Add the module name as
59471         leftmost column. Add hyperlinks.
59472
59473 2003-01-15  Bruno Haible  <bruno@clisp.org>
59474
59475         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59476
59477 2003-01-15  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59480         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59481         suffix.
59482
59483 2003-01-15  Bruno Haible  <bruno@clisp.org>
59484
59485         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59486
59487 2003-01-15  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59490         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59491
59492 2003-01-14  Jim Meyering  <jim@meyering.net>
59493
59494         * lib/same.c (same_name): Tweak a comment.
59495
59496 2003-01-14  Bruno Haible  <bruno@clisp.org>
59497
59498         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59499         when a string comparison is sufficient.
59500
59501 2003-01-14  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59504         'unsigned int'.
59505
59506 2003-01-14  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/hash-pjw.c: Add comment about low quality of this function.
59509
59510 2003-01-13  Bruno Haible  <bruno@clisp.org>
59511
59512         * modules/stpcpy: Distribute lib/stpcpy.h.
59513         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59514
59515 2003-01-13  Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/*: Add a description.
59518         * modules/strpbrk: Fix Makefile.am snippet.
59519         * modules/strtoimax: Fix dependencies.
59520         * modules/strtoumax: Likewise.
59521
59522 2003-01-13  Bruno Haible  <bruno@clisp.org>
59523
59524         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59525         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59526         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59527
59528 2003-01-13  Bruno Haible  <bruno@clisp.org>
59529
59530         * gnulib-tool (func_create_testdir): Store config/* files in the main
59531         directory.
59532         * config.rpath: Move to ...
59533         * config/config.rpath: ... here.
59534         * modules/gettext: Contains config/config.rpath, not config.rpath.
59535         * modules/iconv: Likewise.
59536
59537 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59538
59539         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59540         to avoid collisions with libcurses and libreadline.
59541
59542         * m4/getstr.m4: Remove.
59543         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59544
59545 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59546
59547         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59548         to avoid collisions with libcurses and libreadline.
59549
59550         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59551         * lib/getstr.h, getstr.c: Remove.
59552         * lib/getline.c: Include "getline.h", to check interface.
59553         Move body of old getstr.c here: this defines MIN_CHUNK and
59554         declares getdelim2, which is renamed from getstr.
59555         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59556
59557         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59558         All uses changed.
59559         * lib/linebuffer.h: Likewise.
59560         (readline): Remove backward-compatibility macro.
59561
59562 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59563
59564         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59565         to avoid collisions with libcurses and libreadline.
59566         * getstr: Remove.
59567         * MODULES.html.sh: Remove getstr.
59568         * modules/getline: Depend on unlocked-io, not getstr.
59569
59570 2003-01-12  Jim Meyering  <jim@meyering.net>
59571
59572         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59573
59574 2003-01-10  Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/alloca: Change Makefile.am requirements. Simplify Include
59577         requirements. Add lib/alloca_.h to file list.
59578
59579 2003-01-10  Bruno Haible  <bruno@clisp.org>
59580
59581         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59582
59583 2003-01-10  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/alloca_.h: New file.
59586         * lib/getdate.y: Unconditionally include alloca.h.
59587         * lib/makepath.c: Likewise.
59588         * lib/setenv.c: Likewise.
59589         * lib/userspec.c: Likewise.
59590
59591 2003-01-09  Karl Berry  <karl@gnu.org>
59592
59593         * MODULES.html.sh: include `dirname $0` in PATH, to find
59594         gnulib-tool.
59595
59596 2003-01-09  Bruno Haible  <bruno@clisp.org>
59597
59598         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59599         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59600
59601 2003-01-09  Bruno Haible  <bruno@clisp.org>
59602
59603         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59604
59605 2003-01-09  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/stdbool.h.in: New file.
59608
59609 2003-01-09  Bruno Haible  <bruno@clisp.org>
59610
59611         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59612         * MODULES.html.sh: Likewise.
59613
59614 2003-01-08  Jim Meyering  <jim@meyering.net>
59615
59616         * lib/full-write.c: Undefine and define-away `const' after inclusion
59617         of errno.h, not before.  Suggestion from Bruno Haible.
59618
59619 2003-01-08  Bruno Haible  <bruno@clisp.org>
59620
59621         * modules/full-read: Depend on full-write.
59622
59623 2003-01-08  Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/safe-read.c: Include specification header first, to ensure its
59626         selfcontainedness.
59627         * lib/full-write.c: Likewise.
59628
59629 2003-01-07  Jim Meyering  <jim@meyering.net>
59630
59631         * lib/full-write.c: Rework so that it may serve to define full_read,
59632         too.
59633         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
59634
59635 2003-01-07  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/strtoimax.c: Include <stdint.h> as an alternative to
59638         <inttypes.h>.
59639         * lib/xstrtol.h: Likewise.
59640         * lib/xstrtoimax.c: Likewise.
59641         * lib/xstrtoumax.c: Likewise.
59642         * lib/human.h: Likewise.
59643
59644         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
59645         on systems that have <inttypes.h> but not <stdint.h>.
59646
59647 2003-01-07  Bruno Haible  <bruno@clisp.org>
59648
59649         * MODULES.html.sh: Add copyright notice.
59650         (missed_files): Omit CVS directory entries.
59651         (func_module): Make it work with sed-3.02.
59652         * MODULES.txt: Remove file.
59653
59654 2003-01-06  Jim Meyering  <jim@meyering.net>
59655
59656         * lib/version-etc.c: Update year in translatable copyright string.
59657
59658 2003-01-03  Karl Berry  <karl@gnu.org>
59659
59660         * config/config.{guess,sub}: update from prep.
59661
59662 2003-01-02  Karl Berry  <karl@gnu.org>
59663
59664         * doc/COPYING.DOC: belatedly updated to 1.2.
59665
59666 2003-01-01  Karl Berry  <karl@gnu.org>
59667
59668         * gnulib-tool (func_verify_module): report module name $module in
59669         error message, not $1.
59670         * gnulib-tool (create-testdir): don't complain if destdir couldn't
59671         be created, only if it doesn't exist.
59672         * gnulib-tool (last_checkin_date): don't expand the $Date here.
59673
59674 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59675
59676         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
59677
59678 2002-12-31  Paul Eggert  <eggert@twinsun.com>
59679
59680         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
59681         memcmp if strcoll doesn't work.
59682
59683 2002-12-31  Bruno Haible  <bruno@clisp.org>
59684
59685         * lib/utime.c (utime_null): No need to call ftruncate if the file was
59686         nonempty.
59687
59688 2002-12-31  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/memcoll.c (STRCOLL): New macro.
59691         (memcoll): Use it.
59692
59693 2002-12-31  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/localcharset.h: New file.
59696         * lib/localcharset.c: Include it.
59697         * lib/unicodeio.c: Likewise.
59698
59699 2002-12-31  Bruno Haible  <bruno@clisp.org>
59700
59701         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
59702         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
59703
59704 2002-12-31  Bruno Haible  <bruno@clisp.org>
59705
59706         * lib/getline.h: Include <stddef.h>, for size_t.
59707
59708         * lib/unicodeio.h: Include <stddef.h>, for size_t.
59709         * lib/unicodeio.c: Don't include <stddef.h>.
59710
59711 2002-12-31  Bruno Haible  <bruno@clisp.org>
59712
59713         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
59714         HAVE_TM_ZONE.
59715
59716 2002-12-24  Karl Berry  <karl@gnu.org>
59717
59718         * config/config.guess: update from prep.
59719
59720 2002-12-24  Bruno Haible  <bruno@clisp.org>
59721
59722         General infrasructure.
59723         * m4/README: Rewritten.
59724         * m4/onceonly.m4: New file.
59725         * m4/onceonly_2_57.m4: New file.
59726
59727         Module atexit.
59728         * m4/atexit.m4: New file.
59729
59730         Module strtod.
59731         * m4/strtod.m4: New file.
59732
59733         Module strtol.
59734         * m4/strtol.m4: New file.
59735
59736         Module strtoul.
59737         * m4/strtoul.m4: New file.
59738
59739         Module memchr.
59740         * m4/memchr.m4: New file.
59741
59742         Module memcmp.
59743         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
59744         (jm_FUNC_MEMCMP): Invoke it.
59745
59746         Module memcpy.
59747         * m4/memcpy.m4: New file.
59748
59749         Module memmove.
59750         * m4/memmove.m4: New file.
59751
59752         Module memset.
59753         * m4/memset.m4: New file.
59754
59755         Module strcspn.
59756         * m4/strcspn.m4: New file.
59757
59758         Module strpbrk.
59759         * m4/strpbrk.m4: New file.
59760
59761         Module strstr.
59762         * m4/strstr.m4: New file.
59763
59764         Module strerror.
59765         * m4/strerror.m4: New file.
59766
59767         Module mktime.
59768         * m4/mktime.m4: Renamed from jm-mktime.m4.
59769         (gl_PREREQ_MKTIME): New macro.
59770         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
59771
59772         Module malloc.
59773         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
59774         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
59775         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
59776
59777         Module realloc.
59778         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
59779         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
59780         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
59781
59782         Module strftime.
59783         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
59784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
59785         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
59786         gl_TM_GMTOFF.
59787         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
59788
59789         Module xalloc.
59790         * m4/xalloc.m4: New file.
59791
59792         Module alloca.
59793         * m4/alloca.m4: New file.
59794
59795         Module putenv.
59796         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
59797         (jm_FUNC_PUTENV): Invoke it.
59798
59799         Module setenv.
59800         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
59801         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
59802         when invoked twice.
59803         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
59804         gt_FUNC_SETENV.
59805
59806         Module memrchr.
59807         * m4/memrchr.m4: New file.
59808
59809         Module stpcpy.
59810         * m4/stpcpy.m4: New file.
59811
59812         Module strcase.
59813         * m4/strcase.m4: New file.
59814
59815         Module strdup.
59816         * m4/strdup.m4: New file.
59817
59818         Module strnlen.
59819         * m4/strnlen.m4: New file.
59820
59821         Module strndup.
59822         * m4/strndup.m4: New file.
59823
59824         Module xstrtod.
59825         * m4/xstrtod.m4: New file.
59826
59827         Module xstrtol.
59828         * m4/xstrtol.m4: New file.
59829
59830         Module getdate.
59831         * m4/getdate.m4: New file.
59832
59833         Module unlocked-io.
59834         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
59835         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
59836         * m4/jm-glibc-io.m4n: Remove file.
59837
59838         Module long-options.
59839         * m4/long-options.m4: New file.
59840
59841         Module md5.
59842         * m4/md5.m4: New file.
59843
59844         Module sha.
59845         * m4/sha.m4: New file.
59846
59847         Module getstr.
59848         * m4/getstr.m4: New file.
59849
59850         Module getline.
59851         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
59852         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
59853         <sys/types.h>, for size_t. Use the function name gnu_getline, not
59854         simply getline. Infoke gl_PREREQ_GETLINE.
59855
59856         Module obstack.
59857         * m4/obstack.m4: New file.
59858
59859         Module hash.
59860         * m4/hash.m4: New file.
59861
59862         Module readtokens.
59863         * m4/readtokens.m4: New file.
59864
59865         Module strverscmp.
59866         * m4/strverscmp.m4: New file.
59867
59868         Module stdbool.
59869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
59870         OSF/1.
59871
59872         Module strtoll.
59873         * m4/strtoll.m4: New file.
59874
59875         Module strtoull.
59876         * m4/strtoull.m4: New file.
59877
59878         Module strtoimax.
59879         * m4/strtoimax.m4: New file.
59880
59881         Module strtoumax.
59882         * m4/strtoumax.m4: New file.
59883
59884         Module xstrtoimax.
59885         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
59886         jm_AC_PREREQ_XSTRTOIMAX.
59887         Moved the strtol prerequisites to strtol.m4.
59888         Moved the strtoll prerequisites to strtoll.m4.
59889         Moved the strtoimax prerequisites to strtoimax.m4.
59890
59891         Module xstrtoumax.
59892         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
59893         jm_AC_PREREQ_XSTRTOUMAX.
59894         Moved the strtoul prerequisites to strtoul.m4.
59895         Moved the strtoull prerequisites to strtoull.m4.
59896         Moved the strtoumax prerequisites to strtoumax.m4.
59897
59898         Module chown.
59899         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
59900         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
59901
59902         Module dup2.
59903         * m4/dup2.m4: New file.
59904
59905         Module ftruncate.
59906         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
59907         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
59908
59909         Module getgroups.
59910         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
59911         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
59912
59913         Module gettimeofday.
59914         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
59915         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
59916         gl_PREREQ_GETTIMEOFDAY.
59917
59918         Module mkdir.
59919         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
59920         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
59921
59922         Module mkstemp.
59923         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
59924         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
59925         jm_AC_TYPE_UINTMAX_T.
59926         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
59927
59928         Module stat.
59929         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
59930         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
59931
59932         Module lstat.
59933         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
59934         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
59935
59936         Module timespec.
59937         * m4/timespec.m4 (gl_TIMESPEC): New macro.
59938         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
59939         * m4/st_mtim.m4: Indentation.
59940
59941         Module nanosleep.
59942         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
59943         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
59944         gl_PREREQ_NANOSLEEP.
59945
59946         Module regex.
59947         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
59948         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
59949         (gl_REGEX): New macro.
59950
59951         Module rename.
59952         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
59953         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
59954
59955         Module rmdir.
59956         * m4/rmdir.m4: New file.
59957
59958         Module utime.
59959         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
59960         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
59961         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
59962
59963         Module dirname.
59964         * m4/dirname.m4: New file.
59965
59966         Module getopt.
59967         * m4/getopt.m4: New file.
59968
59969         Module unistd-safer.
59970         * m4/unistd-safer.m4: New file.
59971
59972         Module fnmatch.
59973         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
59974         declaration.
59975         (gl_PREREQ_FNMATCH_EXTRA): New macro.
59976         (gl_FUNC_FNMATCH_POSIX): New macro.
59977         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
59978         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
59979         simply fnmatch.
59980
59981         Module exclude.
59982         * m4/exclude.m4: New file.
59983
59984         Module human.
59985         * m4/human.m4: New file.
59986
59987         Module acl.
59988         * m4/acl.m4: Nop.
59989
59990         Module backupfile.
59991         * m4/backupfile.m4: New file.
59992         * m4/d-ino.m4: Indentation.
59993
59994         Module fsusage.
59995         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
59996         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
59997         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
59998
59999         Module dirfd.
60000         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60001         requirements.
60002
60003         Module euidaccess.
60004         * m4/euidaccess.m4: New file.
60005
60006         Module file-type.
60007         * m4/file-type.m4: New file.
60008
60009         Module fileblocks.
60010         * m4/fileblocks.m4: New file.
60011
60012         Module filemode.
60013         * m4/filemode.m4: New file.
60014
60015         Module isdir.
60016         * m4/isdir.m4: New file.
60017
60018         Module lchown.
60019         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60020         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60021
60022         Module makepath.
60023         * m4/makepath.m4: New file.
60024
60025         Module modechange.
60026         * m4/modechange.m4: New file.
60027
60028         Module mountlist.
60029         * m4/mountlist.m4: New file.
60030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60031         Indentation.
60032
60033         Module path-concat.
60034         * m4/path-concat.m4: New file.
60035
60036         Module pathmax.
60037         * m4/pathmax.m4: New file.
60038
60039         Module same.
60040         * m4/same.m4: New file.
60041
60042         Module save-cwd.
60043         * m4/save-cwd.m4: New file.
60044
60045         Module savedir.
60046         * m4/savedir.m4: New file.
60047
60048         Module xgetcwd.
60049         * m4/xgetcwd.m4: New file.
60050         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60051
60052         Module xreadlink.
60053         * m4/xreadlink.m4: New file.
60054
60055         Module safe-read.
60056         * m4/safe-read.m4: New file.
60057
60058         Module safe-write.
60059         * m4/safe-write.m4: New file.
60060
60061         Module closeout.
60062         * m4/closeout.m4: New file.
60063
60064         Module stdio-safer.
60065         * m4/stdio-safer.m4: New file.
60066
60067         Module getpass.
60068         * m4/getpass.m4: New file.
60069
60070         Module getugroups.
60071         * m4/getugroups.m4: New file.
60072
60073         Module group-member.
60074         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60075         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60076
60077         Module idcache.
60078         * m4/idcache.m4: New file.
60079
60080         Module userspec.
60081         * m4/userspec.m4: New file.
60082
60083         Module gettime.
60084         * m4/clock_time.m4: New file.
60085         * m4/gettime.m4: New file.
60086
60087         Module settime.
60088         * m4/settime.m4: New file.
60089
60090         Module posixtm.
60091         * m4/posixtm.m4: New file.
60092
60093         Module gethostname.
60094         * m4/gethostname.m4: New file.
60095
60096         Module canon-host.
60097         * m4/canon-host.m4: New file.
60098
60099         Module gettext.
60100         * m4/codeset.m4: New file, from gettext-0.11.5.
60101         * m4/gettext.m4: New file, from gettext-0.11.5.
60102         * m4/glibc21.m4: New file, from gettext-0.11.5.
60103         * m4/iconv.m4: New file, from gettext-0.11.5.
60104         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60105         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60106         * m4/inttypes.m4: New file, from gettext-0.11.5.
60107         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60108         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60109         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60110         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60111         * m4/lib-link.m4: New file, from gettext-0.11.5.
60112         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60113         * m4/progtest.m4: New file, from gettext-0.11.5.
60114         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60115         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60116         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60117
60118         Module localcharset.
60119         * m4/localcharset.m4: New file.
60120
60121         Module hard-locale.
60122         * m4/hard-locale.m4: New file.
60123
60124         Module mbswidth.
60125         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60126         onceonly macros.
60127         * m4/mbrtowc.m4: Add comment.
60128
60129         Module memcasecmp.
60130         * m4/memcasecmp.m4: New file.
60131
60132         Module memcoll.
60133         * m4/memcoll.m4: New file.
60134
60135         Module unicodeio.
60136         * m4/unicodeio.m4: New file.
60137
60138         Module rpmatch.
60139         * m4/rpmatch.m4: New file.
60140
60141         Module yesno.
60142         * m4/yesno.m4: New file.
60143
60144         Module exitfail.
60145         * m4/exitfail.m4: New file.
60146
60147         Module c-stack.
60148         * m4/c-stack.m4 (gl_C_STACK): New macro.
60149         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60150
60151         Module error.
60152         * m4/error.m4 (gl_ERROR): New macro.
60153         (jm_PREREQ_ERROR): Use onceonly macros.
60154
60155         Module fatal.
60156         * m4/fatal.m4: New file.
60157
60158         Module getloadavg.
60159         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60160         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60161
60162         Module getpagesize.
60163         * m4/getpagesize.m4: New file.
60164
60165         Module getusershell.
60166         * m4/getusershell.m4: New file.
60167
60168         Module physmem.
60169         * m4/physmem.m4: New file.
60170
60171         Module posixver.
60172         * m4/posixver.m4: New file.
60173
60174         Module quotearg.
60175         * m4/quotearg.m4: New file.
60176
60177         Module quote.
60178         * m4/quote.m4: New file.
60179
60180         Module readutmp.
60181         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60182
60183         Module sig2str.
60184         * m4/sig2str.m4: New file.
60185
60186         Other.
60187         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60188         ulonglong.m4.
60189         * m4/intmax_t.m4: New file.
60190         * m4/d-type.m4: Indentation.
60191         * m4/jm-macros.m4: Update.
60192         * m4/prereq.m4 (jm_PREREQ): Update.
60193         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60194         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60195         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60196         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60197         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60198         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60199         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60200         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60201         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60202         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60203         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60204         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60205         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60206         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60207         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60208         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60209         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60210         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60211         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60212
60213 2002-12-24  Bruno Haible  <bruno@clisp.org>
60214
60215         * MODULES.txt: Update according to m4/ changes.
60216
60217         Module gettext.
60218         * config.rpath: New file, from gettext-0.11.5.
60219
60220         * modules/*: New module descriptions.
60221         * gnulib-tool: New file.
60222         * MODULES.html.sh: New file.
60223
60224 2002-12-21  Karl Berry  <karl@gnu.org>
60225
60226         * doc/fdl.texi: update to version 1.2.
60227
60228 2002-12-19  Karl Berry  <karl@gnu.org>
60229
60230         * config/config.guess: update from prep.
60231
60232 2002-12-18  Bruno Haible  <bruno@clisp.org>
60233
60234         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60235         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60236
60237 2002-12-17  Bruno Haible  <bruno@clisp.org>
60238
60239         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60240         stdlib.h, string.h.
60241
60242 2002-12-17  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/canon-host.c (strdup): Remove unused declaration.
60245
60246         * lib/fsusage.c: Include full_read.h.
60247         (get_fs_usage): Use full_read instead of safe_read.
60248
60249         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60250
60251 2002-12-12  Karl Berry  <karl@gnu.org>
60252
60253         * config/config.guess: update from prep.
60254
60255 2002-12-11  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/setenv.m4: New file, from gettext-0.11.5.
60258
60259 2002-12-11  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60262         not unsetenv().
60263         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60264         modifications:
60265
60266         2002-12-11  Bruno Haible  <bruno@clisp.org>
60267
60268                 * setenv.c (alloca): Fall back to malloc.
60269                 (freea): New macro.
60270                 (setenv): Use freea() to free memory allocated with alloca().
60271
60272         2002-11-13  Bruno Haible  <bruno@clisp.org>
60273
60274                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60275                 function declarations.
60276                 * unsetenv.c (unsetenv): Likewise.
60277
60278         2002-03-04  Bruno Haible  <bruno@clisp.org>
60279
60280                 Portability to AIX 4.3.3.
60281                 * unsetenv.c: New file, extracted from setenv.c.
60282                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60283
60284         2001-12-20  Bruno Haible  <bruno@clisp.org>
60285
60286                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60287                 use malloc instead. For SunOS 4.
60288
60289         2001-12-11  Bruno Haible  <bruno@clisp.org>
60290
60291                 * setenv.c: Declare alloca.
60292                 (compar_fn_t): New typedef.
60293                 (KNOWN_VALUE, STORE_VALUE): Use it.
60294
60295         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60296         setenv.h.
60297
60298 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60299
60300         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60301         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60302         Choose values that are less likely to collide with system fnmatch
60303         options.
60304         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60305         defined (e.g., a pure POSIX system).
60306         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60307         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60308
60309 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60310
60311         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60312         a pain in practice to deal with generated m4 files.  This change
60313         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60314
60315         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60316         and jm-glibc-io.m4, as they are no longer a special case.
60317         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60318         kludge and the auto-generation stuff.  Check only whether the
60319         functions are declared, not whether they exist, since older hosts
60320         that don't declare the functions can't use the optimization anyway.
60321
60322 2002-12-06  Jim Meyering  <jim@meyering.net>
60323
60324         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60325
60326         Merge in changes from libc's misc/error.c, in preparation
60327         for the merge of gnulib's changes back into libc.
60328
60329         * lib/error.c (_): Define only if not already defined.
60330         Move definition to follow all #include directives.
60331         Include unlocked-io.h only if !_LIBC.
60332         [_LIBC]: Include <libio/libioP.h>.
60333         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60334         (fflush): Tweak definition to use INTUSE.
60335         (putc): Define.
60336
60337 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60338
60339         * lib/alloca.c [defined emacs]: Include "lisp.h".
60340         (xalloc_die) [defined emacs]: New macro.
60341         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60342         [! defined emacs]: Include <xalloc.h>.
60343         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60344         (pointer): Typedef to POINTER_TYPE *.
60345         (malloc): Remove decl; we now always use xmalloc.
60346         (alloca): Use old-style definition, since Emacs needs this.
60347         Check for arithmetic overflow when computing combined size.
60348
60349 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60350
60351         Do not generate unlocked-io.h automatically, since it's easier to
60352         maintain it by hand.
60353
60354         * lib/unlocked-io.h: New file, from GNU diffutils,
60355         but with proper copyright notice and attribution.
60356         * lib/gen-uio: Remove.
60357         * lib/Makefile.am: Add copyright notice.
60358         (libfetish_a_SOURCES): Add unlocked-io.h.
60359         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60360         (DISTCLEANFILES, io_functions): Remove macros.
60361         (EXTRA_DIST): Remove gen_uio.
60362         (unlocked-io.h): Remove rule.
60363
60364 2002-12-04  Jim Meyering  <jim@meyering.net>
60365
60366         Reflect the fact that stat.c and lstat.c are no longer generated.
60367         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60368         (DISTCLEANFILES): Likewise.
60369         (EXTRA_DIST): Likewise.
60370         (all_local): Don't depend on stat.c or lstat.c.
60371         (stat.c, lstat.c): Remove rules.
60372         (EXTRA_DIST): Remove xstat.in.
60373
60374         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60375         * lib/stat.c: New file.  Contents mostly from xstat.in.
60376         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60377         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60378
60379         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60380         too.
60381         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60382
60383 2002-12-03  Jim Meyering  <jim@meyering.net>
60384
60385         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60386         but not semantics, to minimize the differences between these two files.
60387         (safe_read): Change comment to mention SAFE_READ_ERROR.
60388
60389         * lib/safe-read.c (IS_EINTR): Define.
60390         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60391
60392 2002-12-02  Jim Meyering  <jim@meyering.net>
60393
60394         * lib/safe-read.c (EINTR): Define.
60395         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60396         (INT_MAX): Provide fallback.
60397         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60398
60399         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60400
60401 2002-12-02  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60404         Define, taken from safe-read.c.
60405         (INT_MAX): Provide fallback.
60406         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60407         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60408
60409         * lib/safe-read.c (EINTR): Remove definition.
60410         (safe_read): Don't use EINTR if it is absent.
60411
60412 2002-12-01  Jim Meyering  <jim@meyering.net>
60413
60414         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60415         zero.
60416         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60417
60418 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60419
60420         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60421         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60422         with `if (! (value < limit)) abort ();', for readability.
60423
60424 2002-11-26  Karl Berry  <karl@gnu.org>
60425
60426         * lib/strdup.c: copy from libc again, with jim's ok.
60427         * lib/.cppi-disable: re-add strdup.c
60428
60429 2002-11-25  Karl Berry  <karl@gnu.org>
60430
60431         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60432         instead of "strtol.c".
60433
60434 2002-11-25  Karl Berry  <karl@gnu.org>
60435
60436         * config/install-sh: update from automake for variable quoting, $0 in
60437         error msgs, etc.
60438
60439         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60440         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60441         entry.
60442
60443 2002-11-25  Jim Meyering  <jim@meyering.net>
60444
60445         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60446
60447 2002-11-24  Karl Berry  <karl@gnu.org>
60448
60449         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60450         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60451
60452 2002-11-24  Jim Meyering  <jim@meyering.net>
60453
60454         Update from coreutils:
60455
60456         * lib/mktime.c: Merge in changes from libc.
60457
60458         Avoid a link-time failure on some Linux systems.
60459         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60460         (otherwise).
60461         (__mon_yday): Declare with the STATIC attribute.
60462         (__mktime_internal): Likewise.
60463         Based on a report from Greg Schafer.
60464
60465 2002-11-23  Jim Meyering  <jim@meyering.net>
60466
60467         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60468         Use `unsigned', not `int', as type of index.
60469
60470         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60471
60472         * lib/fsusage.c: Remove unneeded parentheses around operands of
60473         `defined'.
60474
60475 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60476
60477         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60478         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60479         so that we can be included first.
60480         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60481         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60482         No need to include stddef.h or sys/types.h any more.
60483         Surround local include files with "", not "<>".
60484         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60485         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60486         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60487         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60488         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60489         (ISPRINT): Remove; no longer needed now that we assume C89.
60490
60491         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60492         Preserve errno.
60493
60494         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60495         quotearg_char): Use SIZE_MAX rather than
60496         (size_t) -1 when we are talking about "infinity".
60497
60498         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60499
60500 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60501
60502         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60503         hint that one should use `if (! x) abort ();' rather than `assert
60504         (x);', and anyway it's one less thing to worry about configuring.
60505         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60506         hash_rehash, hash_insert): Use abort rather than assert.
60507
60508 2002-11-22  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/safe-read.h: Assume C89. Add comments.
60511         (safe_read): Change return type to size_t.
60512         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60513         byte counts > SSIZE_MAX correctly.
60514         * lib/safe-write.h: New file.
60515         * lib/safe-write.c: New file.
60516         * lib/full-read.h: New file.
60517         * lib/full-read.c: New file.
60518         * lib/full-write.h: Assume C89. Add comments.
60519         * lib/full-write.c: Include safe-write.h.
60520         (full_write): Rewritten to use safe_write.
60521         Suggested by Jim Meyering and Paul Eggert.
60522
60523 2002-11-21  Jim Meyering  <jim@meyering.net>
60524
60525         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60526
60527         Merge in changes from the coreutils.
60528
60529         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60530         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60531         <stdint.h>.
60532         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60533         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60534         int.  Work more efficiently if X is the same width as uintmax_t.
60535         Do not compare X to -1, to avoid bogus compiler warning.
60536         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60537         Don't assume that f_frsize and f_bsize are the same type.
60538
60539         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60540         warning on FreeBSD.
60541
60542         * lib/makepath.c (make_path): Restore umask *before* creating the final
60543         component.
60544         (make_path): Minor reformatting.
60545
60546         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60547         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60548         HAVE_MALLOC/HAVE_REALLOC.
60549
60550         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60551         dummy ones.  At least on GNU/Linux systems, `auto' means something
60552         else.
60553         From Michael Stone.
60554
60555 2002-11-21  Bruno Haible  <bruno@clisp.org>
60556
60557         Remove case insensitive option matching.
60558         * lib/argmatch.h (argcasematch): Remove declaration.
60559         (ARGCASEMATCH): Remove macro.
60560         (__xargmatch_internal): Remove case_sensitive argument.
60561         (XARGMATCH): Update.
60562         (XARGCASEMATCH): Remove macro.
60563         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60564         case_sensitive argument.
60565         (argcasematch): Remove function.
60566         (__xargmatch_internal): Remove case_sensitive argument.
60567         (main): Use XARGMATCH instead of XARGCASEMATCH.
60568
60569         * lib/xmalloc.c: Change compile-time error message. Add comment about
60570         required autoconf version.
60571
60572 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60573
60574         Merge argmatch cleanups from Bison.  Assume C89.
60575
60576         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60577         Include stdlib.h, for EXIT_FAILURE.
60578         Always include <string.h>, since we assume C89.
60579         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60580         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60581         Include <stddef.h> instead, since it's all we need for size_t.
60582         (PARAMS): Remove.  All uses removed.
60583         (ARRAY_CARDINALITY): Do not bother to #undef.
60584         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60585         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60586         Remove unnecessary parentheses.
60587         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60588         Insert necessary parentheses.
60589         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60590         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60591
60592 2002-11-19  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60595         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60596
60597         * lib/mbswidth.h (PARAMS): Remove macro.
60598         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60599         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60600
60601         * lib/gcd.h (PARAMS): Remove macro.
60602         (gcd): Use ANSI C function declarations.
60603         * lib/gcd.c (gcd): Likewise.
60604
60605 2002-11-15  Bruno Haible  <bruno@clisp.org>
60606
60607         * lib/strcspn.c: Include <stddef.h>.
60608         (strcspn): Use ANSI C function declaration. Change return type to
60609         size_t. Use NULL.
60610         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60611         (strpbrk): Use NULL.
60612         * lib/strpbrk.h (PARAMS): Remove macro.
60613         (strpbrk): Use ANSI C function declaration.
60614         * lib/strstr.c: Don't include <sys/types.h>.
60615         * lib/strstr.h (PARAMS): Remove macro.
60616         (strstr): Use ANSI C function declarations.
60617
60618 2002-11-14  Karl Berry  <karl@gnu.org>
60619
60620         * config/mkinstalldirs: `do' on separate line, instead of
60621         `for var; do'.
60622
60623 2002-11-06  Bruno Haible  <bruno@clisp.org>
60624
60625         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
60626         * lib/gcd.c (gcd): Likewise.
60627
60628 2002-11-05  Bruno Haible  <bruno@clisp.org>
60629
60630         * lib/gcd.h: New file, from gettext-0.11.5.
60631         * lib/gcd.c: New file, from gettext-0.11.5.
60632
60633 2002-11-05  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60636         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60637         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60638         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
60639
60640         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
60641         <libintl.h>.
60642         * lib/makepath.c: Include gettext.h instead of <locale.h> and
60643         <libintl.h>.
60644
60645         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
60646         * lib/human.c: Include gettext.h instead of <libintl.h>.
60647         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
60648         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
60649         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
60650         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
60651         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
60652         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
60653         (textdomain): Remove definition.
60654         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
60655
60656         * lib/long-options.c: Remove include of <libintl.h> and definition of
60657         _.
60658         * lib/same.c: Remove include of <libintl.h> and definition of _.
60659
60660 2002-11-04  Owen Taylor  <otaylor@redhat.com>
60661
60662         * lib/config.charset: A few additions for Solaris.
60663
60664 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60665
60666         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
60667         * lib/localcharset.c (locale_charset): Declare as extern "C".
60668
60669 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
60670
60671         * lib/config.charset: msdos in uk_UA uses CP1125.
60672
60673 2002-11-04  Bruno Haible  <bruno@clisp.org>
60674
60675         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
60676         * lib/strcase.h: New file, from GNU gettext-0.11.5.
60677         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
60678         * lib/strstr.h: New file, from GNU gettext-0.11.5.
60679         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
60680
60681 2002-11-04  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/localcharset.c (locale_charset): Don't return an empty string.
60684
60685 2002-11-04  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
60688         aliases.
60689
60690 2002-11-04  Bruno Haible  <bruno@clisp.org>
60691
60692         * lib/config.charset: Update for newest glibc. Add canonical names
60693         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
60694
60695 2002-11-04  Bruno Haible  <bruno@clisp.org>
60696
60697         * lib/config.charset: Add support for NetBSD.
60698
60699 2002-11-04  Bruno Haible  <bruno@clisp.org>
60700
60701         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
60702
60703 2002-11-01  Bruno Haible  <bruno@clisp.org>
60704
60705         * configure.in: Add AC_CONFIG_AUX_DIR call.
60706         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
60707         test/Makefile.
60708         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
60709
60710 2002-09-28  Karl Berry  <karl@gnu.org>
60711
60712         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
60713         installed automake until the next release, since changes have been
60714         made.
60715
60716 2002-09-25  Karl Berry  <karl@gnu.org>
60717
60718         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
60719         * lib/getopt*: copy from libc/posix.
60720         * lib/gettext.h: copy from gettext.
60721         * lib/.cppi-disable: add strdup.c, gettext.h.
60722
60723 2002-09-25  Karl Berry  <karl@gnu.org>
60724
60725         * config/srclist.txt: enable gettext.h check.
60726         * config/config.{guess,sub}: update from prep.
60727         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
60728                 from automake 1.6.3.
60729         See srclist*.
60730
60731 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
60732
60733         * regex.c (PATFETCH): Remove the translating fetch.
60734         (PATFETCH_RAW): Rename to PATFETCH.
60735         (set_image_of_range): New fun.
60736         (SET_RANGE_TABLE_WORK_AREA): Use it.
60737         (regex_compile): Don't translate the pattern chars so eagerly.
60738         Only do it when inserting an `exactn' bytecode or when handling
60739         a char-range.
60740         (mutually_exclusive_p): Avoid empty statement.
60741
60742 2002-07-06  Jim Meyering  <meyering@lucent.com>
60743
60744         * m4/README: Don't mention Makefile.am.in.
60745         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
60746
60747 2002-07-01  Jim Meyering  <meyering@lucent.com>
60748
60749         * lib/c-stack.c: Include sys/time.h.
60750         From Volker Borchert.
60751
60752 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60753
60754         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
60755
60756 2002-06-26  Paul Eggert  <eggert@twinsun.com>
60757
60758         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
60759         New macro.  Use it uniformly instead of
60760         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
60761         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
60762         reported by Vin Shelton.
60763
60764 2002-06-22  Paul Eggert  <eggert@twinsun.com>
60765
60766         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
60767         Do not assume SA_SIGINFO behavior.
60768         Bug reported by Jim Meyering on NetBSD 1.5.2.
60769
60770 2002-06-22  Jim Meyering  <meyering@lucent.com>
60771
60772         * m4/c-stack.m4: New file, from diffutils-2.8.2.
60773         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
60774
60775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
60776         now that configure.ac uses AC_GNU_SOURCE.
60777         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
60778         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
60779
60780         Update to latest tools.  Suggestions from Paul Eggert.
60781         * m4/stdbool.m4: New file, from diffutils-2.8.2.
60782         * m4/gnu-source.m4: Update from diffutils-2.8.2.
60783         * m4/fnmatch.m4: Likewise.
60784         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
60785         to AC_HEADER_STDBOOL
60786
60787 2002-06-22  Jim Meyering  <meyering@lucent.com>
60788
60789         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
60790         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
60791
60792 2002-06-22  Jim Meyering  <meyering@lucent.com>
60793
60794         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
60795
60796         * lib/exitfail.c, exitfail.h: Likewise.
60797         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
60798
60799         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
60800         of fnmatch.h.
60801         (EXTRA_DIST): Add fnmatch_loop.c.
60802         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
60803
60804         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
60805         * lib/fnmatch.c: Update from diffutils-2.8.2.
60806         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
60807         * lib/fnmatch.h: Remove file.
60808
60809 2002-06-21  Jim Meyering  <meyering@lucent.com>
60810
60811         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
60812         * m4/mbrtowc.m4: Likewise.
60813
60814         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
60815         * m4/mbswidth.m4: Reflect name change:
60816         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
60817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60818
60819         * m4/lib-link.m4: Update from gettext-0.11.2.
60820         * m4/gettext.m4: Likewise.
60821
60822         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
60823         From Alfred M. Szmidt.
60824
60825 2002-06-18  Paul Eggert  <eggert@twinsun.com>
60826
60827         * lib/file-type.h: Report an error if neither S_ISREG nor
60828         S_IFREG is defined, instead of using a test specific to glibc
60829         2.2.  This should be safe, since POSIX requires S_ISREG and
60830         Unix Version 7 had S_IFREG.  We don't need to check for
60831         <sys/types.h> since we don't use any symbols that it defines.
60832
60833 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
60834
60835         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
60836         $@-t, so that each temporary file name is unique and valid in the first
60837         8 characters, for operation under DOS.
60838
60839 2002-06-15  Paul Eggert  <eggert@twinsun.com>
60840
60841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
60842
60843 2002-06-15  Jim Meyering  <meyering@lucent.com>
60844
60845         Work even with DJGPP 2.03, which lacks support for symlinks.
60846         From Richard Dawe.
60847         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
60848         is defined.
60849         * lib/lchown.c (S_ISLNK): Likewise.
60850
60851 2002-06-15  Jim Meyering  <meyering@lucent.com>
60852
60853         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
60854         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
60855         have been included before this file.
60856
60857 2002-06-14  Jim Meyering  <meyering@lucent.com>
60858
60859         * lib/file-type.h: Use the version from diffutils-2.8.2.
60860         * lib/file-type.c: Likewise.
60861
60862 2002-06-07  Jim Meyering  <meyering@lucent.com>
60863
60864         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
60865         They're needed at least for NetBSD 1.5.2.
60866         ($statxfs_includes): Include those same headers.
60867         ($statxfs_includes): Include sys/vfs.h if available.
60868         ($statxfs_includes): Likewise for sys/statvfs.h.
60869         Check for the following members in both structs statfs and statvfs:
60870         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
60871
60872 2002-06-01  Jim Meyering  <meyering@lucent.com>
60873
60874         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
60875         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
60876
60877 2002-05-28  Jim Meyering  <meyering@lucent.com>
60878
60879         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
60880         Reported by Volker Borchert.
60881
60882 2002-05-27  Jim Meyering  <meyering@lucent.com>
60883
60884         Fix a problem seen only on nonconforming systems whereby ls.c's
60885         use of localtime, and then of gettimeofday would cause trouble:
60886         the localtime call used to initialize rpl_gettimeofday's save
60887         mechanism would clobber ls's current local time information so
60888         that in any long listing the first file would always be listed
60889         with date 1970-01-01.  Analysis by Volker Borchert.
60890
60891         * lib/gettimeofday.c (localtime): Undefine.
60892         (rpl_localtime): New function.
60893
60894 2002-05-27  Jim Meyering  <meyering@lucent.com>
60895
60896         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
60897         localtime.
60898
60899         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
60900         use the replacement function; it wouldn't resolve at link time.
60901         Reported by Volker Borchert.
60902
60903 2002-05-22  Jim Meyering  <meyering@lucent.com>
60904
60905         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
60906         file-type.h.
60907         * lib/file-type.h: New file.
60908         * lib/file-type.c (file_type): New file/function.  Extracted from
60909         diffutils.
60910
60911 2002-04-30  Jim Meyering  <meyering@lucent.com>
60912
60913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
60914
60915 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60916
60917         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
60918
60919 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60920
60921         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
60922         Do not check for alloca.h (no longer used) or stdbool.h (was never
60923         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
60924
60925 2002-04-29  Paul Eggert  <eggert@twinsun.com>
60926
60927         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
60928
60929 2002-04-29  Jim Meyering  <meyering@lucent.com>
60930
60931         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
60932         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
60933         Use AC_FUNC_STRNLEN here instead.
60934
60935         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
60936         With autoconf-2.53a, it's part of AC_PROG_CC.
60937
60938 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60939
60940         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
60941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
60942
60943 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60944
60945         * lib/sig2str.h, lib/sig2str.c: New files.
60946         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
60947
60948 2002-04-28  Paul Eggert  <eggert@twinsun.com>
60949
60950         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
60951         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
60952         of 127, since 64 is the largest conceivable number for ancient
60953         nonstandard hosts.
60954         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
60955
60956 2002-04-28  Jim Meyering  <meyering@lucent.com>
60957
60958         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
60959
60960 2002-04-24  Jim Meyering  <meyering@lucent.com>
60961
60962         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
60963         (jm_PREREQ): Use it.
60964
60965         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
60966         mach/mach.h fcntl.h.
60967         Check for this function: setlocale.
60968
60969 2002-04-24  Jim Meyering  <meyering@lucent.com>
60970
60971         * lib/gettext.h: New file, from Gettext.
60972         * lib/Makefile.am (INCLUDES): Remove -I../intl.
60973         (libfetish_a_SOURCES): Add gettext.h.
60974
60975 2002-04-16  Jim Meyering  <meyering@lucent.com>
60976
60977         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
60978         ut_pid, ut_id, ut_exit.
60979
60980 2002-04-16  Jim Meyering  <meyering@lucent.com>
60981
60982         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
60983         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
60984         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
60985
60986 2002-04-12  Jim Meyering  <meyering@lucent.com>
60987
60988         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
60989         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
60990         existence of the getmntinfo function.  Needed for Darwin 5.3.
60991
60992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
60993         This is necessary at least on Darwin 5.3.
60994
60995         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
60996         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
60997         strnlen.o in the library, and that makes some versions of ranlib
60998         object.
60999
61000 2002-04-12  Jim Meyering  <meyering@lucent.com>
61001
61002         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61003
61004 2002-04-09  Jim Meyering  <meyering@lucent.com>
61005
61006         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61007         to be more precise.  Rather than saying we're checking whether the
61008         function `works', say what we're testing.
61009         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61010         Reported by Bruno Haible.
61011
61012 2002-03-10  Jim Meyering  <meyering@lucent.com>
61013
61014         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61015         Suggestion from Santiago Vila.
61016
61017 2002-03-08  Jim Meyering  <meyering@lucent.com>
61018
61019         * lib/rename.c: Mention that this wrapper is needed also on
61020         mips-dec-ultrix4.4 systems.
61021
61022 2002-03-02  Jim Meyering  <meyering@lucent.com>
61023
61024         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61025         not HAVE_CLOCK_SETTIME.
61026
61027 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61028
61029         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61030         Check for clock_settime.
61031
61032 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61033
61034         * lib/nanosleep.h: Rename to....
61035         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61036
61037         * lib/gettime.c: New file.
61038         * lib/settime.c: New file.
61039         * lib/stime.c: Remove.
61040
61041         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61042         timespec.h.  Remove nanosleep.h.
61043
61044 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61045
61046         * m4/acl.m4: New file.
61047         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61048         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61049
61050 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61051
61052         * lib/acl.c, lib/acl.h: New files.
61053         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61054
61055 2002-02-24  Jim Meyering  <meyering@lucent.com>
61056
61057         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61058         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61059         cause trouble.  Reported by Nelson Beebe.
61060
61061 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61062
61063         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61064         compilers that don't know that xalloc_die never returns.
61065
61066 2002-02-20  Jim Meyering  <meyering@lucent.com>
61067
61068         * lib/getdate.c: Regenerate using bison-1.33.
61069
61070 2002-02-17  Jim Meyering  <meyering@lucent.com>
61071
61072         * config/config.guess (main): Don't use `head -1'; it's no longer
61073         portable. Use `sed 1q' instead.
61074
61075 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61076
61077         * m4/codeset.m4: Upgrade to gettext-0.11.
61078         * m4/gettext.m4: Upgrade to gettext-0.11.
61079         * m4/glibc21.m4: Upgrade to gettext-0.11.
61080         * m4/iconv.m4: Upgrade to gettext-0.11.
61081         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61082         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61083         * m4/lib-ld.m4: New file, from gettext-0.11.
61084         * m4/lib-link.m4: New file, from gettext-0.11.
61085         * m4/lib-prefix.m4: New file, from gettext-0.11.
61086         * m4/progtest.m4: Upgrade to gettext-0.11.
61087
61088 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61089
61090         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61091         (jm_PREREQ): Use it.
61092
61093 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61094
61095         * lib/posixver.c, lib/posixver.h: New files.
61096         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61097
61098 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61099             Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61102         (fwrite_success_callback): New declaration.
61103         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61104         print_unicode_char. Call failure callback instead of error.
61105         (fwrite_success_callback): New function.
61106         (exit_failure_callback): New function.
61107         (fallback_failure_callback): New function.
61108         (print_unicode_char): Call unicode_to_mb.
61109
61110 2002-01-26  Jim Meyering  <meyering@lucent.com>
61111
61112         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61113         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61114
61115 2002-01-26  Jim Meyering  <meyering@lucent.com>
61116
61117         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61118
61119 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61120
61121         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61122
61123 2002-01-22  Jim Meyering  <meyering@lucent.com>
61124
61125         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61126         Otherwise, some versions of automake would omit the rule that makes
61127         Makefile from Makefile.in.
61128
61129 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61130
61131         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61132         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61133         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61134         (memcoll): Set errno to zero if there is no error.
61135
61136         * lib/quotearg.c (quotearg_buffer_restyled):
61137         Fix bug with quoting buffers containing NUL when backslashing escapes.
61138         This bug was exposed by the other changes in this patch.
61139         (quotearg_n_options): New arg ARGSIZE.
61140         All callers changed.
61141         (quoting_options_from_style): New function.
61142         (quotearg_n_style): Use it.
61143         (quotearg_n_style_mem): New function.
61144
61145         * lib/quotearg.h (quotearg_n_style_mem): New function.
61146
61147 2002-01-19  Jim Meyering  <meyering@lucent.com>
61148
61149         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61150         Remove useless quotes: DF_PROG="df".
61151         * m4/strnlen.m4: New file.
61152
61153 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61154
61155         * lib/backupfile.c (ISDIGIT): Comment fix.
61156         * lib/getdate.y (ISDIGIT): Likewise.
61157         * lib/posixtm.c (ISDIGIT, year): Likewise.
61158         * lib/strverscmp.c (ISDIGIT): Likewise.
61159         * lib/userspec.c (ISDIGIT): Likewise.
61160
61161 2002-01-16  Jim Meyering  <meyering@lucent.com>
61162
61163         * lib/getdate.y: Add three semicolons, each just before a closing
61164         brace. Bison (as of version 1.31) no longer papers over that mistake.
61165
61166 2002-01-05  Jim Meyering  <meyering@lucent.com>
61167
61168         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61169
61170 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61171
61172         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61173         not silently exit merely because the output buffer happens to
61174         have nothing pending.
61175
61176 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61177
61178         See the big note in ../ChangeLog.
61179         * lib/human.c (suffixes): Prefer K to k for 1024.
61180         (generate_suffix_backwards): New function.
61181         (human_readable_inexact): Use it.
61182         * lib/xstrtol.c (__xstrtol): If there is no number but there
61183         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61184         Accept 'K' as well as 'k'.
61185
61186 2001-12-15  Jim Meyering  <meyering@lucent.com>
61187
61188         * lib/regex.h (__restrict_arr): Update from libc.
61189
61190         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61191         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61192         (STREQ): Define.
61193
61194 2001-12-14  Jim Meyering  <meyering@lucent.com>
61195
61196         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61197         Suggestion from Bruno Haible.
61198
61199 2001-12-10  Jim Meyering  <meyering@lucent.com>
61200
61201         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61202         xrealloc, Instead, include "xalloc.h".
61203         (initbuffer): Don't cast xmalloc return value to char*.
61204         (readline): Reword comment.
61205         Don't cast xrealloc return value to char*
61206         Return NULL, not 0.
61207
61208 2001-12-09  Jim Meyering  <meyering@lucent.com>
61209
61210         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61211         about `signed and unsigned type in conditional expression'.
61212         * lib/posixtm.c (posix_time_parse): Likewise.
61213
61214         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61215
61216         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61217         to avoid a pedantic warning.
61218
61219         * lib/getstr.c: Don't include assert.h.
61220         (getstr): Remove warning-evoking assertions.
61221         Return -1 if offset parameter is out of bounds.
61222         Change the type of a local from int to size_t.
61223
61224         * lib/strftime.c (my_strftime_localtime_r): Include this function
61225         definition in the `#if ! HAVE_TM_GMTOFF' block.
61226
61227         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61228         Include xalloc.h instead.
61229
61230 2001-12-02  Jim Meyering  <meyering@lucent.com>
61231
61232         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61233         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61234         included.
61235
61236         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61237         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61238
61239 2001-11-30  Akim Demaille  <akim@epita.fr>
61240
61241         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61242         before being defined.
61243
61244 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61245
61246         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61247         First arg is int, not unsigned.
61248         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61249         (SIZE_MAX, UINT_MAX): New macros.
61250         (quotearg_n_options): Abort if N is negative.
61251         Avoid overflow check on hosts where size_t is 64 bits and int
61252         is 32 bits, as overflow is impossible there.
61253         Fix off-by-one typo that caused unnecessary reallocation.
61254
61255 2001-11-27  Jim Meyering  <meyering@lucent.com>
61256
61257         * lib/tempname.c: Merge with version from libc.
61258         * lib/regex.c: Likewise.
61259
61260         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61261         systems for which STDC_HEADERS is 0, it was not included, resulting in
61262         a warning about an integer-to-pointer conversion problem with getenv.
61263         Reported by Volker Borchert.
61264
61265 2001-11-26  Jim Meyering  <meyering@lucent.com>
61266
61267         * lib/gtod.h: Remove file.
61268         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61269         * lib/gettimeofday.c: Don't include gtod.h.
61270         (GTOD_init): Remove function.
61271         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61272         Suggestion from Volker Borchert.
61273
61274 2001-11-23  Jim Meyering  <meyering@lucent.com>
61275
61276         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61277         it.
61278         * lib/hash.c (struct hash_table): Define it here instead.
61279
61280 2001-11-22  Jim Meyering  <meyering@lucent.com>
61281
61282         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61283
61284 2001-11-20  Jim Meyering  <meyering@lucent.com>
61285
61286         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61287         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61288
61289 2001-11-19  Jim Meyering  <meyering@lucent.com>
61290
61291         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61292         directory.  Use "conftestXXXXXX" as the template.
61293         Suggestion from Paul Eggert.
61294
61295         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61296         immediately, so the test doesn't mistakenly hit the max-open-files
61297         limit.
61298
61299 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61300
61301         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61302         (TEMPORARIES): New macro.
61303         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61304         removes an artificial limitation (e.g. HP-UX 10.20, where
61305         TMP_MAX is 17576).
61306
61307 2001-11-18  Jim Meyering  <meyering@lucent.com>
61308
61309         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61310
61311 2001-11-18  Jim Meyering  <meyering@lucent.com>
61312
61313         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61314         on SunOS 4.
61315
61316         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61317         files will be created before anything else.
61318
61319 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61320
61321         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61322         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61323
61324 2001-11-17  Jim Meyering  <meyering@lucent.com>
61325
61326         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61327         Prompted by a report from Bob Proulx.
61328
61329         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61330         Instead, require UTILS_FUNC_MKSTEMP.
61331
61332 2001-11-17  Jim Meyering  <meyering@lucent.com>
61333
61334         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61335         Now, that's done as part of AC_FUNC_STRTOD.
61336
61337 2001-11-17  Jim Meyering  <meyering@lucent.com>
61338
61339         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61340         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61341         rather than group writable.  Patch by Juan F. Codagnone.
61342
61343         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61344         xrealloc, Instead, include "xalloc.h".
61345
61346         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61347         Remove explicit declarations of xmalloc, xrealloc,
61348         and xstrdup.  Instead, include "xalloc.h".
61349
61350         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61351         unlocked-io.h.
61352         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61353         Likewise.
61354         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61355
61356         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61357         Reported by Padraig Brady.
61358
61359         * lib/mkstemp.c: #undef mkstemp.
61360         Include config.h.
61361         (rpl_mkstemp): Rename from mkstemp.
61362         Protoize.
61363
61364 2001-11-16  Jim Meyering  <meyering@lucent.com>
61365
61366         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61367         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61368         determine the amount of total physical memory, use pstat_getstatic.
61369         HPUX-11 doesn't define _SC_PHYS_PAGES.
61370         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61371         If sysconf couldn't be used to determine the amount of available
61372         physical memory, use both pstat_getstatic and pstat_getdynamic.
61373         Based on a patch from Bob Proulx.
61374
61375 2001-11-10  Jim Meyering  <meyering@lucent.com>
61376
61377         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61378         (jm_PREREQ): Use it.
61379
61380 2001-11-09  Jim Meyering  <meyering@lucent.com>
61381
61382         * m4/jm-macros.m4: Require autoconf-2.52f.
61383         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61384         Use these AC_-prefixed names, not the AM_-prefixed ones.
61385
61386         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61387
61388 2001-11-05  Jim Meyering  <meyering@lucent.com>
61389
61390         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61391
61392 2001-11-04  Jim Meyering  <meyering@lucent.com>
61393
61394         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61395         $DEFS.
61396
61397 2001-11-03  Jim Meyering  <meyering@lucent.com>
61398
61399         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61400         of AC_DEFUN.
61401
61402         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61403         know the name of the variable in the macro definition.
61404
61405 2001-11-03  Jim Meyering  <meyering@lucent.com>
61406
61407         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61408         in argmatch_to_argument call.
61409
61410         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61411         argument.
61412
61413         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61414         e.g., a fault due to an attempt to free a NULL pointer.
61415
61416 2001-11-01  Jim Meyering  <meyering@lucent.com>
61417
61418         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61419         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61420
61421 2001-11-01  Jim Meyering  <meyering@lucent.com>
61422
61423         * lib/dirfd.c, lib/dirfd.h: New files.
61424         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61425
61426         * lib/hash.c (hash_print) [TESTING]: Clean up.
61427
61428 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61429
61430         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61431         to avoid a warning if -Wall.
61432
61433 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61434
61435         * README: New file
61436         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61437         (per RMS's instructions, this is now the canonical source)
61438         * lgpl/, gpl/: New directories.
61439
61440 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61441
61442         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61443
61444 2001-10-21  Jim Meyering  <meyering@lucent.com>
61445
61446         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61447         this code would end up calling gettext even in packages built
61448         with --disable-nls.
61449         * lib/getopt.c (_): Likewise.
61450         * lib/regex.c (_): Likewise.
61451
61452 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61453
61454         * m4/error.m4 (jm_PREREQ_ERROR):
61455         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61456         AC_FUNC_STRERROR_R does that.
61457         Check for strerror declaration.
61458
61459         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61460         are supposed to have them these days.
61461         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61462         Merge changes from latest Autoconf CVS.
61463         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61464         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61465         POSIX decided to standardize on the int flavor of strerror_r.
61466
61467 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61468
61469         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61470         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61471         Use strerror_r that is only a macro, even if it is not a function.
61472         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61473         (private_strerror): Use prototypes, not old-style function definition.
61474         (print_errno_message): New function.
61475         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61476         char*-flavored one.
61477         (error_tail, error, error_at_line): Use it.
61478
61479 2001-10-11  Jim Meyering  <meyering@lucent.com>
61480
61481         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61482         and quote_n (1, ... to avoid clobbering a buffer.
61483
61484 2001-10-05  Jim Meyering  <meyering@lucent.com>
61485
61486         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61487         hash-pjw.h.
61488         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61489         * lib/hash-pjw.h: New file.
61490
61491 2001-09-30  Jim Meyering  <meyering@lucent.com>
61492
61493         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61494         `struct fsstat' has the `f_fstypename' member.
61495         Use that to define FS_TYPE, which is now used to make
61496         the getfsstat link test tighter.
61497
61498 2001-09-30  Jim Meyering  <meyering@lucent.com>
61499
61500         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61501         Include <sys/ucred.h>, for Apple Darwin.
61502         Include sys/mount.h and sys/fs_types.h only if available.
61503         (FS_TYPE): Define.
61504         (read_filesystem_list): Use FS_TYPE.
61505
61506 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61507
61508         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61509         a boolean context.
61510
61511 2001-09-29  Jim Meyering  <meyering@lucent.com>
61512
61513         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61514         [one-argument getmntent function]): Include stdio.h before mntent.h.
61515         SunOS 4.1.x needs it for the declaration of `FILE'.
61516         Patch by Volker Borchert.
61517
61518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61519         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61520         sys/fs_types.h, and make the link-test for getfsstat guard #include
61521         directives with appropriate #if HAVE_*_H tests so that we can
61522         detect getfsstat on Apple Darwin1.3.7 systems.
61523         Reported by Nelson Beebe.
61524         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61525
61526 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61527
61528         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61529         #defines strtoimax.  Also treat the other strto* functions
61530         like strtoimax.
61531
61532         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61533         Check for strtoul and strtoumax,
61534         as those declarations are made even in the signed case.
61535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61536         Likewise, for strtol and strtoimax.
61537
61538 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61539
61540         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61541         #defines strtoimax.  Also treat the other strto* functions
61542         like strtoimax.
61543
61544         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61545         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61546         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61547
61548 2001-09-26  Jim Meyering  <meyering@lucent.com>
61549
61550         Most macros in unlocked-io.h had the wrong number of arguments.
61551         * lib/gen-uio: New script.
61552         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61553         * lib/unlocked-io.hin: Remove file.
61554         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61555         rather than trying to embed it here.
61556         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61557         Reported by Padraig Brady.
61558
61559 2001-09-25  Volker Borchert  <bt@teknon.de>
61560
61561         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61562         `result'.
61563
61564 2001-09-24  Jim Meyering  <meyering@lucent.com>
61565
61566         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61567
61568 2001-09-23  Jim Meyering  <meyering@lucent.com>
61569
61570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61571         instead of the mere test for existence of mntent.h.  The latter
61572         would get a false-positive on AIX 3.4 systems.
61573         In the outer getmntent if-block, don't die if neither of the getmntent
61574         tests succeeds.  Instead, just fall through and continue with the
61575         remaining tests.
61576
61577 2001-09-23  Jim Meyering  <meyering@lucent.com>
61578
61579         * lib/mountlist.c: Remove useless parentheses in #if directives.
61580         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61581         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61582
61583 2001-09-22  Jim Meyering  <meyering@lucent.com>
61584
61585         * m4/gettext.m4: New file.  From gettext.
61586         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61587         * m4/progtest.m4: Likewise
61588         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61589         * m4/glibc21.m4: Likewise.
61590
61591         * m4/libintl.m4: Remove.  No longer used.
61592
61593 2001-09-22  Jim Meyering  <meyering@lucent.com>
61594
61595         * lib/localcharset.c: Update from latest gettext.
61596         * lib/config.charset: Likewise.
61597
61598 2001-09-20  Jim Meyering  <meyering@lucent.com>
61599
61600         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61601         strtoimax.
61602         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61603         strtoumax.
61604
61605 2001-09-20  Jim Meyering  <meyering@lucent.com>
61606
61607         * lib/xstrtol.c (strtoimax): Guard declaration with
61608         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61609         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61610         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61611         (strtoumax): Likewise, for completeness (it wasn't necessary).
61612
61613 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61614
61615         * lib/strtoimax.c (HAVE_LONG_LONG):
61616         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61617         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
61618         to work around bug in IBM C compiler.
61619
61620 2001-09-17  Jim Meyering  <meyering@lucent.com>
61621
61622         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
61623         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
61624         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
61625         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
61626         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
61627         whenever the right hand side need not be expanded by the shell.
61628
61629 2001-09-16  Paul Eggert  <eggert@twinsun.com>
61630
61631         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
61632         library.  It's not correct, as some older glibcs are buggy.
61633         fnmatch wasn't fixed until glibc 2.2.
61634
61635         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
61636         special shell magic here.
61637
61638 2001-09-16  Jim Meyering  <meyering@lucent.com>
61639
61640         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
61641         * m4/jm-macros.m4: Require it.
61642
61643 2001-09-16  Jim Meyering  <meyering@lucent.com>
61644
61645         * lib/mkdir.c: New file.
61646
61647 2001-09-15  Jim Meyering  <meyering@lucent.com>
61648
61649         * m4/jm-macros.m4: Check for help2man.
61650
61651 2001-09-11  Jim Meyering  <meyering@lucent.com>
61652
61653         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
61654         The body, by Paul Eggert, was moved here from configure.in.
61655         * m4/jm-macros.m4: Require UTILS_HOST_OS.
61656
61657 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61658
61659         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
61660         (jm_PREREQ): Use it.
61661
61662 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61663
61664         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
61665         Use ssize_t, not int, to store result of readlink.
61666         Check for ssize_t overflow as well as size_t overflow,
61667         as POSIX says the result of readlink is implementation-defined
61668         when ssize_t overflows.
61669         Remove unnecessary cast to char*.
61670         Use free+malloc instead of realloc, as the storage doesn't need
61671         to be preserved and it's clearer and can be more efficient that way.
61672         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
61673         * lib/xreadlink.h (xreadlink): Update prototype.
61674
61675 2001-09-04  Paul Eggert  <eggert@twinsun.com>
61676
61677         * lib/xgetcwd.c: Revert some of the previous change; intead,
61678         fix the HAVE_GETCWD_NULL code to behave more like the
61679         !HAVE_GETCWD_NULL code used to.
61680
61681         Include "xalloc.h".
61682         (xgetcwd): Do not return NULL when memory is exhausted; instead,
61683         invoke xalloc_die.
61684
61685 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61686
61687         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
61688         sys/param.h, as pathmax.h includes them.
61689
61690 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61691
61692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
61693         (jm_PREREQ_XGETCWD): New macro.
61694
61695         * m4/getcwd.m4: New file.
61696
61697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61698
61699         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
61700         like the HAVE_GETCWD_NULL code.
61701         Include pathmax.h if not HAVE_GETCWD.
61702         Do not include xalloc.h.
61703         (INITIAL_BUFFER_SIZE): New symbol.
61704         Do not use xmalloc / xrealloc, since the caller is responsible for
61705         handling errors.  Preserve errno around `free' during failure.
61706         Do not overrun buffer when using getwd.
61707
61708 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61709
61710         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
61711         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
61712         getcwd (NULL, 0).
61713
61714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
61715
61716         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
61717         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
61718         spotted by Jim Meyering.
61719
61720 2001-09-03  Jim Meyering  <meyering@lucent.com>
61721
61722         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
61723         failure.
61724
61725 2001-09-02  Jim Meyering  <meyering@lucent.com>
61726
61727         * lib/error.c: Update from GNU libc.
61728
61729 2001-09-01  Jim Meyering  <meyering@lucent.com>
61730
61731         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
61732         Used by df.
61733
61734 2001-09-01  Jim Meyering  <meyering@lucent.com>
61735
61736         * lib/xreadlink.c: New file.
61737         * lib/xreadlink.h: New file.
61738         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
61739         xreadlink.h.
61740
61741         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
61742         doesn't conflict with sparc Solaris 7's definition in
61743         /usr/include/sys/int_types.h.
61744
61745         * lib/exclude.c: Use `""', not `<>' to #include non-system header
61746         files.
61747         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
61748         and strncasecmp as r-values.  Unixware didn't have declarations.
61749
61750 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61751
61752         * lib/xstrtol.h: Add copyright notice.
61753         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
61754         LONGINT_INVALID_SUFFIX_CHAR.
61755
61756 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61757
61758         * lib/xstrtol.c (strtoimax): New decl.
61759
61760 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61761
61762         * lib/xgetcwd.c: Don't include pathmax.h.
61763         Include stdlib.h and unistd.h if available.
61764         Include xalloc.h.
61765         (xmalloc, xstrdup, free): Remove decls.
61766         (xgetcwd): Don't assume sizes fit in unsigned.
61767         Check for overflow when computing sizes.
61768         Simplify reallocation code.
61769
61770 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61771
61772         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
61773         a directory's st_size can have an arbitrary value, so the old
61774         usage could waste an arbitrary amount of memory.  All uses
61775         changed.
61776         * lib/savedir.h: Update prototype.
61777
61778 2001-08-31  Paul Eggert  <eggert@twinsun.com>
61779
61780         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
61781
61782         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
61783         old strtoimax.c.
61784
61785         Also, make the following further changes to make this file's
61786         configuration more similar to that of strtol.c:
61787         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
61788         (strtoumax, uintmax_t, strtoull, strtol): Remove.
61789         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
61790         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
61791         changed to signed values.
61792
61793         And make the following changes as well:
61794         Fix copyright notice, as 1999 was missing.
61795         (verify): New macro.
61796         (strtoimax): Check sizes at compile-time, not run-time.
61797         Prefer strtol to strtoll if both work.
61798         (main): Remove; it was not that useful and was a pain to maintain.
61799
61800         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
61801
61802 2001-08-31  Jim Meyering  <meyering@lucent.com>
61803
61804         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
61805         Use an initial, malloc'd, buffer of length 128 rather than
61806         a statically allocated one of length 1024.
61807
61808 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61809
61810         Simplify code, partly by assuming autoconf 2.52 semantics.
61811
61812         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
61813
61814         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
61815         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
61816         All uses removed.
61817         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
61818         Move AC_REQUIRE to next-to-top level, to avoid confusion.
61819         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
61820         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
61821         jm_AC_HEADER_INTTYPES_H.
61822         * m4/jm-macros.m4 (jm_MACROS): Likewise.
61823
61824         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
61825
61826         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61827         Quote first arg of AC_DEFUN.
61828         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
61829         since they are needed to parse the include file even if we need
61830         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
61831         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
61832         but with opposite signedness.
61833
61834 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61835
61836         Merge 'exclude' changes from tar 1.13.22.
61837         This fixes one or two unlikely storage allocation overflow bugs,
61838         but doesn't change user-visible behavior otherwise.
61839
61840 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61841
61842         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
61843         (jm_PREREQ_EXCLUDE): New macro.
61844
61845 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61846
61847         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
61848         tm to be declared.
61849
61850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61851
61852         * lib/hash.c: Remove '2001' from copyright notice.
61853
61854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61855
61856         * lib/full-write.h: New file.
61857         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
61858         * lib/full-write.c: Correct credits, as cccp.c no longer
61859         exists and anyway it was so heavily changed from the old cccp
61860         code as to be unrecognizable.  Include full-write.h.
61861         (full_write) Return size_t, with short writes meaning failure.
61862         All callers changed.  This fixes a bug with large buffers
61863         on 64-bit hosts.
61864         * lib/utime.c: Include full-write.h.
61865
61866 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61867
61868         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
61869         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
61870         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
61871         Include if available.
61872         (<xalloc.h>): Include
61873         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
61874         (verify): New macro.  Use it to verify that EXCLUDE macros do not
61875         collide with FNM macros.
61876         (struct patopts): New struct.
61877         (struct exclude): Use it, as exclude patterns now come with options.
61878         (new_exclude): Support above changes.
61879         (new_exclude, add_exclude_file):
61880         Initial size must now be a power of two to simplify overflow checking.
61881         (free_exclude, fnmatch_no_wildcards): New function.
61882         (excluded_filename): No longer requires options arg, as the options
61883         are determined by add_exclude.  Now returns bool, not int.
61884         (excluded_filename, add_exclude):
61885         Add support for the fancy new exclusion options.
61886         (add_exclude, add_exclude_file): Now takes int options arg.
61887         Check for arithmetic overflow when computing sizes.
61888         (add_exclude_file): xrealloc might modify errno, so don't
61889         realloc until after errno might be used.
61890
61891         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
61892         New macros.
61893         (free_exclude): New decl.
61894         (add_exclude, add_exclude_file): Now takes int options arg.
61895         (excluded_filename): No longer requires options arg, as the options
61896         are determined by add_exclude.  Now returns bool, not int.
61897
61898 2001-08-30  Paul Eggert  <eggert@twinsun.com>
61899
61900         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
61901
61902 2001-08-27  Jim Meyering  <meyering@lucent.com>
61903
61904         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
61905
61906         * lib/version-etc.c (N_): Remove definition.
61907         Revert most of last change.
61908         Instead, simply don't mark the `Copyright...' string for translation.
61909         Based on advice from Paul Eggert.
61910
61911         * lib/strtoxmax.c: Tweak comment.
61912
61913 2001-08-26  Jim Meyering  <meyering@lucent.com>
61914
61915         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
61916
61917         * m4/xstrtoimax.m4: New file.
61918         * m4/xstrtoumax.m4: Add comments explaining why we
61919         AC_REPLACE_FUNCS(strtol).
61920
61921 2001-08-26  Jim Meyering  <meyering@lucent.com>
61922
61923         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
61924         of copyright with `%s' so translators don't get an untranslated
61925         message in 2002.
61926         (COPYRIGHT_YEAR): Define.
61927         (version_etc): Use fprintf rather than fputs.
61928         Suggestion from Ulrich Drepper.
61929
61930         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
61931
61932         * lib/strtoll.c: New file, from GNU libc.
61933         * lib/xstrtoimax.c: New file.
61934
61935         * lib/xstrtol.h: Add xstrtoimax.
61936         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
61937         * lib/strtoimax.c: New file.  Likewise, but first define
61938         STRTOUXMAX_SIGNED.
61939
61940         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
61941         ...
61942         * lib/strtoxmax.c: ... then renamed to this.
61943
61944 2001-08-18  Paul Eggert  <eggert@twinsun.com>
61945
61946         * m4/inttypes.m4: Add AC_PREREQ(2.13).
61947         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
61948         (jm_AC_TYPE_INTMAX_T): New macro.
61949         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
61950
61951         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
61952
61953         * m4/longlong.m4: Renamed from ulonglong.m4.
61954         * m4/inttypes.m4: Renamed from inttypes_h.m4.
61955         * m4/uintmax_t.m4: Removed.
61956
61957 2001-08-13  Paul Eggert  <eggert@twinsun.com>
61958
61959         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
61960         Port to Solaris 8, where 'sed' requires a space after the 'r'
61961         command, and where sh dislikes "$/".  Clean up the spacing a bit.
61962         Redirect output to $tmp just once.
61963
61964 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
61965
61966         * lib/addext.c (<errno.h>): Include.
61967         (errno): Declare if not defined.
61968         (addext): Work correctly when pathconf returns -1 and leaves
61969         errno alone because there is no limit.  Also, work even if
61970         pathconf returns a value greater than SIZE_MAX.
61971
61972 2001-08-12  Jim Meyering  <meyering@lucent.com>
61973
61974         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
61975         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
61976         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
61977         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
61978         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
61979         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
61980         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
61981         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
61982         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
61983         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
61984         utime.m4, utimes.m4, xstrtoumax.m4:
61985         Quote the first argument in each use of AC_DEFUN.
61986
61987 2001-08-12  Jim Meyering  <meyering@lucent.com>
61988
61989         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
61990         Simply `return getcwd (NULL, 0);'.
61991         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
61992         Use 1300 as initial value for length, not PATH_MAX.
61993
61994         * lib/pathmax.h: Clean up cpp syntax.
61995
61996 2001-08-12  Jim Meyering  <meyering@lucent.com>
61997
61998         * lib/gettimeofday.c: New file.
61999         * lib/gtod.h: New file.
62000         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62001
62002 2001-08-05  Jim Meyering  <meyering@lucent.com>
62003
62004         * m4/jm-macros.m4: Require autoconf-2.52.
62005
62006 2001-08-04  Jim Meyering  <meyering@lucent.com>
62007
62008         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62009         stmt, to get in sync with glibc.
62010
62011 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62012
62013         The following changes are from gettext 0.10.39 as maintained by
62014         Bruno Haible.
62015
62016         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62017         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62018         with inverted sense.  All uses changed.
62019
62020         * lib/mbswidth.c: Don't include <limits.h>.
62021         Include <stdlib.h> and <string.h> unconditionally.
62022         (iswcntrl, mbsinit, ISCNTRL): New macros.
62023         (mbsnwidth): Use K&R style function declarations.
62024         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62025         can optimize it when MB_CUR_MAX == 1.
62026         The width of control characters is zero, not 1.
62027
62028 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62029
62030         The following changes are from gettext 0.10.39 as maintained by
62031         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62032
62033         * m4/codeset.m4: Upgrade to serial AM1.
62034         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62035         all uses changed.  Quote first arg of AC_DEFUN.
62036         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62037
62038         * m4/iconv.m4: Upgrade to serial AM2.
62039         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62040         Add --with-libconv-prefix.
62041         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62042         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62043         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62044         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62045         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62046
62047         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62048         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62049         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62050         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62051         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62052         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62053         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62054         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62055         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62056
62057         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62058         string.h any more.
62059
62060         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62061         not the default value.
62062
62063         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62064         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62065         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62066         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62067         Also check for iswcntrl, used for wcwidth fallback.
62068         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62069         to Autoconf 2.13.
62070
62071 2001-08-03  Jim Meyering  <meyering@lucent.com>
62072
62073         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62074         as it was in the original.  Reported by Paul Eggert.
62075
62076 2001-07-16  Jim Meyering  <meyering@lucent.com>
62077
62078         * m4/gettimeofday.m4: New file.
62079         Prompted by a report from Bernhard Baehr.
62080
62081 2001-07-15  Jim Meyering  <meyering@lucent.com>
62082
62083         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62084         stuff. Now it's in ../Makefile.cfg.
62085
62086 2001-07-15  Jim Meyering  <meyering@lucent.com>
62087
62088         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62089         (BUILT_SOURCES): Add unlocked-io.h.
62090         (io_functions): Define.
62091         (unlocked-io.h): New rule.
62092         (DISTCLEANFILES): Add unlocked-io.h.
62093         (all-local): Depend on unlocked-io.h, to ensure it is created.
62094
62095         * lib/unlocked-io.hin: New file
62096
62097         * lib/regex.c: Update from glibc.
62098
62099 2001-07-05  Jim Meyering  <meyering@lucent.com>
62100
62101         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62102         recommendation.
62103         (libfetish_a_SOURCES): Put all .h files here instead.
62104         Remove a thus-exposed (better checks in automake) duplicate and
62105         two unnecessary .h files.
62106
62107 2001-07-04  Jim Meyering  <meyering@lucent.com>
62108
62109         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62110         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62111         distcheck failure.
62112
62113 2001-07-02  Jim Meyering  <meyering@lucent.com>
62114
62115         The following changes were prompted by suggestions from Bruno Haible.
62116
62117         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62118         is now generated.
62119         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62120         definition of EXTRA_DIST.
62121         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62122         ensure that the generated file is created/updated whenever the list
62123         of $(unlocked_functions) is changed.
62124         (jm-glibc-io.m4): New rule.
62125         (unlocked-io.h): New rule -- currently unused.
62126
62127 2001-06-24  Jim Meyering  <meyering@lucent.com>
62128
62129         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62130         unmatched right bracket, rather than kludging it with an extra,
62131         falsely-matching quote in a comment.  Patch by Akim Demaille.
62132
62133 2001-06-11  Jim Meyering  <meyering@lucent.com>
62134
62135         * lib/regex.c: Update from GNU libc.
62136
62137 2001-05-27  Jim Meyering  <meyering@lucent.com>
62138
62139         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62140         Check for ut_type in struct utmp.
62141
62142 2001-05-27  Jim Meyering  <meyering@lucent.com>
62143
62144         * lib/readutmp.h (UT_TYPE): Define.
62145
62146 2001-05-24  Jim Meyering  <meyering@lucent.com>
62147
62148         * lib/argmatch.c: Include "quote.h".
62149         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62150         quote function.  Reported by Göran Uddeborg.
62151
62152 2001-05-22  Jim Meyering  <meyering@lucent.com>
62153
62154         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62155         now that we use the package-supplied version unconditionally.
62156         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62157
62158 2001-05-21  Jim Meyering  <meyering@lucent.com>
62159
62160         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62161         shell syntax errors.
62162
62163 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62164
62165         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62166
62167 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62168
62169         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62170         Don't bother to check library strftime, since
62171         we'll be using our own my_strftime function anyway.
62172         Define my_strftime instead of strftime.
62173
62174 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62175
62176         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62177         which is not yet declared.
62178
62179 2001-05-15  Jim Meyering  <meyering@lucent.com>
62180
62181         * m4/regex.m4: Use proper quoting so brackets appear in the test
62182         program.
62183         Reported by, and with help from, Bruno Haible.
62184
62185 2001-05-13  Jim Meyering  <meyering@lucent.com>
62186
62187         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62188         undefined.
62189
62190 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62191
62192         dirname code cleanup.  base_name now behaves more compatibly
62193         with POSIX basename when given file names that have trailing
62194         slashes, and similarly for dir_name.  Add new primitives
62195         base_len and dir_len.  Put the directory-name-related decls
62196         into dirname.h.
62197
62198         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62199         * lib/backupfile.c (base_name): Likewise.
62200         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62201         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62202         * lib/makepath.c (strip_trailing_slashes): Likewise.
62203         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62204         ISSLASH): Likewise.
62205         * lib/rename.c (strip_trailing_slashes): Likewise.
62206         * lib/same.c (base_name): Likewise.
62207         * lib/stripslash.c (ISSLASH): Likewise.
62208
62209         * lib/addext.c: Include <dirname.h> after size_t is defined.
62210         * lib/backupfile.c: Likewise.
62211
62212         * lib/addext.c (addext): Use base_len to trim redundant
62213         trailing slashes instead of doing it ourselves.
62214         But do not trim the last slash if it is not redundant.
62215
62216         * lib/backupfile.c (find_backup_file_name,
62217         max_backup_version): Use base_len instead of rolling it ourselves.
62218         Handle the case of "" and (on DOS) "C:" correctly.
62219
62220         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62221         needed. Include <string.h>, <dirname.h>.
62222         (base_name): Allow file names ending in slashes, other than names
62223         that are all slashes.  In this case, return the basename followed
62224         by the slashes.  This is more general, and can be used in places
62225         where the original base_name purposely had an assertion failure.
62226         (base_len): New function.
62227
62228         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62229         Do not include <assert.h>; no longer needed.
62230         Include xalloc.h.
62231         (memrchr): Remove decl.
62232         (dir_name_r): Remove.
62233         (dir_len): Renamed from dirlen.  All callers changed.
62234         Rewrite in terms of base_name, for simplicity and consistency.
62235         (dir_name): Never return NULL.  All callers changed.
62236         Do not include <stdlib.h> in test program; no longer needed.
62237         return 0; is fine for test program.
62238
62239         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62240         New macros.
62241         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62242
62243         * lib/path-concat.c (path_concat): Use base_len to compute
62244         base length, not strlen; this means we cannot rely on memcpy
62245         to null-terminate.
62246
62247         * lib/same.c (STREQ): Remove.
62248         (same_name): Handle the case where the basename ends in trailing '/'.
62249
62250         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62251         a slash was stripped.  Do not strip the last slash after a
62252         file system prefix.
62253
62254 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62255
62256         * lib/Makefile.am (libfetish_a_SOURCES):
62257         Add strftime.c, since we now compile it on all hosts.
62258
62259         * lib/strftime.c (my_strftime):
62260         Define to nstrftime if emacs, but only if my_strftime is not defined.
62261         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62262         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62263         Add one more extra argument: a nanoseconds value.
62264         All uses changed.
62265         (ns): New macro.
62266         (my_strftime function): Add %N format.
62267         (emacs_strftimeu): Renamed from emacs_strftime,
62268         with extra ut argument.
62269
62270 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62271
62272         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62273
62274 2001-04-21  Jim Meyering  <meyering@lucent.com>
62275
62276         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62277         doesn't interfere.
62278
62279 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62280
62281         * m4/ftruncate.m4: Check for chsize.
62282         Link with ftruncate.o unconditionally if ftruncate is missing.
62283         This was required when cross-compiling to i586-mingw32msvc.
62284
62285 2001-04-08  Jim Meyering  <meyering@lucent.com>
62286
62287         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62288         recomputed; that's necessary when the offset spans a DST transition.
62289         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62290
62291 2001-04-02  Jim Meyering  <meyering@lucent.com>
62292
62293         * lib/regex.h, regex.c: Update from GNU libc.
62294
62295 2001-03-24  Jim Meyering  <meyering@lucent.com>
62296
62297         * m4/jm-macros.m4: Require autoconf-2.49d.
62298
62299 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62300
62301         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62302
62303 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62304
62305         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62306
62307 2001-03-17  Jim Meyering  <meyering@lucent.com>
62308
62309         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62310         now that the version in autoconf is equivalent.
62311         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62312
62313         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62314         Suggestion from Akim Demaille.
62315
62316         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62317         (jm_PREREQ_TEMPNAME): New function.
62318
62319 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62320
62321         * lib/tempname.c (uint64_t): Define to uintmax_t if
62322         not defined, and if UINT64_MAX is not defined.
62323         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62324         Reported by John David Anglin.
62325
62326 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62327
62328         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62329         resolve alias if codeset is empty.
62330         * lib/config.charset (BeOS): Use wildcard syntax.
62331
62332 2001-03-13  Jim Meyering  <meyering@lucent.com>
62333
62334         * lib/path-concat.c (path_concat)
62335         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62336         concatenating e.g., `C:' and `foo'.
62337         From Bruno Haible.
62338
62339 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62340
62341         * lib/localcharset.c (locale_charset): Don't use
62342         setlocale(LC_CTYPE,NULL). Don't return NULL.
62343         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62344
62345 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62346
62347         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62348         support for DOS/DJGPP.
62349
62350 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62351
62352         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62353         lacks mkstemp.  Compile our own tempname.c if we compile our own
62354         mkstemp.c, as mkstemp relies on tempname.
62355
62356 2001-03-01  Jim Meyering  <meyering@lucent.com>
62357
62358         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62359         AH_VERBATIM really does output its argument verbatim.
62360
62361 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62362
62363         * lib/Makefile.am (libfetish_a_SOURCES):
62364         Add dup-safer.c, fopen-safer.c.
62365         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62366
62367         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62368         * lib/unistd-safer.h: New files.
62369
62370 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62371
62372         The mkstemp replacement is taken from glibc 2.2.2, with some
62373         portability fixes for use outside glibc, as follows:
62374
62375         * lib/tempname.c (struct_stat64): New macro.
62376         (direxists, __gen_tempname): Use it.
62377         This avoids a portability problem with Solaris 8.
62378
62379         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62380         (<stddef.h>, <stdint.h>, <string.h>):
62381         Include only if STDC_HEADERS || _LIBC.
62382         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62383         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62384         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62385         (__set_errno): Define this macro if <errno.h> doesn't.
62386         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62387         Define these macros if <stdio.h> doesn't.
62388         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62389         Define these macros if <sys/stat.h>
62390         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62391         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62392         __xstat64): Define if not _LIBC.
62393         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62394         (__gen_tempname): Invoke gettimeofday only if
62395         HAVE_GETTIMEOFDAY || _LIBC;
62396         otherwise, fall back on plain "time".
62397         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62398
62399         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62400
62401         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62402
62403 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62404
62405         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62406
62407 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62408
62409         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62410         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62411         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62412         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62413
62414 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62415
62416         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62417         Remove workaround macros for hosts that have mbrtowc but not
62418         mbstate_t, as we now insist on proper declarations for both
62419         before using mbrtowc.
62420
62421 2001-02-17  Jim Meyering  <meyering@lucent.com>
62422
62423         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62424         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62425         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62426         UnixWare 7.1.1.
62427
62428         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62429         rather than AC_CACHE_VAL.
62430
62431 2001-02-17  Jim Meyering  <meyering@lucent.com>
62432
62433         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62434         around included file name.
62435
62436         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62437
62438         * lib/strftime.c: Update from GNU libc (the only changes were to
62439         comments).
62440
62441 2001-02-17  Jim Meyering  <meyering@lucent.com>
62442
62443         * lib/regex.c: Update from libc.
62444
62445 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62446
62447         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62448         clash.
62449
62450 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62451
62452         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62453         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62454         Reported by Mark Hounschell via Paul Eggert.
62455
62456 2001-02-07  Jim Meyering  <meyering@lucent.com>
62457
62458         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62459
62460 2001-02-05  Jim Meyering  <meyering@lucent.com>
62461
62462         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62463         it includes the patch required for `large file' support with at least
62464         HP-UX's 10.20 /bin/cc.
62465
62466 2001-02-03  Jim Meyering  <meyering@lucent.com>
62467
62468         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62469         AS_IF, now that it works once again (mysteriously).
62470         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62471
62472 2001-01-30  Jim Meyering  <meyering@lucent.com>
62473
62474         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62475         * m4/chown.m4: Rename conftestchown to conftest.chown.
62476         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62477         s/conftestdir2/conftest.d2/.
62478         * m4/utimes.m4: s/conftestdata/conftest.data/
62479         Inspired by Pavel Roskin's change in autoconf.
62480
62481 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62482
62483         * lib/config.charset: Update for FreeBSD 4.2.
62484
62485 2001-01-27  Jim Meyering  <meyering@lucent.com>
62486
62487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62488         a use of AS_IF.
62489         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62490
62491 2001-01-26  Jim Meyering  <meyering@lucent.com>
62492
62493         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62494         quotearg.c includes it.
62495
62496 2001-01-26  Jim Meyering  <meyering@lucent.com>
62497
62498         * lib/quotearg.c: Include stddef.h.
62499         * lib/quote.c: Include stddef.h.
62500         Reported by Axel Kittenberger.
62501
62502         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62503         line in double quotes so that it evokes a better diagnostic.
62504         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62505         Reported by Axel Kittenberger.
62506
62507 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62508
62509         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62510         as if it was a `charset'.
62511
62512 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62513
62514         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62515         has const.
62516
62517 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62518
62519         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62520         to avoid a warning.  Add back 'const' to inptr.
62521
62522 2001-01-20  Jim Meyering  <meyering@lucent.com>
62523
62524         Be sure that headers are checked before used in code compiled
62525         for the type checks.
62526         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62527         In place of that, invoke jm_CHECK_ALL_TYPES.
62528         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62529         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62530         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62531         The check for ssize_t was mistakenly run before the test for unistd.h.
62532
62533         The configure-time check for stdbool.h was missing.
62534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62535         (jm_PREREQ_HASH): New function.
62536
62537 2001-01-17  Jim Meyering  <meyering@lucent.com>
62538
62539         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62540         for autoconf-2.49c.
62541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62542
62543 2001-01-16  Jim Meyering  <meyering@lucent.com>
62544
62545         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62546         From Bruno Haible.
62547
62548 2001-01-14  Jim Meyering  <meyering@lucent.com>
62549
62550         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62551         foo and bar.  Create conftestdir/ in the script, not in the C code.
62552         Remove directories in the script, not in the C code.
62553         Remove conftestdir{,2} before trying to create the directory.
62554         Make the entire configure script fail if the mkdir fails.
62555
62556 2001-01-14  Jim Meyering  <meyering@lucent.com>
62557
62558         * lib/rename.c: New file.  From Volker Borchert.
62559         Include stdlib.h, string.h or strings.h, and xalloc.h.
62560         Use strip_trailing_slashes rather than open-coding it.
62561
62562 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62563
62564         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62565
62566 2001-01-03  Jim Meyering  <meyering@lucent.com>
62567
62568         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62569         of local `inptr' to avoid warning with some system declarations of
62570         iconv.
62571
62572 2001-01-02  Volker Borchert  <bt@teknon.de>
62573
62574         * m4/rename.m4: New file.
62575         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62576
62577 2001-01-01  Jim Meyering  <meyering@lucent.com>
62578
62579         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62580         even on systems with utmpx.h.  It's necessary for the declaration of
62581         utmp's ut_user member.  Reported by Andreas Jaeger.
62582
62583         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62584         available. They are required for the declarations of getgrgid and
62585         getpwuid resp.
62586         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62587         Reported by Andreas Jaeger.
62588
62589 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62590
62591         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62592         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62593         so `make install' also works in VPATH builds.
62594
62595 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62596
62597         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62598         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62599         can be used in subdirectories.
62600
62601 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62602
62603         * lib/modechange.c: Do not assume that mode_t uses the
62604         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62605         the other-execute bit of FOO even if S_IXOTH != 1.
62606
62607         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62608         WOTH, XOTH, ALLM): New macros.
62609         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62610          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62611         Use them.
62612         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62613         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62614         (mode_compile):
62615         No need to use uintmax_t; unsigned long is long enough.
62616         Don't bother to get suffix since we don't use it.
62617
62618 2000-12-26  Jim Meyering  <meyering@lucent.com>
62619
62620         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
62621         better with autoheader.
62622
62623 2000-12-24  Jim Meyering  <meyering@lucent.com>
62624
62625         * lib/hash.c (is_prime): Return explicit boolean values.
62626         (hash_get_first): Return NULL to appease Irix5.6's 89.
62627         Reported by Nelson Beebe.
62628
62629 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
62630
62631         * lib/localcharset.c (locale_charset): Add support for Win32.
62632
62633 2000-12-18  Paul Eggert  <eggert@twinsun.com>
62634
62635         * lib/physmem.h, lib/physmem.c: New files.
62636
62637         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
62638         (noinst_HEADERS): Add physmem.h.
62639
62640         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
62641         't' for compatibility with Solaris 8 sort.
62642
62643 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
62644
62645         * lib/config.charset: Add support for BeOS.
62646
62647 2000-12-17  Jim Meyering  <meyering@lucent.com>
62648
62649         * m4/dos.m4 (jm_AC_DOS): New file and macro.
62650         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
62651
62652 2000-12-16  Jim Meyering  <meyering@lucent.com>
62653
62654         This bug had a serious impact on chown: `chown N:M FILE' (for integer
62655         N and M) would have treated it like `chown N:N FILE'.
62656
62657         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
62658
62659 2000-12-16  Jim Meyering  <meyering@lucent.com>
62660
62661         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
62662         SHELLS_FILE to a file name that's useful on djgpp systems.
62663         Include stdlib.h.
62664         (ADDITIONAL_DEFAULT_SHELLS): Define.
62665         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
62666         Based mostly on a patch from Prashant TR.
62667
62668 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
62669
62670         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
62671         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
62672         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
62673
62674 2000-12-08  Andreas Schwab  <schwab@suse.de>
62675
62676         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
62677         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
62678
62679 2000-12-07  Jim Meyering  <meyering@lucent.com>
62680
62681         * lib/stripslash.c (ISSLASH): Define.
62682         (strip_trailing_slashes): Use ISSLASH rather than comparing against
62683         `/'.
62684         From Prashant TR.
62685
62686         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
62687         (dir_name_r): Declare this function as static.
62688         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
62689         manifest itself on a name containing a mix of slashes and
62690         backslashes.
62691         Make this function work with names starting with a DOS-style
62692         drive letter and colon prefix.
62693         (dir_name): Append `.' if necessary.
62694         Based mostly on patches from Prashant TR and Eli Zaretskii.
62695
62696         * lib/dirname.h (dir_name_r): Remove prototype.
62697
62698 2000-12-06  Paul Eggert  <eggert@twinsun.com>
62699
62700         * m4/off_t-format.m4: Remove this file.
62701         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
62702
62703 2000-12-06  Jim Meyering  <meyering@lucent.com>
62704
62705         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
62706         replacement strtoull, we may well need the replacement strtoul, too.
62707         Check for declarations of strtoul and strtoull.
62708         Check for strtol.  Mainly as a cue to cause automake to include
62709         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
62710         Check for limits.h -- strtol.c needs it.
62711
62712 2000-12-05  Jim Meyering  <meyering@lucent.com>
62713
62714         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
62715
62716 2000-12-04  Jim Meyering  <meyering@lucent.com>
62717
62718         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
62719         Also include memory.h, stdlib.h, unistd.h if appropriate.
62720         Reported by Andreas Jaeger (conflicting declaration of malloc).
62721
62722 2000-12-02  Jim Meyering  <meyering@lucent.com>
62723
62724         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
62725         * m4/jm-macros.m4 (jm_MACROS): require it.
62726
62727 2000-12-02  Jim Meyering  <meyering@lucent.com>
62728
62729         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
62730
62731 2000-12-01  Paul Eggert  <eggert@twinsun.com>
62732
62733         * lib/memrchr.c: Include <config.h> before any system include file.
62734
62735 2000-11-30  Jim Meyering  <meyering@lucent.com>
62736
62737         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
62738
62739 2000-11-30  Jim Meyering  <meyering@lucent.com>
62740
62741         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
62742
62743 2000-11-29  Paul Eggert  <eggert@twinsun.com>
62744
62745         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
62746
62747 2000-11-26  Jim Meyering  <meyering@lucent.com>
62748
62749         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
62750
62751 2000-11-22  Paul Eggert  <eggert@twinsun.com>
62752
62753         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
62754         size of (size_t) -1; it's not portable.
62755
62756 2000-11-17  Jim Meyering  <meyering@lucent.com>
62757
62758         * lib/strstr.c: Update from GNU libc.
62759
62760 2000-11-17  Akim Demaille  <akim@epita.fr>
62761
62762         * lib/obstack.h: Formatting changes.
62763         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
62764         prevent type checking.
62765         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
62766         cast the value to (void *): assigning a `foo *' to a `void *'
62767         variable is valid.
62768         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
62769
62770 2000-11-16  Jim Meyering  <meyering@lucent.com>
62771
62772         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
62773
62774 2000-11-11  Jim Meyering  <meyering@lucent.com>
62775
62776         * lib/error.c: Add a couple #includes, merging from GNU libc version.
62777
62778 2000-11-10  Jim Meyering  <meyering@lucent.com>
62779
62780         * lib/obstack.h: Update from GNU libc.
62781         * lib/obstack.c: Likewise.
62782
62783 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
62784
62785         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
62786
62787 2000-11-06  Paul Eggert  <eggert@twinsun.com>
62788
62789         * lib/getusershell.c (setusershell): Use rewind rather than
62790         fseek/fseeko, to avoid configuration hassles with fseeko.
62791         Don't bother opening SHELLS_FILE if shellstream is NULL;
62792         it's not necessary.
62793
62794 2000-11-05  Jim Meyering  <meyering@lucent.com>
62795
62796         * lib/makepath.h (make_dir): Declare.
62797         * lib/makepath.c (make_dir): Remove `static' attribute.
62798         Tweak a comment.
62799
62800 2000-11-04  Jim Meyering  <meyering@lucent.com>
62801
62802         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
62803
62804 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
62805
62806         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
62807         last one in a bucket, advance to the next bucket.
62808
62809 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
62810
62811         * lib/fnmatch.c: Do not comment out all the code if we are using
62812         the GNU C library, because in some cases we are replacing buggy
62813         code in the GNU C library itself.
62814
62815 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
62816
62817         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
62818         (regex_compile): Catch bogus \(\1\).
62819
62820 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62821
62822         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
62823         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
62824         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
62825
62826 2000-10-30  Paul Eggert  <eggert@twinsun.com>
62827
62828         * lib/error.h, getline.h, modechange.h:
62829         Remove "2000" from Copyright line, as the file hasn't been
62830         changed this year other than in the copyright notice.
62831
62832         * lib/xalloc.h: Add "2000" to Copyright line, as this file
62833         was changed this year.
62834
62835 2000-10-29  Jim Meyering  <meyering@lucent.com>
62836
62837         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
62838         renaming.
62839         * m4/ls-mntd-fs.m4: Likewise
62840
62841 2000-10-29  Jim Meyering  <meyering@lucent.com>
62842
62843         * lib/xstat.in: Fix grammar in comment.
62844
62845 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
62846
62847         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
62848         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
62849         doesn't define __restrict_arr.
62850
62851 2000-10-28  Jim Meyering  <meyering@lucent.com>
62852
62853         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
62854         (jm_PREREQ_MEMCHR): New function.
62855
62856 2000-10-28  Jim Meyering  <meyering@lucent.com>
62857
62858         * lib/memchr.c: Update from libc.
62859         Adjust for portability:
62860         [HAVE_STDLIB_H]: Include stdlib.h.
62861         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
62862         Undef __memchr, too.
62863         [!weak_alias]: Define __memchr to memchr.
62864
62865         * lib/regex.c: Update from libc.
62866         * lib/regex.h: Likewise.
62867         * lib/getopt1.c: Likewise.
62868         * lib/memcmp.c: Likewise.
62869
62870         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
62871         Avoid using fseek, when possible -- it's broken by design.
62872         Patch by Ulrich Drepper.
62873
62874 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
62875
62876         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
62877         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
62878         Giving in to popular pressure to shut up the compiler with casts.
62879
62880 2000-10-26  Jim Meyering  <meyering@lucent.com>
62881
62882         * lib/strftime.c: Update from libc.
62883
62884 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
62885
62886         * regex.c: More `unsigned char' -> `re_char' changes.
62887         Also change several `int' into `re_wchar_t'.
62888         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
62889         (PUSH_FAILURE_POINTER): Don't cast any more.
62890         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
62891         We want GCC to complain, since this piece of code makes
62892         re_match non-reentrant, which *should* be fixed.
62893         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
62894         (EXTEND_BUFFER): Use RETALLOC.
62895         (SET_LIST_BIT): Don't cast.
62896         (re_wchar_t): New type.
62897         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
62898         that those two functions will always properly return.
62899         (IMMEDIATE_QUIT_CHECK): Cast to void.
62900         (analyse_first): Use recursion rather than an explicit stack.
62901         (re_compile_fastmap): Can't fail anymore.
62902         (re_search_2): Don't check re_compile_fastmap for failure.
62903         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
62904         Now also sets the new value (passed in a new argument).
62905         (re_match_2_internal): Use it.
62906         Also, use a new var `reg' of type size_t when looping through regs
62907         rather than reuse the inappropriate `mcnt'.
62908
62909 2000-10-25  Jim Meyering  <meyering@lucent.com>
62910
62911         * lib/obstack.c: Update from libc.
62912
62913 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
62914
62915         * regex.c (regex_compile): Change the way of handling a range from
62916         a char less than 256 to a char not less than 256.
62917
62918 2000-10-24  Andrew Innes  <andrewi@gnu.org>
62919
62920         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
62921         NT-Emacs only.
62922         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
62923         so that re_search functions only quit when callers expect them to.
62924
62925 2000-10-23  Jim Meyering  <meyering@lucent.com>
62926
62927         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
62928         wrong.  That set_locale call must not have any side effects.
62929         From Paul Eggert.
62930
62931 2000-10-22  Jim Meyering  <meyering@lucent.com>
62932
62933         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
62934         [CYCLIC]: Remove now-unused definition.
62935
62936         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
62937         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
62938         Suggestion from Ulrich Drepper.
62939
62940 2000-10-21  Jim Meyering  <meyering@lucent.com>
62941
62942         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
62943         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
62944         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
62945
62946 2000-10-21  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/dirname.c (memrchr): Declare if necessary.
62949         (dir_name): Remove the restriction that there be no
62950         trailing slashes.  Now, this code skips past them, effectively
62951         ignoring them.
62952         [TEST_DIRNAME] (main): New unit tests.
62953
62954         * lib/memrchr.c: New file from GNU libc.
62955         Undef __memrchr, too.
62956         [!weak_alias]: Define __memrchr to memrchr.
62957         Guard weak_alias use with `#ifdef weak_alias'.
62958
62959 2000-10-21  Jim Meyering  <meyering@lucent.com>
62960
62961         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
62962         (dir_name): Use dir_name_r.
62963         * lib/dirname.h (dir_name_r): Declare it.
62964
62965 2000-10-17  Jim Meyering  <meyering@lucent.com>
62966
62967         * lib/quote.h (PARAMS): Define and use.
62968         Reported by Akim Demaille.
62969
62970         * lib/getopt.c: Update from libc.
62971
62972 2000-10-16  Jim Meyering  <meyering@lucent.com>
62973
62974         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
62975         setlocale.
62976         From Jan Fedak.
62977
62978 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
62979
62980         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
62981
62982 2000-09-25  Jim Meyering  <meyering@lucent.com>
62983
62984         * lib/md5.h (rol): Define (from GnuPG).
62985
62986         * lib/sha.c: Give credit (GnuPG) where due.
62987         (M): Use rol rather than open-coding it.
62988         Add a FIXME comment.
62989
62990 2000-09-21  Jim Meyering  <meyering@lucent.com>
62991
62992         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
62993         Reported by Michael Stone.
62994
62995 2000-09-20  Jim Meyering  <meyering@lucent.com>
62996
62997         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
62998         (noinst_HEADERS): Add sha.h.
62999         Based on code from Scott G. Miller and from GnuPG.
63000
63001 2000-09-18  Jim Meyering  <meyering@lucent.com>
63002
63003         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63004         LIBS. Otherwise, everyone ends up linking with -lelf for some
63005         configurations.
63006         Reported by Mike Stone.
63007
63008 2000-09-15  Jim Meyering  <meyering@lucent.com>
63009
63010         * lib/regex.c: Update from libc.
63011
63012 2000-09-10  Jim Meyering  <meyering@lucent.com>
63013
63014         * lib/getopt.c (_getopt_internal): Update from glibc.
63015
63016 2000-09-09  Jim Meyering  <meyering@lucent.com>
63017
63018         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63019         think it should be used as a general replacement for isascii.
63020         * lib/fnmatch.c: Likewise.
63021         * lib/mbswidth.c: Likewise
63022         * lib/regex.c: Likewise.
63023
63024         Don't use atoi.
63025         * lib/userspec.c: Include sys/param.h and limits.h.
63026         Include xstrtol.h.
63027         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63028         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63029         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63030         UID, GID.  Check range.
63031
63032 2000-09-06  Jim Meyering  <meyering@lucent.com>
63033
63034         * lib/getopt.c (_getopt_internal): Update from glibc.
63035
63036 2000-08-30  Jim Meyering  <meyering@lucent.com>
63037
63038         * lib/strftime.c: Merge in changes from GNU libc.
63039
63040 2000-08-26  Jim Meyering  <meyering@lucent.com>
63041
63042         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63043         * m4/fpending.m4: New file.
63044
63045 2000-08-26  Jim Meyering  <meyering@lucent.com>
63046
63047         * lib/closeout.c: Include "__fpending.h".
63048         (close_stdout_status): Return right away if there's nothing to flush.
63049
63050         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63051         * lib/__fpending.c: New file.
63052         * lib/__fpending.h: New file.
63053
63054 2000-08-20  Jim Meyering  <meyering@lucent.com>
63055
63056         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63057         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63058         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63059
63060 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63061
63062         Improve fileutils installation on systems where running
63063         programs (like install) can't be unlinked.
63064         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63065         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63066
63067 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63068
63069         Standardize on "memory exhausted" instead of "Memory exhausted"
63070         or "virtual memory exhausted".
63071         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63072         "virtual memory exhausted".
63073         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63074         our own message.
63075         * lib/userspec.c (parse_user_spec): Likewise.
63076         * lib/bumpalloc.h: comment fix
63077         * lib/same.c, userspec.c: Include xalloc.h.
63078
63079         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63080         not char *const and pointing to a constant array.
63081         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63082         (xrealloc): Comment fix.
63083
63084         * lib/userspec.c (parse_user_spec):
63085         Don't translate a message until just before returning,
63086         to avoid unnecessary translation.
63087
63088 2000-08-07  Jim Meyering  <meyering@lucent.com>
63089
63090         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63091         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63092         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63093         getgroups.c, gethostname.c, getopt.h, group-member.c,
63094         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63095         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63096         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63097         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63098         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63099         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63100         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63101         yesno.c: Back out Copyright date changes for each file with no change
63102         this year.  This eases coordination with other programs using the same
63103         source code modules.  From Paul Eggert.
63104
63105 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63106
63107         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63108         not char, for compatibility with glibc 2.1.3 strftime.c.
63109
63110 2000-08-03  Greg McGary  <greg@mcgary.org>
63111
63112         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63113         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63114         (EXTEND_BUFFER): Use them.
63115
63116 2000-08-01  Jim Meyering  <meyering@lucent.com>
63117
63118         * lib/dirname.c (ISSLASH): Define.
63119         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63120         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63121         both `\' and `/' may be use as path separators.
63122         Based on a patch from Prashant TR.
63123
63124 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63125
63126         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63127         slot vector a constant, since it might get modified.
63128
63129 2000-07-31  Jim Meyering  <meyering@lucent.com>
63130
63131         * lib/xmalloc.c: Use `virtual memory exhausted', not
63132         `Memory exhausted'.
63133         * lib/obstack.c (print_and_abort): Likewise.
63134
63135 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63136
63137         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63138         buffer, so that the caller can always quote one small
63139         component of a "memory exhausted" message in slot 0.
63140         From a suggestion by Jim Meyering.
63141
63142 2000-07-30  Jim Meyering  <meyering@lucent.com>
63143
63144         * lib/makepath.c (make_path): Quote the other instance, too.
63145
63146         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63147         (STATIC_BUF_SIZE): Define.
63148         (quotearg_n_options): Use only statically allocated storage when
63149         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63150         than STATIC_BUF_SIZE.
63151
63152 2000-07-29  Jim Meyering  <meyering@lucent.com>
63153
63154         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63155         * lib/dirname.c (dir_name): Likewise.
63156
63157         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63158         `/'.
63159
63160         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63161         (dir_name): Assert that there are no trailing slashes.
63162
63163 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63164
63165         * lib/mbswidth.h (mbswidth): Add a flags argument.
63166         (mbswidth): New declaration.
63167         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63168         * lib/mbswidth.c (mbswidth): Add a flags argument.
63169         (mbsnwidth): New function.
63170
63171 2000-07-24  Jim Meyering  <meyering@lucent.com>
63172
63173         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63174
63175 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63176
63177         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63178
63179 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63180
63181         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63182         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63183         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63184         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63185         invoke multibyte primitives.
63186
63187 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63188
63189         * lib/quotearg.c:
63190         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63191         so that mbstate_t is always defined.
63192
63193         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63194         be 1 in at least one GCC installation, and this configuration
63195         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63196         performance on hosts that have mbrtowc but have only unibyte
63197         locales, but I assume these hosts are rare.
63198
63199 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63200
63201         * lib/mbswidth.c (_XOPEN_SOURCE):
63202         Don't define; this causes problems on Solaris 7.
63203         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63204
63205 2000-07-23  Jim Meyering  <meyering@lucent.com>
63206
63207         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63208         too: getgrgid, getpwuid, getuid.
63209
63210 2000-07-23  Jim Meyering  <meyering@lucent.com>
63211
63212         * lib/basename.c (base_name): Add an assertion.
63213
63214 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63215
63216         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63217         shadow its mbsinit function.
63218
63219 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63220
63221         * lib/mbswidth.h: New file.
63222         * lib/mbswidth.c: New file.
63223         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63224         (noinst_HEADERS): Add mbswidth.h.
63225
63226 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63227
63228         * lib/config.charset: Add support for FreeBSD. Improve support for
63229         HP-UX and IRIX 6.
63230
63231 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63232
63233         * m4/mbswidth.m4: New file.
63234         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63235
63236 2000-07-15  Jim Meyering  <meyering@lucent.com>
63237
63238         * lib/makepath.c: Include quote.h.
63239         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63240         corresponding argument in a `quote (...)' call.
63241         Give better diagnostics.
63242
63243         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63244         (noinst_HEADERS): Add quote.h.
63245
63246         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63247         from tar's src/misc.c.
63248         * lib/quote.h: New file.  Prototypes for same.
63249
63250 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63251
63252         From a suggestion by Bruno Haible.
63253         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63254         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63255         to decide whether to define the BeOS workaround macro;
63256         this adjusts to the change to AC_MBSTATE_T.
63257
63258 2000-07-14  Jim Meyering  <meyering@lucent.com>
63259
63260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63261         jm_AC_TYPE_UINTMAX_T.
63262
63263 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63264
63265         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63266
63267         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63268         quotearg_buffer_restyled): Add support for
63269         clocale_quoting_style.  Undo previous change to
63270         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63271         and "{RIGHT QUOTATION MARK}" msgids.
63272
63273 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63274
63275         From a suggestion by Bruno Haible.
63276         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63277         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63278         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63279         and mbstate_t, to a single-part test that simply defines mbstate_t.
63280         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63281         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63282
63283 2000-07-10  Jim Meyering  <meyering@lucent.com>
63284
63285         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63286
63287         * m4/gnu-source.m4: Output to confdefs.h directly.
63288         Suggestion from Akim Demaille.
63289
63290 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63291
63292         The old behavior of quoting `like this' doesn't look good with
63293         newer, ISO-style fonts.  See:
63294         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63295
63296         Instead, quote "like this" by default.  Let the translator
63297         tailor the locale-specific quoting behavior by providing
63298         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63299
63300         * lib/quotearg.c (N_): New macro.
63301         (gettext_default): New function.
63302         (quotearg_buffer_restyled): Use
63303         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63304         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63305
63306 2000-07-09  Jim Meyering  <meyering@lucent.com>
63307
63308         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63309         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63310
63311         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63312         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63313
63314 2000-07-09  Jim Meyering  <meyering@lucent.com>
63315
63316         * lib/Most files: Update copyright dates to include 2000.
63317
63318 2000-07-08  Jim Meyering  <meyering@lucent.com>
63319
63320         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63321         if not defined.
63322         (xgethostname): Remove now-unnecessary #ifdef.
63323         Move declaration of `err' into loop where it's used.
63324
63325 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63326         and Bruno Haible  <haible@clisp.cons.org>
63327
63328         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63329         only if the test for an object-type mbstate_t fails.  This
63330         prevents us from mistakenly reporting that mbstate_t is a
63331         system object type after we "#define mbstate_t int" to work
63332         around its lack.
63333
63334 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63335         and Bruno Haible  <haible@clisp.cons.org>
63336
63337         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63338
63339 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63340
63341         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63342         to strerror_r.
63343         Include <ctype.h> for use of isalpha.
63344
63345 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63346
63347         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63348         by allocating a larger buffer. Test the gethostname return value for
63349         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63350         returns an error and ENAMETOOLONG isn't defined.
63351
63352 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63353
63354         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63355         dimension.
63356
63357 2000-07-04  Jim Meyering  <meyering@lucent.com>
63358
63359         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63360         of the deprecated AC_CHECKING.
63361
63362 2000-07-04  Jim Meyering  <meyering@lucent.com>
63363
63364         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63365         Reported by Bruno Haible.
63366
63367 2000-07-04  Jim Meyering  <meyering@lucent.com>
63368
63369         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63370         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63371         lacks mbrtowc.
63372
63373 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63374
63375         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63376         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63377
63378 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63379         and Bruno Haible  <haible@clisp.cons.org>
63380
63381         * lib/quotearg.c (mbrtowc):
63382         Assign to *pwc, and return 1 only if result is nonzero.
63383         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63384
63385 2000-07-03  Jim Meyering  <meyering@lucent.com>
63386
63387         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63388
63389 2000-07-03  Jim Meyering  <meyering@lucent.com>
63390
63391         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63392         This is necessary to get a definition of e.g., UTMP_FILE on
63393         HP-UX 10.20.
63394         From Bob Proulx.
63395
63396 2000-07-02  Jim Meyering  <meyering@lucent.com>
63397
63398         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63399
63400         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63401         AC_LIBOBJ(function_name).
63402         * m4/chown.m4: Likewise.
63403         * m4/fnmatch.m4: Likewise.
63404         * m4/ftruncate.m4: Likewise.
63405         * m4/getgroups.m4: Likewise.
63406         * m4/getline.m4: Likewise.
63407         * m4/group-member.m4: Likewise.
63408         * m4/jm-macros.m4: Likewise.
63409         * m4/lstat.m4: Likewise.
63410         * m4/malloc.m4: Likewise.
63411         * m4/memcmp.m4: Likewise.
63412         * m4/nanosleep.m4: Likewise.
63413         * m4/putenv.m4: Likewise.
63414         * m4/realloc.m4: Likewise.
63415         * m4/regex.m4: Likewise.
63416         * m4/stat.m4: Likewise.
63417         * m4/strftime.m4: Likewise.
63418
63419 2000-07-02  Jim Meyering  <meyering@lucent.com>
63420
63421         * lib/quotearg.c (mbstate_t): Don't define here.
63422
63423 2000-07-02  Jim Meyering  <meyering@lucent.com>
63424
63425         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63426
63427 2000-07-01  Jim Meyering  <meyering@lucent.com>
63428
63429         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63430
63431 2000-07-01  Jim Meyering  <meyering@lucent.com>
63432
63433         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63434         problem.
63435
63436 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63437
63438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63439         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63440
63441 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63442
63443         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63444         per change in ../m4/ls-mntd-fs.m4.
63445         (read_filesystem_list): Ignore symbolic links.
63446
63447 2000-06-29  Jim Meyering  <meyering@lucent.com>
63448
63449         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63450         for declaration of strcmp.
63451
63452         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63453
63454         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63455         Avoid warning by casting result to `char *' to remove `const'.
63456
63457 2000-06-28  Jim Meyering  <meyering@lucent.com>
63458
63459         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63460         included by quotearg.c, for which we perform this test.  From
63461         Bruno Haible.
63462
63463 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63464
63465         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63466         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63467         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63468
63469 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63470
63471         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63472
63473 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63474
63475         savedir now sets errno on failure and invokes xmalloc to get memory.
63476         Fix a couple of other minor bugs while we're at it.
63477
63478         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63479         (NAMLEN): Remove macro.
63480         (malloc, realloc): Remove decls.
63481         (stpcpy): Likewise.
63482         ("xalloc.h"): Include.
63483         (NAME_SIZE_DEFAULT): New macro.
63484         (savedir): Use xmalloc / xrealloc to allocate memory.
63485         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63486         Skip "" directory entries.
63487         Use strlen to calculate directory entry length, since the old method
63488         is rarely used these days and isn't worth supporting.
63489         Don't use a pointer after freeing it.
63490         Check for integer overflow when calculating allocation size.
63491         Use memcpy to copy entries, instead of stpcpy.
63492         Set errno properly when returning NULL.
63493         Check for readdir error.
63494
63495 2000-06-26  Jim Meyering  <meyering@lucent.com>
63496
63497         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63498
63499 2000-06-25  Jim Meyering  <meyering@lucent.com>
63500
63501         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63502         Linux header bug when _XOPEN_SOURCE is defined to 500.
63503
63504 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63505
63506         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63507         deficiency.
63508
63509 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63510
63511         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63512         Include xalloc.h.
63513         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63514
63515 2000-06-24  Jim Meyering  <meyering@lucent.com>
63516
63517         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63518         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63519         for which strerror does return char*, but which lacks a conveniently
63520         accessible declaration of the function.  If the compile-test says
63521         strerror_r doesn't work, then resort to a `run'-test that works on
63522         BeOS and segfaults on DEC Unix.
63523
63524 2000-06-24  Jim Meyering  <meyering@lucent.com>
63525
63526         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63527
63528 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63529
63530         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63531         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63532
63533 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63534
63535         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63536         (mbrtowc, mbstate_t): Define substitutes if
63537         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63538         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63539         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63540
63541 2000-06-23  Jim Meyering  <meyering@lucent.com>
63542
63543         * m4/afs.m4: Add missing AC_MSG_RESULT.
63544         Reported by Bruno Haible.
63545
63546         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63547         Suggestion from Bruno Haible.
63548
63549 2000-06-23  Jim Meyering  <meyering@lucent.com>
63550
63551         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63552
63553 2000-06-21  Jim Meyering  <meyering@lucent.com>
63554
63555         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63556
63557 2000-06-21  Jim Meyering  <meyering@lucent.com>
63558
63559         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63560         (noinst_HEADERS): Add getstr.h.
63561
63562         * lib/getline.c (getstr): Move into a separate file.
63563         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63564         the following changes: new parameter, delim2; both delim[12]
63565         parameters have type `int', not `char'.  The latter would lose
63566         with 8-bit delimiters.
63567         * lib/getstr.h: New file.
63568
63569 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63570
63571         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63572         than 1024, return a memory chunk of least possible size, instead
63573         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63574         Use free/xmalloc instead of xrealloc to avoid copying for very long
63575         paths.
63576
63577 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63578
63579         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63580         the empty string.
63581
63582 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63583
63584         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63585         address, not strdup.  Include <stdlib.h> and don't declare free().
63586
63587 2000-06-19  Jim Meyering  <meyering@lucent.com>
63588
63589         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63590
63591 2000-06-18  Jim Meyering  <meyering@lucent.com>
63592
63593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63594
63595         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63596         `checking whether...' message to be consistent with that of the
63597         lstat test.
63598
63599 2000-06-18  Jim Meyering  <meyering@lucent.com>
63600
63601         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63602         Besides, these days every porting target provides a mkdir function.
63603
63604         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63605         needed. (this snippet comes from src/system.h).
63606
63607 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63608
63609         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63610
63611 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63612
63613         * lib/human.c (adjust_value): New function.
63614         (human_readable_inexact): Apply rounding style even when
63615         printing approximate values.
63616
63617 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63618
63619         * lib/human.c (human_readable_inexact): Allow an input block
63620         size that is not a multiple of the output block size, and vice versa.
63621         Reported by Piergiorgio Sartor.
63622
63623 2000-06-14  Paul Eggert  <eggert@twinsun.com>
63624
63625         * lib/getdate.y (get_date): Apply relative times after time
63626         zone indicator, not before.  Reported by Todd A. Jacobs.
63627
63628 2000-06-13  Jim Meyering  <meyering@lucent.com>
63629
63630         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
63631
63632         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
63633
63634 2000-06-12  Paul Eggert  <eggert@twinsun.com>
63635
63636         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
63637
63638 2000-06-12  Jim Meyering  <meyering@lucent.com>
63639
63640         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
63641         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
63642         optional argument.
63643         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
63644         the optional argument, `lib'.
63645
63646 2000-06-08  Jim Meyering  <meyering@lucent.com>
63647
63648         * m4/largefile.m4: Remove file (now that it's part of autoconf).
63649
63650 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63651
63652         Rewrite largefile configuration so that we don't need to run
63653         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
63654         AC_CANONICAL_HOST in configure.in -- jmm]
63655
63656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
63657         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
63658         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
63659         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
63660         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
63661         All uses changed.
63662         Instead of inspecting the output of getconf, try to compile the
63663         test program without and with the macro definition.
63664         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
63665         for getconf.  Instead, check for the needed flags by compiling
63666         test programs.
63667
63668 2000-06-04  Paul Eggert  <eggert@twinsun.com>
63669
63670         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
63671
63672 2000-06-04  Jim Meyering  <meyering@lucent.com>
63673
63674         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
63675         SunOS 4.1.4 for which gid_t is an unsigned type.
63676
63677 2000-06-03  Jim Meyering  <meyering@lucent.com>
63678
63679         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
63680         now that autoconf requires that.
63681
63682         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
63683         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
63684         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
63685
63686 2000-06-03  Jim Meyering  <meyering@lucent.com>
63687
63688         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
63689
63690 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63691
63692         * m4/glibc21.m4: New file.
63693         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
63694
63695 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
63696
63697         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
63698         newer, don't install charset.alias.
63699         * lib/config.charset: Change the Linux/glibc rules so they become empty
63700         on glibc-2.1 or newer.
63701
63702 2000-06-02  Jim Meyering  <meyering@lucent.com>
63703
63704         * lib/mountlist.c: Back out last change.  Instead, do this...
63705         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
63706         me_dummy member using the same `ignore'-testing code.
63707         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
63708         fs_type strings.
63709         From Mark D. Roth.
63710
63711 2000-05-29  Jim Meyering  <meyering@lucent.com>
63712
63713         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
63714         mounts with the `ignore' attribute.  Based on a patch from
63715         Mark D. Roth.
63716
63717 2000-05-28  Jim Meyering  <meyering@lucent.com>
63718
63719         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
63720         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63721         * m4/stat.m4: Likewise.
63722         * m4/lstat.m4: Likewise.
63723         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
63724
63725         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
63726         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
63727
63728 2000-05-26  Jim Meyering  <meyering@lucent.com>
63729
63730         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
63731
63732 2000-05-24  Jim Meyering  <meyering@lucent.com>
63733
63734         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
63735         autoconf requires that.
63736         * m4/lib-check.m4: Likewise.
63737         * m4/jm-macros.m4: Likewise.
63738         * m4/strftime.m4: Likewise.
63739
63740         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
63741         AC_CHECK_DECLS, now that autoconf requires that.
63742
63743 2000-05-22  Jim Meyering  <meyering@lucent.com>
63744
63745         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63746         * m4/lstat.m4: Likewise.
63747
63748 2000-05-22  Jim Meyering  <meyering@lucent.com>
63749
63750         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
63751
63752 2000-05-20  Jim Meyering  <meyering@lucent.com>
63753
63754         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
63755         (jm_PREREQ): Use it.
63756
63757 2000-05-18  Jim Meyering  <meyering@lucent.com>
63758
63759         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
63760         back, too, since it may have been modified by allocate_entry.
63761         (hash_delete): Rewrite to use neither the assignment operator
63762         nor the comma operator in an if-expression.
63763
63764 2000-05-15  Paul Eggert  <eggert@twinsun.com>
63765
63766         * lib/closeout.c:
63767         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
63768         Remove; no longer needed.
63769         "quotearg.h": Add include.
63770         (file_name): Do not bother to explicitly initialize to NULL; it's less
63771         efficient on some hosts.
63772         (close_stdout_status): Remove test as to whether stdout was already
63773         closed; it breaks for the case "echo x | sort >&-".
63774         Quote file name colons.
63775         Do not assume that _("write error") lacks format strings.
63776
63777 2000-05-15  Jim Meyering  <meyering@lucent.com>
63778
63779         * lib/version-etc.c (version_etc_copyright): Update the copyright
63780         string used in all --version output.
63781
63782 2000-05-14  Jim Meyering  <meyering@lucent.com>
63783
63784         * lib/closeout.c (close_stdout_set_file_name): New function.
63785         (close_stdout_status): Use new file-scoped global.
63786         Return right away if fstat says the stdout file descriptor is invalid.
63787         * lib/closeout.h (close_stdout_set_file_name): Declare.
63788
63789 2000-05-10  Jim Meyering  <meyering@lucent.com>
63790
63791         * lib/closeout.c [default_exit_status]: New file-scoped variable.
63792         (close_stdout_set_status): New function.
63793         * lib/closeout.h (close_stdout_set_status): Declare.
63794
63795 2000-05-09  Jim Meyering  <meyering@lucent.com>
63796
63797         * m4/gettext.m4: Rename this...
63798         * m4/libintl.m4: ...to this.
63799
63800 2000-05-08  Jim Meyering  <meyering@lucent.com>
63801
63802         * lib/long-options.c: Don't include closeout.h.
63803         (parse_long_options): Don't call close_stdout for --version.
63804
63805 2000-05-06  Paul Eggert  <eggert@twinsun.com>
63806
63807         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
63808         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
63809         2.1.3 bug.  This avoids a clash when files like regex.c define
63810         _GNU_SOURCE.
63811
63812 2000-05-06  Jim Meyering  <meyering@lucent.com>
63813
63814         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
63815         (AC_REPLACE_FUNCS): Add strnlen.
63816
63817         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
63818         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
63819
63820         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
63821         AC_SEARCH_LIBS call for nanosleep.
63822         (LIB_NANOSLEEP): Set and AC_SUBST.
63823
63824 2000-05-06  Jim Meyering  <meyering@lucent.com>
63825
63826         * lib/strnlen.c: Undefine __strnlen and strnlen.
63827         [!weak_alias]: Define __strnlen to strnlen.
63828
63829         * lib/atexit.c: New file, from libiberty.
63830
63831 2000-05-06  Jim Meyering  <meyering@lucent.com>
63832
63833         * lib/closeout.c (close_stdout_status): Also check for errors on the
63834         stderr stream.
63835
63836 2000-05-05  Jim Meyering  <meyering@lucent.com>
63837
63838         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
63839         AC_SEARCH_LIBS call for clock_gettime.
63840         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
63841
63842         * m4/search-libs.m4: Update from autoconf.
63843
63844         su doesn't work on Solaris 2.6.
63845         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
63846         <shadow.h>.  Reported by Dragos Harabor.
63847
63848 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
63849
63850         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
63851         memcpy instead of xmalloc, xrealloc, path_concat.
63852         (locale_charset): Treat empty environment variables as absent.
63853         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
63854
63855 2000-05-04  Jim Meyering  <meyering@lucent.com>
63856
63857         * lib/getopt.c: Update from glibc.
63858         * lib/obstack.c: Likewise.
63859         * lib/obstack.h: Likewise.
63860         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
63861         file
63862
63863         * lib/regex.h: Likewise.
63864         * lib/strndup.c: Likewise.
63865         * lib/strnlen.c: New file, from glibc.
63866
63867 2000-05-03  Jim Meyering  <meyering@lucent.com>
63868
63869         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
63870
63871 2000-05-02  Paul Eggert  <eggert@twinsun.com>
63872
63873         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
63874         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
63875         compile-time test, rather than inspecting host and OS, to
63876         decide whether to define _LARGEFILE_SOURCE.
63877
63878 2000-05-01  Jim Meyering  <meyering@lucent.com>
63879
63880         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
63881
63882         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
63883         Based on a patch from Bruno Haible.
63884
63885 2000-05-01  Jim Meyering  <meyering@lucent.com>
63886
63887         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
63888
63889 2000-04-29  Jim Meyering  <meyering@lucent.com>
63890
63891         * lib/path-concat.c: Declare strdup only if it's not defined.
63892         * lib/canon-host.c: Likewise.
63893
63894 2000-04-28  Jim Meyering  <meyering@lucent.com>
63895
63896         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
63897         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
63898         is included first, then limits.h is included by locale.h by libintl.h.
63899         From John David Anglin.
63900
63901 2000-04-25  Jim Meyering  <meyering@lucent.com>
63902
63903         * lib/makepath.c (S_IRWXUGO): Define.
63904         (make_path): Always perform explicit chmod if MODE specifies any
63905         of the `special' permission bits.  Prompted by a bug report against
63906         install from Mate Wierdl and Joost van Baal.
63907
63908 2000-04-18  Jim Meyering  <meyering@lucent.com>
63909
63910         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
63911         (jm_PREREQ): Use it.
63912
63913 2000-04-18  Jim Meyering  <meyering@lucent.com>
63914
63915         * lib/README: New file.
63916
63917         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
63918         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
63919
63920 2000-04-17  Jim Meyering  <meyering@lucent.com>
63921
63922         Get it right :-)
63923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
63924         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
63925         Suggestion from Akim Demaille.
63926
63927 2000-04-17  Jim Meyering  <meyering@lucent.com>
63928
63929         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
63930         the definition of it to rpl_strftime also defined-away the system's
63931         declaration.
63932
63933 2000-04-15  Jim Meyering  <meyering@lucent.com>
63934
63935         Use `C' to denote so-called `contiguous' files, the same way
63936         that tar does.
63937         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
63938         (ftypelet): Use S_ISCTG.
63939         From Michael Deutschmann.
63940
63941 2000-04-14  Jim Meyering  <meyering@lucent.com>
63942
63943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
63944         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
63945         clobbered.
63946
63947 2000-04-14  Jim Meyering  <meyering@lucent.com>
63948
63949         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
63950
63951 2000-04-13  Jim Meyering  <meyering@lucent.com>
63952
63953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
63954         AH_VERBATIM to insert required #ifndef into config.h.in.
63955         Suggestion from Akim Demaille.
63956
63957 2000-04-12  Jim Meyering  <meyering@lucent.com>
63958
63959         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
63960         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
63961         Christian Krackowizer.
63962
63963         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
63964         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
63965         (AC_SYS_LARGEFILE): Require.
63966         (AM_C_PROTOTYPES): Require.
63967
63968 2000-04-08  Jim Meyering  <meyering@lucent.com>
63969
63970         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
63971         names don't conflict.  Reported by Eli Zaretskii.
63972
63973 2000-04-07  Jim Meyering  <meyering@lucent.com>
63974
63975         * lib/putenv.c: Move inclusion of errno.h so it follows that of
63976         sys/types.h, to work around system header problems on AIX 3.2.5.
63977         From Bruno Haible.
63978
63979 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
63980
63981         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
63982         bug.  Deal with the different error behavior of Irix iconv.
63983
63984 2000-04-05  Paul Eggert  <eggert@twinsun.com>
63985
63986         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
63987         IRIX if the installer said otherwise.
63988
63989 2000-04-05  Jim Meyering  <meyering@lucent.com>
63990
63991         Portability tweaks required for ultrix4.3.
63992         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
63993         (jm_CHECK_DECLS): Add getutent to the list of functions.
63994         (_jm_DECL_HEADERS): Add utmpx.h.
63995         From John David Anglin.
63996
63997         * m4/strftime.m4: Back out the 2000-04-02 change.
63998         Instead of that change, simply undefine putenv in the test program.
63999
64000 2000-04-05  Jim Meyering  <meyering@lucent.com>
64001
64002         Portability tweaks required for ultrix4.3.
64003         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64004         getutent.
64005         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64006         * lib/canon-host.c: Declare strdup.
64007         * lib/path-concat.c: Likewise.
64008         From John David Anglin.
64009
64010 2000-04-04  Jim Meyering  <meyering@lucent.com>
64011
64012         Be more DOS 8.3-friendly.
64013         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64014         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64015         * lib/Makefile.am: Reflect renaming.
64016         Reported by Eli Zaretskii.
64017
64018         Use a temporary file name that won't clash with `charset.alias'
64019         in the DOS 8.3 name space.
64020         * lib/Makefile.am (charset_tmp): Define.
64021         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64022         (uninstall-local): Likewise.
64023         Reported by Eli Zaretskii.
64024
64025 2000-04-03  Jim Meyering  <meyering@lucent.com>
64026
64027         * m4/gettext.m4: Fix typo in comment.
64028
64029         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64030         textutils/configure.in).  Suggestion from Paul Eggert.
64031         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64032
64033 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64034
64035         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64036         variable in the shell rather than using putenv, which isn't
64037         portable.  This avoids the configure-time inter-test dependency
64038         on the potentially-renamed putenv function.
64039
64040 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64041
64042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64043         before checking struct stat.st_blksize, so that
64044         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64045
64046 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64047
64048         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64049         since strftime.c uses HAVE_STRFTIME to decide whether to use
64050         the underlying strftime.
64051
64052 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64053
64054         * lib/time/strftime.c (my_strftime): Make sure we call the system
64055         strftime, not ourselves, when invoking the underlying strftime.
64056
64057 2000-03-24  Jim Meyering  <meyering@lucent.com>
64058
64059         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64060         (charset_alias): Define.
64061         (install-exec-local): Factor out common code.
64062         (uninstall-local): Split lines longer than 80.
64063         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64064         (SUFFIXES): Define.
64065         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64066         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64067
64068 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64069
64070         * lib/config.charset: Output a line containing "Packages using this
64071         file".
64072         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64073         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64074         ref-del.sed): New rules.
64075
64076 2000-03-17  Jim Meyering  <meyering@lucent.com>
64077
64078         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64079         Otherwise, include <strings.h>
64080
64081 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64082
64083         * lib/unicodeio.c (utf8_wctomb): New function.
64084         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64085         format instead of in UCS-4 with platform dependent endianness.
64086
64087 2000-03-10  Jim Meyering  <meyering@lucent.com>
64088
64089         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64090         From Marco Franzen.
64091
64092 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64093
64094         * lib/savedir.c (savedir): Work even if directory size is
64095         negative; this can happen with some screwy NFS configurations.
64096
64097 2000-03-06  Jim Meyering  <meyering@lucent.com>
64098
64099         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64100         if it's NULL (because we ran out of memory).  From Bruno Haible.
64101
64102 2000-03-05  Jim Meyering  <meyering@lucent.com>
64103
64104         * lib/localcharset.c ("path-concat.h"): Include.
64105         (get_charset_aliases): Use path_concat instead of ANSI string
64106         concatenation.
64107
64108         * lib/unicodeio.h (PARAMS): Define.
64109         Use it to guard prototype.
64110
64111 2000-03-04  Jim Meyering  <meyering@lucent.com>
64112
64113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64114         for lib/localcharset.c.
64115
64116 2000-03-04  Jim Meyering  <meyering@lucent.com>
64117
64118         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64119         installing into it.
64120         (uninstall-local): Uncomment this rule so `make distcheck' works
64121         once again.
64122
64123         * lib/unicodeio.c (<errno.h>): Include it.
64124         (errno): Declare if not defined.
64125
64126         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64127
64128         * lib/config.charset: New version, incorporating remarks from a linux
64129         i18n mailing list.  From Bruno Haible.
64130
64131 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64132
64133         * m4/codeset.m4: New file.
64134         * m4/iconv.m4: New file.
64135         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64136
64137 2000-03-03  Jim Meyering  <meyering@lucent.com>
64138
64139         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64140
64141 2000-03-02  Jim Meyering  <meyering@lucent.com>
64142
64143         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64144         the messages come out on separate lines.
64145
64146         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64147         rather than jm_CHECK_DECLARATIONS.
64148         * m4/decl.m4: Remove now-unused file.
64149
64150         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64151         geteuid.
64152
64153 2000-03-02  Jim Meyering  <meyering@lucent.com>
64154
64155         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64156
64157 2000-03-01  Jim Meyering  <meyering@lucent.com>
64158
64159         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64160         * lib/unicodeio.c: Likewise.
64161
64162 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64163
64164         * lib/config.charset: New file.
64165         * lib/localcharset.c: New file.
64166         * lib/unicodeio.h, lib/unicodeio.c: New files.
64167         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64168         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64169         (noinst_HEADERS): Add unicodeio.h.
64170         (all-local, install-exec-local, charset.alias): New targets.
64171
64172 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64173
64174         * lib/quotearg.c (ALERT_CHAR): New macro.
64175         (quotearg_buffer_restyled): Use it.
64176
64177 2000-02-27  Jim Meyering  <meyering@lucent.com>
64178
64179         * m4/check-decl.m4: Add getenv to the list.
64180
64181 2000-02-27  Jim Meyering  <meyering@lucent.com>
64182
64183         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64184         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64185
64186         * lib/backupfile.c: Guard inclusion of stdlib.h with
64187         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64188         Declare malloc if needed.
64189
64190         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64191         `#ifndef HAVE_DECL..'
64192         now that autoconf always defines the HAVE_DECL_ symbols.
64193         * lib/human.c: Likewise.
64194         * lib/same.c: Likewise.
64195         * lib/strtoumax.c: Likewise.
64196
64197         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64198         declaration check was not run.
64199         * lib/hash.c: Likewise.
64200         * lib/human.c: Likewise.
64201         * lib/same.c: Likewise.
64202         * lib/strtoumax.c: Likewise.
64203
64204         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64205         `.', then first look up the entire `.'-containing string as a login
64206         name.
64207
64208 2000-02-23  Jim Meyering  <meyering@lucent.com>
64209
64210         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64211         in place of my hack.
64212
64213 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64214
64215         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64216         (textint): New typedef.
64217         (parser_control): Member year changed from int to textint.
64218         All uses changed.
64219         (YYSTYPE): Removed; replaced by %union with int and textint members.
64220         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64221         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64222         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64223         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64224         (date, number, to_year): Use width of number in digits, not its value,
64225         to determine whether it's a 2-digit year, or a 2-digit time.
64226         (yylex): Store number of digits of numeric tokens.
64227         Reported by John Kendall.
64228
64229         (parser_control): Changed from struct parser_control to typedef (for
64230         consistency).  All uses changed.
64231
64232         (tID): Removed; not used.
64233         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64234
64235 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64236
64237         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64238         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64239
64240 2000-02-12  Jim Meyering  <meyering@lucent.com>
64241
64242         * lib/userspec.c (ISDIGIT): Define it.
64243         (isdigit): Remove definition.
64244         (is_number): Use ISDIGIT, not isdigit.
64245         <libintl.h>: Include.
64246         (_ and N_): Define.
64247         (parse_user_spec): Mark translatable strings.
64248
64249 2000-02-10  Jim Meyering  <meyering@lucent.com>
64250
64251         With these changes, nanosleep.[ch] are finally enough like the other
64252         lib/* replacement files to compile on a few more losing systems.
64253
64254         * lib/nanosleep.h: Don't include config.h.
64255         Remove prototype from declaration of nanosleep.
64256         (PARAMS): Remove now-unneeded definition.
64257         * lib/nanosleep.c: #undef nanosleep.
64258         (rpl_nanosleep): Rename from nanosleep.
64259
64260 2000-02-10  Jim Meyering  <meyering@lucent.com>
64261
64262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64263         gnu_nanosleep to rpl_nanosleep.
64264
64265 2000-02-09  Jim Meyering  <meyering@lucent.com>
64266
64267         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64268         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64269
64270 2000-02-08  Akim Demaille  <akim@epita.fr>
64271
64272         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64273         `[' and `]' and remove uses of `changequote'.
64274         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64275         (AC_SYS_LARGEFILE): Likewise.
64276         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64277         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64278         of changequote.
64279         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64280         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64281         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64282         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64283
64284 2000-02-05  Jim Meyering  <meyering@lucent.com>
64285
64286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64287         Remove explicit use of AC_HEADER_TIME.  It is required by
64288         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64289         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64290         in autoconf whereby the expansion of the latter ended up preceding
64291         the expansion of its prerequisite, AC_HEADER_TIME.
64292         Reported by Volker Borchert.
64293
64294 2000-02-03  Jim Meyering  <meyering@lucent.com>
64295
64296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64297
64298 2000-02-03  Jim Meyering  <meyering@lucent.com>
64299
64300         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64301         rather than with `#if HAVE_UTMPNAME'.
64302
64303 2000-02-02  Jim Meyering  <meyering@lucent.com>
64304
64305         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64306         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64307         Reported by Eli Zaretskii.
64308
64309 2000-02-01  Jim Meyering  <meyering@lucent.com>
64310
64311         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64312
64313 2000-01-31  Jim Meyering  <meyering@lucent.com>
64314
64315         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64316         functions.  Add the time.h and sys/time.h headers along with the
64317         AC_REQUIRE'ment of AC_HEADER_TIME.
64318
64319 2000-01-31  Jim Meyering  <meyering@lucent.com>
64320
64321         * lib/nanosleep.h (nanosleep): Guard declaration with
64322         `#if ! HAVE_DECL_NANOSLEEP'.
64323         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64324         the declaration in that vendor's sys/timers.h.
64325         Reported by Christian Krackowizer.
64326
64327         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64328         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64329         (ISPRINT): Likewise.
64330         Reported by Tom Tromey.
64331
64332 2000-01-30  Jim Meyering  <meyering@lucent.com>
64333
64334         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64335
64336         * m4/prereq.m4 (utmp_includes): Define.
64337         Check for ut_user and ut_name members in both struct utmpx
64338         and struct utmp.
64339
64340 2000-01-30  Jim Meyering  <meyering@lucent.com>
64341
64342         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64343         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64344         header files where only utmpx.ut_user is declared.
64345
64346         * lib/readutmp.h (UT_USER): Define.
64347
64348 2000-01-29  Jim Meyering  <meyering@lucent.com>
64349
64350         * m4/lib-check.m4: New file containing library-related checks from
64351         fileutils and sh-utils (textutils had none).
64352
64353 2000-01-28  Jim Meyering  <meyering@lucent.com>
64354
64355         * m4/perl.m4: Change format of warning message to look more like that
64356         from the missing script.  Suggestion from François Pinard.
64357
64358 2000-01-25  Jim Meyering  <meyering@lucent.com>
64359
64360         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64361         well as time.h in the compile check.
64362         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64363         Fix typo in cross-compiling case: s/yes/no/.
64364
64365 2000-01-23  Jim Meyering  <meyering@lucent.com>
64366
64367         * m4/jm-macros.m4: Move df-related tests here from
64368         fileutils/configure.in
64369
64370         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64371         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64372
64373         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64374         s/space/ac_fsusage_space/.
64375         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64376
64377         * m4/ftruncate.m4: New file (derived from part of
64378         fileutils/configure.in).
64379         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64380         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64381
64382         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64383         AC_SUBST these here, rather than just in sh-util/configure.in, so
64384         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64385         all the same.
64386         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64387         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64388         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64389         (AC_SUBST(POW_LIBM)): Likewise.
64390         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64391
64392 2000-01-23  Jim Meyering  <meyering@lucent.com>
64393
64394         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64395         obstack.c.
64396
64397 2000-01-22  Jim Meyering  <meyering@lucent.com>
64398
64399         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64400
64401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64402
64403         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64404         configure.in
64405         (AC_CHECK_HEADERS): Likewise for sh-utils.
64406         (AC_CHECK_HEADERS): Likewise for textutils.
64407         Merge the three lists of headers.
64408
64409         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64410         from fileutils' configure.in.
64411
64412         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64413         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64414         check-decl.m4.
64415
64416         * m4/check-decl.m4: Use #if rather than #ifdef.
64417         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64418         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64419         (_jm_DECL_HEADERS): Define new function.
64420         (jm_CHECK_DECLARATIONS): Require it.
64421
64422 2000-01-22  Jim Meyering  <meyering@lucent.com>
64423
64424         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64425         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64426         Required for some AIX systems.  Reported by Christian Krackowizer.
64427         [TESTING] (main): New function.
64428
64429         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64430         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64431         letters.
64432
64433         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64434         iswprint.
64435
64436         * lib/strverscmp.c (ISDIGIT): Define.
64437         (strverscmp): Use ISDIGIT, not isdigit.
64438
64439 2000-01-19  Jim Meyering  <meyering@lucent.com>
64440
64441         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64442         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64443         defines `struct timespec' in <sys/time.h>
64444
64445         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64446         Thanks to Akim for explaining.
64447
64448 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64449
64450         * lib/nanosleep.c (nanosleep):
64451         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64452         POSIX.1 doesn't require SA_INTERRUPT and some systems
64453         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64454         it's been part of POSIX.1 since day 1 (in 1988).
64455
64456 2000-01-17  Jim Meyering  <meyering@lucent.com>
64457
64458         * lib/interlock: Remove unused file.  Reported by François Pinard.
64459
64460 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64461
64462         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64463         alert, backslash, formfeed, and vertical tab unnecessarily in
64464         shell quoting style.
64465
64466 2000-01-16  Jim Meyering  <meyering@lucent.com>
64467
64468         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64469         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64470         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64471         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64472
64473 2000-01-16  Jim Meyering  <meyering@lucent.com>
64474
64475         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64476         because the latter didn't work.
64477
64478 2000-01-15  Jim Meyering  <meyering@lucent.com>
64479
64480         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64481         (AC_REPLACE_FUNCS): Add memcpy and memset.
64482         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64483         Add strpbrk.
64484         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64485
64486 2000-01-12  Jim Meyering  <meyering@lucent.com>
64487
64488         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64489         (jm_PREREQ): Use it.
64490         (jm_PREREQ_READUTMP): New macro.
64491         (jm_PREREQ): Use it.
64492
64493 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64494
64495         Quote multibyte characters correctly.
64496         * m4/c-bs-a.m4: New file.
64497         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64498         (jm_PREREQ): Use it.
64499
64500 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64501
64502         * m4/uintmax_t.m4: Port to autoconf 2.13.
64503
64504 2000-01-08  Jim Meyering  <meyering@ascend.com>
64505
64506         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64507         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64508
64509 2000-01-04  Jim Meyering  <meyering@ascend.com>
64510
64511         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64512         jm_STRUCT_DIRENT_D_TYPE.
64513         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64514         jm_STRUCT_DIRENT_D_INO.
64515         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64516         jm_STRUCT_UTIMBUF.
64517         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64518         renamings.
64519         * m4/utime.m4: Likewise.
64520
64521         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64522         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64523
64524 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64525
64526         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64527         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64528
64529 2000-01-02  Jim Meyering  <meyering@ascend.com>
64530
64531         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64532         remember if this is necessary.
64533
64534 1999-12-26  Jim Meyering  <meyering@ascend.com>
64535
64536         * m4/jm-macros.m4: Use it here.
64537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64538
64539 1999-12-23  Jim Meyering  <meyering@ascend.com>
64540
64541         * m4/jm-macros.m4: Check for clock_gettime (moved from
64542         fileutils/configure.in)
64543         Check for gettimeofday.
64544
64545 1999-12-20  Jim Meyering  <meyering@ascend.com>
64546
64547         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64548         autoconf-2.14a-1999-12-20.
64549
64550 1999-12-19  Jim Meyering  <meyering@ascend.com>
64551
64552         * m4/lstat-slash.m4: New file.
64553         * m4/jm-macros.m4: Use the new macro:
64554         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64555
64556 1999-12-07  Jim Meyering  <meyering@ascend.com>
64557
64558         * m4/perl.m4: Require that File::Compare be available, too.
64559         Too many systems seem to lack it.
64560
64561         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64562         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64563
64564 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64565
64566         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64567         problem with the QNX 4.25 shell, which doesn't propagate exit
64568         status of failed commands inside shell assignments.
64569
64570 1999-11-17  Jim Meyering  <meyering@ascend.com>
64571
64572         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64573
64574 1999-11-07  Jim Meyering  <meyering@ascend.com>
64575
64576         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64577
64578 1999-11-06  Jim Meyering  <meyering@ascend.com>
64579
64580         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64581         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64582
64583 1999-11-05  Jim Meyering  <meyering@ascend.com>
64584
64585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64586         configure.in of textutils, fileutils, and sh-utils into this one
64587         (shared between those packages) file.
64588         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64589         AC_STRUCT_ST_BLKSIZE.
64590
64591 1999-11-03  Jim Meyering  <meyering@ascend.com>
64592
64593         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64594         of AC_CHECK_TYPE checks includes unistd.h.
64595         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64596         Suggestion from Akim Demaille.
64597
64598 1999-10-30  Jim Meyering  <meyering@ascend.com>
64599
64600         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64601         m4-quoted string.
64602         * m4/ls-mntd-fs.m4: Likewise.
64603         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64604         * m4/jm-winsz1.m4: Likewise.
64605
64606         * m4/const.m4: Remove file, since the fix made it into the experimental
64607         version of autoconf.
64608         * m4/mktime.m4: Likewise.
64609
64610         * m4/check-type.m4: Remove file, now that the latest version of
64611         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64612
64613         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64614         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64615         AC_CHECK_TYPE.
64616
64617 1999-10-04  Jim Meyering  <meyering@ascend.com>
64618
64619         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
64620
64621 1999-09-22  Paul Eggert  <eggert@twinsun.com>
64622
64623         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
64624         2.95.1 bug with HP-UX 10.20.
64625
64626 1999-09-17  Jim Meyering  <meyering@ascend.com>
64627
64628         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
64629         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
64630         due to missing strdup (against sh-utils-2.0).
64631
64632 1999-08-29  Jim Meyering  <meyering@ascend.com>
64633
64634         * m4/jm-macros.m4: Require jm_BISON.
64635         * m4/bison.m4: New file.
64636
64637 1999-08-17  Paul Eggert  <eggert@twinsun.com>
64638
64639         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
64640         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
64641
64642 1999-08-05  Jim Meyering  <meyering@ascend.com>
64643
64644         * m4/getline.m4: Rename test file from conftestdata to conftest.data
64645         to avoid conflicts with `conftest' on 8+3 filesystems.
64646         Suggestion from Eli Zaretskii.
64647
64648 1999-08-04  Jim Meyering  <meyering@ascend.com>
64649
64650         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
64651         fileutils and sh-utils (textutils's getline test was inadequate).
64652         (AM_FUNC_GETLINE): Run this test.
64653         (AC_CHECK_FUNCS): Check for getdelim.
64654         Reported by Bob Proulx.
64655
64656 1999-08-02  Jim Meyering  <meyering@ascend.com>
64657
64658         * m4/jm-macros.m4: Add a comment.
64659
64660 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64661
64662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
64663         <inttypes.h> defines strtoumax as a macro (and not as a
64664         function).
64665
64666 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64667
64668         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
64669         that we can shift, multiply and divide unsigned long long
64670         values; Ultrix cc can't do it.
64671
64672 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64673
64674         * m4/mktime.m4: New file, which is a preview of what should appear
64675         in the next public autoconf release.
64676
64677 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64678
64679         * m4/lfs.m4: Remove this file.
64680         * m4/largefile.m4: New file.  It contains the old contents of
64681         lfs.m4, except that all names with prefix AC_LFS have been
64682         changed to use the prefix AC_SYS_LARGEFILE instead, to be
64683         compatible with future autoconf versions.  Also, some minor m4
64684         quoting problems have been fixed.
64685
64686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
64687
64688         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
64689         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
64690         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
64691         and simplify the shell code.
64692
64693 1999-08-01  Jim Meyering  <meyering@ascend.com>
64694
64695         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
64696         m4.
64697
64698 1999-07-20  Jim Meyering  <meyering@ascend.com>
64699
64700         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
64701
64702 1999-07-15  Jim Meyering  <meyering@ascend.com>
64703
64704         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
64705
64706 1999-05-22  Jim Meyering  <meyering@ascend.com>
64707
64708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
64709
64710 1999-05-20  Jim Meyering  <meyering@ascend.com>
64711
64712         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
64713         Add a colon after each `then' in case $4 is empty.
64714
64715 1999-05-16  Jim Meyering  <meyering@ascend.com>
64716
64717         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
64718
64719 1999-05-10  Jim Meyering  <meyering@ascend.com>
64720
64721         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
64722
64723         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
64724         AC_FUNC_MKTIME.
64725
64726 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
64727
64728         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
64729
64730 1999-05-04  Paul Eggert  <eggert@twinsun.com>
64731
64732         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
64733         not CPPFLAGS, so that linking works correctly in IRIX.
64734
64735 1999-04-30  Paul Eggert  <eggert@twinsun.com>
64736
64737         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
64738
64739 1999-04-20  Paul Eggert  <eggert@twinsun.com>
64740
64741         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
64742         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
64743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
64744         jm_AC_TYPE_UNSIGNED_LONG_LONG.
64745         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
64746
64747         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
64748
64749 1999-04-20  Jim Meyering  <meyering@ascend.com>
64750
64751         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
64752         AC_REPLACE xstroull if necessary.  From Paul Eggert.
64753         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
64754
64755 1999-04-18  Jim Meyering  <meyering@ascend.com>
64756
64757         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
64758         * m4/jm-macros.m4: Use it.
64759
64760 1999-04-06  Jim Meyering  <meyering@ascend.com>
64761
64762         * m4/strftime.m4: Remove test for %f.
64763
64764 1999-03-29  Jim Meyering  <meyering@ascend.com>
64765
64766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
64767         superset of the AC_TYPE_* checks in the textutils, fileutils,
64768         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
64769         AC_TYPE_PID_T.
64770
64771 1999-03-28  Jim Meyering  <meyering@ascend.com>
64772
64773         * m4/jm-macros.m4: Define GNU_PACKAGE here.
64774         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
64775         replaced e.g., in the *.sh files of the sh-utils.
64776
64777 1999-03-20  Jim Meyering  <meyering@ascend.com>
64778
64779         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
64780         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
64781         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
64782
64783 1999-03-19  Jim Meyering  <meyering@ascend.com>
64784
64785         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
64786
64787 1999-03-12  Jim Meyering  <meyering@ascend.com>
64788
64789         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
64790
64791 1999-03-07  Jim Meyering  <meyering@ascend.com>
64792
64793         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
64794         declared.
64795
64796 1999-02-17  Jim Meyering  <meyering@ascend.com>
64797
64798         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
64799         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
64800
64801 1999-02-07  Jim Meyering  <meyering@ascend.com>
64802
64803         * m4/group-member.m4: New file -- extracted from sh-utils'
64804         configure.in.
64805
64806         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
64807         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
64808
64809 1999-02-06  Jim Meyering  <meyering@ascend.com>
64810
64811         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
64812         * m4/fnmatch.m4: Likewise.
64813         * m4/getgroups.m4: Likewise.
64814         * m4/lstat.m4: Likewise.
64815         * m4/malloc.m4: Likewise.
64816         * m4/putenv.m4: Likewise.
64817         * m4/realloc.m4: Likewise.
64818         * m4/regex.m4: Likewise.
64819         * m4/stat.m4: Likewise.
64820         * m4/strftime.m4: Likewise.
64821         Suggestion from Alain Magloire.
64822
64823         * m4/chown.m4: Use `.$ac_objext', not `.o'.
64824         * m4/fnmatch.m4: Likewise.
64825         * m4/getgroups.m4: Likewise.
64826         * m4/getline.m4: Likewise.
64827         * m4/lstat.m4: Likewise.
64828         * m4/malloc.m4: Likewise.
64829         * m4/memcmp.m4: Likewise.
64830         * m4/putenv.m4: Likewise.
64831         * m4/realloc.m4: Likewise.
64832         * m4/regex.m4: Likewise.
64833         * m4/stat.m4: Likewise.
64834         * m4/strftime.m4: Likewise.
64835         Suggestion from Alain Magloire.
64836
64837         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
64838         an argument.
64839
64840         * m4/regex.m4: Add a run-time Test for proper operation of
64841         re_compile_pattern.
64842
64843 1999-01-31  Jim Meyering  <meyering@ascend.com>
64844
64845         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
64846
64847 1999-01-30  Jim Meyering  <meyering@ascend.com>
64848
64849         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
64850
64851         * m4/jm-mktime.m4: Make this a wrapper around the official
64852         AM_FUNC_MKTIME rather than my private copy, now that the official one
64853         is up to date.
64854         * m4/mktime.m4: Remove file.
64855
64856         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
64857         * m4/uptime.m4: Likewise.
64858         * m4/uintmax_t.m4: Likewise.
64859
64860 1999-01-28  Jim Meyering  <meyering@ascend.com>
64861
64862         * m4/jm-macros.m4: Use jm_AFS.
64863         * m4/afs.m4: New file (from fileutils' configure.in).
64864
64865         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
64866         * m4/chown.m4: Likewise.
64867         * m4/d-ino.m4: Likewise.
64868         * m4/d-type.m4: Likewise.
64869         * m4/fnmatch.m4: Likewise.
64870         * m4/getgroups.m4: Likewise.
64871         * m4/gettext.m4: Likewise.
64872         * m4/jm-mktime.m4: Likewise.
64873         * m4/jm-winsz2.m4: Likewise.
64874         * m4/lcmessage.m4: Likewise.
64875         * m4/ls-mntd-fs.m4: Likewise.
64876         * m4/malloc.m4: Likewise.
64877         * m4/memcmp.m4: Likewise.
64878         * m4/putenv.m4: Likewise.
64879         * m4/realloc.m4: Likewise.
64880         * m4/st_mtim.m4: Likewise.
64881         * m4/strftime.m4: Likewise.
64882
64883 1999-01-16  Jim Meyering  <meyering@ascend.com>
64884
64885         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
64886         (ARGMATCH_DIE_DECL): Define.
64887
64888 1999-01-12  Jim Meyering  <meyering@ascend.com>
64889
64890         * m4/Makefile.am.in: Rewrite to avoid using fmt.
64891         Reported by Lars Hecking.
64892
64893 1999-01-10  Jim Meyering  <meyering@ascend.com>
64894
64895         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
64896         gross kludge.
64897         * m4/inttypes_h.m4: Likewise.
64898         * m4/lstat.m4: Likewise.
64899         * m4/malloc.m4: Likewise.
64900         * m4/readdir.m4: Likewise.
64901         * m4/realloc.m4: Likewise.
64902         * m4/st_dm_mode.m4: Likewise.
64903         * m4/stat.m4: Likewise.
64904         * m4/utimbuf.m4: Likewise.
64905         * m4/utimes.m4: Likewise.
64906
64907         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
64908         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
64909         comments in config.h.in are meaningful.
64910
64911         * m4/jm-macros.m4: Require autoconf-2.13 here.
64912
64913         * m4/regex.m4: By default, don't use the included regex.c on systems
64914         with glibc 2.  Suggestion from Uli Drepper.
64915
64916 1999-01-02  Jim Meyering  <meyering@ascend.com>
64917
64918         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
64919
64920 1998-12-18  Jim Meyering  <meyering@ascend.com>
64921
64922         * m4/Makefile.am.in (Makefile.am): Simplify rule.
64923         Based on a suggestion from Lars Hecking.
64924
64925 1998-11-16  Paul Eggert  <eggert@twinsun.com>
64926
64927         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
64928
64929 1998-11-16  Jim Meyering  <meyering@ascend.com>
64930
64931         * m4/lfs.m4: Double-quote the `uname...` expression.
64932
64933 1998-11-14  Jim Meyering  <meyering@ascend.com>
64934
64935         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
64936         * m4/stat.m4: Likewise.
64937
64938 1998-11-03  Jim Meyering  <meyering@ascend.com>
64939
64940         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
64941         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
64942
64943 1998-10-18  Jim Meyering  <meyering@ascend.com>
64944
64945         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
64946
64947 1998-10-17  Jim Meyering  <meyering@ascend.com>
64948
64949         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
64950         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
64951         calls for those previously hard-coded headers.  Instead, take a new
64952         parameter.
64953         (jm_CHECK_DECLARATIONS): Reflect interface change.
64954         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
64955         (jm_CHECK_DECL_LOCALTIME_R): New macro.
64956
64957         * m4/mktime.m4: Test for spring-forward gap before long-running test.
64958
64959 1998-10-14  Jim Meyering  <meyering@ascend.com>
64960
64961         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
64962         instead of "TZ=America/Vancouver".  From Paul Eggert.
64963
64964 1998-10-11  Jim Meyering  <meyering@ascend.com>
64965
64966         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
64967         This adds a test for a recently added compatibility fix for mktime.c.
64968         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
64969
64970 1998-09-27  Jim Meyering  <meyering@ascend.com>
64971
64972         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
64973
64974         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
64975         ../configure.in, including a change from Gordon Matzigkeit to allow
64976         cross-compiling for the Hurd.
64977
64978         * m4/glibc.m4: New file/macro to test for the GNU C Library
64979         versions 1 and 2.  From Gordon Matzigkeit.
64980         Indent.
64981
64982 1998-09-21  Jim Meyering  <meyering@ascend.com>
64983
64984         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
64985
64986 1998-08-18  Paul Eggert  <eggert@twinsun.com>
64987
64988         Port nanosecond-resolution times to UnixWare 2.1.2 and
64989         pedantic Solaris 2.6.
64990
64991         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
64992         AC_STRUCT_ST_MTIM.
64993         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
64994         Generate name of ns member, instead of just 1 or undef.
64995         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
64996
64997 1998-08-15  Jim Meyering  <meyering@ascend.com>
64998
64999         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65000         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65001         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65002         instead of jm_TYPE_SSIZE_T.
65003
65004 1998-08-12  Jim Meyering  <meyering@ascend.com>
65005
65006         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65007
65008 1998-08-02  Jim Meyering  <meyering@ascend.com>
65009
65010         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65011         in acconfig.h manually.
65012
65013 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65014
65015         * m4/st_mtim.m4: New file.
65016
65017 1998-07-28  Jim Meyering  <meyering@ascend.com>
65018
65019         * m4/utimes.m4: Undef stat.
65020
65021 1998-07-25  Jim Meyering  <meyering@ascend.com>
65022
65023         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65024         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65025
65026 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65027
65028         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65029         uid and gid actually remain unchanged.
65030
65031 1998-07-07  Jim Meyering  <meyering@ascend.com>
65032
65033         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65034
65035 1998-07-04  Jim Meyering  <meyering@ascend.com>
65036
65037         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65038         to prove that this macro can be used in packages without regex.c.
65039
65040 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65041
65042         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65043         is to be used.
65044
65045 1998-07-03  Jim Meyering  <meyering@ascend.com>
65046
65047         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65048
65049         * m4/gettext.m4: New file -- from gettext-0.10.35.
65050         * m4/lcmessage.m4: Likewise.
65051         * m4/progtest.m4: Likewise.
65052
65053         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65054         * m4/jm-macros.m4: Require the new macro.
65055
65056 1998-06-29  Jim Meyering  <meyering@ascend.com>
65057
65058         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65059         for the definition of NGROUPS (used in a system header included
65060         by sys/mount.h).
65061
65062 1998-06-28  Jim Meyering  <meyering@ascend.com>
65063
65064         * m4/ls-mntd-fs.m4: New file.
65065         * m4/fstypename.m4: New file.
65066
65067         * m4/jm-macros.m4: Require the new macro.
65068         * m4/jm-glibc-io.m4: New file.
65069
65070 1998-05-19  Jim Meyering  <meyering@ascend.com>
65071
65072         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65073         * m4/lchown.m4: New file.
65074
65075         * m4/Makefile.am.in: New file.
65076         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65077
65078 1998-05-14  Jim Meyering  <meyering@ascend.com>
65079
65080         * m4/Makefile.am (EXTRA_DIST): Add them.
65081         * m4/jm-macros.m4: New file.
65082         * m4/utimbuf.m4: New file.
65083
65084 1998-05-12  Jim Meyering  <meyering@ascend.com>
65085
65086         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65087
65088 1998-05-11  Jim Meyering  <meyering@ascend.com>
65089
65090         * m4/isc-posix.m4: New file.
65091
65092 1998-05-10  Jim Meyering  <meyering@ascend.com>
65093
65094         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65095
65096 1998-05-09  Jim Meyering  <meyering@ascend.com>
65097
65098         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65099         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65100         with automake.
65101
65102         * m4/ssize_t.m4: New file.
65103         * m4/mktime.m4: Remove file -- the new automake has this now.
65104
65105 1998-04-26  Jim Meyering  <meyering@ascend.com>
65106
65107         * m4/assert.m4: New file.
65108         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65109
65110 1998-04-05  Jim Meyering  <meyering@ascend.com>
65111
65112         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65113         (jm_PREREQ): Use it here.
65114
65115 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65116
65117         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65118         in acconfig.h.
65119
65120 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65121
65122         * m4/prereq.m4: New file.
65123         * m4/error.m4: New file.
65124         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65125
65126 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65127
65128         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65129         cache-check for the same variable -- that defeated the purpose of
65130         the test; the test program was never run.  This was a problem only
65131         on systems with losing getline functions -- HP-UX 10.20 is one.
65132         Reported by Bjorn Helgaas.
65133
65134 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65135
65136         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65137
65138 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65139
65140         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65141
65142         * m4/const.m4: New file.  Use an initializer in this declaration
65143         typedef int charset[2]; const charset x;
65144         Reported by Bob Glickstein.
65145
65146 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65147
65148         * m4/chown.m4: Fix reversed types on -1 args to chown.
65149         From Kaveh Ghazi.
65150
65151 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65152
65153         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65154         Add lseek and memchr.
65155
65156         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65157         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65158         have a 20-character limit on names.
65159
65160 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65161
65162         * m4/inttypes_h.m4: New file.
65163         * m4/uintmax_t.m4: New file.
65164         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65165
65166
65167         -----
65168
65169         Local Variables:
65170         coding: utf-8
65171         End:
65172
65173         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65174
65175         Copying and distribution of this file, with or without
65176         modification, are permitted provided the copyright notice
65177         and this notice are preserved.